Constify some commands in target-descriptions.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * target-descriptions.c (unset_tdesc_filename_cmd)
4 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5 Constify.
6
7 2017-09-27 Tom Tromey <tom@tromey.com>
8
9 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
10
11 2017-09-27 Tom Tromey <tom@tromey.com>
12
13 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
14
15 2017-09-27 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-regs.c (tui_reg_command): Constify.
18
19 2017-09-27 Tom Tromey <tom@tromey.com>
20
21 * skip.c (skip_file_command, skip_function_command)
22 (skip_enable_command, skip_disable_command, skip_delete_command):
23 Constify.
24
25 2017-09-27 Tom Tromey <tom@tromey.com>
26
27 * record-btrace.c (cmd_record_btrace_bts_start)
28 (cmd_record_btrace_pt_start): Constify.
29
30 2017-09-27 Tom Tromey <tom@tromey.com>
31
32 * symmisc.c (maintenance_print_symbols)
33 (maintenance_print_msymbols, maintenance_print_objfiles)
34 (maintenance_info_symtabs, maintenance_check_symtabs)
35 (maintenance_expand_symtabs, maintenance_info_line_tables):
36 Constify.
37
38 2017-09-27 Tom Tromey <tom@tromey.com>
39
40 * top.c (new_ui_command): Constify.
41
42 2017-09-27 Tom Tromey <tom@tromey.com>
43
44 * symfile.c (add_symbol_file_command)
45 (remove_symbol_file_command, list_overlays_command)
46 (map_overlay_command, unmap_overlay_command)
47 (overlay_auto_command, overlay_manual_command)
48 (overlay_off_command, overlay_load_command): Constify.
49
50 2017-09-27 Tom Tromey <tom@tromey.com>
51
52 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
53 (info_spu_mailbox_command, info_spu_dma_command)
54 (info_spu_proxydma_command): Constify.
55
56 2017-09-27 Tom Tromey <tom@tromey.com>
57
58 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
59
60 2017-09-27 Tom Tromey <tom@tromey.com>
61
62 * cli/cli-script.c (user_defined_command): Constify.
63
64 2017-09-27 Tom Tromey <tom@tromey.com>
65
66 * cli/cli-dump.c (dump_memory_command, dump_value_command)
67 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
68 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
69 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
70 (dump_binary_value, append_binary_memory, append_binary_value):
71 Constify.
72 (struct dump_context) <func>: Constify.
73 (add_dump_command): Update.
74
75 2017-09-27 Tom Tromey <tom@tromey.com>
76
77 * cli/cli-cmds.c (show_version, show_configuration)
78 (source_command, show_user): Constify.
79
80 2017-09-27 Tom Tromey <tom@tromey.com>
81
82 * target.c (maintenance_print_target_stack): Constify.
83
84 2017-09-27 Tom Tromey <tom@tromey.com>
85
86 * interps.c (interpreter_exec_cmd): Constify.
87
88 2017-09-27 Tom Tromey <tom@tromey.com>
89
90 * record-full.c (cmd_record_full_restore): Constify.
91
92 2017-09-27 Tom Tromey <tom@tromey.com>
93
94 * memattr.c (enable_mem_command, disable_mem_command)
95 (delete_mem_command): Constify.
96
97 2017-09-27 Tom Tromey <tom@tromey.com>
98
99 * value.c (show_convenience): Constify.
100
101 2017-09-27 Tom Tromey <tom@tromey.com>
102
103 * gdbcore.h (core_file_command): Update.
104 * corefile.c (core_file_command): Constify.
105
106 2017-09-27 Tom Tromey <tom@tromey.com>
107
108 * user-regs.c (maintenance_print_user_registers): Constify.
109
110 2017-09-27 Tom Tromey <tom@tromey.com>
111
112 * cp-namespace.c (maintenance_cplus_namespace): Constify.
113
114 2017-09-27 Tom Tromey <tom@tromey.com>
115
116 * cp-support.c (first_component_command): Constify.
117
118 2017-09-27 Tom Tromey <tom@tromey.com>
119
120 * psymtab.c (maintenance_print_psymbols)
121 (maintenance_info_psymtabs, maintenance_check_psymtabs):
122 Constify.
123
124 2017-09-27 Tom Tromey <tom@tromey.com>
125
126 * windows-tdep.c (display_tib): Constify.
127
128 2017-09-27 Tom Tromey <tom@tromey.com>
129
130 * linux-fork.c (delete_checkpoint_command)
131 (detach_checkpoint_command): Constify.
132
133 2017-09-27 Tom Tromey <tom@tromey.com>
134
135 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
136
137 2017-09-27 Tom Tromey <tom@tromey.com>
138
139 * arc-tdep.c (dump_arc_instruction_command): Constify.
140
141 2017-09-27 Tom Tromey <tom@tromey.com>
142
143 * valprint.c (set_radix, show_radix): Constify.
144
145 2017-09-27 Tom Tromey <tom@tromey.com>
146
147 * dtrace-probe.c (info_probes_dtrace_command): Constify.
148
149 2017-09-27 Tom Tromey <tom@tromey.com>
150
151 * command.h (not_just_help_class_command): Update.
152 * cli/cli-decode.h (not_just_help_class_command): Update.
153 * cli/cli-decode.c (not_just_help_class_command): Constify.
154
155 2017-09-27 Tom Tromey <tom@tromey.com>
156
157 * gdb_bfd.c (maintenance_info_bfds): Constify.
158
159 2017-09-27 Tom Tromey <tom@tromey.com>
160
161 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
162 overloads.
163 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
164 (do_const_cfunc): New function.
165 (cmd_cfunc_eq): New overload.
166 (cli_user_command_p): Check do_const_cfunc.
167 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
168 const_cfunc.
169 * command.h (add_cmd): Add const overload and no-function
170 overload.
171 (set_cmd_cfunc): Add const overload.
172 (cmd_const_cfunc_ftype): Declare.
173 (cmd_cfunc_eq): Add const overload.
174 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
175 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
176 overload.
177
178 2017-09-27 Tom Tromey <tom@tromey.com>
179
180 * macroexp.c (get_next_token_for_substitution): New function.
181 (substitute_args): Call it. Check for __VA_OPT__.
182
183 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
184 Pedro Alves <palves@redhat.com>
185
186 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
187 producer_is_icc_lt_14.
188 (producer_is_icc_lt_14): New function.
189 (check_producer): Add code for checking version of ICC.
190 (producer_is_icc): Move to producer.c.
191 (read_structure_type): Restrict ICC workaround to ICC<14.
192 * producer.c: Include selftest.h.
193 (producer_is_icc, producer_parsing_tests, _initialize_producer):
194 New functions.
195 * producer.h (producer_is_icc): New declaration.
196
197 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
198
199 * Makefile.in (SFILES): Add producer.c.
200 (COMMON_OBS): Add producer.o
201 * amd64-tdep.c (producer.h): Add new include.
202 * dwarf2read.c (producer.h): Add new include.
203 * producer.c: New file.
204 * producer.h: New file.
205 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
206 producer.c.
207 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
208 producer.h.
209
210 2017-09-26 Matthias Klose <doko@ubuntu.com>
211
212 * configure.ac: Search ncursesw before ncurses.
213 Check ncursesw/ncurses.h before ncurses/ncurses.h.
214 * gdb_curses.h: Include <ncursesw/ncurses.h>
215 * config.in, configure: Regenerate.
216
217 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
218
219 PR gdb/22185
220 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
221 obsolete.
222 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
223 Remove i386sol2 support.
224 * configure.nat <i386sol2>: Remove.
225 <sol2-64>: Fold into ...
226 <sol2>: ... this.
227 Move common settings to default section.
228 Add sol-thread.o.
229 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
230 x86_64-*-solaris2.1[0-9]*>: Rename to ...
231 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
232 <i[34567]86-*-solaris*>: Remove.
233 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
234
235 * configure.ac: Remove wctype in libw check.
236 (_MSE_INT_H): Don't define on Solaris 7-9.
237 <solaris*>: Remove libthread_db.so.1 check.
238 * configure: Regenerate.
239 * config.in: Regenerate.
240
241 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
242 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
243 (gdb_ps_size_t): Remove.
244 Use base types in users.
245 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
246
247 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
248
249 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
250
251 PR build/22206
252 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
253 (adi_is_addr_mapped): Likewise.
254 (PSR_ICC): Don't redefine.
255 (PSR_IMPL): Likewise.
256
257 2017-09-25 Tom Tromey <tom@tromey.com>
258
259 * regcache.c (regcache::dump): Use string_printf.
260
261 2017-09-25 Tom Tromey <tom@tromey.com>
262
263 * regcache.c (class regcache_invalidator): New.
264 (struct register_to_invalidate): Remove.
265 (make_cleanup_regcache_invalidate): Remove.
266 (regcache::raw_write): Use regcache_invalidator.
267
268 2017-09-25 Tom Tromey <tom@tromey.com>
269
270 * spu-tdep.c (spu2ppu_sniffer): Update.
271 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
272 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
273 Remove.
274 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
275 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
276 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
277 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
278 (frame_pop): Update.
279
280 2017-09-25 Tom Tromey <tom@tromey.com>
281
282 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
283 * regcache.h (regcache_xfree): Don't declare.
284 * regcache.c (regcache_xfree): Remove.
285 (do_regcache_xfree): Use delete.
286 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
287 * linux-fork.c (free_fork): Use delete.
288 (fork_save_infrun_state): Likewise.
289 * jit.c (jit_dealloc_cache): Use delete.
290 * infrun.c (discard_infcall_suspend_state): Use delete.
291
292 2017-09-25 Tom Tromey <tom@tromey.com>
293
294 * regcache.h (regcache_xmalloc): Don't declare.
295 (regcache_raw_set_cached_value): Update comment.
296 * regcache.c (regcache_xmalloc): Remove.
297 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
298 * jit.c (jit_frame_sniffer): Use new.
299 * frame.c (frame_save_as_regcache): Use new.
300
301 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
302
303 * NEWS: Advertise support for guarded-storage registers on IBM z.
304
305 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
306
307 * s390-linux-nat.c (have_regset_gs): New static variable.
308 (s390_linux_fetch_inferior_registers): Handle guarded-storage
309 control block and guarded-storage broadcast control regsets.
310 (s390_read_description): Detect whether the target has
311 guarded-storage support, return appropriate tdesc.
312 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
313 (features/s390x-gs-linux64.c): Likewise.
314 (struct gdbarch_tdep) <have_gs>: New field.
315 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
316 (s390_gsbc_regset): New variables.
317 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
318 and s390_gsbc_regset, if applicable.
319 (s390_core_read_description): Check whether core file was from a
320 target with guarded-storage support; include appropriate regsets.
321 (s390_gdbarch_init): Add registers for guarded-storage support.
322 (_initialize_s390_tdep): Initialize new target descriptions that
323 include registers for guarded-storage support.
324 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
325 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
326 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
327 (S390_NUM_REGS): Adjust macro definition.
328 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
329 (tdesc_s390x_gs_linux64): New declarations.
330
331 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
332
333 * features/s390-gs-linux64.xml: New file.
334 * features/s390-gs.xml: New file.
335 * features/s390-gsbc.xml: New file.
336 * features/s390x-gs-linux64.xml: New file.
337 * features/Makefile (WHICH): Add s390-gs-linux64 and
338 s390x-gs-linux64.
339 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
340 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
341 * features/s390-gs-linux64.c: New generated file.
342 * features/s390x-gs-linux64.c: New file.
343 * regformats/s390-gs-linux64.dat: New file.
344 * regformats/s390x-gs-linux64.dat: New file.
345
346 2017-09-23 Tom Tromey <tom@tromey.com>
347
348 * defs.h (make_cleanup_override_quit_handler): Don't declare.
349
350 2017-09-22 Tom Tromey <tom@tromey.com>
351
352 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
353 type to scoped_restore_tmpl.
354 <scoped_input_handler>: Initialize m_quit_handler directly.
355
356 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
357
358 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
359 (cd_command): Likewise. Free "current_directory" before
360 assigning to it.
361 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
362 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
363 * top.c (gdb_dirbuf): Remove global declaration.
364 * top.h (gdb_dirbuf): Likewise.
365
366 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
367
368 * gnulib/aclocal.m4: Regenerate.
369 * gnulib/config.in: Regenerate.
370 * gnulib/configure: Regenerate.
371 * gnulib/import/Makefile.am: Regenerate.
372 * gnulib/import/Makefile.in: Regenerate.
373 * gnulib/import/assure.h: New file.
374 * gnulib/import/at-func.c: Likewise
375 * gnulib/import/chdir-long.c: New file.
376 * gnulib/import/chdir-long.h: New file.
377 * gnulib/import/cloexec.c: New file.
378 * gnulib/import/cloexec.h: New file.
379 * gnulib/import/close.c: New file.
380 * gnulib/import/closedir.c: New file.
381 * gnulib/import/dirent-private.h: New file.
382 * gnulib/import/dup-safer.c: New file.
383 * gnulib/import/dup.c: New file.
384 * gnulib/import/dup2.c: New file.
385 * gnulib/import/error.c: New file.
386 * gnulib/import/error.h: New file.
387 * gnulib/import/exitfail.c: New file.
388 * gnulib/import/exitfail.h: New file.
389 * gnulib/import/fchdir.c: New file.
390 * gnulib/import/fcntl.c: New file.
391 * gnulib/import/fcntl.in.h: New file.
392 * gnulib/import/fd-hook.c: New file.
393 * gnulib/import/fd-hook.h: New file.
394 * gnulib/import/fd-safer.c: New file.
395 * gnulib/import/fdopendir.c: New file.
396 * gnulib/import/filename.h: New file.
397 * gnulib/import/filenamecat-lgpl.c: New file.
398 * gnulib/import/filenamecat.h: New file.
399 * gnulib/import/fstat.c: New file.
400 * gnulib/import/fstatat.c: New file.
401 * gnulib/import/getcwd-lgpl.c: New file.
402 * gnulib/import/getcwd.c: New file.
403 * gnulib/import/getdtablesize.c: New file.
404 * gnulib/import/getlogin_r.c: New file.
405 * gnulib/import/getprogname.c: New file.
406 * gnulib/import/getprogname.h: New file.
407 * gnulib/import/gettext.h: New file.
408 * gnulib/import/glob-libc.h: New file.
409 * gnulib/import/glob.c: New file.
410 * gnulib/import/glob.in.h: New file.
411 * gnulib/import/intprops.h: New file.
412 * gnulib/import/m4/chdir-long.m4: New file.
413 * gnulib/import/m4/close.m4: New file.
414 * gnulib/import/m4/closedir.m4: New file.
415 * gnulib/import/m4/d-ino.m4: New file.
416 * gnulib/import/m4/d-type.m4: New file.
417 * gnulib/import/m4/dup.m4: New file.
418 * gnulib/import/m4/dup2.m4: New file.
419 * gnulib/import/m4/error.m4: New file.
420 * gnulib/import/m4/fchdir.m4: New file.
421 * gnulib/import/m4/fcntl.m4: New file.
422 * gnulib/import/m4/fcntl_h.m4: New file.
423 * gnulib/import/m4/fdopendir.m4: New file.
424 * gnulib/import/m4/filenamecat.m4: New file.
425 * gnulib/import/m4/fstat.m4: New file.
426 * gnulib/import/m4/fstatat.m4: New file.
427 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
428 * gnulib/import/m4/getcwd-path-max.m4: New file.
429 * gnulib/import/m4/getcwd.m4: New file.
430 * gnulib/import/m4/getdtablesize.m4: New file.
431 * gnulib/import/m4/getlogin_r.m4: New file.
432 * gnulib/import/m4/getprogname.m4: New file.
433 * gnulib/import/m4/glob.m4: New file.
434 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
435 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
436 * gnulib/import/m4/mempcpy.m4: New file.
437 * gnulib/import/m4/memrchr.m4: New file.
438 * gnulib/import/m4/mode_t.m4: New file.
439 * gnulib/import/m4/msvc-inval.m4: New file.
440 * gnulib/import/m4/msvc-nothrow.m4: New file.
441 * gnulib/import/m4/open.m4: New file.
442 * gnulib/import/m4/openat.m4: New file.
443 * gnulib/import/m4/opendir.m4: New file.
444 * gnulib/import/m4/readdir.m4: New file.
445 * gnulib/import/m4/realloc.m4: New file.
446 * gnulib/import/m4/rewinddir.m4: New file.
447 * gnulib/import/m4/save-cwd.m4: New file.
448 * gnulib/import/m4/strdup.m4: New file.
449 * gnulib/import/m4/strerror.m4: New file.
450 * gnulib/import/m4/unistd-safer.m4: New file.
451 * gnulib/import/mempcpy.c: New file.
452 * gnulib/import/memrchr.c: New file.
453 * gnulib/import/msvc-inval.c: New file.
454 * gnulib/import/msvc-inval.h: New file.
455 * gnulib/import/msvc-nothrow.c: New file.
456 * gnulib/import/msvc-nothrow.h: New file.
457 * gnulib/import/open.c: New file.
458 * gnulib/import/openat-die.c: New file.
459 * gnulib/import/openat-priv.h: New file.
460 * gnulib/import/openat-proc.c: New file.
461 * gnulib/import/openat.c: New file.
462 * gnulib/import/openat.h: New file.
463 * gnulib/import/opendir.c: New file.
464 * gnulib/import/pipe-safer.c: New file.
465 * gnulib/import/readdir.c: New file.
466 * gnulib/import/realloc.c: New file.
467 * gnulib/import/rewinddir.c: New file.
468 * gnulib/import/save-cwd.c: New file.
469 * gnulib/import/save-cwd.h: New file.
470 * gnulib/import/strdup.c: New file.
471 * gnulib/import/strerror-override.c: New file.
472 * gnulib/import/strerror-override.h: New file.
473 * gnulib/import/strerror.c: New file.
474 * gnulib/import/unistd--.h: New file.
475 * gnulib/import/unistd-safer.h: New file.
476 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
477 "getcwd" and "glob".
478 * ser-tcp.c: Undefine "close" before redefining it.
479
480 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
481
482 * guile/scm-value.c (gdbscm_value_address): Initialize address,
483 get rid of res_val.
484
485 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
486
487 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
488 <sol2,sparc>: Likewise.
489 <sol2-64,i386>: Likewise.
490
491 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
492 -Wdeprecated-declarations on *-*-solaris*.
493 * configure: Regenerate.
494
495 * procfs.c: Include "nat/inferior.h".
496 (procfs_info_proc): Fix typo.
497
498 2017-09-21 Kevin Buettner <kevinb@redhat.com>
499
500 * remote.c (vector): Include.
501 (struct private_thread_info): Add field, thread_handle.
502 (free_private_thread_info): Deallocate storage associated with
503 thread handle.
504 (get_private_info_thread): Initialize `thread_handle' field.
505 (struct thread_item): Add field, thread_handle.
506 (clear_threads_listing_context): Deallocate storage associated
507 with thread handle.
508 (start_thread): Add support for "handle" attribute.
509 (thread_attributes): Add "handle".
510 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
511 field.
512 (remote_update_thread_list): Update thread_handle.
513 (remote_thread_handle_to_thread_info): New function.
514 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
515
516 2017-09-21 Kevin Buettner <kevinb@redhat.com>
517
518 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
519 function.
520 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
521 * python/python-internal.h (thread_object_type): Declare.
522
523 2017-09-21 Kevin Buettner <kevinb@redhat.com>
524
525 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
526 (target_thread_handle_to_thread_info): Declare.
527 * target.c (target_thread_handle_to_thread_info): New function.
528 * target-delegates.c: Regenerate.
529 * gdbthread.h (find_thread_by_handle): Declare.
530 * thread.c (find_thread_by_handle): New function.
531 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
532 function.
533 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
534
535 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
536
537 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
538
539 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
540
541 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
542
543 2017-09-21 Yao Qi <yao.qi@linaro.org>
544
545 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
546 to gdb_target_obs.
547
548 2017-09-20 Tom Tromey <tom@tromey.com>
549
550 * breakpoint.c (struct counted_command_line): Remove.
551 (breakpoint_commands): Update.
552 (alloc_counted_command_line, incref_counted_command_line)
553 (decref_counted_command_line, do_cleanup_counted_command_line)
554 (make_cleanup_decref_counted_command_line): Remove.
555 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
556 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
557 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
558 (save_breakpoints): Update.
559 * breakpoint.h (counted_command_line): Now a typedef to
560 shared_ptr.
561 (struct breakpoint) <commands>: Now a counted_command_line.
562 (struct bpstats) <command>: Likewise.
563
564 2017-09-20 Tom Tromey <tom@tromey.com>
565
566 * breakpoint.c (struct commands_info, do_map_commands_command):
567 Remove.
568 (commands_command_1): Update.
569 (iterate_over_related_breakpoints): Take a function_view.
570 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
571 (delete_command): Update.
572 (map_breakpoint_numbers): Take a function_view.
573 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
574 (disable_command): Update.
575 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
576 (enable_command): Update.
577 (struct disp_data, do_enable_breakpoint_disp)
578 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
579 (do_map_enable_delete_breakpoint): Remove.
580 (enable_once_command, enable_count_command, enable_delete_command)
581 (delete_trace_variable_command): Update.
582
583 2017-09-20 Tom Tromey <tom@tromey.com>
584
585 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
586 (bpstat_clear): Use delete.
587 (bpstats): New constructors.
588 (bpstat_copy, bpstat_stop_status): Use new.
589 (dprintf_after_condition_true): Update.
590 * breakpoint.h (bpstats::bpstats): Add constructors.
591 (bpstats::~bpstats): Add destructor.
592
593 2017-09-20 Pedro Alves <palves@redhat.com>
594
595 * eval.c (make_params): Delete, refactored as ...
596 (class fake_method): ... this new type's ctor.
597 (fake_method::~fake_method): New.
598 (evaluate_subexp_standard): Use 'fake_method'.
599
600 2017-09-20 Tom Tromey <tom@tromey.com>
601
602 * windows-nat.c (get_windows_debug_event, windows_wait)
603 (do_initial_windows_stuff, windows_attach): Update.
604 * utils.c (vwarning, internal_vproblem): Update.
605 (ui_unregister_input_event_handler_cleanup)
606 (prepare_to_handle_input): Remove.
607 (class scoped_input_handler): New.
608 (defaulted_query, prompt_for_continue): Update.
609 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
610 Update.
611 * top.c (undo_terminal_modifications_before_exit): Update.
612 * target/target.h (target_terminal_init, target_terminal_inferior)
613 (target_terminal_ours): Don't declare.
614 (class target_terminal): New.
615 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
616 (target_terminal_ours_for_output)
617 (make_cleanup_restore_target_terminal): Don't declare.
618 (target_terminal_info): Remove.
619 * target.c (enum terminal_state, terminal_state): Remove.
620 (target_terminal::terminal_state): Define.
621 (target_terminal::init): Rename from target_terminal_init.
622 (target_terminal::inferior): Rename from
623 target_terminal_inferior.
624 (target_terminal::ours): Rename from target_terminal_ours.
625 (target_terminal::ours_for_output): Rename from
626 target_terminal_ours_for_output.
627 (target_terminal::info): New method.
628 (cleanup_restore_target_terminal)
629 (make_cleanup_restore_target_terminal): Remove.
630 * solib.c (handle_solib_event): Update.
631 * remote.c (remote_serial_quit_handler): Update.
632 (remote_terminal_inferior, remote_wait_as): Update.
633 * record-full.c (record_full_wait_1): Update.
634 * nto-procfs.c (procfs_create_inferior): Update.
635 * nat/fork-inferior.c (startup_inferior): Update.
636 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
637 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
638 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
639 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
640 (mi_breakpoint_created, mi_breakpoint_deleted)
641 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
642 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
643 (mi_user_selected_context_changed, report_initial_inferior):
644 Update.
645 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
646 (linux_nat_terminal_inferior): Update.
647 * infrun.c (follow_fork_inferior)
648 (handle_vfork_child_exec_or_exit, do_target_resume)
649 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
650 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
651 Update.
652 * inflow.c (child_terminal_init, info_terminal_command): Update.
653 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
654 (attach_command): Update.
655 * infcall.c (call_thread_fsm_should_stop): Update.
656 * gnu-nat.c (gnu_attach): Update.
657 * extension.c (struct active_ext_lang_state)
658 (restore_active_ext_lang): Update.
659 * exceptions.c (print_flush): Update.
660 * event-top.c (async_enable_stdin, default_quit_handler): Update.
661 (struct quit_handler_cleanup_data, restore_quit_handler)
662 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
663 Remove.
664 * cp-support.c (gdb_demangle): Update.
665 * breakpoint.c (update_inserted_breakpoint_locations)
666 (insert_breakpoint_locations, handle_jit_event)
667 (disable_breakpoints_in_unloaded_shlib): Update.
668 * annotate.c (annotate_breakpoints_invalid)
669 (annotate_frames_invalid): Update.
670
671 2017-09-20 Tom Tromey <tom@tromey.com>
672
673 * main.c (catch_command_errors): Rename from
674 catch_command_errors_const.
675 (captured_main_1): Update.
676
677 2017-09-20 Pedro Alves <palves@redhat.com>
678
679 * cli/cli-cmds.c (list_command): Use print_sal_location.
680 (print_sal_location): New function.
681 (ambiguous_line_spec): Use print_sal_location.
682 * linespec.c (symbol_to_sal): Record the symbol in the sal.
683 * symtab.c (find_function_start_sal): Likewise.
684 * symtab.h (symtab_and_line::symbol): New field.
685
686 2017-09-20 Pedro Alves <palves@redhat.com>
687
688 * linespec.c (minsym_found): Handle non-text minsyms.
689 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
690
691 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
692
693 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
694 backslash.
695
696 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
697
698 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
699 vmovups instead vmovaps.
700 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
701
702 2017-09-19 John Baldwin <jhb@FreeBSD.org>
703
704 * NEWS (Changes since GDB 8.0): Add starti.
705 * infcmd.c (enum run_break): New.
706 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
707 case.
708 (run_command): Use enum run_how.
709 (start_command): Likewise.
710 (starti_command): New function.
711 (RUN_ARGS_HELP): New macro.
712 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
713 commands. Add starti command.
714
715 2017-09-19 Yao Qi <yao.qi@linaro.org>
716
717 * Makefile.in (monitor.o): Remove the rule.
718
719 2017-09-19 Yao Qi <yao.qi@linaro.org>
720
721 * annotate.h (struct annotate_arg_emitter): Use
722 DISABLE_COPY_AND_ASSIGN.
723 * common/refcounted-object.h (refcounted_object): Likewise.
724 * completer.h (struct completion_result): Likewise.
725 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
726 * filename-seen-cache.h (filename_seen_cache): Likewise.
727 * gdbcore.h (thread_section_name): Likewise.
728 * gdb_regex.h (compiled_regex): Likewise.
729 * gdbthread.h (scoped_restore_current_thread): Likewise.
730 * inferior.h (scoped_restore_current_inferior): Likewise.
731 * jit.c (jit_reader): Likewise.
732 * linespec.h (struct linespec_result): Likewise.
733 * mi/mi-parse.h (struct mi_parse): Likewise.
734 * nat/fork-inferior.c (execv_argv): Likewise.
735 * progspace.h (scoped_restore_current_program_space): Likewise.
736 * python/python-internal.h (class gdbpy_enter): Likewise.
737 * regcache.h (regcache): Likewise.
738 * target-descriptions.c (struct tdesc_reg): Likewise.
739 (struct tdesc_type): Likewise.
740 (struct tdesc_feature): Likewise.
741 * ui-out.h (ui_out_emit_type): Likewise.
742
743 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
744
745 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
746 label abort_expression.
747
748 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
749
750 * common/buffer.c (buffer_xml_printf): Adjust.
751 * common/xml-utils.c (xml_escape_text): Change return type to
752 std::string, update code accordingly.
753 * common/xml-utils.h (xml_escape_text): Change return type to
754 std::string.
755 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
756 * windows-tdep.c (windows_xfer_shared_library): Adjust.
757 * unittests/xml-utils-selftests.c (test_xml_escape_text):
758 Adjust.
759
760 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
761
762 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
763 (SUBDIR_UNITTESTS_OBS): Add new object file.
764 * unittests/xml-utils-selftests.c: New file.
765
766 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
767
768 * common/selftest.h (selftest): New struct/interface.
769 (register_test): Add name parameter, add new overload.
770 (run_tests): Add filter parameter.
771 (for_each_selftest_ftype): New typedef.
772 (for_each_selftest): New declaration.
773 * common/selftest.c (tests): Change type to
774 map<string, unique_ptr<selftest>>.
775 (simple_selftest): New struct.
776 (register_test): New function.
777 (register_test): Add name parameter and use it.
778 (run_tests): Add filter parameter and use it. Add prints.
779 Adjust to vector -> map change.
780 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
781 registering selftests.
782 * arm-tdep.c (_initialize_arm_tdep): Likewise.
783 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
784 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
785 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
786 * findvar.c (_initialize_findvar): Likewise.
787 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
788 * maint.c (maintenance_selftest): Update call to run_tests.
789 (maintenance_info_selftests): New function.
790 (_initialize_maint_cmds): Register "maintenance info selftests"
791 command. Update "maintenance selftest" doc.
792 * regcache.c (_initialize_regcache): Add names when registering
793 selftests.
794 * rust-exp.y (_initialize_rust_exp): Likewise.
795 * selftest-arch.c (gdbarch_selftest): New struct.
796 (gdbarch_tests): Remove.
797 (register_test_foreach_arch): Add name parameter. Call
798 register_test.
799 (tests_with_arch): Remove, move most content to
800 gdbarch_selftest::operator().
801 (_initialize_selftests_foreach_arch): Remove.
802 * selftest-arch.h (register_test_foreach_arch): Add name
803 parameter.
804 (run_tests_with_arch): New declaration.
805 * utils-selftests.c (_initialize_utils_selftests): Add names
806 when registering selftests.
807 * utils.c (_initialize_utils): Likewise.
808 * unittests/array-view-selftests.c
809 (_initialize_array_view_selftests): Likewise.
810 * unittests/environ-selftests.c (_initialize_environ_selftests):
811 Likewise.
812 * unittests/function-view-selftests.c
813 (_initialize_function_view_selftests): Likewise.
814 * unittests/offset-type-selftests.c
815 (_initialize_offset_type_selftests): Likewise.
816 * unittests/optional-selftests.c
817 (_initialize_optional_selftests): Likewise.
818 * unittests/scoped_restore-selftests.c
819 (_initialize_scoped_restore_selftests): Likewise.
820 * NEWS: Document "maintenance selftest" and "maint info
821 selftests".
822
823 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
824
825 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
826 scoped_restore.
827
828 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
829
830 * mi/mi-main.c (mi_load_progress): Make uiout variable
831 a unique_ptr.
832
833 2017-09-15 Pedro Alves <palves@redhat.com>
834
835 * compile/compile-c-types.c (convert_enum, convert_int)
836 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
837
838 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
839
840 * dwarf2read.c (copy_string): Remove.
841 (parse_macro_definition): Replace copy_string with savestring.
842
843 2017-09-15 Yao Qi <yao.qi@linaro.org>
844
845 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
846 gdb_target_obs.
847 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
848 Likewise.
849 (i[34567]86-*-linux*): Likewise.
850
851 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
852
853 * dwarf2expr.h (dwarf_stack_value): Add constructor.
854 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
855 <stack>: Change type to std::vector.
856 <stack_len, stack_allocated>: Remove.
857 <grow_stack>: Remove.
858 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
859 (dwarf_expr_context::~dwarf_expr_context): Remove.
860 (dwarf_expr_context::grow_stack): Remove.
861 (dwarf_expr_context::push): Adjust.
862 (dwarf_expr_context::pop): Adjust.
863 (dwarf_expr_context::fetch): Adjust.
864 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
865 (dwarf_expr_context::stack_empty_p): Adjust.
866 (dwarf_expr_context::execute_stack_op): Adjust.
867
868 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
869
870 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
871 return type to bool.
872 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
873
874 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
875
876 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
877 Change type to bool.
878 (dwarf_stack_value) <in_stack_memory>: Likewise.
879 (dwarf_expr_context) <push_address>: Change parameter type to
880 bool.
881 <fetch_in_stack_memory>: Change return type to bool.
882 <push>: Change parameter type to bool.
883 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
884 to bool.
885 (dwarf_expr_context::push_address): Likewise.
886 (dwarf_expr_context::fetch_in_stack_memory): Change return type
887 to bool.
888 (dwarf_expr_context::execute_stack_op): Adjust.
889 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
890
891 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
892
893 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
894 (struct dwarf_expr_context) <n_pieces>: Remove.
895 <pieces>: Change type to std::vector.
896 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
897 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
898 pieces.
899 (dwarf_expr_context::add_piece): Adjust.
900 * dwarf2loc.c (struct piece_closure): Initialize fields.
901 <n_pieces>: Remove.
902 <pieces>: Change type to std::vector.
903 (allocate_piece_closure): Adjust, change parameter to
904 std::vector rvalue and std::move it to piece_closure.
905 (rw_pieced_value): Adjust.
906 (check_pieced_synthetic_pointer): Adjust.
907 (indirect_synthetic_pointer): Adjust.
908 (coerce_pieced_ref): Adjust.
909 (free_pieced_value_closure): Adjust. Use delete to free
910 piece_closure.
911 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
912 to allocate_piece_closure.
913 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
914
915 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
916
917 * probe.h (probe_ops_cp): Remove typedef.
918 (DEF_VEC_P (probe_ops_cp)): Remove.
919 (all_probe_ops): Change type to std::vector.
920 * probe.c (info_probes_for_ops): Adjust to vector change.
921 (probe_linespec_to_ops): Likewise.
922 (all_probe_ops): Change type to std::vector.
923 (_initialize_probe): Adjust to vector change.
924 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
925 * elfread.c (elf_get_probes): Likewise.
926 * stap-probe.c (_initialize_stap_probe): Likewise.
927
928 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
929
930 * probe.h (struct bound_probe): Define constructors.
931 * probe.c (bound_probe_s): Remove typedef.
932 (DEF_VEC_O (bound_probe_s)): Remove VEC.
933 (collect_probes): Change return type to std::vector, remove
934 cleanup.
935 (compare_probes): Return bool, change parameter type. Change
936 semantic to "less than".
937 (gen_ui_out_table_header_info): Change parameter to std::vector
938 and update.
939 (exists_probe_with_pops): Likewise.
940 (info_probes_for_ops): Update to std::vector change.
941 (enable_probes_command): Likewise.
942 (disable_probes_command): Likewise.
943
944 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
945
946 * probe.h (struct probe_ops) <get_probes>: Change parameter from
947 vec to std::vector.
948 * probe.c (parse_probes_in_pspace): Update.
949 (find_probes_in_objfile): Update.
950 (find_probe_by_pc): Update.
951 (collect_probes): Update.
952 (probe_any_get_probes): Update.
953 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
954 return type to reference to std::vector.
955 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
956 std::vector and update.
957 (dtrace_process_dof): Likewise.
958 (dtrace_get_probes): Likewise.
959 * elfread.c (elf_get_probes): Change return type to std::vector,
960 store an std::vector in bfd_data.
961 (probe_key_free): Update to std::vector.
962 * stap-probe.c (handle_stap_probe): Change parameter to
963 std::vector and update.
964 (stap_get_probes): Likewise.
965 * symfile-debug.c (debug_sym_get_probes): Change return type to
966 std::vector and update.
967
968 2017-09-11 Tom Tromey <tom@tromey.com>
969
970 * breakpoint.c (program_breakpoint_here_p): Update.
971 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
972 from make_show_memory_breakpoints_cleanup. Return a
973 scoped_restore_tmpl<int>.
974 (restore_show_memory_breakpoints): Remove.
975 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
976 * mem-break.c (memory_validate_breakpoint): Update.
977 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
978 (ia64_memory_remove_breakpoint): Update.
979 (ia64_breakpoint_from_pc): Update.
980 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
981 from make_show_memory_breakpoints_cleanup.
982
983 2017-09-11 Tom Tromey <tom@tromey.com>
984
985 * d-namespace.c (d_lookup_symbol): Use std::string.
986 (find_symbol_in_baseclass): Likewise.
987
988 2017-09-11 Tom Tromey <tom@tromey.com>
989
990 * ctf.c (ctf_start): Use std::string.
991
992 2017-09-11 Tom Tromey <tom@tromey.com>
993
994 * ada-lang.c (is_known_support_routine): Update.
995 (ada_unhandled_exception_name_addr_from_raise): Update.
996 * guile/scm-frame.c (gdbscm_frame_name): Update.
997 * python/py-frame.c (frapy_name): Update.
998 (frapy_function): Update.
999 * stack.h (find_frame_funname): Update.
1000 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1001 (print_frame): Update.
1002
1003 2017-09-11 Tom Tromey <tom@tromey.com>
1004
1005 * findcmd.c (put_bits): Take a gdb::byte_vector.
1006 (parse_find_args): Return gdb::byte_vector. "args" now const.
1007 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1008 cleanups.
1009 (find_command): Update.
1010
1011 2017-09-11 Tom Tromey <tom@tromey.com>
1012
1013 * cli/cli-script.c (class scoped_restore_hook_in): New.
1014 (clear_hook_in_cleanup): Remove.
1015 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1016 scoped_restore_hook_in.
1017
1018 2017-09-11 Tom Tromey <tom@tromey.com>
1019
1020 * cli/cli-script.c (restore_interp): Remove.
1021 (read_command_lines): Use scoped_restore_interp.
1022 * interps.c (scoped_restore_interp::set_temp): Rename from
1023 interp_set_temp.
1024 * interps.h (class scoped_restore_interp): New.
1025 (interp_set_temp): Remove.
1026
1027 2017-09-11 Tom Tromey <tom@tromey.com>
1028
1029 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1030 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1031 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1032 scoped_restore.
1033 (mi_cmd_break_insert_1): Update.
1034 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1035 scoped_restore.
1036
1037 2017-09-11 Tom Tromey <tom@tromey.com>
1038
1039 * demangle.c (demangle_command): Update.
1040 * breakpoint.c (disable_command): Update.
1041 (enable_command): Update.
1042 (find_location_by_number): Make "number" const. Use
1043 get_number_trailer.
1044 * cli/cli-utils.c (extract_arg): Return std::string.
1045 * probe.c (parse_probe_linespec): Update. Change types.
1046 (collect_probes): Take string arguments.
1047 (parse_probe_linespec): Likewise.
1048 (info_probes_for_ops): Update.
1049 (enable_probes_command): Update.
1050 (disable_probes_command): Update.
1051 * break-catch-sig.c (catch_signal_split_args): Update.
1052 * mi/mi-parse.c (mi_parse): Update.
1053
1054 2017-09-11 Tom Tromey <tom@tromey.com>
1055
1056 * language.h (language_enum): Make argument const.
1057 * language.c (language_enum): Make argument const.
1058
1059 2017-09-11 Tom Tromey <tom@tromey.com>
1060
1061 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1062 as function.
1063 (skip_to_space): Rename from skip_to_space_const.
1064 * common/common-utils.c (skip_to_space): New function.
1065 (skip_to_space): Rename from skip_to_space_const.
1066 * cli/cli-utils.h (get_number): Rename from get_number_const.
1067 (extract_arg): Rename from extract_arg_const.
1068 * cli/cli-utils.c (get_number): Rename from get_number_const.
1069 (extract_arg): Rename from extract_arg_const.
1070 (number_or_range_parser::get_number): Use ::get_number.
1071 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1072 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1073 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1074 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1075 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1076 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1077 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1078 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1079
1080 2017-09-11 Tom Tromey <tom@tromey.com>
1081
1082 * python/python.c (do_start_initialization): Use
1083 py-event-types.def to initialize types.
1084 Define all object type structures.
1085 * python/python-internal.h: Don't declare event initialization
1086 functions.
1087 * python/py-threadevent.c (thread_event_object_type): Don't
1088 define.
1089 * python/py-stopevent.c (stop_event_object_type): Don't define.
1090 * python/py-signalevent.c (signal_event_object_type): Don't
1091 declare or define.
1092 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1093 (clear_objfiles_event_object_type): Don't declare or define.
1094 * python/py-infevents.c (inferior_call_pre_event_object_type)
1095 (inferior_call_post_event_object_type)
1096 (register_changed_event_object_type)
1097 (memory_changed_event_object_type): Don't declare or define.
1098 * python/py-inferior.c (new_thread_event_object_type)
1099 (new_inferior_event_object_type)
1100 (inferior_deleted_event_object_type): Don't declare or define.
1101 * python/py-exitedevent.c (exited_event_object_type): Don't
1102 declare or define.
1103 * python/py-evts.c (gdbpy_initialize_py_events): Use
1104 py-all-events.def.
1105 * python/py-events.h (thread_event_object_type): Don't declare.
1106 (events_object): Use py-all-events.def.
1107 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1108 py-event-types.def.
1109 * python/py-event-types.def: New file.
1110 * python/py-continueevent.c (create_continue_event_object): Don't
1111 declare or define.
1112 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1113 declare or define.
1114 * python/py-all-events.def: New file.
1115
1116 2017-09-11 Tom Tromey <tom@tromey.com>
1117
1118 * python/py-threadevent.c (create_thread_event_object): Return
1119 gdbpy_ref.
1120 * python/py-stopevent.h (create_stop_event_object)
1121 (create_breakpoint_event_object, create_signal_event_object):
1122 Update.
1123 * python/py-stopevent.c (create_stop_event_object): Return
1124 gdbpy_ref.
1125 (emit_stop_event): Update.
1126 * python/py-signalevent.c (create_signal_event_object): Return
1127 gdbpy_ref.
1128 * python/py-infevents.c (create_inferior_call_event_object):
1129 Update.
1130 * python/py-event.h (create_event_object)
1131 (create_thread_event_object): Update.
1132 * python/py-event.c (create_event_object): Return gdbpy_ref.
1133 * python/py-continueevent.c: Return gdbpy_ref.
1134 * python/py-bpevent.c (create_breakpoint_event_object): Return
1135 gdbpy_ref.
1136
1137 2017-09-11 Tom Tromey <tom@tromey.com>
1138
1139 PR python/15622:
1140 * NEWS: Add entry.
1141 * python/python.c (do_start_initialization): Initialize new event
1142 types.
1143 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1144 (gdbpy_initialize_inferior_deleted_event)
1145 (gdbpy_initialize_new_thread_event): Declare.
1146 * python/py-threadevent.c (create_thread_event_object): Add option
1147 "thread" parameter.
1148 * python/py-inferior.c (new_thread_event_object_type)
1149 (new_inferior_event_object_type)
1150 (inferior_deleted_event_object_type): Declare.
1151 (python_new_inferior, python_inferior_deleted): New functions.
1152 (add_thread_object): Emit new_thread event.
1153 (gdbpy_initialize_inferior): Attach new functions to corresponding
1154 observers.
1155 (new_thread, new_inferior, inferior_deleted): Define new event
1156 types.
1157 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1158 registries.
1159 * python/py-events.h (events_object) <new_inferior,
1160 inferior_deleted, new_thread>: New fields.
1161 * python/py-event.h (create_thread_event_breakpoint): Add optional
1162 "thread" parameter.
1163
1164 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1167 check current_ui instead.
1168 (internal_vproblem): Likewise.
1169
1170 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1171
1172 * thread.c (print_thread_info_1): Remove unnecessary calls to
1173 uiout->is_mi_like_p.
1174
1175 2017-09-09 Tom Tromey <tom@tromey.com>
1176
1177 * namespace.h (add_using_directive): Update.
1178 * namespace.c (add_using_directive): Change type of excludes to
1179 std::vector.
1180 * dwarf2read.c (read_import_statement): Use std::vector.
1181 (read_namespace): Update.
1182 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1183
1184 2017-09-09 Tom Tromey <tom@tromey.com>
1185
1186 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1187
1188 2017-09-09 Tom Tromey <tom@tromey.com>
1189
1190 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1191
1192 2017-09-09 Tom Tromey <tom@tromey.com>
1193
1194 * stack.c (func_command): Use gdb::def_vector.
1195
1196 2017-09-09 Tom Tromey <tom@tromey.com>
1197
1198 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1199 ui_out_emit_list, ui_out_emit_tuple.
1200 (mi_cmd_var_update): Likewise.
1201
1202 2017-09-09 Tom Tromey <tom@tromey.com>
1203
1204 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1205 ui_out_redirect_pop.
1206 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1207 ui_out_redirect_pop.
1208 * utils.c (do_ui_out_redirect_pop)
1209 (make_cleanup_ui_out_redirect_pop): Remove.
1210 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1211 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1212 * ui-out.h (ui_out_redirect_pop): New class.
1213
1214 2017-09-09 Tom Tromey <tom@tromey.com>
1215
1216 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1217 (list_available_thread_groups, mi_cmd_list_thread_groups)
1218 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1219 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1220 Likewise.
1221
1222 2017-09-09 Tom Tromey <tom@tromey.com>
1223
1224 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1225 ui_out_emit_tuple.
1226
1227 2017-09-09 Tom Tromey <tom@tromey.com>
1228
1229 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1230 * stack.c (print_frame): Use ui_out_emit_tuple.
1231 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1232 (info_spu_mailbox_command, info_spu_dma_command)
1233 (info_spu_proxydma_command): Likewise.
1234 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1235 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1236 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1237 ui_out_emit_tuple.
1238 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1239
1240 2017-09-09 Tom Tromey <tom@tromey.com>
1241
1242 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1243 (class ui_out_emit_table): Update comment.
1244 * ui-out.c (do_cleanup_table_end)
1245 (make_cleanup_ui_out_table_begin_end): Remove.
1246 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1247 (info_spu_dma_cmdlist): Likewise.
1248 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1249 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1250 ui_out_emit_table.
1251
1252 2017-09-09 Tom Tromey <tom@tromey.com>
1253
1254 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1255 ui_out_emit_list, gdb::optional.
1256
1257 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1258
1259 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1260 prototype.
1261 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1262 prototype.
1263 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1264 prototype.
1265 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1266 * ada-exp.y: Remove _initialize_ada_exp prototype.
1267 * ada-lang.c: Remove _initialize_ada_language prototype.
1268 * ada-tasks.c: Remove _initialize_tasks prototype.
1269 * addrmap.c: Remove _initialize_addrmap prototype.
1270 * agent.c: Remove _initialize_agent prototype.
1271 * aix-thread.c: Remove _initialize_aix_thread prototype.
1272 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1273 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1274 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1275 prototype.
1276 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1277 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1278 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1279 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1280 prototype.
1281 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1282 prototype.
1283 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1284 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1285 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1286 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1287 prototype.
1288 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1289 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1290 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1291 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1292 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1293 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1294 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1295 prototype.
1296 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1297 prototype.
1298 * annotate.c: Remove _initialize_annotate prototype.
1299 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1300 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1301 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1302 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1303 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1304 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1305 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1306 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1307 prototype.
1308 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1309 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1310 * auto-load.c: Remove _initialize_auto_load prototype.
1311 * auxv.c: Remove _initialize_auxv prototype.
1312 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1313 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1314 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1315 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1316 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1317 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1318 prototype.
1319 * break-catch-throw.c: Remove _initialize_break_catch_throw
1320 prototype.
1321 * breakpoint.c: Remove _initialize_breakpoint prototype.
1322 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1323 * btrace.c: Remove _initialize_btrace prototype.
1324 * charset.c: Remove _initialize_charset prototype.
1325 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1326 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1327 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1328 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1329 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1330 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1331 * coffread.c: Remove _initialize_coffread prototype.
1332 * compile/compile.c: Remove _initialize_compile prototype.
1333 * complaints.c: Remove _initialize_complaints prototype.
1334 * completer.c: Remove _initialize_completer prototype.
1335 * copying.awk: Remove _initialize_copying prototype.
1336 * copying.c: Regenerate.
1337 * core-regset.c: Remove _initialize_core_regset prototype.
1338 * corefile.c: Remove _initialize_core prototype.
1339 * corelow.c: Remove _initialize_corelow prototype.
1340 * cp-abi.c: Remove _initialize_cp_abi prototype.
1341 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1342 * cp-support.c: Remove _initialize_cp_support prototype.
1343 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1344 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1345 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1346 * ctf.c: Remove _initialize_ctf prototype.
1347 * d-lang.c: Remove _initialize_d_language prototype.
1348 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1349 prototype.
1350 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1351 * dbxread.c: Remove _initialize_dbxread prototype.
1352 * dcache.c: Remove _initialize_dcache prototype.
1353 * demangle.c: Remove _initialize_demangler prototype.
1354 * disasm-selftests.c: Remove _initialize_disasm_selftests
1355 prototype.
1356 * disasm.c: Remove _initialize_disasm prototype.
1357 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1358 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1359 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1360 prototype.
1361 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1362 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1363 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1364 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1365 * elfread.c: Remove _initialize_elfread prototype.
1366 * exec.c: Remove _initialize_exec prototype.
1367 * extension.c: Remove _initialize_extension prototype.
1368 * f-lang.c: Remove _initialize_f_language prototype.
1369 * f-valprint.c: Remove _initialize_f_valprint prototype.
1370 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1371 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1372 * filesystem.c: Remove _initialize_filesystem prototype.
1373 * findcmd.c: Remove _initialize_mem_search prototype.
1374 * fork-child.c: Remove _initialize_fork_child prototype.
1375 * frame-base.c: Remove _initialize_frame_base prototype.
1376 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1377 * frame.c: Remove _initialize_frame prototype.
1378 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1379 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1380 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1381 * gcore.c: Remove _initialize_gcore prototype.
1382 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1383 * gdbarch.c: Regenerate.
1384 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1385 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1386 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1387 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1388 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1389 * go-lang.c: Remove _initialize_go_language prototype.
1390 * go32-nat.c: Remove _initialize_go32_nat prototype.
1391 * guile/guile.c: Remove _initialize_guile prototype.
1392 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1393 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1394 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1395 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1396 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1397 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1398 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1399 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1400 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1401 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1402 prototype.
1403 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1404 prototype.
1405 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1406 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1407 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1408 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1409 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1410 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1411 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1412 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1413 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1414 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1415 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1416 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1417 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1418 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1419 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1420 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1421 prototype.
1422 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1423 prototype.
1424 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1425 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1426 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1427 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1428 * infcall.c: Remove _initialize_infcall prototype.
1429 * infcmd.c: Remove _initialize_infcmd prototype.
1430 * inferior.c: Remove _initialize_inferiors prototype.
1431 * inflow.c: Remove _initialize_inflow prototype.
1432 * infrun.c: Remove _initialize_infrun prototype.
1433 * interps.c: Remove _initialize_interpreter prototype.
1434 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1435 * jit.c: Remove _initialize_jit prototype.
1436 * language.c: Remove _initialize_language prototype.
1437 * linux-fork.c: Remove _initialize_linux_fork prototype.
1438 * linux-nat.c: Remove _initialize_linux_nat prototype.
1439 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1440 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1441 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1442 * m2-lang.c: Remove _initialize_m2_language prototype.
1443 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1444 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1445 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1446 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1447 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1448 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1449 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1450 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1451 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1452 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1453 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1454 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1455 * machoread.c: Remove _initialize_machoread prototype.
1456 * macrocmd.c: Remove _initialize_macrocmd prototype.
1457 * macroscope.c: Remove _initialize_macroscope prototype.
1458 * maint.c: Remove _initialize_maint_cmds prototype.
1459 * mdebugread.c: Remove _initialize_mdebugread prototype.
1460 * memattr.c: Remove _initialize_mem prototype.
1461 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1462 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1463 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1464 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1465 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1466 * microblaze-linux-tdep.c: Remove
1467 _initialize_microblaze_linux_tdep prototype.
1468 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1469 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1470 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1471 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1472 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1473 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1474 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1475 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1476 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1477 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1478 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1479 prototype.
1480 * mipsread.c: Remove _initialize_mipsread prototype.
1481 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1482 prototype.
1483 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1484 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1485 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1486 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1487 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1488 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1489 prototype.
1490 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1491 * nto-procfs.c: Remove _initialize_procfs prototype.
1492 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1493 * objc-lang.c: Remove _initialize_objc_language prototype.
1494 * objfiles.c: Remove _initialize_objfiles prototype.
1495 * observer.c: Remove observer_test_first_notification_function,
1496 observer_test_second_notification_function,
1497 observer_test_third_notification_function, and
1498 _initialize_observer prototypes.
1499 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1500 * osabi.c: Remove _initialize_gdb_osabi prototype.
1501 * osdata.c: Remove _initialize_osdata prototype.
1502 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1503 * parse.c: Remove _initialize_parse prototype.
1504 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1505 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1506 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1507 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1508 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1509 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1510 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1511 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1512 * printcmd.c: Remove _initialize_printcmd prototype.
1513 * probe.c: Remove _initialize_probe prototype.
1514 * proc-api.c: Remove _initialize_proc_api prototype.
1515 * proc-events.c: Remove _initialize_proc_events prototype.
1516 * proc-service.c: Remove _initialize_proc_service prototype.
1517 * procfs.c: Remove _initialize_procfs prototype.
1518 * psymtab.c: Remove _initialize_psymtab prototype.
1519 * python/python.c: Remove _initialize_python prototype.
1520 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1521 * record-btrace.c: Remove _initialize_record_btrace prototype.
1522 * record-full.c: Remove _initialize_record_full prototype.
1523 * record.c: Remove _initialize_record prototype.
1524 * regcache.c: Remove _initialize_regcache prototype.
1525 * reggroups.c: Remove _initialize_reggroup prototype.
1526 * remote-notif.c: Remove _initialize_notif prototype.
1527 * remote-sim.c: Remove _initialize_remote_sim prototype.
1528 * remote.c: Remove _initialize_remote prototype.
1529 * reverse.c: Remove _initialize_reverse prototype.
1530 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1531 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1532 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1533 prototype.
1534 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1535 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1536 * rust-exp.y: Remove _initialize_rust_exp prototype.
1537 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1538 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1539 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1540 * score-tdep.c: Remove _initialize_score_tdep prototype.
1541 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1542 prototype.
1543 * ser-go32.c: Remove _initialize_ser_dos prototype.
1544 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1545 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1546 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1547 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1548 * serial.c: Remove _initialize_serial prototype.
1549 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1550 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1551 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1552 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1553 * skip.c: Remove _initialize_step_skip prototype.
1554 * sol-thread.c: Remove _initialize_sol_thread prototype.
1555 * solib-aix.c: Remove _initialize_solib_aix prototype.
1556 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1557 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1558 * solib-frv.c: Remove _initialize_frv_solib prototype.
1559 * solib-spu.c: Remove _initialize_spu_solib prototype.
1560 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1561 * solib-target.c: Remove _initialize_solib_target prototype.
1562 * solib.c: Remove _initialize_solib prototype.
1563 * source.c: Remove _initialize_source prototype.
1564 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1565 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1566 prototype.
1567 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1568 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1569 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1570 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1571 prototype.
1572 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1573 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1574 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1575 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1576 prototype.
1577 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1578 prototype.
1579 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1580 prototype.
1581 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1582 prototype.
1583 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1584 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1585 prototype.
1586 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1587 prototype.
1588 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1589 prototype.
1590 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1591 prototype.
1592 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1593 prototype.
1594 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1595 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1596 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1597 * stabsread.c: Remove _initialize_stabsread prototype.
1598 * stack.c: Remove _initialize_stack prototype.
1599 * stap-probe.c: Remove _initialize_stap_probe prototype.
1600 * std-regs.c: Remove _initialize_frame_reg prototype.
1601 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1602 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1603 * symfile.c: Remove _initialize_symfile prototype.
1604 * symmisc.c: Remove _initialize_symmisc prototype.
1605 * symtab.c: Remove _initialize_symtab prototype.
1606 * target-dcache.c: Remove _initialize_target_dcache prototype.
1607 * target-descriptions.c: Remove _initialize_target_descriptions
1608 prototype.
1609 * thread.c: Remove _initialize_thread prototype.
1610 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1611 prototype.
1612 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1613 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1614 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1615 prototype.
1616 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1617 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1618 * tracefile.c: Remove _initialize_tracefile prototype.
1619 * tracepoint.c: Remove _initialize_tracepoint prototype.
1620 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1621 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1622 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1623 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1624 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1625 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1626 * tui/tui.c: Remove _initialize_tui prototype.
1627 * typeprint.c: Remove _initialize_typeprint prototype.
1628 * user-regs.c: Remove _initialize_user_regs prototype.
1629 * utils.c: Remove _initialize_utils prototype.
1630 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1631 * valarith.c: Remove _initialize_valarith prototype.
1632 * valops.c: Remove _initialize_valops prototype.
1633 * valprint.c: Remove _initialize_valprint prototype.
1634 * value.c: Remove _initialize_values prototype.
1635 * varobj.c: Remove _initialize_varobj prototype.
1636 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1637 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1638 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1639 * windows-nat.c: Remove _initialize_windows_nat,
1640 _initialize_check_for_gdb_ini, and _initialize_loadable
1641 prototypes.
1642 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1643 * xcoffread.c: Remove _initialize_xcoffread prototype.
1644 * xml-support.c: Remove _initialize_xml_support prototype.
1645 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1646 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1647 prototype.
1648 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1649 prototype.
1650 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1651
1652 2017-09-08 Keith Seitz <keiths@redhat.com>
1653
1654 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1655 field.
1656
1657 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1658
1659 * f-valprint.c (f_val_print): Remove check for one byte
1660 sized integers. Remove printing of character type.
1661
1662 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1663 Christoph Weinmann <christoph.t.weinmann@intel.com>
1664 Bernhard Heckel <bernhard.heckel@intel.com>
1665
1666 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1667 to maintain proper indentation when printing pointers/refs.
1668
1669 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1670
1671 GDB 8.0.1 released.
1672
1673 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1674
1675 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1676
1677 2017-09-05 Tom Tromey <tom@tromey.com>
1678
1679 * parse.c (funcall_chain): Now a std::vector.
1680 (start_arglist, end_arglist): Simplify.
1681 (free_funcalls): Remove.
1682 (parse_exp_in_context_1): Remove cleanup.
1683
1684 2017-09-05 Tom Tromey <tom@tromey.com>
1685
1686 * go-exp.y (go_parse): Don't create a cleanup.
1687
1688 2017-09-05 Tom Tromey <tom@tromey.com>
1689
1690 * d-exp.y (PrimaryExpression): Use std::string.
1691 (d_parse): Don't create a cleanup.
1692
1693 2017-09-05 Tom Tromey <tom@tromey.com>
1694
1695 * utils.c (do_clear_parser_state): Remove.
1696 (make_cleanup_clear_parser_state): Remove.
1697 * p-exp.y (pascal_parse): Use scoped_restore.
1698 * m2-exp.y (m2_parse): Use scoped_restore.
1699 * f-exp.y (f_parse): Use scoped_restore.
1700 * d-exp.y (d_parse): Use scoped_restore.
1701 * c-exp.y (c_parse): Use scoped_restore.
1702 * ada-exp.y (ada_parse): Use scoped_restore.
1703 * utils.h (make_cleanup_clear_parser_state): Remove.
1704
1705 2017-09-06 Keith Seitz <keiths@redhat.com>
1706
1707 * dwarf2read.c (dw2_linkage_name_attr): New function.
1708 (dw2_linkage_name): New function.
1709 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1710 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1711 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1712
1713 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1714
1715 * config/djgpp/djconfig.sh: Correct shell portability issue.
1716
1717 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1718
1719 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1720
1721 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1722
1723 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1724 * NEWS: Mention new FreeBSD/mips native configuration.
1725 * configure.host: Add aarch64*-*-freebsd*.
1726 * configure.nat: Likewise.
1727 * aarch64-fbsd-nat.c: New file.
1728
1729 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1730
1731 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1732 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1733 * NEWS: Mention new FreeBSD/aarch64 target.
1734 * configure.tgt: Add aarch64*-*-freebsd*.
1735 * aarch64-fbsd-tdep.c: New file.
1736 * aarch64-fbsd-tdep.h: New file.
1737
1738 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1739
1740 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1741
1742 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1745 of TLS symbols.
1746
1747 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1748
1749 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1750 call.
1751
1752 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1753
1754 * infrun.c (follow_exec): Call add_thread after
1755 target_find_description.
1756
1757 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1758
1759 * infrun.c (handle_inferior_event_1): When exec'ing, read
1760 stop_pc after follow_exec.
1761
1762 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1763
1764 * remote.c (process_g_packet): Update error message.
1765
1766 2017-09-05 Yao Qi <yao.qi@linaro.org>
1767
1768 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1769 targets.
1770
1771 2017-09-05 Pedro Alves <palves@redhat.com>
1772
1773 * eval.c (eval_call, evaluate_funcall): New functions, factored
1774 out from ...
1775 (evaluate_subexp_standard): ... this.
1776
1777 2017-09-05 Yao Qi <yao.qi@linaro.org>
1778
1779 * amd64-tdep.c (amd64_target_description): Create target
1780 descriptions.
1781 (_initialize_amd64_tdep): Don't call functions
1782 initialize_tdesc_amd64_*. Add self tests.
1783 * arch/amd64.c (amd64_create_target_description): Add parameter
1784 is_linux. Call set_tdesc_osabi if is_linux is true.
1785 * arch/amd64.h (amd64_create_target_description): Update the
1786 declaration.
1787 * arch/i386.c (i386_create_target_description): Add parameter
1788 is_linux. Call set_tdesc_osabi if is_linux is true.
1789 * arch/i386.h (i386_create_target_description): Update
1790 declaration.
1791 * configure.tgt: Add i386.o to gdb_target_obs.
1792 * features/Makefile (XMLTOC): Remove i386/*.xml.
1793 * features/i386/amd64-avx-avx512.c: Remove.
1794 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1795 * features/i386/amd64-avx-mpx.c: Remove.
1796 * features/i386/amd64-avx.c: Remove.
1797 * features/i386/amd64-mpx.c: Remove.
1798 * features/i386/amd64.c: Remove.
1799 * features/i386/i386-avx-avx512.c: Remove.
1800 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1801 * features/i386/i386-avx-mpx.c: Remove.
1802 * features/i386/i386-avx.c: Remove.
1803 * features/i386/i386-mmx.c: Remove.
1804 * features/i386/i386-mpx.c: Remove.
1805 * features/i386/i386.c: Remove.
1806 * i386-tdep.c: Don't include features/i386/i386*.c., include
1807 target-descriptions.h and arch/i386.h.
1808 (i386_target_description): Create target descriptions.
1809 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1810 functions. Do self tests.
1811
1812 2017-09-05 Yao Qi <yao.qi@linaro.org>
1813
1814 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1815 * features/i386/amd64-avx-avx512-linux.c: Removed.
1816 * features/i386/amd64-avx-linux.c: Removed.
1817 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1818 * features/i386/amd64-avx-mpx-linux.c: Removed.
1819 * features/i386/amd64-linux.c: Removed.
1820 * features/i386/amd64-mpx-linux.c: Removed.
1821 * features/i386/x32-avx-avx512-linux.c: Removed.
1822 * features/i386/x32-avx-linux.c: Removed.
1823 * features/i386/x32-linux.c: Removed.
1824
1825 2017-09-05 Yao Qi <yao.qi@linaro.org>
1826
1827 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1828 features/i386/*.c.
1829 (amd64_linux_read_description): Call
1830 amd64_create_target_description.
1831 * arch/amd64.c: New file.
1832 * arch/amd64.h: New file.
1833 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1834 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1835
1836 2017-09-05 Yao Qi <yao.qi@linaro.org>
1837
1838 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1839 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1840 (amd64_linux_read_description): Create target descriptions.
1841 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1842 functions. Add unit tests.
1843 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1844 x32-core.xml.
1845 * features/i386/64bit-avx.c: Generated.
1846 * features/i386/64bit-avx512.c: Generated.
1847 * features/i386/64bit-core.c: Generated.
1848 * features/i386/64bit-linux.c: Generated.
1849 * features/i386/64bit-mpx.c: Generated.
1850 * features/i386/64bit-pkeys.c: Generated.
1851 * features/i386/64bit-segments.c: Generated.
1852 * features/i386/64bit-sse.c: Generated.
1853 * features/i386/x32-core.c: Generated.
1854 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1855 c files for amd64-linux and x32-linux.
1856
1857 2017-09-05 Yao Qi <yao.qi@linaro.org>
1858
1859 * amd64-linux-tdep.c (amd64_linux_read_description): New
1860 function.
1861 (amd64_linux_core_read_description): Call
1862 amd64_linux_read_description.
1863 (amd64_linux_init_abi): Likewise.
1864 (amd64_x32_linux_init_abi): Likewise.
1865 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1866 * x86-linux-nat.c (x86_linux_read_description): Call
1867 amd64_linux_read_description.
1868
1869 2017-09-05 Yao Qi <yao.qi@linaro.org>
1870
1871 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1872 comments.
1873
1874 2017-09-05 Yao Qi <yao.qi@linaro.org>
1875
1876 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1877 * features/i386/i386-avx-avx512-linux.c: Remove.
1878 * features/i386/i386-avx-linux.c: Remove.
1879 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1880 * features/i386/i386-avx-mpx-linux.c: Remove.
1881 * features/i386/i386-linux.c: Remove.
1882 * features/i386/i386-mmx-linux.c: Remove.
1883 * features/i386/i386-mpx-linux.c: Remove.
1884
1885 2017-09-05 Yao Qi <yao.qi@linaro.org>
1886
1887 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1888 (SFILES): Add arch/i386.c.
1889 (HFILES_NO_SRCDIR): Add arch/i386.h.
1890 * arch/i386.c: New file.
1891 * arch/i386.h: New file.
1892 * arch/tdesc.h (allocate_target_description): Declare.
1893 (set_tdesc_architecture): Declare.
1894 (set_tdesc_osabi): Declare.
1895 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1896 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1897 include arch/i386.h.
1898 (i386_linux_read_description): Remove code and call
1899 i386_create_target_description.
1900 (set_tdesc_architecture): New function.
1901 (set_tdesc_osabi): New function.
1902 * target-descriptions.h (allocate_target_description): Remove.
1903
1904 2017-09-05 Yao Qi <yao.qi@linaro.org>
1905
1906 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1907 * target-descriptions.c (tdesc_create_feature): Likewise, and
1908 adjust code.
1909 * features/i386/32bit-avx.c: Re-generated.
1910 * features/i386/32bit-avx512.c: Re-generated.
1911 * features/i386/32bit-core.c: Re-generated.
1912 * features/i386/32bit-linux.c: Re-generated.
1913 * features/i386/32bit-mpx.c: Re-generated.
1914 * features/i386/32bit-pkeys.c: Re-generated.
1915 * features/i386/32bit-sse.c: Re-generated.
1916
1917 2017-09-05 Yao Qi <yao.qi@linaro.org>
1918
1919 * regformats/regdef.h (struct reg): Override operator == and !=.
1920
1921 2017-09-05 Yao Qi <yao.qi@linaro.org>
1922
1923 * arch/tdesc.h: New file.
1924 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1925 * target-descriptions.c: Update comments.
1926 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1927 declarations.
1928 * features/i386/32bit-avx.c: Re-generated.
1929 * features/i386/32bit-avx512.c: Re-generated.
1930 * features/i386/32bit-core.c: Re-generated.
1931 * features/i386/32bit-linux.c: Re-generated.
1932 * features/i386/32bit-mpx.c: Re-generated.
1933 * features/i386/32bit-pkeys.c: Re-generated.
1934 * features/i386/32bit-sse.c: Re-generated.
1935
1936 2017-09-05 Yao Qi <yao.qi@linaro.org>
1937
1938 * regformats/regdat.sh: Update generated code.
1939
1940 2017-09-05 Yao Qi <yao.qi@linaro.org>
1941
1942 * regformats/regdat.sh: Adjust code order.
1943
1944 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1945
1946 * expprint.c (dump_subexp_body_standard): Use constant format
1947 string in fprintf_filtered call.
1948
1949 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1950
1951 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1952 NetBSD/i386.
1953 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1954
1955 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1956
1957 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1958
1959 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1960
1961 * bsd-kvm.o: Define _KMEMUSER.
1962 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1963 * configure: Regenerate.
1964
1965 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1966
1967 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1968 * i386-fbsd-nat.c: Likewise.
1969
1970 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1971
1972 * unittests/array-view-selftests.c: Add include of <array>.
1973
1974 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1975
1976 * spu-tdep.c (flush_ea_cache): Add missing argument to
1977 call_function_by_hand.
1978
1979 2017-09-04 Pedro Alves <palves@redhat.com>
1980
1981 * NEWS (Safer support for debugging with no debug info): New.
1982
1983 2017-09-04 Pedro Alves <palves@redhat.com>
1984
1985 * c-exp.y (function_method, function_method_void): Add current
1986 instance flags to TYPE_INSTANCE.
1987 * dwarf2read.c (check_modifier): New.
1988 (compute_delayed_physnames): Assert that only C++ adds delayed
1989 physnames. Mark fn_fields as const/volatile depending on
1990 physname.
1991 * eval.c (make_params): New type_instance_flags parameter. Use
1992 it as the new type's instance flags.
1993 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1994 flags element and pass it to make_params.
1995 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1996 instance flags element.
1997 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1998 * gdbtypes.h: Include "enum-flags.h".
1999 (type_instance_flags): New enum-flags type.
2000 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2001 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2002 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2003 (follow_type_instance_flags): New function.
2004 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2005 * parser-defs.h (follow_type_instance_flags): Declare.
2006 * valops.c (value_struct_elt_for_reference): const/volatile must
2007 match too.
2008
2009 2017-09-04 Pedro Alves <palves@redhat.com>
2010
2011 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2012 function/method scopes; lookup the nested name as a function local
2013 static variable.
2014
2015 2017-09-04 Pedro Alves <palves@redhat.com>
2016
2017 (%type <voidval>): Add function_method.
2018 * c-exp.y (exp): New production for calls with no arguments.
2019 (function_method, function_method_void_or_typelist): New
2020 productions.
2021 (exp): New production for "method()::static_var".
2022 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2023 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2024 Handle OP_FUNC_STATIC_VAR.
2025 * parse.c (operator_length_standard):
2026 Handle OP_FUNC_STATIC_VAR.
2027
2028 2017-09-04 Pedro Alves <palves@redhat.com>
2029
2030 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2031 handling.
2032 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2033 Ditto.
2034 * parse.c (operator_length_standard, operator_check_standard):
2035 Ditto.
2036 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2037
2038 2017-09-04 Pedro Alves <palves@redhat.com>
2039
2040 * ax-gdb.c: Include "typeprint.h".
2041 (gen_expr_for_cast): New function.
2042 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2043 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2044 type is unknown.
2045 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2046 nodebug_data_symbol.
2047 * eval.c: Include "typeprint.h".
2048 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2049 Error out if symbol has unknown type.
2050 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2051 evaluate_subexp_for_cast.
2052 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2053 OP_VAR_MSYM_VALUE.
2054 (evaluate_subexp_for_cast): New function.
2055 * gdbtypes.c (init_nodebug_var_type): New function.
2056 (objfile_type): Use it to initialize types of variables with no
2057 debug info.
2058 * typeprint.c (error_unknown_type): New.
2059 * typeprint.h (error_unknown_type): New declaration.
2060 * compile/compile-c-types.c (convert_type_basic): Handle
2061 TYPE_CODE_ERROR; warn and fallback to int for variables with
2062 unknown type.
2063
2064 2017-09-04 Pedro Alves <palves@redhat.com>
2065
2066 * eval.c (evaluate_var_value): New function, factored out from ...
2067 (evaluate_subexp_standard): ... here.
2068
2069 2017-09-04 Pedro Alves <palves@redhat.com>
2070
2071 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2072 Remove useless assignments to 'op'.
2073
2074 2017-09-04 Pedro Alves <palves@redhat.com>
2075
2076 * eval.c (eval_skip_value): New function.
2077 (evaluate_subexp_standard): Use it.
2078
2079 2017-09-04 Pedro Alves <palves@redhat.com>
2080
2081 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2082 function name from symbol/minsym and pass it to
2083 error_call_unknown_return_type.
2084
2085 2017-09-04 Pedro Alves <palves@redhat.com>
2086
2087 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2088 * ax-gdb.c (gen_msym_var_ref): New function.
2089 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2090 * eval.c (evaluate_var_msym_value): New function.
2091 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2092 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2093 to call_function_by_hand.
2094 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2095 Handle OP_VAR_MSYM_VALUE.
2096 (union exp_element) <msymbol>: New field.
2097 * minsyms.h (struct type): Forward declare.
2098 (find_minsym_type_and_address): Declare.
2099 * parse.c (write_exp_elt_msym): New function.
2100 (write_exp_msymbol): Delete, refactored as ...
2101 (find_minsym_type_and_address): ... this new function.
2102 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2103 (operator_length_standard, operator_check_standard): Handle
2104 OP_VAR_MSYM_VALUE.
2105 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2106
2107 2017-09-04 Pedro Alves <palves@redhat.com>
2108
2109 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2110 TYPE_GNU_IFUNC specially here. Throw error if return type is
2111 unknown.
2112 * ada-typeprint.c (print_func_type): Handle functions with unknown
2113 return type.
2114 * c-typeprint.c (c_type_print_base): Handle functions and methods
2115 with unknown return type.
2116 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2117 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2118 * compile/compile-c-types.c: Include "objfiles.h".
2119 (convert_func): For functions with unknown return type, warn and
2120 default to int.
2121 * compile/compile-object-run.c (compile_object_run): Adjust call
2122 to call_function_by_hand_dummy.
2123 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2124 call_function_by_hand.
2125 * eval.c (evaluate_subexp_standard): Adjust calls to
2126 call_function_by_hand. Handle functions and methods with unknown
2127 return type. Pass expect_type to call_function_by_hand.
2128 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2129 return type.
2130 * gcore.c (call_target_sbrk): Adjust call to
2131 call_function_by_hand.
2132 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2133 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2134 an integer address type instead of nodebug.
2135 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2136 call_function_by_hand.
2137 * infcall.c (error_call_unknown_return_type): New function.
2138 (call_function_by_hand): New "default_return_type" parameter.
2139 Pass it down.
2140 (call_function_by_hand_dummy): New "default_return_type"
2141 parameter. Use it instead of defaulting to int. If there's no
2142 default and the return type is unknown, throw an error. If
2143 there's a default return type, and the called function has no
2144 debug info, then assume the function is prototyped.
2145 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2146 New "default_return_type" parameter.
2147 (error_call_unknown_return_type): New declaration.
2148 * linux-fork.c (call_lseek): Cast return type of lseek.
2149 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2150 call_function_by_hand.
2151 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2152 calls to call_function_by_hand.
2153 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2154 return type.
2155 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2156 (value_nsstring, print_object_command): Adjust calls to
2157 call_function_by_hand.
2158 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2159 functions with unknown return type.
2160 (pascal_type_print_func_varspec_suffix): New function.
2161 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2162 TYPE_CODE_METHOD>: Use it.
2163 * python/py-value.c (valpy_call): Adjust call to
2164 call_function_by_hand.
2165 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2166 call_function_by_hand.
2167 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2168 call_function_by_hand.
2169 * valops.c (value_allocate_space_in_inferior): Adjust call to
2170 call_function_by_hand.
2171 * typeprint.c (type_print_unknown_return_type): New function.
2172 * typeprint.h (type_print_unknown_return_type): New declaration.
2173
2174 2017-09-04 Pedro Alves <palves@redhat.com>
2175
2176 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2177 types with more than one parameter as prototyped.
2178
2179 2017-09-04 Pedro Alves <palves@redhat.com>
2180
2181 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2182 (disassemble_command): Use gdb_disassembly_flags instead of bare
2183 int.
2184 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2185 (dump_insns, do_mixed_source_and_assembly_deprecated)
2186 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2187 Use gdb_disassembly_flags instead of bare int.
2188 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2189 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2190 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2191 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2192 (enum gdb_disassembly_flag): ... values of this new enumeration.
2193 (gdb_disassembly_flags): Define.
2194 (gdb_disassembly)
2195 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2196 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2197 gdb_disassembly_flags instead of bare int.
2198 * record-btrace.c (btrace_insn_history)
2199 (record_btrace_insn_history, record_btrace_insn_history_range)
2200 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2201 instead of bare int.
2202 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2203 Use gdb_disassembly_flags instead of bare int.
2204 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2205 Define.
2206 * target-delegates.c: Regenerate.
2207 * target.c (target_insn_history, target_insn_history_from)
2208 (target_insn_history_range): Use gdb_disassembly_flags instead of
2209 bare int.
2210 * target.h: Include "disasm.h".
2211 (struct target_ops) <to_insn_history, to_insn_history_from,
2212 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2213 int.
2214 (target_insn_history, target_insn_history_from)
2215 (target_insn_history_range): Use gdb_disassembly_flags instead of
2216 bare int.
2217
2218 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2219
2220 * cli/cli-script.c (build_command_line): For if/while commands,
2221 check whether args is empty.
2222
2223 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2224
2225 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2226 (enum command_control_type): Likewise.
2227 (struct command_line): Likewise.
2228 (free_command_lines): Likewise.
2229 (struct command_lines_deleter): Likewise.
2230 (command_line_up): Likewise.
2231 (read_command_lines): Likewise.
2232 (read_command_lines_1): Likewise.
2233 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2234 (enum command_control_type): Likewise.
2235 (struct command_line): Likewise.
2236 (free_command_lines): Likewise.
2237 (struct command_lines_deleter): Likewise.
2238 (command_line_up): Likewise.
2239 (read_command_lines): Likewise.
2240 (read_command_lines_1): Likewise.
2241 * breakpoint.h: Include cli/cli-script.h.
2242 * extension-priv.h: Likewise.
2243 * gdbcmd.h: Likewise.
2244
2245 2017-09-04 Pedro Alves <palves@redhat.com>
2246
2247 * ada-lang.c (is_known_support_routine): Move sal declaration to
2248 where it is initialized.
2249 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2250 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2251 (clear_command, update_static_tracepoint): Remove init_sal
2252 references. Move declarations closer to initializations.
2253 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2254 initializations.
2255 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2256 references. Move sal declarations closer to initializations.
2257 * frame.c (find_frame_sal): Return a symtab_and_line via function
2258 return instead of output parameter. Remove init_sal references.
2259 * frame.h (find_frame_sal): Return a symtab_and_line via function
2260 return instead of output parameter.
2261 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2262 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2263 instead of memset.
2264 (gdbscm_find_pc_line): Remove init_sal reference.
2265 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2266 references. Move declarations closer to initializations.
2267 * infcmd.c (set_step_frame): Update. Move declarations closer to
2268 initializations.
2269 (finish_backward): Remove init_sal references. Move declarations
2270 closer to initializations.
2271 * infrun.c (process_event_stop_test, handle_step_into_function)
2272 (insert_hp_step_resume_breakpoint_at_frame)
2273 (insert_step_resume_breakpoint_at_caller): Likewise.
2274 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2275 (symbol_to_sal): Likewise.
2276 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2277 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2278 to its initialization.
2279 * reverse.c (save_bookmark_command): Use new/delete. Remove
2280 init_sal references. Move declarations closer to initializations.
2281 * source.c (get_current_source_symtab_and_line): Remove brace
2282 initialization.
2283 (set_current_source_symtab_and_line): Now takes the sal by const
2284 reference. Remove brace initialization.
2285 (line_info): Remove init_sal reference.
2286 * source.h (set_current_source_symtab_and_line): Now takes a
2287 symtab_and_line via const reference.
2288 * stack.c (set_current_sal_from_frame): Adjust.
2289 (print_frame_info): Adjust.
2290 (get_last_displayed_sal): Return the sal via function return
2291 instead of via output parameter. Simplify.
2292 (frame_info): Adjust.
2293 * stack.h (get_last_displayed_sal): Return the sal via function
2294 return instead of via output parameter.
2295 * symtab.c (init_sal): Delete.
2296 (find_pc_sect_line): Remove init_sal references. Move
2297 declarations closer to initializations.
2298 (find_function_start_sal): Remove init_sal references. Move
2299 declarations closer to initializations.
2300 * symtab.h (struct symtab_and_line): In-class initialize all
2301 fields.
2302 * tracepoint.c (set_traceframe_context)
2303 (print_one_static_tracepoint_marker): Remove init_sal references.
2304 Move declarations closer to initializations.
2305 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2306 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2307 declarations closer to initializations.
2308 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2309 init_sal references. Adjust.
2310
2311 2017-09-04 Pedro Alves <palves@redhat.com>
2312
2313 * ax-gdb.c (agent_command_1): Use range-for.
2314 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2315 * breakpoint.c: Include "common/array-view.h".
2316 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2317 parameter from struct symtabs_and_lines to
2318 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2319 (breakpoint_sals_to_pc): Change sals parameter from struct
2320 symtabs_and_lines to std::vector reference.
2321 (check_fast_tracepoint_sals): Change sals parameter from struct
2322 symtabs_and_lines to std::array_view. Use range-for.
2323 (decode_static_tracepoint_spec): Return a std::vector instead of
2324 symtabs_and_lines. Update.
2325 (create_breakpoint): Update.
2326 (break_range_command, until_break_command, clear_command): Update.
2327 (base_breakpoint_decode_location, bkpt_decode_location)
2328 (bkpt_probe_create_sals_from_location)
2329 (bkpt_probe_decode_location, tracepoint_decode_location)
2330 (tracepoint_probe_decode_location)
2331 (strace_marker_create_sals_from_location): Return a std::vector
2332 instead of symtabs_and_lines.
2333 (strace_marker_create_breakpoints_sal): Update.
2334 (strace_marker_decode_location): Return a std::vector instead of
2335 symtabs_and_lines. Update.
2336 (update_breakpoint_locations): Change struct symtabs_and_lines
2337 parameters to gdb::array_view. Adjust.
2338 (location_to_sals): Return a std::vector instead of
2339 symtabs_and_lines. Update.
2340 (breakpoint_re_set_default): Use std::vector instead of struct
2341 symtabs_and_lines.
2342 (decode_location_default): Return a std::vector instead of
2343 symtabs_and_lines. Update.
2344 * breakpoint.h: Include "common/array-view.h".
2345 (struct breakpoint_ops) <decode_location>: Now returns a
2346 std::vector instead of returning a symtabs_and_lines via output
2347 parameter.
2348 (update_breakpoint_locations): Change sals parameters to use
2349 gdb::array_view.
2350 * cli/cli-cmds.c (edit_command, list_command): Update to use
2351 std::vector and gdb::array_view.
2352 (ambiguous_line_spec): Adjust to use gdb::array_view and
2353 range-for.
2354 (compare_symtabs): Rename to ...
2355 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2356 const reference and adjust.
2357 (filter_sals): Rewrite using std::vector and standard algorithms.
2358 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2359 (jump_command): Update to use std::vector.
2360 * linespec.c (struct linespec_state) <canonical_names>: Update
2361 comment.
2362 (add_sal_to_sals_basic): Delete.
2363 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2364 (decode_line_2, create_sals_line_offset)
2365 (convert_address_location_to_sals, convert_linespec_to_sals)
2366 (convert_explicit_location_to_sals, parse_linespec)
2367 (event_location_to_sals, decode_line_full, decode_line_1)
2368 (decode_line_with_current_source)
2369 (decode_line_with_last_displayed, decode_objc)
2370 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2371 (linespec_result::~linespec_result): Adjust to use std::vector
2372 instead of symtabs_and_lines.
2373 * linespec.h (linespec_sals::sals): Now a std::vector.
2374 (struct linespec_result): Use std::vector, bool, and in-class
2375 initialization.
2376 (decode_line_1, decode_line_with_current_source)
2377 (decode_line_with_last_displayed): Return std::vector.
2378 * macrocmd.c (info_macros_command): Use std::vector.
2379 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2380 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2381 std::vector.
2382 * probe.h (parse_probes): Return a std::vector.
2383 * python/python.c (gdbpy_decode_line): Use std::vector and
2384 gdb::array_view.
2385 * source.c (select_source_symtab, line_info): Use std::vector.
2386 * stack.c (func_command): Use std::vector.
2387 * symtab.h (struct symtabs_and_lines): Delete.
2388 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2389
2390 2017-09-04 Pedro Alves <palves@redhat.com>
2391
2392 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2393 unittests/array-view-selftests.c.
2394 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2395 * common/array-view.h: New file.
2396 * unittests/array-view-selftests.c: New file.
2397
2398 2017-09-04 Pedro Alves <palves@redhat.com>
2399
2400 * cli/cli-cmds.c (edit_command): Pass message to
2401 ambiguous_line_spec.
2402 (list_command): Pass message to ambiguous_line_spec. Say
2403 "first"/"last" instead of "start" and "end" to be consistent with
2404 the manual.
2405 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2406 them to print formatted message.
2407
2408 2017-09-04 Pedro Alves <palves@redhat.com>
2409
2410 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2411 ftrace_update_insns by reference instead of pointer.
2412
2413 2017-09-04 Yao Qi <yao.qi@linaro.org>
2414
2415 * i386-go32-tdep.c: Include x86-xstate.h.
2416 (i386_go32_init_abi): Call i386_target_description.
2417 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2418 if xcr0 is X86_XSTATE_X87_MASK.
2419 * i386-tdep.h (tdesc_i386): Remove the declaration.
2420 (tdesc_i386_mmx): Likewise.
2421
2422 2017-09-04 Yao Qi <yao.qi@linaro.org>
2423
2424 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2425 X86_XSTATE_SSE_MASK instead of 0.
2426
2427 2017-09-04 Yao Qi <yao.qi@linaro.org>
2428
2429 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2430 i386_target_description.
2431 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2432 i386_target_description.
2433 * i386-tdep.c (i386_gdbarch_init): Likewise.
2434
2435 2017-09-04 Yao Qi <yao.qi@linaro.org>
2436
2437 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2438 (x86_darwin_init_abi_64): Call amd64_target_description.
2439 * amd64-dicos-tdep.c: Likewise.
2440 * amd64-fbsd-nat.c: Likewise.
2441 * amd64-fbsd-tdep.c: Likewise.
2442 * amd64-nbsd-tdep.c: Likewise.
2443 * amd64-obsd-tdep.c: Likewise.
2444 * amd64-sol2-tdep.c: Likewise.
2445 * amd64-windows-tdep.c: Likewise.
2446 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2447
2448 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2449
2450 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2451 (btrace_function) <insn>: Change type to use std::vector.
2452 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2453 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2454 ftrace_update_insns, ftrace_compute_global_level_offset,
2455 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2456 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2457 change to std::vector.
2458 (ftrace_update_insns): Adjust to change to std::vector, change
2459 type of INSN parameter.
2460 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2461 * record-btrace.c (btrace_call_history_insn_range,
2462 btrace_compute_src_line_range,
2463 record_btrace_frame_prev_register): Adjust to change to
2464 std::vector.
2465 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2466 to change to std::vector.
2467
2468 2017-09-03 Tom Tromey <tom@tromey.com>
2469
2470 * corefile.c (reopen_exec_file): Use std::string.
2471
2472 2017-09-03 Tom Tromey <tom@tromey.com>
2473
2474 * compile/compile.c (compile_register_name_mangled): Return
2475 std::string.
2476 * compile/compile-loc2c.c (pushf_register_address): Update.
2477 (pushf_register): Update.
2478 * compile/compile-c-types.c (convert_array): Update.
2479 * compile/compile-c-symbols.c (generate_vla_size): Update.
2480 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2481 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2482 (convert_one_symbol): Update.
2483 (generate_c_for_for_one_variable): Update.
2484 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2485 std::string.
2486 (generate_register_struct): Update.
2487 * compile/compile-internal.h (c_get_range_decl_name): Return a
2488 std::string.
2489 (compile_register_name_mangled): Return std::string.
2490
2491 2017-09-03 Tom Tromey <tom@tromey.com>
2492
2493 * utils.c (perror_string): Return a std::string.
2494 (throw_perror_with_name, perror_warning_with_name): Update.
2495
2496 2017-09-03 Tom Tromey <tom@tromey.com>
2497
2498 * demangle.c (demangle_command): Use std::string,
2499 unique_xmalloc_ptr.
2500
2501 2017-09-03 Tom Tromey <tom@tromey.com>
2502
2503 * cli/cli-setshow.c (do_set_command): Use std::string.
2504
2505 2017-09-03 Tom Tromey <tom@tromey.com>
2506
2507 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2508
2509 2017-09-03 Tom Tromey <tom@tromey.com>
2510
2511 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2512
2513 2017-09-03 Tom Tromey <tom@tromey.com>
2514
2515 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2516 gdb::unique_xmalloc_ptr.
2517
2518 2017-09-03 Tom Tromey <tom@tromey.com>
2519
2520 * thread.c (print_thread_info_1): Use string_printf.
2521 (thread_apply_command, thread_apply_all_command): Use
2522 std::string.
2523
2524 2017-09-03 Tom Tromey <tom@tromey.com>
2525
2526 * valprint.c (val_print_string): Update.
2527 * gdbcore.h (memory_error_message): Return std::string.
2528 * corefile.c (memory_error_message): Return std::string.
2529 (memory_error): Update.
2530 * breakpoint.c (insert_bp_location): Update.
2531
2532 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2533
2534 * target/waitstatus.h (target_waitstatus_to_string): Change
2535 return type to std::string.
2536 * target/waitstatus.c (target_waitstatus_to_string): Return
2537 std::string.
2538 * target.h (target_waitstatus_to_string): Remove declaration.
2539 * infrun.c (resume, clear_proceed_status_thread,
2540 print_target_wait_results, do_target_wait, save_waitstatus,
2541 stop_all_threads): Adjust.
2542 * record-btrace.c (record_btrace_wait): Adjust.
2543 * target-debug.h
2544 (target_debug_print_struct_target_waitstatus_p): Adjust.
2545
2546 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2547
2548 PR gdb/22046
2549 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2550 detection.
2551
2552 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2553
2554 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2555 for setting/unsetting environment variables on the remote target.
2556 (New remote packets): Add entries for QEnvironmentHexEncoded,
2557 QEnvironmentUnset and QEnvironmentReset.
2558 * common/environ.c (gdb_environ::operator=): Extend method to
2559 handle m_user_set_env_list and m_user_unset_env_list.
2560 (gdb_environ::clear): Likewise.
2561 (match_var_in_string): Change type of first parameter from 'char
2562 *' to 'const char *'.
2563 (gdb_environ::set): Extend method to handle
2564 m_user_set_env_list and m_user_unset_env_list.
2565 (gdb_environ::unset): Likewise.
2566 (gdb_environ::clear_user_set_env): New method.
2567 (gdb_environ::user_set_envp): Likewise.
2568 (gdb_environ::user_unset_envp): Likewise.
2569 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2570 m_user_unset_env_list on move constructor/assignment.
2571 (unset): Add new default parameter 'update_unset_list = true'.
2572 (clear_user_set_env): New method.
2573 (user_set_envp): Likewise.
2574 (user_unset_envp): Likewise.
2575 (m_user_set_env_list): New std::set.
2576 (m_user_unset_env_list): Likewise.
2577 * common/rsp-low.c (hex2str): New function.
2578 (bin2hex): New overload for bin2hex function.
2579 * common/rsp-low.c (hex2str): New prototype.
2580 (str2hex): New overload prototype.
2581 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2582 QEnvironmentUnset and QEnvironmentReset.
2583 (remote_protocol_features): Add QEnvironmentHexEncoded,
2584 QEnvironmentUnset and QEnvironmentReset packets.
2585 (send_environment_packet): New function.
2586 (extended_remote_environment_support): Likewise.
2587 (extended_remote_create_inferior): Call
2588 extended_remote_environment_support.
2589 (_initialize_remote): Add QEnvironmentHexEncoded,
2590 QEnvironmentUnset and QEnvironmentReset packet configs.
2591 * unittests/environ-selftests.c (gdb_selftest_env_var):
2592 New variable.
2593 (test_vector_initialization): New function.
2594 (test_init_from_host_environ): Likewise.
2595 (test_reinit_from_host_environ): Likewise.
2596 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2597 Likewise.
2598 (test_unset_set_empty_vector): Likewise.
2599 (test_vector_clear): Likewise.
2600 (test_std_move): Likewise.
2601 (test_move_constructor):
2602 (test_self_move): Likewise.
2603 (test_set_unset_reset): Likewise.
2604 (run_tests): Rewrite in terms of the functions above.
2605
2606 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2607
2608 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2609 (adi_available): Use a temp variable of type CORE_ADDR as argument
2610 3 when calling target_auxv_search.
2611 (adi_normalize_address): Use masks and xor operators to calculate
2612 normalized address.
2613 (adi_read_versions, adi_write_versions, adi_print_versions)
2614 (do_examine, do_assign): Use paddress.
2615
2616 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2617
2618 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2619 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2620 out of loop and add supply of FIR.
2621 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2622 add collect of FIR.
2623
2624 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2625
2626 PR gdb/21827
2627 * cli/cli-script.c (define_command): Don't convert command name
2628 to lower case.
2629
2630 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2631
2632 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2633 Update all callers accordingly. Remove all code blocks handling
2634 the case where DISPP is not NULL.
2635
2636 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 PR symtab/22003
2639 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2640 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2641 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2642
2643 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2646 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2647 (read_comp_units_from_section): New parameter abbrev_section, use
2648 read_and_check_comp_unit_head, allocate signatured_type if needed.
2649 (create_all_comp_units): Update read_comp_units_from_section caller.
2650
2651 2017-08-23 Pedro Alves <palves@redhat.com>
2652
2653 PR remote/21852
2654 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2655 to null_ptid and switch to thread without reading the registers
2656 after adding the inferior.
2657
2658 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2661 compile-gcc.
2662 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2663 (compile_to_object): Implement compile_gcc.
2664 (_initialize_compile): Install "set compile-gcc". Initialize
2665 compile_gcc.
2666
2667 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2668
2669 * compile/compile.c (compile_to_object): Conditionally call
2670 set_verbose. Conditionally call compile or compile_v0.
2671
2672 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2673
2674 * sparc64-tdep.h: (adi_normalize_address): New export.
2675 * sparc-nat.h: (open_adi_tag_fd): New export.
2676 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2677 * sparc64-linux-tdep.c:
2678 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2679 (sparc64_linux_handle_segmentation_fault): New function.
2680 (sparc64_linux_init_abi): Register
2681 sparc64_linux_handle_segmentation_fault
2682 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2683 (sparc64_addr_bits_remove): New function.
2684 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2685 (MAX_PROC_NAME_SIZE): New macro.
2686 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2687 (sparc64adilist): New variable.
2688 (adi_proc_list): New variable.
2689 (find_adi_info): New function.
2690 (add_adi_info): New function.
2691 (get_adi_info_proc): New function.
2692 (get_adi_info): New function.
2693 (info_adi_command): New function.
2694 (read_maps_entry): New function.
2695 (adi_available): New function.
2696 (adi_normalize_address): New function.
2697 (adi_align_address): New function.
2698 (adi_convert_byte_count): New function.
2699 (adi_tag_fd): New function.
2700 (adi_is_addr_mapped): New function.
2701 (adi_read_versions): New function.
2702 (adi_write_versions): New function.
2703 (adi_print_versions): New function.
2704 (do_examine): New function.
2705 (do_assign): New function.
2706 (adi_examine_command): New function.
2707 (adi_assign_command): New function.
2708 (_initialize_sparc64_adi_tdep): New function.
2709
2710 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2711
2712 * breakpoint.c (breakpoints_info): Rename to ...
2713 (info_breakpoints_command): ... this.
2714 (watchpoints_info): Rename to ...
2715 (info_watchpoints_command): ... this.
2716 (tracepoints_info): Rename to ...
2717 (info_tracepoints_command): ... this.
2718 (_initialize_breakpoint): Adjust.
2719 * dcache.c (dcache_info): Rename to ...
2720 (info_display_command): ... this.
2721 (_initialize_dcache): Adjust.
2722 * frame.h (args_info): Rename to ...
2723 (info_args_command): ... this.
2724 (locals_info): Rename to ...
2725 (info_locals_command): ... this.
2726 * infcmd.c (nofp_registers_info): Rename to ...
2727 (info_registers_command): ... this.
2728 (float_info): Rename to ...
2729 (info_float_command): ... this.
2730 (program_info): Rename to ...
2731 (info_program_command): ... this.
2732 (all_registers_info): Rename to ...
2733 (info_all_registers_command): ... this.
2734 (vector_info): Rename to ...
2735 (info_vector_command): ... this.
2736 (float_info): Rename to ...
2737 (info_float_command): ... this.
2738 (_initialize_infcmd): Adjust.
2739 * inferior.h (term_info): Rename to ...
2740 (info_terminal_command): ... this.
2741 * inflow.c (term_info): Rename to ...
2742 (info_terminal_command): ... this.
2743 (_initialize_inflow): Adjust.
2744 * infrun.c (signals_info): Rename to ...
2745 (info_signals_command): ... this.
2746 (_initialize_infrun): Adjust.
2747 * objc-lang.c (classes_info): Rename to ...
2748 (info_classes_command): ... this.
2749 (selectors_info): Rename to ...
2750 (info_selectors_command): ... this.
2751 (_initialize_objc_language): Adjust.
2752 * printcmd.c (sym_info): Rename to ...
2753 (info_symbol_command): ... this.
2754 (address_info): Rename to ...
2755 (info_address_command): ... this.
2756 (display_info): Rename to ...
2757 (info_display_command): ... this.
2758 (_initialize_printcmd): Adjust.
2759 * reverse.c (bookmarks_info): Rename to ...
2760 (info_breakpoints_command): ... this.
2761 (_initialize_reverse): Adjust.
2762 * ser-go32.c (dos_info): Rename to ...
2763 (info_serial_command): ... this.
2764 (_initialize_ser_dos): Adjust.
2765 * skip.c (skip_info): Rename to ...
2766 (info_skip_command): ... this.
2767 (_initialize_step_skip): Adjust.
2768 * source.c (line_info): Rename to ...
2769 (info_line_command): ... this.
2770 (source_info): Rename to ...
2771 (info_source_command)
2772 * stack.c (frame_info): Rename to ...
2773 (info_frame_command): ... this.
2774 (locals_info): Rename to ...
2775 (info_locals_command): ... this.
2776 (args_info): Rename to ...
2777 (info_args_command): ... this.
2778 (_initialize_stack): Adjust.
2779 * symtab.c (sources_info): Rename to ...
2780 (info_sources_command): ... this.
2781 (variables_info): Rename to ...
2782 (info_variables_command): ... this.
2783 (functions_info): Rename to ...
2784 (info_functions_command): ... this.
2785 (types_info): Rename to ...
2786 (info_types_command): ... this.
2787 (_initialize_symtab): Adjust.
2788 * target.c (target_info): Rename to ...
2789 (info_target_command): ... this.
2790 (initialize_targets): Adjust.
2791 * tracepoint.c (tvariables_info): Rename to ...
2792 (info_tvariables_command): ... this.
2793 (scope_info): Rename to ...
2794 (info_scope_command): ... this.
2795 (trace_dump_actions): Adjust.
2796 (_initialize_tracepoint): Adjust.
2797
2798 2017-08-22 Tom Tromey <tom@tromey.com>
2799
2800 * breakpoint.h (install_breakpoint): Update.
2801 * breakpoint.c (add_solib_catchpoint): Update.
2802 (install_breakpoint): Change argument to a std::unique_ptr.
2803 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2804 (create_breakpoint_sal, create_breakpoint): Update.
2805 (watch_command_1, catch_exec_command_1)
2806 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2807 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2808 Return the breakpoint.
2809 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2810 (new_single_step_breakpoint): Update.
2811 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2812 std::unique_ptr.
2813 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2814 std::unique_ptr.
2815 * break-catch-sig.c (create_signal_catchpoint): Use
2816 std::unique_ptr.
2817 * ada-lang.c (create_ada_exception_catchpoint): Use
2818 std::unique_ptr.
2819
2820 2017-08-22 Tom Tromey <tom@tromey.com>
2821
2822 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2823
2824 2017-08-22 Tom Tromey <tom@tromey.com>
2825
2826 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2827 (lookup_partial_symbol): Update.
2828
2829 2017-08-22 Tom Tromey <tom@tromey.com>
2830
2831 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2832 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2833 (find_and_open_source, symtab_to_fullname): Update.
2834 * psymtab.c (psymtab_to_fullname): Update.
2835
2836 2017-08-22 Tom Tromey <tom@tromey.com>
2837
2838 * exec.c (exec_file_attach): Update.
2839 * linux-thread-db.c (try_thread_db_load): Update.
2840 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2841 * utils.c (gdb_realpath): Change return type.
2842 (gdb_realpath_keepfile): Update.
2843 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2844 (_initialize_utils): Register the new self test.
2845 * source.c (openp): Update.
2846 (find_and_open_source): Update.
2847 * nto-tdep.c (nto_find_and_open_solib): Update.
2848 * main.c (set_gdb_data_directory): Update.
2849 (captured_main_1): Update.
2850 * dwarf2read.c (dwarf2_get_dwz_file): Update
2851 (dw2_map_symbol_filenames): Update.
2852 * auto-load.c (auto_load_safe_path_vec_update): Update.
2853 (filename_is_in_auto_load_safe_path_vec): Change type of
2854 "filename_realp".
2855 (auto_load_objfile_script): Update.
2856 (file_is_auto_load_safe): Update. Use std::string.
2857 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2858
2859 2017-08-22 Tom Tromey <tom@tromey.com>
2860
2861 * utils.c (gdb_realpath_keepfile): Return a
2862 gdb::unique_xmalloc_ptr.
2863 * exec.c (exec_file_attach): Update.
2864 * utils.h (gdb_realpath_keepfile): Return a
2865 gdb::unique_xmalloc_ptr.
2866
2867 2017-08-22 Tom Tromey <tom@tromey.com>
2868
2869 * compile/compile.c (compile_file_command): Use
2870 gdb::unique_xmalloc_ptr, std::string.
2871 * utils.c (gdb_abspath): Change return type.
2872 * source.c (openp): Update.
2873 * objfiles.c (allocate_objfile): Update.
2874 * main.c (set_gdb_data_directory): Update.
2875 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2876
2877 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2878
2879 * cli-cmds.c (list_commands): List actual code around more than
2880 one location.
2881
2882 2017-08-21 John Baldwin <jhb@FreeBSD.org>
2883
2884 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2885
2886 2017-08-21 Pedro Alves <palves@redhat.com>
2887
2888 PR gdb/19487
2889 * c-exp.y (variable production): Handle function aliases.
2890 * minsyms.c (msymbol_is_text): New function.
2891 * minsyms.h (msymbol_is_text): Declare.
2892 * symtab.c (find_function_alias_target): New function.
2893 * symtab.h (find_function_alias_target): Declare.
2894
2895 2017-08-21 Pedro Alves <palves@redhat.com>
2896
2897 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2898 typedefs.
2899 * typeprint.c (whatis_exp): If handling "whatis", and expression
2900 is OP_TYPE, strip one typedef level. Otherwise don't strip
2901 typedefs here.
2902 * valops.c (value_cast): Save "to" type before resolving
2903 stubs/typedefs. Use that type as resulting value's type.
2904
2905 2017-08-18 Tom Tromey <tom@tromey.com>
2906 Pedro Alves <palves@redhat.com>
2907
2908 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2909 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2910 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2911 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2912 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2913 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2914 (linux_get_siginfo_data): Add "thread" argument. Use
2915 scoped_restore.
2916 * linux-nat.c (linux_child_follow_fork)
2917 (check_stopped_by_watchpoint): Use scoped_restore.
2918 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2919 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2920 (restore_inferior_ptid, save_inferior_ptid): Remove.
2921 * btrace.c (btrace_fetch): Use scoped_restore.
2922 * bsd-uthread.c (bsd_uthread_fetch_registers)
2923 (bsd_uthread_store_registers): Use scoped_restore.
2924 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2925 scoped_restore.
2926 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2927 (aix_thread_xfer_partial): Use scoped_restore.
2928 * inferior.h (save_inferior_ptid): Remove.
2929
2930 2017-08-18 Yao Qi <yao.qi@linaro.org>
2931
2932 PR tdep/21818
2933 * arm-tdep.c (gdb_print_insn_arm): Mark
2934 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2935
2936 2017-08-18 Yao Qi <yao.qi@linaro.org>
2937
2938 * NEWS: Mention GDBserver's new option "--selftest".
2939 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2940 * selftest.c: Move it to common/selftest.c.
2941 * selftest.h: Move it to common/selftest.h.
2942 * selftest-arch.c (reset): New function.
2943 (tests_with_arch): Call reset.
2944
2945 2017-08-18 Yao Qi <yao.qi@linaro.org>
2946
2947 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2948 instead of exception_fprintf and printf_filtered.
2949
2950 2017-08-18 Yao Qi <yao.qi@linaro.org>
2951
2952 * selftest.c (register_self_test): Rename it to
2953 selftests::register_test.
2954 (run_self_tests): selftest::run_tests.
2955 * selftest.h: Update declarations.
2956 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2957 selftests::register_test_foreach_arch.
2958 * selftest-arch.h: Update declaration.
2959 * aarch64-tdep.c: Update.
2960 * arm-tdep.c: Likewise.
2961 * disasm-selftests.c: Likewise.
2962 * dwarf2loc.c: Likewise.
2963 * dwarf2-frame.c: Likewise.
2964 * findvar.c: Likewise.
2965 * gdbarch-selftests.c: Likewise.
2966 * maint.c (maintenance_selftest): Likewise.
2967 * regcache.c: Likewise.
2968 * rust-exp.y: Likewise.
2969 * selftest-arch.c: Likewise.
2970 * unittests/environ-selftests.c: Likewise.
2971 * unittests/function-view-selftests.c: Likewise.
2972 * unittests/offset-type-selftests.c: Likewise.
2973 * unittests/optional-selftests.c: Likewise.
2974 * unittests/scoped_restore-selftests.c: Likewise.
2975 * utils-selftests.c: Likewise.
2976
2977 2017-08-17 Pedro Alves <palves@redhat.com>
2978
2979 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2980 local.
2981
2982 2017-08-17 Pedro Alves <palves@redhat.com>
2983
2984 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2985 field.
2986 (reset_die_in_process): Delete, replaced by ...
2987 (process_die_scope): ... this new class. Make it responsible for
2988 freeing cu->line_header too.
2989 (process_die): Use process_die_scope.
2990 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2991 cu->line_header_die_owner. Don't release the line header if it's
2992 owned by the CU.
2993 (setup_type_unit_groups): Make the CU/DIE own the line header.
2994 Don't release the line header here.
2995
2996 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2997
2998 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2999
3000 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3001
3002 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3003 Single-Key mode
3004
3005 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3006
3007 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3008 mode command list.
3009
3010 2017-08-15 Stafford Horne <shorne@gmail.com>
3011
3012 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3013
3014 2017-08-15 Stafford Horne <shorne@gmail.com>
3015
3016 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3017
3018 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3019
3020 PR gdb/21954
3021 * infcmd.c (unset_environment_command): Use the 'clear' method on
3022 the environment instead of resetting it.
3023
3024 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3025
3026 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3027 platforms.
3028
3029 2017-08-14 Tom Tromey <tom@tromey.com>
3030
3031 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3032 (print_binary_chars): Likewise.
3033 (BITS_IN_BYTES): Remove.
3034
3035 2017-08-14 Tom Tromey <tom@tromey.com>
3036
3037 PR gdb/21675
3038 * valprint.c (LOW_ZERO): Change value to 034.
3039 (print_octal_chars): Add static_asserts for octal constants.
3040 * printcmd.c (print_scalar_formatted): Add 'd' case.
3041
3042 2017-08-11 Tom Tromey <tom@tromey.com>
3043
3044 * symfile.c (add_symbol_file_command): Use std::vector.
3045
3046 2017-08-14 Tom Tromey <tom@tromey.com>
3047
3048 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3049 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3050 std::move.
3051 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3052
3053 2017-08-11 Pedro Alves <palves@redhat.com>
3054
3055 * infrun.c (process_event_stop_test): Adjust
3056 function_name_is_marked_for_skip call.
3057 * skip.c: Include <list>.
3058 (skiplist_entry): Make it a class with private fields, and
3059 getters/setters.
3060 (skiplist_entry_chain): Delete.
3061 (skiplist_entries): New.
3062 (skiplist_entry_count): Delete.
3063 (highest_skiplist_entry_num): New.
3064 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3065 (add_skiplist_entry): Delete.
3066 (skiplist_entry::skiplist_entry): New.
3067 (skiplist_entry::add_entry): New.
3068 (skip_file_command, skip_function): Adjust.
3069 (compile_skip_regexp): Delete.
3070 (skip_command): Don't compile regexp here. Adjust to use
3071 skiplist_entry::add_entry.
3072 (skip_info): Adjust to use range-for and getters.
3073 (skip_enable_command, skip_disable_command): Adjust to use
3074 range-for and setters.
3075 (skip_delete_command): Adjust to use std::list.
3076 (add_skiplist_entry): Delete.
3077 (skip_file_p): Delete, refactored as ...
3078 (skiplist_entry::do_skip_file_p): ... this new method.
3079 (skip_gfile_p): Delete, refactored as ...
3080 (skiplist_entry::do_gskip_file_p): ... this new method.
3081 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3082 (skiplist_entry::skip_function_p): ... this new method.
3083 (function_name_is_marked_for_skip): Now returns bool, and takes
3084 the function sal by const reference. Adjust to use range-for and
3085 skiplist_entry methods.
3086 (_initialize_step_skip): Remove references to
3087 skiplist_entry_chain, skiplist_entry_count.
3088 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3089 takes the function sal by const reference.
3090
3091 2017-08-11 Yao Qi <yao.qi@linaro.org>
3092
3093 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3094 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3095 (dwarf2_frame_cache):
3096 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3097 RETURN_MASK_ALL and set *this_case to NULL.
3098 * frame-unwind.h: Update comments.
3099
3100 2017-08-11 Yao Qi <yao.qi@linaro.org>
3101
3102 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3103 (dwarf2_frame_state_copy_regs): Remove.
3104 (dwarf2_frame_state_free_regs): Remove.
3105 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3106 (dwarf2_restore_rule): Call method .alloc_regs instead of
3107 dwarf2_frame_state_alloc_regs.
3108 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3109 constructor. Call std::move.
3110 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3111 (dwarf2_frame_cache): Likewise.
3112
3113 [GDB_SELF_TEST]: Include selftest.h and
3114 selftest-arch.h.
3115 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3116 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3117 execute_cfa_program_test.
3118
3119 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3120 copy ctor, assignment operator, move assignment.
3121 <alloc_regs>: New method.
3122 <swap>: New method.
3123 (struct dwarf2_frame_state): Delete dtor.
3124 (dwarf2_frame_state_alloc_regs): Remove declaration.
3125 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3126 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3127
3128 2017-08-11 Yao Qi <yao.qi@linaro.org>
3129
3130 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3131 (dwarf2_frame_state::dwarf2_frame_state): New.
3132 (dwarf2_frame_state::~dwarf2_frame_state): New.
3133 (dwarf2_fetch_cfa_info): Update.
3134 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3135 rather than a pointer. Update code.
3136 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3137 dtor.
3138 <data_align, code_align, retaddr_column>: Change them to const.
3139 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3140 to bool.
3141
3142 2017-08-11 Yao Qi <yao.qi@linaro.org>
3143
3144 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3145 <loc.exp>: New field.
3146 * dwarf2-frame.c (execute_cfa_program): Update.
3147 (dwarf2_frame_prev_register): Update.
3148
3149 2017-08-10 Pedro Alves <palves@redhat.com>
3150
3151 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3152
3153 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3154
3155 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3156 (fbsd_pending_children): Use std::list.
3157 (fbsd_remember_child): Likewise.
3158 (fbsd_is_child_pending): Likewise.
3159 (fbsd_pending_vfork_done): Use std::forward_list.
3160 (fbsd_add_vfork_done): Likewise.
3161 (fbsd_is_vfork_done_pending): Likewise.
3162 (fbsd_next_vfork_done): Likewise.
3163
3164 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3165
3166 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3167 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3168 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3169 for `mapfilename'.
3170 (fbsd_xfer_partial): Use gdb::byte_vector.
3171 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3172
3173 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3174
3175 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3176 "filestuff.h".
3177 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3178
3179 2017-08-09 Tom Tromey <tom@tromey.com>
3180
3181 * skip.c (skiplist_entry): New constructor.
3182 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3183 (skiplist_entry::file_is_glob): Now bool.
3184 (skiplist_entry::file, skiplist_entry::function): Now
3185 std::string.
3186 (make_skip_entry): Return a unique_ptr. Use new.
3187 (free_skiplist_entry, free_skiplist_entry_cleanup)
3188 (make_free_skiplist_entry_cleanup): Remove.
3189 (skip_command, skip_disable_command, add_skiplist_entry)
3190 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3191 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3192 (function_name_is_marked_for_skip): Update.
3193 (skip_delete_command): Update. Use delete.
3194
3195 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3196
3197 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3198 (aarch64_linux_core_read_description): New function.
3199 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3200
3201 2017-08-09 Pedro Alves <palves@redhat.com>
3202
3203 * cp-name-parser.y (cp_comp_to_string): Return a
3204 gdb::unique_xmalloc_ptr<char>.
3205 * cp-support.c (replace_typedefs_qualified_name)
3206 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3207 (cp_canonicalize_string_full): Use op= instead of explicit
3208 convertion.
3209 (cp_class_name_from_physname, method_name_from_physname)
3210 (cp_func_name, cp_remove_params): Adjust to use
3211 gdb::unique_xmalloc_ptr<char>.
3212 * cp-support.h (cp_comp_to_string): Return a
3213 gdb::unique_xmalloc_ptr<char>.
3214 * python/py-type.c (typy_lookup_type): Adjust to use
3215 gdb::unique_xmalloc_ptr<char>.
3216
3217 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3218
3219 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3220
3221 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3222 Yao Qi <yao.qi@linaro.org>
3223
3224 * cp-support.c (cp_canonicalize_string_full): Use
3225 gdb::unique_xmalloc_ptr<char>.
3226 (cp_canonicalize_string): Likewise.
3227
3228 2017-08-09 Yao Qi <yao.qi@linaro.org>
3229
3230 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3231 * regformats/i386/amd64-avx-avx512.dat: Remove.
3232 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3233 * regformats/i386/amd64-avx-mpx.dat:Remove.
3234 * regformats/i386/amd64-avx.dat: Remove.
3235 * regformats/i386/amd64-mpx.dat: Remove.
3236 * regformats/i386/i386-avx-avx512.dat: Remove.
3237 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3238 * regformats/i386/i386-avx-mpx.dat: Remove.
3239 * regformats/i386/i386-mmx.dat: Remove.
3240 * regformats/i386/i386-mpx.dat: Remove.
3241
3242 2017-08-09 Yao Qi <yao.qi@linaro.org>
3243
3244 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3245 * amd64-tdep.c: Don't include features/i386/x32*.c.
3246 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3247 functions.
3248 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3249 and i386/x32-avx-avx512.
3250 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3251 and i386/x32.xml.
3252 * features/i386/x32-avx-avx512.c: Removed.
3253 * features/i386/x32-avx-avx512.xml: Removed.
3254 * features/i386/x32-avx.c: Removed.
3255 * features/i386/x32-avx.xml: Removed.
3256 * features/i386/x32.c: Removed.
3257 * features/i386/x32.xml: Removed.
3258 * regformats/i386/x32-avx-avx512.dat: Removed.
3259 * regformats/i386/x32-avx.dat: Removed.
3260 * regformats/i386/x32.dat: Removed.
3261
3262 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3263
3264 PR breakpoints/21886
3265 * mem-break.c (default_memory_insert_breakpoint): Use
3266 `->placed_address' rather than `->reqstd_address' for the
3267 breakpoint location.
3268
3269 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3270
3271 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3272 assertions.
3273
3274 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3275
3276 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3277 a union of `tdep_info', `tdesc_data' and `id'.
3278 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3279 rather than `info.tdep_info'.
3280 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3281 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3282 * i386-tdep.c (i386_gdbarch_init): Likewise.
3283 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3284 * mips-tdep.c (mips_gdbarch_init): Likewise.
3285 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3286 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3287 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3288 `info.tdep_info'.
3289 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3290 `info.tdep_info'.
3291 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3292 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3293 `info.tdep_info'.
3294 * spu-tdep.c (spu_gdbarch_init): Likewise.
3295 * gdbarch.h: Regenerate.
3296
3297 2017-08-07 Leszek Swirski <leszeks@google.com>
3298
3299 PR symtab/20899
3300 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3301
3302 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3303
3304 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3305 (gdbsim_open): Rename gdb_argv args object to argv.
3306
3307 2017-08-05 Tom Tromey <tom@tromey.com>
3308
3309 * compile/compile-object-load.c (compile_object_load): Use
3310 gdb::unique_xmalloc_ptr.
3311 * cli/cli-dump.c (scan_filename): Rename from
3312 scan_filename_with_cleanup. Change return type.
3313 (scan_expression): Rename from scan_expression_with_cleanup.
3314 Change return type.
3315 (dump_memory_to_file, dump_value_to_file, restore_command):
3316 Use gdb::unique_xmalloc_ptr. Update.
3317 * cli/cli-cmds.c (find_and_open_script): Use
3318 gdb::unique_xmalloc_ptr.
3319 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3320 * symmisc.c (maintenance_print_symbols)
3321 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3322 * symfile.c (symfile_bfd_open, generic_load)
3323 (add_symbol_file_command, remove_symbol_file_command): Use
3324 gdb::unique_xmalloc_ptr.
3325 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3326 * psymtab.c (maintenance_print_psymbols): Use
3327 gdb::unique_xmalloc_ptr.
3328 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3329 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3330 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3331 (reload_shared_libraries_1): Likewise.
3332
3333 2017-08-05 Tom Tromey <tom@tromey.com>
3334
3335 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3336 (rust_op_vector, rust_set_vector): New typedefs.
3337 (current_parser): New global.
3338 (work_obstack): Change to pointer type. Update all users.
3339 (rust_ast, pstate): Remove globals.
3340 (struct rust_parser): New.
3341 (%union) <params, field_inits>: Change type.
3342 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3343 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3344 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3345 (convert_params_to_types, convert_params_to_expression): Change
3346 type of "params".
3347 (ast_string): Change type of "fields".
3348 (rust_parse): Make a rust_parser. Remove cleanups.
3349 (rust_lex_tests): Make and install an auto_obstack.
3350
3351 2017-08-04 Yao Qi <yao.qi@linaro.org>
3352
3353 * configure.srv (ipa_x32_linux_regobj): New.
3354 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3355 instead of X86_TDESC_AVX512.
3356 (initialize_low_tracepoint): Call
3357 init_registers_x32_avx_avx512_linux.
3358
3359 2017-08-04 Yao Qi <yao.qi@linaro.org>
3360
3361 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3362
3363 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3364
3365 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3366
3367 2017-08-03 Tom Tromey <tom@tromey.com>
3368
3369 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3370 Remove.
3371 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3372
3373 2017-08-03 Tom Tromey <tom@tromey.com>
3374
3375 * python/py-param.c (compute_enum_values): Use gdb_argv.
3376
3377 2017-08-03 Tom Tromey <tom@tromey.com>
3378
3379 * utils.h (struct gdb_argv_deleter): New.
3380 (gdb_argv): New class.
3381 * utils.c (gdb_argv::reset): New method.
3382 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3383 * tracefile.c (tsave_command): Use gdb_argv.
3384 * top.c (new_ui_command): Use gdb_argv.
3385 * symmisc.c (maintenance_print_symbols)
3386 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3387 * symfile.c (symbol_file_command, generic_load)
3388 (remove_symbol_file_command): Use gdb_argv.
3389 * stack.c (backtrace_command): Use gdb_argv.
3390 * source.c (add_path, show_substitute_path_command)
3391 (unset_substitute_path_command, set_substitute_path_command):
3392 Use gdb_argv.
3393 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3394 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3395 * remote.c (extended_remote_run, remote_put_command)
3396 (remote_get_command, remote_delete_command): Use gdb_argv.
3397 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3398 (gdbsim_open): Use gdb_argv.
3399 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3400 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3401 * procfs.c (procfs_info_proc): Use gdb_argv.
3402 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3403 * infrun.c (handle_command): Use gdb_argv.
3404 * inferior.c (add_inferior_command, clone_inferior_command):
3405 Use gdb_argv.
3406 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3407 * exec.c (exec_file_command): Use gdb_argv.
3408 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3409 * compile/compile.c (build_argc_argv): Use gdb_argv.
3410
3411 2017-08-03 Tom Tromey <tom@tromey.com>
3412
3413 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3414
3415 2017-08-03 Tom Tromey <tom@tromey.com>
3416
3417 * python/python.c (compute_python_string): Return std::string.
3418 (gdbpy_eval_from_control_command): Update.
3419 (do_start_initialization): Use std::string.
3420 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3421 xstrprintf.
3422 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3423 xstrprintf.
3424
3425 2017-08-03 Tom Tromey <tom@tromey.com>
3426
3427 * top.h (do_restore_instream_cleanup): Remove.
3428 * top.c (do_restore_instream_cleanup): Remove.
3429 (read_command_file): Use scoped_restore.
3430 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3431
3432 2017-08-03 Tom Tromey <tom@tromey.com>
3433
3434 * cli/cli-script.c (execute_user_command)
3435 (execute_control_command): Use scoped_restore.
3436
3437 2017-08-03 Tom Tromey <tom@tromey.com>
3438
3439 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3440 (execute_user_command): Remove user_call_depth; use
3441 user_args_stack's size instead.
3442
3443 2017-08-03 Tom Tromey <tom@tromey.com>
3444
3445 * top.h (in_user_command): Remove.
3446 * top.c (in_user_command): Remove.
3447 * cli/cli-script.c (do_restore_user_call_depth)
3448 (execute_user_command): Update.
3449
3450 2017-08-03 Tom Tromey <tom@tromey.com>
3451
3452 * valops.c (search_struct_method): Use gdb::byte_vector.
3453 * valarith.c (value_concat): Use std::vector.
3454 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3455 (simple_search_memory): Likewise.
3456 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3457 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3458 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3459 * elfread.c (elf_rel_plt_read): Use std::string.
3460 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3461 * cli/cli-dump.c (restore_section_callback): Use
3462 gdb::byte_vector.
3463
3464 2017-08-03 Tom Tromey <tom@tromey.com>
3465
3466 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3467
3468 2017-08-03 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3471 (tui_register_format): Use scoped_restore.
3472
3473 2017-08-03 Tom Tromey <tom@tromey.com>
3474
3475 * reverse.c (exec_direction_default): Remove.
3476 (exec_reverse_once): Use scoped_restore.
3477 * remote.c (restore_remote_timeout): Remove.
3478 (remote_flash_erase, remote_flash_write, remote_flash_done)
3479 (readchar, remote_serial_write): Use scoped_restore.
3480 * cli/cli-script.c (struct source_cleanup_lines_args)
3481 (source_cleanup_lines): Remove.
3482 (script_from_file): Use scoped_restore.
3483 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3484 (source_command): Use scoped_restore.
3485
3486 2017-08-03 Tom Tromey <tom@tromey.com>
3487
3488 * utils.h (make_cleanup_free_so): Remove.
3489 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3490 * solist.h (struct so_deleter): New.
3491 (so_list_up): New typedef.
3492 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3493
3494 2017-08-03 Tom Tromey <tom@tromey.com>
3495
3496 * utils.h (make_cleanup_restore_current_language): Remove.
3497 * utils.c (do_restore_current_language)
3498 (make_cleanup_restore_current_language): Remove.
3499 * parse.c (parse_exp_in_context_1)
3500 (parse_expression_with_language): Use
3501 scoped_restore_current_language.
3502 * mi/mi-main.c (mi_cmd_execute): Use
3503 scoped_restore_current_language.
3504 * language.h (scoped_restore_current_language): New class.
3505
3506 2017-08-03 Tom Tromey <tom@tromey.com>
3507
3508 * compile/compile.c (cleanup_unlink_file): Remove.
3509 (compile_to_object): Use gdb::unlinker.
3510 (eval_compile_command): Likewise.
3511
3512 2017-08-03 Tom Tromey <tom@tromey.com>
3513
3514 * utils.h (make_cleanup_fclose): Remove.
3515 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3516
3517 2017-08-03 Tom Tromey <tom@tromey.com>
3518
3519 * top.c (open_terminal_stream): Return gdb_file_up.
3520 (new_ui_command): Update.
3521
3522 2017-08-03 Tom Tromey <tom@tromey.com>
3523
3524 * source.c (print_source_lines_base, forward_search_command)
3525 (reverse_search_command): Use gdb_file_up.
3526
3527 2017-08-03 Tom Tromey <tom@tromey.com>
3528
3529 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3530
3531 2017-08-03 Tom Tromey <tom@tromey.com>
3532
3533 * cli/cli-cmds.c (find_and_open_script): Change return type.
3534 Remove "streamp" and "full_path" parameters.
3535 (source_script_with_search): Update.
3536 * auto-load.c (source_script_file): Update.
3537 * cli/cli-cmds.h (find_and_open_script): Change type.
3538 (open_script): New struct.
3539
3540 2017-08-03 Tom Tromey <tom@tromey.com>
3541
3542 * xml-support.c (xml_fetch_content_from_file): Update.
3543 * ui-file.c (stdio_file::open): Update.
3544 * tracefile-tfile.c (tfile_start): Update.
3545 * remote.c (remote_file_put, remote_file_get): Update.
3546 * nat/linux-procfs.c (linux_proc_get_int)
3547 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3548 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3549 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3550 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3551 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3552 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3553 * linux-nat.c (linux_proc_pending_signals): Update.
3554 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3555 (file_closer): Remove.
3556 * compile/compile.c (compile_to_object): Update.
3557 * common/filestuff.h (struct gdb_file_deleter): New.
3558 (gdb_file_up): New typedef.
3559 (gdb_fopen_cloexec): Change return type.
3560 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3561 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3562 (dump_binary_file, restore_binary_file): Update.
3563 * auto-load.c (auto_load_objfile_script_1): Update.
3564
3565 2017-08-03 Tom Tromey <tom@tromey.com>
3566
3567 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3568 (info_static_tracepoint_markers_command): Likewise.
3569 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3570 * skip.c (skip_info): Use ui_out_emit_table.
3571 * progspace.c (print_program_space): Use ui_out_emit_table.
3572 * osdata.c (info_osdata): Use ui_out_emit_table.
3573 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3574 ui_out_emit_table.
3575 * linux-thread-db.c (info_auto_load_libthread_db): Use
3576 ui_out_emit_table.
3577 * inferior.c (print_inferior): Use ui_out_emit_table.
3578 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3579 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3580 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3581 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3582 * ui-out.h (class ui_out_emit_table): New.
3583
3584 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3585
3586 * mips-tdep.c (mips_fpu_type_str): New function.
3587 (mips_dump_tdep): Call it.
3588
3589 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3590
3591 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3592 `->mips_fpu_type'.
3593
3594 2017-07-31 Xavier Roirand <roirand@adacore.com>
3595
3596 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3597
3598 2017-07-27 Xavier Roirand <roirand@adacore.com>
3599
3600 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3601
3602 2017-07-26 Yao Qi <yao.qi@linaro.org>
3603
3604 * cli/cli-cmds.c (maintenancechecklist): New variable.
3605 * gdbcmd.h (maintenancechecklist): Declare it.
3606 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3607 Call i386_linux_read_description with different masks.
3608 * maint.c (maintenance_check_command): New function.
3609 (_initialize_maint_cmds): Call add_prefix_cmd.
3610 * target-descriptions.c (tdesc_reg): override operator != and ==.
3611 (tdesc_type): Likewise.
3612 (tdesc_feature): Likewise.
3613 (target_desc): Likewise.
3614 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3615 (maintenance_check_xml_descriptions): New function.
3616 (_initialize_target_descriptions) Add command "xml-descriptions".
3617 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3618
3619 2017-07-26 Yao Qi <yao.qi@linaro.org>
3620
3621 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3622 Include features/i386/32bit-*.c.
3623 (i386_linux_read_description): Generate target description if it
3624 doesn't exist.
3625 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3626 functions.
3627 * features/i386/32bit-linux.c: Re-generated.
3628 * features/i386/32bit-sse.c: Likewise.
3629 * target-descriptions.c (print_c_feature::visit): Print code to
3630 set register number if needed.
3631 (print_c_feature) <m_next_regnum>: New field.
3632
3633 2017-07-26 Yao Qi <yao.qi@linaro.org>
3634
3635 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3636 (FEATURE_XMLFILES): New.
3637 (FEATURE_CFILES): New.
3638 New rules.
3639 (clean-cfiles): Remove generated c files.
3640 * features/i386/32bit-avx.c: Generated.
3641 * features/i386/32bit-avx512.c: Generated.
3642 * features/i386/32bit-core.c: Generated.
3643 * features/i386/32bit-linux.c: Generated.
3644 * features/i386/32bit-mpx.c: Generated.
3645 * features/i386/32bit-pkeys.c: Generated.
3646 * features/i386/32bit-sse.c: Generated.
3647 * target-descriptions.c: Include algorithm.
3648 (tdesc_element_visitor): Add method visit_end.
3649 (print_c_tdesc): Implement visit_end.
3650 (print_c_tdesc:: m_filename_after_features): Move it to
3651 protected.
3652 (print_c_feature): New class.
3653 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3654 name starts with "i386/32bit-".
3655
3656 2017-07-26 Yao Qi <yao.qi@linaro.org>
3657
3658 * target-descriptions.c (tdesc_element_visitor): New class.
3659 (tdesc_element): New class.
3660 (tdesc_reg): Inherit from tdesc_element.
3661 (tdesc_reg::accept): New function.
3662 (tdesc_type): Inherit from tdesc_element.
3663 (tdesc_type::accept): New function.
3664 (tdesc_feature): Inherit from tdesc_element.
3665 (tdesc_feature::accept): New function.
3666 (target_desc): Inherit from tdesc_element.
3667 (target_desc::target_desc): New.
3668 (target_desc::~target_desc): New.
3669 (target_desc::accept): New.
3670 (allocate_target_description): Use new.
3671 (free_target_description): Use delete.
3672 (print_c_tdesc): New class.
3673 (maint_print_c_tdesc_cmd): Adjust.
3674
3675 * features/aarch64.c: Re-generated.
3676 * features/arc-arcompact.c: Re-generated.
3677 * features/arc-v2.c: Re-generated.
3678 * features/arm/arm-with-iwmmxt.c: Re-generated.
3679 * features/arm/arm-with-m.c: Re-generated.
3680 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3681 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3682 * features/arm/arm-with-neon.c: Re-generated.
3683 * features/arm/arm-with-vfpv2.c: Re-generated.
3684 * features/arm/arm-with-vfpv3.c: Re-generated.
3685 * features/i386/amd64-avx-avx512.c: Re-generated.
3686 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3687 * features/i386/amd64-avx.c: Re-generated.
3688 * features/i386/amd64-avx-linux.c: Re-generated.
3689 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3690 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3691 * features/i386/amd64-avx-mpx.c: Re-generated.
3692 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3693 * features/i386/amd64.c: Re-generated.
3694 * features/i386/amd64-linux.c: Re-generated.
3695 * features/i386/amd64-mpx.c: Re-generated.
3696 * features/i386/amd64-mpx-linux.c: Re-generated.
3697 * features/i386/i386-avx-avx512.c: Re-generated.
3698 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3699 * features/i386/i386-avx.c: Re-generated.
3700 * features/i386/i386-avx-linux.c: Re-generated.
3701 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3702 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3703 * features/i386/i386-avx-mpx.c: Re-generated.
3704 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3705 * features/i386/i386.c: Re-generated.
3706 * features/i386/i386-linux.c: Re-generated.
3707 * features/i386/i386-mmx.c: Re-generated.
3708 * features/i386/i386-mmx-linux.c: Re-generated.
3709 * features/i386/i386-mpx.c: Re-generated.
3710 * features/i386/i386-mpx-linux.c: Re-generated.
3711 * features/i386/x32-avx-avx512.c: Re-generated.
3712 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3713 * features/i386/x32-avx.c: Re-generated.
3714 * features/i386/x32-avx-linux.c: Re-generated.
3715 * features/i386/x32.c: Re-generated.
3716 * features/i386/x32-linux.c: Re-generated.
3717 * features/microblaze.c: Re-generated.
3718 * features/microblaze-with-stack-protect.c: Re-generated.
3719 * features/mips64-dsp-linux.c: Re-generated.
3720 * features/mips64-linux.c: Re-generated.
3721 * features/mips-dsp-linux.c: Re-generated.
3722 * features/mips-linux.c: Re-generated.
3723 * features/nds32.c: Re-generated.
3724 * features/nios2.c: Re-generated.
3725 * features/nios2-linux.c: Re-generated.
3726 * features/rs6000/powerpc-32.c: Re-generated.
3727 * features/rs6000/powerpc-32l.c: Re-generated.
3728 * features/rs6000/powerpc-403.c: Re-generated.
3729 * features/rs6000/powerpc-403gc.c : Re-generated.
3730 * features/rs6000/powerpc-405.c: Re-generated.
3731 * features/rs6000/powerpc-505.c: Re-generated.
3732 * features/rs6000/powerpc-601.c: Re-generated.
3733 * features/rs6000/powerpc-602.c: Re-generated.
3734 * features/rs6000/powerpc-603.c: Re-generated.
3735 * features/rs6000/powerpc-604.c: Re-generated.
3736 * features/rs6000/powerpc-64.c: Re-generated.
3737 * features/rs6000/powerpc-64l.c: Re-generated.
3738 * features/rs6000/powerpc-7400.c: Re-generated.
3739 * features/rs6000/powerpc-750.c: Re-generated.
3740 * features/rs6000/powerpc-860.c: Re-generated.
3741 * features/rs6000/powerpc-altivec32.c: Re-generated.
3742 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3743 * features/rs6000/powerpc-altivec64.c: Re-generated.
3744 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3745 * features/rs6000/powerpc-cell32l.c: Re-generated.
3746 * features/rs6000/powerpc-cell64l.c: Re-generated.
3747 * features/rs6000/powerpc-e500.c: Re-generated.
3748 * features/rs6000/powerpc-e500l.c: Re-generated.
3749 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3750 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3751 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3752 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3753 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3754 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3755 * features/rs6000/powerpc-vsx32.c: Re-generated.
3756 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3757 * features/rs6000/powerpc-vsx64.c: Re-generated.
3758 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3759 * features/rs6000/rs6000.c: Re-generated.
3760 * features/s390-linux32.c: Re-generated.
3761 * features/s390-linux32v1.c: Re-generated.
3762 * features/s390-linux32v2.c: Re-generated.
3763 * features/s390-linux64.c: Re-generated.
3764 * features/s390-linux64v1.c: Re-generated.
3765 * features/s390-linux64v2.c: Re-generated.
3766 * features/s390-te-linux64.c: Re-generated.
3767 * features/s390-tevx-linux64.c: Re-generated.
3768 * features/s390-vx-linux64.c: Re-generated.
3769 * features/s390x-linux64.c: Re-generated.
3770 * features/s390x-linux64v1.c: Re-generated.
3771 * features/s390x-linux64v2.c: Re-generated.
3772 * features/s390x-te-linux64.c: Re-generated.
3773 * features/s390x-tevx-linux64.c: Re-generated.
3774 * features/s390x-vx-linux64.c: Re-generated.
3775 * features/sparc/sparc32-solaris.c: Re-generated.
3776 * features/sparc/sparc64-solaris.c: Re-generated.
3777 * features/tic6x-c62x.c: Re-generated.
3778 * features/tic6x-c62x-linux.c: Re-generated.
3779 * features/tic6x-c64x.c: Re-generated.
3780 * features/tic6x-c64x-linux.c: Re-generated.
3781 * features/tic6x-c64xp.c: Re-generated.
3782 * features/tic6x-c64xp-linux.c: Re-generated.
3783
3784 2017-07-26 Yao Qi <yao.qi@linaro.org>
3785
3786 * i386-linux-tdep.c (i386_linux_read_description): New function.
3787 (i386_linux_core_read_description): Call
3788 i386_linux_read_description.
3789 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3790 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3791 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3792 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3793 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3794 * x86-linux-nat.c (x86_linux_read_description): Call
3795 i386_linux_read_description.
3796
3797 2017-07-26 Yao Qi <yao.qi@linaro.org>
3798
3799 * NEWS: Mention it.
3800 * features/Makefile (%.c: %.xml): Pass the xml file name to
3801 command "maint print c-tdesc".
3802 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3803 name from 'arg'.
3804
3805 2017-07-26 Yao Qi <yao.qi@linaro.org>
3806
3807 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3808 in-class initialization.
3809 (tdesc_create_feature): Call new instead of XCNEW.
3810 (free_target_description): Ue delete.
3811
3812 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3813
3814 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3815
3816 2017-07-25 Yao Qi <yao.qi@linaro.org>
3817
3818 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3819 constant.
3820 (amd64_x32_init_abi): Likewise.
3821 * amd64-tdep.h (amd64_init_abi): Update declaration.
3822 (amd64_x32_init_abi): Likewise.
3823
3824 2017-07-25 Yao Qi <yao.qi@linaro.org>
3825
3826 PR tdep/21717
3827 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3828 condition for FPSCR.
3829 (arm_linux_store_inferior_registers): Likewise.
3830
3831 2017-07-22 Tom Tromey <tom@tromey.com>
3832
3833 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3834 <syscalls_counts>: Now a std::vector.
3835 (get_catch_syscall_inferior_data): Use "new".
3836 (catch_syscall_inferior_data_cleanup): Use "delete".
3837 (insert_catch_syscall, remove_catch_syscall)
3838 (clear_syscall_counts): Update.
3839
3840 2017-07-22 Tom Tromey <tom@tromey.com>
3841
3842 * break-catch-syscall.c (syscall_catchpoint)
3843 <syscalls_to_be_caught>: Now a std::vector<int>
3844 (~syscall_catchpoint): Remove.
3845 (insert_catch_syscall, remove_catch_syscall)
3846 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3847 (print_mention_catch_syscall, print_recreate_catch_syscall):
3848 Update.
3849 (create_syscall_event_catchpoint): Change type of "filter"
3850 parameter.
3851 (catch_syscall_split_args): Return a std::vector.
3852 (catch_syscall_command_1, catching_syscall_number_1): Update.
3853
3854 2017-07-22 Tom Tromey <tom@tromey.com>
3855
3856 * break-catch-throw.c (struct exception_catchpoint)
3857 <exception_rx>: Now a std::string.
3858 (~exception_catchpoint): Remove.
3859 (print_one_detail_exception_catchpoint): Update.
3860 (handle_gnu_v3_exceptions): Change type of except_rx.
3861 (extract_exception_regexp): Return a std::string.
3862 (catch_exception_command_1): Update.
3863
3864 2017-07-22 Tom Tromey <tom@tromey.com>
3865
3866 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3867 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3868 std::vector.
3869 <catch_all>: Now a bool.
3870 (~signal_catchpoint): Remove.
3871 (signal_catchpoint_insert_location)
3872 (signal_catchpoint_remove_location)
3873 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3874 (signal_catchpoint_print_mention)
3875 (signal_catchpoint_print_recreate)
3876 (signal_catchpoint_explains_signal): Update.
3877 (create_signal_catchpoint): Change type of "filter" and
3878 "catch_all".
3879 (catch_signal_split_args): Return a std::vector. Change type of
3880 "catch_all".
3881 (catch_signal_command): Update.
3882
3883 2017-07-20 Pedro Alves <palves@redhat.com>
3884
3885 * ada-lang.c (ada_language_defn): Make extern.
3886 (_initialize_ada_language): Remove add_language call.
3887 * c-lang.c (c_language_defn, cplus_language_defn)
3888 (asm_language_defn, minimal_language_defn): Make extern.
3889 (_initialize_c_language): Delete.
3890 * completer.c (compare_cstrings): Delete, moved to utils.h.
3891 * d-lang.c (d_language_defn): Make extern.
3892 (_initialize_d_language): Remove add_language calls.
3893 * defs.h (enum language): Add comment.
3894 * f-lang.c (f_language_defn): Make extern.
3895 (_initialize_f_language): Remove add_language call.
3896 * go-lang.c (go_language_defn): Make extern.
3897 (_initialize_go_language): Remove add_language call.
3898 * language.c: Include <algorithm>.
3899 (languages): Redefine as const array.
3900 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3901 (set_language_command): Handle "local". Use for-range loop.
3902 (set_language): Remove loop.
3903 (language_enum): Rewrite.
3904 (language_def, language_str): Remove loops.
3905 (add_language): Delete.
3906 (add_set_language_command): New, based on add_languages.
3907 (skip_language_trampoline): Adjust.
3908 (local_language_defn): Delete.
3909 (language_gdbarch_post_init): Adjust.
3910 (_initialize_language): Remove add_language calls. Call
3911 add_set_language_command.
3912 * language.h (add_language): Delete.
3913 (auto_language_defn)
3914 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3915 (asm_language_defn, c_language_defn, cplus_language_defn)
3916 (d_language_defn, f_language_defn, go_language_defn)
3917 (m2_language_defn, objc_language_defn, opencl_language_defn)
3918 (pascal_language_defn, rust_language_defn): Declare.
3919 * m2-lang.c (m2_language_defn): Make extern.
3920 (_initialize_m2_language): Remove add_language call.
3921 * objc-lang.c (objc_language_defn): Make extern.
3922 (_initialize_objc_language): Remove add_language call.
3923 * opencl-lang.c (opencl_language_defn): Make extern.
3924 (_initialize_opencl_language): Remove add_language call.
3925 * p-lang.c (pascal_language_defn): Make extern.
3926 (_initialize_pascal_language): Delete.
3927 * rust-lang.c (rust_language_defn): Make extern.
3928 (_initialize_rust_language): Delete.
3929 * utils.h (compare_cstrings): New static inline function.
3930
3931 2017-07-20 Pedro Alves <palves@redhat.com>
3932
3933 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3934 (get_var_value): Constify parameters.
3935 (get_int_var_value): Change prototype.
3936 (to_fixed_range_type): Adjust.
3937 * ada-lang.h (get_int_var_value): Change prototype.
3938
3939 2017-07-20 Pedro Alves <palves@redhat.com>
3940
3941 * dwarf2read.c (dw2_lookup_symbol): Use
3942 SYMBOL_MATCHES_SEARCH_NAME.
3943 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3944
3945 2017-07-20 Pedro Alves <palves@redhat.com>
3946
3947 * block.c (block_iter_name_step, block_iter_name_first)
3948 (block_iter_name_next): Delete.
3949 (block_lookup_symbol_primary): Adjust to use
3950 dict_iter_match_first/dict_iter_match_next.
3951 * block.h (block_iter_name_first, block_iter_name_next): Delete
3952 declarations.
3953 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3954 dict_iter_match_first/dict_iter_match_next.
3955
3956 2017-07-20 Pedro Alves <palves@redhat.com>
3957
3958 * cp-support.c (cp_find_first_component_aux): Add missing case for
3959 end of string.
3960
3961 2017-07-18 David Blaikie <dblaikie@gmail.com>
3962
3963 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3964 of dwo_cu's dwo_file.
3965
3966 2017-07-18 Yao Qi <yao.qi@linaro.org>
3967
3968 * remote.c (store_registers_using_G): Remove one line comment.
3969
3970 2017-07-18 Yao Qi <yao.qi@linaro.org>
3971
3972 * regcache.c (regcache_cpy): Simplify it.
3973 (regcache::cpy_no_passthrough): Remove it.
3974 * regcache.h (cpy_no_passthrough): Remove it.
3975 (regcache_dup, regcache_cpy): Update comments.
3976
3977 2017-07-18 Pedro Alves <palves@redhat.com>
3978
3979 * remote-sim.c (sim_command_completer): Adjust to work with a
3980 completion_tracker instead of a VEC.
3981
3982 2017-07-17 Pedro Alves <palves@redhat.com>
3983
3984 * completer.c (complete_source_filenames): New function.
3985 (complete_address_and_linespec_locations): New function.
3986 (location_completer): Use complete_address_and_linespec_locations.
3987 (completion_tracker::build_completion_result): Honor the tracker's
3988 request to suppress append.
3989 * completer.h (completion_tracker::suppress_append_ws)
3990 (completion_tracker::set_suppress_append_ws): New methods.
3991 (completion_tracker::m_suppress_append_ws): New field.
3992 (complete_source_filenames): New declaration.
3993 * linespec.c (linespec_complete_what): New.
3994 (struct ls_parser) <complete_what, completion_word,
3995 completion_quote_char, completion_quote_end, completion_tracker>:
3996 New fields.
3997 (string_find_incomplete_keyword_at_end): New.
3998 (linespec_lexer_lex_string): Record quote char. If in completion
3999 mode, don't throw.
4000 (linespec_lexer_consume_token): Advance the completion word point.
4001 (linespec_lexer_peek_token): Save/restore completion info.
4002 (save_stream_and_consume_token): New.
4003 (set_completion_after_number): New.
4004 (linespec_parse_basic): Set what to complete next depending on
4005 token. Handle function and label completions specially.
4006 (parse_linespec): Disable objc shortcut in completion mode. Set
4007 what to complete next depending on token type. Skip keyword if in
4008 completion mode.
4009 (complete_linespec_component, linespec_complete): New.
4010 * linespec.h (linespec_complete): Declare.
4011
4012 2017-07-17 Pedro Alves <palves@redhat.com>
4013
4014 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4015 Handle 'operator<' / 'operator<<'.
4016
4017 2017-07-17 Pedro Alves <palves@redhat.com>
4018
4019 * completer.c (collect_explicit_location_matches): Handle
4020 MATCH_LABEL.
4021 (convert_explicit_location_to_linespec): New, factored out from
4022 ...
4023 (convert_explicit_location_to_sals): ... this.
4024 (complete_label): New.
4025 (linespec_complete_label, find_label_symbols_in_block): New.
4026 (find_label_symbols): Add completion_mode parameter and adjust to
4027 call find_label_symbols_in_block.
4028 * linespec.h (linespec_complete_label): Declare.
4029
4030 2017-07-17 Pedro Alves <palves@redhat.com>
4031
4032 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4033 complete_symbol_mode parameter.
4034 * cli/cli-cmds.c (complete_command): Get the completion result out
4035 of the handle_brkchars tracker if used a custom word point.
4036 * completer.c: Include "linespec.h".
4037 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4038 (advance_to_expression_complete_word_point): New.
4039 (completion_tracker::completes_to_completion_word): New.
4040 (complete_files_symbols): Pass down
4041 complete_symbol_mode::EXPRESSION.
4042 (explicit_options, probe_options): New.
4043 (collect_explicit_location_matches): Complete on the
4044 explictit_loc->foo instead of word. Use
4045 linespec_complete_function. Handle MATCH_LINE. Handle offering
4046 keyword and options completions.
4047 (backup_text_ptr): Delete.
4048 (skip_keyword): New.
4049 (complete_explicit_location): Remove 'word' parameter. Add
4050 language, quoted_arg_start and quoted_arg_end parameters.
4051 Rewrite, parsing left to right.
4052 (location_completer): Rewrite.
4053 (location_completer_handle_brkchars): New function.
4054 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4055 (enum complete_line_internal_reason): Adjust comments.
4056 (completion_tracker::discard_completions): New.
4057 (completer_handle_brkchars_func_for_completer): Handle
4058 location_completer.
4059 (gdb_custom_word_point_brkchars)
4060 (gdb_org_rl_basic_quote_characters): New.
4061 (gdb_completion_word_break_characters_throw)
4062 (completion_find_completion_word): Handle trackers that use a
4063 custom word point.
4064 (completion_tracker::advance_custom_word_point_by): New.
4065 (completion_tracker::build_completion_result): Don't rely on
4066 readline appending the quote char.
4067 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4068 use a custom word point.
4069 (gdb_rl_attempted_completion_function): Restore
4070 rl_basic_quote_characters.
4071 * completer.h (class completion_tracker): Extend intro comment.
4072 (completion_tracker::set_quote_char)
4073 (completion_tracker::quote_char)
4074 (completion_tracker::set_use_custom_word_point)
4075 (completion_tracker::use_custom_word_point)
4076 (completion_tracker::custom_word_point)
4077 (completion_tracker::set_custom_word_point)
4078 (completion_tracker::advance_custom_word_point_by)
4079 (completion_tracker::completes_to_completion_word)
4080 (completion_tracker::discard_completions): New methods.
4081 (completion_tracker::m_quote_char)
4082 (completion_tracker::m_use_custom_word_point)
4083 (completion_tracker::m_custom_word_point): New fields.
4084 (advance_to_expression_complete_word_point): Declare.
4085 * f-lang.c (f_collect_symbol_completion_matches): Add
4086 complete_symbol_mode parameter.
4087 * language.h (struct language_defn)
4088 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4089 parameter.
4090 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4091 (linespec_complete_function): New function.
4092 (linespec_lexer_lex_keyword): Adjust.
4093 * linespec.h (linespec_keywords, linespec_complete_function): New
4094 declarations.
4095 * location.c (find_end_quote): New function.
4096 (explicit_location_lex_one): Add explicit_completion_info
4097 parameter. Save quoting info. Don't throw if being called for
4098 completion. Don't handle Ada operators here.
4099 (is_cp_operator, skip_op_false_positives, first_of)
4100 (explicit_location_lex_one_function): New function.
4101 (string_to_explicit_location): Replace 'dont_throw' parameter with
4102 an explicit_completion_info pointer parameter. Handle it. Don't
4103 use explicit_location_lex_one to lex function names. Use
4104 explicit_location_lex_one_function instead.
4105 * location.h (struct explicit_completion_info): New.
4106 (string_to_explicit_location): Replace 'dont_throw' parameter with
4107 an explicit_completion_info pointer parameter.
4108 * symtab.c (default_collect_symbol_completion_matches_break_on):
4109 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4110 (default_collect_symbol_completion_matches)
4111 (collect_symbol_completion_matches): Add complete_symbol_mode
4112 parameter.
4113 (collect_symbol_completion_matches_type): Pass down
4114 complete_symbol_mode::EXPRESSION.
4115 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4116 parameter. Handle LINESPEC mode.
4117 * symtab.h (complete_symbol_mode): New.
4118 (default_collect_symbol_completion_matches_break_on)
4119 (default_collect_symbol_completion_matches)
4120 (collect_symbol_completion_matches)
4121 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4122 parameter.
4123
4124 2017-07-17 Pedro Alves <palves@redhat.com>
4125
4126 * utils.c (enum class strncmp_iw_mode): New.
4127 (strcmp_iw): Rename to ...
4128 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4129 parameters. Handle them.
4130 (strncmp_iw): New.
4131 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4132 * utils.h (strncmp_iw): Declare.
4133 (strcmp_iw): Move describing comments here.
4134
4135 2017-07-17 Pedro Alves <palves@redhat.com>
4136
4137 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4138 CP_OPERATOR_STR.
4139 * c-typeprint.c (is_type_conversion_operator): Use
4140 CP_OPERATOR_STR.
4141 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4142 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4143 CP_OPERATOR_LEN.
4144 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4145 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4146 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4147 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4148 CP_OPERATOR_STR.
4149 * location.c: Include "cp-support.h".
4150 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4151 CP_OPERATOR_STR.
4152 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4153 CP_OPERATOR_LEN.
4154
4155 2017-07-17 Pedro Alves <palves@redhat.com>
4156
4157 * cli/cli-cmds.c (complete_command): Use a completion tracker
4158 along with completion_find_completion_word for handle_brkchars
4159 phase.
4160 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4161 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4162 (struct gdb_rl_completion_word_info): New.
4163 (gdb_rl_find_completion_word): New.
4164 (completion_find_completion_word): New.
4165 * completer.h (completion_find_completion_word): Declare.
4166
4167 2017-07-17 Pedro Alves <palves@redhat.com>
4168
4169 * ada-lang.c (symbol_completion_match): Adjust comments.
4170 (symbol_completion_add): Replace vector parameter with
4171 completion_tracker parameter. Use it.
4172 (ada_make_symbol_completion_list): Rename to...
4173 (ada_collect_symbol_completion_matches): ... this. Add
4174 completion_tracker parameter and use it.
4175 (ada_language_defn): Adjust.
4176 * break-catch-syscall.c (catch_syscall_completer): Adjust
4177 prototype and work with completion_tracker instead of VEC.
4178 * breakpoint.c (condition_completer): Adjust prototype and work
4179 with completion_tracker instead of VEC.
4180 * c-lang.c (c_language_defn, cplus_language_defn)
4181 (asm_language_defn, minimal_language_defn): Adjust to renames.
4182 * cli/cli-cmds.c (complete_command): Rework using
4183 completion_tracker. Catch exceptions when completing.
4184 * cli/cli-decode.c (integer_unlimited_completer)
4185 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4186 with completion_tracker instead of VEC.
4187 * command.h (struct completion_tracker): Forward declare.
4188 (completer_ftype, completer_handle_brkchars_ftype): Change
4189 types.
4190 (complete_on_cmdlist, complete_on_enum): Adjust.
4191 * completer.c: Include <algorithm>.
4192 (struct gdb_completer_state): New.
4193 (current_completion): New global.
4194 (readline_line_completion_function): Delete.
4195 (noop_completer, filename_completer)
4196 (filename_completer_handle_brkchars, complete_files_symbols)
4197 (linespec_location_completer): Adjust to work with a
4198 completion_tracker instead of a VEC.
4199 (string_or_empty): New.
4200 (collect_explicit_location_matches): Adjust to work with a
4201 completion_tracker instead of a VEC.
4202 (explicit_location_completer): Rename to ...
4203 (complete_explicit_location): ... this and adjust to work with a
4204 completion_tracker instead of a VEC.
4205 (location_completer): Adjust to work with a completion_tracker
4206 instead of a VEC.
4207 (add_struct_fields): Adjust to work with a completion_list instead
4208 of VEC.
4209 (expression_completer): Rename to ...
4210 (complete_expression): ... this and adjust to work with a
4211 completion_tracker instead of a VEC. Use complete_files_symbols.
4212 (expression_completer): Reimplement on top of complete_expression.
4213 (symbol_completer): Adjust to work with a completion_tracker
4214 instead of a VEC.
4215 (enum complete_line_internal_reason): Add describing comments.
4216 (complete_line_internal_normal_command): Adjust to work with a
4217 completion_tracker instead of a VEC.
4218 (complete_line_internal): Rename to ...
4219 (complete_line_internal_1): ... this and adjust to work with a
4220 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4221 handle_brkchars phase.
4222 (new_completion_tracker): Delete.
4223 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4224 complete_line_internal_1.
4225 (free_completion_tracker): Delete.
4226 (INITIAL_COMPLETION_HTAB_SIZE): New.
4227 (completion_tracker::completion_tracker)
4228 (completion_tracker::~completion_tracker): New.
4229 (maybe_add_completion): Delete.
4230 (completion_tracker::maybe_add_completion)
4231 (completion_tracker::add_completion)
4232 (completion_tracker::add_completions): New.
4233 (throw_max_completions_reached_error): Delete.
4234 (complete_line): Adjust to work with a completion_tracker instead
4235 of a VEC. Don't create a completion_tracker_t or check for max
4236 completions here.
4237 (command_completer, command_completer_handle_brkchars)
4238 (signal_completer, reg_or_group_completer_1)
4239 (reg_or_group_completer, default_completer_handle_brkchars):
4240 Adjust to work with a completion_tracker.
4241 (gdb_completion_word_break_characters_throw): New.
4242 (gdb_completion_word_break_characters): Reimplement.
4243 (line_completion_function): Delete.
4244 (completion_tracker::recompute_lowest_common_denominator)
4245 (expand_preserving_ws)
4246 (completion_tracker::build_completion_result)
4247 (completion_result::completion_result)
4248 (completion_result::completion_result)
4249 (completion_result::~completion_result)
4250 (completion_result::completion_result)
4251 (completion_result::release_match_list, compare_cstrings)
4252 (completion_result::sort_match_list)
4253 (completion_result::reset_match_list)
4254 (gdb_rl_attempted_completion_function_throw)
4255 (gdb_rl_attempted_completion_function): New.
4256 * completer.h (completion_list, struct completion_result)
4257 (class completion_tracker): New.
4258 (complete_line): Add completion_tracker parameter.
4259 (readline_line_completion_function): Delete.
4260 (gdb_rl_attempted_completion_function): New.
4261 (noop_completer, filename_completer, expression_completer)
4262 (location_completer, symbol_completer, command_completer)
4263 (signal_completer, reg_or_group_completer): Update prototypes.
4264 (completion_tracker_t, new_completion_tracker)
4265 (make_cleanup_free_completion_tracker): Delete.
4266 (enum maybe_add_completion_enum): Delete.
4267 (maybe_add_completion): Delete.
4268 (throw_max_completions_reached_error): Delete.
4269 * corefile.c (complete_set_gnutarget): Adjust to work with a
4270 completion_tracker instead of a VEC.
4271 * cp-abi.c (cp_abi_completer): Adjust to work with a
4272 completion_tracker instead of a VEC.
4273 * d-lang.c (d_language_defn): Adjust.
4274 * disasm.c (disassembler_options_completer): Adjust to work with a
4275 completion_tracker instead of a VEC.
4276 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4277 (f_collect_symbol_completion_matches): ... this. Adjust to work
4278 with a completion_tracker instead of a VEC.
4279 (f_language_defn): Adjust.
4280 * go-lang.c (go_language_defn): Adjust.
4281 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4282 Adjust to work with a completion_tracker instead of a VEC.
4283 * infrun.c (handle_completer): Likewise.
4284 * interps.c (interpreter_completer): Likewise.
4285 * interps.h (interpreter_completer): Likewise.
4286 * language.c (unknown_language_defn, auto_language_defn)
4287 (local_language_defn): Adjust.
4288 * language.h (language_defn::la_make_symbol_completion_list):
4289 Rename to ...
4290 (language_defn::la_collect_symbol_completion_matches): ... this
4291 and adjust to work with a completion_tracker instead of a VEC.
4292 * m2-lang.c (m2_language_defn): Adjust.
4293 * objc-lang.c (objc_language_defn): Adjust.
4294 * opencl-lang.c (opencl_language_defn): Adjust.
4295 * p-lang.c (pascal_language_defn): Adjust.
4296 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4297 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4298 with a completion_tracker.
4299 * rust-lang.c (rust_language_defn): Adjust.
4300 * symtab.c (free_completion_list, do_free_completion_list)
4301 (return_val, completion_tracker): Delete.
4302 (completion_list_add_name, completion_list_add_symbol)
4303 (completion_list_add_msymbol, completion_list_objc_symbol)
4304 (completion_list_add_fields, add_symtab_completions): Add
4305 completion_tracker parameter and use it.
4306 (default_make_symbol_completion_list_break_on_1): Rename to...
4307 (default_collect_symbol_completion_matches_break_on): ... this.
4308 Add completion_tracker parameter and use it instead of allocating
4309 a completion tracker here.
4310 (default_make_symbol_completion_list_break_on): Delete old
4311 implementation.
4312 (default_make_symbol_completion_list): Delete.
4313 (default_collect_symbol_completion_matches): New.
4314 (make_symbol_completion_list): Delete.
4315 (collect_symbol_completion_matches): New.
4316 (make_symbol_completion_type): Rename to ...
4317 (collect_symbol_completion_matches_type): ... this. Add
4318 completion_tracker parameter and use it instead of VEC.
4319 (make_file_symbol_completion_list_1): Rename to...
4320 (collect_file_symbol_completion_matches): ... this. Add
4321 completion_tracker parameter and use it instead of VEC.
4322 (make_file_symbol_completion_list): Delete.
4323 (add_filename_to_list): Use completion_list instead of a VEC.
4324 (add_partial_filename_data::list): Now a completion_list.
4325 (make_source_files_completion_list): Work with a completion_list
4326 instead of a VEC.
4327 * symtab.h: Include "completer.h".
4328 (default_make_symbol_completion_list_break_on)
4329 (default_make_symbol_completion_list, make_symbol_completion_list)
4330 (make_symbol_completion_type, make_file_symbol_completion_list)
4331 (make_source_files_completion_list): Delete.
4332 (default_collect_symbol_completion_matches_break_on)
4333 (default_collect_symbol_completion_matches)
4334 (collect_symbol_completion_matches)
4335 (collect_symbol_completion_matches_type)
4336 (collect_file_symbol_completion_matches)
4337 (make_source_files_completion_list): New.
4338 * top.c (init_main): Don't install a rl_completion_entry_function
4339 hook. Install a rl_attempted_completion_function hook instead.
4340 * tui/tui-layout.c (layout_completer): Adjust to work with a
4341 completion_tracker.
4342 * tui/tui-regs.c (tui_reggroup_completer):
4343 * tui/tui-win.c (window_name_completer, focus_completer)
4344 (winheight_completer): Adjust to work with a completion_tracker.
4345 * value.c: Include "completer.h".
4346 (complete_internalvar): Adjust to work with a completion_tracker.
4347 * value.h (complete_internalvar): Likewise.
4348
4349 2017-07-17 Pedro Alves <palves@redhat.com>
4350
4351 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4352 renames.
4353 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4354 comments to completer_ftype's declaration.
4355 <completer_handle_brkchars>: Change type to
4356 completer_handle_brkchars_ftype.
4357 * command.h (completer_ftype): Add describing comment and give
4358 names to parameters.
4359 (completer_ftype_void): Rename to ...
4360 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4361 (set_cmd_completer_handle_brkchars): Adjust.
4362 * completer.c (filename_completer_handle_brkchars): New function.
4363 (complete_line_internal_normal_command): New function, factored
4364 out from ...
4365 (complete_line_internal): ... here.
4366 (command_completer_handle_brkchars)
4367 (default_completer_handle_brkchars)
4368 (completer_handle_brkchars_func_for_completer): New functions.
4369 * completer.h (set_gdb_completion_word_break_characters): Delete
4370 declaration.
4371 (completer_handle_brkchars_func_for_completer): New declaration.
4372 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4373 completer_handle_brkchars_func_for_completer.
4374
4375 2017-07-17 Pedro Alves <palves@redhat.com>
4376
4377 * completer.c (symbol_completer): New function, based on
4378 make_symbol_completion_list_fn.
4379 * completer.h (symbol_completer): New declaration.
4380 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4381 * python/py-cmd.c (completers): Adjust.
4382 * symtab.c (make_symbol_completion_list_fn): Delete.
4383 * symtab.h (make_symbol_completion_list_fn): Delete.
4384 * cli/cli-decode.c (add_cmd): Adjust.
4385
4386 2017-07-17 Pedro Alves <palves@redhat.com>
4387
4388 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4389 * dwarf2read.c: Include "filename-seen-cache.h".
4390 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4391 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4392 * filename-seen-cache.c: New file.
4393 * filename-seen-cache.h: New file.
4394 * symtab.c: Include "filename-seen-cache.h".
4395 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4396 (create_filename_seen_cache, clear_filename_seen_cache)
4397 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4398 to filename-seen-cache.h/filename-seen-cache.c.
4399 (output_source_filename, sources_info)
4400 (maybe_add_partial_symtab_filename)
4401 (make_source_files_completion_list): Adjust to use
4402 filename_seen_cache.
4403
4404 2017-07-17 Pedro Alves <palves@redhat.com>
4405
4406 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4407 fields.
4408 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4409 dwarf2_debug_sections*)): New.
4410 (dwarf2_per_objfile::dwarf2_per_objfile(const
4411 dwarf2_per_objfile&)): Declare as deleted.
4412 (dwarf2_per_objfile::operator=): Declare as deleted.
4413 (dwarf2_per_objfile::dwarf2_per_objfile)
4414 (dwarf2_per_objfile::~dwarf2_per_objfile)
4415 (dwarf2_per_objfile::free_cached_comp_units): New.
4416 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4417 ctor. Call dwarf2_per_objfile's ctor manually.
4418 (dwarf2_locate_sections): Deleted/refactored as ...
4419 (dwarf2_per_objfile::locate_sections): ... this new method.
4420 (free_cached_comp_units): Defer to
4421 dwarf2_per_objfile::free_cached_comp_units.
4422 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4423
4424 2017-07-14 Tom Tromey <tom@tromey.com>
4425
4426 PR rust/21764:
4427 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4428 parameter.
4429 <UNOP_SIZEOF>: Split into separate case.
4430 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4431
4432 2017-07-14 Tom Tromey <tom@tromey.com>
4433
4434 PR rust/21763:
4435 * symtab.c (symbol_matches_domain): Add language_rust to special
4436 case.
4437 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4438 treat LOC_TYPEDEF symbols as variables.
4439
4440 2017-07-14 Pedro Alves <palves@redhat.com>
4441
4442 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4443 symtabs matching all symtabs with SRCFILE as file name instead of
4444 only considering the first hit, with lookup_symtab.
4445
4446 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4447
4448 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4449 operator_name parameters.
4450 (gen_expr): Update function call.
4451
4452 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4453
4454 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4455 parameter.
4456 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4457 Likewise.
4458 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4459 parameter, use agent_expr::gdbarch instead, update function
4460 calls.
4461 (locexpr_tracepoint_var_ref): Likewise.
4462 (loclist_tracepoint_var_ref): Likewise.
4463 * ax-gdb.c (gen_trace_static_fields): Likewise.
4464 (gen_traced_pop): Likewise.
4465 (gen_frame_args_address): Likewise.
4466 (gen_frame_locals_address): Likewise.
4467 (gen_var_ref): Likewise.
4468 (gen_struct_ref_recursive): Likewise.
4469 (gen_static_field): Likewise.
4470 (gen_maybe_namespace_elt): Likewise.
4471 (gen_expr): Likewise.
4472 (gen_trace_for_var): Likewise.
4473 (gen_trace_for_expr): Likewise.
4474 (gen_trace_for_return_address): Likewise.
4475
4476 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4477
4478 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4479 parameter.
4480 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4481
4482 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4483
4484 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4485 from ax, update calls.
4486 (gen_usual_arithmetic): Likewise.
4487 (gen_integral_promotions): Likewise.
4488 (gen_bitfield_ref): Likewise.
4489 (gen_primitive_field): Likewise.
4490 (gen_struct_ref_recursive): Likewise.
4491 (gen_struct_ref): Likewise.
4492 (gen_maybe_namespace_elt): Likewise.
4493 (gen_struct_elt_for_reference): Likewise.
4494 (gen_namespace_elt): Likewise.
4495 (gen_aggregate_elt_ref): Likewise.
4496 (gen_expr): Get gdbarch from ax, update calls.
4497 (gen_expr_binop_rest): Likewise.
4498
4499 2017-07-13 Pedro Alves <palves@redhat.com>
4500
4501 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4502 as default tdesc.
4503 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4504 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4505 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4506 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4507 tdep.
4508 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4509 Get final tdesc from the tdep.
4510 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4511 default tdesc.
4512 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4513 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4514 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4515 Use it as default tdesc.
4516 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4517 down to amd_init_abi. No longer handle fallback tdesc here.
4518 * amd64-tdep.h (tdesc_x32): Declare.
4519 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4520 parameter.
4521 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4522 as default tdesc.
4523
4524 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4525
4526 * s390-linux-tdep.c (s390_process_record): Add support for
4527 instructions new in arch12.
4528
4529 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4530
4531 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4532 PT_GETFSBASE and PT_GETGSBASE.
4533 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4534 PT_SETGSBASE.
4535
4536 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4537
4538 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4539 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4540 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4541 those rules.
4542 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4543 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4544 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4545 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4546 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4547 * features/i386/amd64.xml: Add 64bit-segments.xml.
4548 * features/i386/amd64-avx-avx512.c: Regenerated.
4549 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4550 * features/i386/amd64-avx-mpx.c: Regenerated.
4551 * features/i386/amd64-avx.c: Regenerated.
4552 * features/i386/amd64-mpx.c: Regenerated.
4553 * features/i386/amd64.c: Regenerated.
4554 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4555 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4556 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4557 * regformats/i386/amd64-avx.dat: Regenerated.
4558 * regformats/i386/amd64-mpx.dat: Regenerated.
4559 * regformats/i386/amd64.dat: Regenerated.
4560
4561 2017-07-10 Yao Qi <yao.qi@linaro.org>
4562
4563 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4564 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4565
4566 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4567
4568 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4569 unsetenv.
4570 * gnulib/aclocal.m4: Regenerate.
4571 * gnulib/config.in: Regenerate.
4572 * gnulib/configure: Regenerate.
4573 * gnulib/import/Makefile.am: Regenerate.
4574 * gnulib/import/Makefile.in: Regenerate.
4575 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4576 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4577 * gnulib/import/m4/environ.m4: New file.
4578 * gnulib/import/m4/setenv.m4: New file.
4579 * gnulib/import/setenv.c: New file.
4580 * gnulib/import/unsetenv.c: New file.
4581
4582 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4583
4584 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4585 address when op is DW_OP_addr.
4586
4587 2017-07-09 Tom Tromey <tom@tromey.com>
4588
4589 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4590 check and apply to outer type.
4591
4592 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4593
4594 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4595 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4596 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4597 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4598
4599 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4600
4601 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4602
4603 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4604
4605 * corelow.c (get_core_siginfo): Remove.
4606 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4607 instead of get_core_siginfo.
4608 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4609 * gdbarch.h: Re-generate.
4610 * gdbarch.c: Re-generate.
4611 * linux-tdep.c (linux_core_xfer_siginfo): New.
4612 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4613
4614 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4615
4616 * corelow.c (thread_section_name): Move to ...
4617 * gdbcore.h (thread_section_name): ... here.
4618
4619 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4620
4621 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4622 (struct siginfo32): New.
4623 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4624 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4625 via ptrace(PT_LWPINFO).
4626
4627 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4628
4629 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4630 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4631 (fbsd_get_siginfo_type): New.
4632 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4633 (_initialize_fbsd_tdep): New.
4634
4635 2017-07-06 David Blaikie <dblaikie@gmail.com>
4636
4637 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4638 a singular dwo_unit*) to support multiple CUs in the same way that
4639 multiple TUs are supported.
4640 (create_cus_hash_table): Replace create_dwo_cu with a function for
4641 parsing multiple CUs from a DWO file.
4642 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4643 create_dwo_cu.
4644 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4645 htab_find, rather than comparing the signature to a singleton CU in
4646 the dwo_file.
4647
4648 2017-07-06 Pedro Alves <palves@redhat.com>
4649
4650 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4651
4652 2017-07-04 Pedro Alves <palves@redhat.com>
4653
4654 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4655 * gdbtypes.h (TYPE_STATIC): Delete.
4656 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4657 is_synchronized, is_native>: Delete.
4658 <dummy>: Bump.
4659 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4660 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4661 (TYPE_FN_FIELD_ABSTRACT): Delete.
4662
4663 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4664
4665 * buffer.h (buffer_finish): Fix spelling mistakes.
4666
4667 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4668
4669 * .dir-locals.el: Automatically switch to C-style comments in
4670 versions of Emacs that support the feature.
4671
4672 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4673 Pedro Alves <palves@redhat.com>
4674
4675 PR cli/21688
4676 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4677 (process_next_line): New variable 'inline_cmd'.
4678 Adjust 'if' clauses for "python", "compile" and "guile" to use
4679 'command_name_equals' and check for '!inline_cmd'.
4680
4681 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4682
4683 PR cli/21688
4684 * cli/cli-script.c (command_name_equals_not_inline): New function.
4685 (process_next_line): Adjust 'if' clauses for "python", "compile"
4686 and "guile" to use command_name_equals_not_inline.
4687
4688 2017-06-29 Pedro Alves <palves@redhat.com>
4689
4690 * completer.c (expression_completer): Call
4691 linespec_location_completer instead of location_completer.
4692
4693 2017-06-29 Pedro Alves <palves@redhat.com>
4694
4695 * completer.c (expression_completer): Remove code that recomputes
4696 'text' from 'word'.
4697
4698 2017-06-29 Yao Qi <yao.qi@linaro.org>
4699
4700 * regformats/regdat.sh: Generate code with
4701 "ifndef IN_PROCESS_AGENT".
4702
4703 2017-06-28 Pedro Alves <palves@redhat.com>
4704
4705 * command.h: Include "common/scoped_restore.h".
4706
4707 2017-06-28 Yao Qi <yao.qi@linaro.org>
4708
4709 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4710 instead of obstack_grow.
4711
4712 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4713
4714 PR gdb/21337
4715 * symfile.c (reread_symbols): Call objfiles_changed just before
4716 read_symbols.
4717
4718 2017-06-27 Pedro Alves <palves@redhat.com>
4719
4720 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4721 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4722 (completion_list_add_symbol, completion_list_add_msymbol):
4723 ... these new functions.
4724 (add_symtab_completions)
4725 (default_make_symbol_completion_list_break_on_1): Adjust.
4726
4727 2017-06-27 Pedro Alves <palves@redhat.com>
4728
4729 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4730 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4731 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4732 dtor.
4733 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4734 'storage_obstack' field an auto_obstack. In-class initialize all
4735 non-bitfield fields. Make minsyms_read bool.
4736 * symfile.c (read_symbols): Adjust.
4737
4738 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4739
4740 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4741 (gdbsim_store_register): Likewise.
4742
4743 2017-06-27 Pedro Alves <palves@redhat.com>
4744
4745 * c-exp.y (name_obstack): Now an auto_obstack.
4746 (yylex): Use auto_obstack::clear.
4747 (c_parse): Use auto_obstack::clear instead of reinitializing and
4748 freeing the obstack.
4749 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4750 * d-exp.y (name_obstack): Now an auto_obstack.
4751 (yylex): Use auto_obstack::clear.
4752 (d_parse): Use auto_obstack::clear instead of reinitializing and
4753 freeing the obstack.
4754 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4755 auto_obstack.
4756 * dwarf2read.c (create_addrmap_from_index)
4757 (dwarf2_build_psymtabs_hard)
4758 (update_enumeration_type_from_children): Likewise.
4759 * gdb_obstack.h (auto_obstack): New type.
4760 * go-exp.y (name_obstack): Now an auto_obstack.
4761 (build_packaged_name): Use auto_obstack::clear.
4762 (go_parse): Use auto_obstack::clear instead of reinitializing and
4763 freeing the obstack.
4764 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4765 auto_obstack.
4766 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4767 * rust-exp.y (work_obstack): Now an auto_obstack.
4768 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4769 reinitializing and freeing the obstack.
4770 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4771 (host_char_to_target): Use auto_obstack.
4772 * utils.h (make_cleanup_obstack_free): Delete declaration.
4773 * valprint.c (generic_emit_char, generic_printstr): Use
4774 auto_obstack.
4775
4776 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4777
4778 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4779 thread.
4780 (darwin_init_thread_list): Don't update dummy thread.
4781 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4782
4783 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4784
4785 * record-full.c (netorder16): Remove.
4786
4787 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4788
4789 * common/diagnostics.h: Define macros for GCC.
4790 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4791 * common/vec.h: Include diagnostics.h.
4792 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4793 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4794 warning.
4795
4796 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4797
4798 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4799 New macro.
4800 * ada-lex.l: Ignore deprecated register warnings.
4801
4802 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4803
4804 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4805 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4806
4807 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4808
4809 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4810 its own line.
4811
4812 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4813
4814 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4815
4816 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4817
4818 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4819 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4820 (xtensa_register_read_masked): Likewise.
4821
4822 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4823
4824 * common/environ.c (gdb_environ::unset): Update comment.
4825
4826 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4827
4828 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4829 registers.
4830
4831 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4832
4833 * record-full.c (record_full_exec_insn): Use byte_vector.
4834
4835 2017-06-22 Yao Qi <yao.qi@linaro.org>
4836
4837 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4838 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4839
4840 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4841
4842 * remote.c (cached_reg): Move from here...
4843 * regcache.h (cached_reg): ...to here.
4844 * python/py-unwind.c (struct reg_info): Remove.
4845 (cached_frame_info): Use cached_reg_t.
4846 (pyuw_prev_register): Likewise.
4847 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4848 (pyuw_dealloc_cache): Free all registers.
4849
4850 2017-06-22 Pedro Alves <palves@redhat.com>
4851 Simon Marchi <simon.marchi@ericsson.com>
4852
4853 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4854 warning.
4855 * common/diagnostics.h: New file.
4856
4857 2017-06-22 Pedro Alves <palves@redhat.com>
4858
4859 * common/agent.h: Add include guards.
4860
4861 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4862
4863 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4864 talk about addressable units instead of bytes.
4865
4866 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4867
4868 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4869 of '::const_iterator'.
4870
4871 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4872
4873 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4874 'unittests/environ-selftests.c'.
4875 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4876 * charset.c (find_charset_names): Declare object 'iconv_env'.
4877 Update code to use 'iconv_env' object. Remove call to
4878 'free_environ'.
4879 * common/environ.c: Include <utility>.
4880 (make_environ): Delete function.
4881 (free_environ): Delete function.
4882 (gdb_environ::clear): New function.
4883 (gdb_environ::operator=): New function.
4884 (gdb_environ::get): Likewise.
4885 (environ_vector): Delete function.
4886 (set_in_environ): Delete function.
4887 (gdb_environ::set): New function.
4888 (unset_in_environ): Delete function.
4889 (gdb_environ::unset): New function.
4890 (gdb_environ::envp): Likewise.
4891 * common/environ.h: Include <vector>.
4892 (struct gdb_environ): Delete; transform into...
4893 (class gdb_environ): ... this class.
4894 (free_environ): Delete prototype.
4895 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4896 environ_vector): Likewise.
4897 * infcmd.c (run_command_1): Update code to call
4898 'envp' from 'gdb_environ' class.
4899 (environment_info): Update code to call methods from 'gdb_environ'
4900 class.
4901 (unset_environment_command): Likewise.
4902 (path_info): Likewise.
4903 (path_command): Likewise.
4904 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4905 (inferior::inferior): Initialize 'environment' using the host's
4906 information.
4907 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4908 Include "environ.h".
4909 (class inferior) <environment>: Change type from 'struct
4910 gdb_environ' to 'gdb_environ'.
4911 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4912 methods from 'gdb_environ' class.
4913 * solib.c (solib_find_1): Likewise
4914 * unittests/environ-selftests.c: New file.
4915
4916 2017-06-20 Yao Qi <yao.qi@linaro.org>
4917
4918 * features/i386/i386-linux.xml: Exchange the order of including
4919 32bit-linux.xml and 32bit-sse.xml.
4920 * features/i386/i386-linux.c: Regenerated.
4921
4922 2017-06-20 Yao Qi <yao.qi@linaro.org>
4923
4924 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4925 Delete copy ctor and assignment operator.
4926 (tdesc_type): Likewise.
4927 (tdesc_feature): Likewise.
4928 (tdesc_free_reg): Remove.
4929 (tdesc_create_reg): Use new.
4930 (tdesc_free_type): Remove.
4931 (tdesc_create_vector): Use new.
4932 (tdesc_create_union): Likewise.
4933 (tdesc_create_flags): Likewise.
4934 (tdesc_create_enum): Likewise.
4935 (tdesc_free_feature): Delete.
4936 (free_target_description): Use delete.
4937
4938 2017-06-19 John Baldwin <jhb@FreeBSD.org>
4939
4940 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4941 registers.
4942
4943 2017-06-19 Pedro Alves <palves@redhat.com>
4944
4945 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4946 after gdb::unlinker.
4947
4948 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4949
4950 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4951 gdb_environ to access an environment variable.
4952
4953 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4954
4955 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4956 gdb_byte*.
4957
4958 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4959
4960 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4961
4962 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4963
4964 * configure: Re-generate.
4965 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4966
4967 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4968
4969 * configure: Re-generate.
4970 * warning.m4: Pass -Werror to compiler when checking for
4971 supported warning flags.
4972
4973 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4974
4975 * Makefile.in (COMPILE.pre): Add "-x c++".
4976
4977 2017-06-16 Alan Hayward <alan.hayward@arm.com>
4978 Pedro Alves <palves@redhat.com>
4979 Yao Qi <yao.qi@linaro.org>
4980
4981 * defs.h (RequireLongest): New.
4982 (extract_integer): Declare function template.
4983 (extract_signed_integer): Remove the declaration, but define it
4984 static inline.
4985 (extract_unsigned_integer): Likewise.
4986 (store_integer): Declare function template.
4987 (store_signed_integer): Remove the declaration, but define it
4988 static inline.
4989 (store_unsigned_integer): Likewise.
4990 * findvar.c (extract_integer): New function template.
4991 (extract_signed_integer): Remove.
4992 (extract_unsigned_integer): Remove.
4993 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4994 instantiations.
4995 (store_integer): New function template.
4996 (store_signed_integer): Remove.
4997 (store_unsigned_integer): Remove.
4998 (store_integer): Explicit instantiations.
4999 * regcache.c (regcache_raw_read_signed): Update.
5000 (regcache::raw_read): New function.
5001 (regcache::raw_read_signed): Remove.
5002 (regcache::raw_read_unsigned): Remove.
5003 (regcache_raw_read_unsigned): Update.
5004 (regcache_raw_write_unsigned): Update.
5005 (regcache::raw_write_signed): Remove.
5006 (regcache::raw_write): New function.
5007 (regcache_cooked_read_signed): Update.
5008 (regcache::raw_write_unsigned): Remove.
5009 (regcache::cooked_read_signed): Remove.
5010 (regcache_cooked_read_unsigned): Update.
5011 (regcache::cooked_read_unsigned): Remove.
5012 (regcache_cooked_write_signed): Update.
5013 (regcache_cooked_write_unsigned): Update.
5014 * regcache.h (regcache) <raw_read_signed>: Remove.
5015 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5016 <raw_read, raw_write>: New.
5017 <cooked_read_signed, cooked_write_signed>: Remove.
5018 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5019 <cooked_read, cooked_write>: New.
5020 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5021 (sh64_pseudo_register_write): Update.
5022
5023 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5024
5025 * arc-tdep.c (arc_disassembler_options): New variable.
5026 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5027 of default_print_insn.
5028 (arc_delayed_print_insn): Set info->section when needed,
5029 use default_print_insn to retrieve a disassembler.
5030
5031 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5032
5033 PR gdb/21574
5034 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5035 to mention $SHELL and startup-with-shell.
5036
5037 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5038
5039 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5040
5041 2017-06-14 Yao Qi <yao.qi@linaro.org>
5042
5043 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5044 default_print_insn instead of print_insn_aarch64.
5045 * arm-tdep.c (gdb_print_insn_arm): Call
5046 default_print_insn instead of print_insn_big_arm
5047 and print_insn_little_arm.
5048 * i386-tdep.c (i386_print_insn): Call default_print_insn
5049 instead of print_insn_i386.
5050 * ia64-tdep.c (ia64_print_insn): Call
5051 default_print_insn instead of print_insn_ia64.
5052 * mips-tdep.c (gdb_print_insn_mips): Call
5053 default_print_insn instead of print_insn_big_mips
5054 and print_insn_little_mips.
5055 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5056 instead of print_insn_spu.
5057
5058 2017-06-14 Pedro Alves <palves@redhat.com>
5059
5060 * ada-lang.c: Include "common/byte-vector.h".
5061 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5062 * charset.c (wchar_iterator::iterate): Resize the vector instead
5063 of reserving it.
5064 * common/byte-vector.h: Include "common/def-vector.h".
5065 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5066 * cli/cli-dump.c: Include "common/byte-vector.h".
5067 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5068 * common/byte-vector.h: New file.
5069 * common/def-vector.h: New file.
5070 * common/default-init-alloc.h: New file.
5071 * dwarf2loc.c: Include "common/byte-vector.h".
5072 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5073 instead of reserving it.
5074 * dwarf2read.c: Include "common/byte-vector.h".
5075 (data_buf::m_vec): Now a gdb::byte_vector.
5076 * gdb_regex.c: Include "common/def-vector.h".
5077 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5078 * mi/mi-main.c: Include "common/byte-vector.h".
5079 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5080 * printcmd.c: Include "common/byte-vector.h".
5081 (print_scalar_formatted): Use gdb::byte_vector.
5082 * valprint.c: Include "common/byte-vector.h".
5083 (maybe_negate_by_bytes, print_decimal_chars): Use
5084 gdb::byte_vector.
5085
5086 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5087
5088 * darwin-nat.c: Include "nat/fork-inferior.h".
5089
5090 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5091
5092 * configure.nat: Factor out Darwin bits that are not
5093 architecture-specific. Add fork-inferior.o.
5094
5095 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5096
5097 * configure.nat: Factor out AIX bits that are not
5098 architecture-specific. Add fork-inferior.o.
5099
5100 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5101
5102 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5103 (read_pieced_value, write_pieced_value): ...here. Reduce to
5104 wrappers that just call rw_pieced_value.
5105
5106 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5107
5108 * dwarf2loc.c (write_pieced_value): When writing the data for a
5109 memory piece, use write_memory_with_notification instead of
5110 write_memory.
5111
5112 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5113
5114 * valops.c (read_value_memory): Change embedded_offset to
5115 represent a bit offset instead of a byte offset.
5116 * value.h (read_value_memory): Adjust comment.
5117
5118 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5119
5120 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5121 dest_offset_bits and source_offset_bits.
5122 (write_pieced_value): Likewise.
5123
5124 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5125
5126 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5127 given by DW_OP_bit_piece.
5128 (write_pieced_value): Likewise.
5129
5130 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5131
5132 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5133 some other preparations to the places where sufficient information
5134 is available.
5135 (write_pieced_value): Likewise.
5136
5137 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5138
5139 * dwarf2loc.c (bits_to_bytes): New function.
5140 (read_pieced_value): Fix offset calculations for register pieces
5141 on big-endian targets.
5142 (write_pieced_value): Likewise.
5143
5144 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5145
5146 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5147 (write_pieced_value): Likewise.
5148
5149 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5150
5151 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5152 transfer the source value's least significant bits, instead of its
5153 lowest-addressed ones. Rename type_len to max_offset.
5154 (read_pieced_value): Mirror above changes to write_pieced_value as
5155 applicable.
5156
5157 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5158
5159 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5160 truncate full bytes from dest_offset_bits before using it as an
5161 offset into the buffer.
5162
5163 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5164
5165 * dwarf2loc.c (write_pieced_value): Include transfer size in
5166 byte-wise check.
5167
5168 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5169
5170 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5171 calculation of this_size.
5172
5173 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5174
5175 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5176 when targeting a bit-field.
5177 (write_pieced_value): Likewise.
5178
5179 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5180
5181 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5182 (allocate_piece_closure): Drop addr_size parameter.
5183 (dwarf2_evaluate_loc_desc_full): Adjust call to
5184 allocate_piece_closure.
5185
5186 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5187
5188 PR gdb/21226
5189 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5190 the LSB end, independent of endianness.
5191
5192 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5193
5194 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5195 size capping.
5196
5197 2017-06-13 Yao Qi <yao.qi@linaro.org>
5198
5199 * mips-linux-nat.c: Move include features/mips*-linux.c to
5200 mips-linux-tdep.c.
5201 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5202 to mips-linux-tdep.c.
5203 * mips-linux-tdep.c: Include features/mips*-linux.c
5204 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5205 functions.
5206 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5207 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5208 (tdesc_mips64_dsp_linux): Declare.
5209
5210 2017-06-12 Tom Tromey <tom@tromey.com>
5211
5212 * valprint.h (val_print_type_code_int): Remove.
5213 * valprint.c (generic_val_print_int): Always call
5214 val_print_scalar_formatted.
5215 (val_print_type_code_int): Remove.
5216 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5217 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5218 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5219 * ada-valprint.c (ada_val_print_num): Use
5220 val_print_scalar_formatted.
5221
5222 2017-06-12 Tom Tromey <tom@tromey.com>
5223
5224 * printcmd.c (print_scalar_formatted): Unify the two switches.
5225 Don't convert scalars to LONGEST.
5226
5227 2017-06-12 Tom Tromey <tom@tromey.com>
5228
5229 PR exp/16225:
5230 * valprint.h (print_decimal_chars): Update.
5231 * valprint.c (maybe_negate_by_bytes): New function.
5232 (print_decimal_chars): Add "is_signed" argument.
5233 * printcmd.c (print_scalar_formatted): Update.
5234
5235 2017-06-12 Tom Tromey <tom@tromey.com>
5236
5237 PR exp/16225:
5238 * valprint.h (print_binary_chars, print_hex_chars): Update.
5239 * valprint.c (val_print_type_code_int): Update.
5240 (print_binary_chars): Add "zero_pad" argument.
5241 (emit_octal_digit): New function.
5242 (print_octal_chars): Don't zero-pad.
5243 (print_decimal_chars): Likewise.
5244 (print_hex_chars): Add "zero_pad" argument.
5245 * sh64-tdep.c (sh64_do_fp_register): Update.
5246 * regcache.c (regcache::dump): Update.
5247 * printcmd.c (print_scalar_formatted): Update.
5248 * infcmd.c (default_print_one_register_info): Update.
5249
5250 2017-06-12 Pedro Alves <palves@redhat.com>
5251 Alan Hayward <alan.hayward@arm.com>
5252
5253 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5254 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5255 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5256 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5257 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5258
5259 2017-06-12 Pedro Alves <palves@redhat.com>
5260
5261 * dwarf2read.c (mapped_symtab::data): Now a vector of
5262 symtab_index_entry instead of vector of
5263 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5264 whether an element's name is NULL instead of checking whether the
5265 element itself is NULL.
5266 (find_slot): Change return type. Adjust.
5267 (hash_expand, , add_index_entry, uniquify_cu_indices)
5268 (write_hash_table): Adjust.
5269
5270 2017-06-12 Pedro Alves <palves@redhat.com>
5271
5272 * dwarf2read.c (recursively_count_psymbols): New function.
5273 (write_psymtabs_to_index): Call it to compute number of psyms and
5274 pass estimate size of psyms_seen to unordered_set's ctor.
5275
5276 2017-06-12 Pedro Alves <palves@redhat.com>
5277
5278 * dwarf2read.c (write_hash_table): Check if key already exists
5279 before emplacing.
5280
5281 2017-06-12 Pedro Alves <palves@redhat.com>
5282
5283 * dwarf2read.c (data_buf::append_space): Rename to...
5284 (data_buf::grow): ... this, and make private. Adjust all callers.
5285 (data_buf::append_uint): New method.
5286 (add_address_entry, write_one_signatured_type)
5287 (write_psymtabs_to_index): Use it.
5288
5289 2017-06-12 Pedro Alves <palves@redhat.com>
5290
5291 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5292 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5293 (data_buf::file_write): Call ::fwrite directly.
5294
5295 2017-06-12 Pedro Alves <palves@redhat.com>
5296
5297 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5298 std::vector::erase.
5299
5300 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5301
5302 Code cleanup: C++ify .gdb_index producer.
5303 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5304 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5305 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5306 (create_strtab, add_string): Remove.
5307 (file_write, data_buf): New.
5308 (struct symtab_index_entry): Use std::vector for cu_indices.
5309 (struct mapped_symtab): Use std::vector for data.
5310 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5311 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5312 Remove.
5313 (find_slot): Change return type. Update it to the new data structures.
5314 (hash_expand, add_index_entry): Update it to the new data structures.
5315 (offset_type_compare): Remove.
5316 (uniquify_cu_indices): Update it to the new data structures.
5317 (c_str_view, c_str_view_hasher, vector_hasher): New.
5318 (add_indices_to_cpool): Remove.
5319 (write_hash_table): Update it to the new data structures.
5320 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5321 (eq_psymtab_cu_index): Remove.
5322 (psym_index_map): New typedef.
5323 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5324 reference and std::unordered_map for cu_index_htab.
5325 (add_address_entry, add_address_entry_worker, write_address_map)
5326 (write_psymbols): Update it to the new data structures.
5327 (write_obstack): Remove.
5328 (struct signatured_type_index_data): Change types_list to a data_buf
5329 reference and psyms_seen to a std::unordered_set reference.
5330 (write_one_signatured_type, recursively_write_psymbols)
5331 (write_psymtabs_to_index): Update it to the new data structures.
5332
5333 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5334
5335 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5336 separate-debug-file commands.
5337 * symfile.h (separate_debug_file_debug): New global.
5338 * symfile.c (separate_debug_file_debug): New global.
5339 (separate_debug_file_exists, find_separate_debug_file): Add
5340 debug output.
5341 (_initialize_symfile): Add "set debug separate-debug-file"
5342 command.
5343 * build-id.c (build_id_to_debug_bfd,
5344 find_separate_debug_file_by_buildid): Add debug output.
5345
5346 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5347
5348 * gdbarch.sh (displaced_step_free_closure): Remove.
5349 * gdbarch.h, gdbarch.c: Re-generate.
5350 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5351 displaced_step_free_closure.
5352 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5353 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5354 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5355 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5356 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5357 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5358 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5359 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5360 * infrun.c (displaced_step_clear): Call xfree instead of
5361 gdbarch_displaced_step_free_closure.
5362
5363 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5364
5365 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5366 NULL".
5367
5368 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5369
5370 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5371 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5372 (mn10300_push_dummy_call): Likewise.
5373
5374 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5375
5376 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5377
5378 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5379
5380 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5381
5382 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5383
5384 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5385 able to start inferiors using a shell.
5386 (New remote packets): Announce new packet "QStartupWithShell".
5387 * remote.c: Add PACKET_QStartupWithShell.
5388 (extended_remote_create_inferior): Handle new
5389 PACKET_QStartupWithShell.
5390 (remote_protocol_features) <QStartupWithShell>: New entry for
5391 PACKET_QStartupWithShell.
5392 (_initialize_remote): Call "add_packet_config_cmd" for
5393 QStartupShell.
5394
5395 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5396 Pedro Alves <palves@redhat.com>
5397
5398 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5399 and "nat/fork-inferior.h".
5400 * common/common-inferior.h: New file, with contents from
5401 "gdb/inferior.h".
5402 * commom/common-utils.c: Include "common-utils.h".
5403 (stringify_argv): New function.
5404 * common/common-utils.h (stringify_argv): New prototype.
5405 * configure.nat: Add "fork-inferior.o" as a dependency for
5406 "*linux*", "fbsd*" and "nbsd*" hosts.
5407 * corefile.c (get_exec_file): Update comment.
5408 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5409 instead of "startup_inferior".
5410 (darwin_create_inferior): Call "add_thread_silent" after
5411 "fork_inferior".
5412 * fork-child.c: Cleanup unnecessary includes.
5413 (SHELL_FILE): Move to "common/common-fork-child.c".
5414 (environ): Likewise.
5415 (exec_wrapper): Initialize.
5416 (get_exec_wrapper): New function.
5417 (breakup_args): Move to "common/common-fork-child.c"; rename to
5418 "breakup_args_for_exec".
5419 (escape_bang_in_quoted_argument): Move to
5420 "common/common-fork-child.c".
5421 (saved_ui): New variable.
5422 (prefork_hook): New function.
5423 (postfork_hook): Likewise.
5424 (postfork_child_hook): Likewise.
5425 (gdb_startup_inferior): Likewise.
5426 (fork_inferior): Move to "common/common-fork-child.c". Update
5427 function to support gdbserver.
5428 (startup_inferior): Likewise.
5429 * gdbcore.h (get_exec_file): Remove declaration.
5430 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5431 instead of "startup_inferior". Call "add_thread_silent" after
5432 "fork_inferior".
5433 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5434 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5435 instead of "startup_inferior". Call "add_thread_silent" after
5436 "fork_inferior".
5437 * inferior.h: Include "common-inferior.h".
5438 (trace_start_error): Move to "common/common-utils.h".
5439 (trace_start_error_with_name): Likewise.
5440 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5441 (startup_inferior): Likewise.
5442 (gdb_startup_inferior): New prototype.
5443 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5444 * nat/fork-inferior.h: New file.
5445 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5446 instead of "startup_inferior". Call "add_thread_silent" after
5447 "fork_inferior".
5448 * target.h (target_terminal_init): Move prototype to
5449 "target/target.h".
5450 (target_terminal_inferior): Likewise.
5451 (target_terminal_ours): Likewise.
5452 * target/target.h (target_terminal_init): New prototype, moved
5453 from "target.h".
5454 (target_terminal_inferior): Likewise.
5455 (target_terminal_ours): Likewise.
5456 * utils.c (gdb_flush_out_err): New function.
5457
5458 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5459
5460 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5461 * common/common-gdbthread.h: New file, with parts from
5462 "gdb/gdbthread.h".
5463 * gdbthread.h: Include "common-gdbthread.h".
5464 (switch_to_thread): Moved to "common/common-gdbthread.h".
5465
5466 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5467
5468 * Makefile.in (SFILES): Add "common/job-control.c".
5469 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5470 (COMMON_OBS): Add "job-control.o".
5471 * common/job-control.c: New file, with contents from
5472 "gdb/inflow.c".
5473 * common/job-control.h: New file, with contents from "terminal.h".
5474 * fork-child.c: Include "job-control.h".
5475 * inflow.c: Include "job-control.h".
5476 (gdb_setpgid): Move to "common/common-inflow.c".
5477 (_initialize_inflow): Move setting of "job_control" to
5478 "handle_job_control".
5479 * terminal.h (job_control): Moved to "common/common-terminal.h".
5480 (gdb_setpgid): Likewise.
5481 * top.c: Include "job_control.h".
5482 * utils.c: Likewise.
5483 (job_control): Moved to "job-control.c".
5484
5485 2017-06-07 Pedro Alves <palves@redhat.com>
5486
5487 * Makefile.in (SFILES): Add gdb_regex.c.
5488 (COMMON_OBS): Add gdb_regex.o.
5489 * ada-lang.c (ada_add_standard_exceptions)
5490 (ada_add_exceptions_from_frame, name_matches_regex)
5491 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5492 parameter type to compiled_regex. Adjust.
5493 (ada_exceptions_list): Use compiled_regex.
5494 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5495 std::unique_ptr<compiled_regex>.
5496 (exception_catchpoint::~exception_catchpoint): Remove regfree
5497 call.
5498 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5499 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5500 * breakpoint.c (solib_catchpoint::compiled): Now a
5501 std::unique_ptr<compiled_regex>.
5502 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5503 (check_status_catch_solib): Adjust to use compiled_regex.
5504 (add_solib_catchpoint): Adjust to use compiled_regex.
5505 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5506 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5507 compiled_regex reference. Adjust to use it.
5508 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5509 declaration. Include "gdb_regex.h".
5510 (apropos_cmd): Change regex parameter to compiled_regex reference.
5511 * gdb_regex.c: New file.
5512 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5513 declarations.
5514 (class compiled_regex): New.
5515 * linux-tdep.c: Include "common/gdb_optional.h".
5516 (struct mapping_regexes): New, factored out from
5517 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5518 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5519 gdb::optional and remove cleanups. Adjust to compiled_regex.
5520 * probe.c: Include "common/gdb_optional.h".
5521 (collect_probes): Use compiled_regex and gdb::optional and remove
5522 cleanups.
5523 * skip.c: Include "common/gdb_optional.h".
5524 (skiplist_entry::compiled_function_regexp): Now a
5525 gdb::optional<compiled_regex>.
5526 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5527 (free_skiplist_entry): Remove regfree call.
5528 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5529 compiled_regex and gdb::optional.
5530 * symtab.c: Include "common/gdb_optional.h".
5531 (search_symbols): Use compiled_regex and gdb::optional.
5532 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5533 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5534 to gdb_regex.c.
5535
5536 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5537
5538 * regcache.c (regcache::save): Avoid buffer use.
5539 (regcache::dump): Likewise.
5540
5541 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5542
5543 * sh-tdep.c (sh_pseudo_register_read): Remove
5544 MAX_REGISTER_SIZE.
5545 (sh_pseudo_register_write): Likewise.
5546 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5547 (sh64_pseudo_register_write): Likewise
5548
5549 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5550
5551 * aarch64-tdep.c (aarch64_store_return_value): Use
5552 V_REGISTER_SIZE.
5553 (aarch64_pseudo_read_value): Likewise.
5554 (aarch64_pseudo_write): Likewise.
5555
5556 2017-06-06 Yao Qi <yao.qi@linaro.org>
5557
5558 * regformats/regdef.h (set_register_cache): Remove the
5559 declaration.
5560
5561 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5562
5563 * frame.c (frame_unwind_register_signed): Use
5564 frame_unwind_register_value.
5565
5566 2017-06-06 Pedro Alves <palves@redhat.com>
5567
5568 PR breakpoints/21553
5569 * breakpoint.c (create_breakpoints_sal_default)
5570 (init_breakpoint_sal, create_breakpoint_sal): Use
5571 gdb::unique_xmalloc_ptr for string parameters.
5572 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5573 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5574 (base_breakpoint_create_breakpoints_sal)
5575 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5576 (strace_marker_create_breakpoints_sal)
5577 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5578 string parameters.
5579 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5580 gdb::unique_xmalloc_ptr for string parameters.
5581 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5582 parameters.
5583
5584 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5585
5586 * alpha-tdep.c (alpha_register_to_value): Use
5587 get_frame_register_value.
5588 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5589
5590 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5591
5592 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5593 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5594 (ia64_value_to_register): Likewise.
5595 (ia64_extract_return_value): Likewise.
5596 (ia64_store_return_value): Likewise.
5597 (ia64_push_dummy_call): Likewise.
5598
5599 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5600
5601 GDB 8.0 released.
5602
5603 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5604
5605 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5606
5607 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5608
5609 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5610 parameter.
5611 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5612
5613 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5614
5615 * event-loop.c (poll_timers): Unallocate timer using delete
5616 instead of xfree.
5617
5618 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5619
5620 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5621 (struct breakpoint) <~breakpoint>: New.
5622 (struct watchpoint): Inherit from breakpoint.
5623 <~watchpoint>: New.
5624 <base>: Remove.
5625 (struct tracepoint): Inherit from breakpoint.
5626 <base>: Remove.
5627 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5628 (struct longjmp_breakpoint): Inherit from breakpoint.
5629 <~longjmp_breakpoint>: New.
5630 <base>: Remove.
5631 (new_breakpoint_from_type): Remove casts.
5632 (watchpoint_in_thread_scope): Remove reference to base field.
5633 (watchpoint_del_at_next_stop): Likewise.
5634 (update_watchpoint): Likewise.
5635 (watchpoint_check): Likewise.
5636 (bpstat_check_watchpoint): Likewise.
5637 (set_longjmp_breakpoint): Likewise.
5638 (struct fork_catchpoint): Inherit from breakpoint.
5639 <base>: Remove.
5640 (struct solib_catchpoint): Inherit from breakpoint.
5641 <~solib_catchpoint>: New.
5642 <base>: Remove.
5643 (dtor_catch_solib): Change to ...
5644 (solib_catchpoint::~solib_catchpoint): ... this.
5645 (breakpoint_hit_catch_solib): Remove reference to base field.
5646 (add_solib_catchpoint): Likewise.
5647 (create_fork_vfork_event_catchpoint): Likewise.
5648 (struct exec_catchpoint): Inherit from breakpoint.
5649 <~exec_catchpoint>: New.
5650 <base>: Remove.
5651 (dtor_catch_exec): Change to ...
5652 (exec_catchpoint::~exec_catchpoint): ... this.
5653 (dtor_watchpoint): Change to ...
5654 (watchpoint::~watchpoint): ... this.
5655 (watch_command_1): Remove reference to base field.
5656 (catch_exec_command_1): Likewise.
5657 (base_breakpoint_dtor): Change to ...
5658 (breakpoint::~breakpoint): ... this.
5659 (base_breakpoint_ops): Remove dtor field value.
5660 (longjmp_bkpt_dtor): Change to ...
5661 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5662 (strace_marker_create_breakpoints_sal): Remove reference to base
5663 field.
5664 (delete_breakpoint): Don't manually call breakpoint destructor.
5665 (create_tracepoint_from_upload): Remove reference to base field.
5666 (trace_pass_set_count): Likewise.
5667 (initialize_breakpoint_ops): Don't initialize
5668 momentary_breakpoint_ops, don't set dtors.
5669 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5670 <~ada_catchpoint>: New.
5671 <base>: Remove.
5672 (create_excep_cond_exprs): Remove reference to base field.
5673 (dtor_exception): Change to ...
5674 (ada_catchpoint::~ada_catchpoint): ... this.
5675 (dtor_catch_exception): Remove.
5676 (dtor_catch_exception_unhandled): Remove.
5677 (dtor_catch_assert): Remove.
5678 (create_ada_exception_catchpoint): Remove reference to base
5679 field.
5680 (initialize_ada_catchpoint_ops): Don't set dtors.
5681 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5682 breakpoint.
5683 <~signal_catchpoint>: New.
5684 <base>: Remove.
5685 (signal_catchpoint_dtor): Change to ...
5686 (signal_catchpoint::~signal_catchpoint): ... this.
5687 (create_signal_catchpoint): Remove reference to base field.
5688 (initialize_signal_catchpoint_ops): Don't set dtor.
5689 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5690 from breakpoint.
5691 <~syscall_catchpoint>: New.
5692 <base>: Remove.
5693 (dtor_catch_syscall): Change to ...
5694 (syscall_catchpoint::~syscall_catchpoint): ... this.
5695 (create_syscall_event_catchpoint): Remove reference to base
5696 field.
5697 (initialize_syscall_catchpoint_ops): Don't set dtor.
5698 * break-catch-throw.c (struct exception_catchpoint): Inherit
5699 from breakpoint.
5700 <~exception_catchpoint>: New.
5701 <base>: Remove.
5702 (dtor_exception_catchpoint): Change to ...
5703 (exception_catchpoint::~exception_catchpoint): ... this.
5704 (handle_gnu_v3_exceptions): Remove reference to base field.
5705 (initialize_throw_catchpoint_ops): Don't set dtor.
5706 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5707 field.
5708 * remote.c (remote_get_tracepoint_status): Likewise.
5709 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5710 * tracefile.c (tracefile_fetch_registers): Likewise.
5711 * tracepoint.c (actions_command): Likewise.
5712 (validate_actionline): Likewise.
5713 (tfind_1): Likewise.
5714 (get_traceframe_location): Likewise.
5715 (find_matching_tracepoint_location): Likewise.
5716 (parse_tracepoint_status): Likewise.
5717 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5718
5719 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * breakpoint.c (struct longjmp_breakpoint): New struct.
5722 (is_tracepoint_type): Change return type to bool.
5723 (is_longjmp_type): New function.
5724 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5725 (set_raw_breakpoint_without_location): Use
5726 new_breakpoint_from_type.
5727 (set_raw_breakpoint): Likewise.
5728
5729 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * breakpoint.c (new_breakpoint_from_type): New function.
5732 (create_breakpoint_sal): Use new_breakpoint_from_type and
5733 unique_ptr.
5734 (create_breakpoint): Likewise.
5735
5736 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5737
5738 * memattr.c (mem_info_command): Rename to ...
5739 (info_mem_command): ... this.
5740 (mem_enable_command): Rename to ...
5741 (enable_mem_command): ... this.
5742 (mem_disable_command): Rename to ...
5743 (disable_mem_command): ... this.
5744 (mem_delete_command): Rename to ...
5745 (delete_mem_command): ... this.
5746 (_initialize_mem): Adjust function names.
5747
5748 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5749
5750 * btrace.c (handle_pt_insn_events): New.
5751 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5752 STATUS. Split into this and ...
5753 (handle_pt_insn_event_flags): ... this.
5754
5755 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5756
5757 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5758 and struct pt_insn.resynced.
5759 * configure: Regenerated.
5760 * config.in: Regenerated.
5761
5762 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5763
5764 * btrace.c (ftrace_find_call_by_number): New function.
5765 (ftrace_new_function): Store objects, not pointers.
5766 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5767 ftrace_new_gap, ftrace_update_function,
5768 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5769 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5770 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5771 btrace_ends_with_single_insn, btrace_call_get): Account for
5772 btrace_thread_info::functions now storing objects.
5773 * btrace.h (struct btrace_thread_info): Add constructor.
5774 (struct btrace_thread_info) <functions>: Make std::vector.
5775 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5776 Initialize with default values.
5777 * record-btrace.c (record_btrace_frame_sniffer): Account for
5778 btrace_thread_info::functions now storing objects.
5779
5780 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5781
5782 * btrace.c: Remove typedef bfun_s.
5783 (ftrace_new_gap): Directly add gaps to the list of gaps.
5784 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5785 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5786 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5787 instead of gdb VEC.
5788
5789 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5790
5791 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5792 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5793 with btrace_thread_info::next_segment and
5794 btrace_thread_info::prev_segment.
5795 * btrace.h: Remove struct btrace_func_link.
5796 (struct btrace_function): Replace pair of function segment pointers
5797 with pair of indices.
5798 * python/py-record-btrace.c (btpy_call_prev_sibling,
5799 btpy_call_next_sibling): Replace references to
5800 btrace_thread_info::segment with btrace_thread_info::next_segment and
5801 btrace_thread_info::prev_segment.
5802 * record-btrace.c (record_btrace_frame_this_id): Use
5803 btrace_find_call_by_number.
5804
5805 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5806
5807 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5808 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5809 btrace_insn_next, btrace_insn_prev): Remove references to
5810 btrace_thread_info::flow.
5811 * btrace.h (struct btrace_function): Remove FLOW.
5812
5813 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5814
5815 * btrace.c (ftrace_find_call_by_number): New function.
5816 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5817 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5818 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5819 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5820 index.
5821 * btrace.h (struct btrace_function): Turn UP into an index.
5822 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5823 as an index.
5824 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5825 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5826 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5827
5828 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5829
5830 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5831 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5832 ftrace_update_function, ftrace_compute_global_level_offset,
5833 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5834 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5835 btrace_insn_end, btrace_is_empty): Remove references to
5836 btrace_thread_info::begin and btrace_thread_info::end.
5837 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5838 (struct btrace_thread_info) <functions>: Adjust comment.
5839 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5840 btrace_thread_info::begin.
5841
5842 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5843
5844 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5845 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5846 ftrace_update_function): Remove arguments that implicitly were always
5847 BTINFO->END.
5848 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5849 Don't pass BTINFO->END.
5850
5851 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5852
5853 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5854 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5855 btrace_find_insn_by_number): Replace function segment pointer with
5856 index.
5857 (btrace_insn_cmp): Simplify.
5858 * btrace.h: (struct btrace_insn_iterator) Rename index to
5859 insn_index. Replace function segment pointer with index into function
5860 segment vector.
5861 * record-btrace.c (record_btrace_call_history): Replace function
5862 segment pointer use with index.
5863 (record_btrace_frame_sniffer): Retrieve function call segment through
5864 vector.
5865 (record_btrace_set_replay): Remove defunc't safety check.
5866
5867 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5868
5869 * btrace.c (btrace_ends_with_single_insn): New function.
5870 (btrace_call_get, btrace_call_number, btrace_call_begin,
5871 btrace_call_end, btrace_call_next, btrace_call_prev,
5872 btrace_find_call_by_number): Use index into call segment vector
5873 instead of pointer.
5874 (btrace_call_cmp): Simplify.
5875 * btrace.h (struct btrace_call_iterator): Replace function call segment
5876 pointer with index into vector.
5877 * record-btrace.c (record_btrace_call_history): Use index instead of
5878 pointer.
5879
5880 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5881
5882 * btrace.c (btrace_insn_begin, btrace_insn_end,
5883 btrace_find_insn_by_number): Add btinfo to iterator.
5884 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5885
5886 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5887
5888 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5889 and save pointers directly.
5890 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5891 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5892 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5893 changed signature of functions.
5894 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5895 (btrace_fetch): Remove code that adds btrace_function pointers to
5896 vector of btrace_functions.
5897 (btrace_clear): Simplify freeing vector of btrace_functions.
5898
5899 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5900
5901 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5902 Replace VEC_* with std::vector functions.
5903 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5904 (struct btrace_thread_info)<functions>: Change type to std::vector.
5905
5906 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5907
5908 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5909 "Removed targets and native configurations" up. Merge duplicate
5910 "New commands" sub-sections. Add "New options" sub-sections.
5911
5912 2017-05-26 Alan Hayward <alan.hayward@arm.com>
5913
5914 * defs.h (copy_integer_to_size): New declaration.
5915 * findvar.c (copy_integer_to_size): New function.
5916 (do_cint_test): New selftest function.
5917 (copy_integer_to_size_test): Likewise.
5918 (_initialize_findvar): Likewise.
5919 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5920 (mips_fbsd_collect_reg): Use raw_collect_integer.
5921 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5922 (mips64_fill_gregset): Use raw_collect_integer
5923 (mips64_fill_fpregset): Use raw_supply_integer.
5924 * regcache.c (regcache::raw_supply_integer): New function.
5925 (regcache::raw_collect_integer): Likewise.
5926 * regcache.h: (regcache::raw_supply_integer): New declaration.
5927 (regcache::raw_collect_integer): Likewise.
5928
5929 2017-05-24 Yao Qi <yao.qi@linaro.org>
5930
5931 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5932 (COMMON_OBS): Add gdbarch-selftests.o.
5933 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5934 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5935 * gdbarch-selftests.c: New file.
5936 * regcache.h (regcache) <~regcache>: Mark it virtual if
5937 GDB_SELF_TEST.
5938 <raw_write>: Likewise.
5939
5940 2017-05-24 Yao Qi <yao.qi@linaro.org>
5941
5942 * regcache.c (current_regcache): Change it to
5943 regcache::current_regcache.
5944 (regcache_observer_target_changed): Update.
5945 (regcache_thread_ptid_changed): Make it a regcache static
5946 method.
5947 (regcache_thread_ptid_changed): Update.
5948 (class regcache_access): New.
5949 (current_regcache_test): Update.
5950 (_initialize_regcache): Update.
5951 * regcache.h: Include forward_list.
5952 (regcache): Declare regcache_thread_ptid_changed and declare
5953 registers_changed_ptid as friend.
5954
5955 2017-05-24 Yao Qi <yao.qi@linaro.org>
5956
5957 * i387-tdep.c (i387_register_to_value): Use register_size
5958 instead of TYPE_LENGTH.
5959 * m68k-tdep.c (m68k_register_to_value): Likewise.
5960
5961 2017-05-24 Yao Qi <yao.qi@linaro.org>
5962
5963 * i387-tdep.c (i387_convert_register_p): Return false if type
5964 code isn't TYPE_CODE_FLT.
5965
5966 2017-05-24 Yao Qi <yao.qi@linaro.org>
5967
5968 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5969 length is 4.
5970 (alpha_register_to_value): Remove type length check.
5971 (alpha_value_to_register): Likewise.
5972
5973 2017-05-24 Yao Qi <yao.qi@linaro.org>
5974
5975 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5976 TYPE_CODE_FLT.
5977
5978 2017-05-24 Yao Qi <yao.qi@linaro.org>
5979
5980 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5981 TYPE_CODE_FLT or not.
5982
5983 2017-05-24 Yao Qi <yao.qi@linaro.org>
5984
5985 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5986 * avr-tdep.c (avr_gdbarch_init): Likewise.
5987 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5988 * cris-tdep.c (cris_gdbarch_init): Likewise.
5989 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5990 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5991 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5993 * mep-tdep.c (mep_gdbarch_init): Likewise.
5994 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5995 * mips-tdep.c (mips_gdbarch_init): Likewise.
5996 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5997 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5998 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5999 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6000 * v850-tdep.c (v850_gdbarch_init): Likewise.
6001
6002 2017-05-24 Yao Qi <yao.qi@linaro.org>
6003
6004 * selftest-arch.c (tests_with_arch): Call registers_changed
6005 and reinit_frame_cache.
6006 * selftest.c (run_self_tests): Likewise.
6007
6008 2017-05-24 Yao Qi <yao.qi@linaro.org>
6009
6010 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6011 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6012
6013 2017-05-24 Yao Qi <yao.qi@linaro.org>
6014
6015 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6016 set_gdbarch_print_insn.
6017
6018 2017-05-24 Yao Qi <yao.qi@linaro.org>
6019
6020 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6021 set_gdbarch_print_insn.
6022
6023 2017-05-24 Yao Qi <yao.qi@linaro.org>
6024
6025 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6026 set_gdbarch_print_insn.
6027 * arc-tdep.c (arc_gdbarch_init): Likewise.
6028 * arch-utils.c: include dis-asm.h.
6029 (default_print_insn): New function.
6030 * arch-utils.h (default_print_insn): Declare.
6031 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6032 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6033 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6034 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6035 * frv-tdep.c (frv_gdbarch_init): Likewise.
6036 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6037 * gdbarch.sh (print_insn): Use default_print_insn.
6038 * gdbarch.c: Regenerated.
6039 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6040 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6041 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6042 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6043 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6044 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6045 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6046 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6047 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6048 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6049 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6050 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6051 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6052 * mt-tdep.c (mt_gdbarch_init): Likewise.
6053 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6054 * nios2-tdep.c (nios2_print_insn): Remove.
6055 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6056 * rx-tdep.c (rx_gdbarch_init): Likewise.
6057 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6058 * score-tdep.c (score_print_insn): Remove.
6059 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6060 * sh-tdep.c (sh_gdbarch_init): Likewise.
6061 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6062 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6063 * tic6x-tdep.c (tic6x_print_insn): Remove.
6064 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6065 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6066 * v850-tdep.c (v850_gdbarch_init): Likewise.
6067 * vax-tdep.c (vax_gdbarch_init): Likewise.
6068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6069 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6070
6071 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6072
6073 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6074 (MIPS_FP0_REGNUM): Remove.
6075 (MIPS_FSR_REGNUM): Remove.
6076 (mips_fbsd_supply_fpregs): Use mips_regnum.
6077 (mips_fbsd_supply_gregs): Likewise.
6078 (mips_fbsd_collect_fpregs): Likewise.
6079 (mips_fbsd_collect_gregs): Likewise.
6080
6081 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6082
6083 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6084 (getpfpregs_supplies): New function.
6085 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6086 getfpregs_supplies.
6087 (mips_fbsd_store_inferior_registers): Likewise.
6088
6089 2017-05-22 Pedro Alves <palves@redhat.com>
6090
6091 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6092 maintainer.
6093
6094 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6095
6096 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6097 (store_register): Likewise.
6098 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6099 (get_decimal_float_return_value): Likewise.
6100 (do_ppc_sysv_return_value): Likewise.
6101 (ppc64_sysv_abi_push_integer): Likewise.
6102 (ppc64_sysv_abi_push_freg): Likewise.
6103 (ppc64_sysv_abi_return_value_base): Likewise.
6104 (ppc64_sysv_abi_return_value): Likewise.
6105 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6106 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6107 * rs6000-nat.c: Likewise.
6108 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6109 (rs6000_value_to_register): Likewise.
6110 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6111
6112 2017-05-21 Tom Tromey <tom@tromey.com>
6113
6114 PR rust/21466:
6115 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6116 arrays as "[T]", not "[T; ]".
6117
6118 2017-05-19 Tom Tromey <tom@tromey.com>
6119
6120 PR rust/21484:
6121 * rust-lang.c (exp_descriptor_rust): New function.
6122 (rust_language_defn): Use it.
6123 * p-lang.c (pascal_language_defn): Update.
6124 * opencl-lang.c (opencl_language_defn): Update.
6125 * objc-lang.c (objc_language_defn): Update.
6126 * m2-lang.c (m2_language_defn): Update.
6127 * language.h (struct language_defn)
6128 <la_watch_location_expression>: New member.
6129 * language.c (unknown_language_defn, auto_language_defn)
6130 (local_language_defn): Update.
6131 * go-lang.c (go_language_defn): Update.
6132 * f-lang.c (f_language_defn): Update.
6133 * d-lang.c (d_language_defn): Update.
6134 * c-lang.h (c_watch_location_expression): Declare.
6135 * c-lang.c (c_watch_location_expression): New function.
6136 (c_language_defn, cplus_language_defn, asm_language_defn)
6137 (minimal_language_defn): Use it.
6138 * breakpoint.c (watch_command_1): Call
6139 la_watch_location_expression.
6140 * ada-lang.c (ada_language_defn): Update.
6141
6142 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6143
6144 PR tui/21482
6145 * gdb_curses.h (NOMACROS): Define.
6146 (NCURSES_NOMACROS): Define.
6147
6148 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6149
6150 PR tui/21482
6151 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6152 arg to char *.
6153 * tui/tui-wingeneral.c (box_win): Likewise.
6154 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6155 (tui_show_source_line): Likewise.
6156 (tui_show_exec_info_content): Likewise.
6157
6158 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6159
6160 * sparc-tdep.c (sparc_structure_return_p)
6161 (sparc_arg_on_registers_p): New functions.
6162 (sparc32_store_arguments): Use them.
6163 * sparc64-tdep.c (sparc64_16_byte_align_p)
6164 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6165 Handle TYPE_CODE_ARRAY.
6166
6167 2017-05-17 Yao Qi <yao.qi@linaro.org>
6168
6169 * cli/cli-decode.c (add_alias_cmd): New function.
6170 * command.h (add_alias_cmd): Declare.
6171 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6172 instead call add_alias_cmd.
6173
6174 2017-05-17 Pedro Alves <palves@redhat.com>
6175
6176 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6177 (nat_makefile_frag): ... this. All references updated.
6178 * configure.ac: Likewise.
6179 * configure.nat: Likewise. Enhance comments.
6180 * configure: Regenerate.
6181
6182 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6183
6184 * procfs.c (procfs_create_inferior): Change prototype to match
6185 definition.
6186
6187 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6188
6189 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6190 C++ compiler warning.
6191
6192 2017-05-12 Tom Tromey <tom@tromey.com>
6193
6194 PR rust/21483:
6195 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6196 recurse, just call value_struct_elt directly.
6197
6198 2017-05-12 Tom Tromey <tom@tromey.com>
6199
6200 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6201 OP_RUST_ARRAY>: Fix.
6202
6203 2017-05-12 Tom Tromey <tom@tromey.com>
6204
6205 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6206
6207 2017-05-09 Yao Qi <yao.qi@linaro.org>
6208
6209 * regcache.c: Include <forward_list>.
6210 (struct regcache_list): Remove.
6211 (current_regcache): Update.
6212 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6213 (regcache_thread_ptid_changed): Likewise.
6214 (registers_changed_ptid): Likewise.
6215 (current_regcache_size): Likewise.
6216
6217 2017-05-09 Yao Qi <yao.qi@linaro.org>
6218
6219 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6220 (current_regcache_size): New function.
6221 (current_regcache_test): New function.
6222 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6223
6224 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6225
6226 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6227 (print_gp_register_row): Use get_frame_register_value.
6228
6229 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6230
6231 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6232 (mips_supply_fpregset): Likewise.
6233 (mips64_supply_gregset): Likewise.
6234
6235 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6236
6237 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6238 regcache->raw_supply_zeroed.
6239
6240 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6241
6242 * configure.nat: Rearrange 'case' statements to match
6243 host before cpu.
6244
6245 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6246
6247 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6248 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6249 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6250 "@nat_extra_makefile_frag@".
6251 (Makefile): Remove dependency on "@frags@".
6252 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6253 (data-directory/Makefile): Likewise.
6254 * config/aarch64/linux.mh: Deleted; moved contents to
6255 "gdb/configure.nat".
6256 * config/alpha/alpha-linux.mh: Likewise.
6257 * config/alpha/nbsd.mh: Likewise.
6258 * config/arm/linux.mh: Likewise.
6259 * config/arm/nbsdelf.mh: Likewise.
6260 * config/i386/cygwin.mh: Likewise.
6261 * config/i386/cygwin64.mh: Likewise.
6262 * config/i386/darwin.mh: Likewise.
6263 * config/i386/fbsd.mh: Likewise.
6264 * config/i386/fbsd64.mh: Likewise.
6265 * config/i386/go32.mh: Likewise.
6266 * config/i386/i386gnu.mh: Likewise.
6267 * config/i386/i386sol2.mh: Likewise.
6268 * config/i386/linux.mh: Likewise.
6269 * config/i386/linux64.mh: Likewise.
6270 * config/i386/mingw.mh: Likewise.
6271 * config/i386/mingw64.mh: Likewise.
6272 * config/i386/nbsd64.mh: Likewise.
6273 * config/i386/nbsdelf.mh: Likewise.
6274 * config/i386/nto.mh: Likewise.
6275 * config/i386/obsd.mh: Likewise.
6276 * config/i386/obsd64.mh: Likewise.
6277 * config/i386/sol2-64.mh: Likewise.
6278 * config/ia64/linux.mh: Likewise.
6279 * config/m32r/linux.mh: Likewise.
6280 * config/m68k/linux.mh: Likewise.
6281 * config/m68k/nbsdelf.mh: Likewise.
6282 * config/m68k/obsd.mh: Likewise.
6283 * config/m88k/obsd.mh: Likewise.
6284 * config/mips/fbsd.mh: Likewise.
6285 * config/mips/linux.mh: Likewise.
6286 * config/mips/nbsd.mh: Likewise.
6287 * config/mips/obsd64.mh: Likewise.
6288 * config/pa/linux.mh: Likewise.
6289 * config/pa/nbsd.mh: Likewise.
6290 * config/pa/obsd.mh: Likewise.
6291 * config/powerpc/aix.mh: Likewise.
6292 * config/powerpc/fbsd.mh: Likewise.
6293 * config/powerpc/linux.mh: Likewise.
6294 * config/powerpc/nbsd.mh: Likewise.
6295 * config/powerpc/obsd.mh: Likewise.
6296 * config/powerpc/ppc64-linux.mh: Likewise.
6297 * config/powerpc/spu-linux.mh: Likewise.
6298 * config/s390/linux.mh: Likewise.
6299 * config/sh/nbsd.mh: Likewise.
6300 * config/sparc/fbsd.mh: Likewise.
6301 * config/sparc/linux.mh: Likewise.
6302 * config/sparc/linux64.mh: Likewise.
6303 * config/sparc/nbsd64.mh: Likewise.
6304 * config/sparc/nbsdelf.mh: Likewise.
6305 * config/sparc/obsd64.mh: Likewise.
6306 * config/sparc/sol2.mh: Likewise.
6307 * config/tilegx/linux.mh: Likewise.
6308 * config/vax/nbsdelf.mh: Likewise.
6309 * config/vax/obsd.mh: Likewise.
6310 * config/xtensa/linux.mh: Likewise.
6311 * config/i386/i386gnu.mn: New file, with excerpts from
6312 "config/i386/i386gnu.mh".
6313 * configure: Regenerate.
6314 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6315 *.mh files under "gdb/config".
6316 * configure.nat: New file, with contents from the
6317 "gdb/config/*/*.mh" files.
6318
6319 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6320
6321 * btrace.c (btrace_clear): Free insn vector.
6322
6323 2017-05-05 Pedro Alves <palves@redhat.com>
6324
6325 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6326 * configure: Regenerate.
6327
6328 2017-05-04 Pedro Alves <palves@redhat.com>
6329
6330 * Makefile.in (SFILES): Add progspace-and-thread.c.
6331 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6332 (COMMON_OBS): Add progspace-and-thread.o.
6333 * breakpoint.c: Include "progspace-and-thread.h".
6334 (update_inserted_breakpoint_locations)
6335 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6336 Use scoped_restore_current_pspace_and_thread.
6337 (create_std_terminate_master_breakpoint): Use
6338 scoped_restore_current_program_space.
6339 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6340 (print_breakpoint_location): Use
6341 scoped_restore_current_program_space.
6342 (bp_loc_is_permanent): Use
6343 scoped_restore_current_pspace_and_thread.
6344 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6345 (download_tracepoint_locations): Use
6346 scoped_restore_current_pspace_and_thread.
6347 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6348 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6349 (enum step_over_calls_kind): Moved from inferior.h.
6350 (class scoped_restore_current_thread): New class.
6351 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6352 declaration.
6353 (scoped_restore_current_thread): New class.
6354 * infcmd.c: Include "common/gdb_optional.h".
6355 (continue_1, proceed_after_attach): Use
6356 scoped_restore_current_thread.
6357 (notice_new_inferior): Use scoped_restore_current_thread.
6358 * inferior.c: Include "progspace-and-thread.h".
6359 (restore_inferior, save_current_inferior): Delete.
6360 (add_inferior_command, clone_inferior_command): Use
6361 scoped_restore_current_pspace_and_thread.
6362 * inferior.h (scoped_restore_current_inferior): New class.
6363 * infrun.c: Include "progspace-and-thread.h" and
6364 "common/gdb_optional.h".
6365 (follow_fork_inferior): Use
6366 scoped_restore_current_pspace_and_thread.
6367 (scoped_restore_exited_inferior): New class.
6368 (handle_vfork_child_exec_or_exit): Use
6369 scoped_restore_exited_inferior,
6370 scoped_restore_current_pspace_and_thread,
6371 scoped_restore_current_thread and scoped_restore.
6372 (fetch_inferior_event): Use scoped_restore_current_thread.
6373 * linespec.c (decode_line_full, decode_line_1): Use
6374 scoped_restore_current_program_space.
6375 * mi/mi-main.c: Include "progspace-and-thread.h".
6376 (exec_continue): Use scoped_restore_current_thread.
6377 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6378 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6379 * proc-service.c (ps_pglobal_lookup): Use
6380 scoped_restore_current_program_space.
6381 * progspace-and-thread.c: New file.
6382 * progspace-and-thread.h: New file.
6383 * progspace.c (release_program_space, clone_program_space): Use
6384 scoped_restore_current_program_space.
6385 (restore_program_space, save_current_program_space)
6386 (save_current_space_and_thread): Delete.
6387 (switch_to_program_space_and_thread): Moved to
6388 progspace-and-thread.c.
6389 * progspace.h (save_current_program_space)
6390 (save_current_space_and_thread): Delete declarations.
6391 (scoped_restore_current_program_space): New class.
6392 * remote.c (remote_btrace_maybe_reopen): Use
6393 scoped_restore_current_thread.
6394 * symtab.c: Include "progspace-and-thread.h".
6395 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6396 * thread.c (print_thread_info_1): Use
6397 scoped_restore_current_thread.
6398 (struct current_thread_cleanup): Delete.
6399 (do_restore_current_thread_cleanup)
6400 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6401 (scoped_restore_current_thread::~scoped_restore_current_thread):
6402 ... this new dtor.
6403 (make_cleanup_restore_current_thread): Rename/convert to ...
6404 (scoped_restore_current_thread::scoped_restore_current_thread):
6405 ... this new ctor.
6406 (thread_apply_all_command): Use scoped_restore_current_thread.
6407 (thread_apply_command): Use scoped_restore_current_thread.
6408 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6409 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6410
6411 2017-05-04 Pedro Alves <palves@redhat.com>
6412
6413 * thread.c (make_cleanup_restore_current_thread): Move
6414 find_thread_ptid call before the is_stopped call. Assert that the
6415 thread is found. Replace is_stopped call by checking the thread's
6416 state directly. Remove unnecessary NULL-thread check.
6417
6418 2017-05-04 Pedro Alves <palves@redhat.com>
6419
6420 * corelow.c (thread_section_name): New class.
6421 (get_core_register_section, get_core_siginfo): Use it.
6422
6423 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6424
6425 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6426 (get_core_register_section): Remove xfree of NULL pointer.
6427
6428 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6429
6430 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6431 * regcache.c (regcache::raw_supply_zeroed): New function.
6432 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6433
6434 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6435
6436 * gdbarch.sh: Remove commented out definition of
6437 TARGET_CHAR_BIT.
6438 * gdbarch.h: Re-generate.
6439
6440 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6441
6442 * configure: Regenerate.
6443
6444 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * solib-target.c (solib_target_relocate_section_addresses):
6447 Remove num_section_bases, num_bases, segment_bases variables.
6448
6449 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6450
6451 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6452
6453 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6454
6455 * solib-target.c: Include <vector>
6456 (struct lm_info_target) <~lm_info_target>: Remove.
6457 <segment_bases, section_bases>: Change type to
6458 std::vector<CORE_ADDR>.
6459 (library_list_start_segment, library_list_start_section,
6460 library_list_end_library,
6461 solib_target_relocate_section_addresses): Adjust.
6462
6463 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * gdbarch.sh (software_single_step): Change return type to
6466 std::vector<CORE_ADDR>.
6467 * gdbarch.c, gdbarch.h: Re-generate.
6468 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6469 Adjust.
6470 (arm_deal_with_atomic_sequence_raw): Adjust.
6471 (thumb_get_next_pcs_raw): Adjust.
6472 (arm_get_next_pcs_raw): Adjust.
6473 (arm_get_next_pcs): Adjust.
6474 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6475 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6476 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6477 (alpha_software_single_step): Adjust.
6478 * alpha-tdep.h (alpha_software_single_step): Adjust.
6479 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6480 * arm-tdep.c (arm_software_single_step): Adjust.
6481 (arm_breakpoint_kind_from_current_state): Adjust.
6482 * arm-tdep.h (arm_software_single_step): Adjust.
6483 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6484 * cris-tdep.c (cris_software_single_step): Adjust.
6485 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6486 (micromips_deal_with_atomic_sequence): Adjust.
6487 (deal_with_atomic_sequence): Adjust.
6488 (mips_software_single_step): Adjust.
6489 * mips-tdep.h (mips_software_single_step): Adjust.
6490 * moxie-tdep.c (moxie_software_single_step): Adjust.
6491 * nios2-tdep.c (nios2_software_single_step): Adjust.
6492 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6493 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6494 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6495 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6496 * sparc-tdep.c (sparc_software_single_step): Adjust.
6497 * spu-tdep.c (spu_software_single_step): Adjust.
6498 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6499
6500 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6501
6502 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6503 * gdbarch.h: Re-generate.
6504
6505 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6506
6507 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6508 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6509 * python/py-instruction.c, python/py-instruction.h: New file.
6510 * python/py-record.c: Add py-instruction.h include.
6511 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6512 gdb.RecordInstruction.
6513 * python/python-internal.h: Add gdbpy_initialize_instruction
6514 declaration.
6515 * python/python.c (do_start_initialization): Add
6516 gdbpy_initialize_instruction.
6517
6518 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6519
6520 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6521 Remove.
6522 (btrace_func_from_recpy_func): New function.
6523 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6524 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6525 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6526 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6527 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6528 Also, use new helper functions.
6529 (btpy_list_item): Use new helper functions.
6530 (recpy_bt_function_call_history): Use new type name.
6531 (btpy_call_getset): Remove.
6532 (gdbpy_initialize_btrace): Remove code to initialize
6533 gdb.BtraceFunctionCall.
6534 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6535 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6536 recpy_bt_func_prev, recpy_bt_func_next): New export.
6537 * python/py-record.c (recpy_func_type): New static object.
6538 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6539 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6540 recpy_func_next): New function.
6541 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6542 (recpy_func_getset): New static object.
6543 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6544 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6545
6546 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6547
6548 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6549 (btpy_object, btpy_insn_type, btpy_new): Remove.
6550 (btpy_list_object): Use gdb.RecordInstruction type instead of
6551 gdb.BtraceInstruction type.
6552 (btrace_insn_from_recpy_insn): New function.
6553 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6554 btpy_new.
6555 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6556 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6557 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6558 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6559 instead of btpy_object.
6560 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6561 btpy_insn_data, btpy_insn_decode): Rename to ...
6562 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6563 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6564 recpy_bt_insn_decode): This. Also, use new helper functions.
6565 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6566 recpy_insn_type.
6567 (btpy_insn_getset): Remove.
6568 (gdbpy_initialize_btrace): Remove code to initialize
6569 gdb.BtraceInstruction. Use recpy_element_object.
6570 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6571 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6572 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6573 * python/py-record.c (recpy_insn_type): New static object.
6574 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6575 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6576 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6577 New function.
6578 (recpy_insn_getset): New static object.
6579 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6580 * python/py-record.h (recpy_element_object): New typedef.
6581 (recpy_insn_type, recpy_insn_new): New export.
6582
6583 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6584
6585 * py-record-btrace.c (btpy_insn_new): Removed.
6586 (btpy_insn_or_gap_new): New function.
6587 (btpy_insn_error): Removed.
6588 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6589 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6590 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6591 btpy_insn_or_gap_new instead of btpy_insn_new.
6592 (btpy_insn_getset): Remove btpy_insn_error.
6593 * py-record.c (recpy_gap_type): New static object.
6594 (recpy_gap_object): New typedef.
6595 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6596 recpy_gap_reason_string): New function.
6597 (recpy_gap_getset): New static object.
6598 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6599 * py-record.h (recpy_gap_new): New export.
6600
6601 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6602
6603 * python/py-record.c (recpy_ptid): Remove.
6604 (recpy_record_getset): Remove recpy_ptid.
6605
6606 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6607
6608 * btrace.c (btrace_fetch): Set inferior_ptid.
6609 * python/py-record-btrace.c: Add "py-record.h" include.
6610 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6611 recpy_bt_end, recpy_bt_instruction_history,
6612 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6613 in gdb.Record object instead of current ptid.
6614 * python/py-record.c: Include new "py-record.h" file.
6615 (recpy_record_object): Moved to py-record.h.
6616 * python/py-record.h: New file.
6617
6618 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6619
6620 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6621 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6622 indentation.
6623
6624 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6625
6626 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6627 the past maintainers section.
6628
6629 2017-04-28 Yao Qi <yao.qi@linaro.org>
6630
6631 * infcmd.c (get_return_value): Use regcache ctor, and remove
6632 cleanup.
6633
6634 2017-04-28 Yao Qi <yao.qi@linaro.org>
6635 Pedro Alves <palves@redhat.com>
6636
6637 * regcache.c (regcache::regcache): New tag dispatch ctor.
6638 (do_cooked_read): Moved above.
6639 (regcache_dup): Use the tag dispatch ctor..
6640 * regcache.h (regcache): Declare ctor, delete copy ctor and
6641 assignment operator, remove friend regcache_dup.
6642
6643 2017-04-28 Yao Qi <yao.qi@linaro.org>
6644
6645 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6646 call method save instead of regcache_cpy.
6647 * regcache.h (struct regcache): Make regcache_dup a friend.
6648
6649 2017-04-28 Yao Qi <yao.qi@linaro.org>
6650
6651 * regcache.c (struct regcache): Move to regcache.h
6652 (regcache::arch): New method.
6653 (regcache_get_ptid): Update.
6654 (get_regcache_arch): Call arch method.
6655 (get_regcache_aspace): Call method aspace.
6656 (register_buffer): Change it to method.
6657 (regcache_save): Change it to regcache::save.
6658 (regcache_restore): Likewise.
6659 (regcache_cpy_no_passthrough): Remove the declaration.
6660 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6661 (regcache_cpy_no_passthrough): Change it to method
6662 cpy_no_passthrough.
6663 (regcache_register_status): Change it to method
6664 get_register_status.
6665 (regcache_invalidate): Change it to method invalidate.
6666 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6667 (regcache_raw_update): Change it to method raw_update.
6668 (regcache_raw_read): Likewise.
6669 (regcache_raw_read_signed): Likewise.
6670 (regcache_raw_read_unsigned): Likewise.
6671 (regcache_raw_write_signed): Likewise.
6672 (regcache_raw_write_unsigned): Likewise.
6673 (regcache_cooked_read): Likewise.
6674 (regcache_cooked_read_value): Likewise.
6675 (regcache_cooked_read_signed): Likewise.
6676 (regcache_cooked_read_unsigned): Likewise.
6677 (regcache_cooked_write_signed): Likewise.
6678 (regcache_cooked_write_unsigned): Likewise.
6679 (regcache_raw_set_cached_value): Likewise.
6680 (regcache_raw_write): Likewise.
6681 (regcache_cooked_write): Likewise.
6682 (regcache_xfer_part): Likewise.
6683 (regcache_raw_read_part): Likewise.
6684 (regcache_raw_write_part): Likewise.
6685 (regcache_cooked_read_part): Likewise.
6686 (regcache_cooked_write_part): Likewise.
6687 (regcache_raw_supply): Likewise.
6688 (regcache_raw_collect): Likewise.
6689 (regcache_transfer_regset): Likewise.
6690 (regcache_supply_regset): Likewise.
6691 (regcache_collect_regset): Likewise.
6692 (regcache_debug_print_register): Likewise.
6693 (enum regcache_dump_what): Move it to regcache.h.
6694 (regcache_dump): Change it to method dump.
6695 * regcache.h (enum regcache_dump_what): New.
6696 (class regcache): New.
6697 * target.c (target_fetch_registers): Call method
6698 debug_print_register.
6699 (target_store_registers): Likewise.
6700
6701 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * windows-nat.c (struct lm_info_windows): Initialize field.
6704 (windows_make_so): Allocate lm_info_windows with new.
6705 (windows_free_so): Free lm_info_windows with delete.
6706
6707 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6708
6709 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6710 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6711 cleanup.
6712 (darwin_free_so): Free lm_info_darwin with delete.
6713
6714 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6715
6716 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6717 <l_addr_p>: Change type to bool.
6718 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6719 (svr4_free_so): Free lm_info_svr4 with delete.
6720 (svr4_copy_library_list): Replace memcpy with call to copy
6721 constructor.
6722 (library_list_start_library, svr4_default_sos): Allocate
6723 lm_info_svr4 with new.
6724
6725 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6726
6727 * solib-target.c (struct lm_info_target): Add destructor,
6728 initialize fields.
6729 <name>: Change type to std::string.
6730 (library_list_start_library): Allocate lm_info_target with new.
6731 (solib_target_free_library_list): Free lm_info_target with
6732 delete.
6733 (solib_target_current_sos): Adapt to std::string.
6734 (solib_target_free_so): Free lm_info_target with delete.
6735
6736 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6737
6738 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6739 fields.
6740 (frv_current_sos): Allocate lm_info_frv with new.
6741 (frv_relocate_main_executable): Free lm_info_frv with delete,
6742 allocate with new.
6743 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6744
6745 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6746
6747 * solib-frv.c (struct lm_info_frv): Fix indentation.
6748
6749 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6750
6751 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6752 map field.
6753 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6754 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6755 and allocate with new.
6756 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6757
6758 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6761 <filename, member_name>: Change type to std::string.
6762 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6763 (library_list_start_library): Allocate lm_info_aix with new.
6764 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6765 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6766 with copy constructor.
6767
6768 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6769
6770 * solist.h (struct lm_info): Remove.
6771 (struct lm_info_base): New class.
6772 (struct so_list) <lm_info>: Change type to lm_info_base *.
6773 * nto-tdep.c (struct lm_info): Remove.
6774 (lm_addr): Adjust.
6775 * solib-aix.c (struct lm_info): Rename to ...
6776 (struct lm_info_aix): ... this. Extend lm_info_base.
6777 (lm_info_p): Rename to ...
6778 (lm_info_aix_p): ... this, and adjust.
6779 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6780 solib_aix_parse_libraries, library_list_start_library,
6781 solib_aix_free_library_list, solib_aix_parse_libraries,
6782 solib_aix_get_library_list,
6783 solib_aix_relocate_section_addresses, solib_aix_free_so,
6784 solib_aix_get_section_offsets,
6785 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6786 Adjust.
6787 (struct solib_aix_inferior_data) <library_list>: Adjust.
6788 * solib-darwin.c (struct lm_info): Rename to ...
6789 (struct lm_info_darwin): ... this. Extend lm_info_base.
6790 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6791 * solib-dsbt.c (struct lm_info): Rename to ...
6792 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6793 (struct dsbt_info) <main_executable_lm_info): Adjust.
6794 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6795 dsbt_relocate_section_addresses): Adjust.
6796 * solib-frv.c (struct lm_info): Rename to ...
6797 (struct lm_info_frv): ... this. Extend lm_info_base.
6798 (main_executable_lm_info): Adjust.
6799 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6800 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6801 find_canonical_descriptor_in_load_object,
6802 frv_fdpic_find_canonical_descriptor): Adjust.
6803 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6804 to lm_info_svr4.
6805 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6806 svr4_clear_so, svr4_copy_library_list,
6807 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6808 svr4_current_sos, svr4_fetch_objfile_link_map,
6809 solist_update_incremental): Adjust.
6810 * solib-svr4.h (struct lm_info_svr4): Move here from
6811 solib-svr4.c.
6812 * solib-target.c (struct lm_info): Rename to ...
6813 (struct lm_info_target): ... this. Extend lm_info_base.
6814 (lm_info_p): Rename to ...
6815 (lm_info_target_p): ... this.
6816 (solib_target_parse_libraries, library_list_start_segment,
6817 library_list_start_section, library_list_start_library,
6818 library_list_end_library, solib_target_free_library_list,
6819 solib_target_current_sos, solib_target_free_so,
6820 solib_target_relocate_section_addresses): Adjust.
6821 * windows-nat.c (struct lm_info): Rename to ...
6822 (struct lm_info_windows): ... this. Extend lm_info_base.
6823 (windows_make_so, handle_load_dll, handle_unload_dll,
6824 windows_xfer_shared_libraries): Adjust.
6825
6826 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * solib-darwin.c (struct darwin_so_list): Remove.
6829 (darwin_current_sos): Allocate an so_list object instead of a
6830 darwin_so_list, separately allocate an lm_info object.
6831 (darwin_free_so): Free lm_info.
6832
6833 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6834
6835 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6836 with fprintf_filtered.
6837
6838 2017-04-28 Yao Qi <yao.qi@linaro.org>
6839
6840 * regcache.c (regcache::regcache): New function.
6841 (regcache::~regcache): New function.
6842 (regcache_xmalloc_1): Remove.
6843 (regcache_xmalloc): Call new regcache.
6844 (regcache_xfree): Call delete regcache.
6845 (get_thread_arch_aspace_regcache): Call new regcache.
6846
6847 2017-04-28 Yao Qi <yao.qi@linaro.org>
6848
6849 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6850 lwp instead of ptid_get_lwp.
6851
6852 2017-04-28 Yao Qi <yao.qi@linaro.org>
6853
6854 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6855 lwp_info instead of getting from inferior_ptid.
6856
6857 2017-04-27 Keith Seitz <keiths@redhat.com>
6858
6859 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6860 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6861 (CV_CONVERSION_BADNESS): Define.
6862 (rank_one_type): Remove overly restrictive rvalue reference
6863 rank checks.
6864 Add cv-qualifier checks and subranks for type equality.
6865 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6866 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6867 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6868
6869 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6870
6871 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6872 count when creating the object.
6873
6874 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6875 Ulrich Weigand <uweigand@de.ibm.com>
6876
6877 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6878 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6879 is used in AIX.
6880 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6881 (process_xcoff_symbol): Likewise.
6882 (scan_xcoff_symtab): Likewise.
6883
6884 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6885
6886 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6887 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6888 (ia64_access_reg): Use get_frame_register_unsigned.
6889 (ia64_access_rse_reg): Likewise.
6890 (ia64_libunwind_frame_prev_register): Likewise.
6891
6892 2017-04-26 Jiong Wang <jiong.wang@arm.com>
6893
6894 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6895 * gdbarch.c: Regenerated.
6896 * gdbarch.h: Regenerated.
6897 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6898 visibility external.
6899 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6900 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6901 (enum cfa_how_kind): Move to ...
6902 (struct dwarf2_frame_state_reg_info): Likewise.
6903 (struct dwarf2_frame_state): Likewise.
6904 * dwarf2-frame.h: ... here.
6905 (dwarf2_frame_state_alloc_regs): New declaration.
6906 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6907 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6908
6909 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6910
6911 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6912 regcache_raw_read_unsigned.
6913 (xtensa_pseudo_register_write): Likewise.
6914
6915 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6916
6917 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6918 (nds32_pseudo_register_write): Likewise.
6919
6920 2017-04-25 Yao Qi <yao.qi@linaro.org>
6921
6922 * regcache.c (struct regcache) <readonly_p>: Change its type
6923 to bool.
6924 (regcache_xmalloc_1): Update parameter type and callers update.
6925
6926 2017-04-25 Yao Qi <yao.qi@linaro.org>
6927
6928 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6929 set_gdbarch_wchar_bit.
6930 * arm-tdep.c (arm_gdbarch_init): Likewise.
6931
6932 2017-04-25 Pedro Alves <palves@redhat.com>
6933
6934 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6935 (BothAreRelocatable, memcopy, memmove): Don't define.
6936 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6937 macros.
6938
6939 2017-04-25 Pedro Alves <palves@redhat.com>
6940
6941 * common/common-defs.h: Include "common/poison.h".
6942 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6943 and adjust.
6944 * common/poison.h: New file.
6945 * common/traits.h: Include <type_traits>.
6946 (Not, Or, Requires): New, moved from common/function-view.h.
6947
6948 2017-04-25 Pedro Alves <palves@redhat.com>
6949
6950 * breakpoint.h (struct breakpoint): In-class initialize all
6951 fields. Make boolean fields "bool".
6952 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6953 memset call and initializations no longer necessary.
6954
6955 2017-04-25 Pedro Alves <palves@redhat.com>
6956
6957 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6958 reference.
6959 (pt_btrace_insn): New function.
6960 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6961
6962 2017-04-25 Pedro Alves <palves@redhat.com>
6963
6964 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6965 "base" field and inherit from "bp_location" instead. Add
6966 non-default ctor.
6967 (allocate_location_exception): Use new non-default ctor.
6968 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6969 (init_bp_location): Convert to ...
6970 (bp_location::bp_location): ... this new ctor, and remove memset
6971 call.
6972 (base_breakpoint_allocate_location): Use the new non-default ctor.
6973 * breakpoint.h (bp_location): Now a class. Declare default and
6974 non-default ctors. In-class initialize all members.
6975 (init_bp_location): Remove declaration.
6976
6977 2017-04-25 Pedro Alves <palves@redhat.com>
6978
6979 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6980 assignment operator.
6981
6982 2017-04-24 Yao Qi <yao.qi@linaro.org>
6983
6984 * doublest.c (convert_doublest_to_floatformat): Call
6985 floatformat_totalsize_bytes.
6986
6987 2017-04-22 Tom Tromey <tom@tromey.com>
6988
6989 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6990 ui_out_emit_list.
6991 * stack.c (print_frame): Use ui_out_emit_list.
6992 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6993 ui_out_emit_list.
6994 * mi/mi-main.c (print_one_inferior)
6995 (mi_cmd_data_list_register_names)
6996 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6997 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6998 ui_out_emit_list.
6999 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7000 (mi_output_solib_attribs): Use ui_out_emit_list,
7001 ui_out_emit_tuple.
7002 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7003 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7004 (mi_cmd_stack_list_args, list_args_or_locals): Use
7005 ui_out_emit_list.
7006 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7007 * breakpoint.c (print_solib_event, output_thread_groups): Use
7008 ui_out_emit_list.
7009
7010 2017-04-22 Tom Tromey <tom@tromey.com>
7011
7012 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7013 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7014 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7015
7016 2017-04-22 Tom Tromey <tom@tromey.com>
7017
7018 * tracepoint.c (tvariables_info_1)
7019 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7020
7021 2017-04-22 Tom Tromey <tom@tromey.com>
7022
7023 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7024 annotate_arg_emitter.
7025 * breakpoint.c (print_mention_watchpoint)
7026 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7027 * annotate.h (struct annotate_arg_emitter): New.
7028
7029 2017-04-22 Tom Tromey <tom@tromey.com>
7030
7031 * record-btrace.c (record_btrace_insn_history)
7032 (record_btrace_insn_history_range, record_btrace_call_history)
7033 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7034 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7035 ui_out_emit_tuple.
7036 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7037 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7038 * skip.c (skip_info): Use ui_out_emit_tuple.
7039 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7040 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7041 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7042 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7043 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7044 ui_out_emit_tuple.
7045 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7046 (output_register, mi_cmd_data_read_memory)
7047 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7048 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7049 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7050 Use ui_out_emit_tuple.
7051 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7052 ui_out_emit_tuple.
7053 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7054 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7055 * linux-thread-db.c (info_auto_load_libthread_db): Use
7056 ui_out_emit_tuple.
7057 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7058 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7059 * disasm.c (do_mixed_source_and_assembly_deprecated)
7060 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7061 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7062 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7063 * breakpoint.c (print_one_breakpoint_location)
7064 (print_one_breakpoint): Use ui_out_emit_tuple.
7065 * auto-load.c (print_script, info_auto_load_cmd): Use
7066 ui_out_emit_tuple.
7067 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7068
7069 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7070
7071 * thread.c (print_thread_info_1): Remove dead code.
7072
7073 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7074
7075 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7076 GDB_SELF_TEST.
7077 * arm-tdep.c (selftests::arm_record_test): Likewise.
7078
7079 2017-04-21 Yao Qi <yao.qi@linaro.org>
7080
7081 * regcache.c (regcache_restore): Remove argument 2. Replace
7082 argument 3 with regcache. Get register status from
7083 src->register_status and get register contents from
7084 register_buffer (src, regnum).
7085 (regcache_cpy): Update.
7086
7087 2017-04-19 Pedro Alves <palves@redhat.com>
7088
7089 * gdbthread.h (thread): Add missing closing parenthesis in
7090 comment.
7091
7092 2017-04-19 Pedro Alves <palves@redhat.com>
7093
7094 * common/refcounted-object.h: New file.
7095 * gdbthread.h: Include "common/refcounted-object.h".
7096 (thread_info): Inherit from refcounted_object and add comments.
7097 (thread_info::incref, thread_info::decref)
7098 (thread_info::m_refcount): Delete.
7099 (thread_info::deletable): Use the refcounted_object::refcount()
7100 method.
7101 * inferior.c (current_inferior_): Add comment.
7102 (set_current_inferior): Increment/decrement refcounts.
7103 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7104 not-deletable instead of comparing with the current inferior.
7105 (initialize_inferiors): Increment the initial inferior's refcount.
7106 * inferior.h (struct inferior): Forward declare.
7107 Include "common/refcounted-object.h".
7108 (current_inferior, set_current_inferior): Move declaration to
7109 before struct inferior's definition, and fix comment.
7110 (inferior): Inherit from refcounted_object. Add comments.
7111 * thread.c (switch_to_thread_no_regs): Reference the thread's
7112 inferior pointer directly instead of doing a ptid lookup.
7113 (switch_to_no_thread): New function.
7114 (switch_to_thread(thread_info *)): New function, factored out
7115 from ...
7116 (switch_to_thread(ptid_t)): ... this.
7117 (restore_current_thread): Delete.
7118 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7119 fields, and add 'inf' field.
7120 (do_restore_current_thread_cleanup): Check whether old->inf is
7121 alive instead of looking up an inferior by ptid. Use
7122 switch_to_thread and switch_to_no_thread.
7123 (restore_current_thread_cleanup_dtor): Use old->inf directly
7124 instead of lookup up an inferior by id. Decref the inferior.
7125 Don't restore 'removable'.
7126 (make_cleanup_restore_current_thread): Same the inferior pointer
7127 in old, instead of the inferior number. Incref the inferior.
7128 Don't save/clear 'removable'.
7129
7130 2017-04-19 Pedro Alves <palves@redhat.com>
7131
7132 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7133 unittests/scoped_restore-selftests.c.
7134 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7135 * common/scoped_restore.h (scoped_restore_base): Make "class".
7136 (scoped_restore_base::release): New public method.
7137 (scoped_restore_base::scoped_restore_base): New protected ctor.
7138 (scoped_restore_base::m_saved_var): New protected field.
7139 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7140 scoped_restore_base base class instead of m_saved_var directly.
7141 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7142 (scoped_restore_tmpl::scoped_restore_tmpl(const
7143 scoped_restore_tmpl<T>&)): Likewise.
7144 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7145 method.
7146 (scoped_restore_tmpl::saved_var): New method.
7147 (scoped_restore_tmpl::m_saved_var): Delete.
7148 * inferior.h (inferior::detaching): Now a bool.
7149 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7150 cleanup.
7151 * unittests/scoped_restore-selftests.c: New file.
7152
7153 2017-04-19 Pedro Alves <palves@redhat.com>
7154
7155 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7156 Re-sort in alphabetic order.
7157
7158 2017-04-18 Pedro Alves <palves@redhat.com>
7159
7160 * xml-support.c (obstack_xml_printf): Delete.
7161 * xml-support.h (obstack_xml_printf): Delete.
7162
7163 2017-04-18 Pedro Alves <palves@redhat.com>
7164
7165 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7166 vdebug, verror, body_text, start_element, end_element, name,
7167 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7168 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7169 is_xinclude>: Make private and add m_ prefix.
7170 (gdb_xml_parser::body_text): New method, based on ...
7171 (gdb_xml_body_text): ... this. Adjust.
7172 (gdb_xml_parser::vdebug): New method, based on ...
7173 (gdb_xml_debug): ... this. Adjust.
7174 (gdb_xml_parser::verror): New method, based on ...
7175 (gdb_xml_error): ... this. Adjust.
7176 (gdb_xml_parser::start_element): New method, based on ...
7177 (gdb_xml_start_element): ... this. Adjust.
7178 (gdb_xml_start_element_wrapper): Defer to
7179 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7180 (gdb_xml_parser::end_element): New method, based on ...
7181 (gdb_xml_end_element_wrapper): ... this. Adjust.
7182 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7183 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7184 (gdb_xml_parser::use_dtd): New method, based on ...
7185 (gdb_xml_use_dtd): ... this. Adjust.
7186 (gdb_xml_parser::parse): New method, based on ...
7187 (gdb_xml_parse): ... this. Adjust.
7188 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7189 (xinclude_start_include): Adjust to call the parser's name method.
7190 (xml_xinclude_default, xml_xinclude_start_doctype)
7191 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7192 method.
7193 (xml_process_xincludes): Adjust to call parser methods.
7194 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7195 declarations.
7196
7197 2017-04-18 Pedro Alves <palves@redhat.com>
7198
7199 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7200 gdb::optional<std::string>.
7201 * xml-support.c: Include <string>.
7202 (scope_level::scope_level(scope_level &&))
7203 (scope_level::~scope_level): Delete.
7204 (scope_level::body): Now a std::string.
7205 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7206 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7207 parameter.
7208 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7209 (xinclude_parsing_data::output): Now a std::string reference.
7210 (xinclude_start_include): Adjust.
7211 (xml_xinclude_default): Adjust.
7212 (xml_process_xincludes): Add 'output' parameter, and return bool.
7213 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7214 and return bool.
7215 * xml-tdesc.c: Include <unordered_map> and <string>.
7216 (tdesc_xml_cache): Delete.
7217 (tdesc_xml_cache_s): Delete.
7218 (xml_cache): Now an std::unordered_map.
7219 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7220 (target_fetch_description_xml): Change return type to
7221 gdb::optional<std::string>, and adjust.
7222 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7223 (target_fetch_description_xml): Change return type to
7224 gdb::optional<std::string>.
7225
7226 2017-04-18 Pedro Alves <palves@redhat.com>
7227
7228 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7229 unittests/optional-selftests.c.
7230 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7231 * unittests/optional-selftests.c: New file.
7232 * unittests/optional/assignment/1.cc: New file.
7233 * unittests/optional/assignment/2.cc: New file.
7234 * unittests/optional/assignment/3.cc: New file.
7235 * unittests/optional/assignment/4.cc: New file.
7236 * unittests/optional/assignment/5.cc: New file.
7237 * unittests/optional/assignment/6.cc: New file.
7238 * unittests/optional/assignment/7.cc: New file.
7239 * unittests/optional/cons/copy.cc: New file.
7240 * unittests/optional/cons/default.cc: New file.
7241 * unittests/optional/cons/move.cc: New file.
7242 * unittests/optional/cons/value.cc: New file.
7243 * unittests/optional/in_place.cc: New file.
7244 * unittests/optional/observers/1.cc: New file.
7245 * unittests/optional/observers/2.cc: New file.
7246
7247 2017-04-18 Pedro Alves <palves@redhat.com>
7248
7249 * common/gdb_optional.h: Include common/traits.h.
7250 (in_place_t): New type.
7251 (in_place): New constexpr variable.
7252 (optional::optional): Remove member initialization of
7253 m_instantiated.
7254 (optional::optional(in_place_t...)): New constructor.
7255 (optional::~optional): Use reset.
7256 (optional::optional(const optional&)): New.
7257 (optional::optional(const optional&&)): New.
7258 (optional::optional(T &)): New.
7259 (optional::optional(T &&)): New.
7260 (operator::operator=(const optional &)): New.
7261 (operator::operator=(optional &&)): New.
7262 (operator::operator= (const T &))
7263 (operator::operator= (T &&))
7264 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7265 (operator::reset): New.
7266 (operator::m_instantiated):: Add in-class initializer.
7267 * common/traits.h: Include <type_traits>.
7268 (struct And): New types.
7269
7270 2017-04-18 Pedro Alves <palves@redhat.com>
7271
7272 * xml-support.c: Include <vector>.
7273 (scope_level::scope_level(const gdb_xml_element *))
7274 (scope_level::scope_level(scope_level&&)): New.
7275 (scope_level::~scope_level): New.
7276 (scope_level_s): Delete.
7277 (gdb_xml_parser::scopes): Now a std::vector.
7278 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7279 Use std::vector.
7280 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7281 scope cleanup code.
7282 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7283 of the scopes member. Use std::vector::emplace_back.
7284
7285 2017-04-18 Pedro Alves <palves@redhat.com>
7286
7287 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7288 a bool.
7289 (gdb_xml_end_element): Change type of first parameter.
7290 (gdb_xml_cleanup): Rename to ...
7291 (gdb_xml_parser::~gdb_xml_parser): ... this.
7292 (gdb_xml_create_parser_and_cleanup): Delete with ...
7293 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7294 to this new ctor.
7295 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7296 using gdb_xml_create_parser_and_cleanup.
7297 (xinclude_parsing_data): Add ctor/dtor.
7298 (xml_xinclude_cleanup): Delete.
7299 (xml_process_xincludes): Create a local xinclude_parsing_data
7300 instead of heap-allocating one. Create a local gdb_xml_parser
7301 instead of heap-allocating one with
7302 gdb_xml_create_parser_and_cleanup.
7303
7304 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7305
7306 PR threads/20743
7307 * fbsd-nat.c (resume_one_thread_cb): Remove.
7308 (resume_all_threads_cb): Remove.
7309 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7310 iterate_over_threads.
7311
7312 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7313
7314 * NEWS: Create a new section for the next release branch.
7315 Rename the section of the current branch, now that it has
7316 been cut.
7317
7318 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7319
7320 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7321 * version.in: Bump version to 8.0.50.DATE-git.
7322
7323 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 PR gdb/21385
7326 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7327 independently of the host, and fix build breakage on Cygwin.
7328
7329 2017-04-13 Pedro Alves <palves@redhat.com>
7330
7331 * inferior.c (free_inferior): Convert to ...
7332 (inferior::~inferior): ... this dtor.
7333 (inferior::inferior): New ctor, factored out from ...
7334 (add_inferior_silent): ... here. Allocate the inferior with a new
7335 expression.
7336 (delete_inferior): Call delete instead of free_inferior.
7337 * inferior.h (gdb_environ, continuation): Forward declare.
7338 (inferior): Now a class. Add in-class initialization to all
7339 members. Make boolean fields bool, except 'detaching'.
7340 (inferior::inferior): New explicit ctor.
7341 (inferior::~inferior): New.
7342
7343 2017-04-13 Pedro Alves <palves@redhat.com>
7344
7345 * inferior.c (init_inferior_list): Delete.
7346 * inferior.h (init_inferior_list): Delete.
7347
7348 2017-04-13 Pedro Alves <palves@redhat.com>
7349
7350 PR threads/13217
7351 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7352 (top level): Call it twice, with different thread sets.
7353
7354 2017-04-13 Pedro Alves <palves@redhat.com>
7355
7356 * thread.c: Include <algorithm>.
7357 (thread_array_cleanup): Delete.
7358 (scoped_inc_dec_ref): New class.
7359 (live_threads_count): New function.
7360 (set_thread_refcount): Delete.
7361 (tp_array_compar_ascending): Now a bool.
7362 (tp_array_compar): Convert to a std::sort comparison function.
7363 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7364 and live_threads_count.
7365
7366 2017-04-13 Pedro Alves <palves@redhat.com>
7367
7368 * infrun.c (follow_fork_inferior): Also switch the current
7369 inferior.
7370
7371 2017-04-13 Pedro Alves <palves@redhat.com>
7372
7373 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7374 before calling create_internal_breakpoint.
7375
7376 2017-04-13 Pedro Alves <palves@redhat.com>
7377
7378 * fork-child.c (execv_argv): New class.
7379 (breakup_args): Refactored as ...
7380 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7381 Copy arguments to storage and replace separators with NULL
7382 terminators in place.
7383 (escape_bang_in_quoted_argument): Adjust to return bool.
7384 (execv_argv::execv_argv): New ctor.
7385 (execv_argv::init_for_shell): New method, factored out from
7386 fork_inferior. Don't strdup strings into the vector.
7387 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7388 Remove free_vector_argv call.
7389
7390 2017-04-13 Yao Qi <yao.qi@linaro.org>
7391
7392 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7393 tdep->rx_psw_type.
7394
7395 2017-04-13 Yao Qi <yao.qi@linaro.org>
7396
7397 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7398 * rx-tdep.c (rx_gdbarch_init): Likewise.
7399
7400 2017-04-13 Pedro Alves <palves@redhat.com>
7401
7402 * breakpoint.h (struct breakpoint): Reindent.
7403
7404 2017-04-13 Pedro Alves <palves@redhat.com>
7405
7406 * breakpoint.c (bp_location): Rename to ...
7407 (bp_locations): ... this. All references updated.
7408 (bp_location_count): Rename to ...
7409 (bp_locations_count): ... this. All references updated.
7410 (bp_location_placed_address_before_address_max): Rename to ...
7411 (bp_locations_placed_address_before_address_max): ... this. All
7412 references updated.
7413 (bp_location_shadow_len_after_address_max): Rename to ...
7414 (bp_locations_shadow_len_after_address_max): ... this. All
7415 references updated.
7416 (bp_location_compare_addrs): Rename to ...
7417 (bp_locations_compare_addrs): ... this. All references updated.
7418 (bp_location_compare):Rename to ...
7419 (bp_locations_compare): ... this. All references updated.
7420 (bp_location_target_extensions_update): Rename to ...
7421 (bp_locations_target_extensions_update): ... this. All references
7422 updated.
7423
7424 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7425
7426 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7427 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7428 'sgtty.h'.
7429 * common/gdb_termios.h: New file, with parts of "terminal.h".
7430 * inflow.c: Include "gdb_termios.h".
7431 * ser-unix.c: Include "gdb_termios.h".
7432 * terminal.h: Move terminal-related defines to
7433 "common/gdb_termios.h".
7434
7435 2017-04-12 Tom Tromey <tom@tromey.com>
7436
7437 * probe.c (parse_probes): Update.
7438 * location.h (delete_event_location): Don't declare.
7439 (event_location_deleter::operator()): Update.
7440 * location.c (event_location_deleter::operator()): Rename from
7441 delete_event_location.
7442 * linespec.h (linespec_result) <location>: Change type to
7443 event_location_up.
7444 * linespec.c (canonicalize_linespec, event_location_to_sals)
7445 (decode_objc): Update.
7446 (linespec_result): Don't call delete_event_location.
7447 * breakpoint.c (create_breakpoints_sal)
7448 (bkpt_probe_create_sals_from_location)
7449 (strace_marker_create_sals_from_location): Update.
7450
7451 2017-04-12 Tom Tromey <tom@tromey.com>
7452
7453 * linespec.h (struct linespec_result): Add constructor and
7454 destructor.
7455 (init_linespec_result, destroy_linespec_result)
7456 (make_cleanup_destroy_linespec_result): Don't declare.
7457 * linespec.c (init_linespec_result): Remove.
7458 (linespec_result::~linespec_result): Rename from
7459 destroy_linespec_result. Update.
7460 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7461 Remove.
7462 * breakpoint.c (create_breakpoint, break_range_command)
7463 (decode_location_default): Update.
7464 * ax-gdb.c (agent_command_1): Update.
7465
7466 2017-04-12 Tom Tromey <tom@tromey.com>
7467
7468 * remote.c (remote_download_tracepoint): Update.
7469 * python/py-breakpoint.c (bppy_get_location): Update.
7470 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7471 (gdbscm_breakpoint_location): Update.
7472 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7473 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7474 Change type to event_location_up.
7475 * breakpoint.c (create_overlay_event_breakpoint)
7476 (create_longjmp_master_breakpoint)
7477 (create_std_terminate_master_breakpoint)
7478 (create_exception_master_breakpoint)
7479 (breakpoint_event_location_empty_p, print_breakpoint_location)
7480 (print_one_breakpoint_location, create_thread_event_breakpoint)
7481 (init_breakpoint_sal, create_breakpoint)
7482 (print_recreate_ranged_breakpoint, break_range_command)
7483 (init_ada_exception_breakpoint, say_where): Update.
7484 (base_breakpoint_dtor): Don't call delete_event_location.
7485 (bkpt_print_recreate, tracepoint_print_recreate)
7486 (dprintf_print_recreate, update_static_tracepoint)
7487 (breakpoint_re_set_default): Update.
7488
7489 2017-04-12 Tom Tromey <tom@tromey.com>
7490
7491 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7492 type of "to_do". Update.
7493 (compute_stack_depth): Use std::vector.
7494
7495 2017-04-12 Tom Tromey <tom@tromey.com>
7496
7497 * printcmd.c (find_instruction_backward): Use std::vector.
7498
7499 2017-04-12 Tom Tromey <tom@tromey.com>
7500
7501 * symfile.c (objfilep): Remove typedef.
7502 (reread_symbols): Use a std::vector.
7503
7504 2017-04-12 Tom Tromey <tom@tromey.com>
7505
7506 * mi/mi-main.c (exec_direction_forward): Remove.
7507 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7508 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7509 scoped_restore.
7510 * guile/guile.c (guile_repl_command, guile_command)
7511 (gdbscm_execute_gdb_command): Use scoped_restore.
7512 * go-exp.y (go_parse): Use scoped_restore.
7513 * d-exp.y (d_parse): Use scoped_restore.
7514 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7515 * c-exp.y (c_parse): Use scoped_restore.
7516
7517 2017-04-12 Tom Tromey <tom@tromey.com>
7518
7519 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7520 (mi_parse): Update return type.
7521 (mi_parse_free): Remove.
7522 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7523 (mi_parse::~mi_parse): Rename from mi_parse_free.
7524 (mi_parse_cleanup): Remove.
7525 (mi_parse): Return a unique_ptr. Use new.
7526 * mi/mi-main.c (mi_execute_command): Update.
7527
7528 2017-04-12 Tom Tromey <tom@tromey.com>
7529
7530 * location.c (explicit_location_lex_one): Return a
7531 unique_xmalloc_ptr.
7532 (string_to_explicit_location): Update. Remove cleanups.
7533
7534 2017-04-12 Tom Tromey <tom@tromey.com>
7535
7536 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7537 (compare_value_and_voffset): Change type. Update.
7538 (compute_vtable_size): Change type of "offset_vec".
7539 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7540 (gnuv3_get_typeid): Remove extraneous declaration.
7541
7542 2017-04-12 Tom Tromey <tom@tromey.com>
7543
7544 * charset.h (wchar_iterator): Fix comment.
7545
7546 2017-04-12 Tom Tromey <tom@tromey.com>
7547
7548 * charset.c (iconv_wrapper): New class.
7549 (cleanup_iconv): Remove.
7550 (convert_between_encodings): Use it.
7551
7552 2017-04-12 Tom Tromey <tom@tromey.com>
7553
7554 * symfile.h (increment_reading_symtab): Update type.
7555 * symfile.c (decrement_reading_symtab): Remove.
7556 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7557 * psymtab.c (psymtab_to_symtab): Update.
7558 * dwarf2read.c (dw2_instantiate_symtab): Update.
7559
7560 2017-04-12 Tom Tromey <tom@tromey.com>
7561
7562 * jit.c (struct jit_reader): Declare separately. Add constructor
7563 and destructor. Change type of "handle".
7564 (loaded_jit_reader): Define separately.
7565 (jit_reader_load): Update. New "new".
7566 (jit_reader_unload_command): Use "delete".
7567 * gdb-dlfcn.h (struct dlclose_deleter): New.
7568 (gdb_dlhandle_up): New typedef.
7569 (gdb_dlopen, gdb_dlsym): Update types.
7570 (gdb_dlclose): Remove.
7571 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7572 (gdb_dlsym): Change type of "handle".
7573 (make_cleanup_dlclose): Remove.
7574 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7575 * compile/compile-c-support.c (load_libcc): Update.
7576
7577 2017-04-12 Tom Tromey <tom@tromey.com>
7578
7579 * symtab.h (find_pcs_for_symtab_line): Change return type.
7580 * symtab.c (find_pcs_for_symtab_line): Change return type.
7581 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7582 type of "vec". Update.
7583 (ltpy_get_pcs_for_line): Update.
7584 * linespec.c (decode_digits_ordinary): Update.
7585
7586 2017-04-12 Tom Tromey <tom@tromey.com>
7587
7588 * tracepoint.c (actions_command): Update.
7589 * python/python.c (python_command, python_interactive_command):
7590 Update.
7591 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7592 * guile/guile.c (guile_command): Update.
7593 * defs.h (read_command_lines, read_command_lines_1): Return
7594 command_line_up.
7595 (command_lines_deleter): New struct.
7596 (command_line_up): New typedef.
7597 * compile/compile.c (compile_code_command)
7598 (compile_print_command): Update.
7599 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7600 command_line_up.
7601 (make_cleanup_free_command_lines): Remove.
7602 * cli/cli-script.c (get_command_line, read_command_lines_1)
7603 (copy_command_lines): Return command_line_up.
7604 (while_command, if_command, read_command_lines, define_command)
7605 (document_command): Update.
7606 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7607 Remove.
7608 * breakpoint.h (breakpoint_set_commands): Change type of
7609 "commands".
7610 * breakpoint.c (breakpoint_set_commands): Change type of
7611 "commands". Update.
7612 (do_map_commands_command, update_dprintf_command_list)
7613 (create_tracepoint_from_upload): Update.
7614
7615 2017-04-12 Tom Tromey <tom@tromey.com>
7616
7617 * tracepoint.c (scope_info): Update.
7618 * spu-tdep.c (spu_catch_start): Update.
7619 * python/python.c (gdbpy_decode_line): Update.
7620 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7621 * python/py-breakpoint.c (bppy_init): Update.
7622 * probe.c (parse_probes): Update.
7623 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7624 * location.h (event_location_deleter): New struct.
7625 (event_location_up): New typedef.
7626 (new_linespec_location, new_address_location, new_probe_location)
7627 (new_explicit_location, copy_event_location)
7628 (string_to_event_location, string_to_event_location_basic)
7629 (string_to_explicit_location): Update return type.
7630 (make_cleanup_delete_event_location): Remove.
7631 * location.c (new_linespec_location, new_address_location)
7632 (new_probe_location, new_explicit_location, copy_event_location):
7633 Return event_location_up.
7634 (delete_event_location_cleanup)
7635 (make_cleanup_delete_event_location): Remove.
7636 (string_to_explicit_location, string_to_event_location_basic)
7637 (string_to_event_location): Return event_location_up.
7638 * linespec.c (canonicalize_linespec, event_location_to_sals)
7639 (decode_line_with_current_source)
7640 (decode_line_with_last_displayed, decode_objc): Update.
7641 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7642 * completer.c (location_completer): Update.
7643 * cli/cli-cmds.c (edit_command, list_command): Update.
7644 * breakpoint.c (create_overlay_event_breakpoint)
7645 (create_longjmp_master_breakpoint)
7646 (create_std_terminate_master_breakpoint)
7647 (create_exception_master_breakpoint)
7648 (create_thread_event_breakpoint): Update.
7649 (init_breakpoint_sal): Update. Remove some dead code.
7650 (create_breakpoint_sal): Change type of "location". Update.
7651 (create_breakpoints_sal, create_breakpoint, break_command_1)
7652 (dprintf_command, break_range_command, until_break_command)
7653 (init_ada_exception_breakpoint)
7654 (strace_marker_create_sals_from_location)
7655 (update_static_tracepoint, trace_command, ftrace_command)
7656 (strace_command, create_tracepoint_from_upload): Update.
7657 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7658 * ax-gdb.c (agent_command_1): Update.
7659
7660 2017-04-12 Pedro Alves <palves@redhat.com>
7661
7662 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7663 * configure.tgt: Handle i[34567]86-*-go32* and
7664 i[34567]86-*-msdosdjgpp*.
7665 * i386-tdep.c (i386_svr4_reg_to_regnum):
7666 Make extern.
7667 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7668 i386-go32-tdep.c.
7669 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7670 * i386-go32-tdep.c: New file.
7671 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7672 declarations.
7673
7674 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7675
7676 * aix-thread.c (pd_status2str): Change return type to const char *.
7677
7678 2017-04-12 Pedro Alves <palves@redhat.com>
7679
7680 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7681 calls to set_gdbarch_gnu_triplet_regexp.
7682
7683 2017-04-12 Pedro Alves <palves@redhat.com>
7684
7685 PR gdb/21323
7686 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7687 New enum value.
7688 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7689 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7690 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7691 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7692 * gdbarch.h, gdbarch.c: Regenerate.
7693 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7694 gdbarch_wchar_bit and gdbarch_wchar_signed.
7695 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7696 * arm-tdep.c (arm_gdbarch_init): Likewise.
7697 * avr-tdep.c (avr_gdbarch_init): Likewise.
7698 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7699 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7700 * i386-tdep.c (i386_go32_init_abi): Likewise.
7701 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7702 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7703 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7704 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7705 * sh-tdep.c (sh_gdbarch_init): Likewise.
7706 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7707 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7708 * windows-tdep.c (windows_init_abi): Likewise.
7709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7710
7711 2017-04-12 Pedro Alves <palves@redhat.com>
7712
7713 PR c++/21323
7714 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7715 cplus_primitive_type_char32_t>: New enum values.
7716 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7717 and cplus_primitive_type_char32_t.
7718 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7719 32, use the archtecture's built-in type for char16_t and char32_t,
7720 respectively. Otherwise, fallback to init_integer_type as before,
7721 but make the type unsigned, and issue a complaint.
7722 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7723
7724 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7725
7726 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7727 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7728
7729 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7730
7731 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7732 'const char *'.
7733
7734 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7735
7736 * common/common-utils.c (free_vector_argv): New function.
7737 * common/common-utils.h: Include <vector>.
7738 (free_vector_argv): New prototype.
7739 * darwin-nat.c (darwin_create_inferior): Rewrite function
7740 prototype in order to constify "exec_file" and accept a
7741 "std::string" for "allargs".
7742 * fork-child.c: Include <vector>.
7743 (breakup_args): Rewrite function, using C++.
7744 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7745 and accept "std::string" for "allargs". Update the code to
7746 calculate "argv" based on "allargs". Update calls to "exec_fun"
7747 and "execvp".
7748 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7749 order to constify "exec_file" and accept a "std::string" for
7750 "allargs".
7751 * go32-nat.c (go32_create_inferior): Likewise.
7752 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7753 * infcmd.c (run_command_1): Constify "exec_file". Use
7754 "std::string" for inferior arguments.
7755 * inferior.h (fork_inferior): Update prototype.
7756 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7757 prototype in order to constify "exec_file" and accept a
7758 "std::string" for "allargs".
7759 * nto-procfs.c (procfs_create_inferior): Likewise.
7760 * procfs.c (procfs_create_inferior): Likewise.
7761 * remote-sim.c (gdbsim_create_inferior): Likewise.
7762 * remote.c (extended_remote_run): Update code to accept
7763 "std::string" as argument.
7764 (extended_remote_create_inferior): Rewrite function prototype in
7765 order to constify "exec_file" and accept a "std::string" for
7766 "allargs".
7767 * rs6000-nat.c (super_create_inferior): Likewise.
7768 (rs6000_create_inferior): Likewise.
7769 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7770 * windows-nat.c (windows_create_inferior): Likewise.
7771
7772 2017-04-11 Pedro Alves <palves@redhat.com>
7773
7774 * thread.c: Fix whitespace throughout.
7775
7776 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7777
7778 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7779
7780 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7781
7782 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7783
7784 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7785
7786 PR gdb/21364
7787 * osdata.c (info_osdata): Check if 'type' is an empty string
7788 instead of NULL.
7789
7790 2017-04-10 Pedro Alves <palves@redhat.com>
7791
7792 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7793 (ptid_to_global_thread_id, in_thread_list)
7794 (do_captured_list_thread_ids, set_resumed, set_running)
7795 (set_executing, set_stop_requested, finish_thread_state)
7796 (validate_registers_access, can_access_registers_ptid)
7797 (print_thread_info_1, switch_to_thread)
7798 (do_restore_current_thread_cleanup)
7799 (make_cleanup_restore_current_thread, thread_command)
7800 (thread_name_command): Use operator== instead of ptid_equal.
7801
7802 2017-04-10 Pedro Alves <palves@redhat.com>
7803
7804 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7805 (current_thread_cleanup_chain): Delete.
7806 (restore_current_thread_cleanup_dtor)
7807 (make_cleanup_restore_current_thread): Remove references to
7808 current_thread_cleanup_chain.
7809
7810 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7811
7812 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7813 REG_UNKNOWN.
7814
7815 2017-04-10 Yao Qi <yao.qi@linaro.org>
7816
7817 PR gdb/19942
7818 * gdbthread.h (thread_info::deletable): New method.
7819 (thread_info::incref): New method.
7820 (thread_info::decref): New method.
7821 (thread_info::refcount): Move it to private.
7822 * infrun.c (save_stop_context): Call inc_refcount.
7823 (release_stop_context_cleanup): Likewise.
7824 * thread.c (set_thread_exited): New function.
7825 (init_thread_list): Delete "tp" only it is deletable, otherwise
7826 call set_thread_exited.
7827 (delete_thread_1): Call set_thread_exited.
7828 (current_thread_cleanup) <inferior_pid>: Remove.
7829 <thread>: New field.
7830 (restore_current_thread_ptid_changed): Removed.
7831 (do_restore_current_thread_cleanup): Adjust.
7832 (restore_current_thread_cleanup_dtor): Don't call
7833 find_thread_ptid.
7834 (set_thread_refcount): Use dec_refcount.
7835 (make_cleanup_restore_current_thread): Adjust.
7836 (thread_apply_all_command): Call inc_refcount.
7837 (_initialize_thread): Don't call
7838 observer_attach_thread_ptid_changed.
7839
7840 2017-04-10 Yao Qi <yao.qi@linaro.org>
7841
7842 * thread.c (delete_thread_1): Hoist code on marking thread as
7843 exited.
7844
7845 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7846
7847 * windows-nat.c (windows_detach): Initialize ptid with
7848 minus_one_ptid.
7849
7850 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7851
7852 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7853
7854 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7855
7856 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7857 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7858 (bfin_pseudo_register_write): Likewise
7859
7860 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7861
7862 * common/ptid.h (struct ptid): Change to...
7863 (class ptid_t): ... this.
7864 <ptid_t>: New constructors.
7865 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7866 matches>: New methods.
7867 <make_null, make_minus_one>: New static methods.
7868 <pid>: Rename to...
7869 <m_pid>: ...this.
7870 <lwp>: Rename to...
7871 <m_lwp>: ...this.
7872 <tid>: Rename to...
7873 <m_tid>: ...this.
7874 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7875 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7876 as references, move comment to class ptid_t.
7877 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7878 ptid_t static methods.
7879 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7880 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7881 Take ptid arguments as references, implement using ptid_t methods.
7882 * unittests/ptid-selftests.c: New file.
7883 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7884 unittests/ptid-selftests.c.
7885 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7886
7887 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7888
7889 * python/python.c (python_run_simple_file): Cast mode literal to
7890 non-const char pointer as expected by PyFile_FromString.
7891
7892 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7893
7894 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7895 minus_one_ptid and null_ptid.
7896
7897 2017-04-05 Pedro Alves <palves@redhat.com>
7898
7899 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7900 * configure: Regenerate.
7901
7902 2017-04-05 Pedro Alves <palves@redhat.com>
7903
7904 * ada-exp.y (yyerror): Constify.
7905 * ada-lang.c (bound_name, get_selections)
7906 (ada_variant_discrim_type)
7907 (ada_variant_discrim_name, ada_value_struct_elt)
7908 (ada_lookup_struct_elt_type, is_unchecked_variant)
7909 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7910 (catch_ada_exception_command_split)
7911 (catch_ada_assert_command_split, catch_assert_command)
7912 (ada_op_name): Constify.
7913 * ada-lang.h (ada_yyerror, get_selections)
7914 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7915 * arc-tdep.c (arc_print_frame_cache): Constify.
7916 * arm-tdep.c (arm_skip_stub): Constify.
7917 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7918 (gen_aggregate_elt_ref): Constify.
7919 * bcache.c (print_bcache_statistics): Constify.
7920 * bcache.h (print_bcache_statistics): Constify.
7921 * break-catch-throw.c (catch_exception_command_1):
7922 * breakpoint.c (struct ep_type_description::description):
7923 Constify.
7924 (add_solib_catchpoint): Constify.
7925 (catch_fork_command_1): Add cast.
7926 (add_catch_command): Constify.
7927 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7928 Constify.
7929 * bsd-uthread.c (bsd_uthread_state): Constify.
7930 * buildsym.c (patch_subfile_names): Constify.
7931 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7932 Constify.
7933 * c-exp.y (yyerror): Constify.
7934 (token::oper): Constify.
7935 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7936 * c-varobj.c (cplus_describe_child): Constify.
7937 * charset.c (find_charset_names): Add cast.
7938 (find_charset_names): Constify array and add const_cast.
7939 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7940 (edit_command): Constify.
7941 * cli/cli-decode.c (lookup_cmd): Constify.
7942 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7943 Constify.
7944 (struct dump_context): Constify.
7945 (add_dump_command, restore_command): Constify.
7946 * cli/cli-script.c (get_command_line): Constify.
7947 * cli/cli-script.h (get_command_line): Constify.
7948 * cli/cli-utils.c (check_for_argument): Constify.
7949 * cli/cli-utils.h (check_for_argument): Constify.
7950 * coff-pe-read.c (struct read_pe_section_data): Constify.
7951 * command.h (lookup_cmd): Constify.
7952 * common/print-utils.c (decimal2str): Constify.
7953 * completer.c (gdb_print_filename): Constify.
7954 * corefile.c (set_gnutarget): Constify.
7955 * cp-name-parser.y (yyerror): Constify.
7956 * cp-valprint.c (cp_print_class_member): Constify.
7957 * cris-tdep.c (cris_register_name, crisv32_register_name):
7958 Constify.
7959 * d-exp.y (yyerror): Constify.
7960 (struct token::oper): Constify.
7961 * d-lang.h (d_yyerror): Constify.
7962 * dbxread.c (struct header_file_location::name): Constify.
7963 (add_old_header_file, add_new_header_file, last_function_name)
7964 (dbx_next_symbol_text, add_bincl_to_list)
7965 (find_corresponding_bincl_psymtab, set_namestring)
7966 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7967 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7968 * defs.h (command_line_input, print_address_symbolic)
7969 (deprecated_readline_begin_hook): Constify.
7970 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7971 Constify.
7972 * event-top.c (handle_line_of_input): Constify and add cast.
7973 * exceptions.c (catch_errors): Constify.
7974 * exceptions.h (catch_errors): Constify.
7975 * expprint.c (print_subexp_standard, op_string, op_name)
7976 (op_name_standard, dump_raw_expression, dump_raw_expression):
7977 * expression.h (op_name, op_string, dump_raw_expression):
7978 Constify.
7979 * f-exp.y (yyerror): Constify.
7980 (struct token::oper): Constify.
7981 (struct f77_boolean_val::name): Constify.
7982 * f-lang.c (f_word_break_characters): Constify.
7983 * f-lang.h (f_yyerror): Constify.
7984 * fork-child.c (fork_inferior): Add cast.
7985 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7986 (new_variant): Constify.
7987 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7988 * gdbarch.c: Regenerate.
7989 * gdbcore.h (set_gnutarget): Constify.
7990 * go-exp.y (yyerror): Constify.
7991 (token::oper): Constify.
7992 * go-lang.h (go_yyerror): Constify.
7993 * go32-nat.c (go32_sysinfo): Constify.
7994 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7995 * guile/scm-cmd.c (cmdscm_function): Constify.
7996 * guile/scm-param.c (pascm_param_value): Constify.
7997 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7998 (h8300sx_register_name): Constify.
7999 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8000 Constify.
8001 * ia64-tdep.c (ia64_register_names): Constify.
8002 * infcmd.c (construct_inferior_arguments): Constify.
8003 (path_command, attach_post_wait): Constify.
8004 * language.c (show_range_command, show_case_command)
8005 (unk_lang_error): Constify.
8006 * language.h (language_defn::la_error)
8007 (language_defn::la_name_of_this): Constify.
8008 * linespec.c (decode_line_2): Constify.
8009 * linux-thread-db.c (thread_db_err_str): Constify.
8010 * lm32-tdep.c (lm32_register_name): Constify.
8011 * m2-exp.y (yyerror): Constify.
8012 * m2-lang.h (m2_yyerror): Constify.
8013 * m32r-tdep.c (m32r_register_names): Constify and make static.
8014 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8015 * m88k-tdep.c (m88k_register_name): Constify.
8016 * macroexp.c (appendmem): Constify.
8017 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8018 (upgrade_type, parse_external, parse_partial_symbols)
8019 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8020 (new_symbol): Constify.
8021 * memattr.c (mem_info_command): Constify.
8022 * mep-tdep.c (register_name_from_keyword): Constify.
8023 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8024 Constify.
8025 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8026 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8027 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8028 cast.
8029 (mi_execute_async_cli_command): Constify.
8030 * mips-tdep.c (mips_register_name): Constify.
8031 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8032 (am33_register_name, am33_2_register_name)
8033 * moxie-tdep.c (moxie_register_names): Constify.
8034 * nat/linux-osdata.c (osdata_type): Constify fields.
8035 * nto-tdep.c (nto_parse_redirection): Constify.
8036 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8037 (lookup_child_selector): Constify.
8038 (objc_methcall::name): Constify.
8039 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8040 (lookup_struct_typedef): Constify.
8041 * objfiles.c (pc_in_section): Constify.
8042 * objfiles.h (pc_in_section): Constify.
8043 * p-exp.y (struct token::oper): Constify.
8044 (yyerror): Constify.
8045 * p-lang.h (pascal_yyerror): Constify.
8046 * parser-defs.h (op_name_standard): Constify.
8047 (op_print::string): Constify.
8048 (exp_descriptor::op_name): Constify.
8049 * printcmd.c (print_address_symbolic): Constify.
8050 * psymtab.c (print_partial_symbols): Constify.
8051 * python/py-breakpoint.c (stop_func): Constify.
8052 (bppy_get_expression): Constify.
8053 * python/py-cmd.c (cmdpy_completer::name): Constify.
8054 (cmdpy_function): Constify.
8055 * python/py-event.c (evpy_add_attribute)
8056 (gdbpy_initialize_event_generic): Constify.
8057 * python/py-event.h (evpy_add_attribute)
8058 (gdbpy_initialize_event_generic): Constify.
8059 * python/py-evts.c (add_new_registry): Constify.
8060 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8061 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8062 * python/py-inferior.c (get_buffer): Add cast.
8063 * python/py-param.c (parm_constant::name): Constify.
8064 * python/py-unwind.c (fprint_frame_id): Constify.
8065 * python/python.c (gdbpy_parameter_value): Constify.
8066 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8067 * remote.c (memory_packet_config::name): Constify.
8068 (show_packet_config_cmd, remote_write_bytes)
8069 (remote_buffer_add_string):
8070 * reverse.c (exec_reverse_once): Constify.
8071 * rs6000-tdep.c (variant::name, variant::description): Constify.
8072 * rust-exp.y (rustyyerror): Constify.
8073 * rust-lang.c (rust_op_name): Constify.
8074 * rust-lang.h (rustyyerror): Constify.
8075 * serial.h (serial_ops::name): Constify.
8076 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8077 (sh_sh3e_register_name, sh_sh2e_register_name)
8078 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8079 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8080 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8081 (sh_sh4al_dsp_register_name): Constify.
8082 * sh64-tdep.c (sh64_register_name): Constify.
8083 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8084 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8085 * stabsread.c (patch_block_stabs, read_type_number)
8086 (ref_map::stabs, ref_add, process_reference)
8087 (symbol_reference_defined, define_symbol, define_symbol)
8088 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8089 (read_one_struct_field, read_struct_fields, read_baseclasses)
8090 (read_tilde_fields, read_struct_type, read_array_type)
8091 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8092 (read_huge_number, read_range_type, read_args, common_block_start)
8093 (find_name_end): Constify.
8094 * stabsread.h (common_block_start, define_symbol)
8095 (process_one_symbol, symbol_reference_defined, ref_add):
8096 * symfile.c (get_section_index, add_symbol_file_command):
8097 * symfile.h (get_section_index): Constify.
8098 * target-descriptions.c (tdesc_type::name): Constify.
8099 (tdesc_free_type): Add cast.
8100 * target.c (find_default_run_target):
8101 (add_deprecated_target_alias, find_default_run_target)
8102 (target_announce_detach): Constify.
8103 (do_option): Constify.
8104 * target.h (add_deprecated_target_alias): Constify.
8105 * thread.c (print_thread_info_1): Constify.
8106 * top.c (deprecated_readline_begin_hook, command_line_input):
8107 Constify.
8108 (init_main): Add casts.
8109 * top.h (handle_line_of_input): Constify.
8110 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8111 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8112 (tfind_command): Rename to ...
8113 (tfind_command_1): ... this and constify.
8114 (tfind_command): New function.
8115 (tfind_end_command, tfind_start_command): Adjust.
8116 (encode_source_string): Constify.
8117 * tracepoint.h (encode_source_string): Constify.
8118 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8119 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8120 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8121 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8122 * tui/tui-win.c (parse_scrolling_args): Constify.
8123 * tui/tui-windata.c (tui_erase_data_content): Constify.
8124 * tui/tui-windata.h (tui_erase_data_content): Constify.
8125 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8126 * tui/tui.c (tui_enable): Add cast.
8127 * utils.c (defaulted_query): Constify.
8128 (init_page_info): Add cast.
8129 (puts_debug, subset_compare): Constify.
8130 * utils.h (subset_compare): Constify.
8131 * varobj.c (varobj_format_string): Constify.
8132 * varobj.h (varobj_format_string): Constify.
8133 * vax-tdep.c (vax_register_name): Constify.
8134 * windows-nat.c (windows_detach): Constify.
8135 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8136 * xml-support.c (gdb_xml_end_element): Constify.
8137 * xml-tdesc.c (tdesc_start_reg): Constify.
8138 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8139 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8140 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8141
8142 2017-04-05 Pedro Alves <palves@redhat.com>
8143
8144 * proc-api.c (struct trans): Constify.
8145 (procfs_note): Constify.
8146 * proc-events.c (struct trans, syscall_table):
8147 * proc-flags.c (struct trans): Constify.
8148 * proc-utils.h (procfs_note): Constify.
8149 * proc-why.c (struct trans): Constify.
8150 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8151 (procfs_detach): Constify.
8152 * sol-thread.c (struct string_map): Constify.
8153 (td_err_string, td_state_string): Constify.
8154
8155 2017-04-05 Pedro Alves <palves@redhat.com>
8156
8157 * proc-api.c (procfs_filename): Don't initialize
8158 procfs_filename.
8159 (prepare_to_trace): Assume procfs_filename is non-NULL.
8160 (_initialize_proc_api): Give procfs_filename a default value here.
8161
8162 2017-04-05 Pedro Alves <palves@redhat.com>
8163
8164 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8165 'cond_string' parameter.
8166 (extract_exception_regexp): Constify 'string' parameter.
8167 (catch_exception_command_1): Constify.
8168 * breakpoint.c (init_catchpoint)
8169 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8170 parameter.
8171 (ep_parse_optional_if_clause, catch_fork_command_1)
8172 (catch_exec_command_1): Constify.
8173 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8174 parameter.
8175 (ep_parse_optional_if_clause): Constify.
8176 * cli/cli-utils.c (remove_trailing_whitespace)
8177 (check_for_argument): Constify.
8178 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8179 non-const overload.
8180 (check_for_argument): Likewise.
8181
8182 2017-04-05 Pedro Alves <palves@redhat.com>
8183
8184 * event-top.c (command_line_handler): Add cast to execute_command
8185 call.
8186 * record-btrace.c (cmd_record_btrace_bts_start)
8187 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8188 (cmd_record_btrace_start): Add cast to execute_command call.
8189 * record-full.c (record_full_goto_insn):
8190 * record.c (record_start, record_stop): Add cast to
8191 execute_command_to_string calls.
8192 (cmd_record_start): Add cast to execute_command calls.
8193
8194 2017-04-05 Pedro Alves <palves@redhat.com>
8195
8196 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8197 static inline function.
8198 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8199 array and use gdb_PyArg_ParseTupleAndKeywords.
8200 * python/py-cmd.c (cmdpy_init): Likewise.
8201 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8202 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8203 (infpy_search_memory): Likewise.
8204 * python/py-objfile.c (objfpy_add_separate_debug_file)
8205 (gdbpy_lookup_objfile): Likewise.
8206 * python/py-symbol.c (gdbpy_lookup_symbol)
8207 (gdbpy_lookup_global_symbol): Likewise.
8208 * python/py-type.c (gdbpy_lookup_type): Likewise.
8209 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8210 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8211 Likewise.
8212
8213 2017-04-05 Pedro Alves <palves@redhat.com>
8214
8215 * python/python-internal.h (gdb_PyGetSetDef): New type.
8216 * python/py-block.c (block_object_getset)
8217 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8218 * python/py-event.c (event_object_getset)
8219 (finish_breakpoint_object_getset): Likewise.
8220 * python/py-inferior.c (inferior_object_getset): Likewise.
8221 * python/py-infthread.c (thread_object_getset): Likewise.
8222 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8223 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8224 * python/py-objfile.c (objfile_getset): Likewise.
8225 * python/py-progspace.c (pspace_getset): Likewise.
8226 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8227 Likewise.
8228 * python/py-record.c (recpy_record_getset): Likewise.
8229 * python/py-symbol.c (symbol_object_getset): Likewise.
8230 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8231 Likewise.
8232 * python/py-type.c (type_object_getset, field_object_getset):
8233 Likewise.
8234 * python/py-value.c (value_object_getset): Likewise.
8235
8236 2017-04-05 Pedro Alves <palves@redhat.com>
8237
8238 * python/python-internal.h (gdb_PyObject_CallMethod)
8239 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8240 New functions.
8241 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8242 (PySys_GetObject, PySys_SetPath): New macros.
8243
8244 2017-04-05 Pedro Alves <palves@redhat.com>
8245
8246 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8247 info_osdata_command.
8248 * osdata.c (info_osdata_command): Rename to ...
8249 (info_osdata): ... this. Constify 'type' parameter, and remove
8250 the 'from_tty' parameter. Accept NULL TYPE.
8251 (info_osdata_command): New function.
8252 * osdata.h (info_osdata_command): Remove declaration.
8253 (info_osdata): New declaration.
8254
8255 2017-04-05 Pedro Alves <palves@redhat.com>
8256
8257 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8258 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8259 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8260 parameter.
8261 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8262 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8263 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8264 parameter.
8265 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8266 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8267 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8268 (mi_cmd_file_list_exec_source_files)
8269 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8270 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8271 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8272 parameter.
8273 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8274 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8275 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8276 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8277 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8278 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8279 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8280 'command' parameter.
8281 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8282 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8283 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8284 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8285 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8286 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8287 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8288 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8289 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8290 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8291 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8292 parameter.
8293 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8294 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8295 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8296 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8297 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8298 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8299 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8300 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8301 (mi_cmd_data_list_changed_registers)
8302 (mi_cmd_data_write_register_values)
8303 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8304 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8305 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8306 (mi_cmd_list_features, mi_cmd_list_target_features)
8307 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8308 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8309 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8310 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8311 (mi_cmd_trace_frame_collected): Constify 'command'
8312 parameter.
8313 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8314 'command' parameter.
8315
8316 2017-04-05 Pedro Alves <palves@redhat.com>
8317
8318 * ada-lang.c (ada_completer_word_break_characters): Now a const
8319 array.
8320 (ada_get_gdb_completer_word_break_characters): Constify.
8321 * completer.c (gdb_completer_command_word_break_characters)
8322 (gdb_completer_file_name_break_characters)
8323 (gdb_completer_quote_characters): Now const arrays.
8324 (get_gdb_completer_quote_characters): Constify.
8325 (set_rl_completer_word_break_characters): New function.
8326 (set_gdb_completion_word_break_characters)
8327 (complete_line_internal): Use it.
8328 * completer.h (get_gdb_completer_quote_characters): Constify.
8329 (set_rl_completer_word_break_characters): Declare.
8330 * f-lang.c (f_word_break_characters): Constify.
8331 * language.c (default_word_break_characters): Constify.
8332 * language.h (language_defn::la_word_break_characters): Constify.
8333 (default_word_break_characters): Constify.
8334 * top.c (init_main): Use set_rl_completer_word_break_characters.
8335
8336 2017-04-05 Pedro Alves <palves@redhat.com>
8337
8338 * aix-thread.c (aix_thread_pid_to_str)
8339 (aix_thread_extra_thread_info): Constify.
8340 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8341 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8342 (bsd_uthread_pid_to_str): Constify.
8343 * corelow.c (core_pid_to_str): Constify.
8344 * darwin-nat.c (darwin_pid_to_str): Constify.
8345 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8346 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8347 Constify.
8348 * gnu-nat.c (gnu_pid_to_str): Constify.
8349 * go32-nat.c (go32_pid_to_str): Constify.
8350 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8351 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8352 * inferior.c (inferior_pid_to_str): Constify.
8353 * linux-nat.c (linux_nat_pid_to_str): Constify.
8354 * linux-tdep.c (linux_core_pid_to_str): Constify.
8355 * linux-thread-db.c (thread_db_pid_to_str)
8356 (thread_db_extra_thread_info): Constify.
8357 * nto-tdep.c (nto_extra_thread_info): Constify.
8358 * nto-tdep.h (nto_extra_thread_info): Constify.
8359 * obsd-nat.c (obsd_pid_to_str): Constify.
8360 * procfs.c (procfs_pid_to_str): Constify.
8361 * ravenscar-thread.c (ravenscar_extra_thread_info)
8362 (ravenscar_pid_to_str): Constify.
8363 * remote-sim.c (gdbsim_pid_to_str): Constify.
8364 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8365 Constify.
8366 * sol-thread.c (solaris_pid_to_str): Constify.
8367 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8368 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8369 * target.c (default_pid_to_str, target_pid_to_str)
8370 (normal_pid_to_str, default_pid_to_str): Constify.
8371 * target.h (target_ops::to_pid_to_str)
8372 (target_ops::to_extra_thread_info): Constify.
8373 (target_pid_to_str, normal_pid_to_str): Constify.
8374 * windows-nat.c (windows_pid_to_str): Constify.
8375 * gdbarch.sh (core_pid_to_str): Constify.
8376 * target-delegates.c: Regenerate.
8377 * gdbarch.h, gdbarch.c: Regenerate.
8378
8379 2017-04-05 Pedro Alves <palves@redhat.com>
8380
8381 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8382 the memory of the temporary warning_pre_print override.
8383 * utils.c (warning_pre_print): Constify.
8384 * utils.h (warning_pre_print): Constify.
8385
8386 2017-04-05 Pedro Alves <palves@redhat.com>
8387
8388 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8389 (shell_command): New function.
8390 (make_command): Use std::string.
8391 (init_cli_cmds): Register shell_command instead of shell_escape.
8392
8393 2017-04-05 Pedro Alves <palves@redhat.com>
8394
8395 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8396 * tracepoint.c (default_collect): Don't initialize.
8397
8398 2017-04-05 Pedro Alves <palves@redhat.com>
8399
8400 * macroexp.c (macro_buffer::shared): Now a bool.
8401 (init_buffer): Update.
8402 (init_shared_buffer): Constify 'addr' parameter.
8403 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8404 casts.
8405
8406 2017-04-05 Pedro Alves <palves@redhat.com>
8407
8408 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8409 * disasm.c (set_disassembler_options): Constify local.
8410 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8411
8412 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8413
8414 PR gdb/21352
8415 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8416 option.
8417
8418 2017-04-05 Yao Qi <yao.qi@linaro.org>
8419
8420 * frame.c (frame_unwind_register_unsigned): Call
8421 frame_unwind_register_value.
8422
8423 2017-04-05 Yao Qi <yao.qi@linaro.org>
8424
8425 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8426 Use gdb_test_multiple, and don't match anchor.
8427
8428 2017-04-05 Pedro Alves <palves@redhat.com>
8429
8430 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8431 (Write After Approval): Remove Simon Marchi.
8432
8433 2017-04-05 Pedro Alves <palves@redhat.com>
8434
8435 * common/gdb_optional.h (optional::optional): Make constexpr and
8436 initialize m_dummy.
8437
8438 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8439
8440 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8441 (amd64fbsd_jmp_buf_reg_offset): Remove.
8442 (amd64fbsd_supply_uthread): Remove function.
8443 (amd64fbsd_collect_uthread): Remove function.
8444 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8445 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8446 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8447 (fbsd-nat.c): Update comment.
8448 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8449 (i386fbsd_jmp_buf_reg_offset): Remove.
8450 (i386fbsd_supply_uthread): Remove function.
8451 (i386fbsd_collect_uthread): Remove function.
8452 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8453
8454 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8455
8456 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8457 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8458 * NEWS: Mention that support for FreeBSD/alpha was removed.
8459 * alpha-fbsd-tdep.c: Delete file.
8460 * config/alpha/fbsd.mh: Delete file.
8461 * configure.host: Delete alpha*-*-freebsd* and
8462 alpha*-*-kfreebsd*-gnu.
8463 * configure.tgt: Delete alpha*-*-freebsd* and
8464 alpha*-*-kfreebsd*-gnu.
8465
8466 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8467
8468 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8469 amd64bsd_store_inferior_registers): Use ptid from regcache.
8470
8471 2017-04-04 Pedro Alves <palves@redhat.com>
8472
8473 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8474 data fields, make them private and add "m_" prefixes.
8475 (lnp_state_machine::lnp_state_machine): New ctor.
8476 (record_line, check_line_address, handle_set_discriminator)
8477 (handle_set_address, handle_advance_pc, handle_special_opcode)
8478 (handle_advance_line, handle_set_file, handle_negate_stmt)
8479 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8480 (end_sequence, advance_line): New methods.
8481 (m_gdbarch, m_record_lines_p): New fields.
8482 (lnp_reader_state): Delete.
8483 (dwarf_record_line): Rename to ...
8484 (lnp_state_machine::record_line): ... adjust.
8485 (init_lnp_state_machine): Delete.
8486 (lnp_state_machine::lnp_state_machine): New.
8487 (check_line_address): Rename to ...
8488 (lnp_state_machine::check_line_address): This.
8489 (dwarf_decode_lines_1): Remove reference to "reader_state".
8490 Adjust lnp_state_machine having a non-default ctor. Use bool.
8491 State machine internal state manipulation moved to
8492 lnp_state_machine methods.
8493
8494 2017-04-04 Pedro Alves <palves@redhat.com>
8495
8496 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8497 unittests/offset-type-selftests.c.
8498 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8499 * common/offset-type.h: New file.
8500 * common/preprocessor.h: New file.
8501 * common/traits.h: New file.
8502 * common/valid-expr.h: New file.
8503 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8504 sect_offset and cu_offset strong typedefs throughout.
8505 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8506 typedefs throughout.
8507 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8508 sect_offset and cu_offset strong typedefs throughout.
8509 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8510 typedefs throughout.
8511 * gdbtypes.h: Include "common/offset-type.h".
8512 (cu_offset): Now an offset type (strong typedef) instead of a
8513 struct.
8514 (sect_offset): Likewise.
8515 (union call_site_parameter_u): Rename "param_offset" field to
8516 "param_cu_off".
8517 * unittests/offset-type-selftests.c: New file.
8518
8519 2017-04-04 Pedro Alves <palves@redhat.com>
8520
8521 * common/underlying.h: New file.
8522 * dwarf2read.c: Include "common/gdb_optional.h" and
8523 "common/underlying.h".
8524 (dir_index, file_name_index): New types.
8525 (file_entry): Use them.
8526 (file_entry::include): Use to_underlying.
8527 (line_header::add_file_name): Use dir_index.
8528 (read_formatted_entries): Use gdb::optional. Read form before
8529 writting to file_entry.
8530 (dwarf_decode_line_header): Use dir_index.
8531 (lnp_state_machine::current_file): Use to_underlying.
8532 (lnp_state_machine::file): Change type to file_name_index.
8533 (dwarf_record_line): Use to_underlying.
8534 (init_lnp_state_machine): Use file_name_index.
8535 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8536
8537 2017-04-04 Pedro Alves <palves@redhat.com>
8538
8539 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8540 operator bool, has_value and get methods.
8541
8542 2017-04-04 Pedro Alves <palves@redhat.com>
8543
8544 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8545 fields.
8546 (line_header): Initialize all data fields. Change type of
8547 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8548 Change type of include_dirs to std::vector<const char *>. Remove
8549 num_include_dirs, include_dirs_size. Change type of file_names to
8550 std::vector<file_entry>. Remove num_file_names, file_names_size.
8551 (line_header::line_header): New.
8552 (line_header::add_include_dir, line_header::add_file_name): New
8553 methods.
8554 (line_header::include_dir_at): Remove NULL check.
8555 (line_header::file_name_at): Add const overload.
8556 (line_header_up): New unique_ptr typedef.
8557 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8558 std::vector. Remove free_line_header call.
8559 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8560 free_line_header call.
8561 (free_cu_line_header): Delete.
8562 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8563 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8564 Adjust to use std::vector.
8565 (free_line_header): Delete.
8566 (free_line_header_voidp): Use delete.
8567 (add_include_dir): Replace with ...
8568 (line_header::add_include_dir): ... this method. Use std::vector.
8569 (add_file_name): Replace with ...
8570 (line_header::add_file_name): ... this method. Use std::vector.
8571 (add_include_dir_stub): Delete.
8572 (read_formatted_entries): Remove memset.
8573 (dwarf_decode_line_header): Return a line_header_up instead of a
8574 raw pointer. Remove cleanup handling. Pass lambdas to
8575 read_formatted_entries. Adjust to use line_header methods.
8576 (dwarf_decode_lines_1): Adjust to use line_header methods.
8577 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8578 use std::vector.
8579
8580 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8581
8582 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8583 instead of struct ptid.
8584
8585 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8586
8587 * frame.c (get_frame_register_bytes): Unwind using value.
8588 (put_frame_register_bytes): Likewise.
8589
8590 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8591
8592 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8593 aggregate-like.
8594
8595 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8596
8597 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8598
8599 2017-03-29 Yao Qi <yao.qi@linaro.org>
8600
8601 * gdbthread.h (struct thread_info): Declare constructor and
8602 destructor. Add some in-class member initializers.
8603 * thread.c (free_thread): Remove.
8604 (init_thread_list): Call delete instead of free_thread.
8605 (new_thread): Call thread_info constructor.
8606 (thread_info::thread_info): New function.
8607 (thread_info::~thread_info): New function.
8608 (delete_thread_1): Call delete instead of free_thread.
8609 (make_cleanup_restore_current_thread): Move tp and frame to
8610 inner block.
8611
8612 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8613
8614 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8615 (arc_skip_prologue): Likewise.
8616 (arc_make_frame_cache): Likewise.
8617 (arc_pv_get_operand): New function.
8618 (arc_is_in_prologue): Likewise.
8619 (arc_analyze_prologue): Likewise.
8620 (arc_print_frame_cache): Likewise.
8621 (MAX_PROLOGUE_LENGTH): New constant.
8622
8623 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8624
8625 * configure.tgt: Add arc-insn.o.
8626 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8627 (dump_arc_instruction_command): New function.
8628 (arc_fprintf_disasm): Likewise.
8629 (arc_disassemble_info): Likewise.
8630 (arc_insn_get_operand_value): Likewise.
8631 (arc_insn_get_operand_value_signed): Likewise.
8632 (arc_insn_get_memory_base_reg): Likewise.
8633 (arc_insn_get_memory_offset): Likewise.
8634 (arc_insn_get_branch_target): Likewise.
8635 (arc_insn_dump): Likewise.
8636 (arc_insn_get_linear_next_pc): Likewise.
8637 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8638 (arc_disassemble_info): Likewise.
8639 (arc_insn_get_branch_target): Likewise.
8640 (arc_insn_get_linear_next_pc): Likewise.
8641 * NEWS: Mention new "maint print arc arc-instruction".
8642
8643 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8644
8645 * arc-tdep (maintenance_print_arc_list): New variable.
8646 (maintenance_print_arc_command): New function.
8647
8648 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8649
8650 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8651 Add "limm" and "reserved".
8652 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8653 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8654 * arc-tdep.h (arc_regnum): Likewise.
8655
8656 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8657
8658 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8659 for THREADPTR register.
8660 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8661 register.
8662 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8663 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8664 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8665
8666 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8667
8668 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8669 registers above gdbarch_num_regs (gdbarch) as privileged in
8670 call0 ABI.
8671
8672 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8673
8674 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8675 for a single specified register or for all registers in
8676 a0_base..a0_base + C0_NREGS range.
8677 (supply_gregset_reg): Call regcache_raw_supply for a single
8678 specified register or for all registers in a0_base..a0_base +
8679 C0_NREGS range.
8680
8681 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8682
8683 * arch/xtensa.h (C0_NREGS): Add definition.
8684 * xtensa-tdep.c (C0_NREGS): Remove definition.
8685
8686 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8687
8688 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8689 Drop xtensa_default_isa initialization.
8690 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8691
8692 2017-03-27 Pedro Alves <palves@redhat.com>
8693
8694 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8695 (file_entry::include_dir): New method.
8696 (line_header::include_dir_at, line_header::file_name_at): New
8697 methods.
8698 (setup_type_unit_groups, setup_type_unit_groups)
8699 (psymtab_include_file_name): Simplify using the new methods.
8700 (lnp_state_machine) <the_line_header>: New field.
8701 <file>: Add comment.
8702 (lnp_state_machine::current_file): New method.
8703 (dwarf_record_line): Simplify using the new methods.
8704 (init_lnp_state_machine): Initialize the "the_line_header" field.
8705 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8706 Simplify using the new methods.
8707
8708 2017-03-27 Pedro Alves <palves@redhat.com>
8709
8710 * cp-name-parser.y (make_empty): Delete.
8711 (demangler_special, nested_name, ptr_operator, array_indicator)
8712 (direct_declarator, declarator_1): Use fill_comp instead of
8713 make_empty.
8714
8715 2017-03-27 Pedro Alves <palves@redhat.com>
8716
8717 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8718 to ATTRIBUTE_PRINTF.
8719 * solib-target.c (library_list_start_list): Print "string" not
8720 "version".
8721 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8722 gdb_xml_error call.
8723
8724 2017-03-27 Pedro Alves <palves@redhat.com>
8725
8726 * dwarf2read.c (struct file_and_directory): New.
8727 (dwarf2_get_dwz_file): Adjust to use std::string.
8728 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8729 (find_file_and_directory): Adjust to return a file_and_directory
8730 object.
8731 (read_file_scope): Adjust to use file_and_directory. Remove
8732 make_cleanup/do_cleanups calls.
8733 (open_and_init_dwp_file): Adjust to use std::string. Remove
8734 make_cleanup/do_cleanups calls.
8735 * python/python.c (do_start_initialization): Adjust to ldirname
8736 returning a std::string.
8737 * utils.c (ldirname): Now returns a std::string.
8738 * utils.h (ldirname): Change return type to std::string.
8739 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8740 returning a std::string.
8741 * xml-tdesc.c (file_read_description_xml): Likewise.
8742
8743 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8744
8745 * regcache.c (regcache_debug_print_register): New function.
8746 * regcache.h (regcache_debug_print_register): New declaration.
8747 * target.c (debug_print_register): Remove.
8748 (target_fetch_registers): Call regcache_debug_print_register.
8749 (target_store_registers): Likewise.
8750
8751 2017-03-24 Pádraig Brady <pbrady@fb.com>
8752
8753 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8754 reference beyond the 'lh->include_dirs' array before accessing to
8755 it.
8756 (psymtab_include_file_name): Likewise.
8757 (dwarf_decode_lines_1): Likewise.
8758 (dwarf_decode_lines): Likewise.
8759 (file_file_name): Likewise.
8760
8761 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8762
8763 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8764 inferior_ptid.
8765 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8766 ps_lsetfpregs): Likewise.
8767 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8768 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8769 ps_lsetfpregs): Likewise.
8770 * target.c (target_fetch_registers, target_store_registers):
8771 Remove asserts.
8772
8773 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8774
8775 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8776
8777 2017-03-23 Yao Qi <yao.qi@linaro.org>
8778
8779 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8780 (_initialize_aarch64_tdep): Register it.
8781 (aarch64_record_load_store): Handle PRFM instruction.
8782 (aarch64_process_record_test): New function.
8783
8784 2017-03-23 Yao Qi <yao.qi@linaro.org>
8785
8786 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8787 indentation.
8788
8789 2017-03-23 Yao Qi <yao.qi@linaro.org>
8790
8791 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8792
8793 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8794
8795 python/python.c (do_start_initialization): Fix memory leak.
8796
8797 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8798
8799 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8800 using get_ptrace_pid.
8801 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8802 inferior_ptid.
8803 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8804 inferior_ptid instead of pid.
8805
8806 2017-03-22 Yao Qi <yao.qi@linaro.org>
8807
8808 * aarch64-tdep.c: Wrap locally used classes in anonymous
8809 namespace.
8810 * arm-tdep.c: Likewise.
8811 * linespec.c: Likewise.
8812 * ui-out.c: Likewise.
8813
8814 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8815
8816 PR gdb/19637
8817 * python/lib/gdb/printer/bound_registers.py: Import sys.
8818
8819 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8820
8821 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8822 windows_thread_info parameter and use it instead of
8823 current_thread.
8824 (windows_fetch_inferior_registers): Don't set current_thread,
8825 pass the thread to do_windows_fetch_inferior_registers. Use
8826 ptid from regcache instead of inferior_ptid.
8827 (do_windows_store_inferior_registers): Add windows_thread_info
8828 parameter and use it instead of current_thread.
8829 (windows_store_inferior_registers): Don't set current_thread,
8830 pass the thread to do_windows_store_inferior_registers. Use
8831 ptid from regcache instead of inferior_ptid.
8832
8833 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8834
8835 * ser-mingw.c (ser_windows_raw): Remove reference to
8836 struct serial::current_timeout.
8837
8838 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8839
8840 PR tdep/20928
8841 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8842 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8843 (sparc64_fsr_type): Fix %fsr decoding.
8844
8845 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8846
8847 * python/py-record-btrace.c (btpy_insn_data): Change return type
8848 for Python 2.
8849
8850 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8851
8852 * spu-linux-nat.c (spu_fetch_inferior_registers,
8853 spu_store_inferior_registers): Use ptid from regcache, set and
8854 restore inferior_ptid.
8855 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8856 Likewise.
8857
8858 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8859
8860 * i386-linux-nat.c (fetch_register, store_register,
8861 i386_linux_fetch_inferior_registers,
8862 i386_linux_store_inferior_registers): Use ptid from regcache.
8863 * ia64-linux-nat.c (ia64_linux_fetch_register,
8864 ia64_linux_store_register): Likewise.
8865 * inf-ptrace.c (inf_ptrace_fetch_register,
8866 inf_ptrace_store_register): Likewise.
8867 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8868 m32r_linux_store_inferior_registers): Likewise.
8869 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8870 m68kbsd_store_inferior_registers): Likewise.
8871 * m68k-linux-nat.c (fetch_register, store_register,
8872 m68k_linux_fetch_inferior_registers,
8873 m68k_linux_store_inferior_registers): Likewise.
8874 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8875 m88kbsd_store_inferior_registers): Likewise.
8876 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8877 mips_fbsd_store_inferior_registers): Likewise.
8878 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8879 mips64_linux_regsets_store_registers): Likewise.
8880 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8881 mipsnbsd_store_inferior_registers): Likewise.
8882 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8883 mips64obsd_store_inferior_registers): Likewise.
8884 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8885 Likewise.
8886 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8887 ppcfbsd_store_inferior_registers): Likewise.
8888 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8889 ppc_linux_store_inferior_registers): Likewise.
8890 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8891 ppcnbsd_store_inferior_registers): Likewise.
8892 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8893 ppcobsd_store_registers): Likewise.
8894 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8895 Likewise.
8896 * ravenscar-thread.c (ravenscar_fetch_registers,
8897 ravenscar_store_registers, ravenscar_prepare_to_store):
8898 Likewise.
8899 * record-btrace.c (record_btrace_fetch_registers,
8900 record_btrace_store_registers, record_btrace_prepare_to_store):
8901 Likewise.
8902 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8903 Lookup inferior using ptid from regcache, instead of
8904 current_inferior.
8905 * remote.c (remote_fetch_registers, remote_store_registers): Use
8906 ptid from regcache.
8907 * rs6000-nat.c (fetch_register, store_register): Likewise.
8908 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8909 s390_linux_store_inferior_registers): Likewise.
8910 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8911 shnbsd_store_inferior_registers): Likewise.
8912 * sol-thread.c (sol_thread_fetch_registers,
8913 sol_thread_store_registers): Likewise.
8914 * sparc-nat.c (sparc_fetch_inferior_registers,
8915 sparc_store_inferior_registers): Likewise.
8916 * tilegx-linux-nat.c (fetch_inferior_registers,
8917 store_inferior_registers): Likewise.
8918 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8919 vaxbsd_store_inferior_registers): Likewise.
8920 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8921 store_xtregs): Likewise.
8922
8923 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8924
8925 PR gdb/14441
8926 * NEWS: Mention support for rvalue references in GDB and python.
8927 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8928 supports both lvalue and rvalue references.
8929
8930 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8931
8932 PR gdb/14441
8933 * gdbtypes.c (rank_one_type): Implement overloading
8934 resolution rules regarding rvalue references.
8935
8936 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8937
8938 PR gdb/14441
8939 * aarch64-tdep.c (aarch64_type_align)
8940 (aarch64_extract_return_value, aarch64_store_return_value): Change
8941 lvalue reference type checks to general reference type checks.
8942 * amd64-tdep.c (amd64_classify): Likewise.
8943 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8944 Likewise.
8945 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8946 (arm_store_return_value): Likewise.
8947 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8948 * c-typeprint.c (c_print_type): Likewise.
8949 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8950 (cplus_number_of_children, cplus_describe_child): Likewise.
8951 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8952 * completer.c (expression_completer): Likewise.
8953 * cp-support.c (make_symbol_overload_list_adl_namespace):
8954 Likewise.
8955 * darwin-nat-info.c (info_mach_region_command): Likewise.
8956 * dwarf2loc.c (entry_data_value_coerce_ref)
8957 (value_of_dwarf_reg_entry): Likewise.
8958 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8959 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8960 Likewise.
8961 * findvar.c (extract_typed_address, store_typed_address):
8962 Likewise.
8963 * gdbtypes.c (rank_one_type): Likewise.
8964 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8965 * infcall.c (value_arg_coerce): Likewise.
8966 * language.c (pointer_type): Likewise.
8967 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8968 Likewise.
8969 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8970 * mn10300-tdep.c (mn10300_type_align): Likewise.
8971 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8972 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8973 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8974 Likewise.
8975 * printcmd.c (print_formatted, x_command): Likewise.
8976 * python/py-type.c (typy_get_composite, typy_template_argument):
8977 Likewise.
8978 * python/py-value.c (valpy_referenced_value)
8979 (valpy_get_dynamic_type, value_has_field): Likewise.
8980 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8981 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8982 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8983 * spu-tdep.c (spu_scalar_value_p): Likewise.
8984 * symtab.c (lookup_symbol_aux): Likewise.
8985 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8986 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8987 Likewise.
8988 * valops.c (value_cast_pointers, value_cast)
8989 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8990 (value_struct_elt, value_struct_elt_bitpos)
8991 (value_find_oload_method_list, find_overload_match)
8992 (value_rtti_indirect_type): Likewise.
8993 * valprint.c (val_print_scalar_type_p, generic_val_print):
8994 Likewise.
8995 * value.c (value_actual_type, value_as_address, unpack_long)
8996 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8997 (coerce_ref): Likewise.
8998 * varobj.c (varobj_get_value_type): Likewise.
8999
9000 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9001
9002 PR gdb/14441
9003 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9004 table of constants.
9005 * python/lib/gdb/command/explore.py: Support exploring values
9006 of rvalue reference types.
9007 * python/lib/gdb/types.py: Implement get_basic_type() for
9008 rvalue reference types.
9009 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9010 constant.
9011 * python/py-value.c (valpy_getitem): Add an rvalue reference
9012 check.
9013 (valpy_reference_value): Add new parameter "refcode".
9014 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9015 New wrappers for valpy_reference_value().
9016 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9017 (gdbpy_invoke_xmethod): Likewise.
9018
9019 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9020
9021 PR gdb/14441
9022 * dwarf2read.c (process_die, read_type_die_1): Handle the
9023 DW_TAG_rvalue_reference_type DIE.
9024 (read_tag_reference_type): Add new parameter "refcode".
9025
9026 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9027
9028 PR gdb/14441
9029 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9030 (c_type_print_modifier, c_type_print_varspec_suffix)
9031 (c_type_print_base): Support printing rvalue reference types.
9032 * c-valprint.c (c_val_print, c_value_print): Support printing
9033 rvalue reference values.
9034
9035 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9036
9037 PR gdb/14441
9038 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9039 typename.
9040 * cp-support.c (replace_typedefs): Handle
9041 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9042 * python/py-type.c (typy_lookup_type): Likewise.
9043
9044 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9045
9046 PR gdb/14441
9047 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9048 * parse.c (insert_type): Change assert statement.
9049 (follow_types): Handle rvalue reference types.
9050 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9051 constant.
9052
9053 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9054
9055 PR gdb/14441
9056 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9057 value_ref() interface.
9058 * c-valprint.c (c_value_print): Likewise.
9059 * infcall.c (value_arg_coerce): Likewise.
9060 * python/py-value.c (valpy_reference_value): Likewise.
9061 * valops.c (value_cast, value_reinterpret_cast)
9062 (value_dynamic_cast, typecmp): Likewise.
9063 (value_ref): Parameterize by kind of return value reference type.
9064 * value.h (value_ref): Add new parameter "refcode".
9065
9066 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9067
9068 PR gdb/14441
9069 * dwarf2read.c (read_tag_reference_type): Use
9070 lookup_lvalue_reference_type() instead of lookup_reference_type().
9071 * eval.c (evaluate_subexp_standard): Likewise.
9072 * f-exp.y: Likewise.
9073 * gdbtypes.c (make_reference_type, lookup_reference_type):
9074 Generalize with rvalue reference types.
9075 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9076 convenience wrappers for lookup_reference_type().
9077 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9078 reference kind parameter.
9079 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9080 wrappers for lookup_reference_type().
9081 * guile/scm-type.c (gdbscm_type_reference): Use
9082 lookup_lvalue_reference_type() instead of lookup_reference_type().
9083 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9084 * parse.c (follow_types): Likewise.
9085 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9086 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9087 Likewise.
9088 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9089 (gdbpy_invoke_xmethod): Likewise.
9090 * stabsread.c: Provide extra argument to make_reference_type()
9091 call.
9092 * valops.c (value_ref, value_rtti_indirect_type): Use
9093 lookup_lvalue_reference_type() instead of lookup_reference_type().
9094
9095 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9096
9097 PR gdb/14441
9098 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9099 (TYPE_IS_REFERENCE): New macro.
9100 (struct type): Add rvalue_reference_type field.
9101 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9102
9103 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9104
9105 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9106 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9107 New function definition.
9108 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9109 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9110 New function declaration.
9111 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9112 * mi/mi-interp.h: New file.
9113 * solib.c (info_sharedlibrary_command): Replace for loop with
9114 ALL_SO_LIBS macro
9115 * solib.h (update_solib_list): New function declaration.
9116 (so_list_head): Move macro.
9117 * solist.h (ALL_SO_LIBS): New macro.
9118
9119 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9120
9121 * infcmd.c (post_create_inferior): Remove unused argument in
9122 call to solib_add.
9123 * remote.c (remote_start_remote): Likewise.
9124 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9125 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9126 (enable_break): Likewise.
9127 * solib.c (update_solib_list): Remove unused target argument
9128 and its documentation.
9129 (solib_add): Remove unused target argument. Remove unused
9130 argument in call to update_solib_list.
9131 (info_sharedlibrary_command): Remove unused argument in call
9132 to update_solib_list.
9133 (sharedlibrary_command): Remove unused argument in call to
9134 solib_add.
9135 (handle_solib_event): Likewise.
9136 (reload_shared_libraries): Likewise.
9137 * solib.h (solib_add): Remove unused target argument.
9138
9139 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9140
9141 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9142 (s390_displaced_step_fixup): Cover relative branches with the
9143 default fixup handling. This fixes lack of support for some
9144 relative branch instructions.
9145
9146 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9147
9148 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9149 ptid from regcache.
9150
9151 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9152
9153 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9154 i386_darwin_store_inferior_registers): Use ptid from regcache.
9155
9156 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9157
9158 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9159 i386bsd_store_inferior_registers): Use ptid from regcache.
9160
9161 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9162
9163 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9164 hppaobsd_store_registers): Use ptid from regcache.
9165
9166 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9167
9168 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9169 hppanbsd_store_registers): Use ptid from regcache.
9170
9171 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9172
9173 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9174 from regcache. Use get_ptrace_pid.
9175
9176 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9177
9178 * corelow.c (get_core_register_section): Use ptid from regcache,
9179 update doc.
9180
9181 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9182
9183 * bsd-uthread.c (bsd_uthread_fetch_registers,
9184 bsd_uthread_store_registers): Use ptid from regcache, set and
9185 restore inferior_ptid.
9186
9187 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9188
9189 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9190 fetch_fp_regs, store_register, store_regs, store_fp_register,
9191 store_fp_regs): Use ptid from regcache.
9192
9193 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9194
9195 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9196 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9197 store_vfp_regs): Use ptid from regcache.
9198
9199 2017-03-17 Pedro Alves <palves@redhat.com>
9200
9201 PR remote/21188
9202 * ser-base.c (ser_base_wait_for): Add comment.
9203 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9204 version.
9205 * ser-unix.c (hardwire_raw): Remove reference to
9206 scb->current_timeout.
9207 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9208 (hardwire_ops): Install ser_base_readchar instead of
9209 hardwire_readchar.
9210 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9211 Remove fields.
9212
9213 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9214
9215 PR gdb/19637
9216 * python/lib/gdb/printer/bound_registers.py: Add support for
9217 Python 3.
9218
9219 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9220
9221 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9222 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9223 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9224 byte_offset to subobj_byte_offset. Fix the handling of
9225 DWARF_VALUE_STACK on big-endian targets when coming via an
9226 implicit pointer.
9227 (dwarf2_evaluate_loc_desc): Adjust call to
9228 dwarf2_evaluate_loc_desc_full.
9229 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9230 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9231
9232 2017-03-16 Yao Qi <yao.qi@linaro.org>
9233
9234 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9235 and REVSH instructions.
9236
9237 2017-03-16 Yao Qi <yao.qi@linaro.org>
9238
9239 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9240 (arm_record_test): Declare.
9241 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9242 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9243 align with the manual.
9244 (thumb_record_misc): Adjust the code order to align with the
9245 manual.
9246 (thumb2_record_decode_insn_handler): Fix instruction matching.
9247 (instruction_reader_thumb): New class.
9248 (arm_record_test): New function.
9249
9250 2017-03-16 Yao Qi <yao.qi@linaro.org>
9251
9252 * arm-tdep.c (abstract_memory_reader): New class.
9253 (instruction_reader): New class.
9254 (extract_arm_insn): Add argument 'reader'. Callers updated.
9255 (decode_insn): Likewise.
9256
9257 2017-03-16 Doug Evans <dje@google.com>
9258
9259 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9260 member. Change type of TYPE member to SCM. All uses updated.
9261 (lsscm_make_lazy_string_smob): Add assert.
9262 (lsscm_make_lazy_string): Flag bad length values.
9263 (lsscm_elt_type): New function.
9264 (gdbscm_lazy_string_to_value): Rewrite to use
9265 lsscm_safe_lazy_string_to_value.
9266 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9267 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9268 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9269 in incoming type.
9270 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9271 * guile/scm-type.c (tyscm_scm_to_type): New function.
9272
9273 2017-03-15 Doug Evans <dje@google.com>
9274
9275 PR python/17728, python/18439, python/18779
9276 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9277 member. Change type of TYPE member to PyObject *. All uses updated.
9278 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9279 (gdbpy_create_lazy_string_object): Flag bad length values.
9280 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9281 Handle typedefs in incoming type.
9282 (stpy_lazy_string_elt_type): New function.
9283 (gdbpy_extract_lazy_string): Call it.
9284 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9285 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9286 typedefs in incoming type.
9287
9288 2017-03-16 Doug Evans <dje@google.com>
9289
9290 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9291 * guile/scm-type.c (tyscm_scm_to_type): New function.
9292
9293 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9294
9295 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9296 "ULONGEST" for "skip".
9297
9298 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9299
9300 PR gdb/21220
9301 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9302 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9303 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9304 over ptrace peek/poke until end of buffer or error.
9305
9306 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9307
9308 * parse.c (length_of_subexp): Make static.
9309 * parser-defs.h (length_of_subexp): Remove.
9310
9311 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9312
9313 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9314 as well.
9315
9316 2017-03-14 Pedro Alves <palves@redhat.com>
9317
9318 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9319 (main): Use std::unique_ptr. Remove calls to
9320 cp_demangled_name_parse_free.
9321
9322 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9325 alphabsd_store_inferior_registers): Use regcache->ptid instead
9326 of inferior_ptid.
9327
9328 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * aix-thread.c (aix_thread_fetch_registers,
9331 aix_thread_store_registers): Use regcache->ptid instead of
9332 inferior_ptid.
9333
9334 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9337 store_gregs_to_thread, fetch_fpregs_from_thread,
9338 store_fpregs_to_thread): Use regcache->ptid instead of
9339 inferior_ptid.
9340
9341 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9344 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9345 instead of inferior_ptid.
9346
9347 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9348
9349 * target.c (target_fetch_registers, target_store_registers): Add
9350 assert.
9351
9352 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9353
9354 * regcache.h (regcache_get_ptid): New function.
9355 * regcache.c (regcache_get_ptid): New function.
9356
9357 2017-03-13 Mark Wielaard <mark@klomp.org>
9358
9359 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9360
9361 2017-03-10 Keith Seitz <keiths@redhat.com>
9362
9363 PR c++/8218
9364 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9365
9366 2017-03-08 Pedro Alves <palves@redhat.com>
9367
9368 PR gdb/18360
9369 * infrun.c (start_step_over, do_target_resume, resume)
9370 (restart_threads): Assert we're not resuming a thread that is
9371 meant to be stopped.
9372 (infrun_thread_stop_requested_callback): Delete.
9373 (infrun_thread_stop_requested): If the thread is internally
9374 stopped, queue a pending stop event and clear the thread's
9375 inline-frame state.
9376 (handle_stop_requested): New function.
9377 (handle_syscall_event, handle_inferior_event_1): Use
9378 handle_stop_requested.
9379 (handle_stop_requested): New function.
9380 (handle_signal_stop): Set the thread's stop_signal here instead of
9381 at caller.
9382 (finish_step_over): Clear step over info unconditionally.
9383 (handle_signal_stop): If the user had interrupted the event
9384 thread, consider the stop a random signal.
9385 (handle_signal_stop) <signal arrived while stepping over
9386 breakpoint>: Don't restart threads here.
9387 (stop_waiting): Don't clear step-over info here.
9388
9389 2017-03-08 Pedro Alves <palves@redhat.com>
9390
9391 PR 21206
9392 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9393 goes to argument 2, not 1.
9394
9395 2017-03-08 Pedro Alves <palves@redhat.com>
9396
9397 PR cli/21218
9398 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9399 display_gdb_prompt.
9400 (command_line_input): Add comment.
9401
9402 2017-03-08 Pedro Alves <palves@redhat.com>
9403
9404 PR tui/21216
9405 * tui/tui-file.c (tui_file::write): New.
9406 * tui/tui-file.h (tui_file): Override "write".
9407 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9408 factored out from ...
9409 (tui_puts): ... here.
9410 (tui_putc): Use them.
9411 (tui_write): New function.
9412 * tui/tui-io.h (tui_write): Declare.
9413
9414 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9415
9416 * Makefile.in (SFILES): Replace "environ.c" with
9417 "common/environ.c".
9418 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9419 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9420 to...
9421 * common/environ.c: ... here.
9422 * environ.h: Moved to...
9423 * common/environ.h: ... here.
9424
9425 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9426
9427 * gdbarch.sh (pstring_ptr): New static function.
9428 (gdbarch_disassembler_options): Use it.
9429 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9430 not valid_disassembler_option->name.
9431 * gdbarch.c: Regenerate.
9432
9433 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9434
9435 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9436
9437 2017-03-07 Pedro Alves <palves@redhat.com>
9438
9439 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9440
9441 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9442
9443 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9444 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9445 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9446 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9447
9448 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9449
9450 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9451
9452 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9453
9454 * remote.c (remote_add_target_side_commands): Use range-based
9455 for loop.
9456
9457 2017-03-03 Yao Qi <yao.qi@linaro.org>
9458
9459 PR gdb/21165
9460 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9461 value is lazy.
9462 * valprint.c (common_val_print): Likewise.
9463
9464 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9465
9466 * NEWS: Mention new set/show disassembler-options commands.
9467 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9468 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9469 (prospective_options): New static variable.
9470 (gdb_disassembler::gdb_disassembler): Initialize
9471 m_di.disassembler_options.
9472 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9473 (get_disassembler_options): New function.
9474 (set_disassembler_options): Likewise.
9475 (set_disassembler_options_sfunc): Likewise.
9476 (show_disassembler_options_sfunc): Likewise.
9477 (disassembler_options_completer): Likewise.
9478 (_initialize_disasm): Likewise.
9479 * disasm.h (get_disassembler_options): New prototype.
9480 (set_disassembler_options): Likewise.
9481 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9482 (gdbarch_verify_disassembler_options): Likewise.
9483 * gdbarch.c: Regenerate.
9484 * gdbarch.h: Likewise.
9485 * arm-tdep.c (num_disassembly_options): Delete.
9486 (set_disassembly_style): Likewise.
9487 (arm_disassembler_options): New static variable.
9488 (set_disassembly_style_sfunc): Convert short style name into long
9489 option name. Call set_disassembler_options.
9490 (show_disassembly_style_sfunc): New function.
9491 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9492 set_gdbarch_verify_disassembler_options.
9493 (_initialize_arm_tdep): Delete regnames variable and update callers.
9494 (arm_disassembler_options): Initialize.
9495 (disasm_options): New variable.
9496 (num_disassembly_options): Rename from this...
9497 (num_disassembly_styles): ...to this. Compute by scanning through
9498 disasm_options.
9499 (valid_disassembly_styles): Initialize using disasm_options.
9500 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9501 set_arm_regname_option.
9502 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9503 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9504 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9505 set_gdbarch_verify_disassembler_options.
9506 * s390-tdep.c (s390_disassembler_options): New static variable.
9507 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9508 set_gdbarch_verify_disassembler_options.
9509
9510 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9511
9512 * remote.c (remote_add_target_side_condition): Remove "struct"
9513 keyword from range-based for loop.
9514
9515 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9516
9517 * remote.c (remote_add_target_side_condition): Use range-based
9518 for loop. Update comment.
9519
9520 2017-02-27 Yao Qi <yao.qi@linaro.org>
9521
9522 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9523
9524 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9525
9526 * regcache.c (regcache_raw_update): New function.
9527 (regcache_raw_read): Move code to regcache_raw_update.
9528 * regcache.h (regcache_raw_update): New declaration.
9529 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9530
9531 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9532
9533 * dwarf2read.c (create_debug_type_hash_table): Initialize
9534 header.signature and header.type_offset_in_tu.
9535
9536 2017-02-24 Pedro Alves <palves@redhat.com>
9537
9538 * symtab.c (make_file_symbol_completion_list_1): Use
9539 add_symtab_completions.
9540
9541 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9542
9543 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9544
9545 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9546
9547 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9548 I386_MAX_REGISTER_SIZE.
9549 (i386_pseudo_register_write): Likewise.
9550 (i386_process_record): Likewise.
9551 * i387-tdep.c (i387_supply_xsave): Likewise.
9552 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9553 (store_register): Likewise.
9554
9555 2017-02-23 Pedro Alves <palves@redhat.com>
9556
9557 * ada-lang.c: Include "common/function-view.h".
9558 (ada_iterate_over_symbols): Adjust to use function_view as
9559 callback type.
9560 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9561 (ada_make_symbol_completion_list): Use a lambda.
9562 (ada_exc_search_name_matches): Delete.
9563 (name_matches_regex): New.
9564 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9565 * compile/compile-c-support.c: Include "common/function-view.h".
9566 (print_one_macro): Change prototype to accept a ui_file pointer.
9567 (write_macro_definitions): Use a lambda.
9568 * dwarf2read.c: Include "common/function-view.h".
9569 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9570 (dw2_expand_symtabs_matching): Adjust to use function_view as
9571 callback type.
9572 * language.h: Include "common/function-view.h".
9573 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9574 function_view as callback type.
9575 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9576 * linespec.c: Include "common/function-view.h".
9577 (collect_info::add_symbol): New method.
9578 (struct symbol_and_data_callback, iterate_inline_only, struct
9579 symbol_matcher_data, iterate_name_matcher): Delete.
9580 (iterate_over_all_matching_symtabs): Adjust to use function_view
9581 as callback type and lambdas.
9582 (iterate_over_file_blocks): Adjust to use function_view as
9583 callback type.
9584 (decode_compound_collector): Now a class with private fields.
9585 (decode_compound_collector::release_symbols): New method.
9586 (collect_one_symbol): Rename to...
9587 (decode_compound_collector::operator()): ... this and adjust.
9588 (lookup_prefix_sym): decode_compound_collector construction bits
9589 move to decode_compound_collector ctor. Pass the
9590 decode_compound_collector object directly as callback. Remove
9591 cleanups and use decode_compound_collector::release_symbols
9592 instead.
9593 (symtab_collector): Now a class with private fields.
9594 (symtab_collector::release_symtabs): New method.
9595 (add_symtabs_to_list): Rename to...
9596 (symtab_collector::operator()): ... this and adjust.
9597 (collect_symtabs_from_filename): symtab_collector construction
9598 bits move to symtab_collector ctor. Pass the symtab_collector
9599 object directly as callback. Remove cleanups and use
9600 symtab_collector::release_symtabs instead.
9601 (collect_symbols): Delete.
9602 (add_matching_symbols_to_info): Use lambdas.
9603 * macrocmd.c (print_macro_callback): Delete.
9604 (info_macro_command): Use a lambda.
9605 (info_macros_command): Pass print_macro_definition as callable
9606 directly.
9607 (print_one_macro): Remove 'ignore' parameter.
9608 (macro_list_command): Adjust.
9609 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9610 (macro_for_each_data::user_data): Delete field.
9611 (foreach_macro): Adjust to call the function_view.
9612 (macro_for_each): Adjust to use function_view as callback type.
9613 (foreach_macro_in_scope): Adjust to call the function_view.
9614 (macro_for_each_in_scope): Adjust to use function_view as callback
9615 type.
9616 * macrotab.h: Include "common/function-view.h".
9617 (macro_callback_fn): Declare a prototype instead of a pointer.
9618 Remove "user_data" parameter.
9619 (macro_for_each, macro_for_each_in_scope): Adjust to use
9620 function_view as callback type.
9621 * psymtab.c (partial_map_expand_apply)
9622 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9623 Adjust to use function_view as callback type and to return bool.
9624 (psym_expand_symtabs_matching): Adjust to use function_view as
9625 callback types.
9626 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9627 to use function_view as callback type and to return bool.
9628 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9629 callback types.
9630 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9631 as callback types.
9632 * symfile.h: Include "common/function-view.h".
9633 (expand_symtabs_file_matcher_ftype)
9634 (expand_symtabs_symbol_matcher_ftype)
9635 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9636 return bool.
9637 (quick_symbol_functions::map_symtabs_matching_filename)
9638 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9639 function_view as callback type and return bool.
9640 (expand_symtabs_matching): Adjust to use function_view as callback
9641 type.
9642 (maintenance_expand_name_matcher)
9643 (maintenance_expand_file_matcher): Delete.
9644 (maintenance_expand_symtabs): Use lambdas.
9645 * symtab.c (iterate_over_some_symtabs): Adjust to use
9646 function_view as callback types and return bool.
9647 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9648 of a cleanup.
9649 (lookup_symtab_callback): Delete.
9650 (lookup_symtab): Use a lambda.
9651 (iterate_over_symbols): Adjust to use function_view as callback
9652 type.
9653 (struct search_symbols_data, search_symbols_file_matches)
9654 (search_symbols_name_matches): Delete.
9655 (search_symbols): Use a pair of lambdas.
9656 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9657 (symtab_expansion_callback): Delete.
9658 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9659 * symtab.h: Include "common/function-view.h".
9660 (iterate_over_some_symtabs): Adjust to use function_view as
9661 callback type and return bool.
9662 (iterate_over_symtabs): Adjust to use function_view as callback
9663 type.
9664 (symbol_found_callback_ftype): Remove 'data' parameter and return
9665 bool.
9666 (iterate_over_symbols): Adjust to use function_view as callback
9667 type.
9668
9669 2017-02-23 Pedro Alves <palves@redhat.com>
9670
9671 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9672 (%.o) <unittests/%.c>: New pattern.
9673 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9674 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9675 * common/function-view.h: New file.
9676 * unittests/function-view-selftests.c: New file.
9677 * configure: Regenerate.
9678
9679 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9680
9681 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9682 inferior_ptid.
9683 * go32-nat.c (go32_thread_alive): Likewise.
9684
9685 2017-02-23 Yao Qi <yao.qi@linaro.org>
9686
9687 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9688 delete.
9689
9690 2017-02-23 Yao Qi <yao.qi@linaro.org>
9691
9692 * varobj.c (varobj_clear_saved_item): Use delete instead of
9693 xfree.
9694 (update_dynamic_varobj_children): Likewise.
9695
9696 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9697
9698 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9699
9700 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9701
9702 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9703 m_enum_value to 0 in default constructor.
9704
9705 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9706
9707 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9708 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9709 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9710 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9711 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9712 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9713 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9714 IS_STORE_CONDITIONAL_INSN.
9715
9716 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9717
9718 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9719
9720 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9723
9724 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 * dwarf2read.c (skip_one_die, read_attribute_value)
9727 (dwarf2_const_value_attr, dump_die_shallow)
9728 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9729 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9730
9731 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9732
9733 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9734 (dwarf_parse_macro_header): Accept DWARF version 5.
9735 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9736
9737 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9738
9739 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9740 DW_AT_GNU_*.
9741 * common/common-exceptions.h (enum errors): Likewise.
9742 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9743 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9744 (dwarf_expr_context::execute_stack_op): Likewise.
9745 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9746 Likewise.
9747 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9748 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9749 (show_entry_values_debug, call_site_to_target_addr)
9750 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9751 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9752 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9753 (value_of_dwarf_block_entry, indirect_pieced_value)
9754 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9755 (disassemble_dwarf_expression): Likewise.
9756 * dwarf2read.c (process_die, inherit_abstract_dies)
9757 (read_call_site_scope): Likewise.
9758 * gdbtypes.h (struct func_type, struct call_site_parameter)
9759 (struct call_site): Likewise.
9760 * stack.c (read_frame_arg): Likewise.
9761 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9762
9763 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9764
9765 * defs.h (read_unsigned_leb128): New declaration.
9766 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9767 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9768 (dwarf2_find_location_expression): Call also
9769 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9770 * dwarf2loc.h (dwarf2_version): New declaration.
9771 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9772 rnglists.
9773 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9774 .debug_rnglists.
9775 (struct dwop_section_names): Add loclists_dwo.
9776 (dwop_section_names): Add .debug_loclists.dwo.
9777 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9778 (struct dwarf2_per_cu_data): Add dwarf_version.
9779 (struct dwo_sections): Add loclists.
9780 (struct attr_abbrev): Add implicit_const.
9781 (read_indirect_line_string): New declaration.
9782 (read_unsigned_leb128): Delete declaration.
9783 (rcuh_kind): New definition.
9784 (read_and_check_comp_unit_head): Change parameter
9785 is_debug_types_section to section_kind.
9786 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9787 (read_comp_unit_head): Change parameter abfd to section, add parameter
9788 section_kind. Handle DWARF-5.
9789 (error_check_comp_unit_head): Accept also DWARF version 5.
9790 (read_and_check_comp_unit_head): Change parameter
9791 is_debug_types_section to section_kind.
9792 (read_and_check_type_unit_head): Delete function.
9793 (read_abbrev_offset): Handle DWARF-5.
9794 (create_debug_type_hash_table): Add parameter section_kind. Process
9795 only DW_UT_type. Use signature and type_offset_in_tu from struct
9796 comp_unit_head.
9797 (create_debug_types_hash_table): Update create_debug_type_hash_table
9798 caller.
9799 (create_all_type_units): Call create_debug_type_hash_table.
9800 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9801 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9802 caller.
9803 (skip_one_die): Handle DW_FORM_implicit_const.
9804 (dwarf2_rnglists_process): New function.
9805 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9806 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9807 (read_attribute_value): Handle DW_FORM_implicit_const,
9808 DW_FORM_line_strp.
9809 (read_attribute): Handle DW_FORM_implicit_const.
9810 (read_indirect_string_at_offset_from): New function from
9811 read_indirect_string_at_offset.
9812 (read_indirect_string_at_offset): Call
9813 read_indirect_string_at_offset_from.
9814 (read_indirect_line_string_at_offset): New function.
9815 (read_indirect_string): New function comment.
9816 (read_indirect_line_string): New function.
9817 (read_unsigned_leb128): Make it global.
9818 (dwarf2_string_attr): Handle DWARF-5.
9819 (add_include_dir_stub, read_formatted_entries): New functions.
9820 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9821 Handle DWARF-5.
9822 (per_cu_header_read_in): Update read_comp_unit_head caller.
9823 (dwarf2_version): New function.
9824 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9825 rnglists.
9826 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9827 fields.
9828
9829 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9830
9831 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9832
9833 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9834
9835 * dwarf2read.c (dwarf2_ranges_process): New function from
9836 dwarf2_ranges_read.
9837 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9838 dwarf2_ranges_process.
9839
9840 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9841
9842 * dwarf2read.c (create_debug_type_hash_table): New function from
9843 create_debug_types_hash_table.
9844 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9845 (create_all_type_units, open_and_init_dwo_file): Update
9846 create_debug_types_hash_table callers.
9847
9848 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9849
9850 PR gdb/16188
9851 * fork-child.c (trace_start_error): Fix thinko. va_end should
9852 refer to 'ap', not 'args'.
9853
9854 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9855 Pedro Alves <palves@redhat.com>
9856
9857 PR gdb/16188
9858 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9859 calls succeeded.
9860 * fork-child.c (trace_start_error): New function.
9861 (trace_start_error_with_name): Likewise.
9862 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9863 * inf-ptrace.c (inf_ptrace_me): Likewise.
9864 * inferior.h (trace_start_error): New prototype.
9865 (trace_start_error_with_name): Likewise.
9866
9867 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9868
9869 PR gdb/21164
9870 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9871 NULL before using it.
9872 * symmisc.c (maintenance_print_symbols): Likewise.
9873 (maintenance_print_msymbols): Likewise.
9874
9875 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9876
9877 * NEWS: Add record Python bindings entry.
9878
9879 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9880
9881 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9882 py-record-full.o.
9883 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9884 * python/py-record-btrace.c, python/py-record-btrace.h,
9885 python/py-record-full.c, python/py-record-full.h: New file.
9886 * python/py-record.c: Add include for py-record-btrace.h and
9887 py-record-full.h.
9888 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9889 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9890 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9891 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9892 New definition.
9893 (gdbpy_initialize_btrace): New export.
9894 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9895
9896 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9897
9898 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9899 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9900 * python/py-record.c: New file.
9901 * python/python-internal.h (gdbpy_start_recording,
9902 gdbpy_current_recording, gdpy_stop_recording,
9903 gdbpy_initialize_record): New export.
9904 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9905 (python_GdbMethods): Add gdbpy_start_recording,
9906 gdbpy_current_recording and gdbpy_stop_recording.
9907
9908 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9909
9910 * record-btrace.c (record_btrace_record_method): New function.
9911 (init_record_btrace_ops): Initialize to_record_method.
9912 * record-full.c (record_full_record_method): New function.
9913 (init_record_full_ops, init_record_full_core_ops): Add
9914 record_full_record_method.
9915 * record.h (enum record_method): New enum.
9916 * target-debug.h (target_debug_print_enum_record_method: New define.
9917 * target-delegates.c: Regenerate.
9918 * target.c (target_record_method): New function.
9919 * target.h: Include record.h.
9920 (struct target_ops) <to_record_method>: New field.
9921 (target_record_method): New export.
9922
9923 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9924
9925 * record.h (record_start, record_stop): New export.
9926 * record.c (record_start, record_stop): New function.
9927
9928 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9929
9930 * btrace.c (btrace_fetch): Copy function call segments pointer
9931 into a vector.
9932 (btrace_clear): Clear the vector.
9933 (btrace_find_insn_by_number): Use binary search to find the correct
9934 function call segment.
9935 * btrace.h (brace_fun_p): New typedef.
9936 (struct btrace_thread_info) <functions>: New field.
9937
9938 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9939
9940 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9941 * btrace.c (btrace_decode_error): ... here. New function.
9942 * btrace.h (btrace_decode_error): New export.
9943
9944 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9945
9946 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9947 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9948 btrace_find_insn_by_number): Remove special case for gaps.
9949 * btrace.h (btrace_insn_get_error): New export.
9950 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9951 * record-btrace.c (btrace_insn_history): Print number for gaps.
9952 (record_btrace_info, record_btrace_goto): Handle gaps.
9953
9954 2017-02-14 Tom Tromey <tom@tromey.com>
9955
9956 PR python/13598:
9957 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9958 event.
9959 * python/py-evts.c (gdbpy_initialize_py_events): Add
9960 before_prompt registry.
9961 * python/py-events.h (events_object) <before_prompt>: New field.
9962
9963 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9964
9965 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9966
9967 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
9968
9969 * symfile (_initialize_symfile): Add usage text to the load command's
9970 help text.
9971
9972 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9973
9974 * utils.c (defaulted_query): Don't query on secondary UIs.
9975
9976 2017-02-10 Tom Tromey <tom@tromey.com>
9977
9978 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9979
9980 2017-02-10 Tom Tromey <tom@tromey.com>
9981
9982 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9983 "cleanup" local.
9984 * python/py-type.c (typy_legacy_template_argument): Remove
9985 unnecessary "cleanup" local.
9986
9987 2017-02-10 Tom Tromey <tom@tromey.com>
9988
9989 * python/python.c (do_start_initialization): New function, from
9990 _initialize_python.
9991 (_initialize_python): Call do_start_initialization.
9992 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9993 goto.
9994
9995 2017-02-10 Tom Tromey <tom@tromey.com>
9996
9997 * python/py-prettyprint.c (pretty_print_one_value): Use
9998 gdbpy_ref.
9999
10000 2017-02-10 Tom Tromey <tom@tromey.com>
10001
10002 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10003 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10004 gdbpy_ref.
10005 * python/py-type.c (field_new): Use gdbpy_ref.
10006 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10007 gdbpy_ref.
10008 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10009 (py_free_pspace): Likewise.
10010 (pspace_to_pspace_object): Likewise.
10011 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10012 (py_free_objfile): Likewise.
10013 (objfile_to_objfile_object): Likewise.
10014 * python/py-inferior.c (delete_thread_object): Use
10015 gdbpy_ref.
10016 (infpy_read_memory): Likewise.
10017 (py_free_inferior): Likewise.
10018 * python/py-evtregistry.c (create_eventregistry_object): Use
10019 gdbpy_ref.
10020 * python/py-event.c (create_event_object): Use gdbpy_ref.
10021
10022 2017-02-10 Tom Tromey <tom@tromey.com>
10023
10024 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10025 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10026 used.
10027 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10028 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10029 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10030 python/py-framefilter.c, python/py-function.c,
10031 python/py-inferior.c, python/py-infevents.c,
10032 python/py-linetable.c, python/py-newobjfileevent.c,
10033 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10034 python/py-signalevent.c, python/py-stopevent.c,
10035 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10036 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10037 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10038 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10039
10040 2017-02-10 Tom Tromey <tom@tromey.com>
10041
10042 * ui-out.h (ui_out_emit_type): New class.
10043 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10044 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10045 and ui_out_emit_tuple.
10046 (enumerate_locals): Likewise.
10047 (py_mi_print_variables, py_print_locals, py_print_args): Use
10048 ui_out_emit_list.
10049 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10050 ui_out_emit_list.
10051 * common/gdb_optional.h: New file.
10052
10053 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10054
10055 * MAINTAINERS (Write After Approval): Update my e-mail address.
10056
10057 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10058
10059 PR gdb/21122
10060 * breakpoint.c (_initialize_breakpoint): Update the help description
10061 of the 'commands' command to indicate that it takes a list argument.
10062
10063 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10064
10065 * interps.c (current_interp_set_logging): Remove "return".
10066
10067 2017-02-09 Gary Benson <gbenson@redhat.com>
10068
10069 * symtab.c (add_symtab_completions): Prevent NULL pointer
10070 dereference.
10071
10072 2017-02-08 Pedro Alves <palves@redhat.com>
10073
10074 * interps.c (interp::interp): Remove reference to quiet_p.
10075 (interp_set): Make static. Remove dead "Switching to" output
10076 code.
10077 (interp_quiet_p, interp_set_quiet): Delete.
10078 (interpreter_exec_cmd): Don't set the interpreter quiet.
10079 * interps.h (interp_quiet_p): Make static.
10080 (class interp) <quiet_p>: Remove field
10081
10082 2017-02-08 Jerome Guitton <guitton@adacore.com>
10083
10084 * cli/cli-decode.c (find_command_name_length): Make it extern.
10085 * cli/cli-decode.h (find_command_name_length): Declare.
10086 * cli/cli-script.c (command_name_equals, line_first_arg):
10087 New functions.
10088 (process_next_line): Use cli-decode to parse command names.
10089 (build_command_line): Make args a constant pointer.
10090
10091 2017-02-08 Jerome Guitton <guitton@adacore.com>
10092
10093 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10094 Remove case-insensitive search.
10095
10096 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10097
10098 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10099 at the end of the line. Avoids an ARI warning.
10100
10101 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10102
10103 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10104 rdseed instructions.
10105 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10106
10107 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10108
10109 PR tdep/20936
10110 Provide and use sparc32 and sparc64 target description XML files.
10111 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10112 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10113 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10114 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10115 * features/sparc/sparc32-solaris.xml: New file.
10116 * features/sparc/sparc64-solaris.xml: New file.
10117 * features/sparc/sparc32-solaris.c: Generated.
10118 * features/sparc/sparc64-solaris.c: Generated.
10119 * sparc-tdep.h: Account for differences in target descriptions.
10120 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10121 (sparc32_register_type): Use target provided registers.
10122 (validate_tdesc_registers): New function.
10123 (sparc32_gdbarch_init): Use tdesc_has_registers.
10124 Set pseudoregister functions.
10125 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10126 (sparc64_register_type): Use target provided registers.
10127 (sparc64_init_abi): Set pseudoregister functions.
10128
10129 2017-02-03 Tom Tromey <tom@tromey.com>
10130
10131 PR rust/21097:
10132 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10133 with a single member.
10134
10135 2017-02-03 Pedro Alves <palves@redhat.com>
10136
10137 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10138 (cli_interp_base::~cli_interp_base): New.
10139 (cli_interp): New struct.
10140 (as_cli_interp): Cast the interp itself to cli_interp.
10141 (cli_interpreter_pre_command_loop): Rename to ...
10142 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10143 parameter.
10144 (cli_interpreter_init): Rename to ...
10145 (cli_interp::init): ... this. Remove 'self' parameter. Use
10146 boolean. Make extern.
10147 (cli_interpreter_resume): Rename to ...
10148 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10149 extern.
10150 (cli_interpreter_suspend): Rename to ...
10151 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10152 extern.
10153 (cli_interpreter_exec): Rename to ...
10154 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10155 extern.
10156 (cli_interpreter_supports_command_editing): Rename to ...
10157 (cli_interp_base::supports_command_editing): ... this. Remove
10158 'interp' parameter. Make extern.
10159 (cli_ui_out): Rename to ...
10160 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10161 Make extern.
10162 (cli_set_logging): Rename to ...
10163 (cli_interp_base::set_logging): ... this. Remove 'interp'
10164 parameter. Make extern.
10165 (cli_interp_procs): Delete.
10166 (cli_interp_factory): Adjust to use "new".
10167 * cli/cli-interp.h: Include "interps.h".
10168 (struct cli_interp_base): New struct.
10169 * interps.c (struct interp): Delete. Fields moved to interps.h.
10170 (interp_new): Delete.
10171 (interp::interp, interp::~interp): New.
10172 (interp_set): Use bool, and return void. Assume the interpreter
10173 has suspend, init and resume methods, and that the all return
10174 void.
10175 (set_top_level_interpreter): interp_set returns void.
10176 (interp_ui_out): Adapt.
10177 (current_interp_set_logging): Adapt.
10178 (interp_data): Delete.
10179 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10180 (interp_exec): Adapt.
10181 (top_level_interpreter_data): Delete.
10182 * interps.h (interp_init_ftype, interp_resume_ftype)
10183 (interp_suspend_ftype, interp_exec_ftype)
10184 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10185 (class interp): New.
10186 (interp_new): Delete.
10187 (interp_set): Now returns void. Use bool.
10188 (interp_data, top_level_interpreter_data): Delete.
10189 * mi/mi-common.h: Include interps.h.
10190 (class mi_interp): Inherit from interp. Define a ctor. Declare
10191 init, resume, suspect, exec, interp_ui_out, set_logging and
10192 pre_command_loop methods.
10193 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10194 (mi_interpreter_init): Rename to ...
10195 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10196 bool, return void and make extern. Adjust.
10197 (mi_interpreter_resume): ... Rename to ...
10198 (mi_interp::resume): ... this. Remove the 'data' parameter,
10199 return void and make extern. Adjust.
10200 (mi_interpreter_suspend): ... Rename to ...
10201 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10202 return void and make extern. Adjust.
10203 (mi_interpreter_exec): ... Rename to ...
10204 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10205 extern. Adjust.
10206 (mi_interpreter_pre_command_loop): ... Rename to ...
10207 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10208 parameter and make extern.
10209 (mi_on_normal_stop_1): Adjust.
10210 (mi_ui_out): Rename to ...
10211 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10212 parameter and make extern. Adjust.
10213 (mi_set_logging): Rename to ...
10214 (mi_interp::set_logging): ... this. Remove the 'interp'
10215 parameter and make extern. Adjust.
10216 (mi_interp_procs): Delete.
10217 (mi_interp_factory): Adjust to use 'new'.
10218 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10219 (mi_print_exception, mi_execute_command, mi_load_progress):
10220 Adjust.
10221 * tui/tui-interp.c (tui_interp): New class.
10222 (as_tui_interp): Return a tui_interp pointer.
10223 (tui_on_normal_stop, tui_on_signal_received)
10224 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10225 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10226 to use interp::interp_ui_out.
10227 (tui_init): Rename to ...
10228 (tui_interp::init): ... this. Remove the 'self' parameter, use
10229 bool, return void and make extern. Adjust.
10230 (tui_resume): Rename to ...
10231 (tui_interp::resume): ... this. Remove the 'data' parameter,
10232 return void and make extern. Adjust.
10233 (tui_suspend): Rename to ...
10234 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10235 return void and make extern. Adjust.
10236 (tui_ui_out): Rename to ...
10237 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10238 parameter, and make extern. Adjust.
10239 (tui_exec): Rename to ...
10240 (tui_interp::exec): ... this. Remove the 'data' parameter and
10241 make extern.
10242 (tui_interp_procs): Delete.
10243 (tui_interp_factory): Use "new".
10244
10245 2017-02-02 Tom Tromey <tom@tromey.com>
10246
10247 * rust-exp.y (ends_raw_string, space_then_number)
10248 (rust_identifier_start_p): Return bool.
10249 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10250 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10251 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10252 (rust_chartype_p): Return bool.
10253 (val_print_struct, rust_print_struct_def, rust_print_type):
10254 Update.
10255 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10256 Return bool.
10257
10258 2017-02-02 Tom Tromey <tom@tromey.com>
10259
10260 * rust-lang.c: Reindent.
10261
10262 2017-02-02 Tom Tromey <tom@tromey.com>
10263
10264 * rust-lang.h (rust_crate_for_block): Update.
10265 * rust-lang.c (rust_crate_for_block): Return std::string.
10266 (rust_get_disr_info): Use std:;string, not
10267 gdb::unique_xmalloc_ptr.
10268 * rust-exp.y (crate_name): Update.
10269
10270 2017-02-02 Pedro Alves <palves@redhat.com>
10271
10272 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10273 field out of gdb_disassembler_test and make it static.
10274
10275 2017-02-02 Pedro Alves <palves@redhat.com>
10276
10277 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10278 mi1_interp and mi_interp fields.
10279
10280 2017-02-02 Pedro Alves <palves@redhat.com>
10281
10282 * cli/cli-interp.c (struct saved_output_files, saved_output):
10283 Moved from cli/cli-logging.c.
10284 (cli_set_logging): New function.
10285 (cli_interp_procs): Install cli_set_logging.
10286 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10287 Declare.
10288 * cli/cli-logging.c (struct saved_output_files, saved_output):
10289 Moved to cli/cli-interp.c.
10290 (pop_output_files): Don't save outputs here.
10291 (make_logging_output): New function.
10292 (handle_redirections): Don't build tee nor save previous outputs
10293 here.
10294 * interps.c (current_interp_set_logging): Change prototype.
10295 Assume there's always a set_logging_proc method installed.
10296 * interps.h (interp_set_logging_ftype): Change prototype.
10297 (current_interp_set_logging): Change prototype and adjust comment.
10298 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10299 use make_logging_output.
10300 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10301 2017-02-02 Pedro Alves <palves@redhat.com>
10302
10303 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10304 from ...
10305 (set_logging_overwrite): ... here.
10306 (logging_no_redirect_file): Delete.
10307 (set_logging_redirect): Don't handle redirection on the fly.
10308 Instead warn that "logging off" / "logging on" is necessary.
10309 (pop_output_files): Delete references to logging_no_redirect_file.
10310 (show_logging_command): Always speak in terms of what will happen
10311 once logging is reenabled.
10312
10313 2017-02-02 Pedro Alves <palves@redhat.com>
10314
10315 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10316
10317 2017-02-02 Pedro Alves <palves@redhat.com>
10318
10319 * disasm.c (gdb_pretty_print_insn): Rename to ...
10320 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10321 Remove gdbarch parameter. Adapt to clear the object's buffers
10322 instead of allocating new buffers, and to print using the object's
10323 gdb_disassembler instead of calling gdb_print_insn.
10324 (dump_insns): Use gdb_pretty_print_disassembler.
10325 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10326 (gdb_pretty_print_disassembler): New class.
10327 * record-btrace.c (btrace_insn_history): Use
10328 gdb_pretty_print_disassembler.
10329
10330 2017-02-02 Pedro Alves <palves@redhat.com>
10331
10332 * ada-lang.c (type_as_string): Use string_file.
10333 * ada-valprint.c (ada_print_floating): Use string_file.
10334 * ada-varobj.c (ada_varobj_scalar_image)
10335 (ada_varobj_get_value_image): Use string_file.
10336 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10337 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10338 * breakpoint.c (update_inserted_breakpoint_locations)
10339 (insert_breakpoint_locations, reattach_breakpoints)
10340 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10341 (print_it_watchpoint): Use string_file.
10342 (save_breakpoints): Use stdio_file.
10343 * c-exp.y (oper): Use string_file.
10344 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10345 tee_file.
10346 (pop_output_files): Use delete.
10347 (handle_redirections): Use stdio_file and tee_file.
10348 * cli/cli-setshow.c (do_show_command): Use string_file.
10349 * compile/compile-c-support.c (c_compute_program): Use
10350 string_file.
10351 * compile/compile-c-symbols.c (generate_vla_size): Take a
10352 'string_file &' instead of a 'ui_file *'.
10353 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10354 of a 'ui_file *'. Use string_file.
10355 (generate_c_for_variable_locations): Take a 'string_file &'
10356 instead of a 'ui_file *'.
10357 * compile/compile-internal.h (generate_c_for_for_one_variable):
10358 Take a 'string_file &' instead of a 'ui_file *'.
10359 * compile/compile-loc2c.c (push, pushf, unary, binary)
10360 (print_label, pushf_register_address, pushf_register)
10361 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10362 'ui_file *'. Adjust.
10363 * compile/compile.c (compile_to_object): Use string_file.
10364 * compile/compile.h (compile_dwarf_expr_to_c)
10365 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10366 'ui_file *'.
10367 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10368 (replace_typedefs_qualified_name): Use string_file and
10369 obstack_copy0.
10370 * disasm.c (gdb_pretty_print_insn): Use string_file.
10371 (gdb_disassembly): Adjust reference the null_stream global.
10372 (do_ui_file_delete): Delete.
10373 (gdb_insn_length): Use null_stream.
10374 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10375 * dwarf2loc.c (dwarf2_compile_property_to_c)
10376 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10377 'string_file &' instead of a 'ui_file *'.
10378 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10379 * dwarf2read.c (do_ui_file_peek_last): Delete.
10380 (dwarf2_compute_name): Use string_file.
10381 * event-top.c (gdb_setup_readline): Use stdio_file.
10382 * gdbarch.sh (verify_gdbarch): Use string_file.
10383 * gdbtypes.c (safe_parse_type): Use null_stream.
10384 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10385 string_file.
10386 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10387 'string_file *' instead of a 'ui_file *'.
10388 (gdbscm_arch_disassemble): Use string_file.
10389 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10390 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10391 inherits from ui_file.
10392 (ioscm_file_port_delete, ioscm_file_port_rewind)
10393 (ioscm_file_port_put): Delete.
10394 (ioscm_file_port_write): Rename to ...
10395 (ioscm_file_port::write): ... this. Remove file_port_magic
10396 checks.
10397 (ioscm_file_port_new): Delete.
10398 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10399 ui_file_up.
10400 * guile/scm-type.c (tyscm_type_name): Use string_file.
10401 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10402 Use string_file.
10403 * infcmd.c (print_return_value_1): Use string_file.
10404 * infrun.c (print_target_wait_results): Use string_file.
10405 * language.c (add_language): Use string_file.
10406 * location.c (explicit_to_string_internal): Use string_file.
10407 * main.c (captured_main_1): Use null_file.
10408 * maint.c (maintenance_print_architecture): Use stdio_file.
10409 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10410 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10411 event_channel>: Change type to mi_console_file pointer.
10412 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10413 (mi_console_file_delete): Delete.
10414 (struct mi_console_file): Delete.
10415 (mi_console_file_magic): Delete.
10416 (mi_console_file_new): Delete.
10417 (mi_console_file::mi_console_file): New.
10418 (mi_console_file_delete): Delete.
10419 (mi_console_file_fputs): Delete.
10420 (mi_console_file::write): New.
10421 (mi_console_raw_packet): Delete.
10422 (mi_console_file::flush): New.
10423 (mi_console_file_flush): Delete.
10424 (mi_console_set_raw): Rename to ...
10425 (mi_console_file::set_raw): ... this.
10426 * mi/mi-console.h (class mi_console_file): New class.
10427 (mi_console_file_new, mi_console_set_raw): Delete.
10428 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10429 (mi_set_logging): Use delete and tee_file. Adjust.
10430 * mi/mi-main.c (output_register): Use string_file.
10431 (mi_cmd_data_evaluate_expression): Use string_file.
10432 (mi_cmd_data_read_memory): Use string_file.
10433 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10434 * mi/mi-out.c (mi_ui_out::main_stream): New.
10435 (mi_ui_out::rewind): Use main_stream and
10436 string_file.
10437 (mi_ui_out::put): Use main_stream and string_file.
10438 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10439 Allocate a 'string_file' instead.
10440 (mi_out_new): Don't allocate a mem_fileopen stream here.
10441 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10442 (mi_ui_out::main_stream): Declare method.
10443 * printcmd.c (eval_command): Use string_file.
10444 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10445 * python/py-arch.c (archpy_disassemble): Use string_file.
10446 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10447 * python/py-frame.c (frapy_str): Use string_file.
10448 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10449 Use string_file.
10450 * python/py-type.c (typy_str): Use string_file.
10451 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10452 * python/py-value.c (valpy_str): Use string_file.
10453 * record-btrace.c (btrace_insn_history): Use string_file.
10454 * regcache.c (regcache_print): Use stdio_file.
10455 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10456 * remote.c (escape_buffer): Use string_file.
10457 * rust-lang.c (rust_get_disr_info): Use string_file.
10458 * serial.c (serial_open_ops_1): Use stdio_file.
10459 (do_serial_close): Use delete.
10460 * stack.c (print_frame_arg): Use string_file.
10461 (print_frame_args): Remove local mem_fileopen stream, not used.
10462 (print_frame): Use string_file.
10463 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10464 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10465 Take a 'string_file *' instead of a 'ui_file *'.
10466 * top.c (new_ui): Use stdio_file and stderr_file.
10467 (free_ui): Use delete.
10468 (execute_command_to_string): Use string_file.
10469 (quit_confirm): Use string_file.
10470 * tracepoint.c (collection_list::append_exp): Use string_file.
10471 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10472 * tui/tui-file.c: Don't include "ui-file.h".
10473 (enum streamtype, struct tui_stream): Delete.
10474 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10475 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10476 (tui_file::tui_file): New method.
10477 (tui_file_fputs): Delete.
10478 (tui_file_get_strbuf): Delete.
10479 (tui_file::puts): New method.
10480 (tui_file_adjust_strbuf): Delete.
10481 (tui_file_flush): Delete.
10482 (tui_file::flush): New method.
10483 * tui/tui-file.h: Tweak intro comment.
10484 Include ui-file.h.
10485 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10486 (tui_file_adjust_strbuf): Delete declarations.
10487 (class tui_file): New class.
10488 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10489 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10490 (tui_register_format): Use string_stream.
10491 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10492 (tui_get_function_from_frame): Use string_file.
10493 * typeprint.c (type_to_string): Use string_file.
10494 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10495 (null_stream): New global.
10496 (ui_file_delete): Delete.
10497 (ui_file::ui_file): New.
10498 (null_file_isatty): Delete.
10499 (ui_file::~ui_file): New.
10500 (null_file_rewind): Delete.
10501 (ui_file::printf): New.
10502 (null_file_put): Delete.
10503 (null_file_flush): Delete.
10504 (ui_file::putstr): New.
10505 (null_file_write): Delete.
10506 (ui_file::putstrn): New.
10507 (null_file_read): Delete.
10508 (ui_file::putc): New.
10509 (null_file_fputs): Delete.
10510 (null_file_write_async_safe): Delete.
10511 (ui_file::vprintf): New.
10512 (null_file_delete): Delete.
10513 (null_file::write): New.
10514 (null_file_fseek): Delete.
10515 (null_file::puts): New.
10516 (ui_file_data): Delete.
10517 (null_file::write_async_safe): New.
10518 (gdb_flush, ui_file_isatty): Adjust.
10519 (ui_file_put, ui_file_rewind): Delete.
10520 (ui_file_write): Adjust.
10521 (ui_file_write_for_put): Delete.
10522 (ui_file_write_async_safe, ui_file_read): Adjust.
10523 (ui_file_fseek): Delete.
10524 (fputs_unfiltered): Adjust.
10525 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10526 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10527 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10528 (set_ui_file_data): Delete.
10529 (string_file::~string_file, string_file::write)
10530 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10531 (do_ui_file_as_string, ui_file_as_string): Delete.
10532 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10533 (struct mem_file): Delete.
10534 (mem_file_new): Delete.
10535 (stdio_file::stdio_file): New.
10536 (mem_file_delete): Delete.
10537 (stdio_file::stdio_file): New.
10538 (mem_fileopen): Delete.
10539 (stdio_file::~stdio_file): New.
10540 (mem_file_rewind): Delete.
10541 (stdio_file::set_stream): New.
10542 (mem_file_put): Delete.
10543 (stdio_file::open): New.
10544 (mem_file_write): Delete.
10545 (stdio_file_magic, struct stdio_file): Delete.
10546 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10547 (stdio_file::flush): New.
10548 (stdio_file_read): Rename to ...
10549 (stdio_file::read): ... this. Adjust.
10550 (stdio_file_write): Rename to ...
10551 (stdio_file::write): ... this. Adjust.
10552 (stdio_file_write_async_safe): Rename to ...
10553 (stdio_file::write_async_safe) ... this. Adjust.
10554 (stdio_file_fputs): Rename to ...
10555 (stdio_file::puts) ... this. Adjust.
10556 (stdio_file_isatty): Delete.
10557 (stdio_file_fseek): Delete.
10558 (stdio_file::isatty): New.
10559 (stderr_file_write): Rename to ...
10560 (stderr_file::write) ... this. Adjust.
10561 (stderr_file_fputs): Rename to ...
10562 (stderr_file::puts) ... this. Adjust.
10563 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10564 (stderr_file::stderr_file): New.
10565 (tee_file_magic): Delete.
10566 (struct tee_file): Delete.
10567 (tee_file::tee_file): New.
10568 (tee_file_new): Delete.
10569 (tee_file::~tee_file): New.
10570 (tee_file_delete): Delete.
10571 (tee_file_flush): Rename to ...
10572 (tee_file::flush): ... this. Adjust.
10573 (tee_file_write): Rename to ...
10574 (tee_file::write): ... this. Adjust.
10575 (tee_file::write_async_safe): New.
10576 (tee_file_fputs): Rename to ...
10577 (tee_file::puts): ... this. Adjust.
10578 (tee_file_isatty): Rename to ...
10579 (tee_file::isatty): ... this. Adjust.
10580 * ui-file.h (struct obstack, struct ui_file): Don't
10581 forward-declare.
10582 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10583 (ui_file_write_ftype)
10584 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10585 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10586 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10587 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10588 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10589 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10590 (set_ui_file_fseek): Delete.
10591 (ui_file_data, ui_file_delete, ui_file_rewind)
10592 (struct ui_file): New.
10593 (ui_file_up): New.
10594 (class null_file): New.
10595 (null_stream): Declare.
10596 (ui_file_write_for_put, ui_file_put): Delete.
10597 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10598 Delete.
10599 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10600 (gdb_fopen, tee_file_new): Delete.
10601 (struct string_file): New.
10602 (struct stdio_file): New.
10603 (stdio_file_up): New.
10604 (struct stderr_file): New.
10605 (class tee_file): New.
10606 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10607 of a 'ui_file *'. Adjust.
10608 * ui-out.h (class ui_out) <field_stream>: Likewise.
10609 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10610 (null_stream): Delete.
10611 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10612 Adjust.
10613 * utils.h (struct ui_file): Delete forward declaration..
10614 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10615 (error_stream): Take a 'string_file &' instead of a
10616 'ui_file *'.
10617 * varobj.c (varobj_value_get_print_value): Use string_file.
10618 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10619 * gdbarch.c: Regenerate.
10620
10621 2017-02-02 Pedro Alves <palves@redhat.com>
10622
10623 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10624 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10625 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10626 Adjust to call gdb_print_insn instead of
10627 gdb_disassembler::print_insn.
10628 (dump_insns, do_mixed_source_and_assembly_deprecated)
10629 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10630 'gdbarch' parameter. Remove gdb_disassembler parameter.
10631 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10632 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10633 declaration.
10634 (gdb_pretty_print_insn): Re-add declaration.
10635 * record-btrace.c (btrace_insn_history): Don't allocate a
10636 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10637
10638 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10639
10640 * disasm.h (gdb_disassembly): Remove file_string parameter.
10641 * disasm.c (gdb_disassembly): Likewise.
10642 * cli/cli-cmds.c (print_disassembly): Adapt.
10643 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10644 * stack.c (do_gdb_disassembly): Likewise.
10645
10646 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10647
10648 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10649 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10650 targets. And if the implicit value is longer than needed, extract
10651 the first bytes instead of the "least significant" ones.
10652
10653 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10654
10655 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10656 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10657 (btrace_fetch): Assert can_access_registers_ptid.
10658 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10659 validate_registers_access.
10660
10661 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10662
10663 * gdbthread.h (can_access_registers_ptid): New.
10664 * thread.c (can_access_registers_ptid): New.
10665
10666 2017-02-01 Pedro Alves <palves@redhat.com>
10667
10668 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10669
10670 2017-01-31 Pedro Alves <palves@redhat.com>
10671
10672 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10673 Fix typos.
10674
10675 2017-01-31 Pedro Alves <palves@redhat.com>
10676
10677 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10678 not used.
10679
10680 2017-01-31 Pedro Alves <palves@redhat.com>
10681
10682 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10683
10684 2017-01-31 Pedro Alves <palves@redhat.com>
10685
10686 * common/scoped_restore.h
10687 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10688 change the value's parameter type to T2.
10689 (make_scoped_restore): Likewise.
10690
10691 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10692 Richard Henderson <rth@redhat.com>
10693
10694 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10695 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10696 GS_BASE for older kernels.
10697 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10698 GS_BASE for older kernels.
10699 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10700 and GS_BASE to the offset table.
10701 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10702 system register group.
10703 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10704 for older kernels.
10705 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10706 amd64 ABI.
10707 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10708 AMD64_GSBASE_REGNUM.
10709 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10710 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10711 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10712 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10713 i386/64bit-segments.xml in those rules.
10714 * features/i386/64bit-segments.xml: New file.
10715 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10716 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10717 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10718 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10719 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10720 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10721 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10722 * features/i386/amd64-avx-linux.c: Regenerated.
10723 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10724 * features/i386/amd64-avx-mpx.c: Regenerated.
10725 * features/i386/amd64-avx512-linux.c: Regenerated.
10726 * features/i386/amd64-linux.c: Regenerated.
10727 * features/i386/amd64-mpx-linux.c: Regenerated.
10728 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10729 * features/i386/i386-avx-mpx.c: Regenerated.
10730 * features/i386/x32-avx-linux.c: Regenerated.
10731 * features/i386/x32-avx512-linux.c: Regenerated.
10732 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10733 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10734 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10735 * regformats/i386/amd64-linux.dat: Regenerated.
10736 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10737 * regformats/i386/x32-avx-linux.dat: Regenerated.
10738 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10739 * regformats/i386/x32-linux.dat: Regenerated.
10740
10741 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10742
10743 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10744 Set to AMD64_NUM_REGS.
10745
10746 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10747
10748 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10749 that checks validity of a register number.
10750
10751 2017-01-27 Kees Cook <keescook@google.com>
10752
10753 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10754 fetch_fpregs if target has fpa registers.
10755 (arm_linux_store_inferior_registers): Call store_fpregs if target
10756 has fpa registers.
10757
10758 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10759
10760 * cris-tdep.c (cris_gdbarch_init): Remove check for
10761 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10762
10763 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10764
10765 * corelow.c (get_core_register_section): Check for regset
10766 existence before checking for REGSET_VARIABLE_SIZE.
10767
10768 2017-01-26 Yao Qi <yao.qi@linaro.org>
10769 Pedro Alves <palves@redhat.com>
10770
10771 PR gdb/20939
10772 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10773 call memory_error, save memaddr instead.
10774 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10775 negative, cal memory_error.
10776 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10777
10778 2017-01-26 Yao Qi <yao.qi@linaro.org>
10779
10780 * disasm-selftests.c (memory_error_test): New function.
10781 (_initialize_disasm_selftests): Register memory_error_test.
10782
10783 2017-01-26 Yao Qi <yao.qi@linaro.org>
10784
10785 * Makefile.in (SFILES): Add disasm-selftests.c and
10786 selftest-arch.c.
10787 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10788 * disasm-selftests.c: New file.
10789 * selftest-arch.c: New file.
10790 * selftest-arch.h: New file.
10791
10792 2017-01-26 Yao Qi <yao.qi@linaro.org>
10793
10794 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10795 to bfd_arch_mep. Don't return 0 if section is not
10796 found. Call print_insn_mep.
10797
10798 2017-01-26 Pedro Alves <palves@redhat.com>
10799 Yao Qi <yao.qi@linaro.org>
10800
10801 * arm-tdep.c: Include "disasm.h".
10802 (gdb_print_insn_arm): Update code to get gdbarch.
10803 * disasm.c (dis_asm_read_memory): Change it to
10804 gdb_disassembler::dis_asm_read_memory.
10805 (dis_asm_memory_error): Likewise.
10806 (dis_asm_print_address): Likewise.
10807 (gdb_pretty_print_insn): Change it to
10808 gdb_disassembler::pretty_print_insn.
10809 (dump_insns): Add one argument gdb_disassemlber. All
10810 callers updated.
10811 (do_mixed_source_and_assembly_deprecated): Likewise.
10812 (do_mixed_source_and_assembly): Likewise.
10813 (do_assembly_only): Likewise.
10814 (gdb_disassembler::gdb_disassembler): New.
10815 (gdb_disassembler::print_insn): New.
10816 * disasm.h (class gdb_disassembler): New.
10817 (gdb_pretty_print_insn): Remove declaration.
10818 (gdb_disassemble_info): Likewise.
10819 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10820 (gdbscm_disasm_read_memory_worker): Update.
10821 (gdbscm_disasm_read_memory): Update.
10822 (gdbscm_disasm_memory_error): Remove.
10823 (gdbscm_disasm_print_address): Remove.
10824 (gdbscm_disassembler::gdbscm_disassembler): New.
10825 (gdbscm_print_insn_from_port): Update.
10826 * mips-tdep.c: Include disasm.h.
10827 (gdb_print_insn_mips): Update code to get gdbarch.
10828 * record-btrace.c (btrace_insn_history): Update.
10829 * spu-tdep.c: Include disasm.h.
10830 (struct spu_dis_asm_data): Remove.
10831 (struct spu_dis_asm_info): New.
10832 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10833 SPU id.
10834 (gdb_print_insn_spu): Cast disassemble_info to
10835 spu_dis_asm_info.
10836
10837 2017-01-26 Yao Qi <yao.qi@linaro.org>
10838
10839 * disasm.c (do_ui_file_delete): Delete.
10840 (gdb_insn_length): Move code creating stream to ...
10841 * utils.c (null_stream): ... here. New function.
10842 * utils.h (null_stream): Declare.
10843
10844 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10845
10846 * python/py-inferior.c (find_thread_object): Return directly
10847 from the loop. Remove "found" variable.
10848
10849 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10850
10851 GDB 7.12.1 released.
10852
10853 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10854
10855 * python/py-function.c (fnpy_call): Reorder declarations to have
10856 the gdbpy_enter object declared first.
10857 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10858
10859 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10860
10861 PR python/21068
10862 * python/python-internal.h (PyMem_RawMalloc): Define for
10863 Python < 3.4.
10864 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10865 PyMem_RawMalloc instead of PyMem_Malloc.
10866
10867 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10868 Luis Machado <lgustavo@codesourcery.com>
10869
10870 * NEWS (New commands): Mention flash-erase.
10871 (New MI commands): Mention target-flash-erase.
10872 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10873 command.
10874 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10875 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10876 * target.c (flash_erase_command): New function.
10877 (initialize_targets): Add new flash-erase command.
10878 * target.h (flash_erase_command): New declaration.
10879
10880 2017-01-20 Joel Brobecker <brobecker@adacore.com>
10881
10882 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10883 HAVE_SYS_PROCFS_H is defined.
10884
10885 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10886
10887 * remote.c (struct cached_reg): Change data into a pointer.
10888 * (stop_reply_dtr): Free data pointers before deleting vector.
10889 (process_stop_reply): Likewise.
10890 (remote_parse_stop_reply): Allocate space for data
10891
10892 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10893
10894 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10895 MAX_REGISTER_SIZE.
10896 (amd64_pseudo_register_read_value): Likewise.
10897 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10898 (store_register_using_P): Likewise.
10899 * regcache.c (regcache_xfer_part): Likewise.
10900
10901 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10902
10903 Split real and pseudo registers.
10904 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10905 (sparc32_pseudo_regnum): New enum.
10906 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10907 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10908 (SPARC32_CP0_REGISTERS): New macro.
10909 (sparc32_pseudo_register_name): New function.
10910 (sparc32_register_name): Use sparc32_pseudo_register_name.
10911 (sparc32_pseudo_register_type): New function.
10912 (sparc32_register_type): Use sparc32_pseudo_register_type.
10913 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10914 pseudo register numbers.
10915 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10916 (SPARC64_CP0_REGISTERS): New macro.
10917 (sparc64_pseudo_register_name): New function.
10918 (sparc64_register_name): Use sparc64_pseudo_register_name.
10919 (sparc64_pseudo_register_type): New function.
10920 (sparc64_register_type): Use sparc64_pseudo_register_type.
10921 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10922 pseudo register numbers.
10923 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10924 sparc64_store_arguments): Handle pseudo register numbers.
10925
10926 2017-01-13 Yao Qi <yao.qi@linaro.org>
10927
10928 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10929 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10930 output.
10931 (getpkt_or_notif_sane_1): Likewise.
10932
10933 2017-01-13 Yao Qi <yao.qi@linaro.org>
10934
10935 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10936 of CC. Pass "-x c++-header" instead of "-x c".
10937
10938 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10939
10940 * remote.c (remote_can_async_p): Update comment.
10941
10942 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10943
10944 * linux-nat.c (linux_nat_can_async_p): Update comment.
10945
10946 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10947
10948 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10949
10950 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10951
10952 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10953
10954 2017-01-10 Tom Tromey <tom@tromey.com>
10955
10956 * python/py-type.c (typy_legacy_template_argument): Update.
10957 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10958 ~demangle_parse_info): Declare new members.
10959 (cp_demangled_name_to_comp): Return unique_ptr.
10960 (cp_demangled_name_parse_free)
10961 (make_cleanup_cp_demangled_name_parse_free)
10962 (cp_new_demangle_parse_info): Remove.
10963 * cp-support.c (do_demangled_name_parse_free_cleanup)
10964 (make_cleanup_cp_demangled_name_parse_free): Remove.
10965 (inspect_type, cp_canonicalize_string_full)
10966 (cp_canonicalize_string): Update.
10967 (mangled_name_to_comp): Change return type.
10968 (cp_class_name_from_physname, method_name_from_physname)
10969 (cp_func_name, cp_remove_params): Update.
10970 * cp-name-parser.y (demangle_parse_info): New constructor, from
10971 cp_new_demangle_parse_info.
10972 (~demangle_parse_info): New destructor, from
10973 cp_demangled_name_parse_free.
10974 (cp_merge_demangle_parse_infos): Update.
10975 (cp_demangled_name_to_comp): Change return type.
10976
10977 2017-01-10 Tom Tromey <tom@tromey.com>
10978
10979 * top.c (prevent_dont_repeat): Change return type.
10980 * python/python.c (execute_gdb_command): Use std::string.
10981 Update.
10982 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10983 * command.h (prevent_dont_repeat): Change return type.
10984 * breakpoint.c (bpstat_do_actions_1): Update.
10985
10986 2017-01-10 Tom Tromey <tom@tromey.com>
10987
10988 * value.h (scoped_value_mark::~scoped_value_mark): Call
10989 free_to_mark.
10990 (scoped_value_mark::free_to_mark): New method.
10991 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10992 scoped_value_mark.
10993
10994 2017-01-10 Tom Tromey <tom@tromey.com>
10995
10996 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10997 (valpy_reference_value, valpy_const_value, valpy_get_address)
10998 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10999 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11000 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11001 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11002 scoped_value_mark.
11003 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11004 * value.h (scoped_value_mark): New class.
11005
11006 2017-01-10 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11009 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11010 * psymtab.c (discard_psymtabs_upto): Remove.
11011 (make_cleanup_discard_psymtabs): Remove.
11012 (struct psymtab_state): Remove.
11013
11014 2017-01-10 Tom Tromey <tom@tromey.com>
11015
11016 * record-full.c (record_full_save_cleanups): Remove.
11017 (record_full_save): Use gdb::unlinker.
11018 * gcore.c (do_bfd_delete_cleanup): Remove.
11019 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11020 cleanups.
11021 * dwarf2read.c (unlink_if_set): Remove.
11022 (write_psymtabs_to_index): Use gdb::unlinker.
11023 * common/gdb_unlinker.h: New file.
11024
11025 2017-01-10 Tom Tromey <tom@tromey.com>
11026
11027 * windows-tdep.c (windows_xfer_shared_library): Update.
11028 * windows-nat.c (windows_make_so): Update.
11029 * utils.h (make_cleanup_bfd_unref): Remove.
11030 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11031 * symfile.h (symfile_bfd_open)
11032 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11033 * symfile.c (read_symbols, symbol_file_add)
11034 (separate_debug_file_exists): Update.
11035 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11036 (generic_load, reread_symbols): Update.
11037 * symfile-mem.c (symbol_file_add_from_memory): Update.
11038 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11039 (spu_symbol_file_add_from_memory): Update.
11040 * solist.h (struct target_so_ops) <bfd_open>: Return
11041 gdb_bfd_ref_ptr.
11042 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11043 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11044 gdb_bfd_ref_ptr.
11045 (solib_map_sections, reload_shared_libraries_1): Update.
11046 * solib-svr4.c (enable_break): Update.
11047 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11048 * solib-frv.c (enable_break2): Update.
11049 * solib-dsbt.c (enable_break): Update.
11050 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11051 gdb_bfd_ref_ptr.
11052 (darwin_solib_get_all_image_info_addr_at_init): Update.
11053 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11054 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11055 * record-full.c (record_full_save): Update.
11056 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11057 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11058 * minidebug.c (find_separate_debug_file_in_section): Return
11059 gdb_bfd_ref_ptr.
11060 * machoread.c (macho_add_oso_symfile): Change abfd to
11061 gdb_bfd_ref_ptr.
11062 (macho_symfile_read_all_oso): Update.
11063 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11064 (macho_symfile_read): Update.
11065 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11066 (jit_bfd_try_read_symtab): Update.
11067 * gdb_bfd.h (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 (gdb_bfd_ref_policy): New struct.
11072 (gdb_bfd_ref_ptr): New typedef.
11073 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11074 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11075 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11076 gdb_bfd_ref_ptr.
11077 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11078 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11079 (gcore_command): Update.
11080 * exec.c (exec_file_attach): Update.
11081 * elfread.c (elf_symfile_read): Update.
11082 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11083 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11084 (open_and_init_dwo_file): Update.
11085 (open_dwp_file): Return gdb_bfd_ref_ptr.
11086 (open_and_init_dwp_file): Update.
11087 * corelow.c (core_open): Update.
11088 * compile/compile-object-load.c (compile_object_load): Update.
11089 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11090 * coffread.c (coff_symfile_read): Update.
11091 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11092 gdb_bfd_ref_ptr. Rename.
11093 (dump_bfd_file, restore_command): Update.
11094 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11095 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11096 (find_separate_debug_file_by_buildid): Update.
11097
11098 2017-01-10 Tom Tromey <tom@tromey.com>
11099
11100 * common/gdb_ref_ptr.h: New file.
11101 * python/py-ref.h (struct gdbpy_ref_policy): New.
11102 (gdbpy_ref): Now a typedef.
11103
11104 2017-01-10 Tom Tromey <tom@tromey.com>
11105
11106 * utils.h (make_cleanup_htab_delete): Don't declare.
11107 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11108 Remove.
11109 * linespec.c (decode_compound_collector): Add constructor,
11110 destructor.
11111 (lookup_prefix_sym): Remove cleanup.
11112 (symtab_collector): Add constructor, destructor.
11113 (collect_symtabs_from_filename): Remove cleanup.
11114 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11115 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11116 Use htab_up.
11117 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11118 * dwarf2read.c (dw2_expand_symtabs_matching)
11119 (dw2_map_symbol_filenames, dwarf_decode_macros)
11120 (write_psymtabs_to_index): Use htab_up.
11121 * dwarf2loc.c (func_verify_no_selftailcall)
11122 (call_site_find_chain_1, func_verify_no_selftailcall)
11123 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11124 std::vector, gdb::unique_xmalloc_ptr.
11125 (call_sitep): Remove typedef.
11126 (dwarf2_locexpr_baton_eval): Remove unused variable.
11127
11128 2017-01-10 Tom Tromey <tom@tromey.com>
11129
11130 * python/python-internal.h (make_cleanup_py_decref)
11131 (make_cleanup_py_xdecref): Don't declare.
11132 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11133 (py_xdecref, make_cleanup_py_xdecref): Remove.
11134
11135 2017-01-10 Tom Tromey <tom@tromey.com>
11136
11137 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11138 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11139
11140 2017-01-10 Tom Tromey <tom@tromey.com>
11141
11142 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11143
11144 2017-01-10 Tom Tromey <tom@tromey.com>
11145
11146 * python/py-utils.c (unicode_to_encoded_string)
11147 (python_string_to_target_string)
11148 (python_string_to_target_python_string)
11149 (python_string_to_host_string, gdbpy_obj_to_string)
11150 (get_addr_from_python): Use gdbpy_ref.
11151
11152 2017-01-10 Tom Tromey <tom@tromey.com>
11153
11154 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11155 gdbpy_ref.
11156
11157 2017-01-10 Tom Tromey <tom@tromey.com>
11158
11159 * python/python.c (eval_python_command, gdbpy_decode_line)
11160 (gdbpy_run_events, gdbpy_start_type_printers)
11161 (gdbpy_apply_type_printers): Use gdbpy_ref.
11162
11163 2017-01-10 Tom Tromey <tom@tromey.com>
11164
11165 * python/py-param.c (get_doc_string, compute_enum_values): Use
11166 gdbpy_ref.
11167
11168 2017-01-10 Tom Tromey <tom@tromey.com>
11169
11170 * python/py-inferior.c (find_thread_object, build_inferior_list):
11171 Use gdbpy_ref.
11172
11173 2017-01-10 Tom Tromey <tom@tromey.com>
11174
11175 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11176
11177 2017-01-10 Tom Tromey <tom@tromey.com>
11178
11179 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11180 gdbpy_ref.
11181
11182 2017-01-10 Tom Tromey <tom@tromey.com>
11183
11184 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11185 extra incref.
11186 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11187 Use gdbpy_ref.
11188
11189 2017-01-10 Tom Tromey <tom@tromey.com>
11190
11191 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11192 gdbpy_ref.
11193
11194 2017-01-10 Tom Tromey <tom@tromey.com>
11195
11196 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11197 decref results of PyArg_ParseTupleAndKeywords.
11198
11199 2017-01-10 Tom Tromey <tom@tromey.com>
11200
11201 * python/python.c (python_run_simple_file): Use
11202 unique_xmalloc_ptr, gdbpy_ref.
11203
11204 2017-01-10 Tom Tromey <tom@tromey.com>
11205
11206 * python/py-prettyprint.c (print_stack_unless_memory_error)
11207 (print_string_repr, print_children): Use gdbpy_ref.
11208 (dummy_python_frame): New class.
11209 (dummy_python_frame::dummy_python_frame): Rename from
11210 push_dummy_python_frame.
11211 (py_restore_tstate): Remove.
11212
11213 2017-01-10 Tom Tromey <tom@tromey.com>
11214
11215 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11216
11217 2017-01-10 Tom Tromey <tom@tromey.com>
11218
11219 * python/python.c (ensure_python_env, restore_python_env):
11220 Remove.
11221 * python/python-internal.h (ensure_python_env): Don't declare.
11222 * varobj.h (varobj_ensure_python_env): Don't declare.
11223 * varobj.c (varobj_ensure_python_env): Remove.
11224
11225 2017-01-10 Tom Tromey <tom@tromey.com>
11226
11227 * varobj.c (varobj_value_get_print_value): Use
11228 gdbpy_enter_varobj.
11229
11230 2017-01-10 Tom Tromey <tom@tromey.com>
11231
11232 * python/py-prettyprint.c (print_string_repr, print_children):
11233 Update.
11234 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11235 of "encoding".
11236 * varobj.c (varobj_value_get_print_value): Update.
11237 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11238
11239 2017-01-10 Tom Tromey <tom@tromey.com>
11240
11241 * varobj.c (varobj_get_display_hint)
11242 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11243 (varobj_set_visualizer, free_variable): Use
11244 gdbpy_enter_varobj.
11245
11246 2017-01-10 Tom Tromey <tom@tromey.com>
11247
11248 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11249 (do_finish_initialization): New function. Use gdbpy_ref.
11250 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11251 do_finish_initialization.
11252
11253 2017-01-10 Tom Tromey <tom@tromey.com>
11254
11255 * python/py-param.c (get_set_value, get_show_value): Use
11256 gdbpy_enter, gdbpy_ref.
11257
11258 2017-01-10 Tom Tromey <tom@tromey.com>
11259
11260 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11261
11262 2017-01-10 Tom Tromey <tom@tromey.com>
11263
11264 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11265
11266 2017-01-10 Tom Tromey <tom@tromey.com>
11267
11268 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11269 Use gdbpy_enter_varobj.
11270
11271 2017-01-10 Tom Tromey <tom@tromey.com>
11272
11273 * varobj.c (gdbpy_enter_varobj): New constructor.
11274 * python/python-internal.h (gdbpy_enter_varobj): New class.
11275 * python/py-varobj.c (py_varobj_get_iterator): Use
11276 gdbpy_enter_varobj.
11277
11278 2017-01-10 Tom Tromey <tom@tromey.com>
11279
11280 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11281 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11282 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11283 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11284 unique_xmalloc_ptr.
11285 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11286
11287 2017-01-10 Tom Tromey <tom@tromey.com>
11288
11289 * python/py-xmethods.c (invoke_match_method): Use
11290 gdbpy_ref.
11291
11292 2017-01-10 Tom Tromey <tom@tromey.com>
11293
11294 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11295 gdbpy_enter, gdbpy_ref.
11296
11297 2017-01-10 Tom Tromey <tom@tromey.com>
11298
11299 * python/python.c (python_interactive_command): Use gdbpy_enter.
11300
11301 2017-01-10 Tom Tromey <tom@tromey.com>
11302
11303 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11304 gdbpy_ref.
11305
11306 2017-01-10 Tom Tromey <tom@tromey.com>
11307
11308 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11309 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11310
11311 2017-01-10 Tom Tromey <tom@tromey.com>
11312
11313 * utils.h (htab_deleter): New struct.
11314 (htab_up): New typedef.
11315 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11316 gdbpy_enter, gdbpy_ref, htab_up.
11317
11318 2017-01-10 Tom Tromey <tom@tromey.com>
11319
11320 * python/py-unwind.c (pending_frame_invalidate): Remove.
11321 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11322
11323 2017-01-10 Tom Tromey <tom@tromey.com>
11324
11325 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11326 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11327
11328 2017-01-10 Tom Tromey <tom@tromey.com>
11329
11330 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11331
11332 2017-01-10 Tom Tromey <tom@tromey.com>
11333
11334 * python/python.c (gdbpy_eval_from_control_command)
11335 (gdbpy_source_script, gdbpy_run_events)
11336 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11337 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11338 gdbpy_enter.
11339
11340 2017-01-10 Tom Tromey <tom@tromey.com>
11341
11342 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11343
11344 2017-01-10 Tom Tromey <tom@tromey.com>
11345
11346 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11347
11348 2017-01-10 Tom Tromey <tom@tromey.com>
11349
11350 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11351 (python_on_inferior_call_pre, python_on_inferior_call_post)
11352 (python_on_memory_change, python_on_register_change)
11353 (python_inferior_exit, python_new_objfile, add_thread_object)
11354 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11355
11356 2017-01-10 Tom Tromey <tom@tromey.com>
11357
11358 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11359 (bpfinishpy_handle_exit): Use gdbpy_enter.
11360
11361 2017-01-10 Tom Tromey <tom@tromey.com>
11362
11363 * python/py-cmd.c (cmdpy_destroyer)
11364 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11365 gdbpy_enter.
11366
11367 2017-01-10 Tom Tromey <tom@tromey.com>
11368
11369 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11370 gdbpy_enter.
11371 (gdbpy_breakpoint_has_cond): Likewise.
11372
11373 2017-01-10 Tom Tromey <tom@tromey.com>
11374
11375 * python/python.c (gdbpy_enter): New constructor.
11376 (~gdbpy_enter): New destructor.
11377 (restore_python_env, ensure_python_env): Rewrite.
11378 * python/python-internal.h (gdbpy_enter): New class.
11379
11380 2017-01-10 Tom Tromey <tom@tromey.com>
11381
11382 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11383
11384 2017-01-10 Tom Tromey <tom@tromey.com>
11385
11386 * python/py-value.c (value_has_field, get_field_flag)
11387 (get_field_type, valpy_getitem, convert_value_from_python): Use
11388 gdbpy_ref.
11389
11390 2017-01-10 Tom Tromey <tom@tromey.com>
11391
11392 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11393 gdbpy_ref.
11394
11395 2017-01-10 Tom Tromey <tom@tromey.com>
11396
11397 * python/py-prettyprint.c (search_pp_list)
11398 (find_pretty_printer_from_objfiles)
11399 (find_pretty_printer_from_progspace)
11400 (find_pretty_printer_from_gdb, find_pretty_printer)
11401 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11402 gdbpy_ref.
11403
11404 2017-01-10 Tom Tromey <tom@tromey.com>
11405
11406 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11407
11408 2017-01-10 Tom Tromey <tom@tromey.com>
11409
11410 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11411 (ltpy_get_all_source_lines): Use gdbpy_ref.
11412
11413 2017-01-10 Tom Tromey <tom@tromey.com>
11414
11415 * python/py-framefilter.c (extract_sym, extract_value)
11416 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11417 gdbpy_ref.
11418
11419 2017-01-10 Tom Tromey <tom@tromey.com>
11420
11421 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11422
11423 2017-01-10 Tom Tromey <tom@tromey.com>
11424
11425 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11426
11427 2017-01-10 Tom Tromey <tom@tromey.com>
11428
11429 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11430 gdbpy_ref.
11431
11432 2017-01-10 Tom Tromey <tom@tromey.com>
11433
11434 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11435
11436 2017-01-10 Tom Tromey <tom@tromey.com>
11437
11438 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11439 (typy_range): Use gdbpy_ref.
11440
11441 2017-01-10 Tom Tromey <tom@tromey.com>
11442
11443 * python/py-threadevent.c (create_thread_event_object): Use
11444 gdbpy_ref.
11445 * python/py-stopevent.c (create_stop_event_object): Simplify.
11446 (emit_stop_event): Use gdbpy_ref.
11447 * python/py-signalevent.c (create_signal_event_object): Use
11448 gdbpy_ref.
11449 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11450 (emit_new_objfile_event, create_clear_objfiles_event_object)
11451 (emit_clear_objfiles_event): Use gdbpy_ref.
11452 * python/py-infevents.c (create_inferior_call_event_object)
11453 (create_register_changed_event_object)
11454 (create_memory_changed_event_object, emit_inferior_call_event)
11455 (emit_memory_changed_event, emit_register_changed_event): Use
11456 gdbpy_ref.
11457 * python/py-exitedevent.c (create_exited_event_object)
11458 (emit_exited_event): Use gdbpy_ref.
11459 * python/py-event.h (evpy_emit_event): Remove
11460 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11461 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11462 * python/py-continueevent.c (emit_continue_event): Use
11463 gdbpy_ref.
11464 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11465 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11466 gdbpy_ref.
11467 * python/py-bpevent.c (create_breakpoint_event_object): Use
11468 gdbpy_ref.
11469
11470 2017-01-10 Tom Tromey <tom@tromey.com>
11471
11472 * python/py-ref.h: New file.
11473
11474 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11475
11476 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11477 void.
11478 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11479 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11480 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11481 * ui-out.c (ui_out::redirect): Likewise.
11482 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11483 * cli/cli-logging.c (set_logging_redirect): Update call site of
11484 ui_out::redirect.
11485 (handle_redirections): Likewise.
11486 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11487 * top.c (execute_command_to_string): Likewise.
11488 * utils.c (do_ui_out_redirect_pop): Likewise.
11489
11490 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11491
11492 * stack.c (_initialize_stack): Update "frame" command help message.
11493
11494 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11495
11496 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11497
11498 2017-01-06 Yao Qi <yao.qi@linaro.org>
11499
11500 * x86-linux-nat.h: Include gdb_proc_service.h.
11501
11502 2017-01-06 Yao Qi <yao.qi@linaro.org>
11503
11504 * ser-base.h: Include serial.h.
11505
11506 2017-01-06 Yao Qi <yao.qi@linaro.org>
11507
11508 * ppc-linux-tdep.h: Include ppc-tdep.h.
11509
11510 2017-01-06 Yao Qi <yao.qi@linaro.org>
11511
11512 * nat/amd64-linux-siginfo.h: Include signal.h.
11513
11514 2017-01-06 Yao Qi <yao.qi@linaro.org>
11515
11516 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11517
11518 2017-01-06 Yao Qi <yao.qi@linaro.org>
11519
11520 * mi/mi-parse.h: Include mi-cmds.h.
11521
11522 2017-01-06 Yao Qi <yao.qi@linaro.org>
11523
11524 * inf-loop.c: Don't include "target.h".
11525 * inf-loop.h: Include it here.
11526
11527 2017-01-06 Yao Qi <yao.qi@linaro.org>
11528
11529 * dfp.h: Include "dboulest.h" and "expression.h".
11530
11531 2017-01-06 Yao Qi <yao.qi@linaro.org>
11532
11533 * ax-gdb.h: Include "ax.h".
11534
11535 2017-01-06 Yao Qi <yao.qi@linaro.org>
11536
11537 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11538 with nat/gdb_ptrace.h.
11539
11540 2017-01-05 Yao Qi <yao.qi@linaro.org>
11541
11542 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11543 new line.
11544 (mips64_fbsd_sigframe_init): Likewise.
11545
11546 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11547
11548 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11549 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11550
11551 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11552
11553 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11554 * NEWS: Mention new FreeBSD/mips native configuration.
11555 * config/mips/fbsd.mh: New file.
11556 * configure.host: Add mips*-*-freebsd*.
11557 * mips-fbsd-nat.c: New file.
11558
11559 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11560
11561 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11562 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11563 * NEWS: Mention new FreeBSD/mips target.
11564 * configure.tgt: Add mips*-*-freebsd*.
11565 * mips-fbsd-tdep.c: New file.
11566 * mips-fbsd-tdep.h: New file.
11567
11568 2017-01-04 Yao Qi <yao.qi@linaro.org>
11569
11570 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11571 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11572
11573 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11574
11575 Update copyright year range in all GDB files.
11576
11577 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11578
11579 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11580
11581 For older changes see ChangeLog-2016.
11582 \f
11583 Local Variables:
11584 mode: change-log
11585 left-margin: 8
11586 fill-column: 74
11587 version-control: never
11588 coding: utf-8
11589 End:
This page took 0.268877 seconds and 5 git commands to generate.