Constify maintenance_print_dummy_frames
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
4
5 2017-09-27 Tom Tromey <tom@tromey.com>
6
7 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
8
9 2017-09-27 Tom Tromey <tom@tromey.com>
10
11 * tui/tui-regs.c (tui_reg_command): Constify.
12
13 2017-09-27 Tom Tromey <tom@tromey.com>
14
15 * skip.c (skip_file_command, skip_function_command)
16 (skip_enable_command, skip_disable_command, skip_delete_command):
17 Constify.
18
19 2017-09-27 Tom Tromey <tom@tromey.com>
20
21 * record-btrace.c (cmd_record_btrace_bts_start)
22 (cmd_record_btrace_pt_start): Constify.
23
24 2017-09-27 Tom Tromey <tom@tromey.com>
25
26 * symmisc.c (maintenance_print_symbols)
27 (maintenance_print_msymbols, maintenance_print_objfiles)
28 (maintenance_info_symtabs, maintenance_check_symtabs)
29 (maintenance_expand_symtabs, maintenance_info_line_tables):
30 Constify.
31
32 2017-09-27 Tom Tromey <tom@tromey.com>
33
34 * top.c (new_ui_command): Constify.
35
36 2017-09-27 Tom Tromey <tom@tromey.com>
37
38 * symfile.c (add_symbol_file_command)
39 (remove_symbol_file_command, list_overlays_command)
40 (map_overlay_command, unmap_overlay_command)
41 (overlay_auto_command, overlay_manual_command)
42 (overlay_off_command, overlay_load_command): Constify.
43
44 2017-09-27 Tom Tromey <tom@tromey.com>
45
46 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
47 (info_spu_mailbox_command, info_spu_dma_command)
48 (info_spu_proxydma_command): Constify.
49
50 2017-09-27 Tom Tromey <tom@tromey.com>
51
52 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
53
54 2017-09-27 Tom Tromey <tom@tromey.com>
55
56 * cli/cli-script.c (user_defined_command): Constify.
57
58 2017-09-27 Tom Tromey <tom@tromey.com>
59
60 * cli/cli-dump.c (dump_memory_command, dump_value_command)
61 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
62 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
63 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
64 (dump_binary_value, append_binary_memory, append_binary_value):
65 Constify.
66 (struct dump_context) <func>: Constify.
67 (add_dump_command): Update.
68
69 2017-09-27 Tom Tromey <tom@tromey.com>
70
71 * cli/cli-cmds.c (show_version, show_configuration)
72 (source_command, show_user): Constify.
73
74 2017-09-27 Tom Tromey <tom@tromey.com>
75
76 * target.c (maintenance_print_target_stack): Constify.
77
78 2017-09-27 Tom Tromey <tom@tromey.com>
79
80 * interps.c (interpreter_exec_cmd): Constify.
81
82 2017-09-27 Tom Tromey <tom@tromey.com>
83
84 * record-full.c (cmd_record_full_restore): Constify.
85
86 2017-09-27 Tom Tromey <tom@tromey.com>
87
88 * memattr.c (enable_mem_command, disable_mem_command)
89 (delete_mem_command): Constify.
90
91 2017-09-27 Tom Tromey <tom@tromey.com>
92
93 * value.c (show_convenience): Constify.
94
95 2017-09-27 Tom Tromey <tom@tromey.com>
96
97 * gdbcore.h (core_file_command): Update.
98 * corefile.c (core_file_command): Constify.
99
100 2017-09-27 Tom Tromey <tom@tromey.com>
101
102 * user-regs.c (maintenance_print_user_registers): Constify.
103
104 2017-09-27 Tom Tromey <tom@tromey.com>
105
106 * cp-namespace.c (maintenance_cplus_namespace): Constify.
107
108 2017-09-27 Tom Tromey <tom@tromey.com>
109
110 * cp-support.c (first_component_command): Constify.
111
112 2017-09-27 Tom Tromey <tom@tromey.com>
113
114 * psymtab.c (maintenance_print_psymbols)
115 (maintenance_info_psymtabs, maintenance_check_psymtabs):
116 Constify.
117
118 2017-09-27 Tom Tromey <tom@tromey.com>
119
120 * windows-tdep.c (display_tib): Constify.
121
122 2017-09-27 Tom Tromey <tom@tromey.com>
123
124 * linux-fork.c (delete_checkpoint_command)
125 (detach_checkpoint_command): Constify.
126
127 2017-09-27 Tom Tromey <tom@tromey.com>
128
129 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
130
131 2017-09-27 Tom Tromey <tom@tromey.com>
132
133 * arc-tdep.c (dump_arc_instruction_command): Constify.
134
135 2017-09-27 Tom Tromey <tom@tromey.com>
136
137 * valprint.c (set_radix, show_radix): Constify.
138
139 2017-09-27 Tom Tromey <tom@tromey.com>
140
141 * dtrace-probe.c (info_probes_dtrace_command): Constify.
142
143 2017-09-27 Tom Tromey <tom@tromey.com>
144
145 * command.h (not_just_help_class_command): Update.
146 * cli/cli-decode.h (not_just_help_class_command): Update.
147 * cli/cli-decode.c (not_just_help_class_command): Constify.
148
149 2017-09-27 Tom Tromey <tom@tromey.com>
150
151 * gdb_bfd.c (maintenance_info_bfds): Constify.
152
153 2017-09-27 Tom Tromey <tom@tromey.com>
154
155 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
156 overloads.
157 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
158 (do_const_cfunc): New function.
159 (cmd_cfunc_eq): New overload.
160 (cli_user_command_p): Check do_const_cfunc.
161 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
162 const_cfunc.
163 * command.h (add_cmd): Add const overload and no-function
164 overload.
165 (set_cmd_cfunc): Add const overload.
166 (cmd_const_cfunc_ftype): Declare.
167 (cmd_cfunc_eq): Add const overload.
168 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
169 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
170 overload.
171
172 2017-09-27 Tom Tromey <tom@tromey.com>
173
174 * macroexp.c (get_next_token_for_substitution): New function.
175 (substitute_args): Call it. Check for __VA_OPT__.
176
177 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
178 Pedro Alves <palves@redhat.com>
179
180 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
181 producer_is_icc_lt_14.
182 (producer_is_icc_lt_14): New function.
183 (check_producer): Add code for checking version of ICC.
184 (producer_is_icc): Move to producer.c.
185 (read_structure_type): Restrict ICC workaround to ICC<14.
186 * producer.c: Include selftest.h.
187 (producer_is_icc, producer_parsing_tests, _initialize_producer):
188 New functions.
189 * producer.h (producer_is_icc): New declaration.
190
191 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
192
193 * Makefile.in (SFILES): Add producer.c.
194 (COMMON_OBS): Add producer.o
195 * amd64-tdep.c (producer.h): Add new include.
196 * dwarf2read.c (producer.h): Add new include.
197 * producer.c: New file.
198 * producer.h: New file.
199 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
200 producer.c.
201 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
202 producer.h.
203
204 2017-09-26 Matthias Klose <doko@ubuntu.com>
205
206 * configure.ac: Search ncursesw before ncurses.
207 Check ncursesw/ncurses.h before ncurses/ncurses.h.
208 * gdb_curses.h: Include <ncursesw/ncurses.h>
209 * config.in, configure: Regenerate.
210
211 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
212
213 PR gdb/22185
214 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
215 obsolete.
216 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
217 Remove i386sol2 support.
218 * configure.nat <i386sol2>: Remove.
219 <sol2-64>: Fold into ...
220 <sol2>: ... this.
221 Move common settings to default section.
222 Add sol-thread.o.
223 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
224 x86_64-*-solaris2.1[0-9]*>: Rename to ...
225 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
226 <i[34567]86-*-solaris*>: Remove.
227 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
228
229 * configure.ac: Remove wctype in libw check.
230 (_MSE_INT_H): Don't define on Solaris 7-9.
231 <solaris*>: Remove libthread_db.so.1 check.
232 * configure: Regenerate.
233 * config.in: Regenerate.
234
235 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
236 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
237 (gdb_ps_size_t): Remove.
238 Use base types in users.
239 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
240
241 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
242
243 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
244
245 PR build/22206
246 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
247 (adi_is_addr_mapped): Likewise.
248 (PSR_ICC): Don't redefine.
249 (PSR_IMPL): Likewise.
250
251 2017-09-25 Tom Tromey <tom@tromey.com>
252
253 * regcache.c (regcache::dump): Use string_printf.
254
255 2017-09-25 Tom Tromey <tom@tromey.com>
256
257 * regcache.c (class regcache_invalidator): New.
258 (struct register_to_invalidate): Remove.
259 (make_cleanup_regcache_invalidate): Remove.
260 (regcache::raw_write): Use regcache_invalidator.
261
262 2017-09-25 Tom Tromey <tom@tromey.com>
263
264 * spu-tdep.c (spu2ppu_sniffer): Update.
265 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
266 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
267 Remove.
268 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
269 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
270 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
271 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
272 (frame_pop): Update.
273
274 2017-09-25 Tom Tromey <tom@tromey.com>
275
276 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
277 * regcache.h (regcache_xfree): Don't declare.
278 * regcache.c (regcache_xfree): Remove.
279 (do_regcache_xfree): Use delete.
280 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
281 * linux-fork.c (free_fork): Use delete.
282 (fork_save_infrun_state): Likewise.
283 * jit.c (jit_dealloc_cache): Use delete.
284 * infrun.c (discard_infcall_suspend_state): Use delete.
285
286 2017-09-25 Tom Tromey <tom@tromey.com>
287
288 * regcache.h (regcache_xmalloc): Don't declare.
289 (regcache_raw_set_cached_value): Update comment.
290 * regcache.c (regcache_xmalloc): Remove.
291 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
292 * jit.c (jit_frame_sniffer): Use new.
293 * frame.c (frame_save_as_regcache): Use new.
294
295 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
296
297 * NEWS: Advertise support for guarded-storage registers on IBM z.
298
299 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
300
301 * s390-linux-nat.c (have_regset_gs): New static variable.
302 (s390_linux_fetch_inferior_registers): Handle guarded-storage
303 control block and guarded-storage broadcast control regsets.
304 (s390_read_description): Detect whether the target has
305 guarded-storage support, return appropriate tdesc.
306 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
307 (features/s390x-gs-linux64.c): Likewise.
308 (struct gdbarch_tdep) <have_gs>: New field.
309 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
310 (s390_gsbc_regset): New variables.
311 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
312 and s390_gsbc_regset, if applicable.
313 (s390_core_read_description): Check whether core file was from a
314 target with guarded-storage support; include appropriate regsets.
315 (s390_gdbarch_init): Add registers for guarded-storage support.
316 (_initialize_s390_tdep): Initialize new target descriptions that
317 include registers for guarded-storage support.
318 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
319 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
320 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
321 (S390_NUM_REGS): Adjust macro definition.
322 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
323 (tdesc_s390x_gs_linux64): New declarations.
324
325 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
326
327 * features/s390-gs-linux64.xml: New file.
328 * features/s390-gs.xml: New file.
329 * features/s390-gsbc.xml: New file.
330 * features/s390x-gs-linux64.xml: New file.
331 * features/Makefile (WHICH): Add s390-gs-linux64 and
332 s390x-gs-linux64.
333 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
334 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
335 * features/s390-gs-linux64.c: New generated file.
336 * features/s390x-gs-linux64.c: New file.
337 * regformats/s390-gs-linux64.dat: New file.
338 * regformats/s390x-gs-linux64.dat: New file.
339
340 2017-09-23 Tom Tromey <tom@tromey.com>
341
342 * defs.h (make_cleanup_override_quit_handler): Don't declare.
343
344 2017-09-22 Tom Tromey <tom@tromey.com>
345
346 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
347 type to scoped_restore_tmpl.
348 <scoped_input_handler>: Initialize m_quit_handler directly.
349
350 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
353 (cd_command): Likewise. Free "current_directory" before
354 assigning to it.
355 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
356 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
357 * top.c (gdb_dirbuf): Remove global declaration.
358 * top.h (gdb_dirbuf): Likewise.
359
360 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
361
362 * gnulib/aclocal.m4: Regenerate.
363 * gnulib/config.in: Regenerate.
364 * gnulib/configure: Regenerate.
365 * gnulib/import/Makefile.am: Regenerate.
366 * gnulib/import/Makefile.in: Regenerate.
367 * gnulib/import/assure.h: New file.
368 * gnulib/import/at-func.c: Likewise
369 * gnulib/import/chdir-long.c: New file.
370 * gnulib/import/chdir-long.h: New file.
371 * gnulib/import/cloexec.c: New file.
372 * gnulib/import/cloexec.h: New file.
373 * gnulib/import/close.c: New file.
374 * gnulib/import/closedir.c: New file.
375 * gnulib/import/dirent-private.h: New file.
376 * gnulib/import/dup-safer.c: New file.
377 * gnulib/import/dup.c: New file.
378 * gnulib/import/dup2.c: New file.
379 * gnulib/import/error.c: New file.
380 * gnulib/import/error.h: New file.
381 * gnulib/import/exitfail.c: New file.
382 * gnulib/import/exitfail.h: New file.
383 * gnulib/import/fchdir.c: New file.
384 * gnulib/import/fcntl.c: New file.
385 * gnulib/import/fcntl.in.h: New file.
386 * gnulib/import/fd-hook.c: New file.
387 * gnulib/import/fd-hook.h: New file.
388 * gnulib/import/fd-safer.c: New file.
389 * gnulib/import/fdopendir.c: New file.
390 * gnulib/import/filename.h: New file.
391 * gnulib/import/filenamecat-lgpl.c: New file.
392 * gnulib/import/filenamecat.h: New file.
393 * gnulib/import/fstat.c: New file.
394 * gnulib/import/fstatat.c: New file.
395 * gnulib/import/getcwd-lgpl.c: New file.
396 * gnulib/import/getcwd.c: New file.
397 * gnulib/import/getdtablesize.c: New file.
398 * gnulib/import/getlogin_r.c: New file.
399 * gnulib/import/getprogname.c: New file.
400 * gnulib/import/getprogname.h: New file.
401 * gnulib/import/gettext.h: New file.
402 * gnulib/import/glob-libc.h: New file.
403 * gnulib/import/glob.c: New file.
404 * gnulib/import/glob.in.h: New file.
405 * gnulib/import/intprops.h: New file.
406 * gnulib/import/m4/chdir-long.m4: New file.
407 * gnulib/import/m4/close.m4: New file.
408 * gnulib/import/m4/closedir.m4: New file.
409 * gnulib/import/m4/d-ino.m4: New file.
410 * gnulib/import/m4/d-type.m4: New file.
411 * gnulib/import/m4/dup.m4: New file.
412 * gnulib/import/m4/dup2.m4: New file.
413 * gnulib/import/m4/error.m4: New file.
414 * gnulib/import/m4/fchdir.m4: New file.
415 * gnulib/import/m4/fcntl.m4: New file.
416 * gnulib/import/m4/fcntl_h.m4: New file.
417 * gnulib/import/m4/fdopendir.m4: New file.
418 * gnulib/import/m4/filenamecat.m4: New file.
419 * gnulib/import/m4/fstat.m4: New file.
420 * gnulib/import/m4/fstatat.m4: New file.
421 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
422 * gnulib/import/m4/getcwd-path-max.m4: New file.
423 * gnulib/import/m4/getcwd.m4: New file.
424 * gnulib/import/m4/getdtablesize.m4: New file.
425 * gnulib/import/m4/getlogin_r.m4: New file.
426 * gnulib/import/m4/getprogname.m4: New file.
427 * gnulib/import/m4/glob.m4: New file.
428 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
429 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
430 * gnulib/import/m4/mempcpy.m4: New file.
431 * gnulib/import/m4/memrchr.m4: New file.
432 * gnulib/import/m4/mode_t.m4: New file.
433 * gnulib/import/m4/msvc-inval.m4: New file.
434 * gnulib/import/m4/msvc-nothrow.m4: New file.
435 * gnulib/import/m4/open.m4: New file.
436 * gnulib/import/m4/openat.m4: New file.
437 * gnulib/import/m4/opendir.m4: New file.
438 * gnulib/import/m4/readdir.m4: New file.
439 * gnulib/import/m4/realloc.m4: New file.
440 * gnulib/import/m4/rewinddir.m4: New file.
441 * gnulib/import/m4/save-cwd.m4: New file.
442 * gnulib/import/m4/strdup.m4: New file.
443 * gnulib/import/m4/strerror.m4: New file.
444 * gnulib/import/m4/unistd-safer.m4: New file.
445 * gnulib/import/mempcpy.c: New file.
446 * gnulib/import/memrchr.c: New file.
447 * gnulib/import/msvc-inval.c: New file.
448 * gnulib/import/msvc-inval.h: New file.
449 * gnulib/import/msvc-nothrow.c: New file.
450 * gnulib/import/msvc-nothrow.h: New file.
451 * gnulib/import/open.c: New file.
452 * gnulib/import/openat-die.c: New file.
453 * gnulib/import/openat-priv.h: New file.
454 * gnulib/import/openat-proc.c: New file.
455 * gnulib/import/openat.c: New file.
456 * gnulib/import/openat.h: New file.
457 * gnulib/import/opendir.c: New file.
458 * gnulib/import/pipe-safer.c: New file.
459 * gnulib/import/readdir.c: New file.
460 * gnulib/import/realloc.c: New file.
461 * gnulib/import/rewinddir.c: New file.
462 * gnulib/import/save-cwd.c: New file.
463 * gnulib/import/save-cwd.h: New file.
464 * gnulib/import/strdup.c: New file.
465 * gnulib/import/strerror-override.c: New file.
466 * gnulib/import/strerror-override.h: New file.
467 * gnulib/import/strerror.c: New file.
468 * gnulib/import/unistd--.h: New file.
469 * gnulib/import/unistd-safer.h: New file.
470 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
471 "getcwd" and "glob".
472 * ser-tcp.c: Undefine "close" before redefining it.
473
474 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
475
476 * guile/scm-value.c (gdbscm_value_address): Initialize address,
477 get rid of res_val.
478
479 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
480
481 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
482 <sol2,sparc>: Likewise.
483 <sol2-64,i386>: Likewise.
484
485 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
486 -Wdeprecated-declarations on *-*-solaris*.
487 * configure: Regenerate.
488
489 * procfs.c: Include "nat/inferior.h".
490 (procfs_info_proc): Fix typo.
491
492 2017-09-21 Kevin Buettner <kevinb@redhat.com>
493
494 * remote.c (vector): Include.
495 (struct private_thread_info): Add field, thread_handle.
496 (free_private_thread_info): Deallocate storage associated with
497 thread handle.
498 (get_private_info_thread): Initialize `thread_handle' field.
499 (struct thread_item): Add field, thread_handle.
500 (clear_threads_listing_context): Deallocate storage associated
501 with thread handle.
502 (start_thread): Add support for "handle" attribute.
503 (thread_attributes): Add "handle".
504 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
505 field.
506 (remote_update_thread_list): Update thread_handle.
507 (remote_thread_handle_to_thread_info): New function.
508 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
509
510 2017-09-21 Kevin Buettner <kevinb@redhat.com>
511
512 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
513 function.
514 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
515 * python/python-internal.h (thread_object_type): Declare.
516
517 2017-09-21 Kevin Buettner <kevinb@redhat.com>
518
519 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
520 (target_thread_handle_to_thread_info): Declare.
521 * target.c (target_thread_handle_to_thread_info): New function.
522 * target-delegates.c: Regenerate.
523 * gdbthread.h (find_thread_by_handle): Declare.
524 * thread.c (find_thread_by_handle): New function.
525 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
526 function.
527 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
528
529 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
530
531 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
532
533 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
534
535 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
536
537 2017-09-21 Yao Qi <yao.qi@linaro.org>
538
539 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
540 to gdb_target_obs.
541
542 2017-09-20 Tom Tromey <tom@tromey.com>
543
544 * breakpoint.c (struct counted_command_line): Remove.
545 (breakpoint_commands): Update.
546 (alloc_counted_command_line, incref_counted_command_line)
547 (decref_counted_command_line, do_cleanup_counted_command_line)
548 (make_cleanup_decref_counted_command_line): Remove.
549 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
550 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
551 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
552 (save_breakpoints): Update.
553 * breakpoint.h (counted_command_line): Now a typedef to
554 shared_ptr.
555 (struct breakpoint) <commands>: Now a counted_command_line.
556 (struct bpstats) <command>: Likewise.
557
558 2017-09-20 Tom Tromey <tom@tromey.com>
559
560 * breakpoint.c (struct commands_info, do_map_commands_command):
561 Remove.
562 (commands_command_1): Update.
563 (iterate_over_related_breakpoints): Take a function_view.
564 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
565 (delete_command): Update.
566 (map_breakpoint_numbers): Take a function_view.
567 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
568 (disable_command): Update.
569 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
570 (enable_command): Update.
571 (struct disp_data, do_enable_breakpoint_disp)
572 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
573 (do_map_enable_delete_breakpoint): Remove.
574 (enable_once_command, enable_count_command, enable_delete_command)
575 (delete_trace_variable_command): Update.
576
577 2017-09-20 Tom Tromey <tom@tromey.com>
578
579 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
580 (bpstat_clear): Use delete.
581 (bpstats): New constructors.
582 (bpstat_copy, bpstat_stop_status): Use new.
583 (dprintf_after_condition_true): Update.
584 * breakpoint.h (bpstats::bpstats): Add constructors.
585 (bpstats::~bpstats): Add destructor.
586
587 2017-09-20 Pedro Alves <palves@redhat.com>
588
589 * eval.c (make_params): Delete, refactored as ...
590 (class fake_method): ... this new type's ctor.
591 (fake_method::~fake_method): New.
592 (evaluate_subexp_standard): Use 'fake_method'.
593
594 2017-09-20 Tom Tromey <tom@tromey.com>
595
596 * windows-nat.c (get_windows_debug_event, windows_wait)
597 (do_initial_windows_stuff, windows_attach): Update.
598 * utils.c (vwarning, internal_vproblem): Update.
599 (ui_unregister_input_event_handler_cleanup)
600 (prepare_to_handle_input): Remove.
601 (class scoped_input_handler): New.
602 (defaulted_query, prompt_for_continue): Update.
603 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
604 Update.
605 * top.c (undo_terminal_modifications_before_exit): Update.
606 * target/target.h (target_terminal_init, target_terminal_inferior)
607 (target_terminal_ours): Don't declare.
608 (class target_terminal): New.
609 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
610 (target_terminal_ours_for_output)
611 (make_cleanup_restore_target_terminal): Don't declare.
612 (target_terminal_info): Remove.
613 * target.c (enum terminal_state, terminal_state): Remove.
614 (target_terminal::terminal_state): Define.
615 (target_terminal::init): Rename from target_terminal_init.
616 (target_terminal::inferior): Rename from
617 target_terminal_inferior.
618 (target_terminal::ours): Rename from target_terminal_ours.
619 (target_terminal::ours_for_output): Rename from
620 target_terminal_ours_for_output.
621 (target_terminal::info): New method.
622 (cleanup_restore_target_terminal)
623 (make_cleanup_restore_target_terminal): Remove.
624 * solib.c (handle_solib_event): Update.
625 * remote.c (remote_serial_quit_handler): Update.
626 (remote_terminal_inferior, remote_wait_as): Update.
627 * record-full.c (record_full_wait_1): Update.
628 * nto-procfs.c (procfs_create_inferior): Update.
629 * nat/fork-inferior.c (startup_inferior): Update.
630 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
631 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
632 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
633 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
634 (mi_breakpoint_created, mi_breakpoint_deleted)
635 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
636 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
637 (mi_user_selected_context_changed, report_initial_inferior):
638 Update.
639 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
640 (linux_nat_terminal_inferior): Update.
641 * infrun.c (follow_fork_inferior)
642 (handle_vfork_child_exec_or_exit, do_target_resume)
643 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
644 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
645 Update.
646 * inflow.c (child_terminal_init, info_terminal_command): Update.
647 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
648 (attach_command): Update.
649 * infcall.c (call_thread_fsm_should_stop): Update.
650 * gnu-nat.c (gnu_attach): Update.
651 * extension.c (struct active_ext_lang_state)
652 (restore_active_ext_lang): Update.
653 * exceptions.c (print_flush): Update.
654 * event-top.c (async_enable_stdin, default_quit_handler): Update.
655 (struct quit_handler_cleanup_data, restore_quit_handler)
656 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
657 Remove.
658 * cp-support.c (gdb_demangle): Update.
659 * breakpoint.c (update_inserted_breakpoint_locations)
660 (insert_breakpoint_locations, handle_jit_event)
661 (disable_breakpoints_in_unloaded_shlib): Update.
662 * annotate.c (annotate_breakpoints_invalid)
663 (annotate_frames_invalid): Update.
664
665 2017-09-20 Tom Tromey <tom@tromey.com>
666
667 * main.c (catch_command_errors): Rename from
668 catch_command_errors_const.
669 (captured_main_1): Update.
670
671 2017-09-20 Pedro Alves <palves@redhat.com>
672
673 * cli/cli-cmds.c (list_command): Use print_sal_location.
674 (print_sal_location): New function.
675 (ambiguous_line_spec): Use print_sal_location.
676 * linespec.c (symbol_to_sal): Record the symbol in the sal.
677 * symtab.c (find_function_start_sal): Likewise.
678 * symtab.h (symtab_and_line::symbol): New field.
679
680 2017-09-20 Pedro Alves <palves@redhat.com>
681
682 * linespec.c (minsym_found): Handle non-text minsyms.
683 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
684
685 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
686
687 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
688 backslash.
689
690 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
691
692 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
693 vmovups instead vmovaps.
694 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
695
696 2017-09-19 John Baldwin <jhb@FreeBSD.org>
697
698 * NEWS (Changes since GDB 8.0): Add starti.
699 * infcmd.c (enum run_break): New.
700 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
701 case.
702 (run_command): Use enum run_how.
703 (start_command): Likewise.
704 (starti_command): New function.
705 (RUN_ARGS_HELP): New macro.
706 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
707 commands. Add starti command.
708
709 2017-09-19 Yao Qi <yao.qi@linaro.org>
710
711 * Makefile.in (monitor.o): Remove the rule.
712
713 2017-09-19 Yao Qi <yao.qi@linaro.org>
714
715 * annotate.h (struct annotate_arg_emitter): Use
716 DISABLE_COPY_AND_ASSIGN.
717 * common/refcounted-object.h (refcounted_object): Likewise.
718 * completer.h (struct completion_result): Likewise.
719 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
720 * filename-seen-cache.h (filename_seen_cache): Likewise.
721 * gdbcore.h (thread_section_name): Likewise.
722 * gdb_regex.h (compiled_regex): Likewise.
723 * gdbthread.h (scoped_restore_current_thread): Likewise.
724 * inferior.h (scoped_restore_current_inferior): Likewise.
725 * jit.c (jit_reader): Likewise.
726 * linespec.h (struct linespec_result): Likewise.
727 * mi/mi-parse.h (struct mi_parse): Likewise.
728 * nat/fork-inferior.c (execv_argv): Likewise.
729 * progspace.h (scoped_restore_current_program_space): Likewise.
730 * python/python-internal.h (class gdbpy_enter): Likewise.
731 * regcache.h (regcache): Likewise.
732 * target-descriptions.c (struct tdesc_reg): Likewise.
733 (struct tdesc_type): Likewise.
734 (struct tdesc_feature): Likewise.
735 * ui-out.h (ui_out_emit_type): Likewise.
736
737 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
738
739 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
740 label abort_expression.
741
742 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
743
744 * common/buffer.c (buffer_xml_printf): Adjust.
745 * common/xml-utils.c (xml_escape_text): Change return type to
746 std::string, update code accordingly.
747 * common/xml-utils.h (xml_escape_text): Change return type to
748 std::string.
749 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
750 * windows-tdep.c (windows_xfer_shared_library): Adjust.
751 * unittests/xml-utils-selftests.c (test_xml_escape_text):
752 Adjust.
753
754 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
755
756 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
757 (SUBDIR_UNITTESTS_OBS): Add new object file.
758 * unittests/xml-utils-selftests.c: New file.
759
760 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
761
762 * common/selftest.h (selftest): New struct/interface.
763 (register_test): Add name parameter, add new overload.
764 (run_tests): Add filter parameter.
765 (for_each_selftest_ftype): New typedef.
766 (for_each_selftest): New declaration.
767 * common/selftest.c (tests): Change type to
768 map<string, unique_ptr<selftest>>.
769 (simple_selftest): New struct.
770 (register_test): New function.
771 (register_test): Add name parameter and use it.
772 (run_tests): Add filter parameter and use it. Add prints.
773 Adjust to vector -> map change.
774 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
775 registering selftests.
776 * arm-tdep.c (_initialize_arm_tdep): Likewise.
777 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
778 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
779 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
780 * findvar.c (_initialize_findvar): Likewise.
781 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
782 * maint.c (maintenance_selftest): Update call to run_tests.
783 (maintenance_info_selftests): New function.
784 (_initialize_maint_cmds): Register "maintenance info selftests"
785 command. Update "maintenance selftest" doc.
786 * regcache.c (_initialize_regcache): Add names when registering
787 selftests.
788 * rust-exp.y (_initialize_rust_exp): Likewise.
789 * selftest-arch.c (gdbarch_selftest): New struct.
790 (gdbarch_tests): Remove.
791 (register_test_foreach_arch): Add name parameter. Call
792 register_test.
793 (tests_with_arch): Remove, move most content to
794 gdbarch_selftest::operator().
795 (_initialize_selftests_foreach_arch): Remove.
796 * selftest-arch.h (register_test_foreach_arch): Add name
797 parameter.
798 (run_tests_with_arch): New declaration.
799 * utils-selftests.c (_initialize_utils_selftests): Add names
800 when registering selftests.
801 * utils.c (_initialize_utils): Likewise.
802 * unittests/array-view-selftests.c
803 (_initialize_array_view_selftests): Likewise.
804 * unittests/environ-selftests.c (_initialize_environ_selftests):
805 Likewise.
806 * unittests/function-view-selftests.c
807 (_initialize_function_view_selftests): Likewise.
808 * unittests/offset-type-selftests.c
809 (_initialize_offset_type_selftests): Likewise.
810 * unittests/optional-selftests.c
811 (_initialize_optional_selftests): Likewise.
812 * unittests/scoped_restore-selftests.c
813 (_initialize_scoped_restore_selftests): Likewise.
814 * NEWS: Document "maintenance selftest" and "maint info
815 selftests".
816
817 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
818
819 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
820 scoped_restore.
821
822 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
823
824 * mi/mi-main.c (mi_load_progress): Make uiout variable
825 a unique_ptr.
826
827 2017-09-15 Pedro Alves <palves@redhat.com>
828
829 * compile/compile-c-types.c (convert_enum, convert_int)
830 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
831
832 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
833
834 * dwarf2read.c (copy_string): Remove.
835 (parse_macro_definition): Replace copy_string with savestring.
836
837 2017-09-15 Yao Qi <yao.qi@linaro.org>
838
839 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
840 gdb_target_obs.
841 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
842 Likewise.
843 (i[34567]86-*-linux*): Likewise.
844
845 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
846
847 * dwarf2expr.h (dwarf_stack_value): Add constructor.
848 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
849 <stack>: Change type to std::vector.
850 <stack_len, stack_allocated>: Remove.
851 <grow_stack>: Remove.
852 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
853 (dwarf_expr_context::~dwarf_expr_context): Remove.
854 (dwarf_expr_context::grow_stack): Remove.
855 (dwarf_expr_context::push): Adjust.
856 (dwarf_expr_context::pop): Adjust.
857 (dwarf_expr_context::fetch): Adjust.
858 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
859 (dwarf_expr_context::stack_empty_p): Adjust.
860 (dwarf_expr_context::execute_stack_op): Adjust.
861
862 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
863
864 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
865 return type to bool.
866 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
867
868 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
869
870 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
871 Change type to bool.
872 (dwarf_stack_value) <in_stack_memory>: Likewise.
873 (dwarf_expr_context) <push_address>: Change parameter type to
874 bool.
875 <fetch_in_stack_memory>: Change return type to bool.
876 <push>: Change parameter type to bool.
877 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
878 to bool.
879 (dwarf_expr_context::push_address): Likewise.
880 (dwarf_expr_context::fetch_in_stack_memory): Change return type
881 to bool.
882 (dwarf_expr_context::execute_stack_op): Adjust.
883 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
884
885 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
886
887 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
888 (struct dwarf_expr_context) <n_pieces>: Remove.
889 <pieces>: Change type to std::vector.
890 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
891 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
892 pieces.
893 (dwarf_expr_context::add_piece): Adjust.
894 * dwarf2loc.c (struct piece_closure): Initialize fields.
895 <n_pieces>: Remove.
896 <pieces>: Change type to std::vector.
897 (allocate_piece_closure): Adjust, change parameter to
898 std::vector rvalue and std::move it to piece_closure.
899 (rw_pieced_value): Adjust.
900 (check_pieced_synthetic_pointer): Adjust.
901 (indirect_synthetic_pointer): Adjust.
902 (coerce_pieced_ref): Adjust.
903 (free_pieced_value_closure): Adjust. Use delete to free
904 piece_closure.
905 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
906 to allocate_piece_closure.
907 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
908
909 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
910
911 * probe.h (probe_ops_cp): Remove typedef.
912 (DEF_VEC_P (probe_ops_cp)): Remove.
913 (all_probe_ops): Change type to std::vector.
914 * probe.c (info_probes_for_ops): Adjust to vector change.
915 (probe_linespec_to_ops): Likewise.
916 (all_probe_ops): Change type to std::vector.
917 (_initialize_probe): Adjust to vector change.
918 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
919 * elfread.c (elf_get_probes): Likewise.
920 * stap-probe.c (_initialize_stap_probe): Likewise.
921
922 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
923
924 * probe.h (struct bound_probe): Define constructors.
925 * probe.c (bound_probe_s): Remove typedef.
926 (DEF_VEC_O (bound_probe_s)): Remove VEC.
927 (collect_probes): Change return type to std::vector, remove
928 cleanup.
929 (compare_probes): Return bool, change parameter type. Change
930 semantic to "less than".
931 (gen_ui_out_table_header_info): Change parameter to std::vector
932 and update.
933 (exists_probe_with_pops): Likewise.
934 (info_probes_for_ops): Update to std::vector change.
935 (enable_probes_command): Likewise.
936 (disable_probes_command): Likewise.
937
938 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
939
940 * probe.h (struct probe_ops) <get_probes>: Change parameter from
941 vec to std::vector.
942 * probe.c (parse_probes_in_pspace): Update.
943 (find_probes_in_objfile): Update.
944 (find_probe_by_pc): Update.
945 (collect_probes): Update.
946 (probe_any_get_probes): Update.
947 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
948 return type to reference to std::vector.
949 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
950 std::vector and update.
951 (dtrace_process_dof): Likewise.
952 (dtrace_get_probes): Likewise.
953 * elfread.c (elf_get_probes): Change return type to std::vector,
954 store an std::vector in bfd_data.
955 (probe_key_free): Update to std::vector.
956 * stap-probe.c (handle_stap_probe): Change parameter to
957 std::vector and update.
958 (stap_get_probes): Likewise.
959 * symfile-debug.c (debug_sym_get_probes): Change return type to
960 std::vector and update.
961
962 2017-09-11 Tom Tromey <tom@tromey.com>
963
964 * breakpoint.c (program_breakpoint_here_p): Update.
965 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
966 from make_show_memory_breakpoints_cleanup. Return a
967 scoped_restore_tmpl<int>.
968 (restore_show_memory_breakpoints): Remove.
969 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
970 * mem-break.c (memory_validate_breakpoint): Update.
971 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
972 (ia64_memory_remove_breakpoint): Update.
973 (ia64_breakpoint_from_pc): Update.
974 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
975 from make_show_memory_breakpoints_cleanup.
976
977 2017-09-11 Tom Tromey <tom@tromey.com>
978
979 * d-namespace.c (d_lookup_symbol): Use std::string.
980 (find_symbol_in_baseclass): Likewise.
981
982 2017-09-11 Tom Tromey <tom@tromey.com>
983
984 * ctf.c (ctf_start): Use std::string.
985
986 2017-09-11 Tom Tromey <tom@tromey.com>
987
988 * ada-lang.c (is_known_support_routine): Update.
989 (ada_unhandled_exception_name_addr_from_raise): Update.
990 * guile/scm-frame.c (gdbscm_frame_name): Update.
991 * python/py-frame.c (frapy_name): Update.
992 (frapy_function): Update.
993 * stack.h (find_frame_funname): Update.
994 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
995 (print_frame): Update.
996
997 2017-09-11 Tom Tromey <tom@tromey.com>
998
999 * findcmd.c (put_bits): Take a gdb::byte_vector.
1000 (parse_find_args): Return gdb::byte_vector. "args" now const.
1001 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1002 cleanups.
1003 (find_command): Update.
1004
1005 2017-09-11 Tom Tromey <tom@tromey.com>
1006
1007 * cli/cli-script.c (class scoped_restore_hook_in): New.
1008 (clear_hook_in_cleanup): Remove.
1009 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1010 scoped_restore_hook_in.
1011
1012 2017-09-11 Tom Tromey <tom@tromey.com>
1013
1014 * cli/cli-script.c (restore_interp): Remove.
1015 (read_command_lines): Use scoped_restore_interp.
1016 * interps.c (scoped_restore_interp::set_temp): Rename from
1017 interp_set_temp.
1018 * interps.h (class scoped_restore_interp): New.
1019 (interp_set_temp): Remove.
1020
1021 2017-09-11 Tom Tromey <tom@tromey.com>
1022
1023 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1024 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1025 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1026 scoped_restore.
1027 (mi_cmd_break_insert_1): Update.
1028 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1029 scoped_restore.
1030
1031 2017-09-11 Tom Tromey <tom@tromey.com>
1032
1033 * demangle.c (demangle_command): Update.
1034 * breakpoint.c (disable_command): Update.
1035 (enable_command): Update.
1036 (find_location_by_number): Make "number" const. Use
1037 get_number_trailer.
1038 * cli/cli-utils.c (extract_arg): Return std::string.
1039 * probe.c (parse_probe_linespec): Update. Change types.
1040 (collect_probes): Take string arguments.
1041 (parse_probe_linespec): Likewise.
1042 (info_probes_for_ops): Update.
1043 (enable_probes_command): Update.
1044 (disable_probes_command): Update.
1045 * break-catch-sig.c (catch_signal_split_args): Update.
1046 * mi/mi-parse.c (mi_parse): Update.
1047
1048 2017-09-11 Tom Tromey <tom@tromey.com>
1049
1050 * language.h (language_enum): Make argument const.
1051 * language.c (language_enum): Make argument const.
1052
1053 2017-09-11 Tom Tromey <tom@tromey.com>
1054
1055 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1056 as function.
1057 (skip_to_space): Rename from skip_to_space_const.
1058 * common/common-utils.c (skip_to_space): New function.
1059 (skip_to_space): Rename from skip_to_space_const.
1060 * cli/cli-utils.h (get_number): Rename from get_number_const.
1061 (extract_arg): Rename from extract_arg_const.
1062 * cli/cli-utils.c (get_number): Rename from get_number_const.
1063 (extract_arg): Rename from extract_arg_const.
1064 (number_or_range_parser::get_number): Use ::get_number.
1065 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1066 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1067 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1068 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1069 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1070 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1071 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1072 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1073
1074 2017-09-11 Tom Tromey <tom@tromey.com>
1075
1076 * python/python.c (do_start_initialization): Use
1077 py-event-types.def to initialize types.
1078 Define all object type structures.
1079 * python/python-internal.h: Don't declare event initialization
1080 functions.
1081 * python/py-threadevent.c (thread_event_object_type): Don't
1082 define.
1083 * python/py-stopevent.c (stop_event_object_type): Don't define.
1084 * python/py-signalevent.c (signal_event_object_type): Don't
1085 declare or define.
1086 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1087 (clear_objfiles_event_object_type): Don't declare or define.
1088 * python/py-infevents.c (inferior_call_pre_event_object_type)
1089 (inferior_call_post_event_object_type)
1090 (register_changed_event_object_type)
1091 (memory_changed_event_object_type): Don't declare or define.
1092 * python/py-inferior.c (new_thread_event_object_type)
1093 (new_inferior_event_object_type)
1094 (inferior_deleted_event_object_type): Don't declare or define.
1095 * python/py-exitedevent.c (exited_event_object_type): Don't
1096 declare or define.
1097 * python/py-evts.c (gdbpy_initialize_py_events): Use
1098 py-all-events.def.
1099 * python/py-events.h (thread_event_object_type): Don't declare.
1100 (events_object): Use py-all-events.def.
1101 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1102 py-event-types.def.
1103 * python/py-event-types.def: New file.
1104 * python/py-continueevent.c (create_continue_event_object): Don't
1105 declare or define.
1106 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1107 declare or define.
1108 * python/py-all-events.def: New file.
1109
1110 2017-09-11 Tom Tromey <tom@tromey.com>
1111
1112 * python/py-threadevent.c (create_thread_event_object): Return
1113 gdbpy_ref.
1114 * python/py-stopevent.h (create_stop_event_object)
1115 (create_breakpoint_event_object, create_signal_event_object):
1116 Update.
1117 * python/py-stopevent.c (create_stop_event_object): Return
1118 gdbpy_ref.
1119 (emit_stop_event): Update.
1120 * python/py-signalevent.c (create_signal_event_object): Return
1121 gdbpy_ref.
1122 * python/py-infevents.c (create_inferior_call_event_object):
1123 Update.
1124 * python/py-event.h (create_event_object)
1125 (create_thread_event_object): Update.
1126 * python/py-event.c (create_event_object): Return gdbpy_ref.
1127 * python/py-continueevent.c: Return gdbpy_ref.
1128 * python/py-bpevent.c (create_breakpoint_event_object): Return
1129 gdbpy_ref.
1130
1131 2017-09-11 Tom Tromey <tom@tromey.com>
1132
1133 PR python/15622:
1134 * NEWS: Add entry.
1135 * python/python.c (do_start_initialization): Initialize new event
1136 types.
1137 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1138 (gdbpy_initialize_inferior_deleted_event)
1139 (gdbpy_initialize_new_thread_event): Declare.
1140 * python/py-threadevent.c (create_thread_event_object): Add option
1141 "thread" parameter.
1142 * python/py-inferior.c (new_thread_event_object_type)
1143 (new_inferior_event_object_type)
1144 (inferior_deleted_event_object_type): Declare.
1145 (python_new_inferior, python_inferior_deleted): New functions.
1146 (add_thread_object): Emit new_thread event.
1147 (gdbpy_initialize_inferior): Attach new functions to corresponding
1148 observers.
1149 (new_thread, new_inferior, inferior_deleted): Define new event
1150 types.
1151 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1152 registries.
1153 * python/py-events.h (events_object) <new_inferior,
1154 inferior_deleted, new_thread>: New fields.
1155 * python/py-event.h (create_thread_event_breakpoint): Add optional
1156 "thread" parameter.
1157
1158 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1161 check current_ui instead.
1162 (internal_vproblem): Likewise.
1163
1164 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1165
1166 * thread.c (print_thread_info_1): Remove unnecessary calls to
1167 uiout->is_mi_like_p.
1168
1169 2017-09-09 Tom Tromey <tom@tromey.com>
1170
1171 * namespace.h (add_using_directive): Update.
1172 * namespace.c (add_using_directive): Change type of excludes to
1173 std::vector.
1174 * dwarf2read.c (read_import_statement): Use std::vector.
1175 (read_namespace): Update.
1176 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1177
1178 2017-09-09 Tom Tromey <tom@tromey.com>
1179
1180 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1181
1182 2017-09-09 Tom Tromey <tom@tromey.com>
1183
1184 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1185
1186 2017-09-09 Tom Tromey <tom@tromey.com>
1187
1188 * stack.c (func_command): Use gdb::def_vector.
1189
1190 2017-09-09 Tom Tromey <tom@tromey.com>
1191
1192 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1193 ui_out_emit_list, ui_out_emit_tuple.
1194 (mi_cmd_var_update): Likewise.
1195
1196 2017-09-09 Tom Tromey <tom@tromey.com>
1197
1198 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1199 ui_out_redirect_pop.
1200 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1201 ui_out_redirect_pop.
1202 * utils.c (do_ui_out_redirect_pop)
1203 (make_cleanup_ui_out_redirect_pop): Remove.
1204 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1205 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1206 * ui-out.h (ui_out_redirect_pop): New class.
1207
1208 2017-09-09 Tom Tromey <tom@tromey.com>
1209
1210 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1211 (list_available_thread_groups, mi_cmd_list_thread_groups)
1212 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1213 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1214 Likewise.
1215
1216 2017-09-09 Tom Tromey <tom@tromey.com>
1217
1218 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1219 ui_out_emit_tuple.
1220
1221 2017-09-09 Tom Tromey <tom@tromey.com>
1222
1223 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1224 * stack.c (print_frame): Use ui_out_emit_tuple.
1225 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1226 (info_spu_mailbox_command, info_spu_dma_command)
1227 (info_spu_proxydma_command): Likewise.
1228 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1229 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1230 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1231 ui_out_emit_tuple.
1232 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1233
1234 2017-09-09 Tom Tromey <tom@tromey.com>
1235
1236 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1237 (class ui_out_emit_table): Update comment.
1238 * ui-out.c (do_cleanup_table_end)
1239 (make_cleanup_ui_out_table_begin_end): Remove.
1240 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1241 (info_spu_dma_cmdlist): Likewise.
1242 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1243 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1244 ui_out_emit_table.
1245
1246 2017-09-09 Tom Tromey <tom@tromey.com>
1247
1248 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1249 ui_out_emit_list, gdb::optional.
1250
1251 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1252
1253 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1254 prototype.
1255 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1256 prototype.
1257 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1258 prototype.
1259 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1260 * ada-exp.y: Remove _initialize_ada_exp prototype.
1261 * ada-lang.c: Remove _initialize_ada_language prototype.
1262 * ada-tasks.c: Remove _initialize_tasks prototype.
1263 * addrmap.c: Remove _initialize_addrmap prototype.
1264 * agent.c: Remove _initialize_agent prototype.
1265 * aix-thread.c: Remove _initialize_aix_thread prototype.
1266 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1267 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1268 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1269 prototype.
1270 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1271 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1272 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1273 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1274 prototype.
1275 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1276 prototype.
1277 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1278 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1279 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1280 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1281 prototype.
1282 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1283 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1284 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1285 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1286 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1287 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1288 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1289 prototype.
1290 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1291 prototype.
1292 * annotate.c: Remove _initialize_annotate prototype.
1293 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1294 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1295 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1296 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1297 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1298 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1299 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1300 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1301 prototype.
1302 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1303 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1304 * auto-load.c: Remove _initialize_auto_load prototype.
1305 * auxv.c: Remove _initialize_auxv prototype.
1306 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1307 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1308 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1309 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1310 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1311 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1312 prototype.
1313 * break-catch-throw.c: Remove _initialize_break_catch_throw
1314 prototype.
1315 * breakpoint.c: Remove _initialize_breakpoint prototype.
1316 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1317 * btrace.c: Remove _initialize_btrace prototype.
1318 * charset.c: Remove _initialize_charset prototype.
1319 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1320 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1321 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1322 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1323 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1324 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1325 * coffread.c: Remove _initialize_coffread prototype.
1326 * compile/compile.c: Remove _initialize_compile prototype.
1327 * complaints.c: Remove _initialize_complaints prototype.
1328 * completer.c: Remove _initialize_completer prototype.
1329 * copying.awk: Remove _initialize_copying prototype.
1330 * copying.c: Regenerate.
1331 * core-regset.c: Remove _initialize_core_regset prototype.
1332 * corefile.c: Remove _initialize_core prototype.
1333 * corelow.c: Remove _initialize_corelow prototype.
1334 * cp-abi.c: Remove _initialize_cp_abi prototype.
1335 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1336 * cp-support.c: Remove _initialize_cp_support prototype.
1337 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1338 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1339 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1340 * ctf.c: Remove _initialize_ctf prototype.
1341 * d-lang.c: Remove _initialize_d_language prototype.
1342 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1343 prototype.
1344 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1345 * dbxread.c: Remove _initialize_dbxread prototype.
1346 * dcache.c: Remove _initialize_dcache prototype.
1347 * demangle.c: Remove _initialize_demangler prototype.
1348 * disasm-selftests.c: Remove _initialize_disasm_selftests
1349 prototype.
1350 * disasm.c: Remove _initialize_disasm prototype.
1351 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1352 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1353 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1354 prototype.
1355 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1356 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1357 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1358 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1359 * elfread.c: Remove _initialize_elfread prototype.
1360 * exec.c: Remove _initialize_exec prototype.
1361 * extension.c: Remove _initialize_extension prototype.
1362 * f-lang.c: Remove _initialize_f_language prototype.
1363 * f-valprint.c: Remove _initialize_f_valprint prototype.
1364 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1365 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1366 * filesystem.c: Remove _initialize_filesystem prototype.
1367 * findcmd.c: Remove _initialize_mem_search prototype.
1368 * fork-child.c: Remove _initialize_fork_child prototype.
1369 * frame-base.c: Remove _initialize_frame_base prototype.
1370 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1371 * frame.c: Remove _initialize_frame prototype.
1372 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1373 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1374 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1375 * gcore.c: Remove _initialize_gcore prototype.
1376 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1377 * gdbarch.c: Regenerate.
1378 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1379 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1380 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1381 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1382 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1383 * go-lang.c: Remove _initialize_go_language prototype.
1384 * go32-nat.c: Remove _initialize_go32_nat prototype.
1385 * guile/guile.c: Remove _initialize_guile prototype.
1386 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1387 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1388 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1389 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1390 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1391 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1392 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1393 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1394 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1395 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1396 prototype.
1397 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1398 prototype.
1399 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1400 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1401 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1402 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1403 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1404 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1405 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1406 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1407 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1408 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1409 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1410 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1411 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1412 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1413 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1414 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1415 prototype.
1416 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1417 prototype.
1418 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1419 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1420 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1421 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1422 * infcall.c: Remove _initialize_infcall prototype.
1423 * infcmd.c: Remove _initialize_infcmd prototype.
1424 * inferior.c: Remove _initialize_inferiors prototype.
1425 * inflow.c: Remove _initialize_inflow prototype.
1426 * infrun.c: Remove _initialize_infrun prototype.
1427 * interps.c: Remove _initialize_interpreter prototype.
1428 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1429 * jit.c: Remove _initialize_jit prototype.
1430 * language.c: Remove _initialize_language prototype.
1431 * linux-fork.c: Remove _initialize_linux_fork prototype.
1432 * linux-nat.c: Remove _initialize_linux_nat prototype.
1433 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1434 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1435 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1436 * m2-lang.c: Remove _initialize_m2_language prototype.
1437 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1438 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1439 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1440 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1441 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1442 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1443 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1444 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1445 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1446 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1447 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1448 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1449 * machoread.c: Remove _initialize_machoread prototype.
1450 * macrocmd.c: Remove _initialize_macrocmd prototype.
1451 * macroscope.c: Remove _initialize_macroscope prototype.
1452 * maint.c: Remove _initialize_maint_cmds prototype.
1453 * mdebugread.c: Remove _initialize_mdebugread prototype.
1454 * memattr.c: Remove _initialize_mem prototype.
1455 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1456 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1457 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1458 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1459 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1460 * microblaze-linux-tdep.c: Remove
1461 _initialize_microblaze_linux_tdep prototype.
1462 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1463 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1464 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1465 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1466 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1467 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1468 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1469 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1470 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1471 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1472 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1473 prototype.
1474 * mipsread.c: Remove _initialize_mipsread prototype.
1475 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1476 prototype.
1477 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1478 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1479 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1480 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1481 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1482 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1483 prototype.
1484 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1485 * nto-procfs.c: Remove _initialize_procfs prototype.
1486 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1487 * objc-lang.c: Remove _initialize_objc_language prototype.
1488 * objfiles.c: Remove _initialize_objfiles prototype.
1489 * observer.c: Remove observer_test_first_notification_function,
1490 observer_test_second_notification_function,
1491 observer_test_third_notification_function, and
1492 _initialize_observer prototypes.
1493 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1494 * osabi.c: Remove _initialize_gdb_osabi prototype.
1495 * osdata.c: Remove _initialize_osdata prototype.
1496 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1497 * parse.c: Remove _initialize_parse prototype.
1498 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1499 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1500 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1501 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1502 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1503 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1504 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1505 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1506 * printcmd.c: Remove _initialize_printcmd prototype.
1507 * probe.c: Remove _initialize_probe prototype.
1508 * proc-api.c: Remove _initialize_proc_api prototype.
1509 * proc-events.c: Remove _initialize_proc_events prototype.
1510 * proc-service.c: Remove _initialize_proc_service prototype.
1511 * procfs.c: Remove _initialize_procfs prototype.
1512 * psymtab.c: Remove _initialize_psymtab prototype.
1513 * python/python.c: Remove _initialize_python prototype.
1514 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1515 * record-btrace.c: Remove _initialize_record_btrace prototype.
1516 * record-full.c: Remove _initialize_record_full prototype.
1517 * record.c: Remove _initialize_record prototype.
1518 * regcache.c: Remove _initialize_regcache prototype.
1519 * reggroups.c: Remove _initialize_reggroup prototype.
1520 * remote-notif.c: Remove _initialize_notif prototype.
1521 * remote-sim.c: Remove _initialize_remote_sim prototype.
1522 * remote.c: Remove _initialize_remote prototype.
1523 * reverse.c: Remove _initialize_reverse prototype.
1524 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1525 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1526 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1527 prototype.
1528 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1529 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1530 * rust-exp.y: Remove _initialize_rust_exp prototype.
1531 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1532 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1533 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1534 * score-tdep.c: Remove _initialize_score_tdep prototype.
1535 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1536 prototype.
1537 * ser-go32.c: Remove _initialize_ser_dos prototype.
1538 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1539 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1540 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1541 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1542 * serial.c: Remove _initialize_serial prototype.
1543 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1544 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1545 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1546 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1547 * skip.c: Remove _initialize_step_skip prototype.
1548 * sol-thread.c: Remove _initialize_sol_thread prototype.
1549 * solib-aix.c: Remove _initialize_solib_aix prototype.
1550 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1551 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1552 * solib-frv.c: Remove _initialize_frv_solib prototype.
1553 * solib-spu.c: Remove _initialize_spu_solib prototype.
1554 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1555 * solib-target.c: Remove _initialize_solib_target prototype.
1556 * solib.c: Remove _initialize_solib prototype.
1557 * source.c: Remove _initialize_source prototype.
1558 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1559 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1560 prototype.
1561 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1562 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1563 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1564 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1565 prototype.
1566 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1567 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1568 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1569 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1570 prototype.
1571 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1572 prototype.
1573 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1574 prototype.
1575 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1576 prototype.
1577 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1578 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1579 prototype.
1580 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1581 prototype.
1582 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1583 prototype.
1584 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1585 prototype.
1586 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1587 prototype.
1588 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1589 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1590 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1591 * stabsread.c: Remove _initialize_stabsread prototype.
1592 * stack.c: Remove _initialize_stack prototype.
1593 * stap-probe.c: Remove _initialize_stap_probe prototype.
1594 * std-regs.c: Remove _initialize_frame_reg prototype.
1595 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1596 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1597 * symfile.c: Remove _initialize_symfile prototype.
1598 * symmisc.c: Remove _initialize_symmisc prototype.
1599 * symtab.c: Remove _initialize_symtab prototype.
1600 * target-dcache.c: Remove _initialize_target_dcache prototype.
1601 * target-descriptions.c: Remove _initialize_target_descriptions
1602 prototype.
1603 * thread.c: Remove _initialize_thread prototype.
1604 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1605 prototype.
1606 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1607 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1608 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1609 prototype.
1610 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1611 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1612 * tracefile.c: Remove _initialize_tracefile prototype.
1613 * tracepoint.c: Remove _initialize_tracepoint prototype.
1614 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1615 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1616 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1617 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1618 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1619 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1620 * tui/tui.c: Remove _initialize_tui prototype.
1621 * typeprint.c: Remove _initialize_typeprint prototype.
1622 * user-regs.c: Remove _initialize_user_regs prototype.
1623 * utils.c: Remove _initialize_utils prototype.
1624 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1625 * valarith.c: Remove _initialize_valarith prototype.
1626 * valops.c: Remove _initialize_valops prototype.
1627 * valprint.c: Remove _initialize_valprint prototype.
1628 * value.c: Remove _initialize_values prototype.
1629 * varobj.c: Remove _initialize_varobj prototype.
1630 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1631 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1632 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1633 * windows-nat.c: Remove _initialize_windows_nat,
1634 _initialize_check_for_gdb_ini, and _initialize_loadable
1635 prototypes.
1636 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1637 * xcoffread.c: Remove _initialize_xcoffread prototype.
1638 * xml-support.c: Remove _initialize_xml_support prototype.
1639 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1640 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1641 prototype.
1642 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1643 prototype.
1644 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1645
1646 2017-09-08 Keith Seitz <keiths@redhat.com>
1647
1648 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1649 field.
1650
1651 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1652
1653 * f-valprint.c (f_val_print): Remove check for one byte
1654 sized integers. Remove printing of character type.
1655
1656 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1657 Christoph Weinmann <christoph.t.weinmann@intel.com>
1658 Bernhard Heckel <bernhard.heckel@intel.com>
1659
1660 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1661 to maintain proper indentation when printing pointers/refs.
1662
1663 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1664
1665 GDB 8.0.1 released.
1666
1667 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1668
1669 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1670
1671 2017-09-05 Tom Tromey <tom@tromey.com>
1672
1673 * parse.c (funcall_chain): Now a std::vector.
1674 (start_arglist, end_arglist): Simplify.
1675 (free_funcalls): Remove.
1676 (parse_exp_in_context_1): Remove cleanup.
1677
1678 2017-09-05 Tom Tromey <tom@tromey.com>
1679
1680 * go-exp.y (go_parse): Don't create a cleanup.
1681
1682 2017-09-05 Tom Tromey <tom@tromey.com>
1683
1684 * d-exp.y (PrimaryExpression): Use std::string.
1685 (d_parse): Don't create a cleanup.
1686
1687 2017-09-05 Tom Tromey <tom@tromey.com>
1688
1689 * utils.c (do_clear_parser_state): Remove.
1690 (make_cleanup_clear_parser_state): Remove.
1691 * p-exp.y (pascal_parse): Use scoped_restore.
1692 * m2-exp.y (m2_parse): Use scoped_restore.
1693 * f-exp.y (f_parse): Use scoped_restore.
1694 * d-exp.y (d_parse): Use scoped_restore.
1695 * c-exp.y (c_parse): Use scoped_restore.
1696 * ada-exp.y (ada_parse): Use scoped_restore.
1697 * utils.h (make_cleanup_clear_parser_state): Remove.
1698
1699 2017-09-06 Keith Seitz <keiths@redhat.com>
1700
1701 * dwarf2read.c (dw2_linkage_name_attr): New function.
1702 (dw2_linkage_name): New function.
1703 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1704 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1705 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1706
1707 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1708
1709 * config/djgpp/djconfig.sh: Correct shell portability issue.
1710
1711 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1712
1713 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1714
1715 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1716
1717 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1718 * NEWS: Mention new FreeBSD/mips native configuration.
1719 * configure.host: Add aarch64*-*-freebsd*.
1720 * configure.nat: Likewise.
1721 * aarch64-fbsd-nat.c: New file.
1722
1723 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1724
1725 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1726 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1727 * NEWS: Mention new FreeBSD/aarch64 target.
1728 * configure.tgt: Add aarch64*-*-freebsd*.
1729 * aarch64-fbsd-tdep.c: New file.
1730 * aarch64-fbsd-tdep.h: New file.
1731
1732 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1733
1734 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1735
1736 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1739 of TLS symbols.
1740
1741 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1742
1743 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1744 call.
1745
1746 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1747
1748 * infrun.c (follow_exec): Call add_thread after
1749 target_find_description.
1750
1751 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * infrun.c (handle_inferior_event_1): When exec'ing, read
1754 stop_pc after follow_exec.
1755
1756 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1757
1758 * remote.c (process_g_packet): Update error message.
1759
1760 2017-09-05 Yao Qi <yao.qi@linaro.org>
1761
1762 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1763 targets.
1764
1765 2017-09-05 Pedro Alves <palves@redhat.com>
1766
1767 * eval.c (eval_call, evaluate_funcall): New functions, factored
1768 out from ...
1769 (evaluate_subexp_standard): ... this.
1770
1771 2017-09-05 Yao Qi <yao.qi@linaro.org>
1772
1773 * amd64-tdep.c (amd64_target_description): Create target
1774 descriptions.
1775 (_initialize_amd64_tdep): Don't call functions
1776 initialize_tdesc_amd64_*. Add self tests.
1777 * arch/amd64.c (amd64_create_target_description): Add parameter
1778 is_linux. Call set_tdesc_osabi if is_linux is true.
1779 * arch/amd64.h (amd64_create_target_description): Update the
1780 declaration.
1781 * arch/i386.c (i386_create_target_description): Add parameter
1782 is_linux. Call set_tdesc_osabi if is_linux is true.
1783 * arch/i386.h (i386_create_target_description): Update
1784 declaration.
1785 * configure.tgt: Add i386.o to gdb_target_obs.
1786 * features/Makefile (XMLTOC): Remove i386/*.xml.
1787 * features/i386/amd64-avx-avx512.c: Remove.
1788 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1789 * features/i386/amd64-avx-mpx.c: Remove.
1790 * features/i386/amd64-avx.c: Remove.
1791 * features/i386/amd64-mpx.c: Remove.
1792 * features/i386/amd64.c: Remove.
1793 * features/i386/i386-avx-avx512.c: Remove.
1794 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1795 * features/i386/i386-avx-mpx.c: Remove.
1796 * features/i386/i386-avx.c: Remove.
1797 * features/i386/i386-mmx.c: Remove.
1798 * features/i386/i386-mpx.c: Remove.
1799 * features/i386/i386.c: Remove.
1800 * i386-tdep.c: Don't include features/i386/i386*.c., include
1801 target-descriptions.h and arch/i386.h.
1802 (i386_target_description): Create target descriptions.
1803 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1804 functions. Do self tests.
1805
1806 2017-09-05 Yao Qi <yao.qi@linaro.org>
1807
1808 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1809 * features/i386/amd64-avx-avx512-linux.c: Removed.
1810 * features/i386/amd64-avx-linux.c: Removed.
1811 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1812 * features/i386/amd64-avx-mpx-linux.c: Removed.
1813 * features/i386/amd64-linux.c: Removed.
1814 * features/i386/amd64-mpx-linux.c: Removed.
1815 * features/i386/x32-avx-avx512-linux.c: Removed.
1816 * features/i386/x32-avx-linux.c: Removed.
1817 * features/i386/x32-linux.c: Removed.
1818
1819 2017-09-05 Yao Qi <yao.qi@linaro.org>
1820
1821 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1822 features/i386/*.c.
1823 (amd64_linux_read_description): Call
1824 amd64_create_target_description.
1825 * arch/amd64.c: New file.
1826 * arch/amd64.h: New file.
1827 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1828 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1829
1830 2017-09-05 Yao Qi <yao.qi@linaro.org>
1831
1832 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1833 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1834 (amd64_linux_read_description): Create target descriptions.
1835 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1836 functions. Add unit tests.
1837 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1838 x32-core.xml.
1839 * features/i386/64bit-avx.c: Generated.
1840 * features/i386/64bit-avx512.c: Generated.
1841 * features/i386/64bit-core.c: Generated.
1842 * features/i386/64bit-linux.c: Generated.
1843 * features/i386/64bit-mpx.c: Generated.
1844 * features/i386/64bit-pkeys.c: Generated.
1845 * features/i386/64bit-segments.c: Generated.
1846 * features/i386/64bit-sse.c: Generated.
1847 * features/i386/x32-core.c: Generated.
1848 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1849 c files for amd64-linux and x32-linux.
1850
1851 2017-09-05 Yao Qi <yao.qi@linaro.org>
1852
1853 * amd64-linux-tdep.c (amd64_linux_read_description): New
1854 function.
1855 (amd64_linux_core_read_description): Call
1856 amd64_linux_read_description.
1857 (amd64_linux_init_abi): Likewise.
1858 (amd64_x32_linux_init_abi): Likewise.
1859 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1860 * x86-linux-nat.c (x86_linux_read_description): Call
1861 amd64_linux_read_description.
1862
1863 2017-09-05 Yao Qi <yao.qi@linaro.org>
1864
1865 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1866 comments.
1867
1868 2017-09-05 Yao Qi <yao.qi@linaro.org>
1869
1870 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1871 * features/i386/i386-avx-avx512-linux.c: Remove.
1872 * features/i386/i386-avx-linux.c: Remove.
1873 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1874 * features/i386/i386-avx-mpx-linux.c: Remove.
1875 * features/i386/i386-linux.c: Remove.
1876 * features/i386/i386-mmx-linux.c: Remove.
1877 * features/i386/i386-mpx-linux.c: Remove.
1878
1879 2017-09-05 Yao Qi <yao.qi@linaro.org>
1880
1881 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1882 (SFILES): Add arch/i386.c.
1883 (HFILES_NO_SRCDIR): Add arch/i386.h.
1884 * arch/i386.c: New file.
1885 * arch/i386.h: New file.
1886 * arch/tdesc.h (allocate_target_description): Declare.
1887 (set_tdesc_architecture): Declare.
1888 (set_tdesc_osabi): Declare.
1889 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1890 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1891 include arch/i386.h.
1892 (i386_linux_read_description): Remove code and call
1893 i386_create_target_description.
1894 (set_tdesc_architecture): New function.
1895 (set_tdesc_osabi): New function.
1896 * target-descriptions.h (allocate_target_description): Remove.
1897
1898 2017-09-05 Yao Qi <yao.qi@linaro.org>
1899
1900 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1901 * target-descriptions.c (tdesc_create_feature): Likewise, and
1902 adjust code.
1903 * features/i386/32bit-avx.c: Re-generated.
1904 * features/i386/32bit-avx512.c: Re-generated.
1905 * features/i386/32bit-core.c: Re-generated.
1906 * features/i386/32bit-linux.c: Re-generated.
1907 * features/i386/32bit-mpx.c: Re-generated.
1908 * features/i386/32bit-pkeys.c: Re-generated.
1909 * features/i386/32bit-sse.c: Re-generated.
1910
1911 2017-09-05 Yao Qi <yao.qi@linaro.org>
1912
1913 * regformats/regdef.h (struct reg): Override operator == and !=.
1914
1915 2017-09-05 Yao Qi <yao.qi@linaro.org>
1916
1917 * arch/tdesc.h: New file.
1918 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1919 * target-descriptions.c: Update comments.
1920 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1921 declarations.
1922 * features/i386/32bit-avx.c: Re-generated.
1923 * features/i386/32bit-avx512.c: Re-generated.
1924 * features/i386/32bit-core.c: Re-generated.
1925 * features/i386/32bit-linux.c: Re-generated.
1926 * features/i386/32bit-mpx.c: Re-generated.
1927 * features/i386/32bit-pkeys.c: Re-generated.
1928 * features/i386/32bit-sse.c: Re-generated.
1929
1930 2017-09-05 Yao Qi <yao.qi@linaro.org>
1931
1932 * regformats/regdat.sh: Update generated code.
1933
1934 2017-09-05 Yao Qi <yao.qi@linaro.org>
1935
1936 * regformats/regdat.sh: Adjust code order.
1937
1938 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1939
1940 * expprint.c (dump_subexp_body_standard): Use constant format
1941 string in fprintf_filtered call.
1942
1943 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1944
1945 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1946 NetBSD/i386.
1947 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1948
1949 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1950
1951 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1952
1953 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1954
1955 * bsd-kvm.o: Define _KMEMUSER.
1956 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1957 * configure: Regenerate.
1958
1959 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1960
1961 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1962 * i386-fbsd-nat.c: Likewise.
1963
1964 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1965
1966 * unittests/array-view-selftests.c: Add include of <array>.
1967
1968 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1969
1970 * spu-tdep.c (flush_ea_cache): Add missing argument to
1971 call_function_by_hand.
1972
1973 2017-09-04 Pedro Alves <palves@redhat.com>
1974
1975 * NEWS (Safer support for debugging with no debug info): New.
1976
1977 2017-09-04 Pedro Alves <palves@redhat.com>
1978
1979 * c-exp.y (function_method, function_method_void): Add current
1980 instance flags to TYPE_INSTANCE.
1981 * dwarf2read.c (check_modifier): New.
1982 (compute_delayed_physnames): Assert that only C++ adds delayed
1983 physnames. Mark fn_fields as const/volatile depending on
1984 physname.
1985 * eval.c (make_params): New type_instance_flags parameter. Use
1986 it as the new type's instance flags.
1987 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1988 flags element and pass it to make_params.
1989 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1990 instance flags element.
1991 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1992 * gdbtypes.h: Include "enum-flags.h".
1993 (type_instance_flags): New enum-flags type.
1994 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1995 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1996 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1997 (follow_type_instance_flags): New function.
1998 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1999 * parser-defs.h (follow_type_instance_flags): Declare.
2000 * valops.c (value_struct_elt_for_reference): const/volatile must
2001 match too.
2002
2003 2017-09-04 Pedro Alves <palves@redhat.com>
2004
2005 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2006 function/method scopes; lookup the nested name as a function local
2007 static variable.
2008
2009 2017-09-04 Pedro Alves <palves@redhat.com>
2010
2011 (%type <voidval>): Add function_method.
2012 * c-exp.y (exp): New production for calls with no arguments.
2013 (function_method, function_method_void_or_typelist): New
2014 productions.
2015 (exp): New production for "method()::static_var".
2016 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2017 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2018 Handle OP_FUNC_STATIC_VAR.
2019 * parse.c (operator_length_standard):
2020 Handle OP_FUNC_STATIC_VAR.
2021
2022 2017-09-04 Pedro Alves <palves@redhat.com>
2023
2024 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2025 handling.
2026 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2027 Ditto.
2028 * parse.c (operator_length_standard, operator_check_standard):
2029 Ditto.
2030 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2031
2032 2017-09-04 Pedro Alves <palves@redhat.com>
2033
2034 * ax-gdb.c: Include "typeprint.h".
2035 (gen_expr_for_cast): New function.
2036 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2037 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2038 type is unknown.
2039 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2040 nodebug_data_symbol.
2041 * eval.c: Include "typeprint.h".
2042 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2043 Error out if symbol has unknown type.
2044 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2045 evaluate_subexp_for_cast.
2046 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2047 OP_VAR_MSYM_VALUE.
2048 (evaluate_subexp_for_cast): New function.
2049 * gdbtypes.c (init_nodebug_var_type): New function.
2050 (objfile_type): Use it to initialize types of variables with no
2051 debug info.
2052 * typeprint.c (error_unknown_type): New.
2053 * typeprint.h (error_unknown_type): New declaration.
2054 * compile/compile-c-types.c (convert_type_basic): Handle
2055 TYPE_CODE_ERROR; warn and fallback to int for variables with
2056 unknown type.
2057
2058 2017-09-04 Pedro Alves <palves@redhat.com>
2059
2060 * eval.c (evaluate_var_value): New function, factored out from ...
2061 (evaluate_subexp_standard): ... here.
2062
2063 2017-09-04 Pedro Alves <palves@redhat.com>
2064
2065 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2066 Remove useless assignments to 'op'.
2067
2068 2017-09-04 Pedro Alves <palves@redhat.com>
2069
2070 * eval.c (eval_skip_value): New function.
2071 (evaluate_subexp_standard): Use it.
2072
2073 2017-09-04 Pedro Alves <palves@redhat.com>
2074
2075 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2076 function name from symbol/minsym and pass it to
2077 error_call_unknown_return_type.
2078
2079 2017-09-04 Pedro Alves <palves@redhat.com>
2080
2081 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2082 * ax-gdb.c (gen_msym_var_ref): New function.
2083 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2084 * eval.c (evaluate_var_msym_value): New function.
2085 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2086 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2087 to call_function_by_hand.
2088 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2089 Handle OP_VAR_MSYM_VALUE.
2090 (union exp_element) <msymbol>: New field.
2091 * minsyms.h (struct type): Forward declare.
2092 (find_minsym_type_and_address): Declare.
2093 * parse.c (write_exp_elt_msym): New function.
2094 (write_exp_msymbol): Delete, refactored as ...
2095 (find_minsym_type_and_address): ... this new function.
2096 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2097 (operator_length_standard, operator_check_standard): Handle
2098 OP_VAR_MSYM_VALUE.
2099 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2100
2101 2017-09-04 Pedro Alves <palves@redhat.com>
2102
2103 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2104 TYPE_GNU_IFUNC specially here. Throw error if return type is
2105 unknown.
2106 * ada-typeprint.c (print_func_type): Handle functions with unknown
2107 return type.
2108 * c-typeprint.c (c_type_print_base): Handle functions and methods
2109 with unknown return type.
2110 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2111 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2112 * compile/compile-c-types.c: Include "objfiles.h".
2113 (convert_func): For functions with unknown return type, warn and
2114 default to int.
2115 * compile/compile-object-run.c (compile_object_run): Adjust call
2116 to call_function_by_hand_dummy.
2117 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2118 call_function_by_hand.
2119 * eval.c (evaluate_subexp_standard): Adjust calls to
2120 call_function_by_hand. Handle functions and methods with unknown
2121 return type. Pass expect_type to call_function_by_hand.
2122 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2123 return type.
2124 * gcore.c (call_target_sbrk): Adjust call to
2125 call_function_by_hand.
2126 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2127 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2128 an integer address type instead of nodebug.
2129 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2130 call_function_by_hand.
2131 * infcall.c (error_call_unknown_return_type): New function.
2132 (call_function_by_hand): New "default_return_type" parameter.
2133 Pass it down.
2134 (call_function_by_hand_dummy): New "default_return_type"
2135 parameter. Use it instead of defaulting to int. If there's no
2136 default and the return type is unknown, throw an error. If
2137 there's a default return type, and the called function has no
2138 debug info, then assume the function is prototyped.
2139 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2140 New "default_return_type" parameter.
2141 (error_call_unknown_return_type): New declaration.
2142 * linux-fork.c (call_lseek): Cast return type of lseek.
2143 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2144 call_function_by_hand.
2145 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2146 calls to call_function_by_hand.
2147 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2148 return type.
2149 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2150 (value_nsstring, print_object_command): Adjust calls to
2151 call_function_by_hand.
2152 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2153 functions with unknown return type.
2154 (pascal_type_print_func_varspec_suffix): New function.
2155 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2156 TYPE_CODE_METHOD>: Use it.
2157 * python/py-value.c (valpy_call): Adjust call to
2158 call_function_by_hand.
2159 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2160 call_function_by_hand.
2161 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2162 call_function_by_hand.
2163 * valops.c (value_allocate_space_in_inferior): Adjust call to
2164 call_function_by_hand.
2165 * typeprint.c (type_print_unknown_return_type): New function.
2166 * typeprint.h (type_print_unknown_return_type): New declaration.
2167
2168 2017-09-04 Pedro Alves <palves@redhat.com>
2169
2170 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2171 types with more than one parameter as prototyped.
2172
2173 2017-09-04 Pedro Alves <palves@redhat.com>
2174
2175 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2176 (disassemble_command): Use gdb_disassembly_flags instead of bare
2177 int.
2178 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2179 (dump_insns, do_mixed_source_and_assembly_deprecated)
2180 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2181 Use gdb_disassembly_flags instead of bare int.
2182 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2183 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2184 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2185 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2186 (enum gdb_disassembly_flag): ... values of this new enumeration.
2187 (gdb_disassembly_flags): Define.
2188 (gdb_disassembly)
2189 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2190 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2191 gdb_disassembly_flags instead of bare int.
2192 * record-btrace.c (btrace_insn_history)
2193 (record_btrace_insn_history, record_btrace_insn_history_range)
2194 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2195 instead of bare int.
2196 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2197 Use gdb_disassembly_flags instead of bare int.
2198 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2199 Define.
2200 * target-delegates.c: Regenerate.
2201 * target.c (target_insn_history, target_insn_history_from)
2202 (target_insn_history_range): Use gdb_disassembly_flags instead of
2203 bare int.
2204 * target.h: Include "disasm.h".
2205 (struct target_ops) <to_insn_history, to_insn_history_from,
2206 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2207 int.
2208 (target_insn_history, target_insn_history_from)
2209 (target_insn_history_range): Use gdb_disassembly_flags instead of
2210 bare int.
2211
2212 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2213
2214 * cli/cli-script.c (build_command_line): For if/while commands,
2215 check whether args is empty.
2216
2217 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2218
2219 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2220 (enum command_control_type): Likewise.
2221 (struct command_line): Likewise.
2222 (free_command_lines): Likewise.
2223 (struct command_lines_deleter): Likewise.
2224 (command_line_up): Likewise.
2225 (read_command_lines): Likewise.
2226 (read_command_lines_1): Likewise.
2227 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2228 (enum command_control_type): Likewise.
2229 (struct command_line): Likewise.
2230 (free_command_lines): Likewise.
2231 (struct command_lines_deleter): Likewise.
2232 (command_line_up): Likewise.
2233 (read_command_lines): Likewise.
2234 (read_command_lines_1): Likewise.
2235 * breakpoint.h: Include cli/cli-script.h.
2236 * extension-priv.h: Likewise.
2237 * gdbcmd.h: Likewise.
2238
2239 2017-09-04 Pedro Alves <palves@redhat.com>
2240
2241 * ada-lang.c (is_known_support_routine): Move sal declaration to
2242 where it is initialized.
2243 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2244 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2245 (clear_command, update_static_tracepoint): Remove init_sal
2246 references. Move declarations closer to initializations.
2247 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2248 initializations.
2249 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2250 references. Move sal declarations closer to initializations.
2251 * frame.c (find_frame_sal): Return a symtab_and_line via function
2252 return instead of output parameter. Remove init_sal references.
2253 * frame.h (find_frame_sal): Return a symtab_and_line via function
2254 return instead of output parameter.
2255 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2256 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2257 instead of memset.
2258 (gdbscm_find_pc_line): Remove init_sal reference.
2259 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2260 references. Move declarations closer to initializations.
2261 * infcmd.c (set_step_frame): Update. Move declarations closer to
2262 initializations.
2263 (finish_backward): Remove init_sal references. Move declarations
2264 closer to initializations.
2265 * infrun.c (process_event_stop_test, handle_step_into_function)
2266 (insert_hp_step_resume_breakpoint_at_frame)
2267 (insert_step_resume_breakpoint_at_caller): Likewise.
2268 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2269 (symbol_to_sal): Likewise.
2270 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2271 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2272 to its initialization.
2273 * reverse.c (save_bookmark_command): Use new/delete. Remove
2274 init_sal references. Move declarations closer to initializations.
2275 * source.c (get_current_source_symtab_and_line): Remove brace
2276 initialization.
2277 (set_current_source_symtab_and_line): Now takes the sal by const
2278 reference. Remove brace initialization.
2279 (line_info): Remove init_sal reference.
2280 * source.h (set_current_source_symtab_and_line): Now takes a
2281 symtab_and_line via const reference.
2282 * stack.c (set_current_sal_from_frame): Adjust.
2283 (print_frame_info): Adjust.
2284 (get_last_displayed_sal): Return the sal via function return
2285 instead of via output parameter. Simplify.
2286 (frame_info): Adjust.
2287 * stack.h (get_last_displayed_sal): Return the sal via function
2288 return instead of via output parameter.
2289 * symtab.c (init_sal): Delete.
2290 (find_pc_sect_line): Remove init_sal references. Move
2291 declarations closer to initializations.
2292 (find_function_start_sal): Remove init_sal references. Move
2293 declarations closer to initializations.
2294 * symtab.h (struct symtab_and_line): In-class initialize all
2295 fields.
2296 * tracepoint.c (set_traceframe_context)
2297 (print_one_static_tracepoint_marker): Remove init_sal references.
2298 Move declarations closer to initializations.
2299 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2300 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2301 declarations closer to initializations.
2302 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2303 init_sal references. Adjust.
2304
2305 2017-09-04 Pedro Alves <palves@redhat.com>
2306
2307 * ax-gdb.c (agent_command_1): Use range-for.
2308 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2309 * breakpoint.c: Include "common/array-view.h".
2310 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2311 parameter from struct symtabs_and_lines to
2312 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2313 (breakpoint_sals_to_pc): Change sals parameter from struct
2314 symtabs_and_lines to std::vector reference.
2315 (check_fast_tracepoint_sals): Change sals parameter from struct
2316 symtabs_and_lines to std::array_view. Use range-for.
2317 (decode_static_tracepoint_spec): Return a std::vector instead of
2318 symtabs_and_lines. Update.
2319 (create_breakpoint): Update.
2320 (break_range_command, until_break_command, clear_command): Update.
2321 (base_breakpoint_decode_location, bkpt_decode_location)
2322 (bkpt_probe_create_sals_from_location)
2323 (bkpt_probe_decode_location, tracepoint_decode_location)
2324 (tracepoint_probe_decode_location)
2325 (strace_marker_create_sals_from_location): Return a std::vector
2326 instead of symtabs_and_lines.
2327 (strace_marker_create_breakpoints_sal): Update.
2328 (strace_marker_decode_location): Return a std::vector instead of
2329 symtabs_and_lines. Update.
2330 (update_breakpoint_locations): Change struct symtabs_and_lines
2331 parameters to gdb::array_view. Adjust.
2332 (location_to_sals): Return a std::vector instead of
2333 symtabs_and_lines. Update.
2334 (breakpoint_re_set_default): Use std::vector instead of struct
2335 symtabs_and_lines.
2336 (decode_location_default): Return a std::vector instead of
2337 symtabs_and_lines. Update.
2338 * breakpoint.h: Include "common/array-view.h".
2339 (struct breakpoint_ops) <decode_location>: Now returns a
2340 std::vector instead of returning a symtabs_and_lines via output
2341 parameter.
2342 (update_breakpoint_locations): Change sals parameters to use
2343 gdb::array_view.
2344 * cli/cli-cmds.c (edit_command, list_command): Update to use
2345 std::vector and gdb::array_view.
2346 (ambiguous_line_spec): Adjust to use gdb::array_view and
2347 range-for.
2348 (compare_symtabs): Rename to ...
2349 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2350 const reference and adjust.
2351 (filter_sals): Rewrite using std::vector and standard algorithms.
2352 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2353 (jump_command): Update to use std::vector.
2354 * linespec.c (struct linespec_state) <canonical_names>: Update
2355 comment.
2356 (add_sal_to_sals_basic): Delete.
2357 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2358 (decode_line_2, create_sals_line_offset)
2359 (convert_address_location_to_sals, convert_linespec_to_sals)
2360 (convert_explicit_location_to_sals, parse_linespec)
2361 (event_location_to_sals, decode_line_full, decode_line_1)
2362 (decode_line_with_current_source)
2363 (decode_line_with_last_displayed, decode_objc)
2364 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2365 (linespec_result::~linespec_result): Adjust to use std::vector
2366 instead of symtabs_and_lines.
2367 * linespec.h (linespec_sals::sals): Now a std::vector.
2368 (struct linespec_result): Use std::vector, bool, and in-class
2369 initialization.
2370 (decode_line_1, decode_line_with_current_source)
2371 (decode_line_with_last_displayed): Return std::vector.
2372 * macrocmd.c (info_macros_command): Use std::vector.
2373 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2374 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2375 std::vector.
2376 * probe.h (parse_probes): Return a std::vector.
2377 * python/python.c (gdbpy_decode_line): Use std::vector and
2378 gdb::array_view.
2379 * source.c (select_source_symtab, line_info): Use std::vector.
2380 * stack.c (func_command): Use std::vector.
2381 * symtab.h (struct symtabs_and_lines): Delete.
2382 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2383
2384 2017-09-04 Pedro Alves <palves@redhat.com>
2385
2386 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2387 unittests/array-view-selftests.c.
2388 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2389 * common/array-view.h: New file.
2390 * unittests/array-view-selftests.c: New file.
2391
2392 2017-09-04 Pedro Alves <palves@redhat.com>
2393
2394 * cli/cli-cmds.c (edit_command): Pass message to
2395 ambiguous_line_spec.
2396 (list_command): Pass message to ambiguous_line_spec. Say
2397 "first"/"last" instead of "start" and "end" to be consistent with
2398 the manual.
2399 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2400 them to print formatted message.
2401
2402 2017-09-04 Pedro Alves <palves@redhat.com>
2403
2404 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2405 ftrace_update_insns by reference instead of pointer.
2406
2407 2017-09-04 Yao Qi <yao.qi@linaro.org>
2408
2409 * i386-go32-tdep.c: Include x86-xstate.h.
2410 (i386_go32_init_abi): Call i386_target_description.
2411 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2412 if xcr0 is X86_XSTATE_X87_MASK.
2413 * i386-tdep.h (tdesc_i386): Remove the declaration.
2414 (tdesc_i386_mmx): Likewise.
2415
2416 2017-09-04 Yao Qi <yao.qi@linaro.org>
2417
2418 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2419 X86_XSTATE_SSE_MASK instead of 0.
2420
2421 2017-09-04 Yao Qi <yao.qi@linaro.org>
2422
2423 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2424 i386_target_description.
2425 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2426 i386_target_description.
2427 * i386-tdep.c (i386_gdbarch_init): Likewise.
2428
2429 2017-09-04 Yao Qi <yao.qi@linaro.org>
2430
2431 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2432 (x86_darwin_init_abi_64): Call amd64_target_description.
2433 * amd64-dicos-tdep.c: Likewise.
2434 * amd64-fbsd-nat.c: Likewise.
2435 * amd64-fbsd-tdep.c: Likewise.
2436 * amd64-nbsd-tdep.c: Likewise.
2437 * amd64-obsd-tdep.c: Likewise.
2438 * amd64-sol2-tdep.c: Likewise.
2439 * amd64-windows-tdep.c: Likewise.
2440 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2441
2442 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2445 (btrace_function) <insn>: Change type to use std::vector.
2446 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2447 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2448 ftrace_update_insns, ftrace_compute_global_level_offset,
2449 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2450 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2451 change to std::vector.
2452 (ftrace_update_insns): Adjust to change to std::vector, change
2453 type of INSN parameter.
2454 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2455 * record-btrace.c (btrace_call_history_insn_range,
2456 btrace_compute_src_line_range,
2457 record_btrace_frame_prev_register): Adjust to change to
2458 std::vector.
2459 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2460 to change to std::vector.
2461
2462 2017-09-03 Tom Tromey <tom@tromey.com>
2463
2464 * corefile.c (reopen_exec_file): Use std::string.
2465
2466 2017-09-03 Tom Tromey <tom@tromey.com>
2467
2468 * compile/compile.c (compile_register_name_mangled): Return
2469 std::string.
2470 * compile/compile-loc2c.c (pushf_register_address): Update.
2471 (pushf_register): Update.
2472 * compile/compile-c-types.c (convert_array): Update.
2473 * compile/compile-c-symbols.c (generate_vla_size): Update.
2474 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2475 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2476 (convert_one_symbol): Update.
2477 (generate_c_for_for_one_variable): Update.
2478 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2479 std::string.
2480 (generate_register_struct): Update.
2481 * compile/compile-internal.h (c_get_range_decl_name): Return a
2482 std::string.
2483 (compile_register_name_mangled): Return std::string.
2484
2485 2017-09-03 Tom Tromey <tom@tromey.com>
2486
2487 * utils.c (perror_string): Return a std::string.
2488 (throw_perror_with_name, perror_warning_with_name): Update.
2489
2490 2017-09-03 Tom Tromey <tom@tromey.com>
2491
2492 * demangle.c (demangle_command): Use std::string,
2493 unique_xmalloc_ptr.
2494
2495 2017-09-03 Tom Tromey <tom@tromey.com>
2496
2497 * cli/cli-setshow.c (do_set_command): Use std::string.
2498
2499 2017-09-03 Tom Tromey <tom@tromey.com>
2500
2501 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2502
2503 2017-09-03 Tom Tromey <tom@tromey.com>
2504
2505 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2506
2507 2017-09-03 Tom Tromey <tom@tromey.com>
2508
2509 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2510 gdb::unique_xmalloc_ptr.
2511
2512 2017-09-03 Tom Tromey <tom@tromey.com>
2513
2514 * thread.c (print_thread_info_1): Use string_printf.
2515 (thread_apply_command, thread_apply_all_command): Use
2516 std::string.
2517
2518 2017-09-03 Tom Tromey <tom@tromey.com>
2519
2520 * valprint.c (val_print_string): Update.
2521 * gdbcore.h (memory_error_message): Return std::string.
2522 * corefile.c (memory_error_message): Return std::string.
2523 (memory_error): Update.
2524 * breakpoint.c (insert_bp_location): Update.
2525
2526 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2527
2528 * target/waitstatus.h (target_waitstatus_to_string): Change
2529 return type to std::string.
2530 * target/waitstatus.c (target_waitstatus_to_string): Return
2531 std::string.
2532 * target.h (target_waitstatus_to_string): Remove declaration.
2533 * infrun.c (resume, clear_proceed_status_thread,
2534 print_target_wait_results, do_target_wait, save_waitstatus,
2535 stop_all_threads): Adjust.
2536 * record-btrace.c (record_btrace_wait): Adjust.
2537 * target-debug.h
2538 (target_debug_print_struct_target_waitstatus_p): Adjust.
2539
2540 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2541
2542 PR gdb/22046
2543 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2544 detection.
2545
2546 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2547
2548 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2549 for setting/unsetting environment variables on the remote target.
2550 (New remote packets): Add entries for QEnvironmentHexEncoded,
2551 QEnvironmentUnset and QEnvironmentReset.
2552 * common/environ.c (gdb_environ::operator=): Extend method to
2553 handle m_user_set_env_list and m_user_unset_env_list.
2554 (gdb_environ::clear): Likewise.
2555 (match_var_in_string): Change type of first parameter from 'char
2556 *' to 'const char *'.
2557 (gdb_environ::set): Extend method to handle
2558 m_user_set_env_list and m_user_unset_env_list.
2559 (gdb_environ::unset): Likewise.
2560 (gdb_environ::clear_user_set_env): New method.
2561 (gdb_environ::user_set_envp): Likewise.
2562 (gdb_environ::user_unset_envp): Likewise.
2563 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2564 m_user_unset_env_list on move constructor/assignment.
2565 (unset): Add new default parameter 'update_unset_list = true'.
2566 (clear_user_set_env): New method.
2567 (user_set_envp): Likewise.
2568 (user_unset_envp): Likewise.
2569 (m_user_set_env_list): New std::set.
2570 (m_user_unset_env_list): Likewise.
2571 * common/rsp-low.c (hex2str): New function.
2572 (bin2hex): New overload for bin2hex function.
2573 * common/rsp-low.c (hex2str): New prototype.
2574 (str2hex): New overload prototype.
2575 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2576 QEnvironmentUnset and QEnvironmentReset.
2577 (remote_protocol_features): Add QEnvironmentHexEncoded,
2578 QEnvironmentUnset and QEnvironmentReset packets.
2579 (send_environment_packet): New function.
2580 (extended_remote_environment_support): Likewise.
2581 (extended_remote_create_inferior): Call
2582 extended_remote_environment_support.
2583 (_initialize_remote): Add QEnvironmentHexEncoded,
2584 QEnvironmentUnset and QEnvironmentReset packet configs.
2585 * unittests/environ-selftests.c (gdb_selftest_env_var):
2586 New variable.
2587 (test_vector_initialization): New function.
2588 (test_init_from_host_environ): Likewise.
2589 (test_reinit_from_host_environ): Likewise.
2590 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2591 Likewise.
2592 (test_unset_set_empty_vector): Likewise.
2593 (test_vector_clear): Likewise.
2594 (test_std_move): Likewise.
2595 (test_move_constructor):
2596 (test_self_move): Likewise.
2597 (test_set_unset_reset): Likewise.
2598 (run_tests): Rewrite in terms of the functions above.
2599
2600 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2601
2602 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2603 (adi_available): Use a temp variable of type CORE_ADDR as argument
2604 3 when calling target_auxv_search.
2605 (adi_normalize_address): Use masks and xor operators to calculate
2606 normalized address.
2607 (adi_read_versions, adi_write_versions, adi_print_versions)
2608 (do_examine, do_assign): Use paddress.
2609
2610 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2611
2612 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2613 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2614 out of loop and add supply of FIR.
2615 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2616 add collect of FIR.
2617
2618 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2619
2620 PR gdb/21827
2621 * cli/cli-script.c (define_command): Don't convert command name
2622 to lower case.
2623
2624 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2625
2626 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2627 Update all callers accordingly. Remove all code blocks handling
2628 the case where DISPP is not NULL.
2629
2630 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 PR symtab/22003
2633 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2634 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2635 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2636
2637 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2638
2639 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2640 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2641 (read_comp_units_from_section): New parameter abbrev_section, use
2642 read_and_check_comp_unit_head, allocate signatured_type if needed.
2643 (create_all_comp_units): Update read_comp_units_from_section caller.
2644
2645 2017-08-23 Pedro Alves <palves@redhat.com>
2646
2647 PR remote/21852
2648 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2649 to null_ptid and switch to thread without reading the registers
2650 after adding the inferior.
2651
2652 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2653
2654 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2655 compile-gcc.
2656 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2657 (compile_to_object): Implement compile_gcc.
2658 (_initialize_compile): Install "set compile-gcc". Initialize
2659 compile_gcc.
2660
2661 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2662
2663 * compile/compile.c (compile_to_object): Conditionally call
2664 set_verbose. Conditionally call compile or compile_v0.
2665
2666 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2667
2668 * sparc64-tdep.h: (adi_normalize_address): New export.
2669 * sparc-nat.h: (open_adi_tag_fd): New export.
2670 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2671 * sparc64-linux-tdep.c:
2672 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2673 (sparc64_linux_handle_segmentation_fault): New function.
2674 (sparc64_linux_init_abi): Register
2675 sparc64_linux_handle_segmentation_fault
2676 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2677 (sparc64_addr_bits_remove): New function.
2678 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2679 (MAX_PROC_NAME_SIZE): New macro.
2680 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2681 (sparc64adilist): New variable.
2682 (adi_proc_list): New variable.
2683 (find_adi_info): New function.
2684 (add_adi_info): New function.
2685 (get_adi_info_proc): New function.
2686 (get_adi_info): New function.
2687 (info_adi_command): New function.
2688 (read_maps_entry): New function.
2689 (adi_available): New function.
2690 (adi_normalize_address): New function.
2691 (adi_align_address): New function.
2692 (adi_convert_byte_count): New function.
2693 (adi_tag_fd): New function.
2694 (adi_is_addr_mapped): New function.
2695 (adi_read_versions): New function.
2696 (adi_write_versions): New function.
2697 (adi_print_versions): New function.
2698 (do_examine): New function.
2699 (do_assign): New function.
2700 (adi_examine_command): New function.
2701 (adi_assign_command): New function.
2702 (_initialize_sparc64_adi_tdep): New function.
2703
2704 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2705
2706 * breakpoint.c (breakpoints_info): Rename to ...
2707 (info_breakpoints_command): ... this.
2708 (watchpoints_info): Rename to ...
2709 (info_watchpoints_command): ... this.
2710 (tracepoints_info): Rename to ...
2711 (info_tracepoints_command): ... this.
2712 (_initialize_breakpoint): Adjust.
2713 * dcache.c (dcache_info): Rename to ...
2714 (info_display_command): ... this.
2715 (_initialize_dcache): Adjust.
2716 * frame.h (args_info): Rename to ...
2717 (info_args_command): ... this.
2718 (locals_info): Rename to ...
2719 (info_locals_command): ... this.
2720 * infcmd.c (nofp_registers_info): Rename to ...
2721 (info_registers_command): ... this.
2722 (float_info): Rename to ...
2723 (info_float_command): ... this.
2724 (program_info): Rename to ...
2725 (info_program_command): ... this.
2726 (all_registers_info): Rename to ...
2727 (info_all_registers_command): ... this.
2728 (vector_info): Rename to ...
2729 (info_vector_command): ... this.
2730 (float_info): Rename to ...
2731 (info_float_command): ... this.
2732 (_initialize_infcmd): Adjust.
2733 * inferior.h (term_info): Rename to ...
2734 (info_terminal_command): ... this.
2735 * inflow.c (term_info): Rename to ...
2736 (info_terminal_command): ... this.
2737 (_initialize_inflow): Adjust.
2738 * infrun.c (signals_info): Rename to ...
2739 (info_signals_command): ... this.
2740 (_initialize_infrun): Adjust.
2741 * objc-lang.c (classes_info): Rename to ...
2742 (info_classes_command): ... this.
2743 (selectors_info): Rename to ...
2744 (info_selectors_command): ... this.
2745 (_initialize_objc_language): Adjust.
2746 * printcmd.c (sym_info): Rename to ...
2747 (info_symbol_command): ... this.
2748 (address_info): Rename to ...
2749 (info_address_command): ... this.
2750 (display_info): Rename to ...
2751 (info_display_command): ... this.
2752 (_initialize_printcmd): Adjust.
2753 * reverse.c (bookmarks_info): Rename to ...
2754 (info_breakpoints_command): ... this.
2755 (_initialize_reverse): Adjust.
2756 * ser-go32.c (dos_info): Rename to ...
2757 (info_serial_command): ... this.
2758 (_initialize_ser_dos): Adjust.
2759 * skip.c (skip_info): Rename to ...
2760 (info_skip_command): ... this.
2761 (_initialize_step_skip): Adjust.
2762 * source.c (line_info): Rename to ...
2763 (info_line_command): ... this.
2764 (source_info): Rename to ...
2765 (info_source_command)
2766 * stack.c (frame_info): Rename to ...
2767 (info_frame_command): ... this.
2768 (locals_info): Rename to ...
2769 (info_locals_command): ... this.
2770 (args_info): Rename to ...
2771 (info_args_command): ... this.
2772 (_initialize_stack): Adjust.
2773 * symtab.c (sources_info): Rename to ...
2774 (info_sources_command): ... this.
2775 (variables_info): Rename to ...
2776 (info_variables_command): ... this.
2777 (functions_info): Rename to ...
2778 (info_functions_command): ... this.
2779 (types_info): Rename to ...
2780 (info_types_command): ... this.
2781 (_initialize_symtab): Adjust.
2782 * target.c (target_info): Rename to ...
2783 (info_target_command): ... this.
2784 (initialize_targets): Adjust.
2785 * tracepoint.c (tvariables_info): Rename to ...
2786 (info_tvariables_command): ... this.
2787 (scope_info): Rename to ...
2788 (info_scope_command): ... this.
2789 (trace_dump_actions): Adjust.
2790 (_initialize_tracepoint): Adjust.
2791
2792 2017-08-22 Tom Tromey <tom@tromey.com>
2793
2794 * breakpoint.h (install_breakpoint): Update.
2795 * breakpoint.c (add_solib_catchpoint): Update.
2796 (install_breakpoint): Change argument to a std::unique_ptr.
2797 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2798 (create_breakpoint_sal, create_breakpoint): Update.
2799 (watch_command_1, catch_exec_command_1)
2800 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2801 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2802 Return the breakpoint.
2803 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2804 (new_single_step_breakpoint): Update.
2805 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2806 std::unique_ptr.
2807 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2808 std::unique_ptr.
2809 * break-catch-sig.c (create_signal_catchpoint): Use
2810 std::unique_ptr.
2811 * ada-lang.c (create_ada_exception_catchpoint): Use
2812 std::unique_ptr.
2813
2814 2017-08-22 Tom Tromey <tom@tromey.com>
2815
2816 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2817
2818 2017-08-22 Tom Tromey <tom@tromey.com>
2819
2820 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2821 (lookup_partial_symbol): Update.
2822
2823 2017-08-22 Tom Tromey <tom@tromey.com>
2824
2825 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2826 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2827 (find_and_open_source, symtab_to_fullname): Update.
2828 * psymtab.c (psymtab_to_fullname): Update.
2829
2830 2017-08-22 Tom Tromey <tom@tromey.com>
2831
2832 * exec.c (exec_file_attach): Update.
2833 * linux-thread-db.c (try_thread_db_load): Update.
2834 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2835 * utils.c (gdb_realpath): Change return type.
2836 (gdb_realpath_keepfile): Update.
2837 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2838 (_initialize_utils): Register the new self test.
2839 * source.c (openp): Update.
2840 (find_and_open_source): Update.
2841 * nto-tdep.c (nto_find_and_open_solib): Update.
2842 * main.c (set_gdb_data_directory): Update.
2843 (captured_main_1): Update.
2844 * dwarf2read.c (dwarf2_get_dwz_file): Update
2845 (dw2_map_symbol_filenames): Update.
2846 * auto-load.c (auto_load_safe_path_vec_update): Update.
2847 (filename_is_in_auto_load_safe_path_vec): Change type of
2848 "filename_realp".
2849 (auto_load_objfile_script): Update.
2850 (file_is_auto_load_safe): Update. Use std::string.
2851 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2852
2853 2017-08-22 Tom Tromey <tom@tromey.com>
2854
2855 * utils.c (gdb_realpath_keepfile): Return a
2856 gdb::unique_xmalloc_ptr.
2857 * exec.c (exec_file_attach): Update.
2858 * utils.h (gdb_realpath_keepfile): Return a
2859 gdb::unique_xmalloc_ptr.
2860
2861 2017-08-22 Tom Tromey <tom@tromey.com>
2862
2863 * compile/compile.c (compile_file_command): Use
2864 gdb::unique_xmalloc_ptr, std::string.
2865 * utils.c (gdb_abspath): Change return type.
2866 * source.c (openp): Update.
2867 * objfiles.c (allocate_objfile): Update.
2868 * main.c (set_gdb_data_directory): Update.
2869 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2870
2871 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2872
2873 * cli-cmds.c (list_commands): List actual code around more than
2874 one location.
2875
2876 2017-08-21 John Baldwin <jhb@FreeBSD.org>
2877
2878 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2879
2880 2017-08-21 Pedro Alves <palves@redhat.com>
2881
2882 PR gdb/19487
2883 * c-exp.y (variable production): Handle function aliases.
2884 * minsyms.c (msymbol_is_text): New function.
2885 * minsyms.h (msymbol_is_text): Declare.
2886 * symtab.c (find_function_alias_target): New function.
2887 * symtab.h (find_function_alias_target): Declare.
2888
2889 2017-08-21 Pedro Alves <palves@redhat.com>
2890
2891 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2892 typedefs.
2893 * typeprint.c (whatis_exp): If handling "whatis", and expression
2894 is OP_TYPE, strip one typedef level. Otherwise don't strip
2895 typedefs here.
2896 * valops.c (value_cast): Save "to" type before resolving
2897 stubs/typedefs. Use that type as resulting value's type.
2898
2899 2017-08-18 Tom Tromey <tom@tromey.com>
2900 Pedro Alves <palves@redhat.com>
2901
2902 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2903 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2904 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2905 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2906 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2907 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2908 (linux_get_siginfo_data): Add "thread" argument. Use
2909 scoped_restore.
2910 * linux-nat.c (linux_child_follow_fork)
2911 (check_stopped_by_watchpoint): Use scoped_restore.
2912 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2913 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2914 (restore_inferior_ptid, save_inferior_ptid): Remove.
2915 * btrace.c (btrace_fetch): Use scoped_restore.
2916 * bsd-uthread.c (bsd_uthread_fetch_registers)
2917 (bsd_uthread_store_registers): Use scoped_restore.
2918 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2919 scoped_restore.
2920 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2921 (aix_thread_xfer_partial): Use scoped_restore.
2922 * inferior.h (save_inferior_ptid): Remove.
2923
2924 2017-08-18 Yao Qi <yao.qi@linaro.org>
2925
2926 PR tdep/21818
2927 * arm-tdep.c (gdb_print_insn_arm): Mark
2928 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2929
2930 2017-08-18 Yao Qi <yao.qi@linaro.org>
2931
2932 * NEWS: Mention GDBserver's new option "--selftest".
2933 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2934 * selftest.c: Move it to common/selftest.c.
2935 * selftest.h: Move it to common/selftest.h.
2936 * selftest-arch.c (reset): New function.
2937 (tests_with_arch): Call reset.
2938
2939 2017-08-18 Yao Qi <yao.qi@linaro.org>
2940
2941 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2942 instead of exception_fprintf and printf_filtered.
2943
2944 2017-08-18 Yao Qi <yao.qi@linaro.org>
2945
2946 * selftest.c (register_self_test): Rename it to
2947 selftests::register_test.
2948 (run_self_tests): selftest::run_tests.
2949 * selftest.h: Update declarations.
2950 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2951 selftests::register_test_foreach_arch.
2952 * selftest-arch.h: Update declaration.
2953 * aarch64-tdep.c: Update.
2954 * arm-tdep.c: Likewise.
2955 * disasm-selftests.c: Likewise.
2956 * dwarf2loc.c: Likewise.
2957 * dwarf2-frame.c: Likewise.
2958 * findvar.c: Likewise.
2959 * gdbarch-selftests.c: Likewise.
2960 * maint.c (maintenance_selftest): Likewise.
2961 * regcache.c: Likewise.
2962 * rust-exp.y: Likewise.
2963 * selftest-arch.c: Likewise.
2964 * unittests/environ-selftests.c: Likewise.
2965 * unittests/function-view-selftests.c: Likewise.
2966 * unittests/offset-type-selftests.c: Likewise.
2967 * unittests/optional-selftests.c: Likewise.
2968 * unittests/scoped_restore-selftests.c: Likewise.
2969 * utils-selftests.c: Likewise.
2970
2971 2017-08-17 Pedro Alves <palves@redhat.com>
2972
2973 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2974 local.
2975
2976 2017-08-17 Pedro Alves <palves@redhat.com>
2977
2978 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2979 field.
2980 (reset_die_in_process): Delete, replaced by ...
2981 (process_die_scope): ... this new class. Make it responsible for
2982 freeing cu->line_header too.
2983 (process_die): Use process_die_scope.
2984 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2985 cu->line_header_die_owner. Don't release the line header if it's
2986 owned by the CU.
2987 (setup_type_unit_groups): Make the CU/DIE own the line header.
2988 Don't release the line header here.
2989
2990 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2991
2992 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2993
2994 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2995
2996 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2997 Single-Key mode
2998
2999 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3000
3001 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3002 mode command list.
3003
3004 2017-08-15 Stafford Horne <shorne@gmail.com>
3005
3006 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3007
3008 2017-08-15 Stafford Horne <shorne@gmail.com>
3009
3010 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3011
3012 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3013
3014 PR gdb/21954
3015 * infcmd.c (unset_environment_command): Use the 'clear' method on
3016 the environment instead of resetting it.
3017
3018 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3019
3020 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3021 platforms.
3022
3023 2017-08-14 Tom Tromey <tom@tromey.com>
3024
3025 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3026 (print_binary_chars): Likewise.
3027 (BITS_IN_BYTES): Remove.
3028
3029 2017-08-14 Tom Tromey <tom@tromey.com>
3030
3031 PR gdb/21675
3032 * valprint.c (LOW_ZERO): Change value to 034.
3033 (print_octal_chars): Add static_asserts for octal constants.
3034 * printcmd.c (print_scalar_formatted): Add 'd' case.
3035
3036 2017-08-11 Tom Tromey <tom@tromey.com>
3037
3038 * symfile.c (add_symbol_file_command): Use std::vector.
3039
3040 2017-08-14 Tom Tromey <tom@tromey.com>
3041
3042 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3043 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3044 std::move.
3045 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3046
3047 2017-08-11 Pedro Alves <palves@redhat.com>
3048
3049 * infrun.c (process_event_stop_test): Adjust
3050 function_name_is_marked_for_skip call.
3051 * skip.c: Include <list>.
3052 (skiplist_entry): Make it a class with private fields, and
3053 getters/setters.
3054 (skiplist_entry_chain): Delete.
3055 (skiplist_entries): New.
3056 (skiplist_entry_count): Delete.
3057 (highest_skiplist_entry_num): New.
3058 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3059 (add_skiplist_entry): Delete.
3060 (skiplist_entry::skiplist_entry): New.
3061 (skiplist_entry::add_entry): New.
3062 (skip_file_command, skip_function): Adjust.
3063 (compile_skip_regexp): Delete.
3064 (skip_command): Don't compile regexp here. Adjust to use
3065 skiplist_entry::add_entry.
3066 (skip_info): Adjust to use range-for and getters.
3067 (skip_enable_command, skip_disable_command): Adjust to use
3068 range-for and setters.
3069 (skip_delete_command): Adjust to use std::list.
3070 (add_skiplist_entry): Delete.
3071 (skip_file_p): Delete, refactored as ...
3072 (skiplist_entry::do_skip_file_p): ... this new method.
3073 (skip_gfile_p): Delete, refactored as ...
3074 (skiplist_entry::do_gskip_file_p): ... this new method.
3075 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3076 (skiplist_entry::skip_function_p): ... this new method.
3077 (function_name_is_marked_for_skip): Now returns bool, and takes
3078 the function sal by const reference. Adjust to use range-for and
3079 skiplist_entry methods.
3080 (_initialize_step_skip): Remove references to
3081 skiplist_entry_chain, skiplist_entry_count.
3082 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3083 takes the function sal by const reference.
3084
3085 2017-08-11 Yao Qi <yao.qi@linaro.org>
3086
3087 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3088 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3089 (dwarf2_frame_cache):
3090 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3091 RETURN_MASK_ALL and set *this_case to NULL.
3092 * frame-unwind.h: Update comments.
3093
3094 2017-08-11 Yao Qi <yao.qi@linaro.org>
3095
3096 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3097 (dwarf2_frame_state_copy_regs): Remove.
3098 (dwarf2_frame_state_free_regs): Remove.
3099 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3100 (dwarf2_restore_rule): Call method .alloc_regs instead of
3101 dwarf2_frame_state_alloc_regs.
3102 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3103 constructor. Call std::move.
3104 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3105 (dwarf2_frame_cache): Likewise.
3106
3107 [GDB_SELF_TEST]: Include selftest.h and
3108 selftest-arch.h.
3109 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3110 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3111 execute_cfa_program_test.
3112
3113 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3114 copy ctor, assignment operator, move assignment.
3115 <alloc_regs>: New method.
3116 <swap>: New method.
3117 (struct dwarf2_frame_state): Delete dtor.
3118 (dwarf2_frame_state_alloc_regs): Remove declaration.
3119 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3120 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3121
3122 2017-08-11 Yao Qi <yao.qi@linaro.org>
3123
3124 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3125 (dwarf2_frame_state::dwarf2_frame_state): New.
3126 (dwarf2_frame_state::~dwarf2_frame_state): New.
3127 (dwarf2_fetch_cfa_info): Update.
3128 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3129 rather than a pointer. Update code.
3130 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3131 dtor.
3132 <data_align, code_align, retaddr_column>: Change them to const.
3133 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3134 to bool.
3135
3136 2017-08-11 Yao Qi <yao.qi@linaro.org>
3137
3138 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3139 <loc.exp>: New field.
3140 * dwarf2-frame.c (execute_cfa_program): Update.
3141 (dwarf2_frame_prev_register): Update.
3142
3143 2017-08-10 Pedro Alves <palves@redhat.com>
3144
3145 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3146
3147 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3148
3149 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3150 (fbsd_pending_children): Use std::list.
3151 (fbsd_remember_child): Likewise.
3152 (fbsd_is_child_pending): Likewise.
3153 (fbsd_pending_vfork_done): Use std::forward_list.
3154 (fbsd_add_vfork_done): Likewise.
3155 (fbsd_is_vfork_done_pending): Likewise.
3156 (fbsd_next_vfork_done): Likewise.
3157
3158 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3159
3160 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3161 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3162 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3163 for `mapfilename'.
3164 (fbsd_xfer_partial): Use gdb::byte_vector.
3165 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3166
3167 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3168
3169 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3170 "filestuff.h".
3171 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3172
3173 2017-08-09 Tom Tromey <tom@tromey.com>
3174
3175 * skip.c (skiplist_entry): New constructor.
3176 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3177 (skiplist_entry::file_is_glob): Now bool.
3178 (skiplist_entry::file, skiplist_entry::function): Now
3179 std::string.
3180 (make_skip_entry): Return a unique_ptr. Use new.
3181 (free_skiplist_entry, free_skiplist_entry_cleanup)
3182 (make_free_skiplist_entry_cleanup): Remove.
3183 (skip_command, skip_disable_command, add_skiplist_entry)
3184 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3185 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3186 (function_name_is_marked_for_skip): Update.
3187 (skip_delete_command): Update. Use delete.
3188
3189 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3190
3191 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3192 (aarch64_linux_core_read_description): New function.
3193 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3194
3195 2017-08-09 Pedro Alves <palves@redhat.com>
3196
3197 * cp-name-parser.y (cp_comp_to_string): Return a
3198 gdb::unique_xmalloc_ptr<char>.
3199 * cp-support.c (replace_typedefs_qualified_name)
3200 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3201 (cp_canonicalize_string_full): Use op= instead of explicit
3202 convertion.
3203 (cp_class_name_from_physname, method_name_from_physname)
3204 (cp_func_name, cp_remove_params): Adjust to use
3205 gdb::unique_xmalloc_ptr<char>.
3206 * cp-support.h (cp_comp_to_string): Return a
3207 gdb::unique_xmalloc_ptr<char>.
3208 * python/py-type.c (typy_lookup_type): Adjust to use
3209 gdb::unique_xmalloc_ptr<char>.
3210
3211 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3212
3213 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3214
3215 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3216 Yao Qi <yao.qi@linaro.org>
3217
3218 * cp-support.c (cp_canonicalize_string_full): Use
3219 gdb::unique_xmalloc_ptr<char>.
3220 (cp_canonicalize_string): Likewise.
3221
3222 2017-08-09 Yao Qi <yao.qi@linaro.org>
3223
3224 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3225 * regformats/i386/amd64-avx-avx512.dat: Remove.
3226 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3227 * regformats/i386/amd64-avx-mpx.dat:Remove.
3228 * regformats/i386/amd64-avx.dat: Remove.
3229 * regformats/i386/amd64-mpx.dat: Remove.
3230 * regformats/i386/i386-avx-avx512.dat: Remove.
3231 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3232 * regformats/i386/i386-avx-mpx.dat: Remove.
3233 * regformats/i386/i386-mmx.dat: Remove.
3234 * regformats/i386/i386-mpx.dat: Remove.
3235
3236 2017-08-09 Yao Qi <yao.qi@linaro.org>
3237
3238 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3239 * amd64-tdep.c: Don't include features/i386/x32*.c.
3240 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3241 functions.
3242 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3243 and i386/x32-avx-avx512.
3244 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3245 and i386/x32.xml.
3246 * features/i386/x32-avx-avx512.c: Removed.
3247 * features/i386/x32-avx-avx512.xml: Removed.
3248 * features/i386/x32-avx.c: Removed.
3249 * features/i386/x32-avx.xml: Removed.
3250 * features/i386/x32.c: Removed.
3251 * features/i386/x32.xml: Removed.
3252 * regformats/i386/x32-avx-avx512.dat: Removed.
3253 * regformats/i386/x32-avx.dat: Removed.
3254 * regformats/i386/x32.dat: Removed.
3255
3256 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3257
3258 PR breakpoints/21886
3259 * mem-break.c (default_memory_insert_breakpoint): Use
3260 `->placed_address' rather than `->reqstd_address' for the
3261 breakpoint location.
3262
3263 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3264
3265 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3266 assertions.
3267
3268 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3269
3270 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3271 a union of `tdep_info', `tdesc_data' and `id'.
3272 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3273 rather than `info.tdep_info'.
3274 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3275 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3276 * i386-tdep.c (i386_gdbarch_init): Likewise.
3277 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3278 * mips-tdep.c (mips_gdbarch_init): Likewise.
3279 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3280 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3281 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3282 `info.tdep_info'.
3283 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3284 `info.tdep_info'.
3285 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3286 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3287 `info.tdep_info'.
3288 * spu-tdep.c (spu_gdbarch_init): Likewise.
3289 * gdbarch.h: Regenerate.
3290
3291 2017-08-07 Leszek Swirski <leszeks@google.com>
3292
3293 PR symtab/20899
3294 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3295
3296 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3297
3298 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3299 (gdbsim_open): Rename gdb_argv args object to argv.
3300
3301 2017-08-05 Tom Tromey <tom@tromey.com>
3302
3303 * compile/compile-object-load.c (compile_object_load): Use
3304 gdb::unique_xmalloc_ptr.
3305 * cli/cli-dump.c (scan_filename): Rename from
3306 scan_filename_with_cleanup. Change return type.
3307 (scan_expression): Rename from scan_expression_with_cleanup.
3308 Change return type.
3309 (dump_memory_to_file, dump_value_to_file, restore_command):
3310 Use gdb::unique_xmalloc_ptr. Update.
3311 * cli/cli-cmds.c (find_and_open_script): Use
3312 gdb::unique_xmalloc_ptr.
3313 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3314 * symmisc.c (maintenance_print_symbols)
3315 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3316 * symfile.c (symfile_bfd_open, generic_load)
3317 (add_symbol_file_command, remove_symbol_file_command): Use
3318 gdb::unique_xmalloc_ptr.
3319 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3320 * psymtab.c (maintenance_print_psymbols): Use
3321 gdb::unique_xmalloc_ptr.
3322 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3323 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3324 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3325 (reload_shared_libraries_1): Likewise.
3326
3327 2017-08-05 Tom Tromey <tom@tromey.com>
3328
3329 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3330 (rust_op_vector, rust_set_vector): New typedefs.
3331 (current_parser): New global.
3332 (work_obstack): Change to pointer type. Update all users.
3333 (rust_ast, pstate): Remove globals.
3334 (struct rust_parser): New.
3335 (%union) <params, field_inits>: Change type.
3336 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3337 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3338 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3339 (convert_params_to_types, convert_params_to_expression): Change
3340 type of "params".
3341 (ast_string): Change type of "fields".
3342 (rust_parse): Make a rust_parser. Remove cleanups.
3343 (rust_lex_tests): Make and install an auto_obstack.
3344
3345 2017-08-04 Yao Qi <yao.qi@linaro.org>
3346
3347 * configure.srv (ipa_x32_linux_regobj): New.
3348 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3349 instead of X86_TDESC_AVX512.
3350 (initialize_low_tracepoint): Call
3351 init_registers_x32_avx_avx512_linux.
3352
3353 2017-08-04 Yao Qi <yao.qi@linaro.org>
3354
3355 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3356
3357 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3358
3359 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3360
3361 2017-08-03 Tom Tromey <tom@tromey.com>
3362
3363 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3364 Remove.
3365 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3366
3367 2017-08-03 Tom Tromey <tom@tromey.com>
3368
3369 * python/py-param.c (compute_enum_values): Use gdb_argv.
3370
3371 2017-08-03 Tom Tromey <tom@tromey.com>
3372
3373 * utils.h (struct gdb_argv_deleter): New.
3374 (gdb_argv): New class.
3375 * utils.c (gdb_argv::reset): New method.
3376 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3377 * tracefile.c (tsave_command): Use gdb_argv.
3378 * top.c (new_ui_command): Use gdb_argv.
3379 * symmisc.c (maintenance_print_symbols)
3380 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3381 * symfile.c (symbol_file_command, generic_load)
3382 (remove_symbol_file_command): Use gdb_argv.
3383 * stack.c (backtrace_command): Use gdb_argv.
3384 * source.c (add_path, show_substitute_path_command)
3385 (unset_substitute_path_command, set_substitute_path_command):
3386 Use gdb_argv.
3387 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3388 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3389 * remote.c (extended_remote_run, remote_put_command)
3390 (remote_get_command, remote_delete_command): Use gdb_argv.
3391 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3392 (gdbsim_open): Use gdb_argv.
3393 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3394 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3395 * procfs.c (procfs_info_proc): Use gdb_argv.
3396 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3397 * infrun.c (handle_command): Use gdb_argv.
3398 * inferior.c (add_inferior_command, clone_inferior_command):
3399 Use gdb_argv.
3400 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3401 * exec.c (exec_file_command): Use gdb_argv.
3402 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3403 * compile/compile.c (build_argc_argv): Use gdb_argv.
3404
3405 2017-08-03 Tom Tromey <tom@tromey.com>
3406
3407 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3408
3409 2017-08-03 Tom Tromey <tom@tromey.com>
3410
3411 * python/python.c (compute_python_string): Return std::string.
3412 (gdbpy_eval_from_control_command): Update.
3413 (do_start_initialization): Use std::string.
3414 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3415 xstrprintf.
3416 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3417 xstrprintf.
3418
3419 2017-08-03 Tom Tromey <tom@tromey.com>
3420
3421 * top.h (do_restore_instream_cleanup): Remove.
3422 * top.c (do_restore_instream_cleanup): Remove.
3423 (read_command_file): Use scoped_restore.
3424 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3425
3426 2017-08-03 Tom Tromey <tom@tromey.com>
3427
3428 * cli/cli-script.c (execute_user_command)
3429 (execute_control_command): Use scoped_restore.
3430
3431 2017-08-03 Tom Tromey <tom@tromey.com>
3432
3433 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3434 (execute_user_command): Remove user_call_depth; use
3435 user_args_stack's size instead.
3436
3437 2017-08-03 Tom Tromey <tom@tromey.com>
3438
3439 * top.h (in_user_command): Remove.
3440 * top.c (in_user_command): Remove.
3441 * cli/cli-script.c (do_restore_user_call_depth)
3442 (execute_user_command): Update.
3443
3444 2017-08-03 Tom Tromey <tom@tromey.com>
3445
3446 * valops.c (search_struct_method): Use gdb::byte_vector.
3447 * valarith.c (value_concat): Use std::vector.
3448 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3449 (simple_search_memory): Likewise.
3450 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3451 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3452 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3453 * elfread.c (elf_rel_plt_read): Use std::string.
3454 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3455 * cli/cli-dump.c (restore_section_callback): Use
3456 gdb::byte_vector.
3457
3458 2017-08-03 Tom Tromey <tom@tromey.com>
3459
3460 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3461
3462 2017-08-03 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3465 (tui_register_format): Use scoped_restore.
3466
3467 2017-08-03 Tom Tromey <tom@tromey.com>
3468
3469 * reverse.c (exec_direction_default): Remove.
3470 (exec_reverse_once): Use scoped_restore.
3471 * remote.c (restore_remote_timeout): Remove.
3472 (remote_flash_erase, remote_flash_write, remote_flash_done)
3473 (readchar, remote_serial_write): Use scoped_restore.
3474 * cli/cli-script.c (struct source_cleanup_lines_args)
3475 (source_cleanup_lines): Remove.
3476 (script_from_file): Use scoped_restore.
3477 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3478 (source_command): Use scoped_restore.
3479
3480 2017-08-03 Tom Tromey <tom@tromey.com>
3481
3482 * utils.h (make_cleanup_free_so): Remove.
3483 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3484 * solist.h (struct so_deleter): New.
3485 (so_list_up): New typedef.
3486 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3487
3488 2017-08-03 Tom Tromey <tom@tromey.com>
3489
3490 * utils.h (make_cleanup_restore_current_language): Remove.
3491 * utils.c (do_restore_current_language)
3492 (make_cleanup_restore_current_language): Remove.
3493 * parse.c (parse_exp_in_context_1)
3494 (parse_expression_with_language): Use
3495 scoped_restore_current_language.
3496 * mi/mi-main.c (mi_cmd_execute): Use
3497 scoped_restore_current_language.
3498 * language.h (scoped_restore_current_language): New class.
3499
3500 2017-08-03 Tom Tromey <tom@tromey.com>
3501
3502 * compile/compile.c (cleanup_unlink_file): Remove.
3503 (compile_to_object): Use gdb::unlinker.
3504 (eval_compile_command): Likewise.
3505
3506 2017-08-03 Tom Tromey <tom@tromey.com>
3507
3508 * utils.h (make_cleanup_fclose): Remove.
3509 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3510
3511 2017-08-03 Tom Tromey <tom@tromey.com>
3512
3513 * top.c (open_terminal_stream): Return gdb_file_up.
3514 (new_ui_command): Update.
3515
3516 2017-08-03 Tom Tromey <tom@tromey.com>
3517
3518 * source.c (print_source_lines_base, forward_search_command)
3519 (reverse_search_command): Use gdb_file_up.
3520
3521 2017-08-03 Tom Tromey <tom@tromey.com>
3522
3523 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3524
3525 2017-08-03 Tom Tromey <tom@tromey.com>
3526
3527 * cli/cli-cmds.c (find_and_open_script): Change return type.
3528 Remove "streamp" and "full_path" parameters.
3529 (source_script_with_search): Update.
3530 * auto-load.c (source_script_file): Update.
3531 * cli/cli-cmds.h (find_and_open_script): Change type.
3532 (open_script): New struct.
3533
3534 2017-08-03 Tom Tromey <tom@tromey.com>
3535
3536 * xml-support.c (xml_fetch_content_from_file): Update.
3537 * ui-file.c (stdio_file::open): Update.
3538 * tracefile-tfile.c (tfile_start): Update.
3539 * remote.c (remote_file_put, remote_file_get): Update.
3540 * nat/linux-procfs.c (linux_proc_get_int)
3541 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3542 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3543 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3544 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3545 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3546 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3547 * linux-nat.c (linux_proc_pending_signals): Update.
3548 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3549 (file_closer): Remove.
3550 * compile/compile.c (compile_to_object): Update.
3551 * common/filestuff.h (struct gdb_file_deleter): New.
3552 (gdb_file_up): New typedef.
3553 (gdb_fopen_cloexec): Change return type.
3554 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3555 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3556 (dump_binary_file, restore_binary_file): Update.
3557 * auto-load.c (auto_load_objfile_script_1): Update.
3558
3559 2017-08-03 Tom Tromey <tom@tromey.com>
3560
3561 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3562 (info_static_tracepoint_markers_command): Likewise.
3563 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3564 * skip.c (skip_info): Use ui_out_emit_table.
3565 * progspace.c (print_program_space): Use ui_out_emit_table.
3566 * osdata.c (info_osdata): Use ui_out_emit_table.
3567 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3568 ui_out_emit_table.
3569 * linux-thread-db.c (info_auto_load_libthread_db): Use
3570 ui_out_emit_table.
3571 * inferior.c (print_inferior): Use ui_out_emit_table.
3572 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3573 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3574 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3575 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3576 * ui-out.h (class ui_out_emit_table): New.
3577
3578 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3579
3580 * mips-tdep.c (mips_fpu_type_str): New function.
3581 (mips_dump_tdep): Call it.
3582
3583 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3584
3585 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3586 `->mips_fpu_type'.
3587
3588 2017-07-31 Xavier Roirand <roirand@adacore.com>
3589
3590 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3591
3592 2017-07-27 Xavier Roirand <roirand@adacore.com>
3593
3594 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3595
3596 2017-07-26 Yao Qi <yao.qi@linaro.org>
3597
3598 * cli/cli-cmds.c (maintenancechecklist): New variable.
3599 * gdbcmd.h (maintenancechecklist): Declare it.
3600 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3601 Call i386_linux_read_description with different masks.
3602 * maint.c (maintenance_check_command): New function.
3603 (_initialize_maint_cmds): Call add_prefix_cmd.
3604 * target-descriptions.c (tdesc_reg): override operator != and ==.
3605 (tdesc_type): Likewise.
3606 (tdesc_feature): Likewise.
3607 (target_desc): Likewise.
3608 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3609 (maintenance_check_xml_descriptions): New function.
3610 (_initialize_target_descriptions) Add command "xml-descriptions".
3611 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3612
3613 2017-07-26 Yao Qi <yao.qi@linaro.org>
3614
3615 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3616 Include features/i386/32bit-*.c.
3617 (i386_linux_read_description): Generate target description if it
3618 doesn't exist.
3619 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3620 functions.
3621 * features/i386/32bit-linux.c: Re-generated.
3622 * features/i386/32bit-sse.c: Likewise.
3623 * target-descriptions.c (print_c_feature::visit): Print code to
3624 set register number if needed.
3625 (print_c_feature) <m_next_regnum>: New field.
3626
3627 2017-07-26 Yao Qi <yao.qi@linaro.org>
3628
3629 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3630 (FEATURE_XMLFILES): New.
3631 (FEATURE_CFILES): New.
3632 New rules.
3633 (clean-cfiles): Remove generated c files.
3634 * features/i386/32bit-avx.c: Generated.
3635 * features/i386/32bit-avx512.c: Generated.
3636 * features/i386/32bit-core.c: Generated.
3637 * features/i386/32bit-linux.c: Generated.
3638 * features/i386/32bit-mpx.c: Generated.
3639 * features/i386/32bit-pkeys.c: Generated.
3640 * features/i386/32bit-sse.c: Generated.
3641 * target-descriptions.c: Include algorithm.
3642 (tdesc_element_visitor): Add method visit_end.
3643 (print_c_tdesc): Implement visit_end.
3644 (print_c_tdesc:: m_filename_after_features): Move it to
3645 protected.
3646 (print_c_feature): New class.
3647 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3648 name starts with "i386/32bit-".
3649
3650 2017-07-26 Yao Qi <yao.qi@linaro.org>
3651
3652 * target-descriptions.c (tdesc_element_visitor): New class.
3653 (tdesc_element): New class.
3654 (tdesc_reg): Inherit from tdesc_element.
3655 (tdesc_reg::accept): New function.
3656 (tdesc_type): Inherit from tdesc_element.
3657 (tdesc_type::accept): New function.
3658 (tdesc_feature): Inherit from tdesc_element.
3659 (tdesc_feature::accept): New function.
3660 (target_desc): Inherit from tdesc_element.
3661 (target_desc::target_desc): New.
3662 (target_desc::~target_desc): New.
3663 (target_desc::accept): New.
3664 (allocate_target_description): Use new.
3665 (free_target_description): Use delete.
3666 (print_c_tdesc): New class.
3667 (maint_print_c_tdesc_cmd): Adjust.
3668
3669 * features/aarch64.c: Re-generated.
3670 * features/arc-arcompact.c: Re-generated.
3671 * features/arc-v2.c: Re-generated.
3672 * features/arm/arm-with-iwmmxt.c: Re-generated.
3673 * features/arm/arm-with-m.c: Re-generated.
3674 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3675 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3676 * features/arm/arm-with-neon.c: Re-generated.
3677 * features/arm/arm-with-vfpv2.c: Re-generated.
3678 * features/arm/arm-with-vfpv3.c: Re-generated.
3679 * features/i386/amd64-avx-avx512.c: Re-generated.
3680 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3681 * features/i386/amd64-avx.c: Re-generated.
3682 * features/i386/amd64-avx-linux.c: Re-generated.
3683 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3684 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3685 * features/i386/amd64-avx-mpx.c: Re-generated.
3686 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3687 * features/i386/amd64.c: Re-generated.
3688 * features/i386/amd64-linux.c: Re-generated.
3689 * features/i386/amd64-mpx.c: Re-generated.
3690 * features/i386/amd64-mpx-linux.c: Re-generated.
3691 * features/i386/i386-avx-avx512.c: Re-generated.
3692 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3693 * features/i386/i386-avx.c: Re-generated.
3694 * features/i386/i386-avx-linux.c: Re-generated.
3695 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3696 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3697 * features/i386/i386-avx-mpx.c: Re-generated.
3698 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3699 * features/i386/i386.c: Re-generated.
3700 * features/i386/i386-linux.c: Re-generated.
3701 * features/i386/i386-mmx.c: Re-generated.
3702 * features/i386/i386-mmx-linux.c: Re-generated.
3703 * features/i386/i386-mpx.c: Re-generated.
3704 * features/i386/i386-mpx-linux.c: Re-generated.
3705 * features/i386/x32-avx-avx512.c: Re-generated.
3706 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3707 * features/i386/x32-avx.c: Re-generated.
3708 * features/i386/x32-avx-linux.c: Re-generated.
3709 * features/i386/x32.c: Re-generated.
3710 * features/i386/x32-linux.c: Re-generated.
3711 * features/microblaze.c: Re-generated.
3712 * features/microblaze-with-stack-protect.c: Re-generated.
3713 * features/mips64-dsp-linux.c: Re-generated.
3714 * features/mips64-linux.c: Re-generated.
3715 * features/mips-dsp-linux.c: Re-generated.
3716 * features/mips-linux.c: Re-generated.
3717 * features/nds32.c: Re-generated.
3718 * features/nios2.c: Re-generated.
3719 * features/nios2-linux.c: Re-generated.
3720 * features/rs6000/powerpc-32.c: Re-generated.
3721 * features/rs6000/powerpc-32l.c: Re-generated.
3722 * features/rs6000/powerpc-403.c: Re-generated.
3723 * features/rs6000/powerpc-403gc.c : Re-generated.
3724 * features/rs6000/powerpc-405.c: Re-generated.
3725 * features/rs6000/powerpc-505.c: Re-generated.
3726 * features/rs6000/powerpc-601.c: Re-generated.
3727 * features/rs6000/powerpc-602.c: Re-generated.
3728 * features/rs6000/powerpc-603.c: Re-generated.
3729 * features/rs6000/powerpc-604.c: Re-generated.
3730 * features/rs6000/powerpc-64.c: Re-generated.
3731 * features/rs6000/powerpc-64l.c: Re-generated.
3732 * features/rs6000/powerpc-7400.c: Re-generated.
3733 * features/rs6000/powerpc-750.c: Re-generated.
3734 * features/rs6000/powerpc-860.c: Re-generated.
3735 * features/rs6000/powerpc-altivec32.c: Re-generated.
3736 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3737 * features/rs6000/powerpc-altivec64.c: Re-generated.
3738 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3739 * features/rs6000/powerpc-cell32l.c: Re-generated.
3740 * features/rs6000/powerpc-cell64l.c: Re-generated.
3741 * features/rs6000/powerpc-e500.c: Re-generated.
3742 * features/rs6000/powerpc-e500l.c: Re-generated.
3743 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3744 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3745 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3746 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3747 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3748 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3749 * features/rs6000/powerpc-vsx32.c: Re-generated.
3750 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3751 * features/rs6000/powerpc-vsx64.c: Re-generated.
3752 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3753 * features/rs6000/rs6000.c: Re-generated.
3754 * features/s390-linux32.c: Re-generated.
3755 * features/s390-linux32v1.c: Re-generated.
3756 * features/s390-linux32v2.c: Re-generated.
3757 * features/s390-linux64.c: Re-generated.
3758 * features/s390-linux64v1.c: Re-generated.
3759 * features/s390-linux64v2.c: Re-generated.
3760 * features/s390-te-linux64.c: Re-generated.
3761 * features/s390-tevx-linux64.c: Re-generated.
3762 * features/s390-vx-linux64.c: Re-generated.
3763 * features/s390x-linux64.c: Re-generated.
3764 * features/s390x-linux64v1.c: Re-generated.
3765 * features/s390x-linux64v2.c: Re-generated.
3766 * features/s390x-te-linux64.c: Re-generated.
3767 * features/s390x-tevx-linux64.c: Re-generated.
3768 * features/s390x-vx-linux64.c: Re-generated.
3769 * features/sparc/sparc32-solaris.c: Re-generated.
3770 * features/sparc/sparc64-solaris.c: Re-generated.
3771 * features/tic6x-c62x.c: Re-generated.
3772 * features/tic6x-c62x-linux.c: Re-generated.
3773 * features/tic6x-c64x.c: Re-generated.
3774 * features/tic6x-c64x-linux.c: Re-generated.
3775 * features/tic6x-c64xp.c: Re-generated.
3776 * features/tic6x-c64xp-linux.c: Re-generated.
3777
3778 2017-07-26 Yao Qi <yao.qi@linaro.org>
3779
3780 * i386-linux-tdep.c (i386_linux_read_description): New function.
3781 (i386_linux_core_read_description): Call
3782 i386_linux_read_description.
3783 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3784 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3785 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3786 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3787 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3788 * x86-linux-nat.c (x86_linux_read_description): Call
3789 i386_linux_read_description.
3790
3791 2017-07-26 Yao Qi <yao.qi@linaro.org>
3792
3793 * NEWS: Mention it.
3794 * features/Makefile (%.c: %.xml): Pass the xml file name to
3795 command "maint print c-tdesc".
3796 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3797 name from 'arg'.
3798
3799 2017-07-26 Yao Qi <yao.qi@linaro.org>
3800
3801 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3802 in-class initialization.
3803 (tdesc_create_feature): Call new instead of XCNEW.
3804 (free_target_description): Ue delete.
3805
3806 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3807
3808 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3809
3810 2017-07-25 Yao Qi <yao.qi@linaro.org>
3811
3812 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3813 constant.
3814 (amd64_x32_init_abi): Likewise.
3815 * amd64-tdep.h (amd64_init_abi): Update declaration.
3816 (amd64_x32_init_abi): Likewise.
3817
3818 2017-07-25 Yao Qi <yao.qi@linaro.org>
3819
3820 PR tdep/21717
3821 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3822 condition for FPSCR.
3823 (arm_linux_store_inferior_registers): Likewise.
3824
3825 2017-07-22 Tom Tromey <tom@tromey.com>
3826
3827 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3828 <syscalls_counts>: Now a std::vector.
3829 (get_catch_syscall_inferior_data): Use "new".
3830 (catch_syscall_inferior_data_cleanup): Use "delete".
3831 (insert_catch_syscall, remove_catch_syscall)
3832 (clear_syscall_counts): Update.
3833
3834 2017-07-22 Tom Tromey <tom@tromey.com>
3835
3836 * break-catch-syscall.c (syscall_catchpoint)
3837 <syscalls_to_be_caught>: Now a std::vector<int>
3838 (~syscall_catchpoint): Remove.
3839 (insert_catch_syscall, remove_catch_syscall)
3840 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3841 (print_mention_catch_syscall, print_recreate_catch_syscall):
3842 Update.
3843 (create_syscall_event_catchpoint): Change type of "filter"
3844 parameter.
3845 (catch_syscall_split_args): Return a std::vector.
3846 (catch_syscall_command_1, catching_syscall_number_1): Update.
3847
3848 2017-07-22 Tom Tromey <tom@tromey.com>
3849
3850 * break-catch-throw.c (struct exception_catchpoint)
3851 <exception_rx>: Now a std::string.
3852 (~exception_catchpoint): Remove.
3853 (print_one_detail_exception_catchpoint): Update.
3854 (handle_gnu_v3_exceptions): Change type of except_rx.
3855 (extract_exception_regexp): Return a std::string.
3856 (catch_exception_command_1): Update.
3857
3858 2017-07-22 Tom Tromey <tom@tromey.com>
3859
3860 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3861 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3862 std::vector.
3863 <catch_all>: Now a bool.
3864 (~signal_catchpoint): Remove.
3865 (signal_catchpoint_insert_location)
3866 (signal_catchpoint_remove_location)
3867 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3868 (signal_catchpoint_print_mention)
3869 (signal_catchpoint_print_recreate)
3870 (signal_catchpoint_explains_signal): Update.
3871 (create_signal_catchpoint): Change type of "filter" and
3872 "catch_all".
3873 (catch_signal_split_args): Return a std::vector. Change type of
3874 "catch_all".
3875 (catch_signal_command): Update.
3876
3877 2017-07-20 Pedro Alves <palves@redhat.com>
3878
3879 * ada-lang.c (ada_language_defn): Make extern.
3880 (_initialize_ada_language): Remove add_language call.
3881 * c-lang.c (c_language_defn, cplus_language_defn)
3882 (asm_language_defn, minimal_language_defn): Make extern.
3883 (_initialize_c_language): Delete.
3884 * completer.c (compare_cstrings): Delete, moved to utils.h.
3885 * d-lang.c (d_language_defn): Make extern.
3886 (_initialize_d_language): Remove add_language calls.
3887 * defs.h (enum language): Add comment.
3888 * f-lang.c (f_language_defn): Make extern.
3889 (_initialize_f_language): Remove add_language call.
3890 * go-lang.c (go_language_defn): Make extern.
3891 (_initialize_go_language): Remove add_language call.
3892 * language.c: Include <algorithm>.
3893 (languages): Redefine as const array.
3894 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3895 (set_language_command): Handle "local". Use for-range loop.
3896 (set_language): Remove loop.
3897 (language_enum): Rewrite.
3898 (language_def, language_str): Remove loops.
3899 (add_language): Delete.
3900 (add_set_language_command): New, based on add_languages.
3901 (skip_language_trampoline): Adjust.
3902 (local_language_defn): Delete.
3903 (language_gdbarch_post_init): Adjust.
3904 (_initialize_language): Remove add_language calls. Call
3905 add_set_language_command.
3906 * language.h (add_language): Delete.
3907 (auto_language_defn)
3908 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3909 (asm_language_defn, c_language_defn, cplus_language_defn)
3910 (d_language_defn, f_language_defn, go_language_defn)
3911 (m2_language_defn, objc_language_defn, opencl_language_defn)
3912 (pascal_language_defn, rust_language_defn): Declare.
3913 * m2-lang.c (m2_language_defn): Make extern.
3914 (_initialize_m2_language): Remove add_language call.
3915 * objc-lang.c (objc_language_defn): Make extern.
3916 (_initialize_objc_language): Remove add_language call.
3917 * opencl-lang.c (opencl_language_defn): Make extern.
3918 (_initialize_opencl_language): Remove add_language call.
3919 * p-lang.c (pascal_language_defn): Make extern.
3920 (_initialize_pascal_language): Delete.
3921 * rust-lang.c (rust_language_defn): Make extern.
3922 (_initialize_rust_language): Delete.
3923 * utils.h (compare_cstrings): New static inline function.
3924
3925 2017-07-20 Pedro Alves <palves@redhat.com>
3926
3927 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3928 (get_var_value): Constify parameters.
3929 (get_int_var_value): Change prototype.
3930 (to_fixed_range_type): Adjust.
3931 * ada-lang.h (get_int_var_value): Change prototype.
3932
3933 2017-07-20 Pedro Alves <palves@redhat.com>
3934
3935 * dwarf2read.c (dw2_lookup_symbol): Use
3936 SYMBOL_MATCHES_SEARCH_NAME.
3937 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3938
3939 2017-07-20 Pedro Alves <palves@redhat.com>
3940
3941 * block.c (block_iter_name_step, block_iter_name_first)
3942 (block_iter_name_next): Delete.
3943 (block_lookup_symbol_primary): Adjust to use
3944 dict_iter_match_first/dict_iter_match_next.
3945 * block.h (block_iter_name_first, block_iter_name_next): Delete
3946 declarations.
3947 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3948 dict_iter_match_first/dict_iter_match_next.
3949
3950 2017-07-20 Pedro Alves <palves@redhat.com>
3951
3952 * cp-support.c (cp_find_first_component_aux): Add missing case for
3953 end of string.
3954
3955 2017-07-18 David Blaikie <dblaikie@gmail.com>
3956
3957 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3958 of dwo_cu's dwo_file.
3959
3960 2017-07-18 Yao Qi <yao.qi@linaro.org>
3961
3962 * remote.c (store_registers_using_G): Remove one line comment.
3963
3964 2017-07-18 Yao Qi <yao.qi@linaro.org>
3965
3966 * regcache.c (regcache_cpy): Simplify it.
3967 (regcache::cpy_no_passthrough): Remove it.
3968 * regcache.h (cpy_no_passthrough): Remove it.
3969 (regcache_dup, regcache_cpy): Update comments.
3970
3971 2017-07-18 Pedro Alves <palves@redhat.com>
3972
3973 * remote-sim.c (sim_command_completer): Adjust to work with a
3974 completion_tracker instead of a VEC.
3975
3976 2017-07-17 Pedro Alves <palves@redhat.com>
3977
3978 * completer.c (complete_source_filenames): New function.
3979 (complete_address_and_linespec_locations): New function.
3980 (location_completer): Use complete_address_and_linespec_locations.
3981 (completion_tracker::build_completion_result): Honor the tracker's
3982 request to suppress append.
3983 * completer.h (completion_tracker::suppress_append_ws)
3984 (completion_tracker::set_suppress_append_ws): New methods.
3985 (completion_tracker::m_suppress_append_ws): New field.
3986 (complete_source_filenames): New declaration.
3987 * linespec.c (linespec_complete_what): New.
3988 (struct ls_parser) <complete_what, completion_word,
3989 completion_quote_char, completion_quote_end, completion_tracker>:
3990 New fields.
3991 (string_find_incomplete_keyword_at_end): New.
3992 (linespec_lexer_lex_string): Record quote char. If in completion
3993 mode, don't throw.
3994 (linespec_lexer_consume_token): Advance the completion word point.
3995 (linespec_lexer_peek_token): Save/restore completion info.
3996 (save_stream_and_consume_token): New.
3997 (set_completion_after_number): New.
3998 (linespec_parse_basic): Set what to complete next depending on
3999 token. Handle function and label completions specially.
4000 (parse_linespec): Disable objc shortcut in completion mode. Set
4001 what to complete next depending on token type. Skip keyword if in
4002 completion mode.
4003 (complete_linespec_component, linespec_complete): New.
4004 * linespec.h (linespec_complete): Declare.
4005
4006 2017-07-17 Pedro Alves <palves@redhat.com>
4007
4008 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4009 Handle 'operator<' / 'operator<<'.
4010
4011 2017-07-17 Pedro Alves <palves@redhat.com>
4012
4013 * completer.c (collect_explicit_location_matches): Handle
4014 MATCH_LABEL.
4015 (convert_explicit_location_to_linespec): New, factored out from
4016 ...
4017 (convert_explicit_location_to_sals): ... this.
4018 (complete_label): New.
4019 (linespec_complete_label, find_label_symbols_in_block): New.
4020 (find_label_symbols): Add completion_mode parameter and adjust to
4021 call find_label_symbols_in_block.
4022 * linespec.h (linespec_complete_label): Declare.
4023
4024 2017-07-17 Pedro Alves <palves@redhat.com>
4025
4026 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4027 complete_symbol_mode parameter.
4028 * cli/cli-cmds.c (complete_command): Get the completion result out
4029 of the handle_brkchars tracker if used a custom word point.
4030 * completer.c: Include "linespec.h".
4031 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4032 (advance_to_expression_complete_word_point): New.
4033 (completion_tracker::completes_to_completion_word): New.
4034 (complete_files_symbols): Pass down
4035 complete_symbol_mode::EXPRESSION.
4036 (explicit_options, probe_options): New.
4037 (collect_explicit_location_matches): Complete on the
4038 explictit_loc->foo instead of word. Use
4039 linespec_complete_function. Handle MATCH_LINE. Handle offering
4040 keyword and options completions.
4041 (backup_text_ptr): Delete.
4042 (skip_keyword): New.
4043 (complete_explicit_location): Remove 'word' parameter. Add
4044 language, quoted_arg_start and quoted_arg_end parameters.
4045 Rewrite, parsing left to right.
4046 (location_completer): Rewrite.
4047 (location_completer_handle_brkchars): New function.
4048 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4049 (enum complete_line_internal_reason): Adjust comments.
4050 (completion_tracker::discard_completions): New.
4051 (completer_handle_brkchars_func_for_completer): Handle
4052 location_completer.
4053 (gdb_custom_word_point_brkchars)
4054 (gdb_org_rl_basic_quote_characters): New.
4055 (gdb_completion_word_break_characters_throw)
4056 (completion_find_completion_word): Handle trackers that use a
4057 custom word point.
4058 (completion_tracker::advance_custom_word_point_by): New.
4059 (completion_tracker::build_completion_result): Don't rely on
4060 readline appending the quote char.
4061 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4062 use a custom word point.
4063 (gdb_rl_attempted_completion_function): Restore
4064 rl_basic_quote_characters.
4065 * completer.h (class completion_tracker): Extend intro comment.
4066 (completion_tracker::set_quote_char)
4067 (completion_tracker::quote_char)
4068 (completion_tracker::set_use_custom_word_point)
4069 (completion_tracker::use_custom_word_point)
4070 (completion_tracker::custom_word_point)
4071 (completion_tracker::set_custom_word_point)
4072 (completion_tracker::advance_custom_word_point_by)
4073 (completion_tracker::completes_to_completion_word)
4074 (completion_tracker::discard_completions): New methods.
4075 (completion_tracker::m_quote_char)
4076 (completion_tracker::m_use_custom_word_point)
4077 (completion_tracker::m_custom_word_point): New fields.
4078 (advance_to_expression_complete_word_point): Declare.
4079 * f-lang.c (f_collect_symbol_completion_matches): Add
4080 complete_symbol_mode parameter.
4081 * language.h (struct language_defn)
4082 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4083 parameter.
4084 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4085 (linespec_complete_function): New function.
4086 (linespec_lexer_lex_keyword): Adjust.
4087 * linespec.h (linespec_keywords, linespec_complete_function): New
4088 declarations.
4089 * location.c (find_end_quote): New function.
4090 (explicit_location_lex_one): Add explicit_completion_info
4091 parameter. Save quoting info. Don't throw if being called for
4092 completion. Don't handle Ada operators here.
4093 (is_cp_operator, skip_op_false_positives, first_of)
4094 (explicit_location_lex_one_function): New function.
4095 (string_to_explicit_location): Replace 'dont_throw' parameter with
4096 an explicit_completion_info pointer parameter. Handle it. Don't
4097 use explicit_location_lex_one to lex function names. Use
4098 explicit_location_lex_one_function instead.
4099 * location.h (struct explicit_completion_info): New.
4100 (string_to_explicit_location): Replace 'dont_throw' parameter with
4101 an explicit_completion_info pointer parameter.
4102 * symtab.c (default_collect_symbol_completion_matches_break_on):
4103 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4104 (default_collect_symbol_completion_matches)
4105 (collect_symbol_completion_matches): Add complete_symbol_mode
4106 parameter.
4107 (collect_symbol_completion_matches_type): Pass down
4108 complete_symbol_mode::EXPRESSION.
4109 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4110 parameter. Handle LINESPEC mode.
4111 * symtab.h (complete_symbol_mode): New.
4112 (default_collect_symbol_completion_matches_break_on)
4113 (default_collect_symbol_completion_matches)
4114 (collect_symbol_completion_matches)
4115 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4116 parameter.
4117
4118 2017-07-17 Pedro Alves <palves@redhat.com>
4119
4120 * utils.c (enum class strncmp_iw_mode): New.
4121 (strcmp_iw): Rename to ...
4122 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4123 parameters. Handle them.
4124 (strncmp_iw): New.
4125 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4126 * utils.h (strncmp_iw): Declare.
4127 (strcmp_iw): Move describing comments here.
4128
4129 2017-07-17 Pedro Alves <palves@redhat.com>
4130
4131 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4132 CP_OPERATOR_STR.
4133 * c-typeprint.c (is_type_conversion_operator): Use
4134 CP_OPERATOR_STR.
4135 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4136 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4137 CP_OPERATOR_LEN.
4138 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4139 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4140 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4141 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4142 CP_OPERATOR_STR.
4143 * location.c: Include "cp-support.h".
4144 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4145 CP_OPERATOR_STR.
4146 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4147 CP_OPERATOR_LEN.
4148
4149 2017-07-17 Pedro Alves <palves@redhat.com>
4150
4151 * cli/cli-cmds.c (complete_command): Use a completion tracker
4152 along with completion_find_completion_word for handle_brkchars
4153 phase.
4154 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4155 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4156 (struct gdb_rl_completion_word_info): New.
4157 (gdb_rl_find_completion_word): New.
4158 (completion_find_completion_word): New.
4159 * completer.h (completion_find_completion_word): Declare.
4160
4161 2017-07-17 Pedro Alves <palves@redhat.com>
4162
4163 * ada-lang.c (symbol_completion_match): Adjust comments.
4164 (symbol_completion_add): Replace vector parameter with
4165 completion_tracker parameter. Use it.
4166 (ada_make_symbol_completion_list): Rename to...
4167 (ada_collect_symbol_completion_matches): ... this. Add
4168 completion_tracker parameter and use it.
4169 (ada_language_defn): Adjust.
4170 * break-catch-syscall.c (catch_syscall_completer): Adjust
4171 prototype and work with completion_tracker instead of VEC.
4172 * breakpoint.c (condition_completer): Adjust prototype and work
4173 with completion_tracker instead of VEC.
4174 * c-lang.c (c_language_defn, cplus_language_defn)
4175 (asm_language_defn, minimal_language_defn): Adjust to renames.
4176 * cli/cli-cmds.c (complete_command): Rework using
4177 completion_tracker. Catch exceptions when completing.
4178 * cli/cli-decode.c (integer_unlimited_completer)
4179 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4180 with completion_tracker instead of VEC.
4181 * command.h (struct completion_tracker): Forward declare.
4182 (completer_ftype, completer_handle_brkchars_ftype): Change
4183 types.
4184 (complete_on_cmdlist, complete_on_enum): Adjust.
4185 * completer.c: Include <algorithm>.
4186 (struct gdb_completer_state): New.
4187 (current_completion): New global.
4188 (readline_line_completion_function): Delete.
4189 (noop_completer, filename_completer)
4190 (filename_completer_handle_brkchars, complete_files_symbols)
4191 (linespec_location_completer): Adjust to work with a
4192 completion_tracker instead of a VEC.
4193 (string_or_empty): New.
4194 (collect_explicit_location_matches): Adjust to work with a
4195 completion_tracker instead of a VEC.
4196 (explicit_location_completer): Rename to ...
4197 (complete_explicit_location): ... this and adjust to work with a
4198 completion_tracker instead of a VEC.
4199 (location_completer): Adjust to work with a completion_tracker
4200 instead of a VEC.
4201 (add_struct_fields): Adjust to work with a completion_list instead
4202 of VEC.
4203 (expression_completer): Rename to ...
4204 (complete_expression): ... this and adjust to work with a
4205 completion_tracker instead of a VEC. Use complete_files_symbols.
4206 (expression_completer): Reimplement on top of complete_expression.
4207 (symbol_completer): Adjust to work with a completion_tracker
4208 instead of a VEC.
4209 (enum complete_line_internal_reason): Add describing comments.
4210 (complete_line_internal_normal_command): Adjust to work with a
4211 completion_tracker instead of a VEC.
4212 (complete_line_internal): Rename to ...
4213 (complete_line_internal_1): ... this and adjust to work with a
4214 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4215 handle_brkchars phase.
4216 (new_completion_tracker): Delete.
4217 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4218 complete_line_internal_1.
4219 (free_completion_tracker): Delete.
4220 (INITIAL_COMPLETION_HTAB_SIZE): New.
4221 (completion_tracker::completion_tracker)
4222 (completion_tracker::~completion_tracker): New.
4223 (maybe_add_completion): Delete.
4224 (completion_tracker::maybe_add_completion)
4225 (completion_tracker::add_completion)
4226 (completion_tracker::add_completions): New.
4227 (throw_max_completions_reached_error): Delete.
4228 (complete_line): Adjust to work with a completion_tracker instead
4229 of a VEC. Don't create a completion_tracker_t or check for max
4230 completions here.
4231 (command_completer, command_completer_handle_brkchars)
4232 (signal_completer, reg_or_group_completer_1)
4233 (reg_or_group_completer, default_completer_handle_brkchars):
4234 Adjust to work with a completion_tracker.
4235 (gdb_completion_word_break_characters_throw): New.
4236 (gdb_completion_word_break_characters): Reimplement.
4237 (line_completion_function): Delete.
4238 (completion_tracker::recompute_lowest_common_denominator)
4239 (expand_preserving_ws)
4240 (completion_tracker::build_completion_result)
4241 (completion_result::completion_result)
4242 (completion_result::completion_result)
4243 (completion_result::~completion_result)
4244 (completion_result::completion_result)
4245 (completion_result::release_match_list, compare_cstrings)
4246 (completion_result::sort_match_list)
4247 (completion_result::reset_match_list)
4248 (gdb_rl_attempted_completion_function_throw)
4249 (gdb_rl_attempted_completion_function): New.
4250 * completer.h (completion_list, struct completion_result)
4251 (class completion_tracker): New.
4252 (complete_line): Add completion_tracker parameter.
4253 (readline_line_completion_function): Delete.
4254 (gdb_rl_attempted_completion_function): New.
4255 (noop_completer, filename_completer, expression_completer)
4256 (location_completer, symbol_completer, command_completer)
4257 (signal_completer, reg_or_group_completer): Update prototypes.
4258 (completion_tracker_t, new_completion_tracker)
4259 (make_cleanup_free_completion_tracker): Delete.
4260 (enum maybe_add_completion_enum): Delete.
4261 (maybe_add_completion): Delete.
4262 (throw_max_completions_reached_error): Delete.
4263 * corefile.c (complete_set_gnutarget): Adjust to work with a
4264 completion_tracker instead of a VEC.
4265 * cp-abi.c (cp_abi_completer): Adjust to work with a
4266 completion_tracker instead of a VEC.
4267 * d-lang.c (d_language_defn): Adjust.
4268 * disasm.c (disassembler_options_completer): Adjust to work with a
4269 completion_tracker instead of a VEC.
4270 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4271 (f_collect_symbol_completion_matches): ... this. Adjust to work
4272 with a completion_tracker instead of a VEC.
4273 (f_language_defn): Adjust.
4274 * go-lang.c (go_language_defn): Adjust.
4275 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4276 Adjust to work with a completion_tracker instead of a VEC.
4277 * infrun.c (handle_completer): Likewise.
4278 * interps.c (interpreter_completer): Likewise.
4279 * interps.h (interpreter_completer): Likewise.
4280 * language.c (unknown_language_defn, auto_language_defn)
4281 (local_language_defn): Adjust.
4282 * language.h (language_defn::la_make_symbol_completion_list):
4283 Rename to ...
4284 (language_defn::la_collect_symbol_completion_matches): ... this
4285 and adjust to work with a completion_tracker instead of a VEC.
4286 * m2-lang.c (m2_language_defn): Adjust.
4287 * objc-lang.c (objc_language_defn): Adjust.
4288 * opencl-lang.c (opencl_language_defn): Adjust.
4289 * p-lang.c (pascal_language_defn): Adjust.
4290 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4291 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4292 with a completion_tracker.
4293 * rust-lang.c (rust_language_defn): Adjust.
4294 * symtab.c (free_completion_list, do_free_completion_list)
4295 (return_val, completion_tracker): Delete.
4296 (completion_list_add_name, completion_list_add_symbol)
4297 (completion_list_add_msymbol, completion_list_objc_symbol)
4298 (completion_list_add_fields, add_symtab_completions): Add
4299 completion_tracker parameter and use it.
4300 (default_make_symbol_completion_list_break_on_1): Rename to...
4301 (default_collect_symbol_completion_matches_break_on): ... this.
4302 Add completion_tracker parameter and use it instead of allocating
4303 a completion tracker here.
4304 (default_make_symbol_completion_list_break_on): Delete old
4305 implementation.
4306 (default_make_symbol_completion_list): Delete.
4307 (default_collect_symbol_completion_matches): New.
4308 (make_symbol_completion_list): Delete.
4309 (collect_symbol_completion_matches): New.
4310 (make_symbol_completion_type): Rename to ...
4311 (collect_symbol_completion_matches_type): ... this. Add
4312 completion_tracker parameter and use it instead of VEC.
4313 (make_file_symbol_completion_list_1): Rename to...
4314 (collect_file_symbol_completion_matches): ... this. Add
4315 completion_tracker parameter and use it instead of VEC.
4316 (make_file_symbol_completion_list): Delete.
4317 (add_filename_to_list): Use completion_list instead of a VEC.
4318 (add_partial_filename_data::list): Now a completion_list.
4319 (make_source_files_completion_list): Work with a completion_list
4320 instead of a VEC.
4321 * symtab.h: Include "completer.h".
4322 (default_make_symbol_completion_list_break_on)
4323 (default_make_symbol_completion_list, make_symbol_completion_list)
4324 (make_symbol_completion_type, make_file_symbol_completion_list)
4325 (make_source_files_completion_list): Delete.
4326 (default_collect_symbol_completion_matches_break_on)
4327 (default_collect_symbol_completion_matches)
4328 (collect_symbol_completion_matches)
4329 (collect_symbol_completion_matches_type)
4330 (collect_file_symbol_completion_matches)
4331 (make_source_files_completion_list): New.
4332 * top.c (init_main): Don't install a rl_completion_entry_function
4333 hook. Install a rl_attempted_completion_function hook instead.
4334 * tui/tui-layout.c (layout_completer): Adjust to work with a
4335 completion_tracker.
4336 * tui/tui-regs.c (tui_reggroup_completer):
4337 * tui/tui-win.c (window_name_completer, focus_completer)
4338 (winheight_completer): Adjust to work with a completion_tracker.
4339 * value.c: Include "completer.h".
4340 (complete_internalvar): Adjust to work with a completion_tracker.
4341 * value.h (complete_internalvar): Likewise.
4342
4343 2017-07-17 Pedro Alves <palves@redhat.com>
4344
4345 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4346 renames.
4347 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4348 comments to completer_ftype's declaration.
4349 <completer_handle_brkchars>: Change type to
4350 completer_handle_brkchars_ftype.
4351 * command.h (completer_ftype): Add describing comment and give
4352 names to parameters.
4353 (completer_ftype_void): Rename to ...
4354 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4355 (set_cmd_completer_handle_brkchars): Adjust.
4356 * completer.c (filename_completer_handle_brkchars): New function.
4357 (complete_line_internal_normal_command): New function, factored
4358 out from ...
4359 (complete_line_internal): ... here.
4360 (command_completer_handle_brkchars)
4361 (default_completer_handle_brkchars)
4362 (completer_handle_brkchars_func_for_completer): New functions.
4363 * completer.h (set_gdb_completion_word_break_characters): Delete
4364 declaration.
4365 (completer_handle_brkchars_func_for_completer): New declaration.
4366 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4367 completer_handle_brkchars_func_for_completer.
4368
4369 2017-07-17 Pedro Alves <palves@redhat.com>
4370
4371 * completer.c (symbol_completer): New function, based on
4372 make_symbol_completion_list_fn.
4373 * completer.h (symbol_completer): New declaration.
4374 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4375 * python/py-cmd.c (completers): Adjust.
4376 * symtab.c (make_symbol_completion_list_fn): Delete.
4377 * symtab.h (make_symbol_completion_list_fn): Delete.
4378 * cli/cli-decode.c (add_cmd): Adjust.
4379
4380 2017-07-17 Pedro Alves <palves@redhat.com>
4381
4382 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4383 * dwarf2read.c: Include "filename-seen-cache.h".
4384 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4385 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4386 * filename-seen-cache.c: New file.
4387 * filename-seen-cache.h: New file.
4388 * symtab.c: Include "filename-seen-cache.h".
4389 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4390 (create_filename_seen_cache, clear_filename_seen_cache)
4391 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4392 to filename-seen-cache.h/filename-seen-cache.c.
4393 (output_source_filename, sources_info)
4394 (maybe_add_partial_symtab_filename)
4395 (make_source_files_completion_list): Adjust to use
4396 filename_seen_cache.
4397
4398 2017-07-17 Pedro Alves <palves@redhat.com>
4399
4400 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4401 fields.
4402 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4403 dwarf2_debug_sections*)): New.
4404 (dwarf2_per_objfile::dwarf2_per_objfile(const
4405 dwarf2_per_objfile&)): Declare as deleted.
4406 (dwarf2_per_objfile::operator=): Declare as deleted.
4407 (dwarf2_per_objfile::dwarf2_per_objfile)
4408 (dwarf2_per_objfile::~dwarf2_per_objfile)
4409 (dwarf2_per_objfile::free_cached_comp_units): New.
4410 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4411 ctor. Call dwarf2_per_objfile's ctor manually.
4412 (dwarf2_locate_sections): Deleted/refactored as ...
4413 (dwarf2_per_objfile::locate_sections): ... this new method.
4414 (free_cached_comp_units): Defer to
4415 dwarf2_per_objfile::free_cached_comp_units.
4416 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4417
4418 2017-07-14 Tom Tromey <tom@tromey.com>
4419
4420 PR rust/21764:
4421 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4422 parameter.
4423 <UNOP_SIZEOF>: Split into separate case.
4424 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4425
4426 2017-07-14 Tom Tromey <tom@tromey.com>
4427
4428 PR rust/21763:
4429 * symtab.c (symbol_matches_domain): Add language_rust to special
4430 case.
4431 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4432 treat LOC_TYPEDEF symbols as variables.
4433
4434 2017-07-14 Pedro Alves <palves@redhat.com>
4435
4436 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4437 symtabs matching all symtabs with SRCFILE as file name instead of
4438 only considering the first hit, with lookup_symtab.
4439
4440 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4441
4442 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4443 operator_name parameters.
4444 (gen_expr): Update function call.
4445
4446 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4447
4448 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4449 parameter.
4450 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4451 Likewise.
4452 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4453 parameter, use agent_expr::gdbarch instead, update function
4454 calls.
4455 (locexpr_tracepoint_var_ref): Likewise.
4456 (loclist_tracepoint_var_ref): Likewise.
4457 * ax-gdb.c (gen_trace_static_fields): Likewise.
4458 (gen_traced_pop): Likewise.
4459 (gen_frame_args_address): Likewise.
4460 (gen_frame_locals_address): Likewise.
4461 (gen_var_ref): Likewise.
4462 (gen_struct_ref_recursive): Likewise.
4463 (gen_static_field): Likewise.
4464 (gen_maybe_namespace_elt): Likewise.
4465 (gen_expr): Likewise.
4466 (gen_trace_for_var): Likewise.
4467 (gen_trace_for_expr): Likewise.
4468 (gen_trace_for_return_address): Likewise.
4469
4470 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4471
4472 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4473 parameter.
4474 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4475
4476 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4477
4478 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4479 from ax, update calls.
4480 (gen_usual_arithmetic): Likewise.
4481 (gen_integral_promotions): Likewise.
4482 (gen_bitfield_ref): Likewise.
4483 (gen_primitive_field): Likewise.
4484 (gen_struct_ref_recursive): Likewise.
4485 (gen_struct_ref): Likewise.
4486 (gen_maybe_namespace_elt): Likewise.
4487 (gen_struct_elt_for_reference): Likewise.
4488 (gen_namespace_elt): Likewise.
4489 (gen_aggregate_elt_ref): Likewise.
4490 (gen_expr): Get gdbarch from ax, update calls.
4491 (gen_expr_binop_rest): Likewise.
4492
4493 2017-07-13 Pedro Alves <palves@redhat.com>
4494
4495 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4496 as default tdesc.
4497 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4498 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4499 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4500 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4501 tdep.
4502 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4503 Get final tdesc from the tdep.
4504 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4505 default tdesc.
4506 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4507 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4508 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4509 Use it as default tdesc.
4510 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4511 down to amd_init_abi. No longer handle fallback tdesc here.
4512 * amd64-tdep.h (tdesc_x32): Declare.
4513 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4514 parameter.
4515 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4516 as default tdesc.
4517
4518 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4519
4520 * s390-linux-tdep.c (s390_process_record): Add support for
4521 instructions new in arch12.
4522
4523 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4524
4525 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4526 PT_GETFSBASE and PT_GETGSBASE.
4527 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4528 PT_SETGSBASE.
4529
4530 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4531
4532 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4533 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4534 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4535 those rules.
4536 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4537 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4538 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4539 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4540 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4541 * features/i386/amd64.xml: Add 64bit-segments.xml.
4542 * features/i386/amd64-avx-avx512.c: Regenerated.
4543 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4544 * features/i386/amd64-avx-mpx.c: Regenerated.
4545 * features/i386/amd64-avx.c: Regenerated.
4546 * features/i386/amd64-mpx.c: Regenerated.
4547 * features/i386/amd64.c: Regenerated.
4548 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4549 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4550 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4551 * regformats/i386/amd64-avx.dat: Regenerated.
4552 * regformats/i386/amd64-mpx.dat: Regenerated.
4553 * regformats/i386/amd64.dat: Regenerated.
4554
4555 2017-07-10 Yao Qi <yao.qi@linaro.org>
4556
4557 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4558 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4559
4560 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4561
4562 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4563 unsetenv.
4564 * gnulib/aclocal.m4: Regenerate.
4565 * gnulib/config.in: Regenerate.
4566 * gnulib/configure: Regenerate.
4567 * gnulib/import/Makefile.am: Regenerate.
4568 * gnulib/import/Makefile.in: Regenerate.
4569 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4570 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4571 * gnulib/import/m4/environ.m4: New file.
4572 * gnulib/import/m4/setenv.m4: New file.
4573 * gnulib/import/setenv.c: New file.
4574 * gnulib/import/unsetenv.c: New file.
4575
4576 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4577
4578 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4579 address when op is DW_OP_addr.
4580
4581 2017-07-09 Tom Tromey <tom@tromey.com>
4582
4583 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4584 check and apply to outer type.
4585
4586 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4587
4588 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4589 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4590 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4591 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4592
4593 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4594
4595 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4596
4597 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4598
4599 * corelow.c (get_core_siginfo): Remove.
4600 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4601 instead of get_core_siginfo.
4602 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4603 * gdbarch.h: Re-generate.
4604 * gdbarch.c: Re-generate.
4605 * linux-tdep.c (linux_core_xfer_siginfo): New.
4606 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4607
4608 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4609
4610 * corelow.c (thread_section_name): Move to ...
4611 * gdbcore.h (thread_section_name): ... here.
4612
4613 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4614
4615 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4616 (struct siginfo32): New.
4617 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4618 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4619 via ptrace(PT_LWPINFO).
4620
4621 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4622
4623 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4624 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4625 (fbsd_get_siginfo_type): New.
4626 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4627 (_initialize_fbsd_tdep): New.
4628
4629 2017-07-06 David Blaikie <dblaikie@gmail.com>
4630
4631 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4632 a singular dwo_unit*) to support multiple CUs in the same way that
4633 multiple TUs are supported.
4634 (create_cus_hash_table): Replace create_dwo_cu with a function for
4635 parsing multiple CUs from a DWO file.
4636 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4637 create_dwo_cu.
4638 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4639 htab_find, rather than comparing the signature to a singleton CU in
4640 the dwo_file.
4641
4642 2017-07-06 Pedro Alves <palves@redhat.com>
4643
4644 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4645
4646 2017-07-04 Pedro Alves <palves@redhat.com>
4647
4648 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4649 * gdbtypes.h (TYPE_STATIC): Delete.
4650 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4651 is_synchronized, is_native>: Delete.
4652 <dummy>: Bump.
4653 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4654 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4655 (TYPE_FN_FIELD_ABSTRACT): Delete.
4656
4657 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4658
4659 * buffer.h (buffer_finish): Fix spelling mistakes.
4660
4661 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4662
4663 * .dir-locals.el: Automatically switch to C-style comments in
4664 versions of Emacs that support the feature.
4665
4666 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4667 Pedro Alves <palves@redhat.com>
4668
4669 PR cli/21688
4670 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4671 (process_next_line): New variable 'inline_cmd'.
4672 Adjust 'if' clauses for "python", "compile" and "guile" to use
4673 'command_name_equals' and check for '!inline_cmd'.
4674
4675 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4676
4677 PR cli/21688
4678 * cli/cli-script.c (command_name_equals_not_inline): New function.
4679 (process_next_line): Adjust 'if' clauses for "python", "compile"
4680 and "guile" to use command_name_equals_not_inline.
4681
4682 2017-06-29 Pedro Alves <palves@redhat.com>
4683
4684 * completer.c (expression_completer): Call
4685 linespec_location_completer instead of location_completer.
4686
4687 2017-06-29 Pedro Alves <palves@redhat.com>
4688
4689 * completer.c (expression_completer): Remove code that recomputes
4690 'text' from 'word'.
4691
4692 2017-06-29 Yao Qi <yao.qi@linaro.org>
4693
4694 * regformats/regdat.sh: Generate code with
4695 "ifndef IN_PROCESS_AGENT".
4696
4697 2017-06-28 Pedro Alves <palves@redhat.com>
4698
4699 * command.h: Include "common/scoped_restore.h".
4700
4701 2017-06-28 Yao Qi <yao.qi@linaro.org>
4702
4703 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4704 instead of obstack_grow.
4705
4706 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4707
4708 PR gdb/21337
4709 * symfile.c (reread_symbols): Call objfiles_changed just before
4710 read_symbols.
4711
4712 2017-06-27 Pedro Alves <palves@redhat.com>
4713
4714 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4715 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4716 (completion_list_add_symbol, completion_list_add_msymbol):
4717 ... these new functions.
4718 (add_symtab_completions)
4719 (default_make_symbol_completion_list_break_on_1): Adjust.
4720
4721 2017-06-27 Pedro Alves <palves@redhat.com>
4722
4723 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4724 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4725 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4726 dtor.
4727 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4728 'storage_obstack' field an auto_obstack. In-class initialize all
4729 non-bitfield fields. Make minsyms_read bool.
4730 * symfile.c (read_symbols): Adjust.
4731
4732 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4733
4734 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4735 (gdbsim_store_register): Likewise.
4736
4737 2017-06-27 Pedro Alves <palves@redhat.com>
4738
4739 * c-exp.y (name_obstack): Now an auto_obstack.
4740 (yylex): Use auto_obstack::clear.
4741 (c_parse): Use auto_obstack::clear instead of reinitializing and
4742 freeing the obstack.
4743 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4744 * d-exp.y (name_obstack): Now an auto_obstack.
4745 (yylex): Use auto_obstack::clear.
4746 (d_parse): Use auto_obstack::clear instead of reinitializing and
4747 freeing the obstack.
4748 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4749 auto_obstack.
4750 * dwarf2read.c (create_addrmap_from_index)
4751 (dwarf2_build_psymtabs_hard)
4752 (update_enumeration_type_from_children): Likewise.
4753 * gdb_obstack.h (auto_obstack): New type.
4754 * go-exp.y (name_obstack): Now an auto_obstack.
4755 (build_packaged_name): Use auto_obstack::clear.
4756 (go_parse): Use auto_obstack::clear instead of reinitializing and
4757 freeing the obstack.
4758 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4759 auto_obstack.
4760 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4761 * rust-exp.y (work_obstack): Now an auto_obstack.
4762 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4763 reinitializing and freeing the obstack.
4764 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4765 (host_char_to_target): Use auto_obstack.
4766 * utils.h (make_cleanup_obstack_free): Delete declaration.
4767 * valprint.c (generic_emit_char, generic_printstr): Use
4768 auto_obstack.
4769
4770 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4771
4772 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4773 thread.
4774 (darwin_init_thread_list): Don't update dummy thread.
4775 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4776
4777 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4778
4779 * record-full.c (netorder16): Remove.
4780
4781 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4782
4783 * common/diagnostics.h: Define macros for GCC.
4784 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4785 * common/vec.h: Include diagnostics.h.
4786 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4787 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4788 warning.
4789
4790 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4791
4792 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4793 New macro.
4794 * ada-lex.l: Ignore deprecated register warnings.
4795
4796 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4797
4798 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4799 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4800
4801 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4802
4803 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4804 its own line.
4805
4806 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4807
4808 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4809
4810 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4811
4812 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4813 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4814 (xtensa_register_read_masked): Likewise.
4815
4816 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4817
4818 * common/environ.c (gdb_environ::unset): Update comment.
4819
4820 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4821
4822 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4823 registers.
4824
4825 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4826
4827 * record-full.c (record_full_exec_insn): Use byte_vector.
4828
4829 2017-06-22 Yao Qi <yao.qi@linaro.org>
4830
4831 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4832 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4833
4834 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4835
4836 * remote.c (cached_reg): Move from here...
4837 * regcache.h (cached_reg): ...to here.
4838 * python/py-unwind.c (struct reg_info): Remove.
4839 (cached_frame_info): Use cached_reg_t.
4840 (pyuw_prev_register): Likewise.
4841 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4842 (pyuw_dealloc_cache): Free all registers.
4843
4844 2017-06-22 Pedro Alves <palves@redhat.com>
4845 Simon Marchi <simon.marchi@ericsson.com>
4846
4847 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4848 warning.
4849 * common/diagnostics.h: New file.
4850
4851 2017-06-22 Pedro Alves <palves@redhat.com>
4852
4853 * common/agent.h: Add include guards.
4854
4855 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4858 talk about addressable units instead of bytes.
4859
4860 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4861
4862 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4863 of '::const_iterator'.
4864
4865 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4866
4867 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4868 'unittests/environ-selftests.c'.
4869 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4870 * charset.c (find_charset_names): Declare object 'iconv_env'.
4871 Update code to use 'iconv_env' object. Remove call to
4872 'free_environ'.
4873 * common/environ.c: Include <utility>.
4874 (make_environ): Delete function.
4875 (free_environ): Delete function.
4876 (gdb_environ::clear): New function.
4877 (gdb_environ::operator=): New function.
4878 (gdb_environ::get): Likewise.
4879 (environ_vector): Delete function.
4880 (set_in_environ): Delete function.
4881 (gdb_environ::set): New function.
4882 (unset_in_environ): Delete function.
4883 (gdb_environ::unset): New function.
4884 (gdb_environ::envp): Likewise.
4885 * common/environ.h: Include <vector>.
4886 (struct gdb_environ): Delete; transform into...
4887 (class gdb_environ): ... this class.
4888 (free_environ): Delete prototype.
4889 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4890 environ_vector): Likewise.
4891 * infcmd.c (run_command_1): Update code to call
4892 'envp' from 'gdb_environ' class.
4893 (environment_info): Update code to call methods from 'gdb_environ'
4894 class.
4895 (unset_environment_command): Likewise.
4896 (path_info): Likewise.
4897 (path_command): Likewise.
4898 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4899 (inferior::inferior): Initialize 'environment' using the host's
4900 information.
4901 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4902 Include "environ.h".
4903 (class inferior) <environment>: Change type from 'struct
4904 gdb_environ' to 'gdb_environ'.
4905 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4906 methods from 'gdb_environ' class.
4907 * solib.c (solib_find_1): Likewise
4908 * unittests/environ-selftests.c: New file.
4909
4910 2017-06-20 Yao Qi <yao.qi@linaro.org>
4911
4912 * features/i386/i386-linux.xml: Exchange the order of including
4913 32bit-linux.xml and 32bit-sse.xml.
4914 * features/i386/i386-linux.c: Regenerated.
4915
4916 2017-06-20 Yao Qi <yao.qi@linaro.org>
4917
4918 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4919 Delete copy ctor and assignment operator.
4920 (tdesc_type): Likewise.
4921 (tdesc_feature): Likewise.
4922 (tdesc_free_reg): Remove.
4923 (tdesc_create_reg): Use new.
4924 (tdesc_free_type): Remove.
4925 (tdesc_create_vector): Use new.
4926 (tdesc_create_union): Likewise.
4927 (tdesc_create_flags): Likewise.
4928 (tdesc_create_enum): Likewise.
4929 (tdesc_free_feature): Delete.
4930 (free_target_description): Use delete.
4931
4932 2017-06-19 John Baldwin <jhb@FreeBSD.org>
4933
4934 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4935 registers.
4936
4937 2017-06-19 Pedro Alves <palves@redhat.com>
4938
4939 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4940 after gdb::unlinker.
4941
4942 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4943
4944 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4945 gdb_environ to access an environment variable.
4946
4947 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4948
4949 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4950 gdb_byte*.
4951
4952 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4953
4954 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4955
4956 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4957
4958 * configure: Re-generate.
4959 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4960
4961 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4962
4963 * configure: Re-generate.
4964 * warning.m4: Pass -Werror to compiler when checking for
4965 supported warning flags.
4966
4967 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4968
4969 * Makefile.in (COMPILE.pre): Add "-x c++".
4970
4971 2017-06-16 Alan Hayward <alan.hayward@arm.com>
4972 Pedro Alves <palves@redhat.com>
4973 Yao Qi <yao.qi@linaro.org>
4974
4975 * defs.h (RequireLongest): New.
4976 (extract_integer): Declare function template.
4977 (extract_signed_integer): Remove the declaration, but define it
4978 static inline.
4979 (extract_unsigned_integer): Likewise.
4980 (store_integer): Declare function template.
4981 (store_signed_integer): Remove the declaration, but define it
4982 static inline.
4983 (store_unsigned_integer): Likewise.
4984 * findvar.c (extract_integer): New function template.
4985 (extract_signed_integer): Remove.
4986 (extract_unsigned_integer): Remove.
4987 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4988 instantiations.
4989 (store_integer): New function template.
4990 (store_signed_integer): Remove.
4991 (store_unsigned_integer): Remove.
4992 (store_integer): Explicit instantiations.
4993 * regcache.c (regcache_raw_read_signed): Update.
4994 (regcache::raw_read): New function.
4995 (regcache::raw_read_signed): Remove.
4996 (regcache::raw_read_unsigned): Remove.
4997 (regcache_raw_read_unsigned): Update.
4998 (regcache_raw_write_unsigned): Update.
4999 (regcache::raw_write_signed): Remove.
5000 (regcache::raw_write): New function.
5001 (regcache_cooked_read_signed): Update.
5002 (regcache::raw_write_unsigned): Remove.
5003 (regcache::cooked_read_signed): Remove.
5004 (regcache_cooked_read_unsigned): Update.
5005 (regcache::cooked_read_unsigned): Remove.
5006 (regcache_cooked_write_signed): Update.
5007 (regcache_cooked_write_unsigned): Update.
5008 * regcache.h (regcache) <raw_read_signed>: Remove.
5009 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5010 <raw_read, raw_write>: New.
5011 <cooked_read_signed, cooked_write_signed>: Remove.
5012 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5013 <cooked_read, cooked_write>: New.
5014 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5015 (sh64_pseudo_register_write): Update.
5016
5017 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5018
5019 * arc-tdep.c (arc_disassembler_options): New variable.
5020 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5021 of default_print_insn.
5022 (arc_delayed_print_insn): Set info->section when needed,
5023 use default_print_insn to retrieve a disassembler.
5024
5025 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5026
5027 PR gdb/21574
5028 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5029 to mention $SHELL and startup-with-shell.
5030
5031 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5032
5033 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5034
5035 2017-06-14 Yao Qi <yao.qi@linaro.org>
5036
5037 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5038 default_print_insn instead of print_insn_aarch64.
5039 * arm-tdep.c (gdb_print_insn_arm): Call
5040 default_print_insn instead of print_insn_big_arm
5041 and print_insn_little_arm.
5042 * i386-tdep.c (i386_print_insn): Call default_print_insn
5043 instead of print_insn_i386.
5044 * ia64-tdep.c (ia64_print_insn): Call
5045 default_print_insn instead of print_insn_ia64.
5046 * mips-tdep.c (gdb_print_insn_mips): Call
5047 default_print_insn instead of print_insn_big_mips
5048 and print_insn_little_mips.
5049 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5050 instead of print_insn_spu.
5051
5052 2017-06-14 Pedro Alves <palves@redhat.com>
5053
5054 * ada-lang.c: Include "common/byte-vector.h".
5055 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5056 * charset.c (wchar_iterator::iterate): Resize the vector instead
5057 of reserving it.
5058 * common/byte-vector.h: Include "common/def-vector.h".
5059 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5060 * cli/cli-dump.c: Include "common/byte-vector.h".
5061 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5062 * common/byte-vector.h: New file.
5063 * common/def-vector.h: New file.
5064 * common/default-init-alloc.h: New file.
5065 * dwarf2loc.c: Include "common/byte-vector.h".
5066 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5067 instead of reserving it.
5068 * dwarf2read.c: Include "common/byte-vector.h".
5069 (data_buf::m_vec): Now a gdb::byte_vector.
5070 * gdb_regex.c: Include "common/def-vector.h".
5071 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5072 * mi/mi-main.c: Include "common/byte-vector.h".
5073 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5074 * printcmd.c: Include "common/byte-vector.h".
5075 (print_scalar_formatted): Use gdb::byte_vector.
5076 * valprint.c: Include "common/byte-vector.h".
5077 (maybe_negate_by_bytes, print_decimal_chars): Use
5078 gdb::byte_vector.
5079
5080 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5081
5082 * darwin-nat.c: Include "nat/fork-inferior.h".
5083
5084 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5085
5086 * configure.nat: Factor out Darwin bits that are not
5087 architecture-specific. Add fork-inferior.o.
5088
5089 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5090
5091 * configure.nat: Factor out AIX bits that are not
5092 architecture-specific. Add fork-inferior.o.
5093
5094 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5095
5096 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5097 (read_pieced_value, write_pieced_value): ...here. Reduce to
5098 wrappers that just call rw_pieced_value.
5099
5100 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5101
5102 * dwarf2loc.c (write_pieced_value): When writing the data for a
5103 memory piece, use write_memory_with_notification instead of
5104 write_memory.
5105
5106 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5107
5108 * valops.c (read_value_memory): Change embedded_offset to
5109 represent a bit offset instead of a byte offset.
5110 * value.h (read_value_memory): Adjust comment.
5111
5112 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5113
5114 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5115 dest_offset_bits and source_offset_bits.
5116 (write_pieced_value): Likewise.
5117
5118 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5119
5120 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5121 given by DW_OP_bit_piece.
5122 (write_pieced_value): Likewise.
5123
5124 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5125
5126 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5127 some other preparations to the places where sufficient information
5128 is available.
5129 (write_pieced_value): Likewise.
5130
5131 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5132
5133 * dwarf2loc.c (bits_to_bytes): New function.
5134 (read_pieced_value): Fix offset calculations for register pieces
5135 on big-endian targets.
5136 (write_pieced_value): Likewise.
5137
5138 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5139
5140 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5141 (write_pieced_value): Likewise.
5142
5143 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5144
5145 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5146 transfer the source value's least significant bits, instead of its
5147 lowest-addressed ones. Rename type_len to max_offset.
5148 (read_pieced_value): Mirror above changes to write_pieced_value as
5149 applicable.
5150
5151 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5152
5153 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5154 truncate full bytes from dest_offset_bits before using it as an
5155 offset into the buffer.
5156
5157 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5158
5159 * dwarf2loc.c (write_pieced_value): Include transfer size in
5160 byte-wise check.
5161
5162 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5163
5164 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5165 calculation of this_size.
5166
5167 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5168
5169 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5170 when targeting a bit-field.
5171 (write_pieced_value): Likewise.
5172
5173 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5174
5175 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5176 (allocate_piece_closure): Drop addr_size parameter.
5177 (dwarf2_evaluate_loc_desc_full): Adjust call to
5178 allocate_piece_closure.
5179
5180 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5181
5182 PR gdb/21226
5183 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5184 the LSB end, independent of endianness.
5185
5186 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5187
5188 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5189 size capping.
5190
5191 2017-06-13 Yao Qi <yao.qi@linaro.org>
5192
5193 * mips-linux-nat.c: Move include features/mips*-linux.c to
5194 mips-linux-tdep.c.
5195 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5196 to mips-linux-tdep.c.
5197 * mips-linux-tdep.c: Include features/mips*-linux.c
5198 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5199 functions.
5200 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5201 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5202 (tdesc_mips64_dsp_linux): Declare.
5203
5204 2017-06-12 Tom Tromey <tom@tromey.com>
5205
5206 * valprint.h (val_print_type_code_int): Remove.
5207 * valprint.c (generic_val_print_int): Always call
5208 val_print_scalar_formatted.
5209 (val_print_type_code_int): Remove.
5210 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5211 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5212 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5213 * ada-valprint.c (ada_val_print_num): Use
5214 val_print_scalar_formatted.
5215
5216 2017-06-12 Tom Tromey <tom@tromey.com>
5217
5218 * printcmd.c (print_scalar_formatted): Unify the two switches.
5219 Don't convert scalars to LONGEST.
5220
5221 2017-06-12 Tom Tromey <tom@tromey.com>
5222
5223 PR exp/16225:
5224 * valprint.h (print_decimal_chars): Update.
5225 * valprint.c (maybe_negate_by_bytes): New function.
5226 (print_decimal_chars): Add "is_signed" argument.
5227 * printcmd.c (print_scalar_formatted): Update.
5228
5229 2017-06-12 Tom Tromey <tom@tromey.com>
5230
5231 PR exp/16225:
5232 * valprint.h (print_binary_chars, print_hex_chars): Update.
5233 * valprint.c (val_print_type_code_int): Update.
5234 (print_binary_chars): Add "zero_pad" argument.
5235 (emit_octal_digit): New function.
5236 (print_octal_chars): Don't zero-pad.
5237 (print_decimal_chars): Likewise.
5238 (print_hex_chars): Add "zero_pad" argument.
5239 * sh64-tdep.c (sh64_do_fp_register): Update.
5240 * regcache.c (regcache::dump): Update.
5241 * printcmd.c (print_scalar_formatted): Update.
5242 * infcmd.c (default_print_one_register_info): Update.
5243
5244 2017-06-12 Pedro Alves <palves@redhat.com>
5245 Alan Hayward <alan.hayward@arm.com>
5246
5247 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5248 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5249 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5250 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5251 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5252
5253 2017-06-12 Pedro Alves <palves@redhat.com>
5254
5255 * dwarf2read.c (mapped_symtab::data): Now a vector of
5256 symtab_index_entry instead of vector of
5257 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5258 whether an element's name is NULL instead of checking whether the
5259 element itself is NULL.
5260 (find_slot): Change return type. Adjust.
5261 (hash_expand, , add_index_entry, uniquify_cu_indices)
5262 (write_hash_table): Adjust.
5263
5264 2017-06-12 Pedro Alves <palves@redhat.com>
5265
5266 * dwarf2read.c (recursively_count_psymbols): New function.
5267 (write_psymtabs_to_index): Call it to compute number of psyms and
5268 pass estimate size of psyms_seen to unordered_set's ctor.
5269
5270 2017-06-12 Pedro Alves <palves@redhat.com>
5271
5272 * dwarf2read.c (write_hash_table): Check if key already exists
5273 before emplacing.
5274
5275 2017-06-12 Pedro Alves <palves@redhat.com>
5276
5277 * dwarf2read.c (data_buf::append_space): Rename to...
5278 (data_buf::grow): ... this, and make private. Adjust all callers.
5279 (data_buf::append_uint): New method.
5280 (add_address_entry, write_one_signatured_type)
5281 (write_psymtabs_to_index): Use it.
5282
5283 2017-06-12 Pedro Alves <palves@redhat.com>
5284
5285 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5286 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5287 (data_buf::file_write): Call ::fwrite directly.
5288
5289 2017-06-12 Pedro Alves <palves@redhat.com>
5290
5291 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5292 std::vector::erase.
5293
5294 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5295
5296 Code cleanup: C++ify .gdb_index producer.
5297 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5298 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5299 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5300 (create_strtab, add_string): Remove.
5301 (file_write, data_buf): New.
5302 (struct symtab_index_entry): Use std::vector for cu_indices.
5303 (struct mapped_symtab): Use std::vector for data.
5304 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5305 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5306 Remove.
5307 (find_slot): Change return type. Update it to the new data structures.
5308 (hash_expand, add_index_entry): Update it to the new data structures.
5309 (offset_type_compare): Remove.
5310 (uniquify_cu_indices): Update it to the new data structures.
5311 (c_str_view, c_str_view_hasher, vector_hasher): New.
5312 (add_indices_to_cpool): Remove.
5313 (write_hash_table): Update it to the new data structures.
5314 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5315 (eq_psymtab_cu_index): Remove.
5316 (psym_index_map): New typedef.
5317 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5318 reference and std::unordered_map for cu_index_htab.
5319 (add_address_entry, add_address_entry_worker, write_address_map)
5320 (write_psymbols): Update it to the new data structures.
5321 (write_obstack): Remove.
5322 (struct signatured_type_index_data): Change types_list to a data_buf
5323 reference and psyms_seen to a std::unordered_set reference.
5324 (write_one_signatured_type, recursively_write_psymbols)
5325 (write_psymtabs_to_index): Update it to the new data structures.
5326
5327 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5328
5329 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5330 separate-debug-file commands.
5331 * symfile.h (separate_debug_file_debug): New global.
5332 * symfile.c (separate_debug_file_debug): New global.
5333 (separate_debug_file_exists, find_separate_debug_file): Add
5334 debug output.
5335 (_initialize_symfile): Add "set debug separate-debug-file"
5336 command.
5337 * build-id.c (build_id_to_debug_bfd,
5338 find_separate_debug_file_by_buildid): Add debug output.
5339
5340 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5341
5342 * gdbarch.sh (displaced_step_free_closure): Remove.
5343 * gdbarch.h, gdbarch.c: Re-generate.
5344 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5345 displaced_step_free_closure.
5346 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5347 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5348 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5349 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5350 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5351 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5352 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5353 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5354 * infrun.c (displaced_step_clear): Call xfree instead of
5355 gdbarch_displaced_step_free_closure.
5356
5357 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5358
5359 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5360 NULL".
5361
5362 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5363
5364 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5365 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5366 (mn10300_push_dummy_call): Likewise.
5367
5368 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5369
5370 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5371
5372 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5373
5374 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5375
5376 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5377
5378 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5379 able to start inferiors using a shell.
5380 (New remote packets): Announce new packet "QStartupWithShell".
5381 * remote.c: Add PACKET_QStartupWithShell.
5382 (extended_remote_create_inferior): Handle new
5383 PACKET_QStartupWithShell.
5384 (remote_protocol_features) <QStartupWithShell>: New entry for
5385 PACKET_QStartupWithShell.
5386 (_initialize_remote): Call "add_packet_config_cmd" for
5387 QStartupShell.
5388
5389 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5390 Pedro Alves <palves@redhat.com>
5391
5392 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5393 and "nat/fork-inferior.h".
5394 * common/common-inferior.h: New file, with contents from
5395 "gdb/inferior.h".
5396 * commom/common-utils.c: Include "common-utils.h".
5397 (stringify_argv): New function.
5398 * common/common-utils.h (stringify_argv): New prototype.
5399 * configure.nat: Add "fork-inferior.o" as a dependency for
5400 "*linux*", "fbsd*" and "nbsd*" hosts.
5401 * corefile.c (get_exec_file): Update comment.
5402 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5403 instead of "startup_inferior".
5404 (darwin_create_inferior): Call "add_thread_silent" after
5405 "fork_inferior".
5406 * fork-child.c: Cleanup unnecessary includes.
5407 (SHELL_FILE): Move to "common/common-fork-child.c".
5408 (environ): Likewise.
5409 (exec_wrapper): Initialize.
5410 (get_exec_wrapper): New function.
5411 (breakup_args): Move to "common/common-fork-child.c"; rename to
5412 "breakup_args_for_exec".
5413 (escape_bang_in_quoted_argument): Move to
5414 "common/common-fork-child.c".
5415 (saved_ui): New variable.
5416 (prefork_hook): New function.
5417 (postfork_hook): Likewise.
5418 (postfork_child_hook): Likewise.
5419 (gdb_startup_inferior): Likewise.
5420 (fork_inferior): Move to "common/common-fork-child.c". Update
5421 function to support gdbserver.
5422 (startup_inferior): Likewise.
5423 * gdbcore.h (get_exec_file): Remove declaration.
5424 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5425 instead of "startup_inferior". Call "add_thread_silent" after
5426 "fork_inferior".
5427 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5428 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5429 instead of "startup_inferior". Call "add_thread_silent" after
5430 "fork_inferior".
5431 * inferior.h: Include "common-inferior.h".
5432 (trace_start_error): Move to "common/common-utils.h".
5433 (trace_start_error_with_name): Likewise.
5434 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5435 (startup_inferior): Likewise.
5436 (gdb_startup_inferior): New prototype.
5437 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5438 * nat/fork-inferior.h: New file.
5439 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5440 instead of "startup_inferior". Call "add_thread_silent" after
5441 "fork_inferior".
5442 * target.h (target_terminal_init): Move prototype to
5443 "target/target.h".
5444 (target_terminal_inferior): Likewise.
5445 (target_terminal_ours): Likewise.
5446 * target/target.h (target_terminal_init): New prototype, moved
5447 from "target.h".
5448 (target_terminal_inferior): Likewise.
5449 (target_terminal_ours): Likewise.
5450 * utils.c (gdb_flush_out_err): New function.
5451
5452 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5453
5454 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5455 * common/common-gdbthread.h: New file, with parts from
5456 "gdb/gdbthread.h".
5457 * gdbthread.h: Include "common-gdbthread.h".
5458 (switch_to_thread): Moved to "common/common-gdbthread.h".
5459
5460 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5461
5462 * Makefile.in (SFILES): Add "common/job-control.c".
5463 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5464 (COMMON_OBS): Add "job-control.o".
5465 * common/job-control.c: New file, with contents from
5466 "gdb/inflow.c".
5467 * common/job-control.h: New file, with contents from "terminal.h".
5468 * fork-child.c: Include "job-control.h".
5469 * inflow.c: Include "job-control.h".
5470 (gdb_setpgid): Move to "common/common-inflow.c".
5471 (_initialize_inflow): Move setting of "job_control" to
5472 "handle_job_control".
5473 * terminal.h (job_control): Moved to "common/common-terminal.h".
5474 (gdb_setpgid): Likewise.
5475 * top.c: Include "job_control.h".
5476 * utils.c: Likewise.
5477 (job_control): Moved to "job-control.c".
5478
5479 2017-06-07 Pedro Alves <palves@redhat.com>
5480
5481 * Makefile.in (SFILES): Add gdb_regex.c.
5482 (COMMON_OBS): Add gdb_regex.o.
5483 * ada-lang.c (ada_add_standard_exceptions)
5484 (ada_add_exceptions_from_frame, name_matches_regex)
5485 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5486 parameter type to compiled_regex. Adjust.
5487 (ada_exceptions_list): Use compiled_regex.
5488 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5489 std::unique_ptr<compiled_regex>.
5490 (exception_catchpoint::~exception_catchpoint): Remove regfree
5491 call.
5492 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5493 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5494 * breakpoint.c (solib_catchpoint::compiled): Now a
5495 std::unique_ptr<compiled_regex>.
5496 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5497 (check_status_catch_solib): Adjust to use compiled_regex.
5498 (add_solib_catchpoint): Adjust to use compiled_regex.
5499 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5500 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5501 compiled_regex reference. Adjust to use it.
5502 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5503 declaration. Include "gdb_regex.h".
5504 (apropos_cmd): Change regex parameter to compiled_regex reference.
5505 * gdb_regex.c: New file.
5506 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5507 declarations.
5508 (class compiled_regex): New.
5509 * linux-tdep.c: Include "common/gdb_optional.h".
5510 (struct mapping_regexes): New, factored out from
5511 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5512 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5513 gdb::optional and remove cleanups. Adjust to compiled_regex.
5514 * probe.c: Include "common/gdb_optional.h".
5515 (collect_probes): Use compiled_regex and gdb::optional and remove
5516 cleanups.
5517 * skip.c: Include "common/gdb_optional.h".
5518 (skiplist_entry::compiled_function_regexp): Now a
5519 gdb::optional<compiled_regex>.
5520 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5521 (free_skiplist_entry): Remove regfree call.
5522 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5523 compiled_regex and gdb::optional.
5524 * symtab.c: Include "common/gdb_optional.h".
5525 (search_symbols): Use compiled_regex and gdb::optional.
5526 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5527 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5528 to gdb_regex.c.
5529
5530 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5531
5532 * regcache.c (regcache::save): Avoid buffer use.
5533 (regcache::dump): Likewise.
5534
5535 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5536
5537 * sh-tdep.c (sh_pseudo_register_read): Remove
5538 MAX_REGISTER_SIZE.
5539 (sh_pseudo_register_write): Likewise.
5540 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5541 (sh64_pseudo_register_write): Likewise
5542
5543 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5544
5545 * aarch64-tdep.c (aarch64_store_return_value): Use
5546 V_REGISTER_SIZE.
5547 (aarch64_pseudo_read_value): Likewise.
5548 (aarch64_pseudo_write): Likewise.
5549
5550 2017-06-06 Yao Qi <yao.qi@linaro.org>
5551
5552 * regformats/regdef.h (set_register_cache): Remove the
5553 declaration.
5554
5555 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5556
5557 * frame.c (frame_unwind_register_signed): Use
5558 frame_unwind_register_value.
5559
5560 2017-06-06 Pedro Alves <palves@redhat.com>
5561
5562 PR breakpoints/21553
5563 * breakpoint.c (create_breakpoints_sal_default)
5564 (init_breakpoint_sal, create_breakpoint_sal): Use
5565 gdb::unique_xmalloc_ptr for string parameters.
5566 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5567 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5568 (base_breakpoint_create_breakpoints_sal)
5569 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5570 (strace_marker_create_breakpoints_sal)
5571 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5572 string parameters.
5573 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5574 gdb::unique_xmalloc_ptr for string parameters.
5575 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5576 parameters.
5577
5578 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5579
5580 * alpha-tdep.c (alpha_register_to_value): Use
5581 get_frame_register_value.
5582 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5583
5584 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5585
5586 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5587 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5588 (ia64_value_to_register): Likewise.
5589 (ia64_extract_return_value): Likewise.
5590 (ia64_store_return_value): Likewise.
5591 (ia64_push_dummy_call): Likewise.
5592
5593 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5594
5595 GDB 8.0 released.
5596
5597 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5598
5599 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5600
5601 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5604 parameter.
5605 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5606
5607 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5608
5609 * event-loop.c (poll_timers): Unallocate timer using delete
5610 instead of xfree.
5611
5612 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5613
5614 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5615 (struct breakpoint) <~breakpoint>: New.
5616 (struct watchpoint): Inherit from breakpoint.
5617 <~watchpoint>: New.
5618 <base>: Remove.
5619 (struct tracepoint): Inherit from breakpoint.
5620 <base>: Remove.
5621 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5622 (struct longjmp_breakpoint): Inherit from breakpoint.
5623 <~longjmp_breakpoint>: New.
5624 <base>: Remove.
5625 (new_breakpoint_from_type): Remove casts.
5626 (watchpoint_in_thread_scope): Remove reference to base field.
5627 (watchpoint_del_at_next_stop): Likewise.
5628 (update_watchpoint): Likewise.
5629 (watchpoint_check): Likewise.
5630 (bpstat_check_watchpoint): Likewise.
5631 (set_longjmp_breakpoint): Likewise.
5632 (struct fork_catchpoint): Inherit from breakpoint.
5633 <base>: Remove.
5634 (struct solib_catchpoint): Inherit from breakpoint.
5635 <~solib_catchpoint>: New.
5636 <base>: Remove.
5637 (dtor_catch_solib): Change to ...
5638 (solib_catchpoint::~solib_catchpoint): ... this.
5639 (breakpoint_hit_catch_solib): Remove reference to base field.
5640 (add_solib_catchpoint): Likewise.
5641 (create_fork_vfork_event_catchpoint): Likewise.
5642 (struct exec_catchpoint): Inherit from breakpoint.
5643 <~exec_catchpoint>: New.
5644 <base>: Remove.
5645 (dtor_catch_exec): Change to ...
5646 (exec_catchpoint::~exec_catchpoint): ... this.
5647 (dtor_watchpoint): Change to ...
5648 (watchpoint::~watchpoint): ... this.
5649 (watch_command_1): Remove reference to base field.
5650 (catch_exec_command_1): Likewise.
5651 (base_breakpoint_dtor): Change to ...
5652 (breakpoint::~breakpoint): ... this.
5653 (base_breakpoint_ops): Remove dtor field value.
5654 (longjmp_bkpt_dtor): Change to ...
5655 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5656 (strace_marker_create_breakpoints_sal): Remove reference to base
5657 field.
5658 (delete_breakpoint): Don't manually call breakpoint destructor.
5659 (create_tracepoint_from_upload): Remove reference to base field.
5660 (trace_pass_set_count): Likewise.
5661 (initialize_breakpoint_ops): Don't initialize
5662 momentary_breakpoint_ops, don't set dtors.
5663 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5664 <~ada_catchpoint>: New.
5665 <base>: Remove.
5666 (create_excep_cond_exprs): Remove reference to base field.
5667 (dtor_exception): Change to ...
5668 (ada_catchpoint::~ada_catchpoint): ... this.
5669 (dtor_catch_exception): Remove.
5670 (dtor_catch_exception_unhandled): Remove.
5671 (dtor_catch_assert): Remove.
5672 (create_ada_exception_catchpoint): Remove reference to base
5673 field.
5674 (initialize_ada_catchpoint_ops): Don't set dtors.
5675 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5676 breakpoint.
5677 <~signal_catchpoint>: New.
5678 <base>: Remove.
5679 (signal_catchpoint_dtor): Change to ...
5680 (signal_catchpoint::~signal_catchpoint): ... this.
5681 (create_signal_catchpoint): Remove reference to base field.
5682 (initialize_signal_catchpoint_ops): Don't set dtor.
5683 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5684 from breakpoint.
5685 <~syscall_catchpoint>: New.
5686 <base>: Remove.
5687 (dtor_catch_syscall): Change to ...
5688 (syscall_catchpoint::~syscall_catchpoint): ... this.
5689 (create_syscall_event_catchpoint): Remove reference to base
5690 field.
5691 (initialize_syscall_catchpoint_ops): Don't set dtor.
5692 * break-catch-throw.c (struct exception_catchpoint): Inherit
5693 from breakpoint.
5694 <~exception_catchpoint>: New.
5695 <base>: Remove.
5696 (dtor_exception_catchpoint): Change to ...
5697 (exception_catchpoint::~exception_catchpoint): ... this.
5698 (handle_gnu_v3_exceptions): Remove reference to base field.
5699 (initialize_throw_catchpoint_ops): Don't set dtor.
5700 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5701 field.
5702 * remote.c (remote_get_tracepoint_status): Likewise.
5703 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5704 * tracefile.c (tracefile_fetch_registers): Likewise.
5705 * tracepoint.c (actions_command): Likewise.
5706 (validate_actionline): Likewise.
5707 (tfind_1): Likewise.
5708 (get_traceframe_location): Likewise.
5709 (find_matching_tracepoint_location): Likewise.
5710 (parse_tracepoint_status): Likewise.
5711 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5712
5713 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5714
5715 * breakpoint.c (struct longjmp_breakpoint): New struct.
5716 (is_tracepoint_type): Change return type to bool.
5717 (is_longjmp_type): New function.
5718 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5719 (set_raw_breakpoint_without_location): Use
5720 new_breakpoint_from_type.
5721 (set_raw_breakpoint): Likewise.
5722
5723 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5724
5725 * breakpoint.c (new_breakpoint_from_type): New function.
5726 (create_breakpoint_sal): Use new_breakpoint_from_type and
5727 unique_ptr.
5728 (create_breakpoint): Likewise.
5729
5730 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5731
5732 * memattr.c (mem_info_command): Rename to ...
5733 (info_mem_command): ... this.
5734 (mem_enable_command): Rename to ...
5735 (enable_mem_command): ... this.
5736 (mem_disable_command): Rename to ...
5737 (disable_mem_command): ... this.
5738 (mem_delete_command): Rename to ...
5739 (delete_mem_command): ... this.
5740 (_initialize_mem): Adjust function names.
5741
5742 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5743
5744 * btrace.c (handle_pt_insn_events): New.
5745 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5746 STATUS. Split into this and ...
5747 (handle_pt_insn_event_flags): ... this.
5748
5749 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5750
5751 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5752 and struct pt_insn.resynced.
5753 * configure: Regenerated.
5754 * config.in: Regenerated.
5755
5756 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5757
5758 * btrace.c (ftrace_find_call_by_number): New function.
5759 (ftrace_new_function): Store objects, not pointers.
5760 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5761 ftrace_new_gap, ftrace_update_function,
5762 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5763 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5764 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5765 btrace_ends_with_single_insn, btrace_call_get): Account for
5766 btrace_thread_info::functions now storing objects.
5767 * btrace.h (struct btrace_thread_info): Add constructor.
5768 (struct btrace_thread_info) <functions>: Make std::vector.
5769 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5770 Initialize with default values.
5771 * record-btrace.c (record_btrace_frame_sniffer): Account for
5772 btrace_thread_info::functions now storing objects.
5773
5774 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5775
5776 * btrace.c: Remove typedef bfun_s.
5777 (ftrace_new_gap): Directly add gaps to the list of gaps.
5778 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5779 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5780 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5781 instead of gdb VEC.
5782
5783 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5784
5785 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5786 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5787 with btrace_thread_info::next_segment and
5788 btrace_thread_info::prev_segment.
5789 * btrace.h: Remove struct btrace_func_link.
5790 (struct btrace_function): Replace pair of function segment pointers
5791 with pair of indices.
5792 * python/py-record-btrace.c (btpy_call_prev_sibling,
5793 btpy_call_next_sibling): Replace references to
5794 btrace_thread_info::segment with btrace_thread_info::next_segment and
5795 btrace_thread_info::prev_segment.
5796 * record-btrace.c (record_btrace_frame_this_id): Use
5797 btrace_find_call_by_number.
5798
5799 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5800
5801 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5802 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5803 btrace_insn_next, btrace_insn_prev): Remove references to
5804 btrace_thread_info::flow.
5805 * btrace.h (struct btrace_function): Remove FLOW.
5806
5807 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5808
5809 * btrace.c (ftrace_find_call_by_number): New function.
5810 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5811 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5812 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5813 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5814 index.
5815 * btrace.h (struct btrace_function): Turn UP into an index.
5816 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5817 as an index.
5818 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5819 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5820 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5821
5822 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5823
5824 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5825 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5826 ftrace_update_function, ftrace_compute_global_level_offset,
5827 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5828 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5829 btrace_insn_end, btrace_is_empty): Remove references to
5830 btrace_thread_info::begin and btrace_thread_info::end.
5831 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5832 (struct btrace_thread_info) <functions>: Adjust comment.
5833 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5834 btrace_thread_info::begin.
5835
5836 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5837
5838 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5839 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5840 ftrace_update_function): Remove arguments that implicitly were always
5841 BTINFO->END.
5842 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5843 Don't pass BTINFO->END.
5844
5845 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5846
5847 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5848 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5849 btrace_find_insn_by_number): Replace function segment pointer with
5850 index.
5851 (btrace_insn_cmp): Simplify.
5852 * btrace.h: (struct btrace_insn_iterator) Rename index to
5853 insn_index. Replace function segment pointer with index into function
5854 segment vector.
5855 * record-btrace.c (record_btrace_call_history): Replace function
5856 segment pointer use with index.
5857 (record_btrace_frame_sniffer): Retrieve function call segment through
5858 vector.
5859 (record_btrace_set_replay): Remove defunc't safety check.
5860
5861 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5862
5863 * btrace.c (btrace_ends_with_single_insn): New function.
5864 (btrace_call_get, btrace_call_number, btrace_call_begin,
5865 btrace_call_end, btrace_call_next, btrace_call_prev,
5866 btrace_find_call_by_number): Use index into call segment vector
5867 instead of pointer.
5868 (btrace_call_cmp): Simplify.
5869 * btrace.h (struct btrace_call_iterator): Replace function call segment
5870 pointer with index into vector.
5871 * record-btrace.c (record_btrace_call_history): Use index instead of
5872 pointer.
5873
5874 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5875
5876 * btrace.c (btrace_insn_begin, btrace_insn_end,
5877 btrace_find_insn_by_number): Add btinfo to iterator.
5878 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5879
5880 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5881
5882 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5883 and save pointers directly.
5884 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5885 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5886 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5887 changed signature of functions.
5888 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5889 (btrace_fetch): Remove code that adds btrace_function pointers to
5890 vector of btrace_functions.
5891 (btrace_clear): Simplify freeing vector of btrace_functions.
5892
5893 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5894
5895 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5896 Replace VEC_* with std::vector functions.
5897 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5898 (struct btrace_thread_info)<functions>: Change type to std::vector.
5899
5900 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5901
5902 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5903 "Removed targets and native configurations" up. Merge duplicate
5904 "New commands" sub-sections. Add "New options" sub-sections.
5905
5906 2017-05-26 Alan Hayward <alan.hayward@arm.com>
5907
5908 * defs.h (copy_integer_to_size): New declaration.
5909 * findvar.c (copy_integer_to_size): New function.
5910 (do_cint_test): New selftest function.
5911 (copy_integer_to_size_test): Likewise.
5912 (_initialize_findvar): Likewise.
5913 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5914 (mips_fbsd_collect_reg): Use raw_collect_integer.
5915 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5916 (mips64_fill_gregset): Use raw_collect_integer
5917 (mips64_fill_fpregset): Use raw_supply_integer.
5918 * regcache.c (regcache::raw_supply_integer): New function.
5919 (regcache::raw_collect_integer): Likewise.
5920 * regcache.h: (regcache::raw_supply_integer): New declaration.
5921 (regcache::raw_collect_integer): Likewise.
5922
5923 2017-05-24 Yao Qi <yao.qi@linaro.org>
5924
5925 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5926 (COMMON_OBS): Add gdbarch-selftests.o.
5927 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5928 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5929 * gdbarch-selftests.c: New file.
5930 * regcache.h (regcache) <~regcache>: Mark it virtual if
5931 GDB_SELF_TEST.
5932 <raw_write>: Likewise.
5933
5934 2017-05-24 Yao Qi <yao.qi@linaro.org>
5935
5936 * regcache.c (current_regcache): Change it to
5937 regcache::current_regcache.
5938 (regcache_observer_target_changed): Update.
5939 (regcache_thread_ptid_changed): Make it a regcache static
5940 method.
5941 (regcache_thread_ptid_changed): Update.
5942 (class regcache_access): New.
5943 (current_regcache_test): Update.
5944 (_initialize_regcache): Update.
5945 * regcache.h: Include forward_list.
5946 (regcache): Declare regcache_thread_ptid_changed and declare
5947 registers_changed_ptid as friend.
5948
5949 2017-05-24 Yao Qi <yao.qi@linaro.org>
5950
5951 * i387-tdep.c (i387_register_to_value): Use register_size
5952 instead of TYPE_LENGTH.
5953 * m68k-tdep.c (m68k_register_to_value): Likewise.
5954
5955 2017-05-24 Yao Qi <yao.qi@linaro.org>
5956
5957 * i387-tdep.c (i387_convert_register_p): Return false if type
5958 code isn't TYPE_CODE_FLT.
5959
5960 2017-05-24 Yao Qi <yao.qi@linaro.org>
5961
5962 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5963 length is 4.
5964 (alpha_register_to_value): Remove type length check.
5965 (alpha_value_to_register): Likewise.
5966
5967 2017-05-24 Yao Qi <yao.qi@linaro.org>
5968
5969 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5970 TYPE_CODE_FLT.
5971
5972 2017-05-24 Yao Qi <yao.qi@linaro.org>
5973
5974 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5975 TYPE_CODE_FLT or not.
5976
5977 2017-05-24 Yao Qi <yao.qi@linaro.org>
5978
5979 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5980 * avr-tdep.c (avr_gdbarch_init): Likewise.
5981 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5982 * cris-tdep.c (cris_gdbarch_init): Likewise.
5983 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5984 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5985 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5987 * mep-tdep.c (mep_gdbarch_init): Likewise.
5988 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5989 * mips-tdep.c (mips_gdbarch_init): Likewise.
5990 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5991 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5992 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5993 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5994 * v850-tdep.c (v850_gdbarch_init): Likewise.
5995
5996 2017-05-24 Yao Qi <yao.qi@linaro.org>
5997
5998 * selftest-arch.c (tests_with_arch): Call registers_changed
5999 and reinit_frame_cache.
6000 * selftest.c (run_self_tests): Likewise.
6001
6002 2017-05-24 Yao Qi <yao.qi@linaro.org>
6003
6004 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6005 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6006
6007 2017-05-24 Yao Qi <yao.qi@linaro.org>
6008
6009 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6010 set_gdbarch_print_insn.
6011
6012 2017-05-24 Yao Qi <yao.qi@linaro.org>
6013
6014 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6015 set_gdbarch_print_insn.
6016
6017 2017-05-24 Yao Qi <yao.qi@linaro.org>
6018
6019 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6020 set_gdbarch_print_insn.
6021 * arc-tdep.c (arc_gdbarch_init): Likewise.
6022 * arch-utils.c: include dis-asm.h.
6023 (default_print_insn): New function.
6024 * arch-utils.h (default_print_insn): Declare.
6025 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6026 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6027 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6028 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6029 * frv-tdep.c (frv_gdbarch_init): Likewise.
6030 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6031 * gdbarch.sh (print_insn): Use default_print_insn.
6032 * gdbarch.c: Regenerated.
6033 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6034 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6035 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6036 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6037 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6038 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6039 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6040 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6041 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6042 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6043 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6044 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6045 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6046 * mt-tdep.c (mt_gdbarch_init): Likewise.
6047 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6048 * nios2-tdep.c (nios2_print_insn): Remove.
6049 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6050 * rx-tdep.c (rx_gdbarch_init): Likewise.
6051 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6052 * score-tdep.c (score_print_insn): Remove.
6053 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6054 * sh-tdep.c (sh_gdbarch_init): Likewise.
6055 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6056 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6057 * tic6x-tdep.c (tic6x_print_insn): Remove.
6058 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6059 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6060 * v850-tdep.c (v850_gdbarch_init): Likewise.
6061 * vax-tdep.c (vax_gdbarch_init): Likewise.
6062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6063 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6064
6065 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6066
6067 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6068 (MIPS_FP0_REGNUM): Remove.
6069 (MIPS_FSR_REGNUM): Remove.
6070 (mips_fbsd_supply_fpregs): Use mips_regnum.
6071 (mips_fbsd_supply_gregs): Likewise.
6072 (mips_fbsd_collect_fpregs): Likewise.
6073 (mips_fbsd_collect_gregs): Likewise.
6074
6075 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6076
6077 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6078 (getpfpregs_supplies): New function.
6079 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6080 getfpregs_supplies.
6081 (mips_fbsd_store_inferior_registers): Likewise.
6082
6083 2017-05-22 Pedro Alves <palves@redhat.com>
6084
6085 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6086 maintainer.
6087
6088 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6089
6090 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6091 (store_register): Likewise.
6092 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6093 (get_decimal_float_return_value): Likewise.
6094 (do_ppc_sysv_return_value): Likewise.
6095 (ppc64_sysv_abi_push_integer): Likewise.
6096 (ppc64_sysv_abi_push_freg): Likewise.
6097 (ppc64_sysv_abi_return_value_base): Likewise.
6098 (ppc64_sysv_abi_return_value): Likewise.
6099 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6100 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6101 * rs6000-nat.c: Likewise.
6102 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6103 (rs6000_value_to_register): Likewise.
6104 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6105
6106 2017-05-21 Tom Tromey <tom@tromey.com>
6107
6108 PR rust/21466:
6109 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6110 arrays as "[T]", not "[T; ]".
6111
6112 2017-05-19 Tom Tromey <tom@tromey.com>
6113
6114 PR rust/21484:
6115 * rust-lang.c (exp_descriptor_rust): New function.
6116 (rust_language_defn): Use it.
6117 * p-lang.c (pascal_language_defn): Update.
6118 * opencl-lang.c (opencl_language_defn): Update.
6119 * objc-lang.c (objc_language_defn): Update.
6120 * m2-lang.c (m2_language_defn): Update.
6121 * language.h (struct language_defn)
6122 <la_watch_location_expression>: New member.
6123 * language.c (unknown_language_defn, auto_language_defn)
6124 (local_language_defn): Update.
6125 * go-lang.c (go_language_defn): Update.
6126 * f-lang.c (f_language_defn): Update.
6127 * d-lang.c (d_language_defn): Update.
6128 * c-lang.h (c_watch_location_expression): Declare.
6129 * c-lang.c (c_watch_location_expression): New function.
6130 (c_language_defn, cplus_language_defn, asm_language_defn)
6131 (minimal_language_defn): Use it.
6132 * breakpoint.c (watch_command_1): Call
6133 la_watch_location_expression.
6134 * ada-lang.c (ada_language_defn): Update.
6135
6136 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6137
6138 PR tui/21482
6139 * gdb_curses.h (NOMACROS): Define.
6140 (NCURSES_NOMACROS): Define.
6141
6142 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6143
6144 PR tui/21482
6145 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6146 arg to char *.
6147 * tui/tui-wingeneral.c (box_win): Likewise.
6148 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6149 (tui_show_source_line): Likewise.
6150 (tui_show_exec_info_content): Likewise.
6151
6152 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6153
6154 * sparc-tdep.c (sparc_structure_return_p)
6155 (sparc_arg_on_registers_p): New functions.
6156 (sparc32_store_arguments): Use them.
6157 * sparc64-tdep.c (sparc64_16_byte_align_p)
6158 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6159 Handle TYPE_CODE_ARRAY.
6160
6161 2017-05-17 Yao Qi <yao.qi@linaro.org>
6162
6163 * cli/cli-decode.c (add_alias_cmd): New function.
6164 * command.h (add_alias_cmd): Declare.
6165 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6166 instead call add_alias_cmd.
6167
6168 2017-05-17 Pedro Alves <palves@redhat.com>
6169
6170 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6171 (nat_makefile_frag): ... this. All references updated.
6172 * configure.ac: Likewise.
6173 * configure.nat: Likewise. Enhance comments.
6174 * configure: Regenerate.
6175
6176 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6177
6178 * procfs.c (procfs_create_inferior): Change prototype to match
6179 definition.
6180
6181 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6182
6183 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6184 C++ compiler warning.
6185
6186 2017-05-12 Tom Tromey <tom@tromey.com>
6187
6188 PR rust/21483:
6189 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6190 recurse, just call value_struct_elt directly.
6191
6192 2017-05-12 Tom Tromey <tom@tromey.com>
6193
6194 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6195 OP_RUST_ARRAY>: Fix.
6196
6197 2017-05-12 Tom Tromey <tom@tromey.com>
6198
6199 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6200
6201 2017-05-09 Yao Qi <yao.qi@linaro.org>
6202
6203 * regcache.c: Include <forward_list>.
6204 (struct regcache_list): Remove.
6205 (current_regcache): Update.
6206 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6207 (regcache_thread_ptid_changed): Likewise.
6208 (registers_changed_ptid): Likewise.
6209 (current_regcache_size): Likewise.
6210
6211 2017-05-09 Yao Qi <yao.qi@linaro.org>
6212
6213 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6214 (current_regcache_size): New function.
6215 (current_regcache_test): New function.
6216 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6217
6218 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6219
6220 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6221 (print_gp_register_row): Use get_frame_register_value.
6222
6223 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6224
6225 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6226 (mips_supply_fpregset): Likewise.
6227 (mips64_supply_gregset): Likewise.
6228
6229 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6230
6231 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6232 regcache->raw_supply_zeroed.
6233
6234 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6235
6236 * configure.nat: Rearrange 'case' statements to match
6237 host before cpu.
6238
6239 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6240
6241 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6242 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6243 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6244 "@nat_extra_makefile_frag@".
6245 (Makefile): Remove dependency on "@frags@".
6246 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6247 (data-directory/Makefile): Likewise.
6248 * config/aarch64/linux.mh: Deleted; moved contents to
6249 "gdb/configure.nat".
6250 * config/alpha/alpha-linux.mh: Likewise.
6251 * config/alpha/nbsd.mh: Likewise.
6252 * config/arm/linux.mh: Likewise.
6253 * config/arm/nbsdelf.mh: Likewise.
6254 * config/i386/cygwin.mh: Likewise.
6255 * config/i386/cygwin64.mh: Likewise.
6256 * config/i386/darwin.mh: Likewise.
6257 * config/i386/fbsd.mh: Likewise.
6258 * config/i386/fbsd64.mh: Likewise.
6259 * config/i386/go32.mh: Likewise.
6260 * config/i386/i386gnu.mh: Likewise.
6261 * config/i386/i386sol2.mh: Likewise.
6262 * config/i386/linux.mh: Likewise.
6263 * config/i386/linux64.mh: Likewise.
6264 * config/i386/mingw.mh: Likewise.
6265 * config/i386/mingw64.mh: Likewise.
6266 * config/i386/nbsd64.mh: Likewise.
6267 * config/i386/nbsdelf.mh: Likewise.
6268 * config/i386/nto.mh: Likewise.
6269 * config/i386/obsd.mh: Likewise.
6270 * config/i386/obsd64.mh: Likewise.
6271 * config/i386/sol2-64.mh: Likewise.
6272 * config/ia64/linux.mh: Likewise.
6273 * config/m32r/linux.mh: Likewise.
6274 * config/m68k/linux.mh: Likewise.
6275 * config/m68k/nbsdelf.mh: Likewise.
6276 * config/m68k/obsd.mh: Likewise.
6277 * config/m88k/obsd.mh: Likewise.
6278 * config/mips/fbsd.mh: Likewise.
6279 * config/mips/linux.mh: Likewise.
6280 * config/mips/nbsd.mh: Likewise.
6281 * config/mips/obsd64.mh: Likewise.
6282 * config/pa/linux.mh: Likewise.
6283 * config/pa/nbsd.mh: Likewise.
6284 * config/pa/obsd.mh: Likewise.
6285 * config/powerpc/aix.mh: Likewise.
6286 * config/powerpc/fbsd.mh: Likewise.
6287 * config/powerpc/linux.mh: Likewise.
6288 * config/powerpc/nbsd.mh: Likewise.
6289 * config/powerpc/obsd.mh: Likewise.
6290 * config/powerpc/ppc64-linux.mh: Likewise.
6291 * config/powerpc/spu-linux.mh: Likewise.
6292 * config/s390/linux.mh: Likewise.
6293 * config/sh/nbsd.mh: Likewise.
6294 * config/sparc/fbsd.mh: Likewise.
6295 * config/sparc/linux.mh: Likewise.
6296 * config/sparc/linux64.mh: Likewise.
6297 * config/sparc/nbsd64.mh: Likewise.
6298 * config/sparc/nbsdelf.mh: Likewise.
6299 * config/sparc/obsd64.mh: Likewise.
6300 * config/sparc/sol2.mh: Likewise.
6301 * config/tilegx/linux.mh: Likewise.
6302 * config/vax/nbsdelf.mh: Likewise.
6303 * config/vax/obsd.mh: Likewise.
6304 * config/xtensa/linux.mh: Likewise.
6305 * config/i386/i386gnu.mn: New file, with excerpts from
6306 "config/i386/i386gnu.mh".
6307 * configure: Regenerate.
6308 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6309 *.mh files under "gdb/config".
6310 * configure.nat: New file, with contents from the
6311 "gdb/config/*/*.mh" files.
6312
6313 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6314
6315 * btrace.c (btrace_clear): Free insn vector.
6316
6317 2017-05-05 Pedro Alves <palves@redhat.com>
6318
6319 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6320 * configure: Regenerate.
6321
6322 2017-05-04 Pedro Alves <palves@redhat.com>
6323
6324 * Makefile.in (SFILES): Add progspace-and-thread.c.
6325 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6326 (COMMON_OBS): Add progspace-and-thread.o.
6327 * breakpoint.c: Include "progspace-and-thread.h".
6328 (update_inserted_breakpoint_locations)
6329 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6330 Use scoped_restore_current_pspace_and_thread.
6331 (create_std_terminate_master_breakpoint): Use
6332 scoped_restore_current_program_space.
6333 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6334 (print_breakpoint_location): Use
6335 scoped_restore_current_program_space.
6336 (bp_loc_is_permanent): Use
6337 scoped_restore_current_pspace_and_thread.
6338 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6339 (download_tracepoint_locations): Use
6340 scoped_restore_current_pspace_and_thread.
6341 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6342 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6343 (enum step_over_calls_kind): Moved from inferior.h.
6344 (class scoped_restore_current_thread): New class.
6345 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6346 declaration.
6347 (scoped_restore_current_thread): New class.
6348 * infcmd.c: Include "common/gdb_optional.h".
6349 (continue_1, proceed_after_attach): Use
6350 scoped_restore_current_thread.
6351 (notice_new_inferior): Use scoped_restore_current_thread.
6352 * inferior.c: Include "progspace-and-thread.h".
6353 (restore_inferior, save_current_inferior): Delete.
6354 (add_inferior_command, clone_inferior_command): Use
6355 scoped_restore_current_pspace_and_thread.
6356 * inferior.h (scoped_restore_current_inferior): New class.
6357 * infrun.c: Include "progspace-and-thread.h" and
6358 "common/gdb_optional.h".
6359 (follow_fork_inferior): Use
6360 scoped_restore_current_pspace_and_thread.
6361 (scoped_restore_exited_inferior): New class.
6362 (handle_vfork_child_exec_or_exit): Use
6363 scoped_restore_exited_inferior,
6364 scoped_restore_current_pspace_and_thread,
6365 scoped_restore_current_thread and scoped_restore.
6366 (fetch_inferior_event): Use scoped_restore_current_thread.
6367 * linespec.c (decode_line_full, decode_line_1): Use
6368 scoped_restore_current_program_space.
6369 * mi/mi-main.c: Include "progspace-and-thread.h".
6370 (exec_continue): Use scoped_restore_current_thread.
6371 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6372 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6373 * proc-service.c (ps_pglobal_lookup): Use
6374 scoped_restore_current_program_space.
6375 * progspace-and-thread.c: New file.
6376 * progspace-and-thread.h: New file.
6377 * progspace.c (release_program_space, clone_program_space): Use
6378 scoped_restore_current_program_space.
6379 (restore_program_space, save_current_program_space)
6380 (save_current_space_and_thread): Delete.
6381 (switch_to_program_space_and_thread): Moved to
6382 progspace-and-thread.c.
6383 * progspace.h (save_current_program_space)
6384 (save_current_space_and_thread): Delete declarations.
6385 (scoped_restore_current_program_space): New class.
6386 * remote.c (remote_btrace_maybe_reopen): Use
6387 scoped_restore_current_thread.
6388 * symtab.c: Include "progspace-and-thread.h".
6389 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6390 * thread.c (print_thread_info_1): Use
6391 scoped_restore_current_thread.
6392 (struct current_thread_cleanup): Delete.
6393 (do_restore_current_thread_cleanup)
6394 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6395 (scoped_restore_current_thread::~scoped_restore_current_thread):
6396 ... this new dtor.
6397 (make_cleanup_restore_current_thread): Rename/convert to ...
6398 (scoped_restore_current_thread::scoped_restore_current_thread):
6399 ... this new ctor.
6400 (thread_apply_all_command): Use scoped_restore_current_thread.
6401 (thread_apply_command): Use scoped_restore_current_thread.
6402 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6403 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6404
6405 2017-05-04 Pedro Alves <palves@redhat.com>
6406
6407 * thread.c (make_cleanup_restore_current_thread): Move
6408 find_thread_ptid call before the is_stopped call. Assert that the
6409 thread is found. Replace is_stopped call by checking the thread's
6410 state directly. Remove unnecessary NULL-thread check.
6411
6412 2017-05-04 Pedro Alves <palves@redhat.com>
6413
6414 * corelow.c (thread_section_name): New class.
6415 (get_core_register_section, get_core_siginfo): Use it.
6416
6417 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6418
6419 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6420 (get_core_register_section): Remove xfree of NULL pointer.
6421
6422 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6423
6424 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6425 * regcache.c (regcache::raw_supply_zeroed): New function.
6426 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6427
6428 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6429
6430 * gdbarch.sh: Remove commented out definition of
6431 TARGET_CHAR_BIT.
6432 * gdbarch.h: Re-generate.
6433
6434 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6435
6436 * configure: Regenerate.
6437
6438 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6439
6440 * solib-target.c (solib_target_relocate_section_addresses):
6441 Remove num_section_bases, num_bases, segment_bases variables.
6442
6443 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6444
6445 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6446
6447 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * solib-target.c: Include <vector>
6450 (struct lm_info_target) <~lm_info_target>: Remove.
6451 <segment_bases, section_bases>: Change type to
6452 std::vector<CORE_ADDR>.
6453 (library_list_start_segment, library_list_start_section,
6454 library_list_end_library,
6455 solib_target_relocate_section_addresses): Adjust.
6456
6457 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6458
6459 * gdbarch.sh (software_single_step): Change return type to
6460 std::vector<CORE_ADDR>.
6461 * gdbarch.c, gdbarch.h: Re-generate.
6462 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6463 Adjust.
6464 (arm_deal_with_atomic_sequence_raw): Adjust.
6465 (thumb_get_next_pcs_raw): Adjust.
6466 (arm_get_next_pcs_raw): Adjust.
6467 (arm_get_next_pcs): Adjust.
6468 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6469 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6470 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6471 (alpha_software_single_step): Adjust.
6472 * alpha-tdep.h (alpha_software_single_step): Adjust.
6473 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6474 * arm-tdep.c (arm_software_single_step): Adjust.
6475 (arm_breakpoint_kind_from_current_state): Adjust.
6476 * arm-tdep.h (arm_software_single_step): Adjust.
6477 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6478 * cris-tdep.c (cris_software_single_step): Adjust.
6479 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6480 (micromips_deal_with_atomic_sequence): Adjust.
6481 (deal_with_atomic_sequence): Adjust.
6482 (mips_software_single_step): Adjust.
6483 * mips-tdep.h (mips_software_single_step): Adjust.
6484 * moxie-tdep.c (moxie_software_single_step): Adjust.
6485 * nios2-tdep.c (nios2_software_single_step): Adjust.
6486 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6487 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6488 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6489 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6490 * sparc-tdep.c (sparc_software_single_step): Adjust.
6491 * spu-tdep.c (spu_software_single_step): Adjust.
6492 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6493
6494 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6495
6496 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6497 * gdbarch.h: Re-generate.
6498
6499 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6500
6501 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6502 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6503 * python/py-instruction.c, python/py-instruction.h: New file.
6504 * python/py-record.c: Add py-instruction.h include.
6505 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6506 gdb.RecordInstruction.
6507 * python/python-internal.h: Add gdbpy_initialize_instruction
6508 declaration.
6509 * python/python.c (do_start_initialization): Add
6510 gdbpy_initialize_instruction.
6511
6512 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6513
6514 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6515 Remove.
6516 (btrace_func_from_recpy_func): New function.
6517 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6518 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6519 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6520 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6521 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6522 Also, use new helper functions.
6523 (btpy_list_item): Use new helper functions.
6524 (recpy_bt_function_call_history): Use new type name.
6525 (btpy_call_getset): Remove.
6526 (gdbpy_initialize_btrace): Remove code to initialize
6527 gdb.BtraceFunctionCall.
6528 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6529 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6530 recpy_bt_func_prev, recpy_bt_func_next): New export.
6531 * python/py-record.c (recpy_func_type): New static object.
6532 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6533 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6534 recpy_func_next): New function.
6535 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6536 (recpy_func_getset): New static object.
6537 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6538 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6539
6540 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6541
6542 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6543 (btpy_object, btpy_insn_type, btpy_new): Remove.
6544 (btpy_list_object): Use gdb.RecordInstruction type instead of
6545 gdb.BtraceInstruction type.
6546 (btrace_insn_from_recpy_insn): New function.
6547 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6548 btpy_new.
6549 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6550 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6551 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6552 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6553 instead of btpy_object.
6554 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6555 btpy_insn_data, btpy_insn_decode): Rename to ...
6556 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6557 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6558 recpy_bt_insn_decode): This. Also, use new helper functions.
6559 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6560 recpy_insn_type.
6561 (btpy_insn_getset): Remove.
6562 (gdbpy_initialize_btrace): Remove code to initialize
6563 gdb.BtraceInstruction. Use recpy_element_object.
6564 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6565 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6566 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6567 * python/py-record.c (recpy_insn_type): New static object.
6568 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6569 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6570 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6571 New function.
6572 (recpy_insn_getset): New static object.
6573 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6574 * python/py-record.h (recpy_element_object): New typedef.
6575 (recpy_insn_type, recpy_insn_new): New export.
6576
6577 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6578
6579 * py-record-btrace.c (btpy_insn_new): Removed.
6580 (btpy_insn_or_gap_new): New function.
6581 (btpy_insn_error): Removed.
6582 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6583 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6584 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6585 btpy_insn_or_gap_new instead of btpy_insn_new.
6586 (btpy_insn_getset): Remove btpy_insn_error.
6587 * py-record.c (recpy_gap_type): New static object.
6588 (recpy_gap_object): New typedef.
6589 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6590 recpy_gap_reason_string): New function.
6591 (recpy_gap_getset): New static object.
6592 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6593 * py-record.h (recpy_gap_new): New export.
6594
6595 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6596
6597 * python/py-record.c (recpy_ptid): Remove.
6598 (recpy_record_getset): Remove recpy_ptid.
6599
6600 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6601
6602 * btrace.c (btrace_fetch): Set inferior_ptid.
6603 * python/py-record-btrace.c: Add "py-record.h" include.
6604 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6605 recpy_bt_end, recpy_bt_instruction_history,
6606 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6607 in gdb.Record object instead of current ptid.
6608 * python/py-record.c: Include new "py-record.h" file.
6609 (recpy_record_object): Moved to py-record.h.
6610 * python/py-record.h: New file.
6611
6612 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6613
6614 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6615 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6616 indentation.
6617
6618 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6619
6620 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6621 the past maintainers section.
6622
6623 2017-04-28 Yao Qi <yao.qi@linaro.org>
6624
6625 * infcmd.c (get_return_value): Use regcache ctor, and remove
6626 cleanup.
6627
6628 2017-04-28 Yao Qi <yao.qi@linaro.org>
6629 Pedro Alves <palves@redhat.com>
6630
6631 * regcache.c (regcache::regcache): New tag dispatch ctor.
6632 (do_cooked_read): Moved above.
6633 (regcache_dup): Use the tag dispatch ctor..
6634 * regcache.h (regcache): Declare ctor, delete copy ctor and
6635 assignment operator, remove friend regcache_dup.
6636
6637 2017-04-28 Yao Qi <yao.qi@linaro.org>
6638
6639 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6640 call method save instead of regcache_cpy.
6641 * regcache.h (struct regcache): Make regcache_dup a friend.
6642
6643 2017-04-28 Yao Qi <yao.qi@linaro.org>
6644
6645 * regcache.c (struct regcache): Move to regcache.h
6646 (regcache::arch): New method.
6647 (regcache_get_ptid): Update.
6648 (get_regcache_arch): Call arch method.
6649 (get_regcache_aspace): Call method aspace.
6650 (register_buffer): Change it to method.
6651 (regcache_save): Change it to regcache::save.
6652 (regcache_restore): Likewise.
6653 (regcache_cpy_no_passthrough): Remove the declaration.
6654 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6655 (regcache_cpy_no_passthrough): Change it to method
6656 cpy_no_passthrough.
6657 (regcache_register_status): Change it to method
6658 get_register_status.
6659 (regcache_invalidate): Change it to method invalidate.
6660 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6661 (regcache_raw_update): Change it to method raw_update.
6662 (regcache_raw_read): Likewise.
6663 (regcache_raw_read_signed): Likewise.
6664 (regcache_raw_read_unsigned): Likewise.
6665 (regcache_raw_write_signed): Likewise.
6666 (regcache_raw_write_unsigned): Likewise.
6667 (regcache_cooked_read): Likewise.
6668 (regcache_cooked_read_value): Likewise.
6669 (regcache_cooked_read_signed): Likewise.
6670 (regcache_cooked_read_unsigned): Likewise.
6671 (regcache_cooked_write_signed): Likewise.
6672 (regcache_cooked_write_unsigned): Likewise.
6673 (regcache_raw_set_cached_value): Likewise.
6674 (regcache_raw_write): Likewise.
6675 (regcache_cooked_write): Likewise.
6676 (regcache_xfer_part): Likewise.
6677 (regcache_raw_read_part): Likewise.
6678 (regcache_raw_write_part): Likewise.
6679 (regcache_cooked_read_part): Likewise.
6680 (regcache_cooked_write_part): Likewise.
6681 (regcache_raw_supply): Likewise.
6682 (regcache_raw_collect): Likewise.
6683 (regcache_transfer_regset): Likewise.
6684 (regcache_supply_regset): Likewise.
6685 (regcache_collect_regset): Likewise.
6686 (regcache_debug_print_register): Likewise.
6687 (enum regcache_dump_what): Move it to regcache.h.
6688 (regcache_dump): Change it to method dump.
6689 * regcache.h (enum regcache_dump_what): New.
6690 (class regcache): New.
6691 * target.c (target_fetch_registers): Call method
6692 debug_print_register.
6693 (target_store_registers): Likewise.
6694
6695 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6696
6697 * windows-nat.c (struct lm_info_windows): Initialize field.
6698 (windows_make_so): Allocate lm_info_windows with new.
6699 (windows_free_so): Free lm_info_windows with delete.
6700
6701 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6704 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6705 cleanup.
6706 (darwin_free_so): Free lm_info_darwin with delete.
6707
6708 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6709
6710 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6711 <l_addr_p>: Change type to bool.
6712 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6713 (svr4_free_so): Free lm_info_svr4 with delete.
6714 (svr4_copy_library_list): Replace memcpy with call to copy
6715 constructor.
6716 (library_list_start_library, svr4_default_sos): Allocate
6717 lm_info_svr4 with new.
6718
6719 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6720
6721 * solib-target.c (struct lm_info_target): Add destructor,
6722 initialize fields.
6723 <name>: Change type to std::string.
6724 (library_list_start_library): Allocate lm_info_target with new.
6725 (solib_target_free_library_list): Free lm_info_target with
6726 delete.
6727 (solib_target_current_sos): Adapt to std::string.
6728 (solib_target_free_so): Free lm_info_target with delete.
6729
6730 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6731
6732 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6733 fields.
6734 (frv_current_sos): Allocate lm_info_frv with new.
6735 (frv_relocate_main_executable): Free lm_info_frv with delete,
6736 allocate with new.
6737 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6738
6739 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6740
6741 * solib-frv.c (struct lm_info_frv): Fix indentation.
6742
6743 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6744
6745 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6746 map field.
6747 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6748 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6749 and allocate with new.
6750 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6751
6752 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6753
6754 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6755 <filename, member_name>: Change type to std::string.
6756 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6757 (library_list_start_library): Allocate lm_info_aix with new.
6758 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6759 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6760 with copy constructor.
6761
6762 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6763
6764 * solist.h (struct lm_info): Remove.
6765 (struct lm_info_base): New class.
6766 (struct so_list) <lm_info>: Change type to lm_info_base *.
6767 * nto-tdep.c (struct lm_info): Remove.
6768 (lm_addr): Adjust.
6769 * solib-aix.c (struct lm_info): Rename to ...
6770 (struct lm_info_aix): ... this. Extend lm_info_base.
6771 (lm_info_p): Rename to ...
6772 (lm_info_aix_p): ... this, and adjust.
6773 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6774 solib_aix_parse_libraries, library_list_start_library,
6775 solib_aix_free_library_list, solib_aix_parse_libraries,
6776 solib_aix_get_library_list,
6777 solib_aix_relocate_section_addresses, solib_aix_free_so,
6778 solib_aix_get_section_offsets,
6779 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6780 Adjust.
6781 (struct solib_aix_inferior_data) <library_list>: Adjust.
6782 * solib-darwin.c (struct lm_info): Rename to ...
6783 (struct lm_info_darwin): ... this. Extend lm_info_base.
6784 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6785 * solib-dsbt.c (struct lm_info): Rename to ...
6786 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6787 (struct dsbt_info) <main_executable_lm_info): Adjust.
6788 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6789 dsbt_relocate_section_addresses): Adjust.
6790 * solib-frv.c (struct lm_info): Rename to ...
6791 (struct lm_info_frv): ... this. Extend lm_info_base.
6792 (main_executable_lm_info): Adjust.
6793 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6794 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6795 find_canonical_descriptor_in_load_object,
6796 frv_fdpic_find_canonical_descriptor): Adjust.
6797 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6798 to lm_info_svr4.
6799 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6800 svr4_clear_so, svr4_copy_library_list,
6801 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6802 svr4_current_sos, svr4_fetch_objfile_link_map,
6803 solist_update_incremental): Adjust.
6804 * solib-svr4.h (struct lm_info_svr4): Move here from
6805 solib-svr4.c.
6806 * solib-target.c (struct lm_info): Rename to ...
6807 (struct lm_info_target): ... this. Extend lm_info_base.
6808 (lm_info_p): Rename to ...
6809 (lm_info_target_p): ... this.
6810 (solib_target_parse_libraries, library_list_start_segment,
6811 library_list_start_section, library_list_start_library,
6812 library_list_end_library, solib_target_free_library_list,
6813 solib_target_current_sos, solib_target_free_so,
6814 solib_target_relocate_section_addresses): Adjust.
6815 * windows-nat.c (struct lm_info): Rename to ...
6816 (struct lm_info_windows): ... this. Extend lm_info_base.
6817 (windows_make_so, handle_load_dll, handle_unload_dll,
6818 windows_xfer_shared_libraries): Adjust.
6819
6820 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6821
6822 * solib-darwin.c (struct darwin_so_list): Remove.
6823 (darwin_current_sos): Allocate an so_list object instead of a
6824 darwin_so_list, separately allocate an lm_info object.
6825 (darwin_free_so): Free lm_info.
6826
6827 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6828
6829 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6830 with fprintf_filtered.
6831
6832 2017-04-28 Yao Qi <yao.qi@linaro.org>
6833
6834 * regcache.c (regcache::regcache): New function.
6835 (regcache::~regcache): New function.
6836 (regcache_xmalloc_1): Remove.
6837 (regcache_xmalloc): Call new regcache.
6838 (regcache_xfree): Call delete regcache.
6839 (get_thread_arch_aspace_regcache): Call new regcache.
6840
6841 2017-04-28 Yao Qi <yao.qi@linaro.org>
6842
6843 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6844 lwp instead of ptid_get_lwp.
6845
6846 2017-04-28 Yao Qi <yao.qi@linaro.org>
6847
6848 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6849 lwp_info instead of getting from inferior_ptid.
6850
6851 2017-04-27 Keith Seitz <keiths@redhat.com>
6852
6853 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6854 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6855 (CV_CONVERSION_BADNESS): Define.
6856 (rank_one_type): Remove overly restrictive rvalue reference
6857 rank checks.
6858 Add cv-qualifier checks and subranks for type equality.
6859 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6860 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6861 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6862
6863 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6864
6865 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6866 count when creating the object.
6867
6868 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6869 Ulrich Weigand <uweigand@de.ibm.com>
6870
6871 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6872 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6873 is used in AIX.
6874 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6875 (process_xcoff_symbol): Likewise.
6876 (scan_xcoff_symtab): Likewise.
6877
6878 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6879
6880 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6881 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6882 (ia64_access_reg): Use get_frame_register_unsigned.
6883 (ia64_access_rse_reg): Likewise.
6884 (ia64_libunwind_frame_prev_register): Likewise.
6885
6886 2017-04-26 Jiong Wang <jiong.wang@arm.com>
6887
6888 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6889 * gdbarch.c: Regenerated.
6890 * gdbarch.h: Regenerated.
6891 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6892 visibility external.
6893 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6894 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6895 (enum cfa_how_kind): Move to ...
6896 (struct dwarf2_frame_state_reg_info): Likewise.
6897 (struct dwarf2_frame_state): Likewise.
6898 * dwarf2-frame.h: ... here.
6899 (dwarf2_frame_state_alloc_regs): New declaration.
6900 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6901 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6902
6903 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6904
6905 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6906 regcache_raw_read_unsigned.
6907 (xtensa_pseudo_register_write): Likewise.
6908
6909 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6910
6911 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6912 (nds32_pseudo_register_write): Likewise.
6913
6914 2017-04-25 Yao Qi <yao.qi@linaro.org>
6915
6916 * regcache.c (struct regcache) <readonly_p>: Change its type
6917 to bool.
6918 (regcache_xmalloc_1): Update parameter type and callers update.
6919
6920 2017-04-25 Yao Qi <yao.qi@linaro.org>
6921
6922 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6923 set_gdbarch_wchar_bit.
6924 * arm-tdep.c (arm_gdbarch_init): Likewise.
6925
6926 2017-04-25 Pedro Alves <palves@redhat.com>
6927
6928 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6929 (BothAreRelocatable, memcopy, memmove): Don't define.
6930 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6931 macros.
6932
6933 2017-04-25 Pedro Alves <palves@redhat.com>
6934
6935 * common/common-defs.h: Include "common/poison.h".
6936 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6937 and adjust.
6938 * common/poison.h: New file.
6939 * common/traits.h: Include <type_traits>.
6940 (Not, Or, Requires): New, moved from common/function-view.h.
6941
6942 2017-04-25 Pedro Alves <palves@redhat.com>
6943
6944 * breakpoint.h (struct breakpoint): In-class initialize all
6945 fields. Make boolean fields "bool".
6946 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6947 memset call and initializations no longer necessary.
6948
6949 2017-04-25 Pedro Alves <palves@redhat.com>
6950
6951 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6952 reference.
6953 (pt_btrace_insn): New function.
6954 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6955
6956 2017-04-25 Pedro Alves <palves@redhat.com>
6957
6958 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6959 "base" field and inherit from "bp_location" instead. Add
6960 non-default ctor.
6961 (allocate_location_exception): Use new non-default ctor.
6962 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6963 (init_bp_location): Convert to ...
6964 (bp_location::bp_location): ... this new ctor, and remove memset
6965 call.
6966 (base_breakpoint_allocate_location): Use the new non-default ctor.
6967 * breakpoint.h (bp_location): Now a class. Declare default and
6968 non-default ctors. In-class initialize all members.
6969 (init_bp_location): Remove declaration.
6970
6971 2017-04-25 Pedro Alves <palves@redhat.com>
6972
6973 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6974 assignment operator.
6975
6976 2017-04-24 Yao Qi <yao.qi@linaro.org>
6977
6978 * doublest.c (convert_doublest_to_floatformat): Call
6979 floatformat_totalsize_bytes.
6980
6981 2017-04-22 Tom Tromey <tom@tromey.com>
6982
6983 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6984 ui_out_emit_list.
6985 * stack.c (print_frame): Use ui_out_emit_list.
6986 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6987 ui_out_emit_list.
6988 * mi/mi-main.c (print_one_inferior)
6989 (mi_cmd_data_list_register_names)
6990 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6991 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6992 ui_out_emit_list.
6993 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6994 (mi_output_solib_attribs): Use ui_out_emit_list,
6995 ui_out_emit_tuple.
6996 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6997 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6998 (mi_cmd_stack_list_args, list_args_or_locals): Use
6999 ui_out_emit_list.
7000 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7001 * breakpoint.c (print_solib_event, output_thread_groups): Use
7002 ui_out_emit_list.
7003
7004 2017-04-22 Tom Tromey <tom@tromey.com>
7005
7006 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7007 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7008 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7009
7010 2017-04-22 Tom Tromey <tom@tromey.com>
7011
7012 * tracepoint.c (tvariables_info_1)
7013 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7014
7015 2017-04-22 Tom Tromey <tom@tromey.com>
7016
7017 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7018 annotate_arg_emitter.
7019 * breakpoint.c (print_mention_watchpoint)
7020 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7021 * annotate.h (struct annotate_arg_emitter): New.
7022
7023 2017-04-22 Tom Tromey <tom@tromey.com>
7024
7025 * record-btrace.c (record_btrace_insn_history)
7026 (record_btrace_insn_history_range, record_btrace_call_history)
7027 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7028 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7029 ui_out_emit_tuple.
7030 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7031 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7032 * skip.c (skip_info): Use ui_out_emit_tuple.
7033 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7034 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7035 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7036 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7037 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7038 ui_out_emit_tuple.
7039 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7040 (output_register, mi_cmd_data_read_memory)
7041 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7042 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7043 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7044 Use ui_out_emit_tuple.
7045 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7046 ui_out_emit_tuple.
7047 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7048 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7049 * linux-thread-db.c (info_auto_load_libthread_db): Use
7050 ui_out_emit_tuple.
7051 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7052 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7053 * disasm.c (do_mixed_source_and_assembly_deprecated)
7054 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7055 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7056 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7057 * breakpoint.c (print_one_breakpoint_location)
7058 (print_one_breakpoint): Use ui_out_emit_tuple.
7059 * auto-load.c (print_script, info_auto_load_cmd): Use
7060 ui_out_emit_tuple.
7061 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7062
7063 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7064
7065 * thread.c (print_thread_info_1): Remove dead code.
7066
7067 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7068
7069 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7070 GDB_SELF_TEST.
7071 * arm-tdep.c (selftests::arm_record_test): Likewise.
7072
7073 2017-04-21 Yao Qi <yao.qi@linaro.org>
7074
7075 * regcache.c (regcache_restore): Remove argument 2. Replace
7076 argument 3 with regcache. Get register status from
7077 src->register_status and get register contents from
7078 register_buffer (src, regnum).
7079 (regcache_cpy): Update.
7080
7081 2017-04-19 Pedro Alves <palves@redhat.com>
7082
7083 * gdbthread.h (thread): Add missing closing parenthesis in
7084 comment.
7085
7086 2017-04-19 Pedro Alves <palves@redhat.com>
7087
7088 * common/refcounted-object.h: New file.
7089 * gdbthread.h: Include "common/refcounted-object.h".
7090 (thread_info): Inherit from refcounted_object and add comments.
7091 (thread_info::incref, thread_info::decref)
7092 (thread_info::m_refcount): Delete.
7093 (thread_info::deletable): Use the refcounted_object::refcount()
7094 method.
7095 * inferior.c (current_inferior_): Add comment.
7096 (set_current_inferior): Increment/decrement refcounts.
7097 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7098 not-deletable instead of comparing with the current inferior.
7099 (initialize_inferiors): Increment the initial inferior's refcount.
7100 * inferior.h (struct inferior): Forward declare.
7101 Include "common/refcounted-object.h".
7102 (current_inferior, set_current_inferior): Move declaration to
7103 before struct inferior's definition, and fix comment.
7104 (inferior): Inherit from refcounted_object. Add comments.
7105 * thread.c (switch_to_thread_no_regs): Reference the thread's
7106 inferior pointer directly instead of doing a ptid lookup.
7107 (switch_to_no_thread): New function.
7108 (switch_to_thread(thread_info *)): New function, factored out
7109 from ...
7110 (switch_to_thread(ptid_t)): ... this.
7111 (restore_current_thread): Delete.
7112 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7113 fields, and add 'inf' field.
7114 (do_restore_current_thread_cleanup): Check whether old->inf is
7115 alive instead of looking up an inferior by ptid. Use
7116 switch_to_thread and switch_to_no_thread.
7117 (restore_current_thread_cleanup_dtor): Use old->inf directly
7118 instead of lookup up an inferior by id. Decref the inferior.
7119 Don't restore 'removable'.
7120 (make_cleanup_restore_current_thread): Same the inferior pointer
7121 in old, instead of the inferior number. Incref the inferior.
7122 Don't save/clear 'removable'.
7123
7124 2017-04-19 Pedro Alves <palves@redhat.com>
7125
7126 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7127 unittests/scoped_restore-selftests.c.
7128 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7129 * common/scoped_restore.h (scoped_restore_base): Make "class".
7130 (scoped_restore_base::release): New public method.
7131 (scoped_restore_base::scoped_restore_base): New protected ctor.
7132 (scoped_restore_base::m_saved_var): New protected field.
7133 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7134 scoped_restore_base base class instead of m_saved_var directly.
7135 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7136 (scoped_restore_tmpl::scoped_restore_tmpl(const
7137 scoped_restore_tmpl<T>&)): Likewise.
7138 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7139 method.
7140 (scoped_restore_tmpl::saved_var): New method.
7141 (scoped_restore_tmpl::m_saved_var): Delete.
7142 * inferior.h (inferior::detaching): Now a bool.
7143 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7144 cleanup.
7145 * unittests/scoped_restore-selftests.c: New file.
7146
7147 2017-04-19 Pedro Alves <palves@redhat.com>
7148
7149 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7150 Re-sort in alphabetic order.
7151
7152 2017-04-18 Pedro Alves <palves@redhat.com>
7153
7154 * xml-support.c (obstack_xml_printf): Delete.
7155 * xml-support.h (obstack_xml_printf): Delete.
7156
7157 2017-04-18 Pedro Alves <palves@redhat.com>
7158
7159 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7160 vdebug, verror, body_text, start_element, end_element, name,
7161 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7162 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7163 is_xinclude>: Make private and add m_ prefix.
7164 (gdb_xml_parser::body_text): New method, based on ...
7165 (gdb_xml_body_text): ... this. Adjust.
7166 (gdb_xml_parser::vdebug): New method, based on ...
7167 (gdb_xml_debug): ... this. Adjust.
7168 (gdb_xml_parser::verror): New method, based on ...
7169 (gdb_xml_error): ... this. Adjust.
7170 (gdb_xml_parser::start_element): New method, based on ...
7171 (gdb_xml_start_element): ... this. Adjust.
7172 (gdb_xml_start_element_wrapper): Defer to
7173 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7174 (gdb_xml_parser::end_element): New method, based on ...
7175 (gdb_xml_end_element_wrapper): ... this. Adjust.
7176 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7177 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7178 (gdb_xml_parser::use_dtd): New method, based on ...
7179 (gdb_xml_use_dtd): ... this. Adjust.
7180 (gdb_xml_parser::parse): New method, based on ...
7181 (gdb_xml_parse): ... this. Adjust.
7182 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7183 (xinclude_start_include): Adjust to call the parser's name method.
7184 (xml_xinclude_default, xml_xinclude_start_doctype)
7185 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7186 method.
7187 (xml_process_xincludes): Adjust to call parser methods.
7188 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7189 declarations.
7190
7191 2017-04-18 Pedro Alves <palves@redhat.com>
7192
7193 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7194 gdb::optional<std::string>.
7195 * xml-support.c: Include <string>.
7196 (scope_level::scope_level(scope_level &&))
7197 (scope_level::~scope_level): Delete.
7198 (scope_level::body): Now a std::string.
7199 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7200 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7201 parameter.
7202 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7203 (xinclude_parsing_data::output): Now a std::string reference.
7204 (xinclude_start_include): Adjust.
7205 (xml_xinclude_default): Adjust.
7206 (xml_process_xincludes): Add 'output' parameter, and return bool.
7207 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7208 and return bool.
7209 * xml-tdesc.c: Include <unordered_map> and <string>.
7210 (tdesc_xml_cache): Delete.
7211 (tdesc_xml_cache_s): Delete.
7212 (xml_cache): Now an std::unordered_map.
7213 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7214 (target_fetch_description_xml): Change return type to
7215 gdb::optional<std::string>, and adjust.
7216 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7217 (target_fetch_description_xml): Change return type to
7218 gdb::optional<std::string>.
7219
7220 2017-04-18 Pedro Alves <palves@redhat.com>
7221
7222 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7223 unittests/optional-selftests.c.
7224 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7225 * unittests/optional-selftests.c: New file.
7226 * unittests/optional/assignment/1.cc: New file.
7227 * unittests/optional/assignment/2.cc: New file.
7228 * unittests/optional/assignment/3.cc: New file.
7229 * unittests/optional/assignment/4.cc: New file.
7230 * unittests/optional/assignment/5.cc: New file.
7231 * unittests/optional/assignment/6.cc: New file.
7232 * unittests/optional/assignment/7.cc: New file.
7233 * unittests/optional/cons/copy.cc: New file.
7234 * unittests/optional/cons/default.cc: New file.
7235 * unittests/optional/cons/move.cc: New file.
7236 * unittests/optional/cons/value.cc: New file.
7237 * unittests/optional/in_place.cc: New file.
7238 * unittests/optional/observers/1.cc: New file.
7239 * unittests/optional/observers/2.cc: New file.
7240
7241 2017-04-18 Pedro Alves <palves@redhat.com>
7242
7243 * common/gdb_optional.h: Include common/traits.h.
7244 (in_place_t): New type.
7245 (in_place): New constexpr variable.
7246 (optional::optional): Remove member initialization of
7247 m_instantiated.
7248 (optional::optional(in_place_t...)): New constructor.
7249 (optional::~optional): Use reset.
7250 (optional::optional(const optional&)): New.
7251 (optional::optional(const optional&&)): New.
7252 (optional::optional(T &)): New.
7253 (optional::optional(T &&)): New.
7254 (operator::operator=(const optional &)): New.
7255 (operator::operator=(optional &&)): New.
7256 (operator::operator= (const T &))
7257 (operator::operator= (T &&))
7258 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7259 (operator::reset): New.
7260 (operator::m_instantiated):: Add in-class initializer.
7261 * common/traits.h: Include <type_traits>.
7262 (struct And): New types.
7263
7264 2017-04-18 Pedro Alves <palves@redhat.com>
7265
7266 * xml-support.c: Include <vector>.
7267 (scope_level::scope_level(const gdb_xml_element *))
7268 (scope_level::scope_level(scope_level&&)): New.
7269 (scope_level::~scope_level): New.
7270 (scope_level_s): Delete.
7271 (gdb_xml_parser::scopes): Now a std::vector.
7272 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7273 Use std::vector.
7274 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7275 scope cleanup code.
7276 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7277 of the scopes member. Use std::vector::emplace_back.
7278
7279 2017-04-18 Pedro Alves <palves@redhat.com>
7280
7281 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7282 a bool.
7283 (gdb_xml_end_element): Change type of first parameter.
7284 (gdb_xml_cleanup): Rename to ...
7285 (gdb_xml_parser::~gdb_xml_parser): ... this.
7286 (gdb_xml_create_parser_and_cleanup): Delete with ...
7287 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7288 to this new ctor.
7289 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7290 using gdb_xml_create_parser_and_cleanup.
7291 (xinclude_parsing_data): Add ctor/dtor.
7292 (xml_xinclude_cleanup): Delete.
7293 (xml_process_xincludes): Create a local xinclude_parsing_data
7294 instead of heap-allocating one. Create a local gdb_xml_parser
7295 instead of heap-allocating one with
7296 gdb_xml_create_parser_and_cleanup.
7297
7298 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7299
7300 PR threads/20743
7301 * fbsd-nat.c (resume_one_thread_cb): Remove.
7302 (resume_all_threads_cb): Remove.
7303 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7304 iterate_over_threads.
7305
7306 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7307
7308 * NEWS: Create a new section for the next release branch.
7309 Rename the section of the current branch, now that it has
7310 been cut.
7311
7312 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7313
7314 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7315 * version.in: Bump version to 8.0.50.DATE-git.
7316
7317 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7318
7319 PR gdb/21385
7320 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7321 independently of the host, and fix build breakage on Cygwin.
7322
7323 2017-04-13 Pedro Alves <palves@redhat.com>
7324
7325 * inferior.c (free_inferior): Convert to ...
7326 (inferior::~inferior): ... this dtor.
7327 (inferior::inferior): New ctor, factored out from ...
7328 (add_inferior_silent): ... here. Allocate the inferior with a new
7329 expression.
7330 (delete_inferior): Call delete instead of free_inferior.
7331 * inferior.h (gdb_environ, continuation): Forward declare.
7332 (inferior): Now a class. Add in-class initialization to all
7333 members. Make boolean fields bool, except 'detaching'.
7334 (inferior::inferior): New explicit ctor.
7335 (inferior::~inferior): New.
7336
7337 2017-04-13 Pedro Alves <palves@redhat.com>
7338
7339 * inferior.c (init_inferior_list): Delete.
7340 * inferior.h (init_inferior_list): Delete.
7341
7342 2017-04-13 Pedro Alves <palves@redhat.com>
7343
7344 PR threads/13217
7345 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7346 (top level): Call it twice, with different thread sets.
7347
7348 2017-04-13 Pedro Alves <palves@redhat.com>
7349
7350 * thread.c: Include <algorithm>.
7351 (thread_array_cleanup): Delete.
7352 (scoped_inc_dec_ref): New class.
7353 (live_threads_count): New function.
7354 (set_thread_refcount): Delete.
7355 (tp_array_compar_ascending): Now a bool.
7356 (tp_array_compar): Convert to a std::sort comparison function.
7357 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7358 and live_threads_count.
7359
7360 2017-04-13 Pedro Alves <palves@redhat.com>
7361
7362 * infrun.c (follow_fork_inferior): Also switch the current
7363 inferior.
7364
7365 2017-04-13 Pedro Alves <palves@redhat.com>
7366
7367 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7368 before calling create_internal_breakpoint.
7369
7370 2017-04-13 Pedro Alves <palves@redhat.com>
7371
7372 * fork-child.c (execv_argv): New class.
7373 (breakup_args): Refactored as ...
7374 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7375 Copy arguments to storage and replace separators with NULL
7376 terminators in place.
7377 (escape_bang_in_quoted_argument): Adjust to return bool.
7378 (execv_argv::execv_argv): New ctor.
7379 (execv_argv::init_for_shell): New method, factored out from
7380 fork_inferior. Don't strdup strings into the vector.
7381 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7382 Remove free_vector_argv call.
7383
7384 2017-04-13 Yao Qi <yao.qi@linaro.org>
7385
7386 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7387 tdep->rx_psw_type.
7388
7389 2017-04-13 Yao Qi <yao.qi@linaro.org>
7390
7391 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7392 * rx-tdep.c (rx_gdbarch_init): Likewise.
7393
7394 2017-04-13 Pedro Alves <palves@redhat.com>
7395
7396 * breakpoint.h (struct breakpoint): Reindent.
7397
7398 2017-04-13 Pedro Alves <palves@redhat.com>
7399
7400 * breakpoint.c (bp_location): Rename to ...
7401 (bp_locations): ... this. All references updated.
7402 (bp_location_count): Rename to ...
7403 (bp_locations_count): ... this. All references updated.
7404 (bp_location_placed_address_before_address_max): Rename to ...
7405 (bp_locations_placed_address_before_address_max): ... this. All
7406 references updated.
7407 (bp_location_shadow_len_after_address_max): Rename to ...
7408 (bp_locations_shadow_len_after_address_max): ... this. All
7409 references updated.
7410 (bp_location_compare_addrs): Rename to ...
7411 (bp_locations_compare_addrs): ... this. All references updated.
7412 (bp_location_compare):Rename to ...
7413 (bp_locations_compare): ... this. All references updated.
7414 (bp_location_target_extensions_update): Rename to ...
7415 (bp_locations_target_extensions_update): ... this. All references
7416 updated.
7417
7418 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7419
7420 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7421 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7422 'sgtty.h'.
7423 * common/gdb_termios.h: New file, with parts of "terminal.h".
7424 * inflow.c: Include "gdb_termios.h".
7425 * ser-unix.c: Include "gdb_termios.h".
7426 * terminal.h: Move terminal-related defines to
7427 "common/gdb_termios.h".
7428
7429 2017-04-12 Tom Tromey <tom@tromey.com>
7430
7431 * probe.c (parse_probes): Update.
7432 * location.h (delete_event_location): Don't declare.
7433 (event_location_deleter::operator()): Update.
7434 * location.c (event_location_deleter::operator()): Rename from
7435 delete_event_location.
7436 * linespec.h (linespec_result) <location>: Change type to
7437 event_location_up.
7438 * linespec.c (canonicalize_linespec, event_location_to_sals)
7439 (decode_objc): Update.
7440 (linespec_result): Don't call delete_event_location.
7441 * breakpoint.c (create_breakpoints_sal)
7442 (bkpt_probe_create_sals_from_location)
7443 (strace_marker_create_sals_from_location): Update.
7444
7445 2017-04-12 Tom Tromey <tom@tromey.com>
7446
7447 * linespec.h (struct linespec_result): Add constructor and
7448 destructor.
7449 (init_linespec_result, destroy_linespec_result)
7450 (make_cleanup_destroy_linespec_result): Don't declare.
7451 * linespec.c (init_linespec_result): Remove.
7452 (linespec_result::~linespec_result): Rename from
7453 destroy_linespec_result. Update.
7454 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7455 Remove.
7456 * breakpoint.c (create_breakpoint, break_range_command)
7457 (decode_location_default): Update.
7458 * ax-gdb.c (agent_command_1): Update.
7459
7460 2017-04-12 Tom Tromey <tom@tromey.com>
7461
7462 * remote.c (remote_download_tracepoint): Update.
7463 * python/py-breakpoint.c (bppy_get_location): Update.
7464 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7465 (gdbscm_breakpoint_location): Update.
7466 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7467 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7468 Change type to event_location_up.
7469 * breakpoint.c (create_overlay_event_breakpoint)
7470 (create_longjmp_master_breakpoint)
7471 (create_std_terminate_master_breakpoint)
7472 (create_exception_master_breakpoint)
7473 (breakpoint_event_location_empty_p, print_breakpoint_location)
7474 (print_one_breakpoint_location, create_thread_event_breakpoint)
7475 (init_breakpoint_sal, create_breakpoint)
7476 (print_recreate_ranged_breakpoint, break_range_command)
7477 (init_ada_exception_breakpoint, say_where): Update.
7478 (base_breakpoint_dtor): Don't call delete_event_location.
7479 (bkpt_print_recreate, tracepoint_print_recreate)
7480 (dprintf_print_recreate, update_static_tracepoint)
7481 (breakpoint_re_set_default): Update.
7482
7483 2017-04-12 Tom Tromey <tom@tromey.com>
7484
7485 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7486 type of "to_do". Update.
7487 (compute_stack_depth): Use std::vector.
7488
7489 2017-04-12 Tom Tromey <tom@tromey.com>
7490
7491 * printcmd.c (find_instruction_backward): Use std::vector.
7492
7493 2017-04-12 Tom Tromey <tom@tromey.com>
7494
7495 * symfile.c (objfilep): Remove typedef.
7496 (reread_symbols): Use a std::vector.
7497
7498 2017-04-12 Tom Tromey <tom@tromey.com>
7499
7500 * mi/mi-main.c (exec_direction_forward): Remove.
7501 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7502 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7503 scoped_restore.
7504 * guile/guile.c (guile_repl_command, guile_command)
7505 (gdbscm_execute_gdb_command): Use scoped_restore.
7506 * go-exp.y (go_parse): Use scoped_restore.
7507 * d-exp.y (d_parse): Use scoped_restore.
7508 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7509 * c-exp.y (c_parse): Use scoped_restore.
7510
7511 2017-04-12 Tom Tromey <tom@tromey.com>
7512
7513 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7514 (mi_parse): Update return type.
7515 (mi_parse_free): Remove.
7516 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7517 (mi_parse::~mi_parse): Rename from mi_parse_free.
7518 (mi_parse_cleanup): Remove.
7519 (mi_parse): Return a unique_ptr. Use new.
7520 * mi/mi-main.c (mi_execute_command): Update.
7521
7522 2017-04-12 Tom Tromey <tom@tromey.com>
7523
7524 * location.c (explicit_location_lex_one): Return a
7525 unique_xmalloc_ptr.
7526 (string_to_explicit_location): Update. Remove cleanups.
7527
7528 2017-04-12 Tom Tromey <tom@tromey.com>
7529
7530 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7531 (compare_value_and_voffset): Change type. Update.
7532 (compute_vtable_size): Change type of "offset_vec".
7533 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7534 (gnuv3_get_typeid): Remove extraneous declaration.
7535
7536 2017-04-12 Tom Tromey <tom@tromey.com>
7537
7538 * charset.h (wchar_iterator): Fix comment.
7539
7540 2017-04-12 Tom Tromey <tom@tromey.com>
7541
7542 * charset.c (iconv_wrapper): New class.
7543 (cleanup_iconv): Remove.
7544 (convert_between_encodings): Use it.
7545
7546 2017-04-12 Tom Tromey <tom@tromey.com>
7547
7548 * symfile.h (increment_reading_symtab): Update type.
7549 * symfile.c (decrement_reading_symtab): Remove.
7550 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7551 * psymtab.c (psymtab_to_symtab): Update.
7552 * dwarf2read.c (dw2_instantiate_symtab): Update.
7553
7554 2017-04-12 Tom Tromey <tom@tromey.com>
7555
7556 * jit.c (struct jit_reader): Declare separately. Add constructor
7557 and destructor. Change type of "handle".
7558 (loaded_jit_reader): Define separately.
7559 (jit_reader_load): Update. New "new".
7560 (jit_reader_unload_command): Use "delete".
7561 * gdb-dlfcn.h (struct dlclose_deleter): New.
7562 (gdb_dlhandle_up): New typedef.
7563 (gdb_dlopen, gdb_dlsym): Update types.
7564 (gdb_dlclose): Remove.
7565 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7566 (gdb_dlsym): Change type of "handle".
7567 (make_cleanup_dlclose): Remove.
7568 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7569 * compile/compile-c-support.c (load_libcc): Update.
7570
7571 2017-04-12 Tom Tromey <tom@tromey.com>
7572
7573 * symtab.h (find_pcs_for_symtab_line): Change return type.
7574 * symtab.c (find_pcs_for_symtab_line): Change return type.
7575 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7576 type of "vec". Update.
7577 (ltpy_get_pcs_for_line): Update.
7578 * linespec.c (decode_digits_ordinary): Update.
7579
7580 2017-04-12 Tom Tromey <tom@tromey.com>
7581
7582 * tracepoint.c (actions_command): Update.
7583 * python/python.c (python_command, python_interactive_command):
7584 Update.
7585 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7586 * guile/guile.c (guile_command): Update.
7587 * defs.h (read_command_lines, read_command_lines_1): Return
7588 command_line_up.
7589 (command_lines_deleter): New struct.
7590 (command_line_up): New typedef.
7591 * compile/compile.c (compile_code_command)
7592 (compile_print_command): Update.
7593 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7594 command_line_up.
7595 (make_cleanup_free_command_lines): Remove.
7596 * cli/cli-script.c (get_command_line, read_command_lines_1)
7597 (copy_command_lines): Return command_line_up.
7598 (while_command, if_command, read_command_lines, define_command)
7599 (document_command): Update.
7600 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7601 Remove.
7602 * breakpoint.h (breakpoint_set_commands): Change type of
7603 "commands".
7604 * breakpoint.c (breakpoint_set_commands): Change type of
7605 "commands". Update.
7606 (do_map_commands_command, update_dprintf_command_list)
7607 (create_tracepoint_from_upload): Update.
7608
7609 2017-04-12 Tom Tromey <tom@tromey.com>
7610
7611 * tracepoint.c (scope_info): Update.
7612 * spu-tdep.c (spu_catch_start): Update.
7613 * python/python.c (gdbpy_decode_line): Update.
7614 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7615 * python/py-breakpoint.c (bppy_init): Update.
7616 * probe.c (parse_probes): Update.
7617 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7618 * location.h (event_location_deleter): New struct.
7619 (event_location_up): New typedef.
7620 (new_linespec_location, new_address_location, new_probe_location)
7621 (new_explicit_location, copy_event_location)
7622 (string_to_event_location, string_to_event_location_basic)
7623 (string_to_explicit_location): Update return type.
7624 (make_cleanup_delete_event_location): Remove.
7625 * location.c (new_linespec_location, new_address_location)
7626 (new_probe_location, new_explicit_location, copy_event_location):
7627 Return event_location_up.
7628 (delete_event_location_cleanup)
7629 (make_cleanup_delete_event_location): Remove.
7630 (string_to_explicit_location, string_to_event_location_basic)
7631 (string_to_event_location): Return event_location_up.
7632 * linespec.c (canonicalize_linespec, event_location_to_sals)
7633 (decode_line_with_current_source)
7634 (decode_line_with_last_displayed, decode_objc): Update.
7635 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7636 * completer.c (location_completer): Update.
7637 * cli/cli-cmds.c (edit_command, list_command): Update.
7638 * breakpoint.c (create_overlay_event_breakpoint)
7639 (create_longjmp_master_breakpoint)
7640 (create_std_terminate_master_breakpoint)
7641 (create_exception_master_breakpoint)
7642 (create_thread_event_breakpoint): Update.
7643 (init_breakpoint_sal): Update. Remove some dead code.
7644 (create_breakpoint_sal): Change type of "location". Update.
7645 (create_breakpoints_sal, create_breakpoint, break_command_1)
7646 (dprintf_command, break_range_command, until_break_command)
7647 (init_ada_exception_breakpoint)
7648 (strace_marker_create_sals_from_location)
7649 (update_static_tracepoint, trace_command, ftrace_command)
7650 (strace_command, create_tracepoint_from_upload): Update.
7651 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7652 * ax-gdb.c (agent_command_1): Update.
7653
7654 2017-04-12 Pedro Alves <palves@redhat.com>
7655
7656 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7657 * configure.tgt: Handle i[34567]86-*-go32* and
7658 i[34567]86-*-msdosdjgpp*.
7659 * i386-tdep.c (i386_svr4_reg_to_regnum):
7660 Make extern.
7661 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7662 i386-go32-tdep.c.
7663 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7664 * i386-go32-tdep.c: New file.
7665 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7666 declarations.
7667
7668 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7669
7670 * aix-thread.c (pd_status2str): Change return type to const char *.
7671
7672 2017-04-12 Pedro Alves <palves@redhat.com>
7673
7674 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7675 calls to set_gdbarch_gnu_triplet_regexp.
7676
7677 2017-04-12 Pedro Alves <palves@redhat.com>
7678
7679 PR gdb/21323
7680 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7681 New enum value.
7682 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7683 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7684 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7685 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7686 * gdbarch.h, gdbarch.c: Regenerate.
7687 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7688 gdbarch_wchar_bit and gdbarch_wchar_signed.
7689 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7690 * arm-tdep.c (arm_gdbarch_init): Likewise.
7691 * avr-tdep.c (avr_gdbarch_init): Likewise.
7692 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7693 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7694 * i386-tdep.c (i386_go32_init_abi): Likewise.
7695 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7696 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7697 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7698 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7699 * sh-tdep.c (sh_gdbarch_init): Likewise.
7700 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7701 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7702 * windows-tdep.c (windows_init_abi): Likewise.
7703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7704
7705 2017-04-12 Pedro Alves <palves@redhat.com>
7706
7707 PR c++/21323
7708 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7709 cplus_primitive_type_char32_t>: New enum values.
7710 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7711 and cplus_primitive_type_char32_t.
7712 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7713 32, use the archtecture's built-in type for char16_t and char32_t,
7714 respectively. Otherwise, fallback to init_integer_type as before,
7715 but make the type unsigned, and issue a complaint.
7716 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7717
7718 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7719
7720 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7721 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7722
7723 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7724
7725 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7726 'const char *'.
7727
7728 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7729
7730 * common/common-utils.c (free_vector_argv): New function.
7731 * common/common-utils.h: Include <vector>.
7732 (free_vector_argv): New prototype.
7733 * darwin-nat.c (darwin_create_inferior): Rewrite function
7734 prototype in order to constify "exec_file" and accept a
7735 "std::string" for "allargs".
7736 * fork-child.c: Include <vector>.
7737 (breakup_args): Rewrite function, using C++.
7738 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7739 and accept "std::string" for "allargs". Update the code to
7740 calculate "argv" based on "allargs". Update calls to "exec_fun"
7741 and "execvp".
7742 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7743 order to constify "exec_file" and accept a "std::string" for
7744 "allargs".
7745 * go32-nat.c (go32_create_inferior): Likewise.
7746 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7747 * infcmd.c (run_command_1): Constify "exec_file". Use
7748 "std::string" for inferior arguments.
7749 * inferior.h (fork_inferior): Update prototype.
7750 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7751 prototype in order to constify "exec_file" and accept a
7752 "std::string" for "allargs".
7753 * nto-procfs.c (procfs_create_inferior): Likewise.
7754 * procfs.c (procfs_create_inferior): Likewise.
7755 * remote-sim.c (gdbsim_create_inferior): Likewise.
7756 * remote.c (extended_remote_run): Update code to accept
7757 "std::string" as argument.
7758 (extended_remote_create_inferior): Rewrite function prototype in
7759 order to constify "exec_file" and accept a "std::string" for
7760 "allargs".
7761 * rs6000-nat.c (super_create_inferior): Likewise.
7762 (rs6000_create_inferior): Likewise.
7763 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7764 * windows-nat.c (windows_create_inferior): Likewise.
7765
7766 2017-04-11 Pedro Alves <palves@redhat.com>
7767
7768 * thread.c: Fix whitespace throughout.
7769
7770 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7771
7772 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7773
7774 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7775
7776 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7777
7778 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7779
7780 PR gdb/21364
7781 * osdata.c (info_osdata): Check if 'type' is an empty string
7782 instead of NULL.
7783
7784 2017-04-10 Pedro Alves <palves@redhat.com>
7785
7786 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7787 (ptid_to_global_thread_id, in_thread_list)
7788 (do_captured_list_thread_ids, set_resumed, set_running)
7789 (set_executing, set_stop_requested, finish_thread_state)
7790 (validate_registers_access, can_access_registers_ptid)
7791 (print_thread_info_1, switch_to_thread)
7792 (do_restore_current_thread_cleanup)
7793 (make_cleanup_restore_current_thread, thread_command)
7794 (thread_name_command): Use operator== instead of ptid_equal.
7795
7796 2017-04-10 Pedro Alves <palves@redhat.com>
7797
7798 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7799 (current_thread_cleanup_chain): Delete.
7800 (restore_current_thread_cleanup_dtor)
7801 (make_cleanup_restore_current_thread): Remove references to
7802 current_thread_cleanup_chain.
7803
7804 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7805
7806 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7807 REG_UNKNOWN.
7808
7809 2017-04-10 Yao Qi <yao.qi@linaro.org>
7810
7811 PR gdb/19942
7812 * gdbthread.h (thread_info::deletable): New method.
7813 (thread_info::incref): New method.
7814 (thread_info::decref): New method.
7815 (thread_info::refcount): Move it to private.
7816 * infrun.c (save_stop_context): Call inc_refcount.
7817 (release_stop_context_cleanup): Likewise.
7818 * thread.c (set_thread_exited): New function.
7819 (init_thread_list): Delete "tp" only it is deletable, otherwise
7820 call set_thread_exited.
7821 (delete_thread_1): Call set_thread_exited.
7822 (current_thread_cleanup) <inferior_pid>: Remove.
7823 <thread>: New field.
7824 (restore_current_thread_ptid_changed): Removed.
7825 (do_restore_current_thread_cleanup): Adjust.
7826 (restore_current_thread_cleanup_dtor): Don't call
7827 find_thread_ptid.
7828 (set_thread_refcount): Use dec_refcount.
7829 (make_cleanup_restore_current_thread): Adjust.
7830 (thread_apply_all_command): Call inc_refcount.
7831 (_initialize_thread): Don't call
7832 observer_attach_thread_ptid_changed.
7833
7834 2017-04-10 Yao Qi <yao.qi@linaro.org>
7835
7836 * thread.c (delete_thread_1): Hoist code on marking thread as
7837 exited.
7838
7839 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7840
7841 * windows-nat.c (windows_detach): Initialize ptid with
7842 minus_one_ptid.
7843
7844 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7845
7846 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7847
7848 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7849
7850 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7851 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7852 (bfin_pseudo_register_write): Likewise
7853
7854 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7855
7856 * common/ptid.h (struct ptid): Change to...
7857 (class ptid_t): ... this.
7858 <ptid_t>: New constructors.
7859 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7860 matches>: New methods.
7861 <make_null, make_minus_one>: New static methods.
7862 <pid>: Rename to...
7863 <m_pid>: ...this.
7864 <lwp>: Rename to...
7865 <m_lwp>: ...this.
7866 <tid>: Rename to...
7867 <m_tid>: ...this.
7868 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7869 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7870 as references, move comment to class ptid_t.
7871 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7872 ptid_t static methods.
7873 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7874 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7875 Take ptid arguments as references, implement using ptid_t methods.
7876 * unittests/ptid-selftests.c: New file.
7877 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7878 unittests/ptid-selftests.c.
7879 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7880
7881 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7882
7883 * python/python.c (python_run_simple_file): Cast mode literal to
7884 non-const char pointer as expected by PyFile_FromString.
7885
7886 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7887
7888 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7889 minus_one_ptid and null_ptid.
7890
7891 2017-04-05 Pedro Alves <palves@redhat.com>
7892
7893 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7894 * configure: Regenerate.
7895
7896 2017-04-05 Pedro Alves <palves@redhat.com>
7897
7898 * ada-exp.y (yyerror): Constify.
7899 * ada-lang.c (bound_name, get_selections)
7900 (ada_variant_discrim_type)
7901 (ada_variant_discrim_name, ada_value_struct_elt)
7902 (ada_lookup_struct_elt_type, is_unchecked_variant)
7903 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7904 (catch_ada_exception_command_split)
7905 (catch_ada_assert_command_split, catch_assert_command)
7906 (ada_op_name): Constify.
7907 * ada-lang.h (ada_yyerror, get_selections)
7908 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7909 * arc-tdep.c (arc_print_frame_cache): Constify.
7910 * arm-tdep.c (arm_skip_stub): Constify.
7911 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7912 (gen_aggregate_elt_ref): Constify.
7913 * bcache.c (print_bcache_statistics): Constify.
7914 * bcache.h (print_bcache_statistics): Constify.
7915 * break-catch-throw.c (catch_exception_command_1):
7916 * breakpoint.c (struct ep_type_description::description):
7917 Constify.
7918 (add_solib_catchpoint): Constify.
7919 (catch_fork_command_1): Add cast.
7920 (add_catch_command): Constify.
7921 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7922 Constify.
7923 * bsd-uthread.c (bsd_uthread_state): Constify.
7924 * buildsym.c (patch_subfile_names): Constify.
7925 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7926 Constify.
7927 * c-exp.y (yyerror): Constify.
7928 (token::oper): Constify.
7929 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7930 * c-varobj.c (cplus_describe_child): Constify.
7931 * charset.c (find_charset_names): Add cast.
7932 (find_charset_names): Constify array and add const_cast.
7933 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7934 (edit_command): Constify.
7935 * cli/cli-decode.c (lookup_cmd): Constify.
7936 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7937 Constify.
7938 (struct dump_context): Constify.
7939 (add_dump_command, restore_command): Constify.
7940 * cli/cli-script.c (get_command_line): Constify.
7941 * cli/cli-script.h (get_command_line): Constify.
7942 * cli/cli-utils.c (check_for_argument): Constify.
7943 * cli/cli-utils.h (check_for_argument): Constify.
7944 * coff-pe-read.c (struct read_pe_section_data): Constify.
7945 * command.h (lookup_cmd): Constify.
7946 * common/print-utils.c (decimal2str): Constify.
7947 * completer.c (gdb_print_filename): Constify.
7948 * corefile.c (set_gnutarget): Constify.
7949 * cp-name-parser.y (yyerror): Constify.
7950 * cp-valprint.c (cp_print_class_member): Constify.
7951 * cris-tdep.c (cris_register_name, crisv32_register_name):
7952 Constify.
7953 * d-exp.y (yyerror): Constify.
7954 (struct token::oper): Constify.
7955 * d-lang.h (d_yyerror): Constify.
7956 * dbxread.c (struct header_file_location::name): Constify.
7957 (add_old_header_file, add_new_header_file, last_function_name)
7958 (dbx_next_symbol_text, add_bincl_to_list)
7959 (find_corresponding_bincl_psymtab, set_namestring)
7960 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7961 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7962 * defs.h (command_line_input, print_address_symbolic)
7963 (deprecated_readline_begin_hook): Constify.
7964 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7965 Constify.
7966 * event-top.c (handle_line_of_input): Constify and add cast.
7967 * exceptions.c (catch_errors): Constify.
7968 * exceptions.h (catch_errors): Constify.
7969 * expprint.c (print_subexp_standard, op_string, op_name)
7970 (op_name_standard, dump_raw_expression, dump_raw_expression):
7971 * expression.h (op_name, op_string, dump_raw_expression):
7972 Constify.
7973 * f-exp.y (yyerror): Constify.
7974 (struct token::oper): Constify.
7975 (struct f77_boolean_val::name): Constify.
7976 * f-lang.c (f_word_break_characters): Constify.
7977 * f-lang.h (f_yyerror): Constify.
7978 * fork-child.c (fork_inferior): Add cast.
7979 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7980 (new_variant): Constify.
7981 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7982 * gdbarch.c: Regenerate.
7983 * gdbcore.h (set_gnutarget): Constify.
7984 * go-exp.y (yyerror): Constify.
7985 (token::oper): Constify.
7986 * go-lang.h (go_yyerror): Constify.
7987 * go32-nat.c (go32_sysinfo): Constify.
7988 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7989 * guile/scm-cmd.c (cmdscm_function): Constify.
7990 * guile/scm-param.c (pascm_param_value): Constify.
7991 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7992 (h8300sx_register_name): Constify.
7993 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7994 Constify.
7995 * ia64-tdep.c (ia64_register_names): Constify.
7996 * infcmd.c (construct_inferior_arguments): Constify.
7997 (path_command, attach_post_wait): Constify.
7998 * language.c (show_range_command, show_case_command)
7999 (unk_lang_error): Constify.
8000 * language.h (language_defn::la_error)
8001 (language_defn::la_name_of_this): Constify.
8002 * linespec.c (decode_line_2): Constify.
8003 * linux-thread-db.c (thread_db_err_str): Constify.
8004 * lm32-tdep.c (lm32_register_name): Constify.
8005 * m2-exp.y (yyerror): Constify.
8006 * m2-lang.h (m2_yyerror): Constify.
8007 * m32r-tdep.c (m32r_register_names): Constify and make static.
8008 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8009 * m88k-tdep.c (m88k_register_name): Constify.
8010 * macroexp.c (appendmem): Constify.
8011 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8012 (upgrade_type, parse_external, parse_partial_symbols)
8013 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8014 (new_symbol): Constify.
8015 * memattr.c (mem_info_command): Constify.
8016 * mep-tdep.c (register_name_from_keyword): Constify.
8017 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8018 Constify.
8019 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8020 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8021 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8022 cast.
8023 (mi_execute_async_cli_command): Constify.
8024 * mips-tdep.c (mips_register_name): Constify.
8025 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8026 (am33_register_name, am33_2_register_name)
8027 * moxie-tdep.c (moxie_register_names): Constify.
8028 * nat/linux-osdata.c (osdata_type): Constify fields.
8029 * nto-tdep.c (nto_parse_redirection): Constify.
8030 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8031 (lookup_child_selector): Constify.
8032 (objc_methcall::name): Constify.
8033 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8034 (lookup_struct_typedef): Constify.
8035 * objfiles.c (pc_in_section): Constify.
8036 * objfiles.h (pc_in_section): Constify.
8037 * p-exp.y (struct token::oper): Constify.
8038 (yyerror): Constify.
8039 * p-lang.h (pascal_yyerror): Constify.
8040 * parser-defs.h (op_name_standard): Constify.
8041 (op_print::string): Constify.
8042 (exp_descriptor::op_name): Constify.
8043 * printcmd.c (print_address_symbolic): Constify.
8044 * psymtab.c (print_partial_symbols): Constify.
8045 * python/py-breakpoint.c (stop_func): Constify.
8046 (bppy_get_expression): Constify.
8047 * python/py-cmd.c (cmdpy_completer::name): Constify.
8048 (cmdpy_function): Constify.
8049 * python/py-event.c (evpy_add_attribute)
8050 (gdbpy_initialize_event_generic): Constify.
8051 * python/py-event.h (evpy_add_attribute)
8052 (gdbpy_initialize_event_generic): Constify.
8053 * python/py-evts.c (add_new_registry): Constify.
8054 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8055 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8056 * python/py-inferior.c (get_buffer): Add cast.
8057 * python/py-param.c (parm_constant::name): Constify.
8058 * python/py-unwind.c (fprint_frame_id): Constify.
8059 * python/python.c (gdbpy_parameter_value): Constify.
8060 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8061 * remote.c (memory_packet_config::name): Constify.
8062 (show_packet_config_cmd, remote_write_bytes)
8063 (remote_buffer_add_string):
8064 * reverse.c (exec_reverse_once): Constify.
8065 * rs6000-tdep.c (variant::name, variant::description): Constify.
8066 * rust-exp.y (rustyyerror): Constify.
8067 * rust-lang.c (rust_op_name): Constify.
8068 * rust-lang.h (rustyyerror): Constify.
8069 * serial.h (serial_ops::name): Constify.
8070 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8071 (sh_sh3e_register_name, sh_sh2e_register_name)
8072 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8073 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8074 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8075 (sh_sh4al_dsp_register_name): Constify.
8076 * sh64-tdep.c (sh64_register_name): Constify.
8077 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8078 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8079 * stabsread.c (patch_block_stabs, read_type_number)
8080 (ref_map::stabs, ref_add, process_reference)
8081 (symbol_reference_defined, define_symbol, define_symbol)
8082 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8083 (read_one_struct_field, read_struct_fields, read_baseclasses)
8084 (read_tilde_fields, read_struct_type, read_array_type)
8085 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8086 (read_huge_number, read_range_type, read_args, common_block_start)
8087 (find_name_end): Constify.
8088 * stabsread.h (common_block_start, define_symbol)
8089 (process_one_symbol, symbol_reference_defined, ref_add):
8090 * symfile.c (get_section_index, add_symbol_file_command):
8091 * symfile.h (get_section_index): Constify.
8092 * target-descriptions.c (tdesc_type::name): Constify.
8093 (tdesc_free_type): Add cast.
8094 * target.c (find_default_run_target):
8095 (add_deprecated_target_alias, find_default_run_target)
8096 (target_announce_detach): Constify.
8097 (do_option): Constify.
8098 * target.h (add_deprecated_target_alias): Constify.
8099 * thread.c (print_thread_info_1): Constify.
8100 * top.c (deprecated_readline_begin_hook, command_line_input):
8101 Constify.
8102 (init_main): Add casts.
8103 * top.h (handle_line_of_input): Constify.
8104 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8105 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8106 (tfind_command): Rename to ...
8107 (tfind_command_1): ... this and constify.
8108 (tfind_command): New function.
8109 (tfind_end_command, tfind_start_command): Adjust.
8110 (encode_source_string): Constify.
8111 * tracepoint.h (encode_source_string): Constify.
8112 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8113 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8114 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8115 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8116 * tui/tui-win.c (parse_scrolling_args): Constify.
8117 * tui/tui-windata.c (tui_erase_data_content): Constify.
8118 * tui/tui-windata.h (tui_erase_data_content): Constify.
8119 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8120 * tui/tui.c (tui_enable): Add cast.
8121 * utils.c (defaulted_query): Constify.
8122 (init_page_info): Add cast.
8123 (puts_debug, subset_compare): Constify.
8124 * utils.h (subset_compare): Constify.
8125 * varobj.c (varobj_format_string): Constify.
8126 * varobj.h (varobj_format_string): Constify.
8127 * vax-tdep.c (vax_register_name): Constify.
8128 * windows-nat.c (windows_detach): Constify.
8129 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8130 * xml-support.c (gdb_xml_end_element): Constify.
8131 * xml-tdesc.c (tdesc_start_reg): Constify.
8132 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8133 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8134 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8135
8136 2017-04-05 Pedro Alves <palves@redhat.com>
8137
8138 * proc-api.c (struct trans): Constify.
8139 (procfs_note): Constify.
8140 * proc-events.c (struct trans, syscall_table):
8141 * proc-flags.c (struct trans): Constify.
8142 * proc-utils.h (procfs_note): Constify.
8143 * proc-why.c (struct trans): Constify.
8144 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8145 (procfs_detach): Constify.
8146 * sol-thread.c (struct string_map): Constify.
8147 (td_err_string, td_state_string): Constify.
8148
8149 2017-04-05 Pedro Alves <palves@redhat.com>
8150
8151 * proc-api.c (procfs_filename): Don't initialize
8152 procfs_filename.
8153 (prepare_to_trace): Assume procfs_filename is non-NULL.
8154 (_initialize_proc_api): Give procfs_filename a default value here.
8155
8156 2017-04-05 Pedro Alves <palves@redhat.com>
8157
8158 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8159 'cond_string' parameter.
8160 (extract_exception_regexp): Constify 'string' parameter.
8161 (catch_exception_command_1): Constify.
8162 * breakpoint.c (init_catchpoint)
8163 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8164 parameter.
8165 (ep_parse_optional_if_clause, catch_fork_command_1)
8166 (catch_exec_command_1): Constify.
8167 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8168 parameter.
8169 (ep_parse_optional_if_clause): Constify.
8170 * cli/cli-utils.c (remove_trailing_whitespace)
8171 (check_for_argument): Constify.
8172 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8173 non-const overload.
8174 (check_for_argument): Likewise.
8175
8176 2017-04-05 Pedro Alves <palves@redhat.com>
8177
8178 * event-top.c (command_line_handler): Add cast to execute_command
8179 call.
8180 * record-btrace.c (cmd_record_btrace_bts_start)
8181 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8182 (cmd_record_btrace_start): Add cast to execute_command call.
8183 * record-full.c (record_full_goto_insn):
8184 * record.c (record_start, record_stop): Add cast to
8185 execute_command_to_string calls.
8186 (cmd_record_start): Add cast to execute_command calls.
8187
8188 2017-04-05 Pedro Alves <palves@redhat.com>
8189
8190 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8191 static inline function.
8192 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8193 array and use gdb_PyArg_ParseTupleAndKeywords.
8194 * python/py-cmd.c (cmdpy_init): Likewise.
8195 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8196 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8197 (infpy_search_memory): Likewise.
8198 * python/py-objfile.c (objfpy_add_separate_debug_file)
8199 (gdbpy_lookup_objfile): Likewise.
8200 * python/py-symbol.c (gdbpy_lookup_symbol)
8201 (gdbpy_lookup_global_symbol): Likewise.
8202 * python/py-type.c (gdbpy_lookup_type): Likewise.
8203 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8204 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8205 Likewise.
8206
8207 2017-04-05 Pedro Alves <palves@redhat.com>
8208
8209 * python/python-internal.h (gdb_PyGetSetDef): New type.
8210 * python/py-block.c (block_object_getset)
8211 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8212 * python/py-event.c (event_object_getset)
8213 (finish_breakpoint_object_getset): Likewise.
8214 * python/py-inferior.c (inferior_object_getset): Likewise.
8215 * python/py-infthread.c (thread_object_getset): Likewise.
8216 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8217 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8218 * python/py-objfile.c (objfile_getset): Likewise.
8219 * python/py-progspace.c (pspace_getset): Likewise.
8220 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8221 Likewise.
8222 * python/py-record.c (recpy_record_getset): Likewise.
8223 * python/py-symbol.c (symbol_object_getset): Likewise.
8224 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8225 Likewise.
8226 * python/py-type.c (type_object_getset, field_object_getset):
8227 Likewise.
8228 * python/py-value.c (value_object_getset): Likewise.
8229
8230 2017-04-05 Pedro Alves <palves@redhat.com>
8231
8232 * python/python-internal.h (gdb_PyObject_CallMethod)
8233 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8234 New functions.
8235 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8236 (PySys_GetObject, PySys_SetPath): New macros.
8237
8238 2017-04-05 Pedro Alves <palves@redhat.com>
8239
8240 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8241 info_osdata_command.
8242 * osdata.c (info_osdata_command): Rename to ...
8243 (info_osdata): ... this. Constify 'type' parameter, and remove
8244 the 'from_tty' parameter. Accept NULL TYPE.
8245 (info_osdata_command): New function.
8246 * osdata.h (info_osdata_command): Remove declaration.
8247 (info_osdata): New declaration.
8248
8249 2017-04-05 Pedro Alves <palves@redhat.com>
8250
8251 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8252 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8253 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8254 parameter.
8255 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8256 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8257 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8258 parameter.
8259 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8260 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8261 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8262 (mi_cmd_file_list_exec_source_files)
8263 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8264 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8265 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8266 parameter.
8267 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8268 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8269 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8270 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8271 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8272 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8273 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8274 'command' parameter.
8275 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8276 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8277 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8278 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8279 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8280 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8281 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8282 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8283 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8284 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8285 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8286 parameter.
8287 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8288 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8289 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8290 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8291 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8292 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8293 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8294 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8295 (mi_cmd_data_list_changed_registers)
8296 (mi_cmd_data_write_register_values)
8297 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8298 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8299 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8300 (mi_cmd_list_features, mi_cmd_list_target_features)
8301 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8302 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8303 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8304 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8305 (mi_cmd_trace_frame_collected): Constify 'command'
8306 parameter.
8307 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8308 'command' parameter.
8309
8310 2017-04-05 Pedro Alves <palves@redhat.com>
8311
8312 * ada-lang.c (ada_completer_word_break_characters): Now a const
8313 array.
8314 (ada_get_gdb_completer_word_break_characters): Constify.
8315 * completer.c (gdb_completer_command_word_break_characters)
8316 (gdb_completer_file_name_break_characters)
8317 (gdb_completer_quote_characters): Now const arrays.
8318 (get_gdb_completer_quote_characters): Constify.
8319 (set_rl_completer_word_break_characters): New function.
8320 (set_gdb_completion_word_break_characters)
8321 (complete_line_internal): Use it.
8322 * completer.h (get_gdb_completer_quote_characters): Constify.
8323 (set_rl_completer_word_break_characters): Declare.
8324 * f-lang.c (f_word_break_characters): Constify.
8325 * language.c (default_word_break_characters): Constify.
8326 * language.h (language_defn::la_word_break_characters): Constify.
8327 (default_word_break_characters): Constify.
8328 * top.c (init_main): Use set_rl_completer_word_break_characters.
8329
8330 2017-04-05 Pedro Alves <palves@redhat.com>
8331
8332 * aix-thread.c (aix_thread_pid_to_str)
8333 (aix_thread_extra_thread_info): Constify.
8334 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8335 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8336 (bsd_uthread_pid_to_str): Constify.
8337 * corelow.c (core_pid_to_str): Constify.
8338 * darwin-nat.c (darwin_pid_to_str): Constify.
8339 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8340 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8341 Constify.
8342 * gnu-nat.c (gnu_pid_to_str): Constify.
8343 * go32-nat.c (go32_pid_to_str): Constify.
8344 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8345 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8346 * inferior.c (inferior_pid_to_str): Constify.
8347 * linux-nat.c (linux_nat_pid_to_str): Constify.
8348 * linux-tdep.c (linux_core_pid_to_str): Constify.
8349 * linux-thread-db.c (thread_db_pid_to_str)
8350 (thread_db_extra_thread_info): Constify.
8351 * nto-tdep.c (nto_extra_thread_info): Constify.
8352 * nto-tdep.h (nto_extra_thread_info): Constify.
8353 * obsd-nat.c (obsd_pid_to_str): Constify.
8354 * procfs.c (procfs_pid_to_str): Constify.
8355 * ravenscar-thread.c (ravenscar_extra_thread_info)
8356 (ravenscar_pid_to_str): Constify.
8357 * remote-sim.c (gdbsim_pid_to_str): Constify.
8358 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8359 Constify.
8360 * sol-thread.c (solaris_pid_to_str): Constify.
8361 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8362 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8363 * target.c (default_pid_to_str, target_pid_to_str)
8364 (normal_pid_to_str, default_pid_to_str): Constify.
8365 * target.h (target_ops::to_pid_to_str)
8366 (target_ops::to_extra_thread_info): Constify.
8367 (target_pid_to_str, normal_pid_to_str): Constify.
8368 * windows-nat.c (windows_pid_to_str): Constify.
8369 * gdbarch.sh (core_pid_to_str): Constify.
8370 * target-delegates.c: Regenerate.
8371 * gdbarch.h, gdbarch.c: Regenerate.
8372
8373 2017-04-05 Pedro Alves <palves@redhat.com>
8374
8375 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8376 the memory of the temporary warning_pre_print override.
8377 * utils.c (warning_pre_print): Constify.
8378 * utils.h (warning_pre_print): Constify.
8379
8380 2017-04-05 Pedro Alves <palves@redhat.com>
8381
8382 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8383 (shell_command): New function.
8384 (make_command): Use std::string.
8385 (init_cli_cmds): Register shell_command instead of shell_escape.
8386
8387 2017-04-05 Pedro Alves <palves@redhat.com>
8388
8389 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8390 * tracepoint.c (default_collect): Don't initialize.
8391
8392 2017-04-05 Pedro Alves <palves@redhat.com>
8393
8394 * macroexp.c (macro_buffer::shared): Now a bool.
8395 (init_buffer): Update.
8396 (init_shared_buffer): Constify 'addr' parameter.
8397 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8398 casts.
8399
8400 2017-04-05 Pedro Alves <palves@redhat.com>
8401
8402 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8403 * disasm.c (set_disassembler_options): Constify local.
8404 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8405
8406 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8407
8408 PR gdb/21352
8409 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8410 option.
8411
8412 2017-04-05 Yao Qi <yao.qi@linaro.org>
8413
8414 * frame.c (frame_unwind_register_unsigned): Call
8415 frame_unwind_register_value.
8416
8417 2017-04-05 Yao Qi <yao.qi@linaro.org>
8418
8419 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8420 Use gdb_test_multiple, and don't match anchor.
8421
8422 2017-04-05 Pedro Alves <palves@redhat.com>
8423
8424 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8425 (Write After Approval): Remove Simon Marchi.
8426
8427 2017-04-05 Pedro Alves <palves@redhat.com>
8428
8429 * common/gdb_optional.h (optional::optional): Make constexpr and
8430 initialize m_dummy.
8431
8432 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8433
8434 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8435 (amd64fbsd_jmp_buf_reg_offset): Remove.
8436 (amd64fbsd_supply_uthread): Remove function.
8437 (amd64fbsd_collect_uthread): Remove function.
8438 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8439 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8440 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8441 (fbsd-nat.c): Update comment.
8442 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8443 (i386fbsd_jmp_buf_reg_offset): Remove.
8444 (i386fbsd_supply_uthread): Remove function.
8445 (i386fbsd_collect_uthread): Remove function.
8446 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8447
8448 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8449
8450 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8451 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8452 * NEWS: Mention that support for FreeBSD/alpha was removed.
8453 * alpha-fbsd-tdep.c: Delete file.
8454 * config/alpha/fbsd.mh: Delete file.
8455 * configure.host: Delete alpha*-*-freebsd* and
8456 alpha*-*-kfreebsd*-gnu.
8457 * configure.tgt: Delete alpha*-*-freebsd* and
8458 alpha*-*-kfreebsd*-gnu.
8459
8460 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8461
8462 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8463 amd64bsd_store_inferior_registers): Use ptid from regcache.
8464
8465 2017-04-04 Pedro Alves <palves@redhat.com>
8466
8467 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8468 data fields, make them private and add "m_" prefixes.
8469 (lnp_state_machine::lnp_state_machine): New ctor.
8470 (record_line, check_line_address, handle_set_discriminator)
8471 (handle_set_address, handle_advance_pc, handle_special_opcode)
8472 (handle_advance_line, handle_set_file, handle_negate_stmt)
8473 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8474 (end_sequence, advance_line): New methods.
8475 (m_gdbarch, m_record_lines_p): New fields.
8476 (lnp_reader_state): Delete.
8477 (dwarf_record_line): Rename to ...
8478 (lnp_state_machine::record_line): ... adjust.
8479 (init_lnp_state_machine): Delete.
8480 (lnp_state_machine::lnp_state_machine): New.
8481 (check_line_address): Rename to ...
8482 (lnp_state_machine::check_line_address): This.
8483 (dwarf_decode_lines_1): Remove reference to "reader_state".
8484 Adjust lnp_state_machine having a non-default ctor. Use bool.
8485 State machine internal state manipulation moved to
8486 lnp_state_machine methods.
8487
8488 2017-04-04 Pedro Alves <palves@redhat.com>
8489
8490 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8491 unittests/offset-type-selftests.c.
8492 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8493 * common/offset-type.h: New file.
8494 * common/preprocessor.h: New file.
8495 * common/traits.h: New file.
8496 * common/valid-expr.h: New file.
8497 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8498 sect_offset and cu_offset strong typedefs throughout.
8499 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8500 typedefs throughout.
8501 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8502 sect_offset and cu_offset strong typedefs throughout.
8503 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8504 typedefs throughout.
8505 * gdbtypes.h: Include "common/offset-type.h".
8506 (cu_offset): Now an offset type (strong typedef) instead of a
8507 struct.
8508 (sect_offset): Likewise.
8509 (union call_site_parameter_u): Rename "param_offset" field to
8510 "param_cu_off".
8511 * unittests/offset-type-selftests.c: New file.
8512
8513 2017-04-04 Pedro Alves <palves@redhat.com>
8514
8515 * common/underlying.h: New file.
8516 * dwarf2read.c: Include "common/gdb_optional.h" and
8517 "common/underlying.h".
8518 (dir_index, file_name_index): New types.
8519 (file_entry): Use them.
8520 (file_entry::include): Use to_underlying.
8521 (line_header::add_file_name): Use dir_index.
8522 (read_formatted_entries): Use gdb::optional. Read form before
8523 writting to file_entry.
8524 (dwarf_decode_line_header): Use dir_index.
8525 (lnp_state_machine::current_file): Use to_underlying.
8526 (lnp_state_machine::file): Change type to file_name_index.
8527 (dwarf_record_line): Use to_underlying.
8528 (init_lnp_state_machine): Use file_name_index.
8529 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8530
8531 2017-04-04 Pedro Alves <palves@redhat.com>
8532
8533 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8534 operator bool, has_value and get methods.
8535
8536 2017-04-04 Pedro Alves <palves@redhat.com>
8537
8538 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8539 fields.
8540 (line_header): Initialize all data fields. Change type of
8541 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8542 Change type of include_dirs to std::vector<const char *>. Remove
8543 num_include_dirs, include_dirs_size. Change type of file_names to
8544 std::vector<file_entry>. Remove num_file_names, file_names_size.
8545 (line_header::line_header): New.
8546 (line_header::add_include_dir, line_header::add_file_name): New
8547 methods.
8548 (line_header::include_dir_at): Remove NULL check.
8549 (line_header::file_name_at): Add const overload.
8550 (line_header_up): New unique_ptr typedef.
8551 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8552 std::vector. Remove free_line_header call.
8553 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8554 free_line_header call.
8555 (free_cu_line_header): Delete.
8556 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8557 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8558 Adjust to use std::vector.
8559 (free_line_header): Delete.
8560 (free_line_header_voidp): Use delete.
8561 (add_include_dir): Replace with ...
8562 (line_header::add_include_dir): ... this method. Use std::vector.
8563 (add_file_name): Replace with ...
8564 (line_header::add_file_name): ... this method. Use std::vector.
8565 (add_include_dir_stub): Delete.
8566 (read_formatted_entries): Remove memset.
8567 (dwarf_decode_line_header): Return a line_header_up instead of a
8568 raw pointer. Remove cleanup handling. Pass lambdas to
8569 read_formatted_entries. Adjust to use line_header methods.
8570 (dwarf_decode_lines_1): Adjust to use line_header methods.
8571 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8572 use std::vector.
8573
8574 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8575
8576 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8577 instead of struct ptid.
8578
8579 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8580
8581 * frame.c (get_frame_register_bytes): Unwind using value.
8582 (put_frame_register_bytes): Likewise.
8583
8584 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8585
8586 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8587 aggregate-like.
8588
8589 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8590
8591 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8592
8593 2017-03-29 Yao Qi <yao.qi@linaro.org>
8594
8595 * gdbthread.h (struct thread_info): Declare constructor and
8596 destructor. Add some in-class member initializers.
8597 * thread.c (free_thread): Remove.
8598 (init_thread_list): Call delete instead of free_thread.
8599 (new_thread): Call thread_info constructor.
8600 (thread_info::thread_info): New function.
8601 (thread_info::~thread_info): New function.
8602 (delete_thread_1): Call delete instead of free_thread.
8603 (make_cleanup_restore_current_thread): Move tp and frame to
8604 inner block.
8605
8606 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8607
8608 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8609 (arc_skip_prologue): Likewise.
8610 (arc_make_frame_cache): Likewise.
8611 (arc_pv_get_operand): New function.
8612 (arc_is_in_prologue): Likewise.
8613 (arc_analyze_prologue): Likewise.
8614 (arc_print_frame_cache): Likewise.
8615 (MAX_PROLOGUE_LENGTH): New constant.
8616
8617 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8618
8619 * configure.tgt: Add arc-insn.o.
8620 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8621 (dump_arc_instruction_command): New function.
8622 (arc_fprintf_disasm): Likewise.
8623 (arc_disassemble_info): Likewise.
8624 (arc_insn_get_operand_value): Likewise.
8625 (arc_insn_get_operand_value_signed): Likewise.
8626 (arc_insn_get_memory_base_reg): Likewise.
8627 (arc_insn_get_memory_offset): Likewise.
8628 (arc_insn_get_branch_target): Likewise.
8629 (arc_insn_dump): Likewise.
8630 (arc_insn_get_linear_next_pc): Likewise.
8631 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8632 (arc_disassemble_info): Likewise.
8633 (arc_insn_get_branch_target): Likewise.
8634 (arc_insn_get_linear_next_pc): Likewise.
8635 * NEWS: Mention new "maint print arc arc-instruction".
8636
8637 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8638
8639 * arc-tdep (maintenance_print_arc_list): New variable.
8640 (maintenance_print_arc_command): New function.
8641
8642 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8643
8644 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8645 Add "limm" and "reserved".
8646 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8647 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8648 * arc-tdep.h (arc_regnum): Likewise.
8649
8650 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8651
8652 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8653 for THREADPTR register.
8654 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8655 register.
8656 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8657 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8658 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8659
8660 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8661
8662 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8663 registers above gdbarch_num_regs (gdbarch) as privileged in
8664 call0 ABI.
8665
8666 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8667
8668 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8669 for a single specified register or for all registers in
8670 a0_base..a0_base + C0_NREGS range.
8671 (supply_gregset_reg): Call regcache_raw_supply for a single
8672 specified register or for all registers in a0_base..a0_base +
8673 C0_NREGS range.
8674
8675 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8676
8677 * arch/xtensa.h (C0_NREGS): Add definition.
8678 * xtensa-tdep.c (C0_NREGS): Remove definition.
8679
8680 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8681
8682 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8683 Drop xtensa_default_isa initialization.
8684 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8685
8686 2017-03-27 Pedro Alves <palves@redhat.com>
8687
8688 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8689 (file_entry::include_dir): New method.
8690 (line_header::include_dir_at, line_header::file_name_at): New
8691 methods.
8692 (setup_type_unit_groups, setup_type_unit_groups)
8693 (psymtab_include_file_name): Simplify using the new methods.
8694 (lnp_state_machine) <the_line_header>: New field.
8695 <file>: Add comment.
8696 (lnp_state_machine::current_file): New method.
8697 (dwarf_record_line): Simplify using the new methods.
8698 (init_lnp_state_machine): Initialize the "the_line_header" field.
8699 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8700 Simplify using the new methods.
8701
8702 2017-03-27 Pedro Alves <palves@redhat.com>
8703
8704 * cp-name-parser.y (make_empty): Delete.
8705 (demangler_special, nested_name, ptr_operator, array_indicator)
8706 (direct_declarator, declarator_1): Use fill_comp instead of
8707 make_empty.
8708
8709 2017-03-27 Pedro Alves <palves@redhat.com>
8710
8711 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8712 to ATTRIBUTE_PRINTF.
8713 * solib-target.c (library_list_start_list): Print "string" not
8714 "version".
8715 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8716 gdb_xml_error call.
8717
8718 2017-03-27 Pedro Alves <palves@redhat.com>
8719
8720 * dwarf2read.c (struct file_and_directory): New.
8721 (dwarf2_get_dwz_file): Adjust to use std::string.
8722 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8723 (find_file_and_directory): Adjust to return a file_and_directory
8724 object.
8725 (read_file_scope): Adjust to use file_and_directory. Remove
8726 make_cleanup/do_cleanups calls.
8727 (open_and_init_dwp_file): Adjust to use std::string. Remove
8728 make_cleanup/do_cleanups calls.
8729 * python/python.c (do_start_initialization): Adjust to ldirname
8730 returning a std::string.
8731 * utils.c (ldirname): Now returns a std::string.
8732 * utils.h (ldirname): Change return type to std::string.
8733 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8734 returning a std::string.
8735 * xml-tdesc.c (file_read_description_xml): Likewise.
8736
8737 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8738
8739 * regcache.c (regcache_debug_print_register): New function.
8740 * regcache.h (regcache_debug_print_register): New declaration.
8741 * target.c (debug_print_register): Remove.
8742 (target_fetch_registers): Call regcache_debug_print_register.
8743 (target_store_registers): Likewise.
8744
8745 2017-03-24 Pádraig Brady <pbrady@fb.com>
8746
8747 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8748 reference beyond the 'lh->include_dirs' array before accessing to
8749 it.
8750 (psymtab_include_file_name): Likewise.
8751 (dwarf_decode_lines_1): Likewise.
8752 (dwarf_decode_lines): Likewise.
8753 (file_file_name): Likewise.
8754
8755 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8756
8757 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8758 inferior_ptid.
8759 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8760 ps_lsetfpregs): Likewise.
8761 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8762 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8763 ps_lsetfpregs): Likewise.
8764 * target.c (target_fetch_registers, target_store_registers):
8765 Remove asserts.
8766
8767 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8768
8769 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8770
8771 2017-03-23 Yao Qi <yao.qi@linaro.org>
8772
8773 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8774 (_initialize_aarch64_tdep): Register it.
8775 (aarch64_record_load_store): Handle PRFM instruction.
8776 (aarch64_process_record_test): New function.
8777
8778 2017-03-23 Yao Qi <yao.qi@linaro.org>
8779
8780 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8781 indentation.
8782
8783 2017-03-23 Yao Qi <yao.qi@linaro.org>
8784
8785 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8786
8787 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8788
8789 python/python.c (do_start_initialization): Fix memory leak.
8790
8791 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8792
8793 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8794 using get_ptrace_pid.
8795 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8796 inferior_ptid.
8797 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8798 inferior_ptid instead of pid.
8799
8800 2017-03-22 Yao Qi <yao.qi@linaro.org>
8801
8802 * aarch64-tdep.c: Wrap locally used classes in anonymous
8803 namespace.
8804 * arm-tdep.c: Likewise.
8805 * linespec.c: Likewise.
8806 * ui-out.c: Likewise.
8807
8808 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8809
8810 PR gdb/19637
8811 * python/lib/gdb/printer/bound_registers.py: Import sys.
8812
8813 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8814
8815 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8816 windows_thread_info parameter and use it instead of
8817 current_thread.
8818 (windows_fetch_inferior_registers): Don't set current_thread,
8819 pass the thread to do_windows_fetch_inferior_registers. Use
8820 ptid from regcache instead of inferior_ptid.
8821 (do_windows_store_inferior_registers): Add windows_thread_info
8822 parameter and use it instead of current_thread.
8823 (windows_store_inferior_registers): Don't set current_thread,
8824 pass the thread to do_windows_store_inferior_registers. Use
8825 ptid from regcache instead of inferior_ptid.
8826
8827 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8828
8829 * ser-mingw.c (ser_windows_raw): Remove reference to
8830 struct serial::current_timeout.
8831
8832 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8833
8834 PR tdep/20928
8835 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8836 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8837 (sparc64_fsr_type): Fix %fsr decoding.
8838
8839 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8840
8841 * python/py-record-btrace.c (btpy_insn_data): Change return type
8842 for Python 2.
8843
8844 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8845
8846 * spu-linux-nat.c (spu_fetch_inferior_registers,
8847 spu_store_inferior_registers): Use ptid from regcache, set and
8848 restore inferior_ptid.
8849 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8850 Likewise.
8851
8852 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8853
8854 * i386-linux-nat.c (fetch_register, store_register,
8855 i386_linux_fetch_inferior_registers,
8856 i386_linux_store_inferior_registers): Use ptid from regcache.
8857 * ia64-linux-nat.c (ia64_linux_fetch_register,
8858 ia64_linux_store_register): Likewise.
8859 * inf-ptrace.c (inf_ptrace_fetch_register,
8860 inf_ptrace_store_register): Likewise.
8861 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8862 m32r_linux_store_inferior_registers): Likewise.
8863 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8864 m68kbsd_store_inferior_registers): Likewise.
8865 * m68k-linux-nat.c (fetch_register, store_register,
8866 m68k_linux_fetch_inferior_registers,
8867 m68k_linux_store_inferior_registers): Likewise.
8868 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8869 m88kbsd_store_inferior_registers): Likewise.
8870 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8871 mips_fbsd_store_inferior_registers): Likewise.
8872 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8873 mips64_linux_regsets_store_registers): Likewise.
8874 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8875 mipsnbsd_store_inferior_registers): Likewise.
8876 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8877 mips64obsd_store_inferior_registers): Likewise.
8878 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8879 Likewise.
8880 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8881 ppcfbsd_store_inferior_registers): Likewise.
8882 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8883 ppc_linux_store_inferior_registers): Likewise.
8884 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8885 ppcnbsd_store_inferior_registers): Likewise.
8886 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8887 ppcobsd_store_registers): Likewise.
8888 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8889 Likewise.
8890 * ravenscar-thread.c (ravenscar_fetch_registers,
8891 ravenscar_store_registers, ravenscar_prepare_to_store):
8892 Likewise.
8893 * record-btrace.c (record_btrace_fetch_registers,
8894 record_btrace_store_registers, record_btrace_prepare_to_store):
8895 Likewise.
8896 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8897 Lookup inferior using ptid from regcache, instead of
8898 current_inferior.
8899 * remote.c (remote_fetch_registers, remote_store_registers): Use
8900 ptid from regcache.
8901 * rs6000-nat.c (fetch_register, store_register): Likewise.
8902 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8903 s390_linux_store_inferior_registers): Likewise.
8904 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8905 shnbsd_store_inferior_registers): Likewise.
8906 * sol-thread.c (sol_thread_fetch_registers,
8907 sol_thread_store_registers): Likewise.
8908 * sparc-nat.c (sparc_fetch_inferior_registers,
8909 sparc_store_inferior_registers): Likewise.
8910 * tilegx-linux-nat.c (fetch_inferior_registers,
8911 store_inferior_registers): Likewise.
8912 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8913 vaxbsd_store_inferior_registers): Likewise.
8914 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8915 store_xtregs): Likewise.
8916
8917 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8918
8919 PR gdb/14441
8920 * NEWS: Mention support for rvalue references in GDB and python.
8921 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8922 supports both lvalue and rvalue references.
8923
8924 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8925
8926 PR gdb/14441
8927 * gdbtypes.c (rank_one_type): Implement overloading
8928 resolution rules regarding rvalue references.
8929
8930 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8931
8932 PR gdb/14441
8933 * aarch64-tdep.c (aarch64_type_align)
8934 (aarch64_extract_return_value, aarch64_store_return_value): Change
8935 lvalue reference type checks to general reference type checks.
8936 * amd64-tdep.c (amd64_classify): Likewise.
8937 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8938 Likewise.
8939 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8940 (arm_store_return_value): Likewise.
8941 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8942 * c-typeprint.c (c_print_type): Likewise.
8943 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8944 (cplus_number_of_children, cplus_describe_child): Likewise.
8945 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8946 * completer.c (expression_completer): Likewise.
8947 * cp-support.c (make_symbol_overload_list_adl_namespace):
8948 Likewise.
8949 * darwin-nat-info.c (info_mach_region_command): Likewise.
8950 * dwarf2loc.c (entry_data_value_coerce_ref)
8951 (value_of_dwarf_reg_entry): Likewise.
8952 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8953 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8954 Likewise.
8955 * findvar.c (extract_typed_address, store_typed_address):
8956 Likewise.
8957 * gdbtypes.c (rank_one_type): Likewise.
8958 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8959 * infcall.c (value_arg_coerce): Likewise.
8960 * language.c (pointer_type): Likewise.
8961 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8962 Likewise.
8963 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8964 * mn10300-tdep.c (mn10300_type_align): Likewise.
8965 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8966 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8967 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8968 Likewise.
8969 * printcmd.c (print_formatted, x_command): Likewise.
8970 * python/py-type.c (typy_get_composite, typy_template_argument):
8971 Likewise.
8972 * python/py-value.c (valpy_referenced_value)
8973 (valpy_get_dynamic_type, value_has_field): Likewise.
8974 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8975 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8976 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8977 * spu-tdep.c (spu_scalar_value_p): Likewise.
8978 * symtab.c (lookup_symbol_aux): Likewise.
8979 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8980 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8981 Likewise.
8982 * valops.c (value_cast_pointers, value_cast)
8983 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8984 (value_struct_elt, value_struct_elt_bitpos)
8985 (value_find_oload_method_list, find_overload_match)
8986 (value_rtti_indirect_type): Likewise.
8987 * valprint.c (val_print_scalar_type_p, generic_val_print):
8988 Likewise.
8989 * value.c (value_actual_type, value_as_address, unpack_long)
8990 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8991 (coerce_ref): Likewise.
8992 * varobj.c (varobj_get_value_type): Likewise.
8993
8994 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8995
8996 PR gdb/14441
8997 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8998 table of constants.
8999 * python/lib/gdb/command/explore.py: Support exploring values
9000 of rvalue reference types.
9001 * python/lib/gdb/types.py: Implement get_basic_type() for
9002 rvalue reference types.
9003 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9004 constant.
9005 * python/py-value.c (valpy_getitem): Add an rvalue reference
9006 check.
9007 (valpy_reference_value): Add new parameter "refcode".
9008 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9009 New wrappers for valpy_reference_value().
9010 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9011 (gdbpy_invoke_xmethod): Likewise.
9012
9013 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9014
9015 PR gdb/14441
9016 * dwarf2read.c (process_die, read_type_die_1): Handle the
9017 DW_TAG_rvalue_reference_type DIE.
9018 (read_tag_reference_type): Add new parameter "refcode".
9019
9020 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9021
9022 PR gdb/14441
9023 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9024 (c_type_print_modifier, c_type_print_varspec_suffix)
9025 (c_type_print_base): Support printing rvalue reference types.
9026 * c-valprint.c (c_val_print, c_value_print): Support printing
9027 rvalue reference values.
9028
9029 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9030
9031 PR gdb/14441
9032 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9033 typename.
9034 * cp-support.c (replace_typedefs): Handle
9035 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9036 * python/py-type.c (typy_lookup_type): Likewise.
9037
9038 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9039
9040 PR gdb/14441
9041 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9042 * parse.c (insert_type): Change assert statement.
9043 (follow_types): Handle rvalue reference types.
9044 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9045 constant.
9046
9047 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9048
9049 PR gdb/14441
9050 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9051 value_ref() interface.
9052 * c-valprint.c (c_value_print): Likewise.
9053 * infcall.c (value_arg_coerce): Likewise.
9054 * python/py-value.c (valpy_reference_value): Likewise.
9055 * valops.c (value_cast, value_reinterpret_cast)
9056 (value_dynamic_cast, typecmp): Likewise.
9057 (value_ref): Parameterize by kind of return value reference type.
9058 * value.h (value_ref): Add new parameter "refcode".
9059
9060 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9061
9062 PR gdb/14441
9063 * dwarf2read.c (read_tag_reference_type): Use
9064 lookup_lvalue_reference_type() instead of lookup_reference_type().
9065 * eval.c (evaluate_subexp_standard): Likewise.
9066 * f-exp.y: Likewise.
9067 * gdbtypes.c (make_reference_type, lookup_reference_type):
9068 Generalize with rvalue reference types.
9069 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9070 convenience wrappers for lookup_reference_type().
9071 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9072 reference kind parameter.
9073 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9074 wrappers for lookup_reference_type().
9075 * guile/scm-type.c (gdbscm_type_reference): Use
9076 lookup_lvalue_reference_type() instead of lookup_reference_type().
9077 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9078 * parse.c (follow_types): Likewise.
9079 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9080 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9081 Likewise.
9082 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9083 (gdbpy_invoke_xmethod): Likewise.
9084 * stabsread.c: Provide extra argument to make_reference_type()
9085 call.
9086 * valops.c (value_ref, value_rtti_indirect_type): Use
9087 lookup_lvalue_reference_type() instead of lookup_reference_type().
9088
9089 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9090
9091 PR gdb/14441
9092 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9093 (TYPE_IS_REFERENCE): New macro.
9094 (struct type): Add rvalue_reference_type field.
9095 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9096
9097 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9098
9099 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9100 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9101 New function definition.
9102 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9103 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9104 New function declaration.
9105 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9106 * mi/mi-interp.h: New file.
9107 * solib.c (info_sharedlibrary_command): Replace for loop with
9108 ALL_SO_LIBS macro
9109 * solib.h (update_solib_list): New function declaration.
9110 (so_list_head): Move macro.
9111 * solist.h (ALL_SO_LIBS): New macro.
9112
9113 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9114
9115 * infcmd.c (post_create_inferior): Remove unused argument in
9116 call to solib_add.
9117 * remote.c (remote_start_remote): Likewise.
9118 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9119 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9120 (enable_break): Likewise.
9121 * solib.c (update_solib_list): Remove unused target argument
9122 and its documentation.
9123 (solib_add): Remove unused target argument. Remove unused
9124 argument in call to update_solib_list.
9125 (info_sharedlibrary_command): Remove unused argument in call
9126 to update_solib_list.
9127 (sharedlibrary_command): Remove unused argument in call to
9128 solib_add.
9129 (handle_solib_event): Likewise.
9130 (reload_shared_libraries): Likewise.
9131 * solib.h (solib_add): Remove unused target argument.
9132
9133 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9134
9135 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9136 (s390_displaced_step_fixup): Cover relative branches with the
9137 default fixup handling. This fixes lack of support for some
9138 relative branch instructions.
9139
9140 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9141
9142 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9143 ptid from regcache.
9144
9145 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9146
9147 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9148 i386_darwin_store_inferior_registers): Use ptid from regcache.
9149
9150 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9151
9152 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9153 i386bsd_store_inferior_registers): Use ptid from regcache.
9154
9155 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9156
9157 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9158 hppaobsd_store_registers): Use ptid from regcache.
9159
9160 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9161
9162 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9163 hppanbsd_store_registers): Use ptid from regcache.
9164
9165 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9166
9167 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9168 from regcache. Use get_ptrace_pid.
9169
9170 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9171
9172 * corelow.c (get_core_register_section): Use ptid from regcache,
9173 update doc.
9174
9175 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9176
9177 * bsd-uthread.c (bsd_uthread_fetch_registers,
9178 bsd_uthread_store_registers): Use ptid from regcache, set and
9179 restore inferior_ptid.
9180
9181 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9182
9183 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9184 fetch_fp_regs, store_register, store_regs, store_fp_register,
9185 store_fp_regs): Use ptid from regcache.
9186
9187 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9188
9189 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9190 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9191 store_vfp_regs): Use ptid from regcache.
9192
9193 2017-03-17 Pedro Alves <palves@redhat.com>
9194
9195 PR remote/21188
9196 * ser-base.c (ser_base_wait_for): Add comment.
9197 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9198 version.
9199 * ser-unix.c (hardwire_raw): Remove reference to
9200 scb->current_timeout.
9201 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9202 (hardwire_ops): Install ser_base_readchar instead of
9203 hardwire_readchar.
9204 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9205 Remove fields.
9206
9207 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9208
9209 PR gdb/19637
9210 * python/lib/gdb/printer/bound_registers.py: Add support for
9211 Python 3.
9212
9213 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9214
9215 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9216 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9217 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9218 byte_offset to subobj_byte_offset. Fix the handling of
9219 DWARF_VALUE_STACK on big-endian targets when coming via an
9220 implicit pointer.
9221 (dwarf2_evaluate_loc_desc): Adjust call to
9222 dwarf2_evaluate_loc_desc_full.
9223 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9224 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9225
9226 2017-03-16 Yao Qi <yao.qi@linaro.org>
9227
9228 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9229 and REVSH instructions.
9230
9231 2017-03-16 Yao Qi <yao.qi@linaro.org>
9232
9233 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9234 (arm_record_test): Declare.
9235 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9236 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9237 align with the manual.
9238 (thumb_record_misc): Adjust the code order to align with the
9239 manual.
9240 (thumb2_record_decode_insn_handler): Fix instruction matching.
9241 (instruction_reader_thumb): New class.
9242 (arm_record_test): New function.
9243
9244 2017-03-16 Yao Qi <yao.qi@linaro.org>
9245
9246 * arm-tdep.c (abstract_memory_reader): New class.
9247 (instruction_reader): New class.
9248 (extract_arm_insn): Add argument 'reader'. Callers updated.
9249 (decode_insn): Likewise.
9250
9251 2017-03-16 Doug Evans <dje@google.com>
9252
9253 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9254 member. Change type of TYPE member to SCM. All uses updated.
9255 (lsscm_make_lazy_string_smob): Add assert.
9256 (lsscm_make_lazy_string): Flag bad length values.
9257 (lsscm_elt_type): New function.
9258 (gdbscm_lazy_string_to_value): Rewrite to use
9259 lsscm_safe_lazy_string_to_value.
9260 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9261 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9262 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9263 in incoming type.
9264 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9265 * guile/scm-type.c (tyscm_scm_to_type): New function.
9266
9267 2017-03-15 Doug Evans <dje@google.com>
9268
9269 PR python/17728, python/18439, python/18779
9270 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9271 member. Change type of TYPE member to PyObject *. All uses updated.
9272 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9273 (gdbpy_create_lazy_string_object): Flag bad length values.
9274 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9275 Handle typedefs in incoming type.
9276 (stpy_lazy_string_elt_type): New function.
9277 (gdbpy_extract_lazy_string): Call it.
9278 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9279 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9280 typedefs in incoming type.
9281
9282 2017-03-16 Doug Evans <dje@google.com>
9283
9284 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9285 * guile/scm-type.c (tyscm_scm_to_type): New function.
9286
9287 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9288
9289 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9290 "ULONGEST" for "skip".
9291
9292 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9293
9294 PR gdb/21220
9295 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9296 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9297 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9298 over ptrace peek/poke until end of buffer or error.
9299
9300 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9301
9302 * parse.c (length_of_subexp): Make static.
9303 * parser-defs.h (length_of_subexp): Remove.
9304
9305 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9306
9307 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9308 as well.
9309
9310 2017-03-14 Pedro Alves <palves@redhat.com>
9311
9312 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9313 (main): Use std::unique_ptr. Remove calls to
9314 cp_demangled_name_parse_free.
9315
9316 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9317
9318 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9319 alphabsd_store_inferior_registers): Use regcache->ptid instead
9320 of inferior_ptid.
9321
9322 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * aix-thread.c (aix_thread_fetch_registers,
9325 aix_thread_store_registers): Use regcache->ptid instead of
9326 inferior_ptid.
9327
9328 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9331 store_gregs_to_thread, fetch_fpregs_from_thread,
9332 store_fpregs_to_thread): Use regcache->ptid instead of
9333 inferior_ptid.
9334
9335 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9336
9337 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9338 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9339 instead of inferior_ptid.
9340
9341 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * target.c (target_fetch_registers, target_store_registers): Add
9344 assert.
9345
9346 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9347
9348 * regcache.h (regcache_get_ptid): New function.
9349 * regcache.c (regcache_get_ptid): New function.
9350
9351 2017-03-13 Mark Wielaard <mark@klomp.org>
9352
9353 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9354
9355 2017-03-10 Keith Seitz <keiths@redhat.com>
9356
9357 PR c++/8218
9358 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9359
9360 2017-03-08 Pedro Alves <palves@redhat.com>
9361
9362 PR gdb/18360
9363 * infrun.c (start_step_over, do_target_resume, resume)
9364 (restart_threads): Assert we're not resuming a thread that is
9365 meant to be stopped.
9366 (infrun_thread_stop_requested_callback): Delete.
9367 (infrun_thread_stop_requested): If the thread is internally
9368 stopped, queue a pending stop event and clear the thread's
9369 inline-frame state.
9370 (handle_stop_requested): New function.
9371 (handle_syscall_event, handle_inferior_event_1): Use
9372 handle_stop_requested.
9373 (handle_stop_requested): New function.
9374 (handle_signal_stop): Set the thread's stop_signal here instead of
9375 at caller.
9376 (finish_step_over): Clear step over info unconditionally.
9377 (handle_signal_stop): If the user had interrupted the event
9378 thread, consider the stop a random signal.
9379 (handle_signal_stop) <signal arrived while stepping over
9380 breakpoint>: Don't restart threads here.
9381 (stop_waiting): Don't clear step-over info here.
9382
9383 2017-03-08 Pedro Alves <palves@redhat.com>
9384
9385 PR 21206
9386 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9387 goes to argument 2, not 1.
9388
9389 2017-03-08 Pedro Alves <palves@redhat.com>
9390
9391 PR cli/21218
9392 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9393 display_gdb_prompt.
9394 (command_line_input): Add comment.
9395
9396 2017-03-08 Pedro Alves <palves@redhat.com>
9397
9398 PR tui/21216
9399 * tui/tui-file.c (tui_file::write): New.
9400 * tui/tui-file.h (tui_file): Override "write".
9401 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9402 factored out from ...
9403 (tui_puts): ... here.
9404 (tui_putc): Use them.
9405 (tui_write): New function.
9406 * tui/tui-io.h (tui_write): Declare.
9407
9408 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9409
9410 * Makefile.in (SFILES): Replace "environ.c" with
9411 "common/environ.c".
9412 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9413 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9414 to...
9415 * common/environ.c: ... here.
9416 * environ.h: Moved to...
9417 * common/environ.h: ... here.
9418
9419 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9420
9421 * gdbarch.sh (pstring_ptr): New static function.
9422 (gdbarch_disassembler_options): Use it.
9423 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9424 not valid_disassembler_option->name.
9425 * gdbarch.c: Regenerate.
9426
9427 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9428
9429 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9430
9431 2017-03-07 Pedro Alves <palves@redhat.com>
9432
9433 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9434
9435 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9436
9437 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9438 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9439 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9440 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9441
9442 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9443
9444 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9445
9446 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9447
9448 * remote.c (remote_add_target_side_commands): Use range-based
9449 for loop.
9450
9451 2017-03-03 Yao Qi <yao.qi@linaro.org>
9452
9453 PR gdb/21165
9454 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9455 value is lazy.
9456 * valprint.c (common_val_print): Likewise.
9457
9458 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9459
9460 * NEWS: Mention new set/show disassembler-options commands.
9461 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9462 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9463 (prospective_options): New static variable.
9464 (gdb_disassembler::gdb_disassembler): Initialize
9465 m_di.disassembler_options.
9466 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9467 (get_disassembler_options): New function.
9468 (set_disassembler_options): Likewise.
9469 (set_disassembler_options_sfunc): Likewise.
9470 (show_disassembler_options_sfunc): Likewise.
9471 (disassembler_options_completer): Likewise.
9472 (_initialize_disasm): Likewise.
9473 * disasm.h (get_disassembler_options): New prototype.
9474 (set_disassembler_options): Likewise.
9475 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9476 (gdbarch_verify_disassembler_options): Likewise.
9477 * gdbarch.c: Regenerate.
9478 * gdbarch.h: Likewise.
9479 * arm-tdep.c (num_disassembly_options): Delete.
9480 (set_disassembly_style): Likewise.
9481 (arm_disassembler_options): New static variable.
9482 (set_disassembly_style_sfunc): Convert short style name into long
9483 option name. Call set_disassembler_options.
9484 (show_disassembly_style_sfunc): New function.
9485 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9486 set_gdbarch_verify_disassembler_options.
9487 (_initialize_arm_tdep): Delete regnames variable and update callers.
9488 (arm_disassembler_options): Initialize.
9489 (disasm_options): New variable.
9490 (num_disassembly_options): Rename from this...
9491 (num_disassembly_styles): ...to this. Compute by scanning through
9492 disasm_options.
9493 (valid_disassembly_styles): Initialize using disasm_options.
9494 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9495 set_arm_regname_option.
9496 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9497 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9498 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9499 set_gdbarch_verify_disassembler_options.
9500 * s390-tdep.c (s390_disassembler_options): New static variable.
9501 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9502 set_gdbarch_verify_disassembler_options.
9503
9504 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9505
9506 * remote.c (remote_add_target_side_condition): Remove "struct"
9507 keyword from range-based for loop.
9508
9509 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9510
9511 * remote.c (remote_add_target_side_condition): Use range-based
9512 for loop. Update comment.
9513
9514 2017-02-27 Yao Qi <yao.qi@linaro.org>
9515
9516 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9517
9518 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9519
9520 * regcache.c (regcache_raw_update): New function.
9521 (regcache_raw_read): Move code to regcache_raw_update.
9522 * regcache.h (regcache_raw_update): New declaration.
9523 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9524
9525 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9526
9527 * dwarf2read.c (create_debug_type_hash_table): Initialize
9528 header.signature and header.type_offset_in_tu.
9529
9530 2017-02-24 Pedro Alves <palves@redhat.com>
9531
9532 * symtab.c (make_file_symbol_completion_list_1): Use
9533 add_symtab_completions.
9534
9535 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9536
9537 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9538
9539 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9540
9541 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9542 I386_MAX_REGISTER_SIZE.
9543 (i386_pseudo_register_write): Likewise.
9544 (i386_process_record): Likewise.
9545 * i387-tdep.c (i387_supply_xsave): Likewise.
9546 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9547 (store_register): Likewise.
9548
9549 2017-02-23 Pedro Alves <palves@redhat.com>
9550
9551 * ada-lang.c: Include "common/function-view.h".
9552 (ada_iterate_over_symbols): Adjust to use function_view as
9553 callback type.
9554 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9555 (ada_make_symbol_completion_list): Use a lambda.
9556 (ada_exc_search_name_matches): Delete.
9557 (name_matches_regex): New.
9558 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9559 * compile/compile-c-support.c: Include "common/function-view.h".
9560 (print_one_macro): Change prototype to accept a ui_file pointer.
9561 (write_macro_definitions): Use a lambda.
9562 * dwarf2read.c: Include "common/function-view.h".
9563 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9564 (dw2_expand_symtabs_matching): Adjust to use function_view as
9565 callback type.
9566 * language.h: Include "common/function-view.h".
9567 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9568 function_view as callback type.
9569 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9570 * linespec.c: Include "common/function-view.h".
9571 (collect_info::add_symbol): New method.
9572 (struct symbol_and_data_callback, iterate_inline_only, struct
9573 symbol_matcher_data, iterate_name_matcher): Delete.
9574 (iterate_over_all_matching_symtabs): Adjust to use function_view
9575 as callback type and lambdas.
9576 (iterate_over_file_blocks): Adjust to use function_view as
9577 callback type.
9578 (decode_compound_collector): Now a class with private fields.
9579 (decode_compound_collector::release_symbols): New method.
9580 (collect_one_symbol): Rename to...
9581 (decode_compound_collector::operator()): ... this and adjust.
9582 (lookup_prefix_sym): decode_compound_collector construction bits
9583 move to decode_compound_collector ctor. Pass the
9584 decode_compound_collector object directly as callback. Remove
9585 cleanups and use decode_compound_collector::release_symbols
9586 instead.
9587 (symtab_collector): Now a class with private fields.
9588 (symtab_collector::release_symtabs): New method.
9589 (add_symtabs_to_list): Rename to...
9590 (symtab_collector::operator()): ... this and adjust.
9591 (collect_symtabs_from_filename): symtab_collector construction
9592 bits move to symtab_collector ctor. Pass the symtab_collector
9593 object directly as callback. Remove cleanups and use
9594 symtab_collector::release_symtabs instead.
9595 (collect_symbols): Delete.
9596 (add_matching_symbols_to_info): Use lambdas.
9597 * macrocmd.c (print_macro_callback): Delete.
9598 (info_macro_command): Use a lambda.
9599 (info_macros_command): Pass print_macro_definition as callable
9600 directly.
9601 (print_one_macro): Remove 'ignore' parameter.
9602 (macro_list_command): Adjust.
9603 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9604 (macro_for_each_data::user_data): Delete field.
9605 (foreach_macro): Adjust to call the function_view.
9606 (macro_for_each): Adjust to use function_view as callback type.
9607 (foreach_macro_in_scope): Adjust to call the function_view.
9608 (macro_for_each_in_scope): Adjust to use function_view as callback
9609 type.
9610 * macrotab.h: Include "common/function-view.h".
9611 (macro_callback_fn): Declare a prototype instead of a pointer.
9612 Remove "user_data" parameter.
9613 (macro_for_each, macro_for_each_in_scope): Adjust to use
9614 function_view as callback type.
9615 * psymtab.c (partial_map_expand_apply)
9616 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9617 Adjust to use function_view as callback type and to return bool.
9618 (psym_expand_symtabs_matching): Adjust to use function_view as
9619 callback types.
9620 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9621 to use function_view as callback type and to return bool.
9622 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9623 callback types.
9624 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9625 as callback types.
9626 * symfile.h: Include "common/function-view.h".
9627 (expand_symtabs_file_matcher_ftype)
9628 (expand_symtabs_symbol_matcher_ftype)
9629 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9630 return bool.
9631 (quick_symbol_functions::map_symtabs_matching_filename)
9632 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9633 function_view as callback type and return bool.
9634 (expand_symtabs_matching): Adjust to use function_view as callback
9635 type.
9636 (maintenance_expand_name_matcher)
9637 (maintenance_expand_file_matcher): Delete.
9638 (maintenance_expand_symtabs): Use lambdas.
9639 * symtab.c (iterate_over_some_symtabs): Adjust to use
9640 function_view as callback types and return bool.
9641 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9642 of a cleanup.
9643 (lookup_symtab_callback): Delete.
9644 (lookup_symtab): Use a lambda.
9645 (iterate_over_symbols): Adjust to use function_view as callback
9646 type.
9647 (struct search_symbols_data, search_symbols_file_matches)
9648 (search_symbols_name_matches): Delete.
9649 (search_symbols): Use a pair of lambdas.
9650 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9651 (symtab_expansion_callback): Delete.
9652 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9653 * symtab.h: Include "common/function-view.h".
9654 (iterate_over_some_symtabs): Adjust to use function_view as
9655 callback type and return bool.
9656 (iterate_over_symtabs): Adjust to use function_view as callback
9657 type.
9658 (symbol_found_callback_ftype): Remove 'data' parameter and return
9659 bool.
9660 (iterate_over_symbols): Adjust to use function_view as callback
9661 type.
9662
9663 2017-02-23 Pedro Alves <palves@redhat.com>
9664
9665 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9666 (%.o) <unittests/%.c>: New pattern.
9667 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9668 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9669 * common/function-view.h: New file.
9670 * unittests/function-view-selftests.c: New file.
9671 * configure: Regenerate.
9672
9673 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9674
9675 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9676 inferior_ptid.
9677 * go32-nat.c (go32_thread_alive): Likewise.
9678
9679 2017-02-23 Yao Qi <yao.qi@linaro.org>
9680
9681 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9682 delete.
9683
9684 2017-02-23 Yao Qi <yao.qi@linaro.org>
9685
9686 * varobj.c (varobj_clear_saved_item): Use delete instead of
9687 xfree.
9688 (update_dynamic_varobj_children): Likewise.
9689
9690 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9691
9692 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9693
9694 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9695
9696 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9697 m_enum_value to 0 in default constructor.
9698
9699 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9700
9701 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9702 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9703 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9704 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9705 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9706 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9707 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9708 IS_STORE_CONDITIONAL_INSN.
9709
9710 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9713
9714 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9715
9716 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9717
9718 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * dwarf2read.c (skip_one_die, read_attribute_value)
9721 (dwarf2_const_value_attr, dump_die_shallow)
9722 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9723 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9724
9725 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9726
9727 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9728 (dwarf_parse_macro_header): Accept DWARF version 5.
9729 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9730
9731 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9732
9733 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9734 DW_AT_GNU_*.
9735 * common/common-exceptions.h (enum errors): Likewise.
9736 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9737 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9738 (dwarf_expr_context::execute_stack_op): Likewise.
9739 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9740 Likewise.
9741 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9742 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9743 (show_entry_values_debug, call_site_to_target_addr)
9744 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9745 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9746 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9747 (value_of_dwarf_block_entry, indirect_pieced_value)
9748 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9749 (disassemble_dwarf_expression): Likewise.
9750 * dwarf2read.c (process_die, inherit_abstract_dies)
9751 (read_call_site_scope): Likewise.
9752 * gdbtypes.h (struct func_type, struct call_site_parameter)
9753 (struct call_site): Likewise.
9754 * stack.c (read_frame_arg): Likewise.
9755 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9756
9757 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9758
9759 * defs.h (read_unsigned_leb128): New declaration.
9760 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9761 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9762 (dwarf2_find_location_expression): Call also
9763 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9764 * dwarf2loc.h (dwarf2_version): New declaration.
9765 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9766 rnglists.
9767 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9768 .debug_rnglists.
9769 (struct dwop_section_names): Add loclists_dwo.
9770 (dwop_section_names): Add .debug_loclists.dwo.
9771 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9772 (struct dwarf2_per_cu_data): Add dwarf_version.
9773 (struct dwo_sections): Add loclists.
9774 (struct attr_abbrev): Add implicit_const.
9775 (read_indirect_line_string): New declaration.
9776 (read_unsigned_leb128): Delete declaration.
9777 (rcuh_kind): New definition.
9778 (read_and_check_comp_unit_head): Change parameter
9779 is_debug_types_section to section_kind.
9780 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9781 (read_comp_unit_head): Change parameter abfd to section, add parameter
9782 section_kind. Handle DWARF-5.
9783 (error_check_comp_unit_head): Accept also DWARF version 5.
9784 (read_and_check_comp_unit_head): Change parameter
9785 is_debug_types_section to section_kind.
9786 (read_and_check_type_unit_head): Delete function.
9787 (read_abbrev_offset): Handle DWARF-5.
9788 (create_debug_type_hash_table): Add parameter section_kind. Process
9789 only DW_UT_type. Use signature and type_offset_in_tu from struct
9790 comp_unit_head.
9791 (create_debug_types_hash_table): Update create_debug_type_hash_table
9792 caller.
9793 (create_all_type_units): Call create_debug_type_hash_table.
9794 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9795 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9796 caller.
9797 (skip_one_die): Handle DW_FORM_implicit_const.
9798 (dwarf2_rnglists_process): New function.
9799 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9800 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9801 (read_attribute_value): Handle DW_FORM_implicit_const,
9802 DW_FORM_line_strp.
9803 (read_attribute): Handle DW_FORM_implicit_const.
9804 (read_indirect_string_at_offset_from): New function from
9805 read_indirect_string_at_offset.
9806 (read_indirect_string_at_offset): Call
9807 read_indirect_string_at_offset_from.
9808 (read_indirect_line_string_at_offset): New function.
9809 (read_indirect_string): New function comment.
9810 (read_indirect_line_string): New function.
9811 (read_unsigned_leb128): Make it global.
9812 (dwarf2_string_attr): Handle DWARF-5.
9813 (add_include_dir_stub, read_formatted_entries): New functions.
9814 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9815 Handle DWARF-5.
9816 (per_cu_header_read_in): Update read_comp_unit_head caller.
9817 (dwarf2_version): New function.
9818 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9819 rnglists.
9820 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9821 fields.
9822
9823 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9824
9825 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9826
9827 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9828
9829 * dwarf2read.c (dwarf2_ranges_process): New function from
9830 dwarf2_ranges_read.
9831 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9832 dwarf2_ranges_process.
9833
9834 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9835
9836 * dwarf2read.c (create_debug_type_hash_table): New function from
9837 create_debug_types_hash_table.
9838 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9839 (create_all_type_units, open_and_init_dwo_file): Update
9840 create_debug_types_hash_table callers.
9841
9842 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9843
9844 PR gdb/16188
9845 * fork-child.c (trace_start_error): Fix thinko. va_end should
9846 refer to 'ap', not 'args'.
9847
9848 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9849 Pedro Alves <palves@redhat.com>
9850
9851 PR gdb/16188
9852 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9853 calls succeeded.
9854 * fork-child.c (trace_start_error): New function.
9855 (trace_start_error_with_name): Likewise.
9856 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9857 * inf-ptrace.c (inf_ptrace_me): Likewise.
9858 * inferior.h (trace_start_error): New prototype.
9859 (trace_start_error_with_name): Likewise.
9860
9861 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9862
9863 PR gdb/21164
9864 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9865 NULL before using it.
9866 * symmisc.c (maintenance_print_symbols): Likewise.
9867 (maintenance_print_msymbols): Likewise.
9868
9869 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9870
9871 * NEWS: Add record Python bindings entry.
9872
9873 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9874
9875 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9876 py-record-full.o.
9877 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9878 * python/py-record-btrace.c, python/py-record-btrace.h,
9879 python/py-record-full.c, python/py-record-full.h: New file.
9880 * python/py-record.c: Add include for py-record-btrace.h and
9881 py-record-full.h.
9882 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9883 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9884 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9885 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9886 New definition.
9887 (gdbpy_initialize_btrace): New export.
9888 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9889
9890 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9891
9892 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9893 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9894 * python/py-record.c: New file.
9895 * python/python-internal.h (gdbpy_start_recording,
9896 gdbpy_current_recording, gdpy_stop_recording,
9897 gdbpy_initialize_record): New export.
9898 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9899 (python_GdbMethods): Add gdbpy_start_recording,
9900 gdbpy_current_recording and gdbpy_stop_recording.
9901
9902 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9903
9904 * record-btrace.c (record_btrace_record_method): New function.
9905 (init_record_btrace_ops): Initialize to_record_method.
9906 * record-full.c (record_full_record_method): New function.
9907 (init_record_full_ops, init_record_full_core_ops): Add
9908 record_full_record_method.
9909 * record.h (enum record_method): New enum.
9910 * target-debug.h (target_debug_print_enum_record_method: New define.
9911 * target-delegates.c: Regenerate.
9912 * target.c (target_record_method): New function.
9913 * target.h: Include record.h.
9914 (struct target_ops) <to_record_method>: New field.
9915 (target_record_method): New export.
9916
9917 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9918
9919 * record.h (record_start, record_stop): New export.
9920 * record.c (record_start, record_stop): New function.
9921
9922 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9923
9924 * btrace.c (btrace_fetch): Copy function call segments pointer
9925 into a vector.
9926 (btrace_clear): Clear the vector.
9927 (btrace_find_insn_by_number): Use binary search to find the correct
9928 function call segment.
9929 * btrace.h (brace_fun_p): New typedef.
9930 (struct btrace_thread_info) <functions>: New field.
9931
9932 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9933
9934 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9935 * btrace.c (btrace_decode_error): ... here. New function.
9936 * btrace.h (btrace_decode_error): New export.
9937
9938 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9939
9940 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9941 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9942 btrace_find_insn_by_number): Remove special case for gaps.
9943 * btrace.h (btrace_insn_get_error): New export.
9944 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9945 * record-btrace.c (btrace_insn_history): Print number for gaps.
9946 (record_btrace_info, record_btrace_goto): Handle gaps.
9947
9948 2017-02-14 Tom Tromey <tom@tromey.com>
9949
9950 PR python/13598:
9951 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9952 event.
9953 * python/py-evts.c (gdbpy_initialize_py_events): Add
9954 before_prompt registry.
9955 * python/py-events.h (events_object) <before_prompt>: New field.
9956
9957 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9958
9959 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9960
9961 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
9962
9963 * symfile (_initialize_symfile): Add usage text to the load command's
9964 help text.
9965
9966 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9967
9968 * utils.c (defaulted_query): Don't query on secondary UIs.
9969
9970 2017-02-10 Tom Tromey <tom@tromey.com>
9971
9972 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9973
9974 2017-02-10 Tom Tromey <tom@tromey.com>
9975
9976 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9977 "cleanup" local.
9978 * python/py-type.c (typy_legacy_template_argument): Remove
9979 unnecessary "cleanup" local.
9980
9981 2017-02-10 Tom Tromey <tom@tromey.com>
9982
9983 * python/python.c (do_start_initialization): New function, from
9984 _initialize_python.
9985 (_initialize_python): Call do_start_initialization.
9986 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9987 goto.
9988
9989 2017-02-10 Tom Tromey <tom@tromey.com>
9990
9991 * python/py-prettyprint.c (pretty_print_one_value): Use
9992 gdbpy_ref.
9993
9994 2017-02-10 Tom Tromey <tom@tromey.com>
9995
9996 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9997 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9998 gdbpy_ref.
9999 * python/py-type.c (field_new): Use gdbpy_ref.
10000 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10001 gdbpy_ref.
10002 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10003 (py_free_pspace): Likewise.
10004 (pspace_to_pspace_object): Likewise.
10005 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10006 (py_free_objfile): Likewise.
10007 (objfile_to_objfile_object): Likewise.
10008 * python/py-inferior.c (delete_thread_object): Use
10009 gdbpy_ref.
10010 (infpy_read_memory): Likewise.
10011 (py_free_inferior): Likewise.
10012 * python/py-evtregistry.c (create_eventregistry_object): Use
10013 gdbpy_ref.
10014 * python/py-event.c (create_event_object): Use gdbpy_ref.
10015
10016 2017-02-10 Tom Tromey <tom@tromey.com>
10017
10018 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10019 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10020 used.
10021 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10022 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10023 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10024 python/py-framefilter.c, python/py-function.c,
10025 python/py-inferior.c, python/py-infevents.c,
10026 python/py-linetable.c, python/py-newobjfileevent.c,
10027 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10028 python/py-signalevent.c, python/py-stopevent.c,
10029 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10030 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10031 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10032 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10033
10034 2017-02-10 Tom Tromey <tom@tromey.com>
10035
10036 * ui-out.h (ui_out_emit_type): New class.
10037 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10038 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10039 and ui_out_emit_tuple.
10040 (enumerate_locals): Likewise.
10041 (py_mi_print_variables, py_print_locals, py_print_args): Use
10042 ui_out_emit_list.
10043 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10044 ui_out_emit_list.
10045 * common/gdb_optional.h: New file.
10046
10047 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10048
10049 * MAINTAINERS (Write After Approval): Update my e-mail address.
10050
10051 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10052
10053 PR gdb/21122
10054 * breakpoint.c (_initialize_breakpoint): Update the help description
10055 of the 'commands' command to indicate that it takes a list argument.
10056
10057 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10058
10059 * interps.c (current_interp_set_logging): Remove "return".
10060
10061 2017-02-09 Gary Benson <gbenson@redhat.com>
10062
10063 * symtab.c (add_symtab_completions): Prevent NULL pointer
10064 dereference.
10065
10066 2017-02-08 Pedro Alves <palves@redhat.com>
10067
10068 * interps.c (interp::interp): Remove reference to quiet_p.
10069 (interp_set): Make static. Remove dead "Switching to" output
10070 code.
10071 (interp_quiet_p, interp_set_quiet): Delete.
10072 (interpreter_exec_cmd): Don't set the interpreter quiet.
10073 * interps.h (interp_quiet_p): Make static.
10074 (class interp) <quiet_p>: Remove field
10075
10076 2017-02-08 Jerome Guitton <guitton@adacore.com>
10077
10078 * cli/cli-decode.c (find_command_name_length): Make it extern.
10079 * cli/cli-decode.h (find_command_name_length): Declare.
10080 * cli/cli-script.c (command_name_equals, line_first_arg):
10081 New functions.
10082 (process_next_line): Use cli-decode to parse command names.
10083 (build_command_line): Make args a constant pointer.
10084
10085 2017-02-08 Jerome Guitton <guitton@adacore.com>
10086
10087 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10088 Remove case-insensitive search.
10089
10090 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10091
10092 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10093 at the end of the line. Avoids an ARI warning.
10094
10095 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10096
10097 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10098 rdseed instructions.
10099 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10100
10101 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10102
10103 PR tdep/20936
10104 Provide and use sparc32 and sparc64 target description XML files.
10105 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10106 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10107 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10108 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10109 * features/sparc/sparc32-solaris.xml: New file.
10110 * features/sparc/sparc64-solaris.xml: New file.
10111 * features/sparc/sparc32-solaris.c: Generated.
10112 * features/sparc/sparc64-solaris.c: Generated.
10113 * sparc-tdep.h: Account for differences in target descriptions.
10114 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10115 (sparc32_register_type): Use target provided registers.
10116 (validate_tdesc_registers): New function.
10117 (sparc32_gdbarch_init): Use tdesc_has_registers.
10118 Set pseudoregister functions.
10119 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10120 (sparc64_register_type): Use target provided registers.
10121 (sparc64_init_abi): Set pseudoregister functions.
10122
10123 2017-02-03 Tom Tromey <tom@tromey.com>
10124
10125 PR rust/21097:
10126 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10127 with a single member.
10128
10129 2017-02-03 Pedro Alves <palves@redhat.com>
10130
10131 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10132 (cli_interp_base::~cli_interp_base): New.
10133 (cli_interp): New struct.
10134 (as_cli_interp): Cast the interp itself to cli_interp.
10135 (cli_interpreter_pre_command_loop): Rename to ...
10136 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10137 parameter.
10138 (cli_interpreter_init): Rename to ...
10139 (cli_interp::init): ... this. Remove 'self' parameter. Use
10140 boolean. Make extern.
10141 (cli_interpreter_resume): Rename to ...
10142 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10143 extern.
10144 (cli_interpreter_suspend): Rename to ...
10145 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10146 extern.
10147 (cli_interpreter_exec): Rename to ...
10148 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10149 extern.
10150 (cli_interpreter_supports_command_editing): Rename to ...
10151 (cli_interp_base::supports_command_editing): ... this. Remove
10152 'interp' parameter. Make extern.
10153 (cli_ui_out): Rename to ...
10154 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10155 Make extern.
10156 (cli_set_logging): Rename to ...
10157 (cli_interp_base::set_logging): ... this. Remove 'interp'
10158 parameter. Make extern.
10159 (cli_interp_procs): Delete.
10160 (cli_interp_factory): Adjust to use "new".
10161 * cli/cli-interp.h: Include "interps.h".
10162 (struct cli_interp_base): New struct.
10163 * interps.c (struct interp): Delete. Fields moved to interps.h.
10164 (interp_new): Delete.
10165 (interp::interp, interp::~interp): New.
10166 (interp_set): Use bool, and return void. Assume the interpreter
10167 has suspend, init and resume methods, and that the all return
10168 void.
10169 (set_top_level_interpreter): interp_set returns void.
10170 (interp_ui_out): Adapt.
10171 (current_interp_set_logging): Adapt.
10172 (interp_data): Delete.
10173 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10174 (interp_exec): Adapt.
10175 (top_level_interpreter_data): Delete.
10176 * interps.h (interp_init_ftype, interp_resume_ftype)
10177 (interp_suspend_ftype, interp_exec_ftype)
10178 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10179 (class interp): New.
10180 (interp_new): Delete.
10181 (interp_set): Now returns void. Use bool.
10182 (interp_data, top_level_interpreter_data): Delete.
10183 * mi/mi-common.h: Include interps.h.
10184 (class mi_interp): Inherit from interp. Define a ctor. Declare
10185 init, resume, suspect, exec, interp_ui_out, set_logging and
10186 pre_command_loop methods.
10187 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10188 (mi_interpreter_init): Rename to ...
10189 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10190 bool, return void and make extern. Adjust.
10191 (mi_interpreter_resume): ... Rename to ...
10192 (mi_interp::resume): ... this. Remove the 'data' parameter,
10193 return void and make extern. Adjust.
10194 (mi_interpreter_suspend): ... Rename to ...
10195 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10196 return void and make extern. Adjust.
10197 (mi_interpreter_exec): ... Rename to ...
10198 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10199 extern. Adjust.
10200 (mi_interpreter_pre_command_loop): ... Rename to ...
10201 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10202 parameter and make extern.
10203 (mi_on_normal_stop_1): Adjust.
10204 (mi_ui_out): Rename to ...
10205 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10206 parameter and make extern. Adjust.
10207 (mi_set_logging): Rename to ...
10208 (mi_interp::set_logging): ... this. Remove the 'interp'
10209 parameter and make extern. Adjust.
10210 (mi_interp_procs): Delete.
10211 (mi_interp_factory): Adjust to use 'new'.
10212 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10213 (mi_print_exception, mi_execute_command, mi_load_progress):
10214 Adjust.
10215 * tui/tui-interp.c (tui_interp): New class.
10216 (as_tui_interp): Return a tui_interp pointer.
10217 (tui_on_normal_stop, tui_on_signal_received)
10218 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10219 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10220 to use interp::interp_ui_out.
10221 (tui_init): Rename to ...
10222 (tui_interp::init): ... this. Remove the 'self' parameter, use
10223 bool, return void and make extern. Adjust.
10224 (tui_resume): Rename to ...
10225 (tui_interp::resume): ... this. Remove the 'data' parameter,
10226 return void and make extern. Adjust.
10227 (tui_suspend): Rename to ...
10228 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10229 return void and make extern. Adjust.
10230 (tui_ui_out): Rename to ...
10231 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10232 parameter, and make extern. Adjust.
10233 (tui_exec): Rename to ...
10234 (tui_interp::exec): ... this. Remove the 'data' parameter and
10235 make extern.
10236 (tui_interp_procs): Delete.
10237 (tui_interp_factory): Use "new".
10238
10239 2017-02-02 Tom Tromey <tom@tromey.com>
10240
10241 * rust-exp.y (ends_raw_string, space_then_number)
10242 (rust_identifier_start_p): Return bool.
10243 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10244 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10245 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10246 (rust_chartype_p): Return bool.
10247 (val_print_struct, rust_print_struct_def, rust_print_type):
10248 Update.
10249 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10250 Return bool.
10251
10252 2017-02-02 Tom Tromey <tom@tromey.com>
10253
10254 * rust-lang.c: Reindent.
10255
10256 2017-02-02 Tom Tromey <tom@tromey.com>
10257
10258 * rust-lang.h (rust_crate_for_block): Update.
10259 * rust-lang.c (rust_crate_for_block): Return std::string.
10260 (rust_get_disr_info): Use std:;string, not
10261 gdb::unique_xmalloc_ptr.
10262 * rust-exp.y (crate_name): Update.
10263
10264 2017-02-02 Pedro Alves <palves@redhat.com>
10265
10266 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10267 field out of gdb_disassembler_test and make it static.
10268
10269 2017-02-02 Pedro Alves <palves@redhat.com>
10270
10271 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10272 mi1_interp and mi_interp fields.
10273
10274 2017-02-02 Pedro Alves <palves@redhat.com>
10275
10276 * cli/cli-interp.c (struct saved_output_files, saved_output):
10277 Moved from cli/cli-logging.c.
10278 (cli_set_logging): New function.
10279 (cli_interp_procs): Install cli_set_logging.
10280 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10281 Declare.
10282 * cli/cli-logging.c (struct saved_output_files, saved_output):
10283 Moved to cli/cli-interp.c.
10284 (pop_output_files): Don't save outputs here.
10285 (make_logging_output): New function.
10286 (handle_redirections): Don't build tee nor save previous outputs
10287 here.
10288 * interps.c (current_interp_set_logging): Change prototype.
10289 Assume there's always a set_logging_proc method installed.
10290 * interps.h (interp_set_logging_ftype): Change prototype.
10291 (current_interp_set_logging): Change prototype and adjust comment.
10292 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10293 use make_logging_output.
10294 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10295 2017-02-02 Pedro Alves <palves@redhat.com>
10296
10297 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10298 from ...
10299 (set_logging_overwrite): ... here.
10300 (logging_no_redirect_file): Delete.
10301 (set_logging_redirect): Don't handle redirection on the fly.
10302 Instead warn that "logging off" / "logging on" is necessary.
10303 (pop_output_files): Delete references to logging_no_redirect_file.
10304 (show_logging_command): Always speak in terms of what will happen
10305 once logging is reenabled.
10306
10307 2017-02-02 Pedro Alves <palves@redhat.com>
10308
10309 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10310
10311 2017-02-02 Pedro Alves <palves@redhat.com>
10312
10313 * disasm.c (gdb_pretty_print_insn): Rename to ...
10314 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10315 Remove gdbarch parameter. Adapt to clear the object's buffers
10316 instead of allocating new buffers, and to print using the object's
10317 gdb_disassembler instead of calling gdb_print_insn.
10318 (dump_insns): Use gdb_pretty_print_disassembler.
10319 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10320 (gdb_pretty_print_disassembler): New class.
10321 * record-btrace.c (btrace_insn_history): Use
10322 gdb_pretty_print_disassembler.
10323
10324 2017-02-02 Pedro Alves <palves@redhat.com>
10325
10326 * ada-lang.c (type_as_string): Use string_file.
10327 * ada-valprint.c (ada_print_floating): Use string_file.
10328 * ada-varobj.c (ada_varobj_scalar_image)
10329 (ada_varobj_get_value_image): Use string_file.
10330 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10331 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10332 * breakpoint.c (update_inserted_breakpoint_locations)
10333 (insert_breakpoint_locations, reattach_breakpoints)
10334 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10335 (print_it_watchpoint): Use string_file.
10336 (save_breakpoints): Use stdio_file.
10337 * c-exp.y (oper): Use string_file.
10338 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10339 tee_file.
10340 (pop_output_files): Use delete.
10341 (handle_redirections): Use stdio_file and tee_file.
10342 * cli/cli-setshow.c (do_show_command): Use string_file.
10343 * compile/compile-c-support.c (c_compute_program): Use
10344 string_file.
10345 * compile/compile-c-symbols.c (generate_vla_size): Take a
10346 'string_file &' instead of a 'ui_file *'.
10347 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10348 of a 'ui_file *'. Use string_file.
10349 (generate_c_for_variable_locations): Take a 'string_file &'
10350 instead of a 'ui_file *'.
10351 * compile/compile-internal.h (generate_c_for_for_one_variable):
10352 Take a 'string_file &' instead of a 'ui_file *'.
10353 * compile/compile-loc2c.c (push, pushf, unary, binary)
10354 (print_label, pushf_register_address, pushf_register)
10355 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10356 'ui_file *'. Adjust.
10357 * compile/compile.c (compile_to_object): Use string_file.
10358 * compile/compile.h (compile_dwarf_expr_to_c)
10359 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10360 'ui_file *'.
10361 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10362 (replace_typedefs_qualified_name): Use string_file and
10363 obstack_copy0.
10364 * disasm.c (gdb_pretty_print_insn): Use string_file.
10365 (gdb_disassembly): Adjust reference the null_stream global.
10366 (do_ui_file_delete): Delete.
10367 (gdb_insn_length): Use null_stream.
10368 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10369 * dwarf2loc.c (dwarf2_compile_property_to_c)
10370 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10371 'string_file &' instead of a 'ui_file *'.
10372 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10373 * dwarf2read.c (do_ui_file_peek_last): Delete.
10374 (dwarf2_compute_name): Use string_file.
10375 * event-top.c (gdb_setup_readline): Use stdio_file.
10376 * gdbarch.sh (verify_gdbarch): Use string_file.
10377 * gdbtypes.c (safe_parse_type): Use null_stream.
10378 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10379 string_file.
10380 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10381 'string_file *' instead of a 'ui_file *'.
10382 (gdbscm_arch_disassemble): Use string_file.
10383 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10384 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10385 inherits from ui_file.
10386 (ioscm_file_port_delete, ioscm_file_port_rewind)
10387 (ioscm_file_port_put): Delete.
10388 (ioscm_file_port_write): Rename to ...
10389 (ioscm_file_port::write): ... this. Remove file_port_magic
10390 checks.
10391 (ioscm_file_port_new): Delete.
10392 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10393 ui_file_up.
10394 * guile/scm-type.c (tyscm_type_name): Use string_file.
10395 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10396 Use string_file.
10397 * infcmd.c (print_return_value_1): Use string_file.
10398 * infrun.c (print_target_wait_results): Use string_file.
10399 * language.c (add_language): Use string_file.
10400 * location.c (explicit_to_string_internal): Use string_file.
10401 * main.c (captured_main_1): Use null_file.
10402 * maint.c (maintenance_print_architecture): Use stdio_file.
10403 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10404 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10405 event_channel>: Change type to mi_console_file pointer.
10406 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10407 (mi_console_file_delete): Delete.
10408 (struct mi_console_file): Delete.
10409 (mi_console_file_magic): Delete.
10410 (mi_console_file_new): Delete.
10411 (mi_console_file::mi_console_file): New.
10412 (mi_console_file_delete): Delete.
10413 (mi_console_file_fputs): Delete.
10414 (mi_console_file::write): New.
10415 (mi_console_raw_packet): Delete.
10416 (mi_console_file::flush): New.
10417 (mi_console_file_flush): Delete.
10418 (mi_console_set_raw): Rename to ...
10419 (mi_console_file::set_raw): ... this.
10420 * mi/mi-console.h (class mi_console_file): New class.
10421 (mi_console_file_new, mi_console_set_raw): Delete.
10422 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10423 (mi_set_logging): Use delete and tee_file. Adjust.
10424 * mi/mi-main.c (output_register): Use string_file.
10425 (mi_cmd_data_evaluate_expression): Use string_file.
10426 (mi_cmd_data_read_memory): Use string_file.
10427 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10428 * mi/mi-out.c (mi_ui_out::main_stream): New.
10429 (mi_ui_out::rewind): Use main_stream and
10430 string_file.
10431 (mi_ui_out::put): Use main_stream and string_file.
10432 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10433 Allocate a 'string_file' instead.
10434 (mi_out_new): Don't allocate a mem_fileopen stream here.
10435 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10436 (mi_ui_out::main_stream): Declare method.
10437 * printcmd.c (eval_command): Use string_file.
10438 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10439 * python/py-arch.c (archpy_disassemble): Use string_file.
10440 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10441 * python/py-frame.c (frapy_str): Use string_file.
10442 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10443 Use string_file.
10444 * python/py-type.c (typy_str): Use string_file.
10445 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10446 * python/py-value.c (valpy_str): Use string_file.
10447 * record-btrace.c (btrace_insn_history): Use string_file.
10448 * regcache.c (regcache_print): Use stdio_file.
10449 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10450 * remote.c (escape_buffer): Use string_file.
10451 * rust-lang.c (rust_get_disr_info): Use string_file.
10452 * serial.c (serial_open_ops_1): Use stdio_file.
10453 (do_serial_close): Use delete.
10454 * stack.c (print_frame_arg): Use string_file.
10455 (print_frame_args): Remove local mem_fileopen stream, not used.
10456 (print_frame): Use string_file.
10457 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10458 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10459 Take a 'string_file *' instead of a 'ui_file *'.
10460 * top.c (new_ui): Use stdio_file and stderr_file.
10461 (free_ui): Use delete.
10462 (execute_command_to_string): Use string_file.
10463 (quit_confirm): Use string_file.
10464 * tracepoint.c (collection_list::append_exp): Use string_file.
10465 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10466 * tui/tui-file.c: Don't include "ui-file.h".
10467 (enum streamtype, struct tui_stream): Delete.
10468 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10469 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10470 (tui_file::tui_file): New method.
10471 (tui_file_fputs): Delete.
10472 (tui_file_get_strbuf): Delete.
10473 (tui_file::puts): New method.
10474 (tui_file_adjust_strbuf): Delete.
10475 (tui_file_flush): Delete.
10476 (tui_file::flush): New method.
10477 * tui/tui-file.h: Tweak intro comment.
10478 Include ui-file.h.
10479 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10480 (tui_file_adjust_strbuf): Delete declarations.
10481 (class tui_file): New class.
10482 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10483 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10484 (tui_register_format): Use string_stream.
10485 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10486 (tui_get_function_from_frame): Use string_file.
10487 * typeprint.c (type_to_string): Use string_file.
10488 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10489 (null_stream): New global.
10490 (ui_file_delete): Delete.
10491 (ui_file::ui_file): New.
10492 (null_file_isatty): Delete.
10493 (ui_file::~ui_file): New.
10494 (null_file_rewind): Delete.
10495 (ui_file::printf): New.
10496 (null_file_put): Delete.
10497 (null_file_flush): Delete.
10498 (ui_file::putstr): New.
10499 (null_file_write): Delete.
10500 (ui_file::putstrn): New.
10501 (null_file_read): Delete.
10502 (ui_file::putc): New.
10503 (null_file_fputs): Delete.
10504 (null_file_write_async_safe): Delete.
10505 (ui_file::vprintf): New.
10506 (null_file_delete): Delete.
10507 (null_file::write): New.
10508 (null_file_fseek): Delete.
10509 (null_file::puts): New.
10510 (ui_file_data): Delete.
10511 (null_file::write_async_safe): New.
10512 (gdb_flush, ui_file_isatty): Adjust.
10513 (ui_file_put, ui_file_rewind): Delete.
10514 (ui_file_write): Adjust.
10515 (ui_file_write_for_put): Delete.
10516 (ui_file_write_async_safe, ui_file_read): Adjust.
10517 (ui_file_fseek): Delete.
10518 (fputs_unfiltered): Adjust.
10519 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10520 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10521 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10522 (set_ui_file_data): Delete.
10523 (string_file::~string_file, string_file::write)
10524 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10525 (do_ui_file_as_string, ui_file_as_string): Delete.
10526 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10527 (struct mem_file): Delete.
10528 (mem_file_new): Delete.
10529 (stdio_file::stdio_file): New.
10530 (mem_file_delete): Delete.
10531 (stdio_file::stdio_file): New.
10532 (mem_fileopen): Delete.
10533 (stdio_file::~stdio_file): New.
10534 (mem_file_rewind): Delete.
10535 (stdio_file::set_stream): New.
10536 (mem_file_put): Delete.
10537 (stdio_file::open): New.
10538 (mem_file_write): Delete.
10539 (stdio_file_magic, struct stdio_file): Delete.
10540 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10541 (stdio_file::flush): New.
10542 (stdio_file_read): Rename to ...
10543 (stdio_file::read): ... this. Adjust.
10544 (stdio_file_write): Rename to ...
10545 (stdio_file::write): ... this. Adjust.
10546 (stdio_file_write_async_safe): Rename to ...
10547 (stdio_file::write_async_safe) ... this. Adjust.
10548 (stdio_file_fputs): Rename to ...
10549 (stdio_file::puts) ... this. Adjust.
10550 (stdio_file_isatty): Delete.
10551 (stdio_file_fseek): Delete.
10552 (stdio_file::isatty): New.
10553 (stderr_file_write): Rename to ...
10554 (stderr_file::write) ... this. Adjust.
10555 (stderr_file_fputs): Rename to ...
10556 (stderr_file::puts) ... this. Adjust.
10557 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10558 (stderr_file::stderr_file): New.
10559 (tee_file_magic): Delete.
10560 (struct tee_file): Delete.
10561 (tee_file::tee_file): New.
10562 (tee_file_new): Delete.
10563 (tee_file::~tee_file): New.
10564 (tee_file_delete): Delete.
10565 (tee_file_flush): Rename to ...
10566 (tee_file::flush): ... this. Adjust.
10567 (tee_file_write): Rename to ...
10568 (tee_file::write): ... this. Adjust.
10569 (tee_file::write_async_safe): New.
10570 (tee_file_fputs): Rename to ...
10571 (tee_file::puts): ... this. Adjust.
10572 (tee_file_isatty): Rename to ...
10573 (tee_file::isatty): ... this. Adjust.
10574 * ui-file.h (struct obstack, struct ui_file): Don't
10575 forward-declare.
10576 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10577 (ui_file_write_ftype)
10578 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10579 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10580 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10581 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10582 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10583 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10584 (set_ui_file_fseek): Delete.
10585 (ui_file_data, ui_file_delete, ui_file_rewind)
10586 (struct ui_file): New.
10587 (ui_file_up): New.
10588 (class null_file): New.
10589 (null_stream): Declare.
10590 (ui_file_write_for_put, ui_file_put): Delete.
10591 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10592 Delete.
10593 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10594 (gdb_fopen, tee_file_new): Delete.
10595 (struct string_file): New.
10596 (struct stdio_file): New.
10597 (stdio_file_up): New.
10598 (struct stderr_file): New.
10599 (class tee_file): New.
10600 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10601 of a 'ui_file *'. Adjust.
10602 * ui-out.h (class ui_out) <field_stream>: Likewise.
10603 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10604 (null_stream): Delete.
10605 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10606 Adjust.
10607 * utils.h (struct ui_file): Delete forward declaration..
10608 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10609 (error_stream): Take a 'string_file &' instead of a
10610 'ui_file *'.
10611 * varobj.c (varobj_value_get_print_value): Use string_file.
10612 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10613 * gdbarch.c: Regenerate.
10614
10615 2017-02-02 Pedro Alves <palves@redhat.com>
10616
10617 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10618 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10619 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10620 Adjust to call gdb_print_insn instead of
10621 gdb_disassembler::print_insn.
10622 (dump_insns, do_mixed_source_and_assembly_deprecated)
10623 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10624 'gdbarch' parameter. Remove gdb_disassembler parameter.
10625 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10626 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10627 declaration.
10628 (gdb_pretty_print_insn): Re-add declaration.
10629 * record-btrace.c (btrace_insn_history): Don't allocate a
10630 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10631
10632 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10633
10634 * disasm.h (gdb_disassembly): Remove file_string parameter.
10635 * disasm.c (gdb_disassembly): Likewise.
10636 * cli/cli-cmds.c (print_disassembly): Adapt.
10637 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10638 * stack.c (do_gdb_disassembly): Likewise.
10639
10640 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10641
10642 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10643 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10644 targets. And if the implicit value is longer than needed, extract
10645 the first bytes instead of the "least significant" ones.
10646
10647 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10648
10649 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10650 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10651 (btrace_fetch): Assert can_access_registers_ptid.
10652 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10653 validate_registers_access.
10654
10655 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10656
10657 * gdbthread.h (can_access_registers_ptid): New.
10658 * thread.c (can_access_registers_ptid): New.
10659
10660 2017-02-01 Pedro Alves <palves@redhat.com>
10661
10662 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10663
10664 2017-01-31 Pedro Alves <palves@redhat.com>
10665
10666 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10667 Fix typos.
10668
10669 2017-01-31 Pedro Alves <palves@redhat.com>
10670
10671 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10672 not used.
10673
10674 2017-01-31 Pedro Alves <palves@redhat.com>
10675
10676 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10677
10678 2017-01-31 Pedro Alves <palves@redhat.com>
10679
10680 * common/scoped_restore.h
10681 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10682 change the value's parameter type to T2.
10683 (make_scoped_restore): Likewise.
10684
10685 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10686 Richard Henderson <rth@redhat.com>
10687
10688 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10689 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10690 GS_BASE for older kernels.
10691 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10692 GS_BASE for older kernels.
10693 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10694 and GS_BASE to the offset table.
10695 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10696 system register group.
10697 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10698 for older kernels.
10699 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10700 amd64 ABI.
10701 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10702 AMD64_GSBASE_REGNUM.
10703 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10704 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10705 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10706 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10707 i386/64bit-segments.xml in those rules.
10708 * features/i386/64bit-segments.xml: New file.
10709 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10710 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10711 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10712 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10713 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10714 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10715 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10716 * features/i386/amd64-avx-linux.c: Regenerated.
10717 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10718 * features/i386/amd64-avx-mpx.c: Regenerated.
10719 * features/i386/amd64-avx512-linux.c: Regenerated.
10720 * features/i386/amd64-linux.c: Regenerated.
10721 * features/i386/amd64-mpx-linux.c: Regenerated.
10722 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10723 * features/i386/i386-avx-mpx.c: Regenerated.
10724 * features/i386/x32-avx-linux.c: Regenerated.
10725 * features/i386/x32-avx512-linux.c: Regenerated.
10726 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10727 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10728 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10729 * regformats/i386/amd64-linux.dat: Regenerated.
10730 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10731 * regformats/i386/x32-avx-linux.dat: Regenerated.
10732 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10733 * regformats/i386/x32-linux.dat: Regenerated.
10734
10735 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10736
10737 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10738 Set to AMD64_NUM_REGS.
10739
10740 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10741
10742 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10743 that checks validity of a register number.
10744
10745 2017-01-27 Kees Cook <keescook@google.com>
10746
10747 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10748 fetch_fpregs if target has fpa registers.
10749 (arm_linux_store_inferior_registers): Call store_fpregs if target
10750 has fpa registers.
10751
10752 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10753
10754 * cris-tdep.c (cris_gdbarch_init): Remove check for
10755 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10756
10757 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10758
10759 * corelow.c (get_core_register_section): Check for regset
10760 existence before checking for REGSET_VARIABLE_SIZE.
10761
10762 2017-01-26 Yao Qi <yao.qi@linaro.org>
10763 Pedro Alves <palves@redhat.com>
10764
10765 PR gdb/20939
10766 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10767 call memory_error, save memaddr instead.
10768 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10769 negative, cal memory_error.
10770 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10771
10772 2017-01-26 Yao Qi <yao.qi@linaro.org>
10773
10774 * disasm-selftests.c (memory_error_test): New function.
10775 (_initialize_disasm_selftests): Register memory_error_test.
10776
10777 2017-01-26 Yao Qi <yao.qi@linaro.org>
10778
10779 * Makefile.in (SFILES): Add disasm-selftests.c and
10780 selftest-arch.c.
10781 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10782 * disasm-selftests.c: New file.
10783 * selftest-arch.c: New file.
10784 * selftest-arch.h: New file.
10785
10786 2017-01-26 Yao Qi <yao.qi@linaro.org>
10787
10788 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10789 to bfd_arch_mep. Don't return 0 if section is not
10790 found. Call print_insn_mep.
10791
10792 2017-01-26 Pedro Alves <palves@redhat.com>
10793 Yao Qi <yao.qi@linaro.org>
10794
10795 * arm-tdep.c: Include "disasm.h".
10796 (gdb_print_insn_arm): Update code to get gdbarch.
10797 * disasm.c (dis_asm_read_memory): Change it to
10798 gdb_disassembler::dis_asm_read_memory.
10799 (dis_asm_memory_error): Likewise.
10800 (dis_asm_print_address): Likewise.
10801 (gdb_pretty_print_insn): Change it to
10802 gdb_disassembler::pretty_print_insn.
10803 (dump_insns): Add one argument gdb_disassemlber. All
10804 callers updated.
10805 (do_mixed_source_and_assembly_deprecated): Likewise.
10806 (do_mixed_source_and_assembly): Likewise.
10807 (do_assembly_only): Likewise.
10808 (gdb_disassembler::gdb_disassembler): New.
10809 (gdb_disassembler::print_insn): New.
10810 * disasm.h (class gdb_disassembler): New.
10811 (gdb_pretty_print_insn): Remove declaration.
10812 (gdb_disassemble_info): Likewise.
10813 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10814 (gdbscm_disasm_read_memory_worker): Update.
10815 (gdbscm_disasm_read_memory): Update.
10816 (gdbscm_disasm_memory_error): Remove.
10817 (gdbscm_disasm_print_address): Remove.
10818 (gdbscm_disassembler::gdbscm_disassembler): New.
10819 (gdbscm_print_insn_from_port): Update.
10820 * mips-tdep.c: Include disasm.h.
10821 (gdb_print_insn_mips): Update code to get gdbarch.
10822 * record-btrace.c (btrace_insn_history): Update.
10823 * spu-tdep.c: Include disasm.h.
10824 (struct spu_dis_asm_data): Remove.
10825 (struct spu_dis_asm_info): New.
10826 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10827 SPU id.
10828 (gdb_print_insn_spu): Cast disassemble_info to
10829 spu_dis_asm_info.
10830
10831 2017-01-26 Yao Qi <yao.qi@linaro.org>
10832
10833 * disasm.c (do_ui_file_delete): Delete.
10834 (gdb_insn_length): Move code creating stream to ...
10835 * utils.c (null_stream): ... here. New function.
10836 * utils.h (null_stream): Declare.
10837
10838 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10839
10840 * python/py-inferior.c (find_thread_object): Return directly
10841 from the loop. Remove "found" variable.
10842
10843 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10844
10845 GDB 7.12.1 released.
10846
10847 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10848
10849 * python/py-function.c (fnpy_call): Reorder declarations to have
10850 the gdbpy_enter object declared first.
10851 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10852
10853 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10854
10855 PR python/21068
10856 * python/python-internal.h (PyMem_RawMalloc): Define for
10857 Python < 3.4.
10858 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10859 PyMem_RawMalloc instead of PyMem_Malloc.
10860
10861 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10862 Luis Machado <lgustavo@codesourcery.com>
10863
10864 * NEWS (New commands): Mention flash-erase.
10865 (New MI commands): Mention target-flash-erase.
10866 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10867 command.
10868 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10869 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10870 * target.c (flash_erase_command): New function.
10871 (initialize_targets): Add new flash-erase command.
10872 * target.h (flash_erase_command): New declaration.
10873
10874 2017-01-20 Joel Brobecker <brobecker@adacore.com>
10875
10876 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10877 HAVE_SYS_PROCFS_H is defined.
10878
10879 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10880
10881 * remote.c (struct cached_reg): Change data into a pointer.
10882 * (stop_reply_dtr): Free data pointers before deleting vector.
10883 (process_stop_reply): Likewise.
10884 (remote_parse_stop_reply): Allocate space for data
10885
10886 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10887
10888 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10889 MAX_REGISTER_SIZE.
10890 (amd64_pseudo_register_read_value): Likewise.
10891 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10892 (store_register_using_P): Likewise.
10893 * regcache.c (regcache_xfer_part): Likewise.
10894
10895 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10896
10897 Split real and pseudo registers.
10898 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10899 (sparc32_pseudo_regnum): New enum.
10900 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10901 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10902 (SPARC32_CP0_REGISTERS): New macro.
10903 (sparc32_pseudo_register_name): New function.
10904 (sparc32_register_name): Use sparc32_pseudo_register_name.
10905 (sparc32_pseudo_register_type): New function.
10906 (sparc32_register_type): Use sparc32_pseudo_register_type.
10907 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10908 pseudo register numbers.
10909 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10910 (SPARC64_CP0_REGISTERS): New macro.
10911 (sparc64_pseudo_register_name): New function.
10912 (sparc64_register_name): Use sparc64_pseudo_register_name.
10913 (sparc64_pseudo_register_type): New function.
10914 (sparc64_register_type): Use sparc64_pseudo_register_type.
10915 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10916 pseudo register numbers.
10917 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10918 sparc64_store_arguments): Handle pseudo register numbers.
10919
10920 2017-01-13 Yao Qi <yao.qi@linaro.org>
10921
10922 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10923 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10924 output.
10925 (getpkt_or_notif_sane_1): Likewise.
10926
10927 2017-01-13 Yao Qi <yao.qi@linaro.org>
10928
10929 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10930 of CC. Pass "-x c++-header" instead of "-x c".
10931
10932 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10933
10934 * remote.c (remote_can_async_p): Update comment.
10935
10936 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10937
10938 * linux-nat.c (linux_nat_can_async_p): Update comment.
10939
10940 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10941
10942 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10943
10944 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10945
10946 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10947
10948 2017-01-10 Tom Tromey <tom@tromey.com>
10949
10950 * python/py-type.c (typy_legacy_template_argument): Update.
10951 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10952 ~demangle_parse_info): Declare new members.
10953 (cp_demangled_name_to_comp): Return unique_ptr.
10954 (cp_demangled_name_parse_free)
10955 (make_cleanup_cp_demangled_name_parse_free)
10956 (cp_new_demangle_parse_info): Remove.
10957 * cp-support.c (do_demangled_name_parse_free_cleanup)
10958 (make_cleanup_cp_demangled_name_parse_free): Remove.
10959 (inspect_type, cp_canonicalize_string_full)
10960 (cp_canonicalize_string): Update.
10961 (mangled_name_to_comp): Change return type.
10962 (cp_class_name_from_physname, method_name_from_physname)
10963 (cp_func_name, cp_remove_params): Update.
10964 * cp-name-parser.y (demangle_parse_info): New constructor, from
10965 cp_new_demangle_parse_info.
10966 (~demangle_parse_info): New destructor, from
10967 cp_demangled_name_parse_free.
10968 (cp_merge_demangle_parse_infos): Update.
10969 (cp_demangled_name_to_comp): Change return type.
10970
10971 2017-01-10 Tom Tromey <tom@tromey.com>
10972
10973 * top.c (prevent_dont_repeat): Change return type.
10974 * python/python.c (execute_gdb_command): Use std::string.
10975 Update.
10976 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10977 * command.h (prevent_dont_repeat): Change return type.
10978 * breakpoint.c (bpstat_do_actions_1): Update.
10979
10980 2017-01-10 Tom Tromey <tom@tromey.com>
10981
10982 * value.h (scoped_value_mark::~scoped_value_mark): Call
10983 free_to_mark.
10984 (scoped_value_mark::free_to_mark): New method.
10985 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10986 scoped_value_mark.
10987
10988 2017-01-10 Tom Tromey <tom@tromey.com>
10989
10990 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10991 (valpy_reference_value, valpy_const_value, valpy_get_address)
10992 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10993 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10994 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10995 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10996 scoped_value_mark.
10997 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10998 * value.h (scoped_value_mark): New class.
10999
11000 2017-01-10 Tom Tromey <tom@tromey.com>
11001
11002 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11003 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11004 * psymtab.c (discard_psymtabs_upto): Remove.
11005 (make_cleanup_discard_psymtabs): Remove.
11006 (struct psymtab_state): Remove.
11007
11008 2017-01-10 Tom Tromey <tom@tromey.com>
11009
11010 * record-full.c (record_full_save_cleanups): Remove.
11011 (record_full_save): Use gdb::unlinker.
11012 * gcore.c (do_bfd_delete_cleanup): Remove.
11013 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11014 cleanups.
11015 * dwarf2read.c (unlink_if_set): Remove.
11016 (write_psymtabs_to_index): Use gdb::unlinker.
11017 * common/gdb_unlinker.h: New file.
11018
11019 2017-01-10 Tom Tromey <tom@tromey.com>
11020
11021 * windows-tdep.c (windows_xfer_shared_library): Update.
11022 * windows-nat.c (windows_make_so): Update.
11023 * utils.h (make_cleanup_bfd_unref): Remove.
11024 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11025 * symfile.h (symfile_bfd_open)
11026 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11027 * symfile.c (read_symbols, symbol_file_add)
11028 (separate_debug_file_exists): Update.
11029 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11030 (generic_load, reread_symbols): Update.
11031 * symfile-mem.c (symbol_file_add_from_memory): Update.
11032 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11033 (spu_symbol_file_add_from_memory): Update.
11034 * solist.h (struct target_so_ops) <bfd_open>: Return
11035 gdb_bfd_ref_ptr.
11036 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11037 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11038 gdb_bfd_ref_ptr.
11039 (solib_map_sections, reload_shared_libraries_1): Update.
11040 * solib-svr4.c (enable_break): Update.
11041 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11042 * solib-frv.c (enable_break2): Update.
11043 * solib-dsbt.c (enable_break): Update.
11044 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11045 gdb_bfd_ref_ptr.
11046 (darwin_solib_get_all_image_info_addr_at_init): Update.
11047 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11048 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11049 * record-full.c (record_full_save): Update.
11050 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11051 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11052 * minidebug.c (find_separate_debug_file_in_section): Return
11053 gdb_bfd_ref_ptr.
11054 * machoread.c (macho_add_oso_symfile): Change abfd to
11055 gdb_bfd_ref_ptr.
11056 (macho_symfile_read_all_oso): Update.
11057 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11058 (macho_symfile_read): Update.
11059 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11060 (jit_bfd_try_read_symtab): Update.
11061 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11062 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11063 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11064 gdb_bfd_ref_ptr.
11065 (gdb_bfd_ref_policy): New struct.
11066 (gdb_bfd_ref_ptr): New typedef.
11067 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11068 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11069 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11070 gdb_bfd_ref_ptr.
11071 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11072 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11073 (gcore_command): Update.
11074 * exec.c (exec_file_attach): Update.
11075 * elfread.c (elf_symfile_read): Update.
11076 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11077 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11078 (open_and_init_dwo_file): Update.
11079 (open_dwp_file): Return gdb_bfd_ref_ptr.
11080 (open_and_init_dwp_file): Update.
11081 * corelow.c (core_open): Update.
11082 * compile/compile-object-load.c (compile_object_load): Update.
11083 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11084 * coffread.c (coff_symfile_read): Update.
11085 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11086 gdb_bfd_ref_ptr. Rename.
11087 (dump_bfd_file, restore_command): Update.
11088 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11089 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11090 (find_separate_debug_file_by_buildid): Update.
11091
11092 2017-01-10 Tom Tromey <tom@tromey.com>
11093
11094 * common/gdb_ref_ptr.h: New file.
11095 * python/py-ref.h (struct gdbpy_ref_policy): New.
11096 (gdbpy_ref): Now a typedef.
11097
11098 2017-01-10 Tom Tromey <tom@tromey.com>
11099
11100 * utils.h (make_cleanup_htab_delete): Don't declare.
11101 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11102 Remove.
11103 * linespec.c (decode_compound_collector): Add constructor,
11104 destructor.
11105 (lookup_prefix_sym): Remove cleanup.
11106 (symtab_collector): Add constructor, destructor.
11107 (collect_symtabs_from_filename): Remove cleanup.
11108 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11109 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11110 Use htab_up.
11111 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11112 * dwarf2read.c (dw2_expand_symtabs_matching)
11113 (dw2_map_symbol_filenames, dwarf_decode_macros)
11114 (write_psymtabs_to_index): Use htab_up.
11115 * dwarf2loc.c (func_verify_no_selftailcall)
11116 (call_site_find_chain_1, func_verify_no_selftailcall)
11117 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11118 std::vector, gdb::unique_xmalloc_ptr.
11119 (call_sitep): Remove typedef.
11120 (dwarf2_locexpr_baton_eval): Remove unused variable.
11121
11122 2017-01-10 Tom Tromey <tom@tromey.com>
11123
11124 * python/python-internal.h (make_cleanup_py_decref)
11125 (make_cleanup_py_xdecref): Don't declare.
11126 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11127 (py_xdecref, make_cleanup_py_xdecref): Remove.
11128
11129 2017-01-10 Tom Tromey <tom@tromey.com>
11130
11131 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11132 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11133
11134 2017-01-10 Tom Tromey <tom@tromey.com>
11135
11136 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11137
11138 2017-01-10 Tom Tromey <tom@tromey.com>
11139
11140 * python/py-utils.c (unicode_to_encoded_string)
11141 (python_string_to_target_string)
11142 (python_string_to_target_python_string)
11143 (python_string_to_host_string, gdbpy_obj_to_string)
11144 (get_addr_from_python): Use gdbpy_ref.
11145
11146 2017-01-10 Tom Tromey <tom@tromey.com>
11147
11148 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11149 gdbpy_ref.
11150
11151 2017-01-10 Tom Tromey <tom@tromey.com>
11152
11153 * python/python.c (eval_python_command, gdbpy_decode_line)
11154 (gdbpy_run_events, gdbpy_start_type_printers)
11155 (gdbpy_apply_type_printers): Use gdbpy_ref.
11156
11157 2017-01-10 Tom Tromey <tom@tromey.com>
11158
11159 * python/py-param.c (get_doc_string, compute_enum_values): Use
11160 gdbpy_ref.
11161
11162 2017-01-10 Tom Tromey <tom@tromey.com>
11163
11164 * python/py-inferior.c (find_thread_object, build_inferior_list):
11165 Use gdbpy_ref.
11166
11167 2017-01-10 Tom Tromey <tom@tromey.com>
11168
11169 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11170
11171 2017-01-10 Tom Tromey <tom@tromey.com>
11172
11173 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11174 gdbpy_ref.
11175
11176 2017-01-10 Tom Tromey <tom@tromey.com>
11177
11178 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11179 extra incref.
11180 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11181 Use gdbpy_ref.
11182
11183 2017-01-10 Tom Tromey <tom@tromey.com>
11184
11185 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11186 gdbpy_ref.
11187
11188 2017-01-10 Tom Tromey <tom@tromey.com>
11189
11190 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11191 decref results of PyArg_ParseTupleAndKeywords.
11192
11193 2017-01-10 Tom Tromey <tom@tromey.com>
11194
11195 * python/python.c (python_run_simple_file): Use
11196 unique_xmalloc_ptr, gdbpy_ref.
11197
11198 2017-01-10 Tom Tromey <tom@tromey.com>
11199
11200 * python/py-prettyprint.c (print_stack_unless_memory_error)
11201 (print_string_repr, print_children): Use gdbpy_ref.
11202 (dummy_python_frame): New class.
11203 (dummy_python_frame::dummy_python_frame): Rename from
11204 push_dummy_python_frame.
11205 (py_restore_tstate): Remove.
11206
11207 2017-01-10 Tom Tromey <tom@tromey.com>
11208
11209 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11210
11211 2017-01-10 Tom Tromey <tom@tromey.com>
11212
11213 * python/python.c (ensure_python_env, restore_python_env):
11214 Remove.
11215 * python/python-internal.h (ensure_python_env): Don't declare.
11216 * varobj.h (varobj_ensure_python_env): Don't declare.
11217 * varobj.c (varobj_ensure_python_env): Remove.
11218
11219 2017-01-10 Tom Tromey <tom@tromey.com>
11220
11221 * varobj.c (varobj_value_get_print_value): Use
11222 gdbpy_enter_varobj.
11223
11224 2017-01-10 Tom Tromey <tom@tromey.com>
11225
11226 * python/py-prettyprint.c (print_string_repr, print_children):
11227 Update.
11228 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11229 of "encoding".
11230 * varobj.c (varobj_value_get_print_value): Update.
11231 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11232
11233 2017-01-10 Tom Tromey <tom@tromey.com>
11234
11235 * varobj.c (varobj_get_display_hint)
11236 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11237 (varobj_set_visualizer, free_variable): Use
11238 gdbpy_enter_varobj.
11239
11240 2017-01-10 Tom Tromey <tom@tromey.com>
11241
11242 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11243 (do_finish_initialization): New function. Use gdbpy_ref.
11244 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11245 do_finish_initialization.
11246
11247 2017-01-10 Tom Tromey <tom@tromey.com>
11248
11249 * python/py-param.c (get_set_value, get_show_value): Use
11250 gdbpy_enter, gdbpy_ref.
11251
11252 2017-01-10 Tom Tromey <tom@tromey.com>
11253
11254 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11255
11256 2017-01-10 Tom Tromey <tom@tromey.com>
11257
11258 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11259
11260 2017-01-10 Tom Tromey <tom@tromey.com>
11261
11262 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11263 Use gdbpy_enter_varobj.
11264
11265 2017-01-10 Tom Tromey <tom@tromey.com>
11266
11267 * varobj.c (gdbpy_enter_varobj): New constructor.
11268 * python/python-internal.h (gdbpy_enter_varobj): New class.
11269 * python/py-varobj.c (py_varobj_get_iterator): Use
11270 gdbpy_enter_varobj.
11271
11272 2017-01-10 Tom Tromey <tom@tromey.com>
11273
11274 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11275 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11276 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11277 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11278 unique_xmalloc_ptr.
11279 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11280
11281 2017-01-10 Tom Tromey <tom@tromey.com>
11282
11283 * python/py-xmethods.c (invoke_match_method): Use
11284 gdbpy_ref.
11285
11286 2017-01-10 Tom Tromey <tom@tromey.com>
11287
11288 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11289 gdbpy_enter, gdbpy_ref.
11290
11291 2017-01-10 Tom Tromey <tom@tromey.com>
11292
11293 * python/python.c (python_interactive_command): Use gdbpy_enter.
11294
11295 2017-01-10 Tom Tromey <tom@tromey.com>
11296
11297 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11298 gdbpy_ref.
11299
11300 2017-01-10 Tom Tromey <tom@tromey.com>
11301
11302 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11303 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11304
11305 2017-01-10 Tom Tromey <tom@tromey.com>
11306
11307 * utils.h (htab_deleter): New struct.
11308 (htab_up): New typedef.
11309 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11310 gdbpy_enter, gdbpy_ref, htab_up.
11311
11312 2017-01-10 Tom Tromey <tom@tromey.com>
11313
11314 * python/py-unwind.c (pending_frame_invalidate): Remove.
11315 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11316
11317 2017-01-10 Tom Tromey <tom@tromey.com>
11318
11319 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11320 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11321
11322 2017-01-10 Tom Tromey <tom@tromey.com>
11323
11324 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11325
11326 2017-01-10 Tom Tromey <tom@tromey.com>
11327
11328 * python/python.c (gdbpy_eval_from_control_command)
11329 (gdbpy_source_script, gdbpy_run_events)
11330 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11331 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11332 gdbpy_enter.
11333
11334 2017-01-10 Tom Tromey <tom@tromey.com>
11335
11336 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11337
11338 2017-01-10 Tom Tromey <tom@tromey.com>
11339
11340 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11341
11342 2017-01-10 Tom Tromey <tom@tromey.com>
11343
11344 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11345 (python_on_inferior_call_pre, python_on_inferior_call_post)
11346 (python_on_memory_change, python_on_register_change)
11347 (python_inferior_exit, python_new_objfile, add_thread_object)
11348 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11349
11350 2017-01-10 Tom Tromey <tom@tromey.com>
11351
11352 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11353 (bpfinishpy_handle_exit): Use gdbpy_enter.
11354
11355 2017-01-10 Tom Tromey <tom@tromey.com>
11356
11357 * python/py-cmd.c (cmdpy_destroyer)
11358 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11359 gdbpy_enter.
11360
11361 2017-01-10 Tom Tromey <tom@tromey.com>
11362
11363 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11364 gdbpy_enter.
11365 (gdbpy_breakpoint_has_cond): Likewise.
11366
11367 2017-01-10 Tom Tromey <tom@tromey.com>
11368
11369 * python/python.c (gdbpy_enter): New constructor.
11370 (~gdbpy_enter): New destructor.
11371 (restore_python_env, ensure_python_env): Rewrite.
11372 * python/python-internal.h (gdbpy_enter): New class.
11373
11374 2017-01-10 Tom Tromey <tom@tromey.com>
11375
11376 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11377
11378 2017-01-10 Tom Tromey <tom@tromey.com>
11379
11380 * python/py-value.c (value_has_field, get_field_flag)
11381 (get_field_type, valpy_getitem, convert_value_from_python): Use
11382 gdbpy_ref.
11383
11384 2017-01-10 Tom Tromey <tom@tromey.com>
11385
11386 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11387 gdbpy_ref.
11388
11389 2017-01-10 Tom Tromey <tom@tromey.com>
11390
11391 * python/py-prettyprint.c (search_pp_list)
11392 (find_pretty_printer_from_objfiles)
11393 (find_pretty_printer_from_progspace)
11394 (find_pretty_printer_from_gdb, find_pretty_printer)
11395 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11396 gdbpy_ref.
11397
11398 2017-01-10 Tom Tromey <tom@tromey.com>
11399
11400 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11401
11402 2017-01-10 Tom Tromey <tom@tromey.com>
11403
11404 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11405 (ltpy_get_all_source_lines): Use gdbpy_ref.
11406
11407 2017-01-10 Tom Tromey <tom@tromey.com>
11408
11409 * python/py-framefilter.c (extract_sym, extract_value)
11410 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11411 gdbpy_ref.
11412
11413 2017-01-10 Tom Tromey <tom@tromey.com>
11414
11415 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11416
11417 2017-01-10 Tom Tromey <tom@tromey.com>
11418
11419 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11420
11421 2017-01-10 Tom Tromey <tom@tromey.com>
11422
11423 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11424 gdbpy_ref.
11425
11426 2017-01-10 Tom Tromey <tom@tromey.com>
11427
11428 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11429
11430 2017-01-10 Tom Tromey <tom@tromey.com>
11431
11432 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11433 (typy_range): Use gdbpy_ref.
11434
11435 2017-01-10 Tom Tromey <tom@tromey.com>
11436
11437 * python/py-threadevent.c (create_thread_event_object): Use
11438 gdbpy_ref.
11439 * python/py-stopevent.c (create_stop_event_object): Simplify.
11440 (emit_stop_event): Use gdbpy_ref.
11441 * python/py-signalevent.c (create_signal_event_object): Use
11442 gdbpy_ref.
11443 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11444 (emit_new_objfile_event, create_clear_objfiles_event_object)
11445 (emit_clear_objfiles_event): Use gdbpy_ref.
11446 * python/py-infevents.c (create_inferior_call_event_object)
11447 (create_register_changed_event_object)
11448 (create_memory_changed_event_object, emit_inferior_call_event)
11449 (emit_memory_changed_event, emit_register_changed_event): Use
11450 gdbpy_ref.
11451 * python/py-exitedevent.c (create_exited_event_object)
11452 (emit_exited_event): Use gdbpy_ref.
11453 * python/py-event.h (evpy_emit_event): Remove
11454 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11455 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11456 * python/py-continueevent.c (emit_continue_event): Use
11457 gdbpy_ref.
11458 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11459 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11460 gdbpy_ref.
11461 * python/py-bpevent.c (create_breakpoint_event_object): Use
11462 gdbpy_ref.
11463
11464 2017-01-10 Tom Tromey <tom@tromey.com>
11465
11466 * python/py-ref.h: New file.
11467
11468 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11469
11470 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11471 void.
11472 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11473 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11474 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11475 * ui-out.c (ui_out::redirect): Likewise.
11476 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11477 * cli/cli-logging.c (set_logging_redirect): Update call site of
11478 ui_out::redirect.
11479 (handle_redirections): Likewise.
11480 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11481 * top.c (execute_command_to_string): Likewise.
11482 * utils.c (do_ui_out_redirect_pop): Likewise.
11483
11484 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11485
11486 * stack.c (_initialize_stack): Update "frame" command help message.
11487
11488 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11489
11490 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11491
11492 2017-01-06 Yao Qi <yao.qi@linaro.org>
11493
11494 * x86-linux-nat.h: Include gdb_proc_service.h.
11495
11496 2017-01-06 Yao Qi <yao.qi@linaro.org>
11497
11498 * ser-base.h: Include serial.h.
11499
11500 2017-01-06 Yao Qi <yao.qi@linaro.org>
11501
11502 * ppc-linux-tdep.h: Include ppc-tdep.h.
11503
11504 2017-01-06 Yao Qi <yao.qi@linaro.org>
11505
11506 * nat/amd64-linux-siginfo.h: Include signal.h.
11507
11508 2017-01-06 Yao Qi <yao.qi@linaro.org>
11509
11510 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11511
11512 2017-01-06 Yao Qi <yao.qi@linaro.org>
11513
11514 * mi/mi-parse.h: Include mi-cmds.h.
11515
11516 2017-01-06 Yao Qi <yao.qi@linaro.org>
11517
11518 * inf-loop.c: Don't include "target.h".
11519 * inf-loop.h: Include it here.
11520
11521 2017-01-06 Yao Qi <yao.qi@linaro.org>
11522
11523 * dfp.h: Include "dboulest.h" and "expression.h".
11524
11525 2017-01-06 Yao Qi <yao.qi@linaro.org>
11526
11527 * ax-gdb.h: Include "ax.h".
11528
11529 2017-01-06 Yao Qi <yao.qi@linaro.org>
11530
11531 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11532 with nat/gdb_ptrace.h.
11533
11534 2017-01-05 Yao Qi <yao.qi@linaro.org>
11535
11536 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11537 new line.
11538 (mips64_fbsd_sigframe_init): Likewise.
11539
11540 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11541
11542 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11543 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11544
11545 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11546
11547 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11548 * NEWS: Mention new FreeBSD/mips native configuration.
11549 * config/mips/fbsd.mh: New file.
11550 * configure.host: Add mips*-*-freebsd*.
11551 * mips-fbsd-nat.c: New file.
11552
11553 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11554
11555 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11556 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11557 * NEWS: Mention new FreeBSD/mips target.
11558 * configure.tgt: Add mips*-*-freebsd*.
11559 * mips-fbsd-tdep.c: New file.
11560 * mips-fbsd-tdep.h: New file.
11561
11562 2017-01-04 Yao Qi <yao.qi@linaro.org>
11563
11564 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11565 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11566
11567 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11568
11569 Update copyright year range in all GDB files.
11570
11571 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11572
11573 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11574
11575 For older changes see ChangeLog-2016.
11576 \f
11577 Local Variables:
11578 mode: change-log
11579 left-margin: 8
11580 fill-column: 74
11581 version-control: never
11582 coding: utf-8
11583 End:
This page took 0.312666 seconds and 5 git commands to generate.