Constify some commands in record-btrace.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cdb34d4a
TT
12017-09-27 Tom Tromey <tom@tromey.com>
2
3 * record-btrace.c (cmd_record_btrace_bts_start)
4 (cmd_record_btrace_pt_start): Constify.
5
e99c83e7
TT
62017-09-27 Tom Tromey <tom@tromey.com>
7
8 * symmisc.c (maintenance_print_symbols)
9 (maintenance_print_msymbols, maintenance_print_objfiles)
10 (maintenance_info_symtabs, maintenance_check_symtabs)
11 (maintenance_expand_symtabs, maintenance_info_line_tables):
12 Constify.
13
32faf971
TT
142017-09-27 Tom Tromey <tom@tromey.com>
15
16 * top.c (new_ui_command): Constify.
17
2cf311eb
TT
182017-09-27 Tom Tromey <tom@tromey.com>
19
20 * symfile.c (add_symbol_file_command)
21 (remove_symbol_file_command, list_overlays_command)
22 (map_overlay_command, unmap_overlay_command)
23 (overlay_auto_command, overlay_manual_command)
24 (overlay_off_command, overlay_load_command): Constify.
25
e6738699
TT
262017-09-27 Tom Tromey <tom@tromey.com>
27
28 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
29 (info_spu_mailbox_command, info_spu_dma_command)
30 (info_spu_proxydma_command): Constify.
31
aa360cd5
TT
322017-09-27 Tom Tromey <tom@tromey.com>
33
34 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
35
898241a5
TT
362017-09-27 Tom Tromey <tom@tromey.com>
37
38 * cli/cli-script.c (user_defined_command): Constify.
39
2d0ac106
TT
402017-09-27 Tom Tromey <tom@tromey.com>
41
42 * cli/cli-dump.c (dump_memory_command, dump_value_command)
43 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
44 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
45 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
46 (dump_binary_value, append_binary_memory, append_binary_value):
47 Constify.
48 (struct dump_context) <func>: Constify.
49 (add_dump_command): Update.
50
dede02ce
TT
512017-09-27 Tom Tromey <tom@tromey.com>
52
53 * cli/cli-cmds.c (show_version, show_configuration)
54 (source_command, show_user): Constify.
55
d3cb6b99
TT
562017-09-27 Tom Tromey <tom@tromey.com>
57
58 * target.c (maintenance_print_target_stack): Constify.
59
1970a12f
TT
602017-09-27 Tom Tromey <tom@tromey.com>
61
62 * interps.c (interpreter_exec_cmd): Constify.
63
41243651
TT
642017-09-27 Tom Tromey <tom@tromey.com>
65
66 * record-full.c (cmd_record_full_restore): Constify.
67
4465d9db
TT
682017-09-27 Tom Tromey <tom@tromey.com>
69
70 * memattr.c (enable_mem_command, disable_mem_command)
71 (delete_mem_command): Constify.
72
ad25e423
TT
732017-09-27 Tom Tromey <tom@tromey.com>
74
75 * value.c (show_convenience): Constify.
76
d64097b1
TT
772017-09-27 Tom Tromey <tom@tromey.com>
78
79 * gdbcore.h (core_file_command): Update.
80 * corefile.c (core_file_command): Constify.
81
4d4589ef
TT
822017-09-27 Tom Tromey <tom@tromey.com>
83
84 * user-regs.c (maintenance_print_user_registers): Constify.
85
32a7bf17
TT
862017-09-27 Tom Tromey <tom@tromey.com>
87
88 * cp-namespace.c (maintenance_cplus_namespace): Constify.
89
4a475551
TT
902017-09-27 Tom Tromey <tom@tromey.com>
91
92 * cp-support.c (first_component_command): Constify.
93
990b9f9f
TT
942017-09-27 Tom Tromey <tom@tromey.com>
95
96 * psymtab.c (maintenance_print_psymbols)
97 (maintenance_info_psymtabs, maintenance_check_psymtabs):
98 Constify.
99
c281872e
TT
1002017-09-27 Tom Tromey <tom@tromey.com>
101
102 * windows-tdep.c (display_tib): Constify.
103
5b64bf74
TT
1042017-09-27 Tom Tromey <tom@tromey.com>
105
106 * linux-fork.c (delete_checkpoint_command)
107 (detach_checkpoint_command): Constify.
108
4ada038f
TT
1092017-09-27 Tom Tromey <tom@tromey.com>
110
111 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
112
57f5a81b
TT
1132017-09-27 Tom Tromey <tom@tromey.com>
114
115 * arc-tdep.c (dump_arc_instruction_command): Constify.
116
b0a8e6c4
TT
1172017-09-27 Tom Tromey <tom@tromey.com>
118
119 * valprint.c (set_radix, show_radix): Constify.
120
8d97dc1c
TT
1212017-09-27 Tom Tromey <tom@tromey.com>
122
123 * dtrace-probe.c (info_probes_dtrace_command): Constify.
124
eb7c454d
TT
1252017-09-27 Tom Tromey <tom@tromey.com>
126
127 * command.h (not_just_help_class_command): Update.
128 * cli/cli-decode.h (not_just_help_class_command): Update.
129 * cli/cli-decode.c (not_just_help_class_command): Constify.
130
e4e33335
TT
1312017-09-27 Tom Tromey <tom@tromey.com>
132
133 * gdb_bfd.c (maintenance_info_bfds): Constify.
134
0450cc4c
TT
1352017-09-27 Tom Tromey <tom@tromey.com>
136
137 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
138 overloads.
139 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
140 (do_const_cfunc): New function.
141 (cmd_cfunc_eq): New overload.
142 (cli_user_command_p): Check do_const_cfunc.
143 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
144 const_cfunc.
145 * command.h (add_cmd): Add const overload and no-function
146 overload.
147 (set_cmd_cfunc): Add const overload.
148 (cmd_const_cfunc_ftype): Declare.
149 (cmd_cfunc_eq): Add const overload.
150 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
151 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
152 overload.
153
a9bbfbd8
TT
1542017-09-27 Tom Tromey <tom@tromey.com>
155
156 * macroexp.c (get_next_token_for_substitution): New function.
157 (substitute_args): Call it. Check for __VA_OPT__.
158
5230b05a
WT
1592017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
160 Pedro Alves <palves@redhat.com>
161
162 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
163 producer_is_icc_lt_14.
164 (producer_is_icc_lt_14): New function.
165 (check_producer): Add code for checking version of ICC.
166 (producer_is_icc): Move to producer.c.
167 (read_structure_type): Restrict ICC workaround to ICC<14.
168 * producer.c: Include selftest.h.
169 (producer_is_icc, producer_parsing_tests, _initialize_producer):
170 New functions.
171 * producer.h (producer_is_icc): New declaration.
172
b32b108a
WT
1732017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
174
175 * Makefile.in (SFILES): Add producer.c.
176 (COMMON_OBS): Add producer.o
177 * amd64-tdep.c (producer.h): Add new include.
178 * dwarf2read.c (producer.h): Add new include.
179 * producer.c: New file.
180 * producer.h: New file.
181 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
182 producer.c.
183 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
184 producer.h.
185
5007d765
MK
1862017-09-26 Matthias Klose <doko@ubuntu.com>
187
188 * configure.ac: Search ncursesw before ncurses.
189 Check ncursesw/ncurses.h before ncurses/ncurses.h.
190 * gdb_curses.h: Include <ncursesw/ncurses.h>
191 * config.in, configure: Regenerate.
192
281c4447
RO
1932017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194
195 PR gdb/22185
196 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
197 obsolete.
198 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
199 Remove i386sol2 support.
200 * configure.nat <i386sol2>: Remove.
201 <sol2-64>: Fold into ...
202 <sol2>: ... this.
203 Move common settings to default section.
204 Add sol-thread.o.
205 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
206 x86_64-*-solaris2.1[0-9]*>: Rename to ...
207 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
208 <i[34567]86-*-solaris*>: Remove.
209 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
210
211 * configure.ac: Remove wctype in libw check.
212 (_MSE_INT_H): Don't define on Solaris 7-9.
213 <solaris*>: Remove libthread_db.so.1 check.
214 * configure: Regenerate.
215 * config.in: Regenerate.
216
217 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
218 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
219 (gdb_ps_size_t): Remove.
220 Use base types in users.
221 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
222
223 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
224
39b06c20
RO
2252017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
226
227 PR build/22206
228 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
229 (adi_is_addr_mapped): Likewise.
230 (PSR_ICC): Don't redefine.
231 (PSR_IMPL): Likewise.
232
6c3e20f1
TT
2332017-09-25 Tom Tromey <tom@tromey.com>
234
235 * regcache.c (regcache::dump): Use string_printf.
236
b292235f
TT
2372017-09-25 Tom Tromey <tom@tromey.com>
238
239 * regcache.c (class regcache_invalidator): New.
240 (struct register_to_invalidate): Remove.
241 (make_cleanup_regcache_invalidate): Remove.
242 (regcache::raw_write): Use regcache_invalidator.
243
9ac86b52
TT
2442017-09-25 Tom Tromey <tom@tromey.com>
245
246 * spu-tdep.c (spu2ppu_sniffer): Update.
247 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
248 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
249 Remove.
250 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
251 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
252 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
253 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
254 (frame_pop): Update.
255
c0e383c6
TT
2562017-09-25 Tom Tromey <tom@tromey.com>
257
258 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
259 * regcache.h (regcache_xfree): Don't declare.
260 * regcache.c (regcache_xfree): Remove.
261 (do_regcache_xfree): Use delete.
262 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
263 * linux-fork.c (free_fork): Use delete.
264 (fork_save_infrun_state): Likewise.
265 * jit.c (jit_dealloc_cache): Use delete.
266 * infrun.c (discard_infcall_suspend_state): Use delete.
267
791199cc
TT
2682017-09-25 Tom Tromey <tom@tromey.com>
269
270 * regcache.h (regcache_xmalloc): Don't declare.
271 (regcache_raw_set_cached_value): Update comment.
272 * regcache.c (regcache_xmalloc): Remove.
273 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
274 * jit.c (jit_frame_sniffer): Use new.
275 * frame.c (frame_save_as_regcache): Use new.
276
289e23aa
AA
2772017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
278
279 * NEWS: Advertise support for guarded-storage registers on IBM z.
280
1b63490c
AA
2812017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
282
283 * s390-linux-nat.c (have_regset_gs): New static variable.
284 (s390_linux_fetch_inferior_registers): Handle guarded-storage
285 control block and guarded-storage broadcast control regsets.
286 (s390_read_description): Detect whether the target has
287 guarded-storage support, return appropriate tdesc.
288 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
289 (features/s390x-gs-linux64.c): Likewise.
290 (struct gdbarch_tdep) <have_gs>: New field.
291 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
292 (s390_gsbc_regset): New variables.
293 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
294 and s390_gsbc_regset, if applicable.
295 (s390_core_read_description): Check whether core file was from a
296 target with guarded-storage support; include appropriate regsets.
297 (s390_gdbarch_init): Add registers for guarded-storage support.
298 (_initialize_s390_tdep): Initialize new target descriptions that
299 include registers for guarded-storage support.
300 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
301 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
302 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
303 (S390_NUM_REGS): Adjust macro definition.
304 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
305 (tdesc_s390x_gs_linux64): New declarations.
306
96235dc1
AA
3072017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
308
309 * features/s390-gs-linux64.xml: New file.
310 * features/s390-gs.xml: New file.
311 * features/s390-gsbc.xml: New file.
312 * features/s390x-gs-linux64.xml: New file.
313 * features/Makefile (WHICH): Add s390-gs-linux64 and
314 s390x-gs-linux64.
315 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
316 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
317 * features/s390-gs-linux64.c: New generated file.
318 * features/s390x-gs-linux64.c: New file.
319 * regformats/s390-gs-linux64.dat: New file.
320 * regformats/s390x-gs-linux64.dat: New file.
321
b4a7c699
TT
3222017-09-23 Tom Tromey <tom@tromey.com>
323
324 * defs.h (make_cleanup_override_quit_handler): Don't declare.
325
c2f97536
TT
3262017-09-22 Tom Tromey <tom@tromey.com>
327
328 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
329 type to scoped_restore_tmpl.
330 <scoped_input_handler>: Initialize m_quit_handler directly.
331
43573013
SDJ
3322017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
333
334 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
335 (cd_command): Likewise. Free "current_directory" before
336 assigning to it.
337 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
338 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
339 * top.c (gdb_dirbuf): Remove global declaration.
340 * top.h (gdb_dirbuf): Likewise.
341
6ec2e0f5
SDJ
3422017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
343
344 * gnulib/aclocal.m4: Regenerate.
345 * gnulib/config.in: Regenerate.
346 * gnulib/configure: Regenerate.
347 * gnulib/import/Makefile.am: Regenerate.
348 * gnulib/import/Makefile.in: Regenerate.
349 * gnulib/import/assure.h: New file.
350 * gnulib/import/at-func.c: Likewise
351 * gnulib/import/chdir-long.c: New file.
352 * gnulib/import/chdir-long.h: New file.
353 * gnulib/import/cloexec.c: New file.
354 * gnulib/import/cloexec.h: New file.
355 * gnulib/import/close.c: New file.
356 * gnulib/import/closedir.c: New file.
357 * gnulib/import/dirent-private.h: New file.
358 * gnulib/import/dup-safer.c: New file.
359 * gnulib/import/dup.c: New file.
360 * gnulib/import/dup2.c: New file.
361 * gnulib/import/error.c: New file.
362 * gnulib/import/error.h: New file.
363 * gnulib/import/exitfail.c: New file.
364 * gnulib/import/exitfail.h: New file.
365 * gnulib/import/fchdir.c: New file.
366 * gnulib/import/fcntl.c: New file.
367 * gnulib/import/fcntl.in.h: New file.
368 * gnulib/import/fd-hook.c: New file.
369 * gnulib/import/fd-hook.h: New file.
370 * gnulib/import/fd-safer.c: New file.
371 * gnulib/import/fdopendir.c: New file.
372 * gnulib/import/filename.h: New file.
373 * gnulib/import/filenamecat-lgpl.c: New file.
374 * gnulib/import/filenamecat.h: New file.
375 * gnulib/import/fstat.c: New file.
376 * gnulib/import/fstatat.c: New file.
377 * gnulib/import/getcwd-lgpl.c: New file.
378 * gnulib/import/getcwd.c: New file.
379 * gnulib/import/getdtablesize.c: New file.
380 * gnulib/import/getlogin_r.c: New file.
381 * gnulib/import/getprogname.c: New file.
382 * gnulib/import/getprogname.h: New file.
383 * gnulib/import/gettext.h: New file.
384 * gnulib/import/glob-libc.h: New file.
385 * gnulib/import/glob.c: New file.
386 * gnulib/import/glob.in.h: New file.
387 * gnulib/import/intprops.h: New file.
388 * gnulib/import/m4/chdir-long.m4: New file.
389 * gnulib/import/m4/close.m4: New file.
390 * gnulib/import/m4/closedir.m4: New file.
391 * gnulib/import/m4/d-ino.m4: New file.
392 * gnulib/import/m4/d-type.m4: New file.
393 * gnulib/import/m4/dup.m4: New file.
394 * gnulib/import/m4/dup2.m4: New file.
395 * gnulib/import/m4/error.m4: New file.
396 * gnulib/import/m4/fchdir.m4: New file.
397 * gnulib/import/m4/fcntl.m4: New file.
398 * gnulib/import/m4/fcntl_h.m4: New file.
399 * gnulib/import/m4/fdopendir.m4: New file.
400 * gnulib/import/m4/filenamecat.m4: New file.
401 * gnulib/import/m4/fstat.m4: New file.
402 * gnulib/import/m4/fstatat.m4: New file.
403 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
404 * gnulib/import/m4/getcwd-path-max.m4: New file.
405 * gnulib/import/m4/getcwd.m4: New file.
406 * gnulib/import/m4/getdtablesize.m4: New file.
407 * gnulib/import/m4/getlogin_r.m4: New file.
408 * gnulib/import/m4/getprogname.m4: New file.
409 * gnulib/import/m4/glob.m4: New file.
410 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
411 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
412 * gnulib/import/m4/mempcpy.m4: New file.
413 * gnulib/import/m4/memrchr.m4: New file.
414 * gnulib/import/m4/mode_t.m4: New file.
415 * gnulib/import/m4/msvc-inval.m4: New file.
416 * gnulib/import/m4/msvc-nothrow.m4: New file.
417 * gnulib/import/m4/open.m4: New file.
418 * gnulib/import/m4/openat.m4: New file.
419 * gnulib/import/m4/opendir.m4: New file.
420 * gnulib/import/m4/readdir.m4: New file.
421 * gnulib/import/m4/realloc.m4: New file.
422 * gnulib/import/m4/rewinddir.m4: New file.
423 * gnulib/import/m4/save-cwd.m4: New file.
424 * gnulib/import/m4/strdup.m4: New file.
425 * gnulib/import/m4/strerror.m4: New file.
426 * gnulib/import/m4/unistd-safer.m4: New file.
427 * gnulib/import/mempcpy.c: New file.
428 * gnulib/import/memrchr.c: New file.
429 * gnulib/import/msvc-inval.c: New file.
430 * gnulib/import/msvc-inval.h: New file.
431 * gnulib/import/msvc-nothrow.c: New file.
432 * gnulib/import/msvc-nothrow.h: New file.
433 * gnulib/import/open.c: New file.
434 * gnulib/import/openat-die.c: New file.
435 * gnulib/import/openat-priv.h: New file.
436 * gnulib/import/openat-proc.c: New file.
437 * gnulib/import/openat.c: New file.
438 * gnulib/import/openat.h: New file.
439 * gnulib/import/opendir.c: New file.
440 * gnulib/import/pipe-safer.c: New file.
441 * gnulib/import/readdir.c: New file.
442 * gnulib/import/realloc.c: New file.
443 * gnulib/import/rewinddir.c: New file.
444 * gnulib/import/save-cwd.c: New file.
445 * gnulib/import/save-cwd.h: New file.
446 * gnulib/import/strdup.c: New file.
447 * gnulib/import/strerror-override.c: New file.
448 * gnulib/import/strerror-override.h: New file.
449 * gnulib/import/strerror.c: New file.
450 * gnulib/import/unistd--.h: New file.
451 * gnulib/import/unistd-safer.h: New file.
452 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
453 "getcwd" and "glob".
454 * ser-tcp.c: Undefine "close" before redefining it.
455
432ae719
SM
4562017-09-21 Simon Marchi <simon.marchi@ericsson.com>
457
458 * guile/scm-value.c (gdbscm_value_address): Initialize address,
459 get rid of res_val.
460
4fa7574e
RO
4612017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
462
463 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
464 <sol2,sparc>: Likewise.
465 <sol2-64,i386>: Likewise.
466
467 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
468 -Wdeprecated-declarations on *-*-solaris*.
469 * configure: Regenerate.
470
471 * procfs.c: Include "nat/inferior.h".
472 (procfs_info_proc): Fix typo.
473
f6327dcb
KB
4742017-09-21 Kevin Buettner <kevinb@redhat.com>
475
476 * remote.c (vector): Include.
477 (struct private_thread_info): Add field, thread_handle.
478 (free_private_thread_info): Deallocate storage associated with
479 thread handle.
480 (get_private_info_thread): Initialize `thread_handle' field.
481 (struct thread_item): Add field, thread_handle.
482 (clear_threads_listing_context): Deallocate storage associated
483 with thread handle.
484 (start_thread): Add support for "handle" attribute.
485 (thread_attributes): Add "handle".
486 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
487 field.
488 (remote_update_thread_list): Update thread_handle.
489 (remote_thread_handle_to_thread_info): New function.
490 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
491
fbbe5337
KB
4922017-09-21 Kevin Buettner <kevinb@redhat.com>
493
494 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
495 function.
496 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
497 * python/python-internal.h (thread_object_type): Declare.
498
e04ee09e
KB
4992017-09-21 Kevin Buettner <kevinb@redhat.com>
500
501 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
502 (target_thread_handle_to_thread_info): Declare.
503 * target.c (target_thread_handle_to_thread_info): New function.
504 * target-delegates.c: Regenerate.
505 * gdbthread.h (find_thread_by_handle): Declare.
506 * thread.c (find_thread_by_handle): New function.
507 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
508 function.
509 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
510
1e5b66ed
SM
5112017-09-21 Simon Marchi <simon.marchi@ericsson.com>
512
513 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
514
ebe48ba0
SM
5152017-09-21 Simon Marchi <simon.marchi@ericsson.com>
516
517 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
518
0a0bf5dc
YQ
5192017-09-21 Yao Qi <yao.qi@linaro.org>
520
521 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
522 to gdb_target_obs.
523
d1b0a7bf
TT
5242017-09-20 Tom Tromey <tom@tromey.com>
525
526 * breakpoint.c (struct counted_command_line): Remove.
527 (breakpoint_commands): Update.
528 (alloc_counted_command_line, incref_counted_command_line)
529 (decref_counted_command_line, do_cleanup_counted_command_line)
530 (make_cleanup_decref_counted_command_line): Remove.
531 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
532 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
533 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
534 (save_breakpoints): Update.
535 * breakpoint.h (counted_command_line): Now a typedef to
536 shared_ptr.
537 (struct breakpoint) <commands>: Now a counted_command_line.
538 (struct bpstats) <command>: Likewise.
539
48649e1b
TT
5402017-09-20 Tom Tromey <tom@tromey.com>
541
542 * breakpoint.c (struct commands_info, do_map_commands_command):
543 Remove.
544 (commands_command_1): Update.
545 (iterate_over_related_breakpoints): Take a function_view.
546 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
547 (delete_command): Update.
548 (map_breakpoint_numbers): Take a function_view.
549 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
550 (disable_command): Update.
551 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
552 (enable_command): Update.
553 (struct disp_data, do_enable_breakpoint_disp)
554 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
555 (do_map_enable_delete_breakpoint): Remove.
556 (enable_once_command, enable_count_command, enable_delete_command)
557 (delete_trace_variable_command): Update.
558
04afa70c
TT
5592017-09-20 Tom Tromey <tom@tromey.com>
560
561 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
562 (bpstat_clear): Use delete.
563 (bpstats): New constructors.
564 (bpstat_copy, bpstat_stop_status): Use new.
565 (dprintf_after_condition_true): Update.
566 * breakpoint.h (bpstats::bpstats): Add constructors.
567 (bpstats::~bpstats): Add destructor.
568
c83833f4
PA
5692017-09-20 Pedro Alves <palves@redhat.com>
570
571 * eval.c (make_params): Delete, refactored as ...
572 (class fake_method): ... this new type's ctor.
573 (fake_method::~fake_method): New.
574 (evaluate_subexp_standard): Use 'fake_method'.
575
223ffa71
TT
5762017-09-20 Tom Tromey <tom@tromey.com>
577
578 * windows-nat.c (get_windows_debug_event, windows_wait)
579 (do_initial_windows_stuff, windows_attach): Update.
580 * utils.c (vwarning, internal_vproblem): Update.
581 (ui_unregister_input_event_handler_cleanup)
582 (prepare_to_handle_input): Remove.
583 (class scoped_input_handler): New.
584 (defaulted_query, prompt_for_continue): Update.
585 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
586 Update.
587 * top.c (undo_terminal_modifications_before_exit): Update.
588 * target/target.h (target_terminal_init, target_terminal_inferior)
589 (target_terminal_ours): Don't declare.
590 (class target_terminal): New.
591 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
592 (target_terminal_ours_for_output)
593 (make_cleanup_restore_target_terminal): Don't declare.
594 (target_terminal_info): Remove.
595 * target.c (enum terminal_state, terminal_state): Remove.
596 (target_terminal::terminal_state): Define.
597 (target_terminal::init): Rename from target_terminal_init.
598 (target_terminal::inferior): Rename from
599 target_terminal_inferior.
600 (target_terminal::ours): Rename from target_terminal_ours.
601 (target_terminal::ours_for_output): Rename from
602 target_terminal_ours_for_output.
603 (target_terminal::info): New method.
604 (cleanup_restore_target_terminal)
605 (make_cleanup_restore_target_terminal): Remove.
606 * solib.c (handle_solib_event): Update.
607 * remote.c (remote_serial_quit_handler): Update.
608 (remote_terminal_inferior, remote_wait_as): Update.
609 * record-full.c (record_full_wait_1): Update.
610 * nto-procfs.c (procfs_create_inferior): Update.
611 * nat/fork-inferior.c (startup_inferior): Update.
612 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
613 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
614 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
615 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
616 (mi_breakpoint_created, mi_breakpoint_deleted)
617 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
618 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
619 (mi_user_selected_context_changed, report_initial_inferior):
620 Update.
621 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
622 (linux_nat_terminal_inferior): Update.
623 * infrun.c (follow_fork_inferior)
624 (handle_vfork_child_exec_or_exit, do_target_resume)
625 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
626 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
627 Update.
628 * inflow.c (child_terminal_init, info_terminal_command): Update.
629 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
630 (attach_command): Update.
631 * infcall.c (call_thread_fsm_should_stop): Update.
632 * gnu-nat.c (gnu_attach): Update.
633 * extension.c (struct active_ext_lang_state)
634 (restore_active_ext_lang): Update.
635 * exceptions.c (print_flush): Update.
636 * event-top.c (async_enable_stdin, default_quit_handler): Update.
637 (struct quit_handler_cleanup_data, restore_quit_handler)
638 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
639 Remove.
640 * cp-support.c (gdb_demangle): Update.
641 * breakpoint.c (update_inserted_breakpoint_locations)
642 (insert_breakpoint_locations, handle_jit_event)
643 (disable_breakpoints_in_unloaded_shlib): Update.
644 * annotate.c (annotate_breakpoints_invalid)
645 (annotate_frames_invalid): Update.
646
013af3fc
TT
6472017-09-20 Tom Tromey <tom@tromey.com>
648
649 * main.c (catch_command_errors): Rename from
650 catch_command_errors_const.
651 (captured_main_1): Update.
652
06871ae8
PA
6532017-09-20 Pedro Alves <palves@redhat.com>
654
655 * cli/cli-cmds.c (list_command): Use print_sal_location.
656 (print_sal_location): New function.
657 (ambiguous_line_spec): Use print_sal_location.
658 * linespec.c (symbol_to_sal): Record the symbol in the sal.
659 * symtab.c (find_function_start_sal): Likewise.
660 * symtab.h (symtab_and_line::symbol): New field.
661
e5f25bc5
PA
6622017-09-20 Pedro Alves <palves@redhat.com>
663
664 * linespec.c (minsym_found): Handle non-text minsyms.
665 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
666
1b7fa39e
WT
6672017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
668
669 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
670 backslash.
671
37dd0825
WT
6722017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
673
674 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
675 vmovups instead vmovaps.
676 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
677
4e5a4f58
JB
6782017-09-19 John Baldwin <jhb@FreeBSD.org>
679
680 * NEWS (Changes since GDB 8.0): Add starti.
681 * infcmd.c (enum run_break): New.
682 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
683 case.
684 (run_command): Use enum run_how.
685 (start_command): Likewise.
686 (starti_command): New function.
687 (RUN_ARGS_HELP): New macro.
688 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
689 commands. Add starti command.
690
aa70c9f1
YQ
6912017-09-19 Yao Qi <yao.qi@linaro.org>
692
693 * Makefile.in (monitor.o): Remove the rule.
694
d6541620
YQ
6952017-09-19 Yao Qi <yao.qi@linaro.org>
696
697 * annotate.h (struct annotate_arg_emitter): Use
698 DISABLE_COPY_AND_ASSIGN.
699 * common/refcounted-object.h (refcounted_object): Likewise.
700 * completer.h (struct completion_result): Likewise.
701 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
702 * filename-seen-cache.h (filename_seen_cache): Likewise.
703 * gdbcore.h (thread_section_name): Likewise.
704 * gdb_regex.h (compiled_regex): Likewise.
705 * gdbthread.h (scoped_restore_current_thread): Likewise.
706 * inferior.h (scoped_restore_current_inferior): Likewise.
707 * jit.c (jit_reader): Likewise.
708 * linespec.h (struct linespec_result): Likewise.
709 * mi/mi-parse.h (struct mi_parse): Likewise.
710 * nat/fork-inferior.c (execv_argv): Likewise.
711 * progspace.h (scoped_restore_current_program_space): Likewise.
712 * python/python-internal.h (class gdbpy_enter): Likewise.
713 * regcache.h (regcache): Likewise.
714 * target-descriptions.c (struct tdesc_reg): Likewise.
715 (struct tdesc_type): Likewise.
716 (struct tdesc_feature): Likewise.
717 * ui-out.h (ui_out_emit_type): Likewise.
718
0615127c
SM
7192017-09-18 Simon Marchi <simon.marchi@ericsson.com>
720
721 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
722 label abort_expression.
723
5e187554
SM
7242017-09-16 Simon Marchi <simon.marchi@ericsson.com>
725
726 * common/buffer.c (buffer_xml_printf): Adjust.
727 * common/xml-utils.c (xml_escape_text): Change return type to
728 std::string, update code accordingly.
729 * common/xml-utils.h (xml_escape_text): Change return type to
730 std::string.
731 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
732 * windows-tdep.c (windows_xfer_shared_library): Adjust.
733 * unittests/xml-utils-selftests.c (test_xml_escape_text):
734 Adjust.
735
c3d7b541
SM
7362017-09-16 Simon Marchi <simon.marchi@ericsson.com>
737
738 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
739 (SUBDIR_UNITTESTS_OBS): Add new object file.
740 * unittests/xml-utils-selftests.c: New file.
741
1526853e
SM
7422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
743
744 * common/selftest.h (selftest): New struct/interface.
745 (register_test): Add name parameter, add new overload.
746 (run_tests): Add filter parameter.
747 (for_each_selftest_ftype): New typedef.
748 (for_each_selftest): New declaration.
749 * common/selftest.c (tests): Change type to
750 map<string, unique_ptr<selftest>>.
751 (simple_selftest): New struct.
752 (register_test): New function.
753 (register_test): Add name parameter and use it.
754 (run_tests): Add filter parameter and use it. Add prints.
755 Adjust to vector -> map change.
756 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
757 registering selftests.
758 * arm-tdep.c (_initialize_arm_tdep): Likewise.
759 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
760 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
761 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
762 * findvar.c (_initialize_findvar): Likewise.
763 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
764 * maint.c (maintenance_selftest): Update call to run_tests.
765 (maintenance_info_selftests): New function.
766 (_initialize_maint_cmds): Register "maintenance info selftests"
767 command. Update "maintenance selftest" doc.
768 * regcache.c (_initialize_regcache): Add names when registering
769 selftests.
770 * rust-exp.y (_initialize_rust_exp): Likewise.
771 * selftest-arch.c (gdbarch_selftest): New struct.
772 (gdbarch_tests): Remove.
773 (register_test_foreach_arch): Add name parameter. Call
774 register_test.
775 (tests_with_arch): Remove, move most content to
776 gdbarch_selftest::operator().
777 (_initialize_selftests_foreach_arch): Remove.
778 * selftest-arch.h (register_test_foreach_arch): Add name
779 parameter.
780 (run_tests_with_arch): New declaration.
781 * utils-selftests.c (_initialize_utils_selftests): Add names
782 when registering selftests.
783 * utils.c (_initialize_utils): Likewise.
784 * unittests/array-view-selftests.c
785 (_initialize_array_view_selftests): Likewise.
786 * unittests/environ-selftests.c (_initialize_environ_selftests):
787 Likewise.
788 * unittests/function-view-selftests.c
789 (_initialize_function_view_selftests): Likewise.
790 * unittests/offset-type-selftests.c
791 (_initialize_offset_type_selftests): Likewise.
792 * unittests/optional-selftests.c
793 (_initialize_optional_selftests): Likewise.
794 * unittests/scoped_restore-selftests.c
795 (_initialize_scoped_restore_selftests): Likewise.
796 * NEWS: Document "maintenance selftest" and "maint info
797 selftests".
798
5846367a
SM
7992017-09-16 Simon Marchi <simon.marchi@ericsson.com>
800
801 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
802 scoped_restore.
803
bd77e8ff
SM
8042017-09-16 Simon Marchi <simon.marchi@ericsson.com>
805
806 * mi/mi-main.c (mi_load_progress): Make uiout variable
807 a unique_ptr.
808
26a67918
PA
8092017-09-15 Pedro Alves <palves@redhat.com>
810
811 * compile/compile-c-types.c (convert_enum, convert_int)
812 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
813
3f8a7804
SM
8142017-09-15 Simon Marchi <simon.marchi@ericsson.com>
815
816 * dwarf2read.c (copy_string): Remove.
817 (parse_macro_definition): Replace copy_string with savestring.
818
8d200706
YQ
8192017-09-15 Yao Qi <yao.qi@linaro.org>
820
821 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
822 gdb_target_obs.
823 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
824 Likewise.
825 (i[34567]86-*-linux*): Likewise.
826
d185219d
SM
8272017-09-14 Simon Marchi <simon.marchi@ericsson.com>
828
829 * dwarf2expr.h (dwarf_stack_value): Add constructor.
830 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
831 <stack>: Change type to std::vector.
832 <stack_len, stack_allocated>: Remove.
833 <grow_stack>: Remove.
834 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
835 (dwarf_expr_context::~dwarf_expr_context): Remove.
836 (dwarf_expr_context::grow_stack): Remove.
837 (dwarf_expr_context::push): Adjust.
838 (dwarf_expr_context::pop): Adjust.
839 (dwarf_expr_context::fetch): Adjust.
840 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
841 (dwarf_expr_context::stack_empty_p): Adjust.
842 (dwarf_expr_context::execute_stack_op): Adjust.
843
eccd80d6
SM
8442017-09-14 Simon Marchi <simon.marchi@ericsson.com>
845
846 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
847 return type to bool.
848 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
849
69009882
SM
8502017-09-14 Simon Marchi <simon.marchi@ericsson.com>
851
852 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
853 Change type to bool.
854 (dwarf_stack_value) <in_stack_memory>: Likewise.
855 (dwarf_expr_context) <push_address>: Change parameter type to
856 bool.
857 <fetch_in_stack_memory>: Change return type to bool.
858 <push>: Change parameter type to bool.
859 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
860 to bool.
861 (dwarf_expr_context::push_address): Likewise.
862 (dwarf_expr_context::fetch_in_stack_memory): Change return type
863 to bool.
864 (dwarf_expr_context::execute_stack_op): Adjust.
865 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
866
1e467161
SM
8672017-09-14 Simon Marchi <simon.marchi@ericsson.com>
868
869 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
870 (struct dwarf_expr_context) <n_pieces>: Remove.
871 <pieces>: Change type to std::vector.
872 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
873 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
874 pieces.
875 (dwarf_expr_context::add_piece): Adjust.
876 * dwarf2loc.c (struct piece_closure): Initialize fields.
877 <n_pieces>: Remove.
878 <pieces>: Change type to std::vector.
879 (allocate_piece_closure): Adjust, change parameter to
880 std::vector rvalue and std::move it to piece_closure.
881 (rw_pieced_value): Adjust.
882 (check_pieced_synthetic_pointer): Adjust.
883 (indirect_synthetic_pointer): Adjust.
884 (coerce_pieced_ref): Adjust.
885 (free_pieced_value_closure): Adjust. Use delete to free
886 piece_closure.
887 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
888 to allocate_piece_closure.
889 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
890
0782db84
SM
8912017-09-12 Simon Marchi <simon.marchi@ericsson.com>
892
893 * probe.h (probe_ops_cp): Remove typedef.
894 (DEF_VEC_P (probe_ops_cp)): Remove.
895 (all_probe_ops): Change type to std::vector.
896 * probe.c (info_probes_for_ops): Adjust to vector change.
897 (probe_linespec_to_ops): Likewise.
898 (all_probe_ops): Change type to std::vector.
899 (_initialize_probe): Adjust to vector change.
900 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
901 * elfread.c (elf_get_probes): Likewise.
902 * stap-probe.c (_initialize_stap_probe): Likewise.
903
1eac6bea
SM
9042017-09-12 Simon Marchi <simon.marchi@ericsson.com>
905
906 * probe.h (struct bound_probe): Define constructors.
907 * probe.c (bound_probe_s): Remove typedef.
908 (DEF_VEC_O (bound_probe_s)): Remove VEC.
909 (collect_probes): Change return type to std::vector, remove
910 cleanup.
911 (compare_probes): Return bool, change parameter type. Change
912 semantic to "less than".
913 (gen_ui_out_table_header_info): Change parameter to std::vector
914 and update.
915 (exists_probe_with_pops): Likewise.
916 (info_probes_for_ops): Update to std::vector change.
917 (enable_probes_command): Likewise.
918 (disable_probes_command): Likewise.
919
aaa63a31
SM
9202017-09-12 Simon Marchi <simon.marchi@ericsson.com>
921
922 * probe.h (struct probe_ops) <get_probes>: Change parameter from
923 vec to std::vector.
924 * probe.c (parse_probes_in_pspace): Update.
925 (find_probes_in_objfile): Update.
926 (find_probe_by_pc): Update.
927 (collect_probes): Update.
928 (probe_any_get_probes): Update.
929 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
930 return type to reference to std::vector.
931 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
932 std::vector and update.
933 (dtrace_process_dof): Likewise.
934 (dtrace_get_probes): Likewise.
935 * elfread.c (elf_get_probes): Change return type to std::vector,
936 store an std::vector in bfd_data.
937 (probe_key_free): Update to std::vector.
938 * stap-probe.c (handle_stap_probe): Change parameter to
939 std::vector and update.
940 (stap_get_probes): Likewise.
941 * symfile-debug.c (debug_sym_get_probes): Change return type to
942 std::vector and update.
943
cb85b21b
TT
9442017-09-11 Tom Tromey <tom@tromey.com>
945
946 * breakpoint.c (program_breakpoint_here_p): Update.
947 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
948 from make_show_memory_breakpoints_cleanup. Return a
949 scoped_restore_tmpl<int>.
950 (restore_show_memory_breakpoints): Remove.
951 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
952 * mem-break.c (memory_validate_breakpoint): Update.
953 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
954 (ia64_memory_remove_breakpoint): Update.
955 (ia64_breakpoint_from_pc): Update.
956 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
957 from make_show_memory_breakpoints_cleanup.
958
8fbc99ef
TT
9592017-09-11 Tom Tromey <tom@tromey.com>
960
961 * d-namespace.c (d_lookup_symbol): Use std::string.
962 (find_symbol_in_baseclass): Likewise.
963
50feb4bd
TT
9642017-09-11 Tom Tromey <tom@tromey.com>
965
966 * ctf.c (ctf_start): Use std::string.
967
c6dc63a1
TT
9682017-09-11 Tom Tromey <tom@tromey.com>
969
970 * ada-lang.c (is_known_support_routine): Update.
971 (ada_unhandled_exception_name_addr_from_raise): Update.
972 * guile/scm-frame.c (gdbscm_frame_name): Update.
973 * python/py-frame.c (frapy_name): Update.
974 (frapy_function): Update.
975 * stack.h (find_frame_funname): Update.
976 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
977 (print_frame): Update.
978
d6b9b80f
TT
9792017-09-11 Tom Tromey <tom@tromey.com>
980
981 * findcmd.c (put_bits): Take a gdb::byte_vector.
982 (parse_find_args): Return gdb::byte_vector. "args" now const.
983 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
984 cleanups.
985 (find_command): Update.
986
a9921622
TT
9872017-09-11 Tom Tromey <tom@tromey.com>
988
989 * cli/cli-script.c (class scoped_restore_hook_in): New.
990 (clear_hook_in_cleanup): Remove.
991 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
992 scoped_restore_hook_in.
993
be0d7abb
TT
9942017-09-11 Tom Tromey <tom@tromey.com>
995
996 * cli/cli-script.c (restore_interp): Remove.
997 (read_command_lines): Use scoped_restore_interp.
998 * interps.c (scoped_restore_interp::set_temp): Rename from
999 interp_set_temp.
1000 * interps.h (class scoped_restore_interp): New.
1001 (interp_set_temp): Remove.
1002
00f675ff
TT
10032017-09-11 Tom Tromey <tom@tromey.com>
1004
1005 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1006 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1007 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1008 scoped_restore.
1009 (mi_cmd_break_insert_1): Update.
1010 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1011 scoped_restore.
1012
cb791d59
TT
10132017-09-11 Tom Tromey <tom@tromey.com>
1014
1015 * demangle.c (demangle_command): Update.
1016 * breakpoint.c (disable_command): Update.
1017 (enable_command): Update.
1018 (find_location_by_number): Make "number" const. Use
1019 get_number_trailer.
1020 * cli/cli-utils.c (extract_arg): Return std::string.
1021 * probe.c (parse_probe_linespec): Update. Change types.
1022 (collect_probes): Take string arguments.
1023 (parse_probe_linespec): Likewise.
1024 (info_probes_for_ops): Update.
1025 (enable_probes_command): Update.
1026 (disable_probes_command): Update.
1027 * break-catch-sig.c (catch_signal_split_args): Update.
1028 * mi/mi-parse.c (mi_parse): Update.
1029
2039bd9f
TT
10302017-09-11 Tom Tromey <tom@tromey.com>
1031
1032 * language.h (language_enum): Make argument const.
1033 * language.c (language_enum): Make argument const.
1034
f1735a53
TT
10352017-09-11 Tom Tromey <tom@tromey.com>
1036
1037 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1038 as function.
1039 (skip_to_space): Rename from skip_to_space_const.
1040 * common/common-utils.c (skip_to_space): New function.
1041 (skip_to_space): Rename from skip_to_space_const.
1042 * cli/cli-utils.h (get_number): Rename from get_number_const.
1043 (extract_arg): Rename from extract_arg_const.
1044 * cli/cli-utils.c (get_number): Rename from get_number_const.
1045 (extract_arg): Rename from extract_arg_const.
1046 (number_or_range_parser::get_number): Use ::get_number.
1047 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1048 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1049 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1050 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1051 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1052 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1053 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1054 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1055
7d221d74
TT
10562017-09-11 Tom Tromey <tom@tromey.com>
1057
1058 * python/python.c (do_start_initialization): Use
1059 py-event-types.def to initialize types.
1060 Define all object type structures.
1061 * python/python-internal.h: Don't declare event initialization
1062 functions.
1063 * python/py-threadevent.c (thread_event_object_type): Don't
1064 define.
1065 * python/py-stopevent.c (stop_event_object_type): Don't define.
1066 * python/py-signalevent.c (signal_event_object_type): Don't
1067 declare or define.
1068 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1069 (clear_objfiles_event_object_type): Don't declare or define.
1070 * python/py-infevents.c (inferior_call_pre_event_object_type)
1071 (inferior_call_post_event_object_type)
1072 (register_changed_event_object_type)
1073 (memory_changed_event_object_type): Don't declare or define.
1074 * python/py-inferior.c (new_thread_event_object_type)
1075 (new_inferior_event_object_type)
1076 (inferior_deleted_event_object_type): Don't declare or define.
1077 * python/py-exitedevent.c (exited_event_object_type): Don't
1078 declare or define.
1079 * python/py-evts.c (gdbpy_initialize_py_events): Use
1080 py-all-events.def.
1081 * python/py-events.h (thread_event_object_type): Don't declare.
1082 (events_object): Use py-all-events.def.
1083 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1084 py-event-types.def.
1085 * python/py-event-types.def: New file.
1086 * python/py-continueevent.c (create_continue_event_object): Don't
1087 declare or define.
1088 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1089 declare or define.
1090 * python/py-all-events.def: New file.
1091
35c61a1d
TT
10922017-09-11 Tom Tromey <tom@tromey.com>
1093
1094 * python/py-threadevent.c (create_thread_event_object): Return
1095 gdbpy_ref.
1096 * python/py-stopevent.h (create_stop_event_object)
1097 (create_breakpoint_event_object, create_signal_event_object):
1098 Update.
1099 * python/py-stopevent.c (create_stop_event_object): Return
1100 gdbpy_ref.
1101 (emit_stop_event): Update.
1102 * python/py-signalevent.c (create_signal_event_object): Return
1103 gdbpy_ref.
1104 * python/py-infevents.c (create_inferior_call_event_object):
1105 Update.
1106 * python/py-event.h (create_event_object)
1107 (create_thread_event_object): Update.
1108 * python/py-event.c (create_event_object): Return gdbpy_ref.
1109 * python/py-continueevent.c: Return gdbpy_ref.
1110 * python/py-bpevent.c (create_breakpoint_event_object): Return
1111 gdbpy_ref.
1112
7c96f8c1
TT
11132017-09-11 Tom Tromey <tom@tromey.com>
1114
1115 PR python/15622:
1116 * NEWS: Add entry.
1117 * python/python.c (do_start_initialization): Initialize new event
1118 types.
1119 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1120 (gdbpy_initialize_inferior_deleted_event)
1121 (gdbpy_initialize_new_thread_event): Declare.
1122 * python/py-threadevent.c (create_thread_event_object): Add option
1123 "thread" parameter.
1124 * python/py-inferior.c (new_thread_event_object_type)
1125 (new_inferior_event_object_type)
1126 (inferior_deleted_event_object_type): Declare.
1127 (python_new_inferior, python_inferior_deleted): New functions.
1128 (add_thread_object): Emit new_thread event.
1129 (gdbpy_initialize_inferior): Attach new functions to corresponding
1130 observers.
1131 (new_thread, new_inferior, inferior_deleted): Define new event
1132 types.
1133 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1134 registries.
1135 * python/py-events.h (events_object) <new_inferior,
1136 inferior_deleted, new_thread>: New fields.
1137 * python/py-event.h (create_thread_event_breakpoint): Add optional
1138 "thread" parameter.
1139
72542b8e
AB
11402017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1143 check current_ui instead.
1144 (internal_vproblem): Likewise.
1145
0d64823e
SM
11462017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1147
1148 * thread.c (print_thread_info_1): Remove unnecessary calls to
1149 uiout->is_mi_like_p.
1150
eb1e02fd
TT
11512017-09-09 Tom Tromey <tom@tromey.com>
1152
1153 * namespace.h (add_using_directive): Update.
1154 * namespace.c (add_using_directive): Change type of excludes to
1155 std::vector.
1156 * dwarf2read.c (read_import_statement): Use std::vector.
1157 (read_namespace): Update.
1158 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1159
0fc21fd8
TT
11602017-09-09 Tom Tromey <tom@tromey.com>
1161
1162 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1163
49663d05
TT
11642017-09-09 Tom Tromey <tom@tromey.com>
1165
1166 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1167
0b868b60
TT
11682017-09-09 Tom Tromey <tom@tromey.com>
1169
1170 * stack.c (func_command): Use gdb::def_vector.
1171
c0470d48
TT
11722017-09-09 Tom Tromey <tom@tromey.com>
1173
1174 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1175 ui_out_emit_list, ui_out_emit_tuple.
1176 (mi_cmd_var_update): Likewise.
1177
ca5909c7
TT
11782017-09-09 Tom Tromey <tom@tromey.com>
1179
1180 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1181 ui_out_redirect_pop.
1182 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1183 ui_out_redirect_pop.
1184 * utils.c (do_ui_out_redirect_pop)
1185 (make_cleanup_ui_out_redirect_pop): Remove.
1186 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1187 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1188 * ui-out.h (ui_out_redirect_pop): New class.
1189
e6a2252a
TT
11902017-09-09 Tom Tromey <tom@tromey.com>
1191
1192 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1193 (list_available_thread_groups, mi_cmd_list_thread_groups)
1194 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1195 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1196 Likewise.
1197
393702cd
TT
11982017-09-09 Tom Tromey <tom@tromey.com>
1199
1200 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1201 ui_out_emit_tuple.
1202
76f9c9cf
TT
12032017-09-09 Tom Tromey <tom@tromey.com>
1204
1205 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1206 * stack.c (print_frame): Use ui_out_emit_tuple.
1207 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1208 (info_spu_mailbox_command, info_spu_dma_command)
1209 (info_spu_proxydma_command): Likewise.
1210 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1211 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1212 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1213 ui_out_emit_tuple.
1214 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1215
dc9fe180
TT
12162017-09-09 Tom Tromey <tom@tromey.com>
1217
1218 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1219 (class ui_out_emit_table): Update comment.
1220 * ui-out.c (do_cleanup_table_end)
1221 (make_cleanup_ui_out_table_begin_end): Remove.
1222 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1223 (info_spu_dma_cmdlist): Likewise.
1224 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1225 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1226 ui_out_emit_table.
1227
f8cc3da6
TT
12282017-09-09 Tom Tromey <tom@tromey.com>
1229
1230 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1231 ui_out_emit_list, gdb::optional.
1232
481695ed
JB
12332017-09-09 John Baldwin <jhb@FreeBSD.org>
1234
1235 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1236 prototype.
1237 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1238 prototype.
1239 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1240 prototype.
1241 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1242 * ada-exp.y: Remove _initialize_ada_exp prototype.
1243 * ada-lang.c: Remove _initialize_ada_language prototype.
1244 * ada-tasks.c: Remove _initialize_tasks prototype.
1245 * addrmap.c: Remove _initialize_addrmap prototype.
1246 * agent.c: Remove _initialize_agent prototype.
1247 * aix-thread.c: Remove _initialize_aix_thread prototype.
1248 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1249 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1250 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1251 prototype.
1252 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1253 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1254 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1255 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1256 prototype.
1257 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1258 prototype.
1259 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1260 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1261 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1262 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1263 prototype.
1264 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1265 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1266 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1267 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1268 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1269 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1270 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1271 prototype.
1272 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1273 prototype.
1274 * annotate.c: Remove _initialize_annotate prototype.
1275 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1276 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1277 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1278 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1279 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1280 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1281 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1282 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1283 prototype.
1284 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1285 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1286 * auto-load.c: Remove _initialize_auto_load prototype.
1287 * auxv.c: Remove _initialize_auxv prototype.
1288 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1289 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1290 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1291 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1292 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1293 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1294 prototype.
1295 * break-catch-throw.c: Remove _initialize_break_catch_throw
1296 prototype.
1297 * breakpoint.c: Remove _initialize_breakpoint prototype.
1298 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1299 * btrace.c: Remove _initialize_btrace prototype.
1300 * charset.c: Remove _initialize_charset prototype.
1301 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1302 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1303 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1304 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1305 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1306 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1307 * coffread.c: Remove _initialize_coffread prototype.
1308 * compile/compile.c: Remove _initialize_compile prototype.
1309 * complaints.c: Remove _initialize_complaints prototype.
1310 * completer.c: Remove _initialize_completer prototype.
1311 * copying.awk: Remove _initialize_copying prototype.
1312 * copying.c: Regenerate.
1313 * core-regset.c: Remove _initialize_core_regset prototype.
1314 * corefile.c: Remove _initialize_core prototype.
1315 * corelow.c: Remove _initialize_corelow prototype.
1316 * cp-abi.c: Remove _initialize_cp_abi prototype.
1317 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1318 * cp-support.c: Remove _initialize_cp_support prototype.
1319 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1320 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1321 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1322 * ctf.c: Remove _initialize_ctf prototype.
1323 * d-lang.c: Remove _initialize_d_language prototype.
1324 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1325 prototype.
1326 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1327 * dbxread.c: Remove _initialize_dbxread prototype.
1328 * dcache.c: Remove _initialize_dcache prototype.
1329 * demangle.c: Remove _initialize_demangler prototype.
1330 * disasm-selftests.c: Remove _initialize_disasm_selftests
1331 prototype.
1332 * disasm.c: Remove _initialize_disasm prototype.
1333 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1334 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1335 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1336 prototype.
1337 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1338 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1339 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1340 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1341 * elfread.c: Remove _initialize_elfread prototype.
1342 * exec.c: Remove _initialize_exec prototype.
1343 * extension.c: Remove _initialize_extension prototype.
1344 * f-lang.c: Remove _initialize_f_language prototype.
1345 * f-valprint.c: Remove _initialize_f_valprint prototype.
1346 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1347 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1348 * filesystem.c: Remove _initialize_filesystem prototype.
1349 * findcmd.c: Remove _initialize_mem_search prototype.
1350 * fork-child.c: Remove _initialize_fork_child prototype.
1351 * frame-base.c: Remove _initialize_frame_base prototype.
1352 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1353 * frame.c: Remove _initialize_frame prototype.
1354 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1355 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1356 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1357 * gcore.c: Remove _initialize_gcore prototype.
1358 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1359 * gdbarch.c: Regenerate.
1360 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1361 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1362 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1363 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1364 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1365 * go-lang.c: Remove _initialize_go_language prototype.
1366 * go32-nat.c: Remove _initialize_go32_nat prototype.
1367 * guile/guile.c: Remove _initialize_guile prototype.
1368 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1369 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1370 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1371 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1372 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1373 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1374 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1375 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1376 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1377 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1378 prototype.
1379 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1380 prototype.
1381 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1382 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1383 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1384 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1385 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1386 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1387 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1388 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1389 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1390 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1391 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1392 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1393 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1394 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1395 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1396 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1397 prototype.
1398 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1399 prototype.
1400 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1401 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1402 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1403 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1404 * infcall.c: Remove _initialize_infcall prototype.
1405 * infcmd.c: Remove _initialize_infcmd prototype.
1406 * inferior.c: Remove _initialize_inferiors prototype.
1407 * inflow.c: Remove _initialize_inflow prototype.
1408 * infrun.c: Remove _initialize_infrun prototype.
1409 * interps.c: Remove _initialize_interpreter prototype.
1410 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1411 * jit.c: Remove _initialize_jit prototype.
1412 * language.c: Remove _initialize_language prototype.
1413 * linux-fork.c: Remove _initialize_linux_fork prototype.
1414 * linux-nat.c: Remove _initialize_linux_nat prototype.
1415 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1416 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1417 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1418 * m2-lang.c: Remove _initialize_m2_language prototype.
1419 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1420 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1421 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1422 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1423 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1424 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1425 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1426 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1427 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1428 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1429 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1430 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1431 * machoread.c: Remove _initialize_machoread prototype.
1432 * macrocmd.c: Remove _initialize_macrocmd prototype.
1433 * macroscope.c: Remove _initialize_macroscope prototype.
1434 * maint.c: Remove _initialize_maint_cmds prototype.
1435 * mdebugread.c: Remove _initialize_mdebugread prototype.
1436 * memattr.c: Remove _initialize_mem prototype.
1437 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1438 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1439 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1440 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1441 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1442 * microblaze-linux-tdep.c: Remove
1443 _initialize_microblaze_linux_tdep prototype.
1444 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1445 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1446 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1447 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1448 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1449 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1450 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1451 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1452 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1453 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1454 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1455 prototype.
1456 * mipsread.c: Remove _initialize_mipsread prototype.
1457 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1458 prototype.
1459 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1460 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1461 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1462 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1463 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1464 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1465 prototype.
1466 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1467 * nto-procfs.c: Remove _initialize_procfs prototype.
1468 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1469 * objc-lang.c: Remove _initialize_objc_language prototype.
1470 * objfiles.c: Remove _initialize_objfiles prototype.
1471 * observer.c: Remove observer_test_first_notification_function,
1472 observer_test_second_notification_function,
1473 observer_test_third_notification_function, and
1474 _initialize_observer prototypes.
1475 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1476 * osabi.c: Remove _initialize_gdb_osabi prototype.
1477 * osdata.c: Remove _initialize_osdata prototype.
1478 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1479 * parse.c: Remove _initialize_parse prototype.
1480 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1481 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1482 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1483 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1484 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1485 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1486 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1487 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1488 * printcmd.c: Remove _initialize_printcmd prototype.
1489 * probe.c: Remove _initialize_probe prototype.
1490 * proc-api.c: Remove _initialize_proc_api prototype.
1491 * proc-events.c: Remove _initialize_proc_events prototype.
1492 * proc-service.c: Remove _initialize_proc_service prototype.
1493 * procfs.c: Remove _initialize_procfs prototype.
1494 * psymtab.c: Remove _initialize_psymtab prototype.
1495 * python/python.c: Remove _initialize_python prototype.
1496 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1497 * record-btrace.c: Remove _initialize_record_btrace prototype.
1498 * record-full.c: Remove _initialize_record_full prototype.
1499 * record.c: Remove _initialize_record prototype.
1500 * regcache.c: Remove _initialize_regcache prototype.
1501 * reggroups.c: Remove _initialize_reggroup prototype.
1502 * remote-notif.c: Remove _initialize_notif prototype.
1503 * remote-sim.c: Remove _initialize_remote_sim prototype.
1504 * remote.c: Remove _initialize_remote prototype.
1505 * reverse.c: Remove _initialize_reverse prototype.
1506 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1507 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1508 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1509 prototype.
1510 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1511 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1512 * rust-exp.y: Remove _initialize_rust_exp prototype.
1513 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1514 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1515 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1516 * score-tdep.c: Remove _initialize_score_tdep prototype.
1517 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1518 prototype.
1519 * ser-go32.c: Remove _initialize_ser_dos prototype.
1520 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1521 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1522 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1523 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1524 * serial.c: Remove _initialize_serial prototype.
1525 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1526 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1527 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1528 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1529 * skip.c: Remove _initialize_step_skip prototype.
1530 * sol-thread.c: Remove _initialize_sol_thread prototype.
1531 * solib-aix.c: Remove _initialize_solib_aix prototype.
1532 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1533 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1534 * solib-frv.c: Remove _initialize_frv_solib prototype.
1535 * solib-spu.c: Remove _initialize_spu_solib prototype.
1536 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1537 * solib-target.c: Remove _initialize_solib_target prototype.
1538 * solib.c: Remove _initialize_solib prototype.
1539 * source.c: Remove _initialize_source prototype.
1540 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1541 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1542 prototype.
1543 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1544 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1545 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1546 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1547 prototype.
1548 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1549 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1550 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1551 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1552 prototype.
1553 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1554 prototype.
1555 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1556 prototype.
1557 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1558 prototype.
1559 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1560 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1561 prototype.
1562 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1563 prototype.
1564 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1565 prototype.
1566 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1567 prototype.
1568 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1569 prototype.
1570 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1571 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1572 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1573 * stabsread.c: Remove _initialize_stabsread prototype.
1574 * stack.c: Remove _initialize_stack prototype.
1575 * stap-probe.c: Remove _initialize_stap_probe prototype.
1576 * std-regs.c: Remove _initialize_frame_reg prototype.
1577 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1578 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1579 * symfile.c: Remove _initialize_symfile prototype.
1580 * symmisc.c: Remove _initialize_symmisc prototype.
1581 * symtab.c: Remove _initialize_symtab prototype.
1582 * target-dcache.c: Remove _initialize_target_dcache prototype.
1583 * target-descriptions.c: Remove _initialize_target_descriptions
1584 prototype.
1585 * thread.c: Remove _initialize_thread prototype.
1586 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1587 prototype.
1588 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1589 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1590 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1591 prototype.
1592 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1593 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1594 * tracefile.c: Remove _initialize_tracefile prototype.
1595 * tracepoint.c: Remove _initialize_tracepoint prototype.
1596 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1597 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1598 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1599 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1600 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1601 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1602 * tui/tui.c: Remove _initialize_tui prototype.
1603 * typeprint.c: Remove _initialize_typeprint prototype.
1604 * user-regs.c: Remove _initialize_user_regs prototype.
1605 * utils.c: Remove _initialize_utils prototype.
1606 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1607 * valarith.c: Remove _initialize_valarith prototype.
1608 * valops.c: Remove _initialize_valops prototype.
1609 * valprint.c: Remove _initialize_valprint prototype.
1610 * value.c: Remove _initialize_values prototype.
1611 * varobj.c: Remove _initialize_varobj prototype.
1612 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1613 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1614 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1615 * windows-nat.c: Remove _initialize_windows_nat,
1616 _initialize_check_for_gdb_ini, and _initialize_loadable
1617 prototypes.
1618 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1619 * xcoffread.c: Remove _initialize_xcoffread prototype.
1620 * xml-support.c: Remove _initialize_xml_support prototype.
1621 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1622 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1623 prototype.
1624 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1625 prototype.
1626 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1627
a611b5cb
KS
16282017-09-08 Keith Seitz <keiths@redhat.com>
1629
1630 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1631 field.
1632
469412dd
CW
16332017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1634
1635 * f-valprint.c (f_val_print): Remove check for one byte
1636 sized integers. Remove printing of character type.
1637
a5ad232b
FP
16382017-09-08 Frank Penczek <frank.penczek@intel.com>
1639 Christoph Weinmann <christoph.t.weinmann@intel.com>
1640 Bernhard Heckel <bernhard.heckel@intel.com>
1641
1642 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1643 to maintain proper indentation when printing pointers/refs.
1644
e5014227
JB
16452017-09-07 Joel Brobecker <brobecker@adacore.com>
1646
1647 GDB 8.0.1 released.
1648
63c99141
JB
16492017-09-07 Joel Brobecker <brobecker@adacore.com>
1650
1651 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1652
69c1e056
TT
16532017-09-05 Tom Tromey <tom@tromey.com>
1654
1655 * parse.c (funcall_chain): Now a std::vector.
1656 (start_arglist, end_arglist): Simplify.
1657 (free_funcalls): Remove.
1658 (parse_exp_in_context_1): Remove cleanup.
1659
fef704bf
TT
16602017-09-05 Tom Tromey <tom@tromey.com>
1661
1662 * go-exp.y (go_parse): Don't create a cleanup.
1663
5613c585
TT
16642017-09-05 Tom Tromey <tom@tromey.com>
1665
1666 * d-exp.y (PrimaryExpression): Use std::string.
1667 (d_parse): Don't create a cleanup.
1668
eae49211
TT
16692017-09-05 Tom Tromey <tom@tromey.com>
1670
1671 * utils.c (do_clear_parser_state): Remove.
1672 (make_cleanup_clear_parser_state): Remove.
1673 * p-exp.y (pascal_parse): Use scoped_restore.
1674 * m2-exp.y (m2_parse): Use scoped_restore.
1675 * f-exp.y (f_parse): Use scoped_restore.
1676 * d-exp.y (d_parse): Use scoped_restore.
1677 * c-exp.y (c_parse): Use scoped_restore.
1678 * ada-exp.y (ada_parse): Use scoped_restore.
1679 * utils.h (make_cleanup_clear_parser_state): Remove.
1680
73b9be8b
KS
16812017-09-06 Keith Seitz <keiths@redhat.com>
1682
1683 * dwarf2read.c (dw2_linkage_name_attr): New function.
1684 (dw2_linkage_name): New function.
1685 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1686 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1687 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1688
a102602b
KR
16892017-09-06 Kamil Rytarowski <n54@gmx.com>
1690
1691 * config/djgpp/djconfig.sh: Correct shell portability issue.
1692
28ad437d
KR
16932017-09-06 Kamil Rytarowski <n54@gmx.com>
1694
1695 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1696
351787dd
JB
16972017-09-06 John Baldwin <jhb@FreeBSD.org>
1698
1699 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1700 * NEWS: Mention new FreeBSD/mips native configuration.
1701 * configure.host: Add aarch64*-*-freebsd*.
1702 * configure.nat: Likewise.
1703 * aarch64-fbsd-nat.c: New file.
1704
c0f84956
JB
17052017-09-06 John Baldwin <jhb@FreeBSD.org>
1706
1707 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1708 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1709 * NEWS: Mention new FreeBSD/aarch64 target.
1710 * configure.tgt: Add aarch64*-*-freebsd*.
1711 * aarch64-fbsd-tdep.c: New file.
1712 * aarch64-fbsd-tdep.h: New file.
1713
7610297a
KR
17142017-09-06 Kamil Rytarowski <n54@gmx.com>
1715
1716 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1717
fbd1b771
JK
17182017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1721 of TLS symbols.
1722
5ca79eae
PW
17232017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1724
1725 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1726 call.
1727
bf93d7ba
SM
17282017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1729
1730 * infrun.c (follow_exec): Call add_thread after
1731 target_find_description.
1732
1bb7c059
SM
17332017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1734
1735 * infrun.c (handle_inferior_event_1): When exec'ing, read
1736 stop_pc after follow_exec.
1737
fc809827
SM
17382017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1739
1740 * remote.c (process_g_packet): Update error message.
1741
d2fcdd85
YQ
17422017-09-05 Yao Qi <yao.qi@linaro.org>
1743
1744 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1745 targets.
1746
e69570ee
PA
17472017-09-05 Pedro Alves <palves@redhat.com>
1748
1749 * eval.c (eval_call, evaluate_funcall): New functions, factored
1750 out from ...
1751 (evaluate_subexp_standard): ... this.
1752
22916b07
YQ
17532017-09-05 Yao Qi <yao.qi@linaro.org>
1754
1755 * amd64-tdep.c (amd64_target_description): Create target
1756 descriptions.
1757 (_initialize_amd64_tdep): Don't call functions
1758 initialize_tdesc_amd64_*. Add self tests.
1759 * arch/amd64.c (amd64_create_target_description): Add parameter
1760 is_linux. Call set_tdesc_osabi if is_linux is true.
1761 * arch/amd64.h (amd64_create_target_description): Update the
1762 declaration.
1763 * arch/i386.c (i386_create_target_description): Add parameter
1764 is_linux. Call set_tdesc_osabi if is_linux is true.
1765 * arch/i386.h (i386_create_target_description): Update
1766 declaration.
1767 * configure.tgt: Add i386.o to gdb_target_obs.
1768 * features/Makefile (XMLTOC): Remove i386/*.xml.
1769 * features/i386/amd64-avx-avx512.c: Remove.
1770 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1771 * features/i386/amd64-avx-mpx.c: Remove.
1772 * features/i386/amd64-avx.c: Remove.
1773 * features/i386/amd64-mpx.c: Remove.
1774 * features/i386/amd64.c: Remove.
1775 * features/i386/i386-avx-avx512.c: Remove.
1776 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1777 * features/i386/i386-avx-mpx.c: Remove.
1778 * features/i386/i386-avx.c: Remove.
1779 * features/i386/i386-mmx.c: Remove.
1780 * features/i386/i386-mpx.c: Remove.
1781 * features/i386/i386.c: Remove.
1782 * i386-tdep.c: Don't include features/i386/i386*.c., include
1783 target-descriptions.h and arch/i386.h.
1784 (i386_target_description): Create target descriptions.
1785 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1786 functions. Do self tests.
1787
0854b7b1
YQ
17882017-09-05 Yao Qi <yao.qi@linaro.org>
1789
1790 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1791 * features/i386/amd64-avx-avx512-linux.c: Removed.
1792 * features/i386/amd64-avx-linux.c: Removed.
1793 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1794 * features/i386/amd64-avx-mpx-linux.c: Removed.
1795 * features/i386/amd64-linux.c: Removed.
1796 * features/i386/amd64-mpx-linux.c: Removed.
1797 * features/i386/x32-avx-avx512-linux.c: Removed.
1798 * features/i386/x32-avx-linux.c: Removed.
1799 * features/i386/x32-linux.c: Removed.
1800
b4570e4b
YQ
18012017-09-05 Yao Qi <yao.qi@linaro.org>
1802
1803 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1804 features/i386/*.c.
1805 (amd64_linux_read_description): Call
1806 amd64_create_target_description.
1807 * arch/amd64.c: New file.
1808 * arch/amd64.h: New file.
1809 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1810 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1811
6c73f67f
YQ
18122017-09-05 Yao Qi <yao.qi@linaro.org>
1813
1814 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1815 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1816 (amd64_linux_read_description): Create target descriptions.
1817 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1818 functions. Add unit tests.
1819 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1820 x32-core.xml.
1821 * features/i386/64bit-avx.c: Generated.
1822 * features/i386/64bit-avx512.c: Generated.
1823 * features/i386/64bit-core.c: Generated.
1824 * features/i386/64bit-linux.c: Generated.
1825 * features/i386/64bit-mpx.c: Generated.
1826 * features/i386/64bit-pkeys.c: Generated.
1827 * features/i386/64bit-segments.c: Generated.
1828 * features/i386/64bit-sse.c: Generated.
1829 * features/i386/x32-core.c: Generated.
1830 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1831 c files for amd64-linux and x32-linux.
1832
9d3d478b
YQ
18332017-09-05 Yao Qi <yao.qi@linaro.org>
1834
1835 * amd64-linux-tdep.c (amd64_linux_read_description): New
1836 function.
1837 (amd64_linux_core_read_description): Call
1838 amd64_linux_read_description.
1839 (amd64_linux_init_abi): Likewise.
1840 (amd64_x32_linux_init_abi): Likewise.
1841 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1842 * x86-linux-nat.c (x86_linux_read_description): Call
1843 amd64_linux_read_description.
1844
b9f1d50f
YQ
18452017-09-05 Yao Qi <yao.qi@linaro.org>
1846
1847 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1848 comments.
1849
188c9e6d
YQ
18502017-09-05 Yao Qi <yao.qi@linaro.org>
1851
1852 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1853 * features/i386/i386-avx-avx512-linux.c: Remove.
1854 * features/i386/i386-avx-linux.c: Remove.
1855 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1856 * features/i386/i386-avx-mpx-linux.c: Remove.
1857 * features/i386/i386-linux.c: Remove.
1858 * features/i386/i386-mmx-linux.c: Remove.
1859 * features/i386/i386-mpx-linux.c: Remove.
1860
5f035c07
YQ
18612017-09-05 Yao Qi <yao.qi@linaro.org>
1862
1863 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1864 (SFILES): Add arch/i386.c.
1865 (HFILES_NO_SRCDIR): Add arch/i386.h.
1866 * arch/i386.c: New file.
1867 * arch/i386.h: New file.
1868 * arch/tdesc.h (allocate_target_description): Declare.
1869 (set_tdesc_architecture): Declare.
1870 (set_tdesc_osabi): Declare.
1871 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1872 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1873 include arch/i386.h.
1874 (i386_linux_read_description): Remove code and call
1875 i386_create_target_description.
1876 (set_tdesc_architecture): New function.
1877 (set_tdesc_osabi): New function.
1878 * target-descriptions.h (allocate_target_description): Remove.
1879
0abe8a89
YQ
18802017-09-05 Yao Qi <yao.qi@linaro.org>
1881
1882 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1883 * target-descriptions.c (tdesc_create_feature): Likewise, and
1884 adjust code.
1885 * features/i386/32bit-avx.c: Re-generated.
1886 * features/i386/32bit-avx512.c: Re-generated.
1887 * features/i386/32bit-core.c: Re-generated.
1888 * features/i386/32bit-linux.c: Re-generated.
1889 * features/i386/32bit-mpx.c: Re-generated.
1890 * features/i386/32bit-pkeys.c: Re-generated.
1891 * features/i386/32bit-sse.c: Re-generated.
1892
0a188386
YQ
18932017-09-05 Yao Qi <yao.qi@linaro.org>
1894
1895 * regformats/regdef.h (struct reg): Override operator == and !=.
1896
f49ff000
YQ
18972017-09-05 Yao Qi <yao.qi@linaro.org>
1898
1899 * arch/tdesc.h: New file.
1900 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1901 * target-descriptions.c: Update comments.
1902 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1903 declarations.
1904 * features/i386/32bit-avx.c: Re-generated.
1905 * features/i386/32bit-avx512.c: Re-generated.
1906 * features/i386/32bit-core.c: Re-generated.
1907 * features/i386/32bit-linux.c: Re-generated.
1908 * features/i386/32bit-mpx.c: Re-generated.
1909 * features/i386/32bit-pkeys.c: Re-generated.
1910 * features/i386/32bit-sse.c: Re-generated.
1911
f7000548
YQ
19122017-09-05 Yao Qi <yao.qi@linaro.org>
1913
1914 * regformats/regdat.sh: Update generated code.
1915
c9a5e2a5
YQ
19162017-09-05 Yao Qi <yao.qi@linaro.org>
1917
1918 * regformats/regdat.sh: Adjust code order.
1919
d6b687ac
SM
19202017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1921
1922 * expprint.c (dump_subexp_body_standard): Use constant format
1923 string in fprintf_filtered call.
1924
a379bfd0
JB
19252017-09-04 John Baldwin <jhb@FreeBSD.org>
1926
1927 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1928 NetBSD/i386.
1929 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1930
f7efc967
JB
19312017-09-04 John Baldwin <jhb@FreeBSD.org>
1932
1933 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1934
c49fbc6c
JB
19352017-09-04 John Baldwin <jhb@FreeBSD.org>
1936
1937 * bsd-kvm.o: Define _KMEMUSER.
1938 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1939 * configure: Regenerate.
1940
26562e73
JB
19412017-09-04 John Baldwin <jhb@FreeBSD.org>
1942
1943 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1944 * i386-fbsd-nat.c: Likewise.
1945
31cf1487
JB
19462017-09-04 John Baldwin <jhb@FreeBSD.org>
1947
1948 * unittests/array-view-selftests.c: Add include of <array>.
1949
5b9f8a7c
JB
19502017-09-04 John Baldwin <jhb@FreeBSD.org>
1951
1952 * spu-tdep.c (flush_ea_cache): Add missing argument to
1953 call_function_by_hand.
1954
d69cf9b2
PA
19552017-09-04 Pedro Alves <palves@redhat.com>
1956
1957 * NEWS (Safer support for debugging with no debug info): New.
1958
3693fdb3
PA
19592017-09-04 Pedro Alves <palves@redhat.com>
1960
1961 * c-exp.y (function_method, function_method_void): Add current
1962 instance flags to TYPE_INSTANCE.
1963 * dwarf2read.c (check_modifier): New.
1964 (compute_delayed_physnames): Assert that only C++ adds delayed
1965 physnames. Mark fn_fields as const/volatile depending on
1966 physname.
1967 * eval.c (make_params): New type_instance_flags parameter. Use
1968 it as the new type's instance flags.
1969 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1970 flags element and pass it to make_params.
1971 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1972 instance flags element.
1973 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1974 * gdbtypes.h: Include "enum-flags.h".
1975 (type_instance_flags): New enum-flags type.
1976 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1977 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1978 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1979 (follow_type_instance_flags): New function.
1980 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1981 * parser-defs.h (follow_type_instance_flags): Declare.
1982 * valops.c (value_struct_elt_for_reference): const/volatile must
1983 match too.
1984
e68cb8e0
PA
19852017-09-04 Pedro Alves <palves@redhat.com>
1986
1987 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1988 function/method scopes; lookup the nested name as a function local
1989 static variable.
1990
858be34c
PA
19912017-09-04 Pedro Alves <palves@redhat.com>
1992
1993 (%type <voidval>): Add function_method.
1994 * c-exp.y (exp): New production for calls with no arguments.
1995 (function_method, function_method_void_or_typelist): New
1996 productions.
1997 (exp): New production for "method()::static_var".
1998 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1999 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2000 Handle OP_FUNC_STATIC_VAR.
2001 * parse.c (operator_length_standard):
2002 Handle OP_FUNC_STATIC_VAR.
2003
dd5901a6
PA
20042017-09-04 Pedro Alves <palves@redhat.com>
2005
2006 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2007 handling.
2008 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2009 Ditto.
2010 * parse.c (operator_length_standard, operator_check_standard):
2011 Ditto.
2012 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2013
46a4882b
PA
20142017-09-04 Pedro Alves <palves@redhat.com>
2015
2016 * ax-gdb.c: Include "typeprint.h".
2017 (gen_expr_for_cast): New function.
2018 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2019 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2020 type is unknown.
2021 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2022 nodebug_data_symbol.
2023 * eval.c: Include "typeprint.h".
2024 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2025 Error out if symbol has unknown type.
2026 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2027 evaluate_subexp_for_cast.
2028 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2029 OP_VAR_MSYM_VALUE.
2030 (evaluate_subexp_for_cast): New function.
2031 * gdbtypes.c (init_nodebug_var_type): New function.
2032 (objfile_type): Use it to initialize types of variables with no
2033 debug info.
2034 * typeprint.c (error_unknown_type): New.
2035 * typeprint.h (error_unknown_type): New declaration.
2036 * compile/compile-c-types.c (convert_type_basic): Handle
2037 TYPE_CODE_ERROR; warn and fallback to int for variables with
2038 unknown type.
2039
fe13dfec
PA
20402017-09-04 Pedro Alves <palves@redhat.com>
2041
2042 * eval.c (evaluate_var_value): New function, factored out from ...
2043 (evaluate_subexp_standard): ... here.
2044
d008ee21
PA
20452017-09-04 Pedro Alves <palves@redhat.com>
2046
2047 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2048 Remove useless assignments to 'op'.
2049
827d0c51
PA
20502017-09-04 Pedro Alves <palves@redhat.com>
2051
2052 * eval.c (eval_skip_value): New function.
2053 (evaluate_subexp_standard): Use it.
2054
2c5a2be1
PA
20552017-09-04 Pedro Alves <palves@redhat.com>
2056
2057 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2058 function name from symbol/minsym and pass it to
2059 error_call_unknown_return_type.
2060
74ea4be4
PA
20612017-09-04 Pedro Alves <palves@redhat.com>
2062
2063 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2064 * ax-gdb.c (gen_msym_var_ref): New function.
2065 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2066 * eval.c (evaluate_var_msym_value): New function.
2067 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2068 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2069 to call_function_by_hand.
2070 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2071 Handle OP_VAR_MSYM_VALUE.
2072 (union exp_element) <msymbol>: New field.
2073 * minsyms.h (struct type): Forward declare.
2074 (find_minsym_type_and_address): Declare.
2075 * parse.c (write_exp_elt_msym): New function.
2076 (write_exp_msymbol): Delete, refactored as ...
2077 (find_minsym_type_and_address): ... this new function.
2078 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2079 (operator_length_standard, operator_check_standard): Handle
2080 OP_VAR_MSYM_VALUE.
2081 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2082
7022349d
PA
20832017-09-04 Pedro Alves <palves@redhat.com>
2084
2085 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2086 TYPE_GNU_IFUNC specially here. Throw error if return type is
2087 unknown.
2088 * ada-typeprint.c (print_func_type): Handle functions with unknown
2089 return type.
2090 * c-typeprint.c (c_type_print_base): Handle functions and methods
2091 with unknown return type.
2092 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2093 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2094 * compile/compile-c-types.c: Include "objfiles.h".
2095 (convert_func): For functions with unknown return type, warn and
2096 default to int.
2097 * compile/compile-object-run.c (compile_object_run): Adjust call
2098 to call_function_by_hand_dummy.
2099 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2100 call_function_by_hand.
2101 * eval.c (evaluate_subexp_standard): Adjust calls to
2102 call_function_by_hand. Handle functions and methods with unknown
2103 return type. Pass expect_type to call_function_by_hand.
2104 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2105 return type.
2106 * gcore.c (call_target_sbrk): Adjust call to
2107 call_function_by_hand.
2108 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2109 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2110 an integer address type instead of nodebug.
2111 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2112 call_function_by_hand.
2113 * infcall.c (error_call_unknown_return_type): New function.
2114 (call_function_by_hand): New "default_return_type" parameter.
2115 Pass it down.
2116 (call_function_by_hand_dummy): New "default_return_type"
2117 parameter. Use it instead of defaulting to int. If there's no
2118 default and the return type is unknown, throw an error. If
2119 there's a default return type, and the called function has no
2120 debug info, then assume the function is prototyped.
2121 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2122 New "default_return_type" parameter.
2123 (error_call_unknown_return_type): New declaration.
2124 * linux-fork.c (call_lseek): Cast return type of lseek.
2125 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2126 call_function_by_hand.
2127 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2128 calls to call_function_by_hand.
2129 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2130 return type.
2131 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2132 (value_nsstring, print_object_command): Adjust calls to
2133 call_function_by_hand.
2134 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2135 functions with unknown return type.
2136 (pascal_type_print_func_varspec_suffix): New function.
2137 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2138 TYPE_CODE_METHOD>: Use it.
2139 * python/py-value.c (valpy_call): Adjust call to
2140 call_function_by_hand.
2141 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2142 call_function_by_hand.
2143 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2144 call_function_by_hand.
2145 * valops.c (value_allocate_space_in_inferior): Adjust call to
2146 call_function_by_hand.
2147 * typeprint.c (type_print_unknown_return_type): New function.
2148 * typeprint.h (type_print_unknown_return_type): New declaration.
2149
54990598
PA
21502017-09-04 Pedro Alves <palves@redhat.com>
2151
2152 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2153 types with more than one parameter as prototyped.
2154
9a24775b
PA
21552017-09-04 Pedro Alves <palves@redhat.com>
2156
2157 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2158 (disassemble_command): Use gdb_disassembly_flags instead of bare
2159 int.
2160 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2161 (dump_insns, do_mixed_source_and_assembly_deprecated)
2162 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2163 Use gdb_disassembly_flags instead of bare int.
2164 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2165 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2166 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2167 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2168 (enum gdb_disassembly_flag): ... values of this new enumeration.
2169 (gdb_disassembly_flags): Define.
2170 (gdb_disassembly)
2171 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2172 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2173 gdb_disassembly_flags instead of bare int.
2174 * record-btrace.c (btrace_insn_history)
2175 (record_btrace_insn_history, record_btrace_insn_history_range)
2176 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2177 instead of bare int.
2178 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2179 Use gdb_disassembly_flags instead of bare int.
2180 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2181 Define.
2182 * target-delegates.c: Regenerate.
2183 * target.c (target_insn_history, target_insn_history_from)
2184 (target_insn_history_range): Use gdb_disassembly_flags instead of
2185 bare int.
2186 * target.h: Include "disasm.h".
2187 (struct target_ops) <to_insn_history, to_insn_history_from,
2188 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2189 int.
2190 (target_insn_history, target_insn_history_from)
2191 (target_insn_history_range): Use gdb_disassembly_flags instead of
2192 bare int.
2193
80a65e9b
SM
21942017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2195
2196 * cli/cli-script.c (build_command_line): For if/while commands,
2197 check whether args is empty.
2198
6b66338c
SM
21992017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2200
2201 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2202 (enum command_control_type): Likewise.
2203 (struct command_line): Likewise.
2204 (free_command_lines): Likewise.
2205 (struct command_lines_deleter): Likewise.
2206 (command_line_up): Likewise.
2207 (read_command_lines): Likewise.
2208 (read_command_lines_1): Likewise.
2209 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2210 (enum command_control_type): Likewise.
2211 (struct command_line): Likewise.
2212 (free_command_lines): Likewise.
2213 (struct command_lines_deleter): Likewise.
2214 (command_line_up): Likewise.
2215 (read_command_lines): Likewise.
2216 (read_command_lines_1): Likewise.
2217 * breakpoint.h: Include cli/cli-script.h.
2218 * extension-priv.h: Likewise.
2219 * gdbcmd.h: Likewise.
2220
51abb421
PA
22212017-09-04 Pedro Alves <palves@redhat.com>
2222
2223 * ada-lang.c (is_known_support_routine): Move sal declaration to
2224 where it is initialized.
2225 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2226 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2227 (clear_command, update_static_tracepoint): Remove init_sal
2228 references. Move declarations closer to initializations.
2229 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2230 initializations.
2231 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2232 references. Move sal declarations closer to initializations.
2233 * frame.c (find_frame_sal): Return a symtab_and_line via function
2234 return instead of output parameter. Remove init_sal references.
2235 * frame.h (find_frame_sal): Return a symtab_and_line via function
2236 return instead of output parameter.
2237 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2238 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2239 instead of memset.
2240 (gdbscm_find_pc_line): Remove init_sal reference.
2241 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2242 references. Move declarations closer to initializations.
2243 * infcmd.c (set_step_frame): Update. Move declarations closer to
2244 initializations.
2245 (finish_backward): Remove init_sal references. Move declarations
2246 closer to initializations.
2247 * infrun.c (process_event_stop_test, handle_step_into_function)
2248 (insert_hp_step_resume_breakpoint_at_frame)
2249 (insert_step_resume_breakpoint_at_caller): Likewise.
2250 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2251 (symbol_to_sal): Likewise.
2252 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2253 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2254 to its initialization.
2255 * reverse.c (save_bookmark_command): Use new/delete. Remove
2256 init_sal references. Move declarations closer to initializations.
2257 * source.c (get_current_source_symtab_and_line): Remove brace
2258 initialization.
2259 (set_current_source_symtab_and_line): Now takes the sal by const
2260 reference. Remove brace initialization.
2261 (line_info): Remove init_sal reference.
2262 * source.h (set_current_source_symtab_and_line): Now takes a
2263 symtab_and_line via const reference.
2264 * stack.c (set_current_sal_from_frame): Adjust.
2265 (print_frame_info): Adjust.
2266 (get_last_displayed_sal): Return the sal via function return
2267 instead of via output parameter. Simplify.
2268 (frame_info): Adjust.
2269 * stack.h (get_last_displayed_sal): Return the sal via function
2270 return instead of via output parameter.
2271 * symtab.c (init_sal): Delete.
2272 (find_pc_sect_line): Remove init_sal references. Move
2273 declarations closer to initializations.
2274 (find_function_start_sal): Remove init_sal references. Move
2275 declarations closer to initializations.
2276 * symtab.h (struct symtab_and_line): In-class initialize all
2277 fields.
2278 * tracepoint.c (set_traceframe_context)
2279 (print_one_static_tracepoint_marker): Remove init_sal references.
2280 Move declarations closer to initializations.
2281 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2282 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2283 declarations closer to initializations.
2284 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2285 init_sal references. Adjust.
2286
6c5b2ebe
PA
22872017-09-04 Pedro Alves <palves@redhat.com>
2288
2289 * ax-gdb.c (agent_command_1): Use range-for.
2290 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2291 * breakpoint.c: Include "common/array-view.h".
2292 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2293 parameter from struct symtabs_and_lines to
2294 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2295 (breakpoint_sals_to_pc): Change sals parameter from struct
2296 symtabs_and_lines to std::vector reference.
2297 (check_fast_tracepoint_sals): Change sals parameter from struct
2298 symtabs_and_lines to std::array_view. Use range-for.
2299 (decode_static_tracepoint_spec): Return a std::vector instead of
2300 symtabs_and_lines. Update.
2301 (create_breakpoint): Update.
2302 (break_range_command, until_break_command, clear_command): Update.
2303 (base_breakpoint_decode_location, bkpt_decode_location)
2304 (bkpt_probe_create_sals_from_location)
2305 (bkpt_probe_decode_location, tracepoint_decode_location)
2306 (tracepoint_probe_decode_location)
2307 (strace_marker_create_sals_from_location): Return a std::vector
2308 instead of symtabs_and_lines.
2309 (strace_marker_create_breakpoints_sal): Update.
2310 (strace_marker_decode_location): Return a std::vector instead of
2311 symtabs_and_lines. Update.
2312 (update_breakpoint_locations): Change struct symtabs_and_lines
2313 parameters to gdb::array_view. Adjust.
2314 (location_to_sals): Return a std::vector instead of
2315 symtabs_and_lines. Update.
2316 (breakpoint_re_set_default): Use std::vector instead of struct
2317 symtabs_and_lines.
2318 (decode_location_default): Return a std::vector instead of
2319 symtabs_and_lines. Update.
2320 * breakpoint.h: Include "common/array-view.h".
2321 (struct breakpoint_ops) <decode_location>: Now returns a
2322 std::vector instead of returning a symtabs_and_lines via output
2323 parameter.
2324 (update_breakpoint_locations): Change sals parameters to use
2325 gdb::array_view.
2326 * cli/cli-cmds.c (edit_command, list_command): Update to use
2327 std::vector and gdb::array_view.
2328 (ambiguous_line_spec): Adjust to use gdb::array_view and
2329 range-for.
2330 (compare_symtabs): Rename to ...
2331 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2332 const reference and adjust.
2333 (filter_sals): Rewrite using std::vector and standard algorithms.
2334 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2335 (jump_command): Update to use std::vector.
2336 * linespec.c (struct linespec_state) <canonical_names>: Update
2337 comment.
2338 (add_sal_to_sals_basic): Delete.
2339 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2340 (decode_line_2, create_sals_line_offset)
2341 (convert_address_location_to_sals, convert_linespec_to_sals)
2342 (convert_explicit_location_to_sals, parse_linespec)
2343 (event_location_to_sals, decode_line_full, decode_line_1)
2344 (decode_line_with_current_source)
2345 (decode_line_with_last_displayed, decode_objc)
2346 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2347 (linespec_result::~linespec_result): Adjust to use std::vector
2348 instead of symtabs_and_lines.
2349 * linespec.h (linespec_sals::sals): Now a std::vector.
2350 (struct linespec_result): Use std::vector, bool, and in-class
2351 initialization.
2352 (decode_line_1, decode_line_with_current_source)
2353 (decode_line_with_last_displayed): Return std::vector.
2354 * macrocmd.c (info_macros_command): Use std::vector.
2355 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2356 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2357 std::vector.
2358 * probe.h (parse_probes): Return a std::vector.
2359 * python/python.c (gdbpy_decode_line): Use std::vector and
2360 gdb::array_view.
2361 * source.c (select_source_symtab, line_info): Use std::vector.
2362 * stack.c (func_command): Use std::vector.
2363 * symtab.h (struct symtabs_and_lines): Delete.
2364 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2365
7c44b49c
PA
23662017-09-04 Pedro Alves <palves@redhat.com>
2367
2368 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2369 unittests/array-view-selftests.c.
2370 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2371 * common/array-view.h: New file.
2372 * unittests/array-view-selftests.c: New file.
2373
e439fa14
PA
23742017-09-04 Pedro Alves <palves@redhat.com>
2375
2376 * cli/cli-cmds.c (edit_command): Pass message to
2377 ambiguous_line_spec.
2378 (list_command): Pass message to ambiguous_line_spec. Say
2379 "first"/"last" instead of "start" and "end" to be consistent with
2380 the manual.
2381 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2382 them to print formatted message.
2383
7525b645
PA
23842017-09-04 Pedro Alves <palves@redhat.com>
2385
2386 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2387 ftrace_update_insns by reference instead of pointer.
2388
badc0020
YQ
23892017-09-04 Yao Qi <yao.qi@linaro.org>
2390
2391 * i386-go32-tdep.c: Include x86-xstate.h.
2392 (i386_go32_init_abi): Call i386_target_description.
2393 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2394 if xcr0 is X86_XSTATE_X87_MASK.
2395 * i386-tdep.h (tdesc_i386): Remove the declaration.
2396 (tdesc_i386_mmx): Likewise.
2397
d78bdb54
YQ
23982017-09-04 Yao Qi <yao.qi@linaro.org>
2399
2400 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2401 X86_XSTATE_SSE_MASK instead of 0.
2402
ca1fa5ee
YQ
24032017-09-04 Yao Qi <yao.qi@linaro.org>
2404
2405 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2406 i386_target_description.
2407 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2408 i386_target_description.
2409 * i386-tdep.c (i386_gdbarch_init): Likewise.
2410
2434b019
YQ
24112017-09-04 Yao Qi <yao.qi@linaro.org>
2412
2413 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2414 (x86_darwin_init_abi_64): Call amd64_target_description.
2415 * amd64-dicos-tdep.c: Likewise.
2416 * amd64-fbsd-nat.c: Likewise.
2417 * amd64-fbsd-tdep.c: Likewise.
2418 * amd64-nbsd-tdep.c: Likewise.
2419 * amd64-obsd-tdep.c: Likewise.
2420 * amd64-sol2-tdep.c: Likewise.
2421 * amd64-windows-tdep.c: Likewise.
2422 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2423
0860c437
SM
24242017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2425
2426 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2427 (btrace_function) <insn>: Change type to use std::vector.
2428 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2429 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2430 ftrace_update_insns, ftrace_compute_global_level_offset,
2431 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2432 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2433 change to std::vector.
2434 (ftrace_update_insns): Adjust to change to std::vector, change
2435 type of INSN parameter.
2436 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2437 * record-btrace.c (btrace_call_history_insn_range,
2438 btrace_compute_src_line_range,
2439 record_btrace_frame_prev_register): Adjust to change to
2440 std::vector.
2441 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2442 to change to std::vector.
2443
0638b7f9
TT
24442017-09-03 Tom Tromey <tom@tromey.com>
2445
2446 * corefile.c (reopen_exec_file): Use std::string.
2447
8f84fb0e
TT
24482017-09-03 Tom Tromey <tom@tromey.com>
2449
2450 * compile/compile.c (compile_register_name_mangled): Return
2451 std::string.
2452 * compile/compile-loc2c.c (pushf_register_address): Update.
2453 (pushf_register): Update.
2454 * compile/compile-c-types.c (convert_array): Update.
2455 * compile/compile-c-symbols.c (generate_vla_size): Update.
2456 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2457 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2458 (convert_one_symbol): Update.
2459 (generate_c_for_for_one_variable): Update.
2460 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2461 std::string.
2462 (generate_register_struct): Update.
2463 * compile/compile-internal.h (c_get_range_decl_name): Return a
2464 std::string.
2465 (compile_register_name_mangled): Return std::string.
2466
18e9961f
TT
24672017-09-03 Tom Tromey <tom@tromey.com>
2468
2469 * utils.c (perror_string): Return a std::string.
2470 (throw_perror_with_name, perror_warning_with_name): Update.
2471
45343786
TT
24722017-09-03 Tom Tromey <tom@tromey.com>
2473
2474 * demangle.c (demangle_command): Use std::string,
2475 unique_xmalloc_ptr.
2476
b57af503
TT
24772017-09-03 Tom Tromey <tom@tromey.com>
2478
2479 * cli/cli-setshow.c (do_set_command): Use std::string.
2480
6eecf35f
TT
24812017-09-03 Tom Tromey <tom@tromey.com>
2482
2483 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2484
56496dd4
TT
24852017-09-03 Tom Tromey <tom@tromey.com>
2486
2487 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2488
e91a1fa7
TT
24892017-09-03 Tom Tromey <tom@tromey.com>
2490
2491 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2492 gdb::unique_xmalloc_ptr.
2493
7ffd83d7
TT
24942017-09-03 Tom Tromey <tom@tromey.com>
2495
2496 * thread.c (print_thread_info_1): Use string_printf.
2497 (thread_apply_command, thread_apply_all_command): Use
2498 std::string.
2499
1ccbe998
TT
25002017-09-03 Tom Tromey <tom@tromey.com>
2501
2502 * valprint.c (val_print_string): Update.
2503 * gdbcore.h (memory_error_message): Return std::string.
2504 * corefile.c (memory_error_message): Return std::string.
2505 (memory_error): Update.
2506 * breakpoint.c (insert_bp_location): Update.
2507
23fdd69e
SM
25082017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2509
2510 * target/waitstatus.h (target_waitstatus_to_string): Change
2511 return type to std::string.
2512 * target/waitstatus.c (target_waitstatus_to_string): Return
2513 std::string.
2514 * target.h (target_waitstatus_to_string): Remove declaration.
2515 * infrun.c (resume, clear_proceed_status_thread,
2516 print_target_wait_results, do_target_wait, save_waitstatus,
2517 stop_all_threads): Adjust.
2518 * record-btrace.c (record_btrace_wait): Adjust.
2519 * target-debug.h
2520 (target_debug_print_struct_target_waitstatus_p): Adjust.
2521
5c811d30
JK
25222017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2523
2524 PR gdb/22046
2525 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2526 detection.
2527
0a2dde4a
SDJ
25282017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2529
2530 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2531 for setting/unsetting environment variables on the remote target.
2532 (New remote packets): Add entries for QEnvironmentHexEncoded,
2533 QEnvironmentUnset and QEnvironmentReset.
2534 * common/environ.c (gdb_environ::operator=): Extend method to
2535 handle m_user_set_env_list and m_user_unset_env_list.
2536 (gdb_environ::clear): Likewise.
2537 (match_var_in_string): Change type of first parameter from 'char
2538 *' to 'const char *'.
2539 (gdb_environ::set): Extend method to handle
2540 m_user_set_env_list and m_user_unset_env_list.
2541 (gdb_environ::unset): Likewise.
2542 (gdb_environ::clear_user_set_env): New method.
2543 (gdb_environ::user_set_envp): Likewise.
2544 (gdb_environ::user_unset_envp): Likewise.
2545 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2546 m_user_unset_env_list on move constructor/assignment.
2547 (unset): Add new default parameter 'update_unset_list = true'.
2548 (clear_user_set_env): New method.
2549 (user_set_envp): Likewise.
2550 (user_unset_envp): Likewise.
2551 (m_user_set_env_list): New std::set.
2552 (m_user_unset_env_list): Likewise.
2553 * common/rsp-low.c (hex2str): New function.
2554 (bin2hex): New overload for bin2hex function.
2555 * common/rsp-low.c (hex2str): New prototype.
2556 (str2hex): New overload prototype.
2557 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2558 QEnvironmentUnset and QEnvironmentReset.
2559 (remote_protocol_features): Add QEnvironmentHexEncoded,
2560 QEnvironmentUnset and QEnvironmentReset packets.
2561 (send_environment_packet): New function.
2562 (extended_remote_environment_support): Likewise.
2563 (extended_remote_create_inferior): Call
2564 extended_remote_environment_support.
2565 (_initialize_remote): Add QEnvironmentHexEncoded,
2566 QEnvironmentUnset and QEnvironmentReset packet configs.
2567 * unittests/environ-selftests.c (gdb_selftest_env_var):
2568 New variable.
2569 (test_vector_initialization): New function.
2570 (test_init_from_host_environ): Likewise.
2571 (test_reinit_from_host_environ): Likewise.
2572 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2573 Likewise.
2574 (test_unset_set_empty_vector): Likewise.
2575 (test_vector_clear): Likewise.
2576 (test_std_move): Likewise.
2577 (test_move_constructor):
2578 (test_self_move): Likewise.
2579 (test_set_unset_reset): Likewise.
2580 (run_tests): Rewrite in terms of the functions above.
2581
654670a4
WP
25822017-08-31 Weimin Pan <weimin.pan@oracle.com>
2583
2584 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2585 (adi_available): Use a temp variable of type CORE_ADDR as argument
2586 3 when calling target_auxv_search.
2587 (adi_normalize_address): Use masks and xor operators to calculate
2588 normalized address.
2589 (adi_read_versions, adi_write_versions, adi_print_versions)
2590 (do_examine, do_assign): Use paddress.
2591
7755ddb7
JB
25922017-08-29 John Baldwin <jhb@FreeBSD.org>
2593
2594 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2595 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2596 out of loop and add supply of FIR.
2597 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2598 add collect of FIR.
2599
fd437cbc
SM
26002017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2601
3804a343 2602 PR gdb/21827
fd437cbc
SM
2603 * cli/cli-script.c (define_command): Don't convert command name
2604 to lower case.
2605
988f6b3d
JB
26062017-08-25 Joel Brobecker <brobecker@adacore.com>
2607
2608 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2609 Update all callers accordingly. Remove all code blocks handling
2610 the case where DISPP is not NULL.
2611
663c44ac
JK
26122017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2613
2614 PR symtab/22003
2615 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2616 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2617 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2618
f1902523
JK
26192017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2622 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2623 (read_comp_units_from_section): New parameter abbrev_section, use
2624 read_and_check_comp_unit_head, allocate signatured_type if needed.
2625 (create_all_comp_units): Update read_comp_units_from_section caller.
2626
87215ad1
SDJ
26272017-08-23 Pedro Alves <palves@redhat.com>
2628
2629 PR remote/21852
2630 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2631 to null_ptid and switch to thread without reading the registers
2632 after adding the inferior.
2633
6e41ddec
JK
26342017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2635
2636 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2637 compile-gcc.
2638 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2639 (compile_to_object): Implement compile_gcc.
2640 (_initialize_compile): Install "set compile-gcc". Initialize
2641 compile_gcc.
2642
e68c32d5
JK
26432017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 * compile/compile.c (compile_to_object): Conditionally call
2646 set_verbose. Conditionally call compile or compile_v0.
2647
58afddc6
WP
26482017-08-07 Weimin Pan <weimin.pan@oracle.com>
2649
2650 * sparc64-tdep.h: (adi_normalize_address): New export.
2651 * sparc-nat.h: (open_adi_tag_fd): New export.
2652 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2653 * sparc64-linux-tdep.c:
2654 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2655 (sparc64_linux_handle_segmentation_fault): New function.
2656 (sparc64_linux_init_abi): Register
2657 sparc64_linux_handle_segmentation_fault
2658 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2659 (sparc64_addr_bits_remove): New function.
2660 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2661 (MAX_PROC_NAME_SIZE): New macro.
2662 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2663 (sparc64adilist): New variable.
2664 (adi_proc_list): New variable.
2665 (find_adi_info): New function.
2666 (add_adi_info): New function.
2667 (get_adi_info_proc): New function.
2668 (get_adi_info): New function.
2669 (info_adi_command): New function.
2670 (read_maps_entry): New function.
2671 (adi_available): New function.
2672 (adi_normalize_address): New function.
2673 (adi_align_address): New function.
2674 (adi_convert_byte_count): New function.
2675 (adi_tag_fd): New function.
2676 (adi_is_addr_mapped): New function.
2677 (adi_read_versions): New function.
2678 (adi_write_versions): New function.
2679 (adi_print_versions): New function.
2680 (do_examine): New function.
2681 (do_assign): New function.
2682 (adi_examine_command): New function.
2683 (adi_assign_command): New function.
2684 (_initialize_sparc64_adi_tdep): New function.
2685
11db9430
SM
26862017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2687
2688 * breakpoint.c (breakpoints_info): Rename to ...
2689 (info_breakpoints_command): ... this.
2690 (watchpoints_info): Rename to ...
2691 (info_watchpoints_command): ... this.
2692 (tracepoints_info): Rename to ...
2693 (info_tracepoints_command): ... this.
2694 (_initialize_breakpoint): Adjust.
2695 * dcache.c (dcache_info): Rename to ...
2696 (info_display_command): ... this.
2697 (_initialize_dcache): Adjust.
2698 * frame.h (args_info): Rename to ...
2699 (info_args_command): ... this.
2700 (locals_info): Rename to ...
2701 (info_locals_command): ... this.
2702 * infcmd.c (nofp_registers_info): Rename to ...
2703 (info_registers_command): ... this.
2704 (float_info): Rename to ...
2705 (info_float_command): ... this.
2706 (program_info): Rename to ...
2707 (info_program_command): ... this.
2708 (all_registers_info): Rename to ...
2709 (info_all_registers_command): ... this.
2710 (vector_info): Rename to ...
2711 (info_vector_command): ... this.
2712 (float_info): Rename to ...
2713 (info_float_command): ... this.
2714 (_initialize_infcmd): Adjust.
2715 * inferior.h (term_info): Rename to ...
2716 (info_terminal_command): ... this.
2717 * inflow.c (term_info): Rename to ...
2718 (info_terminal_command): ... this.
2719 (_initialize_inflow): Adjust.
2720 * infrun.c (signals_info): Rename to ...
2721 (info_signals_command): ... this.
2722 (_initialize_infrun): Adjust.
2723 * objc-lang.c (classes_info): Rename to ...
2724 (info_classes_command): ... this.
2725 (selectors_info): Rename to ...
2726 (info_selectors_command): ... this.
2727 (_initialize_objc_language): Adjust.
2728 * printcmd.c (sym_info): Rename to ...
2729 (info_symbol_command): ... this.
2730 (address_info): Rename to ...
2731 (info_address_command): ... this.
2732 (display_info): Rename to ...
2733 (info_display_command): ... this.
2734 (_initialize_printcmd): Adjust.
2735 * reverse.c (bookmarks_info): Rename to ...
2736 (info_breakpoints_command): ... this.
2737 (_initialize_reverse): Adjust.
2738 * ser-go32.c (dos_info): Rename to ...
2739 (info_serial_command): ... this.
2740 (_initialize_ser_dos): Adjust.
2741 * skip.c (skip_info): Rename to ...
2742 (info_skip_command): ... this.
2743 (_initialize_step_skip): Adjust.
2744 * source.c (line_info): Rename to ...
2745 (info_line_command): ... this.
2746 (source_info): Rename to ...
2747 (info_source_command)
2748 * stack.c (frame_info): Rename to ...
2749 (info_frame_command): ... this.
2750 (locals_info): Rename to ...
2751 (info_locals_command): ... this.
2752 (args_info): Rename to ...
2753 (info_args_command): ... this.
2754 (_initialize_stack): Adjust.
2755 * symtab.c (sources_info): Rename to ...
2756 (info_sources_command): ... this.
2757 (variables_info): Rename to ...
2758 (info_variables_command): ... this.
2759 (functions_info): Rename to ...
2760 (info_functions_command): ... this.
2761 (types_info): Rename to ...
2762 (info_types_command): ... this.
2763 (_initialize_symtab): Adjust.
2764 * target.c (target_info): Rename to ...
2765 (info_target_command): ... this.
2766 (initialize_targets): Adjust.
2767 * tracepoint.c (tvariables_info): Rename to ...
2768 (info_tvariables_command): ... this.
2769 (scope_info): Rename to ...
2770 (info_scope_command): ... this.
2771 (trace_dump_actions): Adjust.
2772 (_initialize_tracepoint): Adjust.
2773
b270e6f9
TT
27742017-08-22 Tom Tromey <tom@tromey.com>
2775
2776 * breakpoint.h (install_breakpoint): Update.
2777 * breakpoint.c (add_solib_catchpoint): Update.
2778 (install_breakpoint): Change argument to a std::unique_ptr.
2779 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2780 (create_breakpoint_sal, create_breakpoint): Update.
2781 (watch_command_1, catch_exec_command_1)
2782 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2783 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2784 Return the breakpoint.
2785 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2786 (new_single_step_breakpoint): Update.
2787 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2788 std::unique_ptr.
2789 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2790 std::unique_ptr.
2791 * break-catch-sig.c (create_signal_catchpoint): Use
2792 std::unique_ptr.
2793 * ada-lang.c (create_ada_exception_catchpoint): Use
2794 std::unique_ptr.
2795
36bd8eaa
TT
27962017-08-22 Tom Tromey <tom@tromey.com>
2797
2798 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2799
56f37645
TT
28002017-08-22 Tom Tromey <tom@tromey.com>
2801
2802 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2803 (lookup_partial_symbol): Update.
2804
0b581c69
TT
28052017-08-22 Tom Tromey <tom@tromey.com>
2806
2807 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2808 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2809 (find_and_open_source, symtab_to_fullname): Update.
2810 * psymtab.c (psymtab_to_fullname): Update.
2811
14278e1f
TT
28122017-08-22 Tom Tromey <tom@tromey.com>
2813
2814 * exec.c (exec_file_attach): Update.
2815 * linux-thread-db.c (try_thread_db_load): Update.
2816 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2817 * utils.c (gdb_realpath): Change return type.
2818 (gdb_realpath_keepfile): Update.
2819 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2820 (_initialize_utils): Register the new self test.
2821 * source.c (openp): Update.
2822 (find_and_open_source): Update.
2823 * nto-tdep.c (nto_find_and_open_solib): Update.
2824 * main.c (set_gdb_data_directory): Update.
2825 (captured_main_1): Update.
2826 * dwarf2read.c (dwarf2_get_dwz_file): Update
2827 (dw2_map_symbol_filenames): Update.
2828 * auto-load.c (auto_load_safe_path_vec_update): Update.
2829 (filename_is_in_auto_load_safe_path_vec): Change type of
2830 "filename_realp".
2831 (auto_load_objfile_script): Update.
2832 (file_is_auto_load_safe): Update. Use std::string.
2833 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2834
4971c9a7
TT
28352017-08-22 Tom Tromey <tom@tromey.com>
2836
2837 * utils.c (gdb_realpath_keepfile): Return a
2838 gdb::unique_xmalloc_ptr.
2839 * exec.c (exec_file_attach): Update.
2840 * utils.h (gdb_realpath_keepfile): Return a
2841 gdb::unique_xmalloc_ptr.
2842
e3e41d58
TT
28432017-08-22 Tom Tromey <tom@tromey.com>
2844
2845 * compile/compile.c (compile_file_command): Use
2846 gdb::unique_xmalloc_ptr, std::string.
2847 * utils.c (gdb_abspath): Change return type.
2848 * source.c (openp): Update.
2849 * objfiles.c (allocate_objfile): Update.
2850 * main.c (set_gdb_data_directory): Update.
2851 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2852
0d999a6e
ZZ
28532017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2854
2855 * cli-cmds.c (list_commands): List actual code around more than
2856 one location.
2857
329d5e7e
JB
28582017-08-21 John Baldwin <jhb@FreeBSD.org>
2859
2860 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2861
bf223d3e
PA
28622017-08-21 Pedro Alves <palves@redhat.com>
2863
2864 PR gdb/19487
2865 * c-exp.y (variable production): Handle function aliases.
2866 * minsyms.c (msymbol_is_text): New function.
2867 * minsyms.h (msymbol_is_text): Declare.
2868 * symtab.c (find_function_alias_target): New function.
2869 * symtab.h (find_function_alias_target): Declare.
2870
c973d0aa
PA
28712017-08-21 Pedro Alves <palves@redhat.com>
2872
2873 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2874 typedefs.
2875 * typeprint.c (whatis_exp): If handling "whatis", and expression
2876 is OP_TYPE, strip one typedef level. Otherwise don't strip
2877 typedefs here.
2878 * valops.c (value_cast): Save "to" type before resolving
2879 stubs/typedefs. Use that type as resulting value's type.
2880
2989a365
TT
28812017-08-18 Tom Tromey <tom@tromey.com>
2882 Pedro Alves <palves@redhat.com>
2883
2884 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2885 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2886 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2887 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2888 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2889 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2890 (linux_get_siginfo_data): Add "thread" argument. Use
2891 scoped_restore.
2892 * linux-nat.c (linux_child_follow_fork)
2893 (check_stopped_by_watchpoint): Use scoped_restore.
2894 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2895 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2896 (restore_inferior_ptid, save_inferior_ptid): Remove.
2897 * btrace.c (btrace_fetch): Use scoped_restore.
2898 * bsd-uthread.c (bsd_uthread_fetch_registers)
2899 (bsd_uthread_store_registers): Use scoped_restore.
2900 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2901 scoped_restore.
2902 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2903 (aix_thread_xfer_partial): Use scoped_restore.
2904 * inferior.h (save_inferior_ptid): Remove.
2905
e60eb288
YQ
29062017-08-18 Yao Qi <yao.qi@linaro.org>
2907
2908 PR tdep/21818
2909 * arm-tdep.c (gdb_print_insn_arm): Mark
2910 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2911
6d580b63
YQ
29122017-08-18 Yao Qi <yao.qi@linaro.org>
2913
2914 * NEWS: Mention GDBserver's new option "--selftest".
2915 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2916 * selftest.c: Move it to common/selftest.c.
2917 * selftest.h: Move it to common/selftest.h.
2918 * selftest-arch.c (reset): New function.
2919 (tests_with_arch): Call reset.
2920
86dcbf50
YQ
29212017-08-18 Yao Qi <yao.qi@linaro.org>
2922
2923 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2924 instead of exception_fprintf and printf_filtered.
2925
7649770c
YQ
29262017-08-18 Yao Qi <yao.qi@linaro.org>
2927
2928 * selftest.c (register_self_test): Rename it to
2929 selftests::register_test.
2930 (run_self_tests): selftest::run_tests.
2931 * selftest.h: Update declarations.
2932 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2933 selftests::register_test_foreach_arch.
2934 * selftest-arch.h: Update declaration.
2935 * aarch64-tdep.c: Update.
2936 * arm-tdep.c: Likewise.
2937 * disasm-selftests.c: Likewise.
2938 * dwarf2loc.c: Likewise.
2939 * dwarf2-frame.c: Likewise.
2940 * findvar.c: Likewise.
2941 * gdbarch-selftests.c: Likewise.
2942 * maint.c (maintenance_selftest): Likewise.
2943 * regcache.c: Likewise.
2944 * rust-exp.y: Likewise.
2945 * selftest-arch.c: Likewise.
2946 * unittests/environ-selftests.c: Likewise.
2947 * unittests/function-view-selftests.c: Likewise.
2948 * unittests/offset-type-selftests.c: Likewise.
2949 * unittests/optional-selftests.c: Likewise.
2950 * unittests/scoped_restore-selftests.c: Likewise.
2951 * utils-selftests.c: Likewise.
2952
b0cba12e
PA
29532017-08-17 Pedro Alves <palves@redhat.com>
2954
2955 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2956 local.
2957
4c8aa72d
PA
29582017-08-17 Pedro Alves <palves@redhat.com>
2959
2960 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2961 field.
2962 (reset_die_in_process): Delete, replaced by ...
2963 (process_die_scope): ... this new class. Make it responsible for
2964 freeing cu->line_header too.
2965 (process_die): Use process_die_scope.
2966 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2967 cu->line_header_die_owner. Don't release the line header if it's
2968 owned by the CU.
2969 (setup_type_unit_groups): Make the CU/DIE own the line header.
2970 Don't release the line header here.
2971
ba713918
AL
29722017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2973
2974 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2975
44d0fb3a
RK
29762017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2977
2978 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2979 Single-Key mode
2980
a5afdb16
RK
29812017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2982
2983 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2984 mode command list.
2985
47613aeb
SH
29862017-08-15 Stafford Horne <shorne@gmail.com>
2987
2988 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2989
9c3cc999
SH
29902017-08-15 Stafford Horne <shorne@gmail.com>
2991
2992 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2993
206726fb
SDJ
29942017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2995
2996 PR gdb/21954
2997 * infcmd.c (unset_environment_command): Use the 'clear' method on
2998 the environment instead of resetting it.
2999
0335ac6d
JB
30002017-08-15 John Baldwin <jhb@FreeBSD.org>
3001
3002 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3003 platforms.
3004
d3abe1c8
TT
30052017-08-14 Tom Tromey <tom@tromey.com>
3006
3007 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3008 (print_binary_chars): Likewise.
3009 (BITS_IN_BYTES): Remove.
3010
d6382fff
TT
30112017-08-14 Tom Tromey <tom@tromey.com>
3012
3013 PR gdb/21675
3014 * valprint.c (LOW_ZERO): Change value to 034.
3015 (print_octal_chars): Add static_asserts for octal constants.
3016 * printcmd.c (print_scalar_formatted): Add 'd' case.
3017
f978cb06
TT
30182017-08-11 Tom Tromey <tom@tromey.com>
3019
3020 * symfile.c (add_symbol_file_command): Use std::vector.
3021
2f5404b3
TT
30222017-08-14 Tom Tromey <tom@tromey.com>
3023
3024 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3025 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3026 std::move.
3027 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3028
de7985c3
PA
30292017-08-11 Pedro Alves <palves@redhat.com>
3030
3031 * infrun.c (process_event_stop_test): Adjust
3032 function_name_is_marked_for_skip call.
3033 * skip.c: Include <list>.
3034 (skiplist_entry): Make it a class with private fields, and
3035 getters/setters.
3036 (skiplist_entry_chain): Delete.
3037 (skiplist_entries): New.
3038 (skiplist_entry_count): Delete.
3039 (highest_skiplist_entry_num): New.
3040 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3041 (add_skiplist_entry): Delete.
3042 (skiplist_entry::skiplist_entry): New.
3043 (skiplist_entry::add_entry): New.
3044 (skip_file_command, skip_function): Adjust.
3045 (compile_skip_regexp): Delete.
3046 (skip_command): Don't compile regexp here. Adjust to use
3047 skiplist_entry::add_entry.
3048 (skip_info): Adjust to use range-for and getters.
3049 (skip_enable_command, skip_disable_command): Adjust to use
3050 range-for and setters.
3051 (skip_delete_command): Adjust to use std::list.
3052 (add_skiplist_entry): Delete.
3053 (skip_file_p): Delete, refactored as ...
3054 (skiplist_entry::do_skip_file_p): ... this new method.
3055 (skip_gfile_p): Delete, refactored as ...
3056 (skiplist_entry::do_gskip_file_p): ... this new method.
3057 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3058 (skiplist_entry::skip_function_p): ... this new method.
3059 (function_name_is_marked_for_skip): Now returns bool, and takes
3060 the function sal by const reference. Adjust to use range-for and
3061 skiplist_entry methods.
3062 (_initialize_step_skip): Remove references to
3063 skiplist_entry_chain, skiplist_entry_count.
3064 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3065 takes the function sal by const reference.
3066
be7d3cd5
YQ
30672017-08-11 Yao Qi <yao.qi@linaro.org>
3068
3069 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3070 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3071 (dwarf2_frame_cache):
3072 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3073 RETURN_MASK_ALL and set *this_case to NULL.
3074 * frame-unwind.h: Update comments.
3075
1c90d9f0
YQ
30762017-08-11 Yao Qi <yao.qi@linaro.org>
3077
3078 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3079 (dwarf2_frame_state_copy_regs): Remove.
3080 (dwarf2_frame_state_free_regs): Remove.
3081 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3082 (dwarf2_restore_rule): Call method .alloc_regs instead of
3083 dwarf2_frame_state_alloc_regs.
3084 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3085 constructor. Call std::move.
3086 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3087 (dwarf2_frame_cache): Likewise.
3088
3089 [GDB_SELF_TEST]: Include selftest.h and
3090 selftest-arch.h.
3091 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3092 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3093 execute_cfa_program_test.
3094
3095 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3096 copy ctor, assignment operator, move assignment.
3097 <alloc_regs>: New method.
3098 <swap>: New method.
3099 (struct dwarf2_frame_state): Delete dtor.
3100 (dwarf2_frame_state_alloc_regs): Remove declaration.
3101 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3102 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3103
afe37d6b
YQ
31042017-08-11 Yao Qi <yao.qi@linaro.org>
3105
3106 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3107 (dwarf2_frame_state::dwarf2_frame_state): New.
3108 (dwarf2_frame_state::~dwarf2_frame_state): New.
3109 (dwarf2_fetch_cfa_info): Update.
3110 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3111 rather than a pointer. Update code.
3112 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3113 dtor.
3114 <data_align, code_align, retaddr_column>: Change them to const.
3115 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3116 to bool.
3117
b348037f
YQ
31182017-08-11 Yao Qi <yao.qi@linaro.org>
3119
3120 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3121 <loc.exp>: New field.
3122 * dwarf2-frame.c (execute_cfa_program): Update.
3123 (dwarf2_frame_prev_register): Update.
3124
e7c9de26
PA
31252017-08-10 Pedro Alves <palves@redhat.com>
3126
3127 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3128
e8c6b620
JB
31292017-08-09 John Baldwin <jhb@FreeBSD.org>
3130
3131 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3132 (fbsd_pending_children): Use std::list.
3133 (fbsd_remember_child): Likewise.
3134 (fbsd_is_child_pending): Likewise.
3135 (fbsd_pending_vfork_done): Use std::forward_list.
3136 (fbsd_add_vfork_done): Likewise.
3137 (fbsd_is_vfork_done_pending): Likewise.
3138 (fbsd_next_vfork_done): Likewise.
3139
e4a26669
JB
31402017-08-09 John Baldwin <jhb@FreeBSD.org>
3141
3142 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3143 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3144 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3145 for `mapfilename'.
3146 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3147 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3148
142311d3
JB
31492017-08-09 John Baldwin <jhb@FreeBSD.org>
3150
3151 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3152 "filestuff.h".
3153 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3154
42fa2e0e
TT
31552017-08-09 Tom Tromey <tom@tromey.com>
3156
3157 * skip.c (skiplist_entry): New constructor.
3158 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3159 (skiplist_entry::file_is_glob): Now bool.
3160 (skiplist_entry::file, skiplist_entry::function): Now
3161 std::string.
3162 (make_skip_entry): Return a unique_ptr. Use new.
3163 (free_skiplist_entry, free_skiplist_entry_cleanup)
3164 (make_free_skiplist_entry_cleanup): Remove.
3165 (skip_command, skip_disable_command, add_skiplist_entry)
3166 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3167 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3168 (function_name_is_marked_for_skip): Update.
3169 (skip_delete_command): Update. Use delete.
3170
cd3af38d
JW
31712017-08-09 Jiong Wang <jiong.wang@arm.com>
3172
3173 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3174 (aarch64_linux_core_read_description): New function.
3175 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3176
29592bde
PA
31772017-08-09 Pedro Alves <palves@redhat.com>
3178
3179 * cp-name-parser.y (cp_comp_to_string): Return a
3180 gdb::unique_xmalloc_ptr<char>.
3181 * cp-support.c (replace_typedefs_qualified_name)
3182 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3183 (cp_canonicalize_string_full): Use op= instead of explicit
3184 convertion.
3185 (cp_class_name_from_physname, method_name_from_physname)
3186 (cp_func_name, cp_remove_params): Adjust to use
3187 gdb::unique_xmalloc_ptr<char>.
3188 * cp-support.h (cp_comp_to_string): Return a
3189 gdb::unique_xmalloc_ptr<char>.
3190 * python/py-type.c (typy_lookup_type): Adjust to use
3191 gdb::unique_xmalloc_ptr<char>.
3192
b3340438
L
31932017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3194
3195 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3196
e88e8651
YQ
31972017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3198 Yao Qi <yao.qi@linaro.org>
3199
3200 * cp-support.c (cp_canonicalize_string_full): Use
3201 gdb::unique_xmalloc_ptr<char>.
3202 (cp_canonicalize_string): Likewise.
3203
f5a29eb0
YQ
32042017-08-09 Yao Qi <yao.qi@linaro.org>
3205
3206 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3207 * regformats/i386/amd64-avx-avx512.dat: Remove.
3208 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3209 * regformats/i386/amd64-avx-mpx.dat:Remove.
3210 * regformats/i386/amd64-avx.dat: Remove.
3211 * regformats/i386/amd64-mpx.dat: Remove.
3212 * regformats/i386/i386-avx-avx512.dat: Remove.
3213 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3214 * regformats/i386/i386-avx-mpx.dat: Remove.
3215 * regformats/i386/i386-mmx.dat: Remove.
3216 * regformats/i386/i386-mpx.dat: Remove.
3217
57757c2f
YQ
32182017-08-09 Yao Qi <yao.qi@linaro.org>
3219
3220 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3221 * amd64-tdep.c: Don't include features/i386/x32*.c.
3222 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3223 functions.
3224 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3225 and i386/x32-avx-avx512.
3226 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3227 and i386/x32.xml.
3228 * features/i386/x32-avx-avx512.c: Removed.
3229 * features/i386/x32-avx-avx512.xml: Removed.
3230 * features/i386/x32-avx.c: Removed.
3231 * features/i386/x32-avx.xml: Removed.
3232 * features/i386/x32.c: Removed.
3233 * features/i386/x32.xml: Removed.
3234 * regformats/i386/x32-avx-avx512.dat: Removed.
3235 * regformats/i386/x32-avx.dat: Removed.
3236 * regformats/i386/x32.dat: Removed.
3237
ba7b109b
MR
32382017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3239
3240 PR breakpoints/21886
3241 * mem-break.c (default_memory_insert_breakpoint): Use
3242 `->placed_address' rather than `->reqstd_address' for the
3243 breakpoint location.
3244
e347efc3
MR
32452017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3246
3247 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3248 assertions.
3249
0dba2a6c
MR
32502017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3251
3252 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3253 a union of `tdep_info', `tdesc_data' and `id'.
3254 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3255 rather than `info.tdep_info'.
3256 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3257 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3258 * i386-tdep.c (i386_gdbarch_init): Likewise.
3259 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3260 * mips-tdep.c (mips_gdbarch_init): Likewise.
3261 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3262 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3263 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3264 `info.tdep_info'.
3265 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3266 `info.tdep_info'.
3267 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3268 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3269 `info.tdep_info'.
3270 * spu-tdep.c (spu_gdbarch_init): Likewise.
3271 * gdbarch.h: Regenerate.
3272
16eb6b2d
LS
32732017-08-07 Leszek Swirski <leszeks@google.com>
3274
7b005726 3275 PR symtab/20899
16eb6b2d
LS
3276 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3277
74cbb09e
SM
32782017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3279
3280 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3281 (gdbsim_open): Rename gdb_argv args object to argv.
3282
ee0c3293
TT
32832017-08-05 Tom Tromey <tom@tromey.com>
3284
3285 * compile/compile-object-load.c (compile_object_load): Use
3286 gdb::unique_xmalloc_ptr.
3287 * cli/cli-dump.c (scan_filename): Rename from
3288 scan_filename_with_cleanup. Change return type.
3289 (scan_expression): Rename from scan_expression_with_cleanup.
3290 Change return type.
3291 (dump_memory_to_file, dump_value_to_file, restore_command):
3292 Use gdb::unique_xmalloc_ptr. Update.
3293 * cli/cli-cmds.c (find_and_open_script): Use
3294 gdb::unique_xmalloc_ptr.
3295 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3296 * symmisc.c (maintenance_print_symbols)
3297 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3298 * symfile.c (symfile_bfd_open, generic_load)
3299 (add_symbol_file_command, remove_symbol_file_command): Use
3300 gdb::unique_xmalloc_ptr.
3301 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3302 * psymtab.c (maintenance_print_psymbols): Use
3303 gdb::unique_xmalloc_ptr.
3304 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3305 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3306 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3307 (reload_shared_libraries_1): Likewise.
3308
3232fabd
TT
33092017-08-05 Tom Tromey <tom@tromey.com>
3310
3311 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3312 (rust_op_vector, rust_set_vector): New typedefs.
3313 (current_parser): New global.
3314 (work_obstack): Change to pointer type. Update all users.
3315 (rust_ast, pstate): Remove globals.
3316 (struct rust_parser): New.
3317 (%union) <params, field_inits>: Change type.
3318 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3319 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3320 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3321 (convert_params_to_types, convert_params_to_expression): Change
3322 type of "params".
3323 (ast_string): Change type of "fields".
3324 (rust_parse): Make a rust_parser. Remove cleanups.
3325 (rust_lex_tests): Make and install an auto_obstack.
3326
f02fd774
YQ
33272017-08-04 Yao Qi <yao.qi@linaro.org>
3328
3329 * configure.srv (ipa_x32_linux_regobj): New.
3330 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3331 instead of X86_TDESC_AVX512.
3332 (initialize_low_tracepoint): Call
3333 init_registers_x32_avx_avx512_linux.
3334
91975afd
YQ
33352017-08-04 Yao Qi <yao.qi@linaro.org>
3336
3337 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3338
2331fa3a
RK
33392017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3340
3341 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3342
744e4fe1
TT
33432017-08-03 Tom Tromey <tom@tromey.com>
3344
3345 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3346 Remove.
3347 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3348
1c034b67
TT
33492017-08-03 Tom Tromey <tom@tromey.com>
3350
3351 * python/py-param.c (compute_enum_values): Use gdb_argv.
3352
773a1edc
TT
33532017-08-03 Tom Tromey <tom@tromey.com>
3354
3355 * utils.h (struct gdb_argv_deleter): New.
3356 (gdb_argv): New class.
3357 * utils.c (gdb_argv::reset): New method.
3358 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3359 * tracefile.c (tsave_command): Use gdb_argv.
3360 * top.c (new_ui_command): Use gdb_argv.
3361 * symmisc.c (maintenance_print_symbols)
3362 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3363 * symfile.c (symbol_file_command, generic_load)
3364 (remove_symbol_file_command): Use gdb_argv.
3365 * stack.c (backtrace_command): Use gdb_argv.
3366 * source.c (add_path, show_substitute_path_command)
3367 (unset_substitute_path_command, set_substitute_path_command):
3368 Use gdb_argv.
3369 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3370 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3371 * remote.c (extended_remote_run, remote_put_command)
3372 (remote_get_command, remote_delete_command): Use gdb_argv.
3373 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3374 (gdbsim_open): Use gdb_argv.
3375 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3376 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3377 * procfs.c (procfs_info_proc): Use gdb_argv.
3378 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3379 * infrun.c (handle_command): Use gdb_argv.
3380 * inferior.c (add_inferior_command, clone_inferior_command):
3381 Use gdb_argv.
3382 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3383 * exec.c (exec_file_command): Use gdb_argv.
3384 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3385 * compile/compile.c (build_argc_argv): Use gdb_argv.
3386
0d50bde3
TT
33872017-08-03 Tom Tromey <tom@tromey.com>
3388
3389 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3390
7f968c89
TT
33912017-08-03 Tom Tromey <tom@tromey.com>
3392
3393 * python/python.c (compute_python_string): Return std::string.
3394 (gdbpy_eval_from_control_command): Update.
3395 (do_start_initialization): Use std::string.
3396 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3397 xstrprintf.
3398 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3399 xstrprintf.
3400
3c9ebddd
TT
34012017-08-03 Tom Tromey <tom@tromey.com>
3402
3403 * top.h (do_restore_instream_cleanup): Remove.
3404 * top.c (do_restore_instream_cleanup): Remove.
3405 (read_command_file): Use scoped_restore.
3406 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3407
b51b225e
TT
34082017-08-03 Tom Tromey <tom@tromey.com>
3409
3410 * cli/cli-script.c (execute_user_command)
3411 (execute_control_command): Use scoped_restore.
3412
ac991630
TT
34132017-08-03 Tom Tromey <tom@tromey.com>
3414
3415 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3416 (execute_user_command): Remove user_call_depth; use
3417 user_args_stack's size instead.
3418
898e0c8e
TT
34192017-08-03 Tom Tromey <tom@tromey.com>
3420
3421 * top.h (in_user_command): Remove.
3422 * top.c (in_user_command): Remove.
3423 * cli/cli-script.c (do_restore_user_call_depth)
3424 (execute_user_command): Update.
3425
26fcd5d7
TT
34262017-08-03 Tom Tromey <tom@tromey.com>
3427
3428 * valops.c (search_struct_method): Use gdb::byte_vector.
3429 * valarith.c (value_concat): Use std::vector.
3430 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3431 (simple_search_memory): Likewise.
3432 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3433 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3434 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3435 * elfread.c (elf_rel_plt_read): Use std::string.
3436 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3437 * cli/cli-dump.c (restore_section_callback): Use
3438 gdb::byte_vector.
3439
7c218e6c
TT
34402017-08-03 Tom Tromey <tom@tromey.com>
3441
3442 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3443
31b68d4a
TT
34442017-08-03 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3447 (tui_register_format): Use scoped_restore.
3448
2ec845e7
TT
34492017-08-03 Tom Tromey <tom@tromey.com>
3450
3451 * reverse.c (exec_direction_default): Remove.
3452 (exec_reverse_once): Use scoped_restore.
3453 * remote.c (restore_remote_timeout): Remove.
3454 (remote_flash_erase, remote_flash_write, remote_flash_done)
3455 (readchar, remote_serial_write): Use scoped_restore.
3456 * cli/cli-script.c (struct source_cleanup_lines_args)
3457 (source_cleanup_lines): Remove.
3458 (script_from_file): Use scoped_restore.
3459 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3460 (source_command): Use scoped_restore.
3461
b3bc8453
TT
34622017-08-03 Tom Tromey <tom@tromey.com>
3463
3464 * utils.h (make_cleanup_free_so): Remove.
3465 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3466 * solist.h (struct so_deleter): New.
3467 (so_list_up): New typedef.
3468 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3469
e3ad2841
TT
34702017-08-03 Tom Tromey <tom@tromey.com>
3471
3472 * utils.h (make_cleanup_restore_current_language): Remove.
3473 * utils.c (do_restore_current_language)
3474 (make_cleanup_restore_current_language): Remove.
3475 * parse.c (parse_exp_in_context_1)
3476 (parse_expression_with_language): Use
3477 scoped_restore_current_language.
3478 * mi/mi-main.c (mi_cmd_execute): Use
3479 scoped_restore_current_language.
3480 * language.h (scoped_restore_current_language): New class.
3481
b80cf838
TT
34822017-08-03 Tom Tromey <tom@tromey.com>
3483
3484 * compile/compile.c (cleanup_unlink_file): Remove.
3485 (compile_to_object): Use gdb::unlinker.
3486 (eval_compile_command): Likewise.
3487
fad0444a
TT
34882017-08-03 Tom Tromey <tom@tromey.com>
3489
3490 * utils.h (make_cleanup_fclose): Remove.
3491 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3492
6e7bc05c
TT
34932017-08-03 Tom Tromey <tom@tromey.com>
3494
3495 * top.c (open_terminal_stream): Return gdb_file_up.
3496 (new_ui_command): Update.
3497
4a45905b
TT
34982017-08-03 Tom Tromey <tom@tromey.com>
3499
3500 * source.c (print_source_lines_base, forward_search_command)
3501 (reverse_search_command): Use gdb_file_up.
3502
7cd06d6e
TT
35032017-08-03 Tom Tromey <tom@tromey.com>
3504
3505 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3506
ed166945
TT
35072017-08-03 Tom Tromey <tom@tromey.com>
3508
3509 * cli/cli-cmds.c (find_and_open_script): Change return type.
3510 Remove "streamp" and "full_path" parameters.
3511 (source_script_with_search): Update.
3512 * auto-load.c (source_script_file): Update.
3513 * cli/cli-cmds.h (find_and_open_script): Change type.
3514 (open_script): New struct.
3515
d419f42d
TT
35162017-08-03 Tom Tromey <tom@tromey.com>
3517
3518 * xml-support.c (xml_fetch_content_from_file): Update.
3519 * ui-file.c (stdio_file::open): Update.
3520 * tracefile-tfile.c (tfile_start): Update.
3521 * remote.c (remote_file_put, remote_file_get): Update.
3522 * nat/linux-procfs.c (linux_proc_get_int)
3523 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3524 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3525 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3526 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3527 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3528 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3529 * linux-nat.c (linux_proc_pending_signals): Update.
3530 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3531 (file_closer): Remove.
3532 * compile/compile.c (compile_to_object): Update.
3533 * common/filestuff.h (struct gdb_file_deleter): New.
3534 (gdb_file_up): New typedef.
3535 (gdb_fopen_cloexec): Change return type.
3536 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3537 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3538 (dump_binary_file, restore_binary_file): Update.
3539 * auto-load.c (auto_load_objfile_script_1): Update.
3540
4a2b031d
TT
35412017-08-03 Tom Tromey <tom@tromey.com>
3542
3543 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3544 (info_static_tracepoint_markers_command): Likewise.
3545 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3546 * skip.c (skip_info): Use ui_out_emit_table.
3547 * progspace.c (print_program_space): Use ui_out_emit_table.
3548 * osdata.c (info_osdata): Use ui_out_emit_table.
3549 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3550 ui_out_emit_table.
3551 * linux-thread-db.c (info_auto_load_libthread_db): Use
3552 ui_out_emit_table.
3553 * inferior.c (print_inferior): Use ui_out_emit_table.
3554 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3555 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3556 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3557 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3558 * ui-out.h (class ui_out_emit_table): New.
3559
a4f320fd
MR
35602017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3561
3562 * mips-tdep.c (mips_fpu_type_str): New function.
3563 (mips_dump_tdep): Call it.
3564
a2f1f308
MR
35652017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3566
3567 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3568 `->mips_fpu_type'.
3569
7e5ed83b
XR
35702017-07-31 Xavier Roirand <roirand@adacore.com>
3571
3572 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3573
4c9dc811
XR
35742017-07-27 Xavier Roirand <roirand@adacore.com>
3575
3576 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3577
27d41eac
YQ
35782017-07-26 Yao Qi <yao.qi@linaro.org>
3579
3580 * cli/cli-cmds.c (maintenancechecklist): New variable.
3581 * gdbcmd.h (maintenancechecklist): Declare it.
3582 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3583 Call i386_linux_read_description with different masks.
3584 * maint.c (maintenance_check_command): New function.
3585 (_initialize_maint_cmds): Call add_prefix_cmd.
3586 * target-descriptions.c (tdesc_reg): override operator != and ==.
3587 (tdesc_type): Likewise.
3588 (tdesc_feature): Likewise.
3589 (target_desc): Likewise.
3590 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3591 (maintenance_check_xml_descriptions): New function.
3592 (_initialize_target_descriptions) Add command "xml-descriptions".
3593 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3594
ea03d0d3
YQ
35952017-07-26 Yao Qi <yao.qi@linaro.org>
3596
3597 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3598 Include features/i386/32bit-*.c.
3599 (i386_linux_read_description): Generate target description if it
3600 doesn't exist.
3601 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3602 functions.
3603 * features/i386/32bit-linux.c: Re-generated.
3604 * features/i386/32bit-sse.c: Likewise.
3605 * target-descriptions.c (print_c_feature::visit): Print code to
3606 set register number if needed.
3607 (print_c_feature) <m_next_regnum>: New field.
3608
25aa13e5
YQ
36092017-07-26 Yao Qi <yao.qi@linaro.org>
3610
3611 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3612 (FEATURE_XMLFILES): New.
3613 (FEATURE_CFILES): New.
3614 New rules.
3615 (clean-cfiles): Remove generated c files.
3616 * features/i386/32bit-avx.c: Generated.
3617 * features/i386/32bit-avx512.c: Generated.
3618 * features/i386/32bit-core.c: Generated.
3619 * features/i386/32bit-linux.c: Generated.
3620 * features/i386/32bit-mpx.c: Generated.
3621 * features/i386/32bit-pkeys.c: Generated.
3622 * features/i386/32bit-sse.c: Generated.
3623 * target-descriptions.c: Include algorithm.
3624 (tdesc_element_visitor): Add method visit_end.
3625 (print_c_tdesc): Implement visit_end.
3626 (print_c_tdesc:: m_filename_after_features): Move it to
3627 protected.
3628 (print_c_feature): New class.
3629 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3630 name starts with "i386/32bit-".
3631
6eb1e6a8
YQ
36322017-07-26 Yao Qi <yao.qi@linaro.org>
3633
3634 * target-descriptions.c (tdesc_element_visitor): New class.
3635 (tdesc_element): New class.
3636 (tdesc_reg): Inherit from tdesc_element.
3637 (tdesc_reg::accept): New function.
3638 (tdesc_type): Inherit from tdesc_element.
3639 (tdesc_type::accept): New function.
3640 (tdesc_feature): Inherit from tdesc_element.
3641 (tdesc_feature::accept): New function.
3642 (target_desc): Inherit from tdesc_element.
3643 (target_desc::target_desc): New.
3644 (target_desc::~target_desc): New.
3645 (target_desc::accept): New.
3646 (allocate_target_description): Use new.
3647 (free_target_description): Use delete.
3648 (print_c_tdesc): New class.
3649 (maint_print_c_tdesc_cmd): Adjust.
3650
3651 * features/aarch64.c: Re-generated.
3652 * features/arc-arcompact.c: Re-generated.
3653 * features/arc-v2.c: Re-generated.
3654 * features/arm/arm-with-iwmmxt.c: Re-generated.
3655 * features/arm/arm-with-m.c: Re-generated.
3656 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3657 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3658 * features/arm/arm-with-neon.c: Re-generated.
3659 * features/arm/arm-with-vfpv2.c: Re-generated.
3660 * features/arm/arm-with-vfpv3.c: Re-generated.
3661 * features/i386/amd64-avx-avx512.c: Re-generated.
3662 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3663 * features/i386/amd64-avx.c: Re-generated.
3664 * features/i386/amd64-avx-linux.c: Re-generated.
3665 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3666 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3667 * features/i386/amd64-avx-mpx.c: Re-generated.
3668 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3669 * features/i386/amd64.c: Re-generated.
3670 * features/i386/amd64-linux.c: Re-generated.
3671 * features/i386/amd64-mpx.c: Re-generated.
3672 * features/i386/amd64-mpx-linux.c: Re-generated.
3673 * features/i386/i386-avx-avx512.c: Re-generated.
3674 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3675 * features/i386/i386-avx.c: Re-generated.
3676 * features/i386/i386-avx-linux.c: Re-generated.
3677 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3678 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3679 * features/i386/i386-avx-mpx.c: Re-generated.
3680 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3681 * features/i386/i386.c: Re-generated.
3682 * features/i386/i386-linux.c: Re-generated.
3683 * features/i386/i386-mmx.c: Re-generated.
3684 * features/i386/i386-mmx-linux.c: Re-generated.
3685 * features/i386/i386-mpx.c: Re-generated.
3686 * features/i386/i386-mpx-linux.c: Re-generated.
3687 * features/i386/x32-avx-avx512.c: Re-generated.
3688 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3689 * features/i386/x32-avx.c: Re-generated.
3690 * features/i386/x32-avx-linux.c: Re-generated.
3691 * features/i386/x32.c: Re-generated.
3692 * features/i386/x32-linux.c: Re-generated.
3693 * features/microblaze.c: Re-generated.
3694 * features/microblaze-with-stack-protect.c: Re-generated.
3695 * features/mips64-dsp-linux.c: Re-generated.
3696 * features/mips64-linux.c: Re-generated.
3697 * features/mips-dsp-linux.c: Re-generated.
3698 * features/mips-linux.c: Re-generated.
3699 * features/nds32.c: Re-generated.
3700 * features/nios2.c: Re-generated.
3701 * features/nios2-linux.c: Re-generated.
3702 * features/rs6000/powerpc-32.c: Re-generated.
3703 * features/rs6000/powerpc-32l.c: Re-generated.
3704 * features/rs6000/powerpc-403.c: Re-generated.
3705 * features/rs6000/powerpc-403gc.c : Re-generated.
3706 * features/rs6000/powerpc-405.c: Re-generated.
3707 * features/rs6000/powerpc-505.c: Re-generated.
3708 * features/rs6000/powerpc-601.c: Re-generated.
3709 * features/rs6000/powerpc-602.c: Re-generated.
3710 * features/rs6000/powerpc-603.c: Re-generated.
3711 * features/rs6000/powerpc-604.c: Re-generated.
3712 * features/rs6000/powerpc-64.c: Re-generated.
3713 * features/rs6000/powerpc-64l.c: Re-generated.
3714 * features/rs6000/powerpc-7400.c: Re-generated.
3715 * features/rs6000/powerpc-750.c: Re-generated.
3716 * features/rs6000/powerpc-860.c: Re-generated.
3717 * features/rs6000/powerpc-altivec32.c: Re-generated.
3718 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3719 * features/rs6000/powerpc-altivec64.c: Re-generated.
3720 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3721 * features/rs6000/powerpc-cell32l.c: Re-generated.
3722 * features/rs6000/powerpc-cell64l.c: Re-generated.
3723 * features/rs6000/powerpc-e500.c: Re-generated.
3724 * features/rs6000/powerpc-e500l.c: Re-generated.
3725 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3726 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3727 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3728 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3729 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3730 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3731 * features/rs6000/powerpc-vsx32.c: Re-generated.
3732 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3733 * features/rs6000/powerpc-vsx64.c: Re-generated.
3734 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3735 * features/rs6000/rs6000.c: Re-generated.
3736 * features/s390-linux32.c: Re-generated.
3737 * features/s390-linux32v1.c: Re-generated.
3738 * features/s390-linux32v2.c: Re-generated.
3739 * features/s390-linux64.c: Re-generated.
3740 * features/s390-linux64v1.c: Re-generated.
3741 * features/s390-linux64v2.c: Re-generated.
3742 * features/s390-te-linux64.c: Re-generated.
3743 * features/s390-tevx-linux64.c: Re-generated.
3744 * features/s390-vx-linux64.c: Re-generated.
3745 * features/s390x-linux64.c: Re-generated.
3746 * features/s390x-linux64v1.c: Re-generated.
3747 * features/s390x-linux64v2.c: Re-generated.
3748 * features/s390x-te-linux64.c: Re-generated.
3749 * features/s390x-tevx-linux64.c: Re-generated.
3750 * features/s390x-vx-linux64.c: Re-generated.
3751 * features/sparc/sparc32-solaris.c: Re-generated.
3752 * features/sparc/sparc64-solaris.c: Re-generated.
3753 * features/tic6x-c62x.c: Re-generated.
3754 * features/tic6x-c62x-linux.c: Re-generated.
3755 * features/tic6x-c64x.c: Re-generated.
3756 * features/tic6x-c64x-linux.c: Re-generated.
3757 * features/tic6x-c64xp.c: Re-generated.
3758 * features/tic6x-c64xp-linux.c: Re-generated.
3759
35b4818d
YQ
37602017-07-26 Yao Qi <yao.qi@linaro.org>
3761
3762 * i386-linux-tdep.c (i386_linux_read_description): New function.
3763 (i386_linux_core_read_description): Call
3764 i386_linux_read_description.
3765 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3766 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3767 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3768 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3769 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3770 * x86-linux-nat.c (x86_linux_read_description): Call
3771 i386_linux_read_description.
3772
8e2141c6
YQ
37732017-07-26 Yao Qi <yao.qi@linaro.org>
3774
3775 * NEWS: Mention it.
3776 * features/Makefile (%.c: %.xml): Pass the xml file name to
3777 command "maint print c-tdesc".
3778 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3779 name from 'arg'.
3780
b468ff4c
YQ
37812017-07-26 Yao Qi <yao.qi@linaro.org>
3782
3783 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3784 in-class initialization.
3785 (tdesc_create_feature): Call new instead of XCNEW.
3786 (free_target_description): Ue delete.
3787
b9c0e1b4
JB
37882017-07-25 John Baldwin <jhb@FreeBSD.org>
3789
3790 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3791
a04b5337
YQ
37922017-07-25 Yao Qi <yao.qi@linaro.org>
3793
3794 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3795 constant.
3796 (amd64_x32_init_abi): Likewise.
3797 * amd64-tdep.h (amd64_init_abi): Update declaration.
3798 (amd64_x32_init_abi): Likewise.
3799
02ad7fc2
YQ
38002017-07-25 Yao Qi <yao.qi@linaro.org>
3801
3802 PR tdep/21717
3803 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3804 condition for FPSCR.
3805 (arm_linux_store_inferior_registers): Likewise.
3806
b6f48cb0
TT
38072017-07-22 Tom Tromey <tom@tromey.com>
3808
3809 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3810 <syscalls_counts>: Now a std::vector.
3811 (get_catch_syscall_inferior_data): Use "new".
3812 (catch_syscall_inferior_data_cleanup): Use "delete".
3813 (insert_catch_syscall, remove_catch_syscall)
3814 (clear_syscall_counts): Update.
3815
e12c9b7a
TT
38162017-07-22 Tom Tromey <tom@tromey.com>
3817
3818 * break-catch-syscall.c (syscall_catchpoint)
3819 <syscalls_to_be_caught>: Now a std::vector<int>
3820 (~syscall_catchpoint): Remove.
3821 (insert_catch_syscall, remove_catch_syscall)
3822 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3823 (print_mention_catch_syscall, print_recreate_catch_syscall):
3824 Update.
3825 (create_syscall_event_catchpoint): Change type of "filter"
3826 parameter.
3827 (catch_syscall_split_args): Return a std::vector.
3828 (catch_syscall_command_1, catching_syscall_number_1): Update.
3829
4fa8aeac
TT
38302017-07-22 Tom Tromey <tom@tromey.com>
3831
3832 * break-catch-throw.c (struct exception_catchpoint)
3833 <exception_rx>: Now a std::string.
3834 (~exception_catchpoint): Remove.
3835 (print_one_detail_exception_catchpoint): Update.
3836 (handle_gnu_v3_exceptions): Change type of except_rx.
3837 (extract_exception_regexp): Return a std::string.
3838 (catch_exception_command_1): Update.
3839
f746a154
TT
38402017-07-22 Tom Tromey <tom@tromey.com>
3841
3842 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3843 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3844 std::vector.
3845 <catch_all>: Now a bool.
3846 (~signal_catchpoint): Remove.
3847 (signal_catchpoint_insert_location)
3848 (signal_catchpoint_remove_location)
3849 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3850 (signal_catchpoint_print_mention)
3851 (signal_catchpoint_print_recreate)
3852 (signal_catchpoint_explains_signal): Update.
3853 (create_signal_catchpoint): Change type of "filter" and
3854 "catch_all".
3855 (catch_signal_split_args): Return a std::vector. Change type of
3856 "catch_all".
3857 (catch_signal_command): Update.
3858
47e77640
PA
38592017-07-20 Pedro Alves <palves@redhat.com>
3860
3861 * ada-lang.c (ada_language_defn): Make extern.
3862 (_initialize_ada_language): Remove add_language call.
3863 * c-lang.c (c_language_defn, cplus_language_defn)
3864 (asm_language_defn, minimal_language_defn): Make extern.
3865 (_initialize_c_language): Delete.
3866 * completer.c (compare_cstrings): Delete, moved to utils.h.
3867 * d-lang.c (d_language_defn): Make extern.
3868 (_initialize_d_language): Remove add_language calls.
3869 * defs.h (enum language): Add comment.
3870 * f-lang.c (f_language_defn): Make extern.
3871 (_initialize_f_language): Remove add_language call.
3872 * go-lang.c (go_language_defn): Make extern.
3873 (_initialize_go_language): Remove add_language call.
3874 * language.c: Include <algorithm>.
3875 (languages): Redefine as const array.
3876 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3877 (set_language_command): Handle "local". Use for-range loop.
3878 (set_language): Remove loop.
3879 (language_enum): Rewrite.
3880 (language_def, language_str): Remove loops.
3881 (add_language): Delete.
3882 (add_set_language_command): New, based on add_languages.
3883 (skip_language_trampoline): Adjust.
3884 (local_language_defn): Delete.
3885 (language_gdbarch_post_init): Adjust.
3886 (_initialize_language): Remove add_language calls. Call
3887 add_set_language_command.
3888 * language.h (add_language): Delete.
3889 (auto_language_defn)
3890 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3891 (asm_language_defn, c_language_defn, cplus_language_defn)
3892 (d_language_defn, f_language_defn, go_language_defn)
3893 (m2_language_defn, objc_language_defn, opencl_language_defn)
3894 (pascal_language_defn, rust_language_defn): Declare.
3895 * m2-lang.c (m2_language_defn): Make extern.
3896 (_initialize_m2_language): Remove add_language call.
3897 * objc-lang.c (objc_language_defn): Make extern.
3898 (_initialize_objc_language): Remove add_language call.
3899 * opencl-lang.c (opencl_language_defn): Make extern.
3900 (_initialize_opencl_language): Remove add_language call.
3901 * p-lang.c (pascal_language_defn): Make extern.
3902 (_initialize_pascal_language): Delete.
3903 * rust-lang.c (rust_language_defn): Make extern.
3904 (_initialize_rust_language): Delete.
3905 * utils.h (compare_cstrings): New static inline function.
3906
edb0c9cb
PA
39072017-07-20 Pedro Alves <palves@redhat.com>
3908
3909 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3910 (get_var_value): Constify parameters.
3911 (get_int_var_value): Change prototype.
3912 (to_fixed_range_type): Adjust.
3913 * ada-lang.h (get_int_var_value): Change prototype.
3914
a778f165
PA
39152017-07-20 Pedro Alves <palves@redhat.com>
3916
3917 * dwarf2read.c (dw2_lookup_symbol): Use
3918 SYMBOL_MATCHES_SEARCH_NAME.
3919 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3920
42edd901
PA
39212017-07-20 Pedro Alves <palves@redhat.com>
3922
3923 * block.c (block_iter_name_step, block_iter_name_first)
3924 (block_iter_name_next): Delete.
3925 (block_lookup_symbol_primary): Adjust to use
3926 dict_iter_match_first/dict_iter_match_next.
3927 * block.h (block_iter_name_first, block_iter_name_next): Delete
3928 declarations.
3929 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3930 dict_iter_match_first/dict_iter_match_next.
3931
cf325299
PA
39322017-07-20 Pedro Alves <palves@redhat.com>
3933
3934 * cp-support.c (cp_find_first_component_aux): Add missing case for
3935 end of string.
3936
c5ed0576
DB
39372017-07-18 David Blaikie <dblaikie@gmail.com>
3938
3939 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3940 of dwo_cu's dwo_file.
3941
27841e76
YQ
39422017-07-18 Yao Qi <yao.qi@linaro.org>
3943
3944 * remote.c (store_registers_using_G): Remove one line comment.
3945
cfb7e58b
YQ
39462017-07-18 Yao Qi <yao.qi@linaro.org>
3947
3948 * regcache.c (regcache_cpy): Simplify it.
3949 (regcache::cpy_no_passthrough): Remove it.
3950 * regcache.h (cpy_no_passthrough): Remove it.
3951 (regcache_dup, regcache_cpy): Update comments.
3952
386535dd
PA
39532017-07-18 Pedro Alves <palves@redhat.com>
3954
3955 * remote-sim.c (sim_command_completer): Adjust to work with a
3956 completion_tracker instead of a VEC.
3957
c45ec17c
PA
39582017-07-17 Pedro Alves <palves@redhat.com>
3959
3960 * completer.c (complete_source_filenames): New function.
3961 (complete_address_and_linespec_locations): New function.
3962 (location_completer): Use complete_address_and_linespec_locations.
3963 (completion_tracker::build_completion_result): Honor the tracker's
3964 request to suppress append.
3965 * completer.h (completion_tracker::suppress_append_ws)
3966 (completion_tracker::set_suppress_append_ws): New methods.
3967 (completion_tracker::m_suppress_append_ws): New field.
3968 (complete_source_filenames): New declaration.
3969 * linespec.c (linespec_complete_what): New.
3970 (struct ls_parser) <complete_what, completion_word,
3971 completion_quote_char, completion_quote_end, completion_tracker>:
3972 New fields.
3973 (string_find_incomplete_keyword_at_end): New.
3974 (linespec_lexer_lex_string): Record quote char. If in completion
3975 mode, don't throw.
3976 (linespec_lexer_consume_token): Advance the completion word point.
3977 (linespec_lexer_peek_token): Save/restore completion info.
3978 (save_stream_and_consume_token): New.
3979 (set_completion_after_number): New.
3980 (linespec_parse_basic): Set what to complete next depending on
3981 token. Handle function and label completions specially.
3982 (parse_linespec): Disable objc shortcut in completion mode. Set
3983 what to complete next depending on token type. Skip keyword if in
3984 completion mode.
3985 (complete_linespec_component, linespec_complete): New.
3986 * linespec.h (linespec_complete): Declare.
3987
be966d42
PA
39882017-07-17 Pedro Alves <palves@redhat.com>
3989
3990 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3991 Handle 'operator<' / 'operator<<'.
3992
a2459270
PA
39932017-07-17 Pedro Alves <palves@redhat.com>
3994
3995 * completer.c (collect_explicit_location_matches): Handle
3996 MATCH_LABEL.
3997 (convert_explicit_location_to_linespec): New, factored out from
3998 ...
3999 (convert_explicit_location_to_sals): ... this.
4000 (complete_label): New.
4001 (linespec_complete_label, find_label_symbols_in_block): New.
4002 (find_label_symbols): Add completion_mode parameter and adjust to
4003 call find_label_symbols_in_block.
4004 * linespec.h (linespec_complete_label): Declare.
4005
c6756f62
PA
40062017-07-17 Pedro Alves <palves@redhat.com>
4007
4008 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4009 complete_symbol_mode parameter.
4010 * cli/cli-cmds.c (complete_command): Get the completion result out
4011 of the handle_brkchars tracker if used a custom word point.
4012 * completer.c: Include "linespec.h".
4013 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4014 (advance_to_expression_complete_word_point): New.
4015 (completion_tracker::completes_to_completion_word): New.
4016 (complete_files_symbols): Pass down
4017 complete_symbol_mode::EXPRESSION.
4018 (explicit_options, probe_options): New.
4019 (collect_explicit_location_matches): Complete on the
4020 explictit_loc->foo instead of word. Use
4021 linespec_complete_function. Handle MATCH_LINE. Handle offering
4022 keyword and options completions.
4023 (backup_text_ptr): Delete.
4024 (skip_keyword): New.
4025 (complete_explicit_location): Remove 'word' parameter. Add
4026 language, quoted_arg_start and quoted_arg_end parameters.
4027 Rewrite, parsing left to right.
4028 (location_completer): Rewrite.
4029 (location_completer_handle_brkchars): New function.
4030 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4031 (enum complete_line_internal_reason): Adjust comments.
4032 (completion_tracker::discard_completions): New.
4033 (completer_handle_brkchars_func_for_completer): Handle
4034 location_completer.
4035 (gdb_custom_word_point_brkchars)
4036 (gdb_org_rl_basic_quote_characters): New.
4037 (gdb_completion_word_break_characters_throw)
4038 (completion_find_completion_word): Handle trackers that use a
4039 custom word point.
4040 (completion_tracker::advance_custom_word_point_by): New.
4041 (completion_tracker::build_completion_result): Don't rely on
4042 readline appending the quote char.
4043 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4044 use a custom word point.
4045 (gdb_rl_attempted_completion_function): Restore
4046 rl_basic_quote_characters.
4047 * completer.h (class completion_tracker): Extend intro comment.
4048 (completion_tracker::set_quote_char)
4049 (completion_tracker::quote_char)
4050 (completion_tracker::set_use_custom_word_point)
4051 (completion_tracker::use_custom_word_point)
4052 (completion_tracker::custom_word_point)
4053 (completion_tracker::set_custom_word_point)
4054 (completion_tracker::advance_custom_word_point_by)
4055 (completion_tracker::completes_to_completion_word)
4056 (completion_tracker::discard_completions): New methods.
4057 (completion_tracker::m_quote_char)
4058 (completion_tracker::m_use_custom_word_point)
4059 (completion_tracker::m_custom_word_point): New fields.
4060 (advance_to_expression_complete_word_point): Declare.
4061 * f-lang.c (f_collect_symbol_completion_matches): Add
4062 complete_symbol_mode parameter.
4063 * language.h (struct language_defn)
4064 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4065 parameter.
4066 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4067 (linespec_complete_function): New function.
4068 (linespec_lexer_lex_keyword): Adjust.
4069 * linespec.h (linespec_keywords, linespec_complete_function): New
4070 declarations.
4071 * location.c (find_end_quote): New function.
4072 (explicit_location_lex_one): Add explicit_completion_info
4073 parameter. Save quoting info. Don't throw if being called for
4074 completion. Don't handle Ada operators here.
4075 (is_cp_operator, skip_op_false_positives, first_of)
4076 (explicit_location_lex_one_function): New function.
4077 (string_to_explicit_location): Replace 'dont_throw' parameter with
4078 an explicit_completion_info pointer parameter. Handle it. Don't
4079 use explicit_location_lex_one to lex function names. Use
4080 explicit_location_lex_one_function instead.
4081 * location.h (struct explicit_completion_info): New.
4082 (string_to_explicit_location): Replace 'dont_throw' parameter with
4083 an explicit_completion_info pointer parameter.
4084 * symtab.c (default_collect_symbol_completion_matches_break_on):
4085 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4086 (default_collect_symbol_completion_matches)
4087 (collect_symbol_completion_matches): Add complete_symbol_mode
4088 parameter.
4089 (collect_symbol_completion_matches_type): Pass down
4090 complete_symbol_mode::EXPRESSION.
4091 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4092 parameter. Handle LINESPEC mode.
4093 * symtab.h (complete_symbol_mode): New.
4094 (default_collect_symbol_completion_matches_break_on)
4095 (default_collect_symbol_completion_matches)
4096 (collect_symbol_completion_matches)
4097 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4098 parameter.
4099
1d550c82
PA
41002017-07-17 Pedro Alves <palves@redhat.com>
4101
4102 * utils.c (enum class strncmp_iw_mode): New.
4103 (strcmp_iw): Rename to ...
4104 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4105 parameters. Handle them.
4106 (strncmp_iw): New.
4107 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4108 * utils.h (strncmp_iw): Declare.
4109 (strcmp_iw): Move describing comments here.
4110
8090b426
PA
41112017-07-17 Pedro Alves <palves@redhat.com>
4112
4113 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4114 CP_OPERATOR_STR.
4115 * c-typeprint.c (is_type_conversion_operator): Use
4116 CP_OPERATOR_STR.
4117 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4118 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4119 CP_OPERATOR_LEN.
4120 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4121 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4122 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4123 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4124 CP_OPERATOR_STR.
4125 * location.c: Include "cp-support.h".
4126 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4127 CP_OPERATOR_STR.
4128 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4129 CP_OPERATOR_LEN.
4130
6a2c1b87
PA
41312017-07-17 Pedro Alves <palves@redhat.com>
4132
4133 * cli/cli-cmds.c (complete_command): Use a completion tracker
4134 along with completion_find_completion_word for handle_brkchars
4135 phase.
4136 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4137 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4138 (struct gdb_rl_completion_word_info): New.
4139 (gdb_rl_find_completion_word): New.
4140 (completion_find_completion_word): New.
4141 * completer.h (completion_find_completion_word): Declare.
4142
eb3ff9a5
PA
41432017-07-17 Pedro Alves <palves@redhat.com>
4144
4145 * ada-lang.c (symbol_completion_match): Adjust comments.
4146 (symbol_completion_add): Replace vector parameter with
4147 completion_tracker parameter. Use it.
4148 (ada_make_symbol_completion_list): Rename to...
4149 (ada_collect_symbol_completion_matches): ... this. Add
4150 completion_tracker parameter and use it.
4151 (ada_language_defn): Adjust.
4152 * break-catch-syscall.c (catch_syscall_completer): Adjust
4153 prototype and work with completion_tracker instead of VEC.
4154 * breakpoint.c (condition_completer): Adjust prototype and work
4155 with completion_tracker instead of VEC.
4156 * c-lang.c (c_language_defn, cplus_language_defn)
4157 (asm_language_defn, minimal_language_defn): Adjust to renames.
4158 * cli/cli-cmds.c (complete_command): Rework using
4159 completion_tracker. Catch exceptions when completing.
4160 * cli/cli-decode.c (integer_unlimited_completer)
4161 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4162 with completion_tracker instead of VEC.
4163 * command.h (struct completion_tracker): Forward declare.
4164 (completer_ftype, completer_handle_brkchars_ftype): Change
4165 types.
4166 (complete_on_cmdlist, complete_on_enum): Adjust.
4167 * completer.c: Include <algorithm>.
4168 (struct gdb_completer_state): New.
4169 (current_completion): New global.
4170 (readline_line_completion_function): Delete.
4171 (noop_completer, filename_completer)
4172 (filename_completer_handle_brkchars, complete_files_symbols)
4173 (linespec_location_completer): Adjust to work with a
4174 completion_tracker instead of a VEC.
4175 (string_or_empty): New.
4176 (collect_explicit_location_matches): Adjust to work with a
4177 completion_tracker instead of a VEC.
4178 (explicit_location_completer): Rename to ...
4179 (complete_explicit_location): ... this and adjust to work with a
4180 completion_tracker instead of a VEC.
4181 (location_completer): Adjust to work with a completion_tracker
4182 instead of a VEC.
4183 (add_struct_fields): Adjust to work with a completion_list instead
4184 of VEC.
4185 (expression_completer): Rename to ...
4186 (complete_expression): ... this and adjust to work with a
4187 completion_tracker instead of a VEC. Use complete_files_symbols.
4188 (expression_completer): Reimplement on top of complete_expression.
4189 (symbol_completer): Adjust to work with a completion_tracker
4190 instead of a VEC.
4191 (enum complete_line_internal_reason): Add describing comments.
4192 (complete_line_internal_normal_command): Adjust to work with a
4193 completion_tracker instead of a VEC.
4194 (complete_line_internal): Rename to ...
4195 (complete_line_internal_1): ... this and adjust to work with a
4196 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4197 handle_brkchars phase.
4198 (new_completion_tracker): Delete.
4199 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4200 complete_line_internal_1.
4201 (free_completion_tracker): Delete.
4202 (INITIAL_COMPLETION_HTAB_SIZE): New.
4203 (completion_tracker::completion_tracker)
4204 (completion_tracker::~completion_tracker): New.
4205 (maybe_add_completion): Delete.
4206 (completion_tracker::maybe_add_completion)
4207 (completion_tracker::add_completion)
4208 (completion_tracker::add_completions): New.
4209 (throw_max_completions_reached_error): Delete.
4210 (complete_line): Adjust to work with a completion_tracker instead
4211 of a VEC. Don't create a completion_tracker_t or check for max
4212 completions here.
4213 (command_completer, command_completer_handle_brkchars)
4214 (signal_completer, reg_or_group_completer_1)
4215 (reg_or_group_completer, default_completer_handle_brkchars):
4216 Adjust to work with a completion_tracker.
4217 (gdb_completion_word_break_characters_throw): New.
4218 (gdb_completion_word_break_characters): Reimplement.
4219 (line_completion_function): Delete.
4220 (completion_tracker::recompute_lowest_common_denominator)
4221 (expand_preserving_ws)
4222 (completion_tracker::build_completion_result)
4223 (completion_result::completion_result)
4224 (completion_result::completion_result)
4225 (completion_result::~completion_result)
4226 (completion_result::completion_result)
4227 (completion_result::release_match_list, compare_cstrings)
4228 (completion_result::sort_match_list)
4229 (completion_result::reset_match_list)
4230 (gdb_rl_attempted_completion_function_throw)
4231 (gdb_rl_attempted_completion_function): New.
4232 * completer.h (completion_list, struct completion_result)
4233 (class completion_tracker): New.
4234 (complete_line): Add completion_tracker parameter.
4235 (readline_line_completion_function): Delete.
4236 (gdb_rl_attempted_completion_function): New.
4237 (noop_completer, filename_completer, expression_completer)
4238 (location_completer, symbol_completer, command_completer)
4239 (signal_completer, reg_or_group_completer): Update prototypes.
4240 (completion_tracker_t, new_completion_tracker)
4241 (make_cleanup_free_completion_tracker): Delete.
4242 (enum maybe_add_completion_enum): Delete.
4243 (maybe_add_completion): Delete.
4244 (throw_max_completions_reached_error): Delete.
4245 * corefile.c (complete_set_gnutarget): Adjust to work with a
4246 completion_tracker instead of a VEC.
4247 * cp-abi.c (cp_abi_completer): Adjust to work with a
4248 completion_tracker instead of a VEC.
4249 * d-lang.c (d_language_defn): Adjust.
4250 * disasm.c (disassembler_options_completer): Adjust to work with a
4251 completion_tracker instead of a VEC.
4252 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4253 (f_collect_symbol_completion_matches): ... this. Adjust to work
4254 with a completion_tracker instead of a VEC.
4255 (f_language_defn): Adjust.
4256 * go-lang.c (go_language_defn): Adjust.
4257 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4258 Adjust to work with a completion_tracker instead of a VEC.
4259 * infrun.c (handle_completer): Likewise.
4260 * interps.c (interpreter_completer): Likewise.
4261 * interps.h (interpreter_completer): Likewise.
4262 * language.c (unknown_language_defn, auto_language_defn)
4263 (local_language_defn): Adjust.
4264 * language.h (language_defn::la_make_symbol_completion_list):
4265 Rename to ...
4266 (language_defn::la_collect_symbol_completion_matches): ... this
4267 and adjust to work with a completion_tracker instead of a VEC.
4268 * m2-lang.c (m2_language_defn): Adjust.
4269 * objc-lang.c (objc_language_defn): Adjust.
4270 * opencl-lang.c (opencl_language_defn): Adjust.
4271 * p-lang.c (pascal_language_defn): Adjust.
4272 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4273 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4274 with a completion_tracker.
4275 * rust-lang.c (rust_language_defn): Adjust.
4276 * symtab.c (free_completion_list, do_free_completion_list)
4277 (return_val, completion_tracker): Delete.
4278 (completion_list_add_name, completion_list_add_symbol)
4279 (completion_list_add_msymbol, completion_list_objc_symbol)
4280 (completion_list_add_fields, add_symtab_completions): Add
4281 completion_tracker parameter and use it.
4282 (default_make_symbol_completion_list_break_on_1): Rename to...
4283 (default_collect_symbol_completion_matches_break_on): ... this.
4284 Add completion_tracker parameter and use it instead of allocating
4285 a completion tracker here.
4286 (default_make_symbol_completion_list_break_on): Delete old
4287 implementation.
4288 (default_make_symbol_completion_list): Delete.
4289 (default_collect_symbol_completion_matches): New.
4290 (make_symbol_completion_list): Delete.
4291 (collect_symbol_completion_matches): New.
4292 (make_symbol_completion_type): Rename to ...
4293 (collect_symbol_completion_matches_type): ... this. Add
4294 completion_tracker parameter and use it instead of VEC.
4295 (make_file_symbol_completion_list_1): Rename to...
4296 (collect_file_symbol_completion_matches): ... this. Add
4297 completion_tracker parameter and use it instead of VEC.
4298 (make_file_symbol_completion_list): Delete.
4299 (add_filename_to_list): Use completion_list instead of a VEC.
4300 (add_partial_filename_data::list): Now a completion_list.
4301 (make_source_files_completion_list): Work with a completion_list
4302 instead of a VEC.
4303 * symtab.h: Include "completer.h".
4304 (default_make_symbol_completion_list_break_on)
4305 (default_make_symbol_completion_list, make_symbol_completion_list)
4306 (make_symbol_completion_type, make_file_symbol_completion_list)
4307 (make_source_files_completion_list): Delete.
4308 (default_collect_symbol_completion_matches_break_on)
4309 (default_collect_symbol_completion_matches)
4310 (collect_symbol_completion_matches)
4311 (collect_symbol_completion_matches_type)
4312 (collect_file_symbol_completion_matches)
4313 (make_source_files_completion_list): New.
4314 * top.c (init_main): Don't install a rl_completion_entry_function
4315 hook. Install a rl_attempted_completion_function hook instead.
4316 * tui/tui-layout.c (layout_completer): Adjust to work with a
4317 completion_tracker.
4318 * tui/tui-regs.c (tui_reggroup_completer):
4319 * tui/tui-win.c (window_name_completer, focus_completer)
4320 (winheight_completer): Adjust to work with a completion_tracker.
4321 * value.c: Include "completer.h".
4322 (complete_internalvar): Adjust to work with a completion_tracker.
4323 * value.h (complete_internalvar): Likewise.
4324
6e1dbf8c
PA
43252017-07-17 Pedro Alves <palves@redhat.com>
4326
4327 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4328 renames.
4329 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4330 comments to completer_ftype's declaration.
4331 <completer_handle_brkchars>: Change type to
4332 completer_handle_brkchars_ftype.
4333 * command.h (completer_ftype): Add describing comment and give
4334 names to parameters.
4335 (completer_ftype_void): Rename to ...
4336 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4337 (set_cmd_completer_handle_brkchars): Adjust.
4338 * completer.c (filename_completer_handle_brkchars): New function.
4339 (complete_line_internal_normal_command): New function, factored
4340 out from ...
4341 (complete_line_internal): ... here.
4342 (command_completer_handle_brkchars)
4343 (default_completer_handle_brkchars)
4344 (completer_handle_brkchars_func_for_completer): New functions.
4345 * completer.h (set_gdb_completion_word_break_characters): Delete
4346 declaration.
4347 (completer_handle_brkchars_func_for_completer): New declaration.
4348 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4349 completer_handle_brkchars_func_for_completer.
4350
78b13106
PA
43512017-07-17 Pedro Alves <palves@redhat.com>
4352
4353 * completer.c (symbol_completer): New function, based on
4354 make_symbol_completion_list_fn.
4355 * completer.h (symbol_completer): New declaration.
4356 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4357 * python/py-cmd.c (completers): Adjust.
4358 * symtab.c (make_symbol_completion_list_fn): Delete.
4359 * symtab.h (make_symbol_completion_list_fn): Delete.
4360 * cli/cli-decode.c (add_cmd): Adjust.
4361
bbf2f4df
PA
43622017-07-17 Pedro Alves <palves@redhat.com>
4363
4364 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4365 * dwarf2read.c: Include "filename-seen-cache.h".
4366 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4367 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4368 * filename-seen-cache.c: New file.
4369 * filename-seen-cache.h: New file.
4370 * symtab.c: Include "filename-seen-cache.h".
4371 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4372 (create_filename_seen_cache, clear_filename_seen_cache)
4373 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4374 to filename-seen-cache.h/filename-seen-cache.c.
4375 (output_source_filename, sources_info)
4376 (maybe_add_partial_symtab_filename)
4377 (make_source_files_completion_list): Adjust to use
4378 filename_seen_cache.
4379
330cdd98
PA
43802017-07-17 Pedro Alves <palves@redhat.com>
4381
4382 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4383 fields.
4384 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4385 dwarf2_debug_sections*)): New.
4386 (dwarf2_per_objfile::dwarf2_per_objfile(const
4387 dwarf2_per_objfile&)): Declare as deleted.
4388 (dwarf2_per_objfile::operator=): Declare as deleted.
4389 (dwarf2_per_objfile::dwarf2_per_objfile)
4390 (dwarf2_per_objfile::~dwarf2_per_objfile)
4391 (dwarf2_per_objfile::free_cached_comp_units): New.
4392 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4393 ctor. Call dwarf2_per_objfile's ctor manually.
4394 (dwarf2_locate_sections): Deleted/refactored as ...
4395 (dwarf2_per_objfile::locate_sections): ... this new method.
4396 (free_cached_comp_units): Defer to
4397 dwarf2_per_objfile::free_cached_comp_units.
4398 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4399
8880f2a9
TT
44002017-07-14 Tom Tromey <tom@tromey.com>
4401
4402 PR rust/21764:
4403 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4404 parameter.
4405 <UNOP_SIZEOF>: Split into separate case.
4406 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4407
65547233
TT
44082017-07-14 Tom Tromey <tom@tromey.com>
4409
4410 PR rust/21763:
4411 * symtab.c (symbol_matches_domain): Add language_rust to special
4412 case.
4413 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4414 treat LOC_TYPEDEF symbols as variables.
4415
8f14146e
PA
44162017-07-14 Pedro Alves <palves@redhat.com>
4417
4418 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4419 symtabs matching all symtabs with SRCFILE as file name instead of
4420 only considering the first hit, with lookup_symtab.
4421
2347965c
SM
44222017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4423
4424 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4425 operator_name parameters.
4426 (gen_expr): Update function call.
4427
40f4af28
SM
44282017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4429
4430 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4431 parameter.
4432 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4433 Likewise.
4434 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4435 parameter, use agent_expr::gdbarch instead, update function
4436 calls.
4437 (locexpr_tracepoint_var_ref): Likewise.
4438 (loclist_tracepoint_var_ref): Likewise.
4439 * ax-gdb.c (gen_trace_static_fields): Likewise.
4440 (gen_traced_pop): Likewise.
4441 (gen_frame_args_address): Likewise.
4442 (gen_frame_locals_address): Likewise.
4443 (gen_var_ref): Likewise.
4444 (gen_struct_ref_recursive): Likewise.
4445 (gen_static_field): Likewise.
4446 (gen_maybe_namespace_elt): Likewise.
4447 (gen_expr): Likewise.
4448 (gen_trace_for_var): Likewise.
4449 (gen_trace_for_expr): Likewise.
4450 (gen_trace_for_return_address): Likewise.
4451
053f8057
SM
44522017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4453
4454 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4455 parameter.
4456 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4457
6661ad48
SM
44582017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4459
4460 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4461 from ax, update calls.
4462 (gen_usual_arithmetic): Likewise.
4463 (gen_integral_promotions): Likewise.
4464 (gen_bitfield_ref): Likewise.
4465 (gen_primitive_field): Likewise.
4466 (gen_struct_ref_recursive): Likewise.
4467 (gen_struct_ref): Likewise.
4468 (gen_maybe_namespace_elt): Likewise.
4469 (gen_struct_elt_for_reference): Likewise.
4470 (gen_namespace_elt): Likewise.
4471 (gen_aggregate_elt_ref): Likewise.
4472 (gen_expr): Get gdbarch from ax, update calls.
4473 (gen_expr_binop_rest): Likewise.
4474
c55a47e7
PA
44752017-07-13 Pedro Alves <palves@redhat.com>
4476
4477 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4478 as default tdesc.
4479 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4480 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4481 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4482 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4483 tdep.
4484 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4485 Get final tdesc from the tdep.
4486 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4487 default tdesc.
4488 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4489 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4490 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4491 Use it as default tdesc.
4492 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4493 down to amd_init_abi. No longer handle fallback tdesc here.
4494 * amd64-tdep.h (tdesc_x32): Declare.
4495 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4496 parameter.
4497 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4498 as default tdesc.
4499
55efceab
AA
45002017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4501
4502 * s390-linux-tdep.c (s390_process_record): Add support for
4503 instructions new in arch12.
4504
0aa37b65
JB
45052017-07-11 John Baldwin <jhb@FreeBSD.org>
4506
4507 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4508 PT_GETFSBASE and PT_GETGSBASE.
4509 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4510 PT_SETGSBASE.
4511
48aeef91
JB
45122017-07-11 John Baldwin <jhb@FreeBSD.org>
4513
4514 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4515 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4516 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4517 those rules.
4518 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4519 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4520 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4521 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4522 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4523 * features/i386/amd64.xml: Add 64bit-segments.xml.
4524 * features/i386/amd64-avx-avx512.c: Regenerated.
4525 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4526 * features/i386/amd64-avx-mpx.c: Regenerated.
4527 * features/i386/amd64-avx.c: Regenerated.
4528 * features/i386/amd64-mpx.c: Regenerated.
4529 * features/i386/amd64.c: Regenerated.
4530 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4531 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4532 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4533 * regformats/i386/amd64-avx.dat: Regenerated.
4534 * regformats/i386/amd64-mpx.dat: Regenerated.
4535 * regformats/i386/amd64.dat: Regenerated.
4536
77c501bc
YQ
45372017-07-10 Yao Qi <yao.qi@linaro.org>
4538
4539 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4540 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4541
6dc8d757
AK
45422017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4543
4544 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4545 unsetenv.
4546 * gnulib/aclocal.m4: Regenerate.
4547 * gnulib/config.in: Regenerate.
4548 * gnulib/configure: Regenerate.
4549 * gnulib/import/Makefile.am: Regenerate.
4550 * gnulib/import/Makefile.in: Regenerate.
4551 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4552 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4553 * gnulib/import/m4/environ.m4: New file.
4554 * gnulib/import/m4/setenv.m4: New file.
4555 * gnulib/import/setenv.c: New file.
4556 * gnulib/import/unsetenv.c: New file.
4557
266934d1
SM
45582017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4559
4560 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4561 address when op is DW_OP_addr.
4562
03278692
TT
45632017-07-09 Tom Tromey <tom@tromey.com>
4564
4565 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4566 check and apply to outer type.
4567
4b654465
JB
45682017-07-07 John Baldwin <jhb@FreeBSD.org>
4569
4570 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4571 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4572 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4573 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4574
2af9fc44
JB
45752017-07-07 John Baldwin <jhb@FreeBSD.org>
4576
4577 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4578
382b69bb
JB
45792017-07-07 John Baldwin <jhb@FreeBSD.org>
4580
4581 * corelow.c (get_core_siginfo): Remove.
4582 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4583 instead of get_core_siginfo.
4584 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4585 * gdbarch.h: Re-generate.
4586 * gdbarch.c: Re-generate.
4587 * linux-tdep.c (linux_core_xfer_siginfo): New.
4588 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4589
6e5eab33
JB
45902017-07-07 John Baldwin <jhb@FreeBSD.org>
4591
4592 * corelow.c (thread_section_name): Move to ...
4593 * gdbcore.h (thread_section_name): ... here.
4594
929edea9
JB
45952017-07-07 John Baldwin <jhb@FreeBSD.org>
4596
4597 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4598 (struct siginfo32): New.
4599 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4600 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4601 via ptrace(PT_LWPINFO).
4602
762c974a
JB
46032017-07-07 John Baldwin <jhb@FreeBSD.org>
4604
4605 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4606 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4607 (fbsd_get_siginfo_type): New.
4608 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4609 (_initialize_fbsd_tdep): New.
4610
33c5cd75
DB
46112017-07-06 David Blaikie <dblaikie@gmail.com>
4612
4613 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4614 a singular dwo_unit*) to support multiple CUs in the same way that
4615 multiple TUs are supported.
4616 (create_cus_hash_table): Replace create_dwo_cu with a function for
4617 parsing multiple CUs from a DWO file.
4618 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4619 create_dwo_cu.
4620 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4621 htab_find, rather than comparing the signature to a singleton CU in
4622 the dwo_file.
4623
8455d262
PA
46242017-07-06 Pedro Alves <palves@redhat.com>
4625
4626 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4627
4da3eb35
PA
46282017-07-04 Pedro Alves <palves@redhat.com>
4629
4630 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4631 * gdbtypes.h (TYPE_STATIC): Delete.
4632 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4633 is_synchronized, is_native>: Delete.
4634 <dummy>: Bump.
4635 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4636 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4637 (TYPE_FN_FIELD_ABSTRACT): Delete.
4638
5bfd255c
SM
46392017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4640
4641 * buffer.h (buffer_finish): Fix spelling mistakes.
4642
25c54127
EZ
46432017-07-01 Eli Zaretskii <eliz@gnu.org>
4644
4645 * .dir-locals.el: Automatically switch to C-style comments in
4646 versions of Emacs that support the feature.
4647
dc4bde35
SDJ
46482017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4649 Pedro Alves <palves@redhat.com>
4650
4651 PR cli/21688
4652 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4653 (process_next_line): New variable 'inline_cmd'.
4654 Adjust 'if' clauses for "python", "compile" and "guile" to use
4655 'command_name_equals' and check for '!inline_cmd'.
4656
51ed89aa
SDJ
46572017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4658
4659 PR cli/21688
4660 * cli/cli-script.c (command_name_equals_not_inline): New function.
4661 (process_next_line): Adjust 'if' clauses for "python", "compile"
4662 and "guile" to use command_name_equals_not_inline.
4663
eb17d413
PA
46642017-06-29 Pedro Alves <palves@redhat.com>
4665
4666 * completer.c (expression_completer): Call
4667 linespec_location_completer instead of location_completer.
4668
195bcdd5
PA
46692017-06-29 Pedro Alves <palves@redhat.com>
4670
4671 * completer.c (expression_completer): Remove code that recomputes
4672 'text' from 'word'.
4673
adc764e7
YQ
46742017-06-29 Yao Qi <yao.qi@linaro.org>
4675
4676 * regformats/regdat.sh: Generate code with
4677 "ifndef IN_PROCESS_AGENT".
4678
6e75794e
PA
46792017-06-28 Pedro Alves <palves@redhat.com>
4680
4681 * command.h: Include "common/scoped_restore.h".
4682
bc491f2e
YQ
46832017-06-28 Yao Qi <yao.qi@linaro.org>
4684
4685 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4686 instead of obstack_grow.
4687
41664b45
DG
46882017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4689
4690 PR gdb/21337
4691 * symfile.c (reread_symbols): Call objfiles_changed just before
4692 read_symbols.
4693
6da67eb1
PA
46942017-06-27 Pedro Alves <palves@redhat.com>
4695
4696 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4697 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4698 (completion_list_add_symbol, completion_list_add_msymbol):
4699 ... these new functions.
4700 (add_symtab_completions)
4701 (default_make_symbol_completion_list_break_on_1): Adjust.
4702
23732b1e
PA
47032017-06-27 Pedro Alves <palves@redhat.com>
4704
4705 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4706 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4707 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4708 dtor.
4709 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4710 'storage_obstack' field an auto_obstack. In-class initialize all
4711 non-bitfield fields. Make minsyms_read bool.
4712 * symfile.c (read_symbols): Adjust.
4713
a4d1e79a
AH
47142017-06-27 Alan Hayward <alan.hayward@arm.com>
4715
4716 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4717 (gdbsim_store_register): Likewise.
4718
8268c778
PA
47192017-06-27 Pedro Alves <palves@redhat.com>
4720
4721 * c-exp.y (name_obstack): Now an auto_obstack.
4722 (yylex): Use auto_obstack::clear.
4723 (c_parse): Use auto_obstack::clear instead of reinitializing and
4724 freeing the obstack.
4725 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4726 * d-exp.y (name_obstack): Now an auto_obstack.
4727 (yylex): Use auto_obstack::clear.
4728 (d_parse): Use auto_obstack::clear instead of reinitializing and
4729 freeing the obstack.
4730 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4731 auto_obstack.
4732 * dwarf2read.c (create_addrmap_from_index)
4733 (dwarf2_build_psymtabs_hard)
4734 (update_enumeration_type_from_children): Likewise.
4735 * gdb_obstack.h (auto_obstack): New type.
4736 * go-exp.y (name_obstack): Now an auto_obstack.
4737 (build_packaged_name): Use auto_obstack::clear.
4738 (go_parse): Use auto_obstack::clear instead of reinitializing and
4739 freeing the obstack.
4740 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4741 auto_obstack.
4742 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4743 * rust-exp.y (work_obstack): Now an auto_obstack.
4744 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4745 reinitializing and freeing the obstack.
4746 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4747 (host_char_to_target): Use auto_obstack.
4748 * utils.h (make_cleanup_obstack_free): Delete declaration.
4749 * valprint.c (generic_emit_char, generic_printstr): Use
4750 auto_obstack.
4751
db665f42
SM
47522017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4753
4754 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4755 thread.
4756 (darwin_init_thread_list): Don't update dummy thread.
4757 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4758
873c0814
SM
47592017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4760
4761 * record-full.c (netorder16): Remove.
4762
8b5a7a6e
SM
47632017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4764
4765 * common/diagnostics.h: Define macros for GCC.
4766 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4767 * common/vec.h: Include diagnostics.h.
4768 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4769 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4770 warning.
4771
d1435379
SM
47722017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4773
4774 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4775 New macro.
4776 * ada-lex.l: Ignore deprecated register warnings.
4777
cc75e0fd
SM
47782017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4779
4780 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4781 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4782
07809eaf
SM
47832017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4784
4785 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4786 its own line.
4787
f076f034
SM
47882017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4789
4790 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4791
0dd5cbc5
AH
47922017-06-23 Alan Hayward <alan.hayward@arm.com>
4793
4794 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4795 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4796 (xtensa_register_read_masked): Likewise.
4797
d4c6ce5b
SDJ
47982017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4799
4800 * common/environ.c (gdb_environ::unset): Update comment.
4801
16892a03
AH
48022017-06-22 Alan Hayward <alan.hayward@arm.com>
4803
4804 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4805 registers.
4806
d7dcbefc
AH
48072017-06-22 Alan Hayward <alan.hayward@arm.com>
4808
4809 * record-full.c (record_full_exec_insn): Use byte_vector.
4810
b30ff123
YQ
48112017-06-22 Yao Qi <yao.qi@linaro.org>
4812
4813 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4814 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4815
4fa847d7
AH
48162017-06-22 Alan Hayward <alan.hayward@arm.com>
4817
4818 * remote.c (cached_reg): Move from here...
4819 * regcache.h (cached_reg): ...to here.
4820 * python/py-unwind.c (struct reg_info): Remove.
4821 (cached_frame_info): Use cached_reg_t.
4822 (pyuw_prev_register): Likewise.
4823 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4824 (pyuw_dealloc_cache): Free all registers.
4825
f4906a9a
PA
48262017-06-22 Pedro Alves <palves@redhat.com>
4827 Simon Marchi <simon.marchi@ericsson.com>
4828
4829 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4830 warning.
4831 * common/diagnostics.h: New file.
4832
b45a1208
PA
48332017-06-22 Pedro Alves <palves@redhat.com>
4834
4835 * common/agent.h: Add include guards.
4836
e4da2c61
SM
48372017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4838
4839 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4840 talk about addressable units instead of bytes.
4841
96160d60
SDJ
48422017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4843
4844 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4845 of '::const_iterator'.
4846
9a6c7d9c
SDJ
48472017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4848
4849 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4850 'unittests/environ-selftests.c'.
4851 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4852 * charset.c (find_charset_names): Declare object 'iconv_env'.
4853 Update code to use 'iconv_env' object. Remove call to
4854 'free_environ'.
4855 * common/environ.c: Include <utility>.
4856 (make_environ): Delete function.
4857 (free_environ): Delete function.
4858 (gdb_environ::clear): New function.
4859 (gdb_environ::operator=): New function.
4860 (gdb_environ::get): Likewise.
4861 (environ_vector): Delete function.
4862 (set_in_environ): Delete function.
4863 (gdb_environ::set): New function.
4864 (unset_in_environ): Delete function.
4865 (gdb_environ::unset): New function.
4866 (gdb_environ::envp): Likewise.
4867 * common/environ.h: Include <vector>.
4868 (struct gdb_environ): Delete; transform into...
4869 (class gdb_environ): ... this class.
4870 (free_environ): Delete prototype.
4871 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4872 environ_vector): Likewise.
4873 * infcmd.c (run_command_1): Update code to call
4874 'envp' from 'gdb_environ' class.
4875 (environment_info): Update code to call methods from 'gdb_environ'
4876 class.
4877 (unset_environment_command): Likewise.
4878 (path_info): Likewise.
4879 (path_command): Likewise.
4880 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4881 (inferior::inferior): Initialize 'environment' using the host's
4882 information.
4883 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4884 Include "environ.h".
4885 (class inferior) <environment>: Change type from 'struct
4886 gdb_environ' to 'gdb_environ'.
4887 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4888 methods from 'gdb_environ' class.
4889 * solib.c (solib_find_1): Likewise
4890 * unittests/environ-selftests.c: New file.
4891
75c554cf
YQ
48922017-06-20 Yao Qi <yao.qi@linaro.org>
4893
4894 * features/i386/i386-linux.xml: Exchange the order of including
4895 32bit-linux.xml and 32bit-sse.xml.
4896 * features/i386/i386-linux.c: Regenerated.
4897
72ddacb7
YQ
48982017-06-20 Yao Qi <yao.qi@linaro.org>
4899
4900 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4901 Delete copy ctor and assignment operator.
4902 (tdesc_type): Likewise.
4903 (tdesc_feature): Likewise.
4904 (tdesc_free_reg): Remove.
4905 (tdesc_create_reg): Use new.
4906 (tdesc_free_type): Remove.
4907 (tdesc_create_vector): Use new.
4908 (tdesc_create_union): Likewise.
4909 (tdesc_create_flags): Likewise.
4910 (tdesc_create_enum): Likewise.
4911 (tdesc_free_feature): Delete.
4912 (free_target_description): Use delete.
4913
325c9fd4
JB
49142017-06-19 John Baldwin <jhb@FreeBSD.org>
4915
4916 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4917 registers.
4918
16b7a719
PA
49192017-06-19 Pedro Alves <palves@redhat.com>
4920
4921 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4922 after gdb::unlinker.
4923
1c8e01c9
SDJ
49242017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4925
4926 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4927 gdb_environ to access an environment variable.
4928
ffce45d2
TP
49292017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4930
4931 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4932 gdb_byte*.
4933
1d4fbac9
SM
49342017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4935
4936 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4937
8465943a
SM
49382017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4939
4940 * configure: Re-generate.
4941 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4942
3e019bdc
SM
49432017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4944
4945 * configure: Re-generate.
4946 * warning.m4: Pass -Werror to compiler when checking for
4947 supported warning flags.
4948
cf0dd6f0
SM
49492017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4950
4951 * Makefile.in (COMPILE.pre): Add "-x c++".
4952
6f98355c
YQ
49532017-06-16 Alan Hayward <alan.hayward@arm.com>
4954 Pedro Alves <palves@redhat.com>
4955 Yao Qi <yao.qi@linaro.org>
4956
4957 * defs.h (RequireLongest): New.
4958 (extract_integer): Declare function template.
4959 (extract_signed_integer): Remove the declaration, but define it
4960 static inline.
4961 (extract_unsigned_integer): Likewise.
4962 (store_integer): Declare function template.
4963 (store_signed_integer): Remove the declaration, but define it
4964 static inline.
4965 (store_unsigned_integer): Likewise.
4966 * findvar.c (extract_integer): New function template.
4967 (extract_signed_integer): Remove.
4968 (extract_unsigned_integer): Remove.
4969 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4970 instantiations.
4971 (store_integer): New function template.
4972 (store_signed_integer): Remove.
4973 (store_unsigned_integer): Remove.
4974 (store_integer): Explicit instantiations.
4975 * regcache.c (regcache_raw_read_signed): Update.
4976 (regcache::raw_read): New function.
4977 (regcache::raw_read_signed): Remove.
4978 (regcache::raw_read_unsigned): Remove.
4979 (regcache_raw_read_unsigned): Update.
4980 (regcache_raw_write_unsigned): Update.
4981 (regcache::raw_write_signed): Remove.
4982 (regcache::raw_write): New function.
4983 (regcache_cooked_read_signed): Update.
4984 (regcache::raw_write_unsigned): Remove.
4985 (regcache::cooked_read_signed): Remove.
4986 (regcache_cooked_read_unsigned): Update.
4987 (regcache::cooked_read_unsigned): Remove.
4988 (regcache_cooked_write_signed): Update.
4989 (regcache_cooked_write_unsigned): Update.
4990 * regcache.h (regcache) <raw_read_signed>: Remove.
4991 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4992 <raw_read, raw_write>: New.
4993 <cooked_read_signed, cooked_write_signed>: Remove.
4994 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4995 <cooked_read, cooked_write>: New.
4996 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4997 (sh64_pseudo_register_write): Update.
4998
a87dc45a
AK
49992017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5000
5001 * arc-tdep.c (arc_disassembler_options): New variable.
5002 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5003 of default_print_insn.
5004 (arc_delayed_print_insn): Set info->section when needed,
5005 use default_print_insn to retrieve a disassembler.
5006
45159d6a
SDJ
50072017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5008
5009 PR gdb/21574
5010 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5011 to mention $SHELL and startup-with-shell.
5012
b46c4cf0
MF
50132017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5014
5015 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5016
6394c606
YQ
50172017-06-14 Yao Qi <yao.qi@linaro.org>
5018
5019 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5020 default_print_insn instead of print_insn_aarch64.
5021 * arm-tdep.c (gdb_print_insn_arm): Call
5022 default_print_insn instead of print_insn_big_arm
5023 and print_insn_little_arm.
5024 * i386-tdep.c (i386_print_insn): Call default_print_insn
5025 instead of print_insn_i386.
5026 * ia64-tdep.c (ia64_print_insn): Call
5027 default_print_insn instead of print_insn_ia64.
5028 * mips-tdep.c (gdb_print_insn_mips): Call
5029 default_print_insn instead of print_insn_big_mips
5030 and print_insn_little_mips.
5031 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5032 instead of print_insn_spu.
5033
d5722aa2
PA
50342017-06-14 Pedro Alves <palves@redhat.com>
5035
5036 * ada-lang.c: Include "common/byte-vector.h".
5037 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5038 * charset.c (wchar_iterator::iterate): Resize the vector instead
5039 of reserving it.
5040 * common/byte-vector.h: Include "common/def-vector.h".
5041 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5042 * cli/cli-dump.c: Include "common/byte-vector.h".
5043 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5044 * common/byte-vector.h: New file.
5045 * common/def-vector.h: New file.
5046 * common/default-init-alloc.h: New file.
5047 * dwarf2loc.c: Include "common/byte-vector.h".
5048 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5049 instead of reserving it.
5050 * dwarf2read.c: Include "common/byte-vector.h".
5051 (data_buf::m_vec): Now a gdb::byte_vector.
5052 * gdb_regex.c: Include "common/def-vector.h".
5053 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5054 * mi/mi-main.c: Include "common/byte-vector.h".
5055 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5056 * printcmd.c: Include "common/byte-vector.h".
5057 (print_scalar_formatted): Use gdb::byte_vector.
5058 * valprint.c: Include "common/byte-vector.h".
5059 (maybe_negate_by_bytes, print_decimal_chars): Use
5060 gdb::byte_vector.
5061
01ec7a27
SM
50622017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5063
5064 * darwin-nat.c: Include "nat/fork-inferior.h".
5065
848d9074
SM
50662017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5067
5068 * configure.nat: Factor out Darwin bits that are not
5069 architecture-specific. Add fork-inferior.o.
5070
3b912944
SM
50712017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5072
5073 * configure.nat: Factor out AIX bits that are not
5074 architecture-specific. Add fork-inferior.o.
5075
55acdf22
AA
50762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5077
5078 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5079 (read_pieced_value, write_pieced_value): ...here. Reduce to
5080 wrappers that just call rw_pieced_value.
5081
f65e2044
AA
50822017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5083
5084 * dwarf2loc.c (write_pieced_value): When writing the data for a
5085 memory piece, use write_memory_with_notification instead of
5086 write_memory.
5087
23f945bf
AA
50882017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5089
5090 * valops.c (read_value_memory): Change embedded_offset to
5091 represent a bit offset instead of a byte offset.
5092 * value.h (read_value_memory): Adjust comment.
5093
f236533e
AA
50942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5095
5096 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5097 dest_offset_bits and source_offset_bits.
5098 (write_pieced_value): Likewise.
5099
65d84b76
AA
51002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5101
5102 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5103 given by DW_OP_bit_piece.
5104 (write_pieced_value): Likewise.
5105
242d31ab
AA
51062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5107
5108 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5109 some other preparations to the places where sufficient information
5110 is available.
5111 (write_pieced_value): Likewise.
5112
03c8af18
AA
51132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5114
5115 * dwarf2loc.c (bits_to_bytes): New function.
5116 (read_pieced_value): Fix offset calculations for register pieces
5117 on big-endian targets.
5118 (write_pieced_value): Likewise.
5119
840989c1
AA
51202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5121
5122 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5123 (write_pieced_value): Likewise.
5124
359b19bb
AA
51252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5126
5127 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5128 transfer the source value's least significant bits, instead of its
5129 lowest-addressed ones. Rename type_len to max_offset.
5130 (read_pieced_value): Mirror above changes to write_pieced_value as
5131 applicable.
5132
07c9ca3b
AA
51332017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5134
5135 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5136 truncate full bytes from dest_offset_bits before using it as an
5137 offset into the buffer.
5138
f1cc9874
AA
51392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5140
5141 * dwarf2loc.c (write_pieced_value): Include transfer size in
5142 byte-wise check.
5143
cdaac320
AA
51442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5145
5146 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5147 calculation of this_size.
5148
af547a96
AA
51492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5150
5151 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5152 when targeting a bit-field.
5153 (write_pieced_value): Likewise.
5154
ddd7882a
AA
51552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5156
5157 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5158 (allocate_piece_closure): Drop addr_size parameter.
5159 (dwarf2_evaluate_loc_desc_full): Adjust call to
5160 allocate_piece_closure.
5161
e9352324
AA
51622017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5163
5164 PR gdb/21226
5165 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5166 the LSB end, independent of endianness.
5167
d5d1163e
AA
51682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5169
5170 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5171 size capping.
5172
032bb6ea
YQ
51732017-06-13 Yao Qi <yao.qi@linaro.org>
5174
5175 * mips-linux-nat.c: Move include features/mips*-linux.c to
5176 mips-linux-tdep.c.
5177 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5178 to mips-linux-tdep.c.
5179 * mips-linux-tdep.c: Include features/mips*-linux.c
5180 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5181 functions.
5182 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5183 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5184 (tdesc_mips64_dsp_linux): Declare.
5185
f12f6bad
TT
51862017-06-12 Tom Tromey <tom@tromey.com>
5187
5188 * valprint.h (val_print_type_code_int): Remove.
5189 * valprint.c (generic_val_print_int): Always call
5190 val_print_scalar_formatted.
5191 (val_print_type_code_int): Remove.
5192 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5193 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5194 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5195 * ada-valprint.c (ada_val_print_num): Use
5196 val_print_scalar_formatted.
5197
d9109c80
TT
51982017-06-12 Tom Tromey <tom@tromey.com>
5199
5200 * printcmd.c (print_scalar_formatted): Unify the two switches.
5201 Don't convert scalars to LONGEST.
5202
4ac0cb1c
TT
52032017-06-12 Tom Tromey <tom@tromey.com>
5204
5205 PR exp/16225:
5206 * valprint.h (print_decimal_chars): Update.
5207 * valprint.c (maybe_negate_by_bytes): New function.
5208 (print_decimal_chars): Add "is_signed" argument.
5209 * printcmd.c (print_scalar_formatted): Update.
5210
30a25466
TT
52112017-06-12 Tom Tromey <tom@tromey.com>
5212
5213 PR exp/16225:
5214 * valprint.h (print_binary_chars, print_hex_chars): Update.
5215 * valprint.c (val_print_type_code_int): Update.
5216 (print_binary_chars): Add "zero_pad" argument.
5217 (emit_octal_digit): New function.
5218 (print_octal_chars): Don't zero-pad.
5219 (print_decimal_chars): Likewise.
5220 (print_hex_chars): Add "zero_pad" argument.
5221 * sh64-tdep.c (sh64_do_fp_register): Update.
5222 * regcache.c (regcache::dump): Update.
5223 * printcmd.c (print_scalar_formatted): Update.
5224 * infcmd.c (default_print_one_register_info): Update.
5225
b3464d03
PA
52262017-06-12 Pedro Alves <palves@redhat.com>
5227 Alan Hayward <alan.hayward@arm.com>
5228
5229 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5230 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5231 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5232 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5233 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5234
4b76cda9
PA
52352017-06-12 Pedro Alves <palves@redhat.com>
5236
5237 * dwarf2read.c (mapped_symtab::data): Now a vector of
5238 symtab_index_entry instead of vector of
5239 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5240 whether an element's name is NULL instead of checking whether the
5241 element itself is NULL.
5242 (find_slot): Change return type. Adjust.
5243 (hash_expand, , add_index_entry, uniquify_cu_indices)
5244 (write_hash_table): Adjust.
5245
e8f8bcb3
PA
52462017-06-12 Pedro Alves <palves@redhat.com>
5247
5248 * dwarf2read.c (recursively_count_psymbols): New function.
5249 (write_psymtabs_to_index): Call it to compute number of psyms and
5250 pass estimate size of psyms_seen to unordered_set's ctor.
5251
70a1152b
PA
52522017-06-12 Pedro Alves <palves@redhat.com>
5253
5254 * dwarf2read.c (write_hash_table): Check if key already exists
5255 before emplacing.
5256
c2f134ac
PA
52572017-06-12 Pedro Alves <palves@redhat.com>
5258
5259 * dwarf2read.c (data_buf::append_space): Rename to...
5260 (data_buf::grow): ... this, and make private. Adjust all callers.
5261 (data_buf::append_uint): New method.
5262 (add_address_entry, write_one_signatured_type)
5263 (write_psymtabs_to_index): Use it.
5264
a81e6d4d
PA
52652017-06-12 Pedro Alves <palves@redhat.com>
5266
5267 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5268 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5269 (data_buf::file_write): Call ::fwrite directly.
5270
6fd931f2
PA
52712017-06-12 Pedro Alves <palves@redhat.com>
5272
5273 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5274 std::vector::erase.
5275
bc8f2430
JK
52762017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5277
5278 Code cleanup: C++ify .gdb_index producer.
5279 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5280 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5281 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5282 (create_strtab, add_string): Remove.
5283 (file_write, data_buf): New.
5284 (struct symtab_index_entry): Use std::vector for cu_indices.
5285 (struct mapped_symtab): Use std::vector for data.
5286 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5287 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5288 Remove.
5289 (find_slot): Change return type. Update it to the new data structures.
5290 (hash_expand, add_index_entry): Update it to the new data structures.
5291 (offset_type_compare): Remove.
5292 (uniquify_cu_indices): Update it to the new data structures.
5293 (c_str_view, c_str_view_hasher, vector_hasher): New.
5294 (add_indices_to_cpool): Remove.
5295 (write_hash_table): Update it to the new data structures.
5296 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5297 (eq_psymtab_cu_index): Remove.
5298 (psym_index_map): New typedef.
5299 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5300 reference and std::unordered_map for cu_index_htab.
5301 (add_address_entry, add_address_entry_worker, write_address_map)
5302 (write_psymbols): Update it to the new data structures.
5303 (write_obstack): Remove.
5304 (struct signatured_type_index_data): Change types_list to a data_buf
5305 reference and psyms_seen to a std::unordered_set reference.
5306 (write_one_signatured_type, recursively_write_psymbols)
5307 (write_psymtabs_to_index): Update it to the new data structures.
5308
c4dcb155
SM
53092017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5310
5311 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5312 separate-debug-file commands.
5313 * symfile.h (separate_debug_file_debug): New global.
5314 * symfile.c (separate_debug_file_debug): New global.
5315 (separate_debug_file_exists, find_separate_debug_file): Add
5316 debug output.
5317 (_initialize_symfile): Add "set debug separate-debug-file"
5318 command.
5319 * build-id.c (build_id_to_debug_bfd,
5320 find_separate_debug_file_by_buildid): Add debug output.
5321
6d45d4b4
SM
53222017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5323
5324 * gdbarch.sh (displaced_step_free_closure): Remove.
5325 * gdbarch.h, gdbarch.c: Re-generate.
5326 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5327 displaced_step_free_closure.
5328 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5329 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5330 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5331 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5332 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5333 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5334 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5335 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5336 * infrun.c (displaced_step_clear): Call xfree instead of
5337 gdbarch_displaced_step_free_closure.
5338
2f91880f
SDJ
53392017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5340
5341 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5342 NULL".
5343
b8b6e72f
AH
53442017-06-08 Alan Hayward <alan.hayward@arm.com>
5345
5346 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5347 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5348 (mn10300_push_dummy_call): Likewise.
5349
5369082e
AH
53502017-06-08 Alan Hayward <alan.hayward@arm.com>
5351
5352 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5353
ff4ca5ac
AH
53542017-06-08 Alan Hayward <alan.hayward@arm.com>
5355
5356 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5357
aefd8b33
SDJ
53582017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5359
5360 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5361 able to start inferiors using a shell.
5362 (New remote packets): Announce new packet "QStartupWithShell".
5363 * remote.c: Add PACKET_QStartupWithShell.
5364 (extended_remote_create_inferior): Handle new
5365 PACKET_QStartupWithShell.
5366 (remote_protocol_features) <QStartupWithShell>: New entry for
5367 PACKET_QStartupWithShell.
5368 (_initialize_remote): Call "add_packet_config_cmd" for
5369 QStartupShell.
5370
2090129c
SDJ
53712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5372 Pedro Alves <palves@redhat.com>
5373
5374 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5375 and "nat/fork-inferior.h".
5376 * common/common-inferior.h: New file, with contents from
5377 "gdb/inferior.h".
5378 * commom/common-utils.c: Include "common-utils.h".
5379 (stringify_argv): New function.
5380 * common/common-utils.h (stringify_argv): New prototype.
5381 * configure.nat: Add "fork-inferior.o" as a dependency for
5382 "*linux*", "fbsd*" and "nbsd*" hosts.
5383 * corefile.c (get_exec_file): Update comment.
5384 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5385 instead of "startup_inferior".
5386 (darwin_create_inferior): Call "add_thread_silent" after
5387 "fork_inferior".
5388 * fork-child.c: Cleanup unnecessary includes.
5389 (SHELL_FILE): Move to "common/common-fork-child.c".
5390 (environ): Likewise.
5391 (exec_wrapper): Initialize.
5392 (get_exec_wrapper): New function.
5393 (breakup_args): Move to "common/common-fork-child.c"; rename to
5394 "breakup_args_for_exec".
5395 (escape_bang_in_quoted_argument): Move to
5396 "common/common-fork-child.c".
5397 (saved_ui): New variable.
5398 (prefork_hook): New function.
5399 (postfork_hook): Likewise.
5400 (postfork_child_hook): Likewise.
5401 (gdb_startup_inferior): Likewise.
5402 (fork_inferior): Move to "common/common-fork-child.c". Update
5403 function to support gdbserver.
5404 (startup_inferior): Likewise.
5405 * gdbcore.h (get_exec_file): Remove declaration.
5406 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5407 instead of "startup_inferior". Call "add_thread_silent" after
5408 "fork_inferior".
5409 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5410 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5411 instead of "startup_inferior". Call "add_thread_silent" after
5412 "fork_inferior".
5413 * inferior.h: Include "common-inferior.h".
5414 (trace_start_error): Move to "common/common-utils.h".
5415 (trace_start_error_with_name): Likewise.
5416 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5417 (startup_inferior): Likewise.
5418 (gdb_startup_inferior): New prototype.
5419 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5420 * nat/fork-inferior.h: New file.
5421 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5422 instead of "startup_inferior". Call "add_thread_silent" after
5423 "fork_inferior".
5424 * target.h (target_terminal_init): Move prototype to
5425 "target/target.h".
5426 (target_terminal_inferior): Likewise.
5427 (target_terminal_ours): Likewise.
5428 * target/target.h (target_terminal_init): New prototype, moved
5429 from "target.h".
5430 (target_terminal_inferior): Likewise.
5431 (target_terminal_ours): Likewise.
5432 * utils.c (gdb_flush_out_err): New function.
5433
043a4934
SDJ
54342017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5435
5436 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5437 * common/common-gdbthread.h: New file, with parts from
5438 "gdb/gdbthread.h".
5439 * gdbthread.h: Include "common-gdbthread.h".
5440 (switch_to_thread): Moved to "common/common-gdbthread.h".
5441
15652511
SDJ
54422017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5443
5444 * Makefile.in (SFILES): Add "common/job-control.c".
5445 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5446 (COMMON_OBS): Add "job-control.o".
5447 * common/job-control.c: New file, with contents from
5448 "gdb/inflow.c".
5449 * common/job-control.h: New file, with contents from "terminal.h".
5450 * fork-child.c: Include "job-control.h".
5451 * inflow.c: Include "job-control.h".
5452 (gdb_setpgid): Move to "common/common-inflow.c".
5453 (_initialize_inflow): Move setting of "job_control" to
5454 "handle_job_control".
5455 * terminal.h (job_control): Moved to "common/common-terminal.h".
5456 (gdb_setpgid): Likewise.
5457 * top.c: Include "job_control.h".
5458 * utils.c: Likewise.
5459 (job_control): Moved to "job-control.c".
5460
2d7cc5c7
PA
54612017-06-07 Pedro Alves <palves@redhat.com>
5462
5463 * Makefile.in (SFILES): Add gdb_regex.c.
5464 (COMMON_OBS): Add gdb_regex.o.
5465 * ada-lang.c (ada_add_standard_exceptions)
5466 (ada_add_exceptions_from_frame, name_matches_regex)
5467 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5468 parameter type to compiled_regex. Adjust.
5469 (ada_exceptions_list): Use compiled_regex.
5470 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5471 std::unique_ptr<compiled_regex>.
5472 (exception_catchpoint::~exception_catchpoint): Remove regfree
5473 call.
5474 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5475 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5476 * breakpoint.c (solib_catchpoint::compiled): Now a
5477 std::unique_ptr<compiled_regex>.
5478 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5479 (check_status_catch_solib): Adjust to use compiled_regex.
5480 (add_solib_catchpoint): Adjust to use compiled_regex.
5481 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5482 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5483 compiled_regex reference. Adjust to use it.
5484 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5485 declaration. Include "gdb_regex.h".
5486 (apropos_cmd): Change regex parameter to compiled_regex reference.
5487 * gdb_regex.c: New file.
5488 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5489 declarations.
5490 (class compiled_regex): New.
5491 * linux-tdep.c: Include "common/gdb_optional.h".
5492 (struct mapping_regexes): New, factored out from
5493 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5494 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5495 gdb::optional and remove cleanups. Adjust to compiled_regex.
5496 * probe.c: Include "common/gdb_optional.h".
5497 (collect_probes): Use compiled_regex and gdb::optional and remove
5498 cleanups.
5499 * skip.c: Include "common/gdb_optional.h".
5500 (skiplist_entry::compiled_function_regexp): Now a
5501 gdb::optional<compiled_regex>.
5502 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5503 (free_skiplist_entry): Remove regfree call.
5504 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5505 compiled_regex and gdb::optional.
5506 * symtab.c: Include "common/gdb_optional.h".
5507 (search_symbols): Use compiled_regex and gdb::optional.
5508 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5509 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5510 to gdb_regex.c.
5511
50d6adef
AH
55122017-06-07 Alan Hayward <alan.hayward@arm.com>
5513
5514 * regcache.c (regcache::save): Avoid buffer use.
5515 (regcache::dump): Likewise.
5516
4a8a33c8
AH
55172017-06-07 Alan Hayward <alan.hayward@arm.com>
5518
5519 * sh-tdep.c (sh_pseudo_register_read): Remove
5520 MAX_REGISTER_SIZE.
5521 (sh_pseudo_register_write): Likewise.
5522 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5523 (sh64_pseudo_register_write): Likewise
5524
d1be909e
AH
55252017-06-07 Alan Hayward <alan.hayward@arm.com>
5526
5527 * aarch64-tdep.c (aarch64_store_return_value): Use
5528 V_REGISTER_SIZE.
5529 (aarch64_pseudo_read_value): Likewise.
5530 (aarch64_pseudo_write): Likewise.
5531
f4a65042
YQ
55322017-06-06 Yao Qi <yao.qi@linaro.org>
5533
5534 * regformats/regdef.h (set_register_cache): Remove the
5535 declaration.
5536
9f7fb0aa
AH
55372017-06-06 Alan Hayward <alan.hayward@arm.com>
5538
5539 * frame.c (frame_unwind_register_signed): Use
5540 frame_unwind_register_value.
5541
e1e01040
PA
55422017-06-06 Pedro Alves <palves@redhat.com>
5543
5544 PR breakpoints/21553
5545 * breakpoint.c (create_breakpoints_sal_default)
5546 (init_breakpoint_sal, create_breakpoint_sal): Use
5547 gdb::unique_xmalloc_ptr for string parameters.
5548 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5549 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5550 (base_breakpoint_create_breakpoints_sal)
5551 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5552 (strace_marker_create_breakpoints_sal)
5553 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5554 string parameters.
5555 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5556 gdb::unique_xmalloc_ptr for string parameters.
5557 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5558 parameters.
5559
fbe654c8
AH
55602017-06-06 Alan Hayward <alan.hayward@arm.com>
5561
5562 * alpha-tdep.c (alpha_register_to_value): Use
5563 get_frame_register_value.
5564 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5565
ae0d01d6
AH
55662017-06-06 Alan Hayward <alan.hayward@arm.com>
5567
5568 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5569 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5570 (ia64_value_to_register): Likewise.
5571 (ia64_extract_return_value): Likewise.
5572 (ia64_store_return_value): Likewise.
5573 (ia64_push_dummy_call): Likewise.
5574
49cf576c
JB
55752017-06-04 Joel Brobecker <brobecker@adacore.com>
5576
5577 GDB 8.0 released.
5578
26b6a6ab
SM
55792017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5580
5581 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5582
22827c51
SM
55832017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5584
5585 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5586 parameter.
5587 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5588
0e05cf3a
SM
55892017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5590
5591 * event-loop.c (poll_timers): Unallocate timer using delete
5592 instead of xfree.
5593
c1fc2657
SM
55942017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5595
5596 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5597 (struct breakpoint) <~breakpoint>: New.
5598 (struct watchpoint): Inherit from breakpoint.
5599 <~watchpoint>: New.
5600 <base>: Remove.
5601 (struct tracepoint): Inherit from breakpoint.
5602 <base>: Remove.
5603 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5604 (struct longjmp_breakpoint): Inherit from breakpoint.
5605 <~longjmp_breakpoint>: New.
5606 <base>: Remove.
5607 (new_breakpoint_from_type): Remove casts.
5608 (watchpoint_in_thread_scope): Remove reference to base field.
5609 (watchpoint_del_at_next_stop): Likewise.
5610 (update_watchpoint): Likewise.
5611 (watchpoint_check): Likewise.
5612 (bpstat_check_watchpoint): Likewise.
5613 (set_longjmp_breakpoint): Likewise.
5614 (struct fork_catchpoint): Inherit from breakpoint.
5615 <base>: Remove.
5616 (struct solib_catchpoint): Inherit from breakpoint.
5617 <~solib_catchpoint>: New.
5618 <base>: Remove.
5619 (dtor_catch_solib): Change to ...
5620 (solib_catchpoint::~solib_catchpoint): ... this.
5621 (breakpoint_hit_catch_solib): Remove reference to base field.
5622 (add_solib_catchpoint): Likewise.
5623 (create_fork_vfork_event_catchpoint): Likewise.
5624 (struct exec_catchpoint): Inherit from breakpoint.
5625 <~exec_catchpoint>: New.
5626 <base>: Remove.
5627 (dtor_catch_exec): Change to ...
5628 (exec_catchpoint::~exec_catchpoint): ... this.
5629 (dtor_watchpoint): Change to ...
5630 (watchpoint::~watchpoint): ... this.
5631 (watch_command_1): Remove reference to base field.
5632 (catch_exec_command_1): Likewise.
5633 (base_breakpoint_dtor): Change to ...
5634 (breakpoint::~breakpoint): ... this.
5635 (base_breakpoint_ops): Remove dtor field value.
5636 (longjmp_bkpt_dtor): Change to ...
5637 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5638 (strace_marker_create_breakpoints_sal): Remove reference to base
5639 field.
5640 (delete_breakpoint): Don't manually call breakpoint destructor.
5641 (create_tracepoint_from_upload): Remove reference to base field.
5642 (trace_pass_set_count): Likewise.
5643 (initialize_breakpoint_ops): Don't initialize
5644 momentary_breakpoint_ops, don't set dtors.
5645 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5646 <~ada_catchpoint>: New.
5647 <base>: Remove.
5648 (create_excep_cond_exprs): Remove reference to base field.
5649 (dtor_exception): Change to ...
5650 (ada_catchpoint::~ada_catchpoint): ... this.
5651 (dtor_catch_exception): Remove.
5652 (dtor_catch_exception_unhandled): Remove.
5653 (dtor_catch_assert): Remove.
5654 (create_ada_exception_catchpoint): Remove reference to base
5655 field.
5656 (initialize_ada_catchpoint_ops): Don't set dtors.
5657 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5658 breakpoint.
5659 <~signal_catchpoint>: New.
5660 <base>: Remove.
5661 (signal_catchpoint_dtor): Change to ...
5662 (signal_catchpoint::~signal_catchpoint): ... this.
5663 (create_signal_catchpoint): Remove reference to base field.
5664 (initialize_signal_catchpoint_ops): Don't set dtor.
5665 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5666 from breakpoint.
5667 <~syscall_catchpoint>: New.
5668 <base>: Remove.
5669 (dtor_catch_syscall): Change to ...
5670 (syscall_catchpoint::~syscall_catchpoint): ... this.
5671 (create_syscall_event_catchpoint): Remove reference to base
5672 field.
5673 (initialize_syscall_catchpoint_ops): Don't set dtor.
5674 * break-catch-throw.c (struct exception_catchpoint): Inherit
5675 from breakpoint.
5676 <~exception_catchpoint>: New.
5677 <base>: Remove.
5678 (dtor_exception_catchpoint): Change to ...
5679 (exception_catchpoint::~exception_catchpoint): ... this.
5680 (handle_gnu_v3_exceptions): Remove reference to base field.
5681 (initialize_throw_catchpoint_ops): Don't set dtor.
5682 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5683 field.
5684 * remote.c (remote_get_tracepoint_status): Likewise.
5685 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5686 * tracefile.c (tracefile_fetch_registers): Likewise.
5687 * tracepoint.c (actions_command): Likewise.
5688 (validate_actionline): Likewise.
5689 (tfind_1): Likewise.
5690 (get_traceframe_location): Likewise.
5691 (find_matching_tracepoint_location): Likewise.
5692 (parse_tracepoint_status): Likewise.
5693 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5694
3b0871f4
SM
56952017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5696
5697 * breakpoint.c (struct longjmp_breakpoint): New struct.
5698 (is_tracepoint_type): Change return type to bool.
5699 (is_longjmp_type): New function.
5700 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5701 (set_raw_breakpoint_without_location): Use
5702 new_breakpoint_from_type.
5703 (set_raw_breakpoint): Likewise.
5704
a5e364af
SM
57052017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5706
5707 * breakpoint.c (new_breakpoint_from_type): New function.
5708 (create_breakpoint_sal): Use new_breakpoint_from_type and
5709 unique_ptr.
5710 (create_breakpoint): Likewise.
5711
ae3b3f34
SM
57122017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5713
5714 * memattr.c (mem_info_command): Rename to ...
5715 (info_mem_command): ... this.
5716 (mem_enable_command): Rename to ...
5717 (enable_mem_command): ... this.
5718 (mem_disable_command): Rename to ...
5719 (disable_mem_command): ... this.
5720 (mem_delete_command): Rename to ...
5721 (delete_mem_command): ... this.
5722 (_initialize_mem): Adjust function names.
5723
13ace077
MM
57242017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5725
5726 * btrace.c (handle_pt_insn_events): New.
5727 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5728 STATUS. Split into this and ...
5729 (handle_pt_insn_event_flags): ... this.
5730
c56ccc05
MM
57312017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5732
5733 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5734 and struct pt_insn.resynced.
5735 * configure: Regenerated.
5736 * config.in: Regenerated.
5737
08c3f6d2
TW
57382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5739
5740 * btrace.c (ftrace_find_call_by_number): New function.
5741 (ftrace_new_function): Store objects, not pointers.
5742 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5743 ftrace_new_gap, ftrace_update_function,
5744 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5745 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5746 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5747 btrace_ends_with_single_insn, btrace_call_get): Account for
5748 btrace_thread_info::functions now storing objects.
5749 * btrace.h (struct btrace_thread_info): Add constructor.
5750 (struct btrace_thread_info) <functions>: Make std::vector.
5751 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5752 Initialize with default values.
5753 * record-btrace.c (record_btrace_frame_sniffer): Account for
5754 btrace_thread_info::functions now storing objects.
5755
8ffd39f2
TW
57562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5757
5758 * btrace.c: Remove typedef bfun_s.
5759 (ftrace_new_gap): Directly add gaps to the list of gaps.
5760 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5761 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5762 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5763 instead of gdb VEC.
5764
4aeb0dfc
TW
57652017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5766
5767 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5768 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5769 with btrace_thread_info::next_segment and
5770 btrace_thread_info::prev_segment.
5771 * btrace.h: Remove struct btrace_func_link.
5772 (struct btrace_function): Replace pair of function segment pointers
5773 with pair of indices.
5774 * python/py-record-btrace.c (btpy_call_prev_sibling,
5775 btpy_call_next_sibling): Replace references to
5776 btrace_thread_info::segment with btrace_thread_info::next_segment and
5777 btrace_thread_info::prev_segment.
5778 * record-btrace.c (record_btrace_frame_this_id): Use
5779 btrace_find_call_by_number.
5780
eb8f2b9c
TW
57812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5782
5783 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5784 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5785 btrace_insn_next, btrace_insn_prev): Remove references to
5786 btrace_thread_info::flow.
5787 * btrace.h (struct btrace_function): Remove FLOW.
5788
42bfe59e
TW
57892017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5790
5791 * btrace.c (ftrace_find_call_by_number): New function.
5792 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5793 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5794 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5795 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5796 index.
5797 * btrace.h (struct btrace_function): Turn UP into an index.
5798 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5799 as an index.
5800 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5801 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5802 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5803
b54b03bd
TW
58042017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5805
5806 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5807 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5808 ftrace_update_function, ftrace_compute_global_level_offset,
5809 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5810 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5811 btrace_insn_end, btrace_is_empty): Remove references to
5812 btrace_thread_info::begin and btrace_thread_info::end.
5813 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5814 (struct btrace_thread_info) <functions>: Adjust comment.
5815 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5816 btrace_thread_info::begin.
5817
8286623c
TW
58182017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5819
5820 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5821 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5822 ftrace_update_function): Remove arguments that implicitly were always
5823 BTINFO->END.
5824 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5825 Don't pass BTINFO->END.
5826
a0f1b963
TW
58272017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5828
5829 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5830 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5831 btrace_find_insn_by_number): Replace function segment pointer with
5832 index.
5833 (btrace_insn_cmp): Simplify.
5834 * btrace.h: (struct btrace_insn_iterator) Rename index to
5835 insn_index. Replace function segment pointer with index into function
5836 segment vector.
5837 * record-btrace.c (record_btrace_call_history): Replace function
5838 segment pointer use with index.
5839 (record_btrace_frame_sniffer): Retrieve function call segment through
5840 vector.
5841 (record_btrace_set_replay): Remove defunc't safety check.
5842
f158f208
TW
58432017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5844
5845 * btrace.c (btrace_ends_with_single_insn): New function.
5846 (btrace_call_get, btrace_call_number, btrace_call_begin,
5847 btrace_call_end, btrace_call_next, btrace_call_prev,
5848 btrace_find_call_by_number): Use index into call segment vector
5849 instead of pointer.
5850 (btrace_call_cmp): Simplify.
5851 * btrace.h (struct btrace_call_iterator): Replace function call segment
5852 pointer with index into vector.
5853 * record-btrace.c (record_btrace_call_history): Use index instead of
5854 pointer.
5855
521103fd
TW
58562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5857
5858 * btrace.c (btrace_insn_begin, btrace_insn_end,
5859 btrace_find_insn_by_number): Add btinfo to iterator.
5860 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5861
17b89b34
TW
58622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5863
5864 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5865 and save pointers directly.
5866 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5867 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5868 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5869 changed signature of functions.
5870 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5871 (btrace_fetch): Remove code that adds btrace_function pointers to
5872 vector of btrace_functions.
5873 (btrace_clear): Simplify freeing vector of btrace_functions.
5874
2b51eddc
TW
58752017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5876
5877 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5878 Replace VEC_* with std::vector functions.
5879 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5880 (struct btrace_thread_info)<functions>: Change type to std::vector.
5881
db6be0d5
SM
58822017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5883
5884 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5885 "Removed targets and native configurations" up. Merge duplicate
5886 "New commands" sub-sections. Add "New options" sub-sections.
5887
b057297a
AH
58882017-05-26 Alan Hayward <alan.hayward@arm.com>
5889
5890 * defs.h (copy_integer_to_size): New declaration.
5891 * findvar.c (copy_integer_to_size): New function.
5892 (do_cint_test): New selftest function.
5893 (copy_integer_to_size_test): Likewise.
5894 (_initialize_findvar): Likewise.
5895 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5896 (mips_fbsd_collect_reg): Use raw_collect_integer.
5897 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5898 (mips64_fill_gregset): Use raw_collect_integer
5899 (mips64_fill_fpregset): Use raw_supply_integer.
5900 * regcache.c (regcache::raw_supply_integer): New function.
5901 (regcache::raw_collect_integer): Likewise.
5902 * regcache.h: (regcache::raw_supply_integer): New declaration.
5903 (regcache::raw_collect_integer): Likewise.
5904
b77b02a5
YQ
59052017-05-24 Yao Qi <yao.qi@linaro.org>
5906
5907 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5908 (COMMON_OBS): Add gdbarch-selftests.o.
5909 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5910 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5911 * gdbarch-selftests.c: New file.
5912 * regcache.h (regcache) <~regcache>: Mark it virtual if
5913 GDB_SELF_TEST.
5914 <raw_write>: Likewise.
5915
e521e87e
YQ
59162017-05-24 Yao Qi <yao.qi@linaro.org>
5917
5918 * regcache.c (current_regcache): Change it to
5919 regcache::current_regcache.
5920 (regcache_observer_target_changed): Update.
5921 (regcache_thread_ptid_changed): Make it a regcache static
5922 method.
5923 (regcache_thread_ptid_changed): Update.
5924 (class regcache_access): New.
5925 (current_regcache_test): Update.
5926 (_initialize_regcache): Update.
5927 * regcache.h: Include forward_list.
5928 (regcache): Declare regcache_thread_ptid_changed and declare
5929 registers_changed_ptid as friend.
5930
d8e07dda
YQ
59312017-05-24 Yao Qi <yao.qi@linaro.org>
5932
5933 * i387-tdep.c (i387_register_to_value): Use register_size
5934 instead of TYPE_LENGTH.
5935 * m68k-tdep.c (m68k_register_to_value): Likewise.
5936
8c8f9122
YQ
59372017-05-24 Yao Qi <yao.qi@linaro.org>
5938
5939 * i387-tdep.c (i387_convert_register_p): Return false if type
5940 code isn't TYPE_CODE_FLT.
5941
68fce50f
YQ
59422017-05-24 Yao Qi <yao.qi@linaro.org>
5943
5944 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5945 length is 4.
5946 (alpha_register_to_value): Remove type length check.
5947 (alpha_value_to_register): Likewise.
5948
88954b49
YQ
59492017-05-24 Yao Qi <yao.qi@linaro.org>
5950
5951 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5952 TYPE_CODE_FLT.
5953
e3ec9b69
YQ
59542017-05-24 Yao Qi <yao.qi@linaro.org>
5955
5956 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5957 TYPE_CODE_FLT or not.
5958
cdd238da
YQ
59592017-05-24 Yao Qi <yao.qi@linaro.org>
5960
5961 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5962 * avr-tdep.c (avr_gdbarch_init): Likewise.
5963 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5964 * cris-tdep.c (cris_gdbarch_init): Likewise.
5965 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5966 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5967 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5969 * mep-tdep.c (mep_gdbarch_init): Likewise.
5970 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5971 * mips-tdep.c (mips_gdbarch_init): Likewise.
5972 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5973 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5974 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5975 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5976 * v850-tdep.c (v850_gdbarch_init): Likewise.
5977
7a3929c4
YQ
59782017-05-24 Yao Qi <yao.qi@linaro.org>
5979
5980 * selftest-arch.c (tests_with_arch): Call registers_changed
5981 and reinit_frame_cache.
5982 * selftest.c (run_self_tests): Likewise.
5983
f4985dba
YQ
59842017-05-24 Yao Qi <yao.qi@linaro.org>
5985
5986 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5987 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5988
ab20fa4a
YQ
59892017-05-24 Yao Qi <yao.qi@linaro.org>
5990
5991 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5992 set_gdbarch_print_insn.
5993
f532ab94
YQ
59942017-05-24 Yao Qi <yao.qi@linaro.org>
5995
5996 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5997 set_gdbarch_print_insn.
5998
39503f82
YQ
59992017-05-24 Yao Qi <yao.qi@linaro.org>
6000
6001 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6002 set_gdbarch_print_insn.
6003 * arc-tdep.c (arc_gdbarch_init): Likewise.
6004 * arch-utils.c: include dis-asm.h.
6005 (default_print_insn): New function.
6006 * arch-utils.h (default_print_insn): Declare.
6007 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6008 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6009 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6010 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6011 * frv-tdep.c (frv_gdbarch_init): Likewise.
6012 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6013 * gdbarch.sh (print_insn): Use default_print_insn.
6014 * gdbarch.c: Regenerated.
6015 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6016 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6017 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6018 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6019 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6020 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6021 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6022 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6023 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6024 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6025 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6026 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6027 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6028 * mt-tdep.c (mt_gdbarch_init): Likewise.
6029 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6030 * nios2-tdep.c (nios2_print_insn): Remove.
6031 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6032 * rx-tdep.c (rx_gdbarch_init): Likewise.
6033 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6034 * score-tdep.c (score_print_insn): Remove.
6035 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6036 * sh-tdep.c (sh_gdbarch_init): Likewise.
6037 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6038 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6039 * tic6x-tdep.c (tic6x_print_insn): Remove.
6040 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6041 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6042 * v850-tdep.c (v850_gdbarch_init): Likewise.
6043 * vax-tdep.c (vax_gdbarch_init): Likewise.
6044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6045 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6046
f7241d4f
JB
60472017-05-23 John Baldwin <jhb@FreeBSD.org>
6048
6049 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6050 (MIPS_FP0_REGNUM): Remove.
6051 (MIPS_FSR_REGNUM): Remove.
6052 (mips_fbsd_supply_fpregs): Use mips_regnum.
6053 (mips_fbsd_supply_gregs): Likewise.
6054 (mips_fbsd_collect_fpregs): Likewise.
6055 (mips_fbsd_collect_gregs): Likewise.
6056
d489d81d
JB
60572017-05-23 John Baldwin <jhb@FreeBSD.org>
6058
6059 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6060 (getpfpregs_supplies): New function.
6061 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6062 getfpregs_supplies.
6063 (mips_fbsd_store_inferior_registers): Likewise.
6064
e11b3cdc
PA
60652017-05-22 Pedro Alves <palves@redhat.com>
6066
6067 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6068 maintainer.
6069
0f068fb5
AH
60702017-05-22 Alan Hayward <alan.hayward@arm.com>
6071
6072 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6073 (store_register): Likewise.
6074 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6075 (get_decimal_float_return_value): Likewise.
6076 (do_ppc_sysv_return_value): Likewise.
6077 (ppc64_sysv_abi_push_integer): Likewise.
6078 (ppc64_sysv_abi_push_freg): Likewise.
6079 (ppc64_sysv_abi_return_value_base): Likewise.
6080 (ppc64_sysv_abi_return_value): Likewise.
6081 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6082 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6083 * rs6000-nat.c: Likewise.
6084 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6085 (rs6000_value_to_register): Likewise.
6086 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6087
e6cf65f2
TT
60882017-05-21 Tom Tromey <tom@tromey.com>
6089
6090 PR rust/21466:
6091 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6092 arrays as "[T]", not "[T; ]".
6093
43cc5389
TT
60942017-05-19 Tom Tromey <tom@tromey.com>
6095
6096 PR rust/21484:
6097 * rust-lang.c (exp_descriptor_rust): New function.
6098 (rust_language_defn): Use it.
6099 * p-lang.c (pascal_language_defn): Update.
6100 * opencl-lang.c (opencl_language_defn): Update.
6101 * objc-lang.c (objc_language_defn): Update.
6102 * m2-lang.c (m2_language_defn): Update.
6103 * language.h (struct language_defn)
6104 <la_watch_location_expression>: New member.
6105 * language.c (unknown_language_defn, auto_language_defn)
6106 (local_language_defn): Update.
6107 * go-lang.c (go_language_defn): Update.
6108 * f-lang.c (f_language_defn): Update.
6109 * d-lang.c (d_language_defn): Update.
6110 * c-lang.h (c_watch_location_expression): Declare.
6111 * c-lang.c (c_watch_location_expression): New function.
6112 (c_language_defn, cplus_language_defn, asm_language_defn)
6113 (minimal_language_defn): Use it.
6114 * breakpoint.c (watch_command_1): Call
6115 la_watch_location_expression.
6116 * ada-lang.c (ada_language_defn): Update.
6117
7a6e7fcc
RO
61182017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6119
6e7e1744
RO
6120 PR tui/21482
6121 * gdb_curses.h (NOMACROS): Define.
6122 (NCURSES_NOMACROS): Define.
6123
61242017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6125
6126 PR tui/21482
7a6e7fcc
RO
6127 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6128 arg to char *.
6129 * tui/tui-wingeneral.c (box_win): Likewise.
6130 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6131 (tui_show_source_line): Likewise.
6132 (tui_show_exec_info_content): Likewise.
6133
1933fd8e
VM
61342017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6135
6136 * sparc-tdep.c (sparc_structure_return_p)
6137 (sparc_arg_on_registers_p): New functions.
6138 (sparc32_store_arguments): Use them.
6139 * sparc64-tdep.c (sparc64_16_byte_align_p)
6140 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6141 Handle TYPE_CODE_ARRAY.
6142
21873064
YQ
61432017-05-17 Yao Qi <yao.qi@linaro.org>
6144
6145 * cli/cli-decode.c (add_alias_cmd): New function.
6146 * command.h (add_alias_cmd): Declare.
6147 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6148 instead call add_alias_cmd.
6149
2b351b19
PA
61502017-05-17 Pedro Alves <palves@redhat.com>
6151
6152 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6153 (nat_makefile_frag): ... this. All references updated.
6154 * configure.ac: Likewise.
6155 * configure.nat: Likewise. Enhance comments.
6156 * configure: Regenerate.
6157
5f2ad7a3
RO
61582017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6159
6160 * procfs.c (procfs_create_inferior): Change prototype to match
6161 definition.
6162
adf3dde5
EZ
61632017-05-13 Eli Zaretskii <eliz@gnu.org>
6164
6165 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6166 C++ compiler warning.
6167
6830f270
TT
61682017-05-12 Tom Tromey <tom@tromey.com>
6169
6170 PR rust/21483:
6171 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6172 recurse, just call value_struct_elt directly.
6173
68f2f2e3
TT
61742017-05-12 Tom Tromey <tom@tromey.com>
6175
6176 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6177 OP_RUST_ARRAY>: Fix.
6178
256afbc2
TT
61792017-05-12 Tom Tromey <tom@tromey.com>
6180
6181 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6182
94bb8dfe
YQ
61832017-05-09 Yao Qi <yao.qi@linaro.org>
6184
6185 * regcache.c: Include <forward_list>.
6186 (struct regcache_list): Remove.
6187 (current_regcache): Update.
6188 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6189 (regcache_thread_ptid_changed): Likewise.
6190 (registers_changed_ptid): Likewise.
6191 (current_regcache_size): Likewise.
6192
8248946c
YQ
61932017-05-09 Yao Qi <yao.qi@linaro.org>
6194
6195 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6196 (current_regcache_size): New function.
6197 (current_regcache_test): New function.
6198 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6199
313c5961
AH
62002017-05-08 Alan Hayward <alan.hayward@arm.com>
6201
6202 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6203 (print_gp_register_row): Use get_frame_register_value.
6204
27bfc1d1
AH
62052017-05-08 Alan Hayward <alan.hayward@arm.com>
6206
6207 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6208 (mips_supply_fpregset): Likewise.
6209 (mips64_supply_gregset): Likewise.
6210
146e6c5c
AH
62112017-05-08 Alan Hayward <alan.hayward@arm.com>
6212
6213 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6214 regcache->raw_supply_zeroed.
6215
e50f25ec
SDJ
62162017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6217
6218 * configure.nat: Rearrange 'case' statements to match
6219 host before cpu.
6220
21ea5acd
SDJ
62212017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6222
6223 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6224 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6225 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6226 "@nat_extra_makefile_frag@".
6227 (Makefile): Remove dependency on "@frags@".
6228 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6229 (data-directory/Makefile): Likewise.
6230 * config/aarch64/linux.mh: Deleted; moved contents to
6231 "gdb/configure.nat".
6232 * config/alpha/alpha-linux.mh: Likewise.
6233 * config/alpha/nbsd.mh: Likewise.
6234 * config/arm/linux.mh: Likewise.
6235 * config/arm/nbsdelf.mh: Likewise.
6236 * config/i386/cygwin.mh: Likewise.
6237 * config/i386/cygwin64.mh: Likewise.
6238 * config/i386/darwin.mh: Likewise.
6239 * config/i386/fbsd.mh: Likewise.
6240 * config/i386/fbsd64.mh: Likewise.
6241 * config/i386/go32.mh: Likewise.
6242 * config/i386/i386gnu.mh: Likewise.
6243 * config/i386/i386sol2.mh: Likewise.
6244 * config/i386/linux.mh: Likewise.
6245 * config/i386/linux64.mh: Likewise.
6246 * config/i386/mingw.mh: Likewise.
6247 * config/i386/mingw64.mh: Likewise.
6248 * config/i386/nbsd64.mh: Likewise.
6249 * config/i386/nbsdelf.mh: Likewise.
6250 * config/i386/nto.mh: Likewise.
6251 * config/i386/obsd.mh: Likewise.
6252 * config/i386/obsd64.mh: Likewise.
6253 * config/i386/sol2-64.mh: Likewise.
6254 * config/ia64/linux.mh: Likewise.
6255 * config/m32r/linux.mh: Likewise.
6256 * config/m68k/linux.mh: Likewise.
6257 * config/m68k/nbsdelf.mh: Likewise.
6258 * config/m68k/obsd.mh: Likewise.
6259 * config/m88k/obsd.mh: Likewise.
6260 * config/mips/fbsd.mh: Likewise.
6261 * config/mips/linux.mh: Likewise.
6262 * config/mips/nbsd.mh: Likewise.
6263 * config/mips/obsd64.mh: Likewise.
6264 * config/pa/linux.mh: Likewise.
6265 * config/pa/nbsd.mh: Likewise.
6266 * config/pa/obsd.mh: Likewise.
6267 * config/powerpc/aix.mh: Likewise.
6268 * config/powerpc/fbsd.mh: Likewise.
6269 * config/powerpc/linux.mh: Likewise.
6270 * config/powerpc/nbsd.mh: Likewise.
6271 * config/powerpc/obsd.mh: Likewise.
6272 * config/powerpc/ppc64-linux.mh: Likewise.
6273 * config/powerpc/spu-linux.mh: Likewise.
6274 * config/s390/linux.mh: Likewise.
6275 * config/sh/nbsd.mh: Likewise.
6276 * config/sparc/fbsd.mh: Likewise.
6277 * config/sparc/linux.mh: Likewise.
6278 * config/sparc/linux64.mh: Likewise.
6279 * config/sparc/nbsd64.mh: Likewise.
6280 * config/sparc/nbsdelf.mh: Likewise.
6281 * config/sparc/obsd64.mh: Likewise.
6282 * config/sparc/sol2.mh: Likewise.
6283 * config/tilegx/linux.mh: Likewise.
6284 * config/vax/nbsdelf.mh: Likewise.
6285 * config/vax/obsd.mh: Likewise.
6286 * config/xtensa/linux.mh: Likewise.
6287 * config/i386/i386gnu.mn: New file, with excerpts from
6288 "config/i386/i386gnu.mh".
6289 * configure: Regenerate.
6290 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6291 *.mh files under "gdb/config".
6292 * configure.nat: New file, with contents from the
6293 "gdb/config/*/*.mh" files.
6294
7ed1acaf
TW
62952017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6296
6297 * btrace.c (btrace_clear): Free insn vector.
6298
e13cb306
PA
62992017-05-05 Pedro Alves <palves@redhat.com>
6300
6301 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6302 * configure: Regenerate.
6303
5ed8105e
PA
63042017-05-04 Pedro Alves <palves@redhat.com>
6305
6306 * Makefile.in (SFILES): Add progspace-and-thread.c.
6307 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6308 (COMMON_OBS): Add progspace-and-thread.o.
6309 * breakpoint.c: Include "progspace-and-thread.h".
6310 (update_inserted_breakpoint_locations)
6311 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6312 Use scoped_restore_current_pspace_and_thread.
6313 (create_std_terminate_master_breakpoint): Use
6314 scoped_restore_current_program_space.
6315 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6316 (print_breakpoint_location): Use
6317 scoped_restore_current_program_space.
6318 (bp_loc_is_permanent): Use
6319 scoped_restore_current_pspace_and_thread.
6320 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6321 (download_tracepoint_locations): Use
6322 scoped_restore_current_pspace_and_thread.
6323 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6324 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6325 (enum step_over_calls_kind): Moved from inferior.h.
6326 (class scoped_restore_current_thread): New class.
6327 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6328 declaration.
6329 (scoped_restore_current_thread): New class.
6330 * infcmd.c: Include "common/gdb_optional.h".
6331 (continue_1, proceed_after_attach): Use
6332 scoped_restore_current_thread.
6333 (notice_new_inferior): Use scoped_restore_current_thread.
6334 * inferior.c: Include "progspace-and-thread.h".
6335 (restore_inferior, save_current_inferior): Delete.
6336 (add_inferior_command, clone_inferior_command): Use
6337 scoped_restore_current_pspace_and_thread.
6338 * inferior.h (scoped_restore_current_inferior): New class.
6339 * infrun.c: Include "progspace-and-thread.h" and
6340 "common/gdb_optional.h".
6341 (follow_fork_inferior): Use
6342 scoped_restore_current_pspace_and_thread.
6343 (scoped_restore_exited_inferior): New class.
6344 (handle_vfork_child_exec_or_exit): Use
6345 scoped_restore_exited_inferior,
6346 scoped_restore_current_pspace_and_thread,
6347 scoped_restore_current_thread and scoped_restore.
6348 (fetch_inferior_event): Use scoped_restore_current_thread.
6349 * linespec.c (decode_line_full, decode_line_1): Use
6350 scoped_restore_current_program_space.
6351 * mi/mi-main.c: Include "progspace-and-thread.h".
6352 (exec_continue): Use scoped_restore_current_thread.
6353 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6354 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6355 * proc-service.c (ps_pglobal_lookup): Use
6356 scoped_restore_current_program_space.
6357 * progspace-and-thread.c: New file.
6358 * progspace-and-thread.h: New file.
6359 * progspace.c (release_program_space, clone_program_space): Use
6360 scoped_restore_current_program_space.
6361 (restore_program_space, save_current_program_space)
6362 (save_current_space_and_thread): Delete.
6363 (switch_to_program_space_and_thread): Moved to
6364 progspace-and-thread.c.
6365 * progspace.h (save_current_program_space)
6366 (save_current_space_and_thread): Delete declarations.
6367 (scoped_restore_current_program_space): New class.
6368 * remote.c (remote_btrace_maybe_reopen): Use
6369 scoped_restore_current_thread.
6370 * symtab.c: Include "progspace-and-thread.h".
6371 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6372 * thread.c (print_thread_info_1): Use
6373 scoped_restore_current_thread.
6374 (struct current_thread_cleanup): Delete.
6375 (do_restore_current_thread_cleanup)
6376 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6377 (scoped_restore_current_thread::~scoped_restore_current_thread):
6378 ... this new dtor.
6379 (make_cleanup_restore_current_thread): Rename/convert to ...
6380 (scoped_restore_current_thread::scoped_restore_current_thread):
6381 ... this new ctor.
6382 (thread_apply_all_command): Use scoped_restore_current_thread.
6383 (thread_apply_command): Use scoped_restore_current_thread.
6384 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6385 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6386
f6223dbb
PA
63872017-05-04 Pedro Alves <palves@redhat.com>
6388
6389 * thread.c (make_cleanup_restore_current_thread): Move
6390 find_thread_ptid call before the is_stopped call. Assert that the
6391 thread is found. Replace is_stopped call by checking the thread's
6392 state directly. Remove unnecessary NULL-thread check.
6393
3c3ae77e
PA
63942017-05-04 Pedro Alves <palves@redhat.com>
6395
6396 * corelow.c (thread_section_name): New class.
6397 (get_core_register_section, get_core_siginfo): Use it.
6398
45eba0ab
AA
63992017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6400
6401 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6402 (get_core_register_section): Remove xfree of NULL pointer.
6403
f81fdd35
AH
64042017-05-03 Alan Hayward <alan.hayward@arm.com>
6405
6406 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6407 * regcache.c (regcache::raw_supply_zeroed): New function.
6408 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6409
35837774
SM
64102017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6411
6412 * gdbarch.sh: Remove commented out definition of
6413 TARGET_CHAR_BIT.
6414 * gdbarch.h: Re-generate.
6415
c94fee56
SDJ
64162017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6417
6418 * configure: Regenerate.
6419
d17f7b36
SM
64202017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6421
6422 * solib-target.c (solib_target_relocate_section_addresses):
6423 Remove num_section_bases, num_bases, segment_bases variables.
6424
b560ebd6
SM
64252017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6426
6427 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6428
f2f46dfc
SM
64292017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6430
6431 * solib-target.c: Include <vector>
6432 (struct lm_info_target) <~lm_info_target>: Remove.
6433 <segment_bases, section_bases>: Change type to
6434 std::vector<CORE_ADDR>.
6435 (library_list_start_segment, library_list_start_section,
6436 library_list_end_library,
6437 solib_target_relocate_section_addresses): Adjust.
6438
a0ff9e1a
SM
64392017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * gdbarch.sh (software_single_step): Change return type to
6442 std::vector<CORE_ADDR>.
6443 * gdbarch.c, gdbarch.h: Re-generate.
6444 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6445 Adjust.
6446 (arm_deal_with_atomic_sequence_raw): Adjust.
6447 (thumb_get_next_pcs_raw): Adjust.
6448 (arm_get_next_pcs_raw): Adjust.
6449 (arm_get_next_pcs): Adjust.
6450 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6451 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6452 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6453 (alpha_software_single_step): Adjust.
6454 * alpha-tdep.h (alpha_software_single_step): Adjust.
6455 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6456 * arm-tdep.c (arm_software_single_step): Adjust.
6457 (arm_breakpoint_kind_from_current_state): Adjust.
6458 * arm-tdep.h (arm_software_single_step): Adjust.
6459 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6460 * cris-tdep.c (cris_software_single_step): Adjust.
6461 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6462 (micromips_deal_with_atomic_sequence): Adjust.
6463 (deal_with_atomic_sequence): Adjust.
6464 (mips_software_single_step): Adjust.
6465 * mips-tdep.h (mips_software_single_step): Adjust.
6466 * moxie-tdep.c (moxie_software_single_step): Adjust.
6467 * nios2-tdep.c (nios2_software_single_step): Adjust.
6468 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6469 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6470 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6471 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6472 * sparc-tdep.c (sparc_software_single_step): Adjust.
6473 * spu-tdep.c (spu_software_single_step): Adjust.
6474 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6475
ea480a30
SM
64762017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6479 * gdbarch.h: Re-generate.
6480
d050f7d7
TW
64812017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6482
6483 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6484 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6485 * python/py-instruction.c, python/py-instruction.h: New file.
6486 * python/py-record.c: Add py-instruction.h include.
6487 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6488 gdb.RecordInstruction.
6489 * python/python-internal.h: Add gdbpy_initialize_instruction
6490 declaration.
6491 * python/python.c (do_start_initialization): Add
6492 gdbpy_initialize_instruction.
6493
14f819c8
TW
64942017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6495
6496 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6497 Remove.
6498 (btrace_func_from_recpy_func): New function.
6499 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6500 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6501 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6502 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6503 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6504 Also, use new helper functions.
6505 (btpy_list_item): Use new helper functions.
6506 (recpy_bt_function_call_history): Use new type name.
6507 (btpy_call_getset): Remove.
6508 (gdbpy_initialize_btrace): Remove code to initialize
6509 gdb.BtraceFunctionCall.
6510 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6511 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6512 recpy_bt_func_prev, recpy_bt_func_next): New export.
6513 * python/py-record.c (recpy_func_type): New static object.
6514 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6515 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6516 recpy_func_next): New function.
6517 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6518 (recpy_func_getset): New static object.
6519 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6520 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6521
0ed5da75
TW
65222017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6523
6524 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6525 (btpy_object, btpy_insn_type, btpy_new): Remove.
6526 (btpy_list_object): Use gdb.RecordInstruction type instead of
6527 gdb.BtraceInstruction type.
6528 (btrace_insn_from_recpy_insn): New function.
6529 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6530 btpy_new.
6531 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6532 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6533 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6534 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6535 instead of btpy_object.
6536 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6537 btpy_insn_data, btpy_insn_decode): Rename to ...
6538 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6539 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6540 recpy_bt_insn_decode): This. Also, use new helper functions.
6541 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6542 recpy_insn_type.
6543 (btpy_insn_getset): Remove.
6544 (gdbpy_initialize_btrace): Remove code to initialize
6545 gdb.BtraceInstruction. Use recpy_element_object.
6546 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6547 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6548 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6549 * python/py-record.c (recpy_insn_type): New static object.
6550 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6551 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6552 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6553 New function.
6554 (recpy_insn_getset): New static object.
6555 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6556 * python/py-record.h (recpy_element_object): New typedef.
6557 (recpy_insn_type, recpy_insn_new): New export.
6558
913aeadd
TW
65592017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6560
6561 * py-record-btrace.c (btpy_insn_new): Removed.
6562 (btpy_insn_or_gap_new): New function.
6563 (btpy_insn_error): Removed.
6564 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6565 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6566 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6567 btpy_insn_or_gap_new instead of btpy_insn_new.
6568 (btpy_insn_getset): Remove btpy_insn_error.
6569 * py-record.c (recpy_gap_type): New static object.
6570 (recpy_gap_object): New typedef.
6571 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6572 recpy_gap_reason_string): New function.
6573 (recpy_gap_getset): New static object.
6574 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6575 * py-record.h (recpy_gap_new): New export.
6576
a3be24ad
TW
65772017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6578
6579 * python/py-record.c (recpy_ptid): Remove.
6580 (recpy_record_getset): Remove recpy_ptid.
6581
ae20e79a
TW
65822017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6583
6584 * btrace.c (btrace_fetch): Set inferior_ptid.
6585 * python/py-record-btrace.c: Add "py-record.h" include.
6586 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6587 recpy_bt_end, recpy_bt_instruction_history,
6588 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6589 in gdb.Record object instead of current ptid.
6590 * python/py-record.c: Include new "py-record.h" file.
6591 (recpy_record_object): Moved to py-record.h.
6592 * python/py-record.h: New file.
6593
8d0050ea
TW
65942017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6595
6596 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6597 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6598 indentation.
6599
3f380b50
JB
66002017-05-01 Joel Brobecker <brobecker@adacore.com>
6601
6602 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6603 the past maintainers section.
6604
07495424
YQ
66052017-04-28 Yao Qi <yao.qi@linaro.org>
6606
6607 * infcmd.c (get_return_value): Use regcache ctor, and remove
6608 cleanup.
6609
deb1fa3e
YQ
66102017-04-28 Yao Qi <yao.qi@linaro.org>
6611 Pedro Alves <palves@redhat.com>
6612
6613 * regcache.c (regcache::regcache): New tag dispatch ctor.
6614 (do_cooked_read): Moved above.
6615 (regcache_dup): Use the tag dispatch ctor..
6616 * regcache.h (regcache): Declare ctor, delete copy ctor and
6617 assignment operator, remove friend regcache_dup.
6618
b421c83c
YQ
66192017-04-28 Yao Qi <yao.qi@linaro.org>
6620
6621 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6622 call method save instead of regcache_cpy.
6623 * regcache.h (struct regcache): Make regcache_dup a friend.
6624
ef79d9a3
YQ
66252017-04-28 Yao Qi <yao.qi@linaro.org>
6626
6627 * regcache.c (struct regcache): Move to regcache.h
6628 (regcache::arch): New method.
6629 (regcache_get_ptid): Update.
6630 (get_regcache_arch): Call arch method.
6631 (get_regcache_aspace): Call method aspace.
6632 (register_buffer): Change it to method.
6633 (regcache_save): Change it to regcache::save.
6634 (regcache_restore): Likewise.
6635 (regcache_cpy_no_passthrough): Remove the declaration.
6636 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6637 (regcache_cpy_no_passthrough): Change it to method
6638 cpy_no_passthrough.
6639 (regcache_register_status): Change it to method
6640 get_register_status.
6641 (regcache_invalidate): Change it to method invalidate.
6642 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6643 (regcache_raw_update): Change it to method raw_update.
6644 (regcache_raw_read): Likewise.
6645 (regcache_raw_read_signed): Likewise.
6646 (regcache_raw_read_unsigned): Likewise.
6647 (regcache_raw_write_signed): Likewise.
6648 (regcache_raw_write_unsigned): Likewise.
6649 (regcache_cooked_read): Likewise.
6650 (regcache_cooked_read_value): Likewise.
6651 (regcache_cooked_read_signed): Likewise.
6652 (regcache_cooked_read_unsigned): Likewise.
6653 (regcache_cooked_write_signed): Likewise.
6654 (regcache_cooked_write_unsigned): Likewise.
6655 (regcache_raw_set_cached_value): Likewise.
6656 (regcache_raw_write): Likewise.
6657 (regcache_cooked_write): Likewise.
6658 (regcache_xfer_part): Likewise.
6659 (regcache_raw_read_part): Likewise.
6660 (regcache_raw_write_part): Likewise.
6661 (regcache_cooked_read_part): Likewise.
6662 (regcache_cooked_write_part): Likewise.
6663 (regcache_raw_supply): Likewise.
6664 (regcache_raw_collect): Likewise.
6665 (regcache_transfer_regset): Likewise.
6666 (regcache_supply_regset): Likewise.
6667 (regcache_collect_regset): Likewise.
6668 (regcache_debug_print_register): Likewise.
6669 (enum regcache_dump_what): Move it to regcache.h.
6670 (regcache_dump): Change it to method dump.
6671 * regcache.h (enum regcache_dump_what): New.
6672 (class regcache): New.
6673 * target.c (target_fetch_registers): Call method
6674 debug_print_register.
6675 (target_store_registers): Likewise.
6676
f8fdb78e
SM
66772017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6678
6679 * windows-nat.c (struct lm_info_windows): Initialize field.
6680 (windows_make_so): Allocate lm_info_windows with new.
6681 (windows_free_so): Free lm_info_windows with delete.
6682
9ccbfd7b
SM
66832017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6684
6685 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6686 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6687 cleanup.
6688 (darwin_free_so): Free lm_info_darwin with delete.
6689
76e75227
SM
66902017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6691
6692 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6693 <l_addr_p>: Change type to bool.
6694 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6695 (svr4_free_so): Free lm_info_svr4 with delete.
6696 (svr4_copy_library_list): Replace memcpy with call to copy
6697 constructor.
6698 (library_list_start_library, svr4_default_sos): Allocate
6699 lm_info_svr4 with new.
6700
51046d9e
SM
67012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * solib-target.c (struct lm_info_target): Add destructor,
6704 initialize fields.
6705 <name>: Change type to std::string.
6706 (library_list_start_library): Allocate lm_info_target with new.
6707 (solib_target_free_library_list): Free lm_info_target with
6708 delete.
6709 (solib_target_current_sos): Adapt to std::string.
6710 (solib_target_free_so): Free lm_info_target with delete.
6711
4023ae76
SM
67122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6713
6714 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6715 fields.
6716 (frv_current_sos): Allocate lm_info_frv with new.
6717 (frv_relocate_main_executable): Free lm_info_frv with delete,
6718 allocate with new.
6719 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6720
af43057b
SM
67212017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * solib-frv.c (struct lm_info_frv): Fix indentation.
6724
b0911207
SM
67252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6726
6727 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6728 map field.
6729 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6730 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6731 and allocate with new.
6732 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6733
6c401f72
SM
67342017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6735
6736 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6737 <filename, member_name>: Change type to std::string.
6738 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6739 (library_list_start_library): Allocate lm_info_aix with new.
6740 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6741 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6742 with copy constructor.
6743
d0e449a1
SM
67442017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6745
6746 * solist.h (struct lm_info): Remove.
6747 (struct lm_info_base): New class.
6748 (struct so_list) <lm_info>: Change type to lm_info_base *.
6749 * nto-tdep.c (struct lm_info): Remove.
6750 (lm_addr): Adjust.
6751 * solib-aix.c (struct lm_info): Rename to ...
6752 (struct lm_info_aix): ... this. Extend lm_info_base.
6753 (lm_info_p): Rename to ...
6754 (lm_info_aix_p): ... this, and adjust.
6755 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6756 solib_aix_parse_libraries, library_list_start_library,
6757 solib_aix_free_library_list, solib_aix_parse_libraries,
6758 solib_aix_get_library_list,
6759 solib_aix_relocate_section_addresses, solib_aix_free_so,
6760 solib_aix_get_section_offsets,
6761 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6762 Adjust.
6763 (struct solib_aix_inferior_data) <library_list>: Adjust.
6764 * solib-darwin.c (struct lm_info): Rename to ...
6765 (struct lm_info_darwin): ... this. Extend lm_info_base.
6766 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6767 * solib-dsbt.c (struct lm_info): Rename to ...
6768 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6769 (struct dsbt_info) <main_executable_lm_info): Adjust.
6770 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6771 dsbt_relocate_section_addresses): Adjust.
6772 * solib-frv.c (struct lm_info): Rename to ...
6773 (struct lm_info_frv): ... this. Extend lm_info_base.
6774 (main_executable_lm_info): Adjust.
6775 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6776 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6777 find_canonical_descriptor_in_load_object,
6778 frv_fdpic_find_canonical_descriptor): Adjust.
6779 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6780 to lm_info_svr4.
6781 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6782 svr4_clear_so, svr4_copy_library_list,
6783 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6784 svr4_current_sos, svr4_fetch_objfile_link_map,
6785 solist_update_incremental): Adjust.
6786 * solib-svr4.h (struct lm_info_svr4): Move here from
6787 solib-svr4.c.
6788 * solib-target.c (struct lm_info): Rename to ...
6789 (struct lm_info_target): ... this. Extend lm_info_base.
6790 (lm_info_p): Rename to ...
6791 (lm_info_target_p): ... this.
6792 (solib_target_parse_libraries, library_list_start_segment,
6793 library_list_start_section, library_list_start_library,
6794 library_list_end_library, solib_target_free_library_list,
6795 solib_target_current_sos, solib_target_free_so,
6796 solib_target_relocate_section_addresses): Adjust.
6797 * windows-nat.c (struct lm_info): Rename to ...
6798 (struct lm_info_windows): ... this. Extend lm_info_base.
6799 (windows_make_so, handle_load_dll, handle_unload_dll,
6800 windows_xfer_shared_libraries): Adjust.
6801
434a4023
SM
68022017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6803
6804 * solib-darwin.c (struct darwin_so_list): Remove.
6805 (darwin_current_sos): Allocate an so_list object instead of a
6806 darwin_so_list, separately allocate an lm_info object.
6807 (darwin_free_so): Free lm_info.
6808
428544e8
JB
68092017-04-28 John Baldwin <jhb@FreeBSD.org>
6810
6811 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6812 with fprintf_filtered.
6813
4621115f
YQ
68142017-04-28 Yao Qi <yao.qi@linaro.org>
6815
6816 * regcache.c (regcache::regcache): New function.
6817 (regcache::~regcache): New function.
6818 (regcache_xmalloc_1): Remove.
6819 (regcache_xmalloc): Call new regcache.
6820 (regcache_xfree): Call delete regcache.
6821 (get_thread_arch_aspace_regcache): Call new regcache.
6822
339053c2
YQ
68232017-04-28 Yao Qi <yao.qi@linaro.org>
6824
6825 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6826 lwp instead of ptid_get_lwp.
6827
7974a605
YQ
68282017-04-28 Yao Qi <yao.qi@linaro.org>
6829
6830 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6831 lwp_info instead of getting from inferior_ptid.
6832
e15c3eb4
KS
68332017-04-27 Keith Seitz <keiths@redhat.com>
6834
6835 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6836 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6837 (CV_CONVERSION_BADNESS): Define.
6838 (rank_one_type): Remove overly restrictive rvalue reference
6839 rank checks.
6840 Add cv-qualifier checks and subranks for type equality.
6841 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6842 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6843 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6844
72bc1d24
SM
68452017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6848 count when creating the object.
6849
55bcecda
UW
68502017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6851 Ulrich Weigand <uweigand@de.ibm.com>
6852
6853 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6854 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6855 is used in AIX.
6856 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6857 (process_xcoff_symbol): Likewise.
6858 (scan_xcoff_symtab): Likewise.
6859
5c99fcf8
AH
68602017-04-26 Alan Hayward <alan.hayward@arm.com>
6861
6862 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6863 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6864 (ia64_access_reg): Use get_frame_register_unsigned.
6865 (ia64_access_rse_reg): Likewise.
6866 (ia64_libunwind_frame_prev_register): Likewise.
6867
b41c5a85
JW
68682017-04-26 Jiong Wang <jiong.wang@arm.com>
6869
6870 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6871 * gdbarch.c: Regenerated.
6872 * gdbarch.h: Regenerated.
6873 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6874 visibility external.
6875 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6876 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6877 (enum cfa_how_kind): Move to ...
6878 (struct dwarf2_frame_state_reg_info): Likewise.
6879 (struct dwarf2_frame_state): Likewise.
6880 * dwarf2-frame.h: ... here.
6881 (dwarf2_frame_state_alloc_regs): New declaration.
6882 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6883 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6884
c185f580
AH
68852017-04-26 Alan Hayward <alan.hayward@arm.com>
6886
6887 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6888 regcache_raw_read_unsigned.
6889 (xtensa_pseudo_register_write): Likewise.
6890
19c45594
AH
68912017-04-26 Alan Hayward <alan.hayward@arm.com>
6892
6893 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6894 (nds32_pseudo_register_write): Likewise.
6895
4658f12e
YQ
68962017-04-25 Yao Qi <yao.qi@linaro.org>
6897
6898 * regcache.c (struct regcache) <readonly_p>: Change its type
6899 to bool.
6900 (regcache_xmalloc_1): Update parameter type and callers update.
6901
d581dda8
YQ
69022017-04-25 Yao Qi <yao.qi@linaro.org>
6903
6904 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6905 set_gdbarch_wchar_bit.
6906 * arm-tdep.c (arm_gdbarch_init): Likewise.
6907
debed3db
PA
69082017-04-25 Pedro Alves <palves@redhat.com>
6909
6910 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6911 (BothAreRelocatable, memcopy, memmove): Don't define.
6912 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6913 macros.
6914
b0b92aeb
PA
69152017-04-25 Pedro Alves <palves@redhat.com>
6916
6917 * common/common-defs.h: Include "common/poison.h".
6918 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6919 and adjust.
6920 * common/poison.h: New file.
6921 * common/traits.h: Include <type_traits>.
6922 (Not, Or, Requires): New, moved from common/function-view.h.
6923
16c4d54a
PA
69242017-04-25 Pedro Alves <palves@redhat.com>
6925
6926 * breakpoint.h (struct breakpoint): In-class initialize all
6927 fields. Make boolean fields "bool".
6928 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6929 memset call and initializations no longer necessary.
6930
b5c36682
PA
69312017-04-25 Pedro Alves <palves@redhat.com>
6932
6933 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6934 reference.
6935 (pt_btrace_insn): New function.
6936 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6937
5625a286
PA
69382017-04-25 Pedro Alves <palves@redhat.com>
6939
6940 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6941 "base" field and inherit from "bp_location" instead. Add
6942 non-default ctor.
6943 (allocate_location_exception): Use new non-default ctor.
6944 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6945 (init_bp_location): Convert to ...
6946 (bp_location::bp_location): ... this new ctor, and remove memset
6947 call.
6948 (base_breakpoint_allocate_location): Use the new non-default ctor.
6949 * breakpoint.h (bp_location): Now a class. Declare default and
6950 non-default ctors. In-class initialize all members.
6951 (init_bp_location): Remove declaration.
6952
23bcc18f
PA
69532017-04-25 Pedro Alves <palves@redhat.com>
6954
6955 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6956 assignment operator.
6957
e1ba3053
YQ
69582017-04-24 Yao Qi <yao.qi@linaro.org>
6959
6960 * doublest.c (convert_doublest_to_floatformat): Call
6961 floatformat_totalsize_bytes.
6962
10f489e5
TT
69632017-04-22 Tom Tromey <tom@tromey.com>
6964
6965 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6966 ui_out_emit_list.
6967 * stack.c (print_frame): Use ui_out_emit_list.
6968 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6969 ui_out_emit_list.
6970 * mi/mi-main.c (print_one_inferior)
6971 (mi_cmd_data_list_register_names)
6972 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6973 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6974 ui_out_emit_list.
6975 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6976 (mi_output_solib_attribs): Use ui_out_emit_list,
6977 ui_out_emit_tuple.
6978 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6979 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6980 (mi_cmd_stack_list_args, list_args_or_locals): Use
6981 ui_out_emit_list.
6982 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6983 * breakpoint.c (print_solib_event, output_thread_groups): Use
6984 ui_out_emit_list.
6985
0092b74d
TT
69862017-04-22 Tom Tromey <tom@tromey.com>
6987
6988 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6989 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6990 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6991
a14a62dd
TT
69922017-04-22 Tom Tromey <tom@tromey.com>
6993
6994 * tracepoint.c (tvariables_info_1)
6995 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6996
46b9c129
TT
69972017-04-22 Tom Tromey <tom@tromey.com>
6998
6999 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7000 annotate_arg_emitter.
7001 * breakpoint.c (print_mention_watchpoint)
7002 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7003 * annotate.h (struct annotate_arg_emitter): New.
7004
2e783024
TT
70052017-04-22 Tom Tromey <tom@tromey.com>
7006
7007 * record-btrace.c (record_btrace_insn_history)
7008 (record_btrace_insn_history_range, record_btrace_call_history)
7009 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7010 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7011 ui_out_emit_tuple.
7012 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7013 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7014 * skip.c (skip_info): Use ui_out_emit_tuple.
7015 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7016 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7017 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7018 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7019 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7020 ui_out_emit_tuple.
7021 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7022 (output_register, mi_cmd_data_read_memory)
7023 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7024 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7025 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7026 Use ui_out_emit_tuple.
7027 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7028 ui_out_emit_tuple.
7029 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7030 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7031 * linux-thread-db.c (info_auto_load_libthread_db): Use
7032 ui_out_emit_tuple.
7033 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7034 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7035 * disasm.c (do_mixed_source_and_assembly_deprecated)
7036 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7037 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7038 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7039 * breakpoint.c (print_one_breakpoint_location)
7040 (print_one_breakpoint): Use ui_out_emit_tuple.
7041 * auto-load.c (print_script, info_auto_load_cmd): Use
7042 ui_out_emit_tuple.
7043 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7044
9be21bb4
SM
70452017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * thread.c (print_thread_info_1): Remove dead code.
7048
0d4c07af
JK
70492017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7050
7051 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7052 GDB_SELF_TEST.
7053 * arm-tdep.c (selftests::arm_record_test): Likewise.
7054
4daf993d
YQ
70552017-04-21 Yao Qi <yao.qi@linaro.org>
7056
7057 * regcache.c (regcache_restore): Remove argument 2. Replace
7058 argument 3 with regcache. Get register status from
7059 src->register_status and get register contents from
7060 register_buffer (src, regnum).
7061 (regcache_cpy): Update.
7062
a6c21d4a
PA
70632017-04-19 Pedro Alves <palves@redhat.com>
7064
7065 * gdbthread.h (thread): Add missing closing parenthesis in
7066 comment.
7067
3a3fd0fd
PA
70682017-04-19 Pedro Alves <palves@redhat.com>
7069
7070 * common/refcounted-object.h: New file.
7071 * gdbthread.h: Include "common/refcounted-object.h".
7072 (thread_info): Inherit from refcounted_object and add comments.
7073 (thread_info::incref, thread_info::decref)
7074 (thread_info::m_refcount): Delete.
7075 (thread_info::deletable): Use the refcounted_object::refcount()
7076 method.
7077 * inferior.c (current_inferior_): Add comment.
7078 (set_current_inferior): Increment/decrement refcounts.
7079 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7080 not-deletable instead of comparing with the current inferior.
7081 (initialize_inferiors): Increment the initial inferior's refcount.
7082 * inferior.h (struct inferior): Forward declare.
7083 Include "common/refcounted-object.h".
7084 (current_inferior, set_current_inferior): Move declaration to
7085 before struct inferior's definition, and fix comment.
7086 (inferior): Inherit from refcounted_object. Add comments.
7087 * thread.c (switch_to_thread_no_regs): Reference the thread's
7088 inferior pointer directly instead of doing a ptid lookup.
7089 (switch_to_no_thread): New function.
7090 (switch_to_thread(thread_info *)): New function, factored out
7091 from ...
7092 (switch_to_thread(ptid_t)): ... this.
7093 (restore_current_thread): Delete.
7094 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7095 fields, and add 'inf' field.
7096 (do_restore_current_thread_cleanup): Check whether old->inf is
7097 alive instead of looking up an inferior by ptid. Use
7098 switch_to_thread and switch_to_no_thread.
7099 (restore_current_thread_cleanup_dtor): Use old->inf directly
7100 instead of lookup up an inferior by id. Decref the inferior.
7101 Don't restore 'removable'.
7102 (make_cleanup_restore_current_thread): Same the inferior pointer
7103 in old, instead of the inferior number. Incref the inferior.
7104 Don't save/clear 'removable'.
7105
9bcb1f16
PA
71062017-04-19 Pedro Alves <palves@redhat.com>
7107
7108 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7109 unittests/scoped_restore-selftests.c.
7110 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7111 * common/scoped_restore.h (scoped_restore_base): Make "class".
7112 (scoped_restore_base::release): New public method.
7113 (scoped_restore_base::scoped_restore_base): New protected ctor.
7114 (scoped_restore_base::m_saved_var): New protected field.
7115 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7116 scoped_restore_base base class instead of m_saved_var directly.
7117 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7118 (scoped_restore_tmpl::scoped_restore_tmpl(const
7119 scoped_restore_tmpl<T>&)): Likewise.
7120 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7121 method.
7122 (scoped_restore_tmpl::saved_var): New method.
7123 (scoped_restore_tmpl::m_saved_var): Delete.
7124 * inferior.h (inferior::detaching): Now a bool.
7125 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7126 cleanup.
7127 * unittests/scoped_restore-selftests.c: New file.
7128
26fcd539
PA
71292017-04-19 Pedro Alves <palves@redhat.com>
7130
7131 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7132 Re-sort in alphabetic order.
7133
fdd243b0
PA
71342017-04-18 Pedro Alves <palves@redhat.com>
7135
7136 * xml-support.c (obstack_xml_printf): Delete.
7137 * xml-support.h (obstack_xml_printf): Delete.
7138
4895cde2
PA
71392017-04-18 Pedro Alves <palves@redhat.com>
7140
7141 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7142 vdebug, verror, body_text, start_element, end_element, name,
7143 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7144 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7145 is_xinclude>: Make private and add m_ prefix.
7146 (gdb_xml_parser::body_text): New method, based on ...
7147 (gdb_xml_body_text): ... this. Adjust.
7148 (gdb_xml_parser::vdebug): New method, based on ...
7149 (gdb_xml_debug): ... this. Adjust.
7150 (gdb_xml_parser::verror): New method, based on ...
7151 (gdb_xml_error): ... this. Adjust.
7152 (gdb_xml_parser::start_element): New method, based on ...
7153 (gdb_xml_start_element): ... this. Adjust.
7154 (gdb_xml_start_element_wrapper): Defer to
7155 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7156 (gdb_xml_parser::end_element): New method, based on ...
7157 (gdb_xml_end_element_wrapper): ... this. Adjust.
7158 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7159 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7160 (gdb_xml_parser::use_dtd): New method, based on ...
7161 (gdb_xml_use_dtd): ... this. Adjust.
7162 (gdb_xml_parser::parse): New method, based on ...
7163 (gdb_xml_parse): ... this. Adjust.
7164 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7165 (xinclude_start_include): Adjust to call the parser's name method.
7166 (xml_xinclude_default, xml_xinclude_start_doctype)
7167 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7168 method.
7169 (xml_process_xincludes): Adjust to call parser methods.
7170 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7171 declarations.
7172
bd8a901f
PA
71732017-04-18 Pedro Alves <palves@redhat.com>
7174
7175 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7176 gdb::optional<std::string>.
7177 * xml-support.c: Include <string>.
7178 (scope_level::scope_level(scope_level &&))
7179 (scope_level::~scope_level): Delete.
7180 (scope_level::body): Now a std::string.
7181 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7182 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7183 parameter.
7184 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7185 (xinclude_parsing_data::output): Now a std::string reference.
7186 (xinclude_start_include): Adjust.
7187 (xml_xinclude_default): Adjust.
7188 (xml_process_xincludes): Add 'output' parameter, and return bool.
7189 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7190 and return bool.
7191 * xml-tdesc.c: Include <unordered_map> and <string>.
7192 (tdesc_xml_cache): Delete.
7193 (tdesc_xml_cache_s): Delete.
7194 (xml_cache): Now an std::unordered_map.
7195 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7196 (target_fetch_description_xml): Change return type to
7197 gdb::optional<std::string>, and adjust.
7198 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7199 (target_fetch_description_xml): Change return type to
7200 gdb::optional<std::string>.
7201
d35d1958
PA
72022017-04-18 Pedro Alves <palves@redhat.com>
7203
7204 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7205 unittests/optional-selftests.c.
7206 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7207 * unittests/optional-selftests.c: New file.
7208 * unittests/optional/assignment/1.cc: New file.
7209 * unittests/optional/assignment/2.cc: New file.
7210 * unittests/optional/assignment/3.cc: New file.
7211 * unittests/optional/assignment/4.cc: New file.
7212 * unittests/optional/assignment/5.cc: New file.
7213 * unittests/optional/assignment/6.cc: New file.
7214 * unittests/optional/assignment/7.cc: New file.
7215 * unittests/optional/cons/copy.cc: New file.
7216 * unittests/optional/cons/default.cc: New file.
7217 * unittests/optional/cons/move.cc: New file.
7218 * unittests/optional/cons/value.cc: New file.
7219 * unittests/optional/in_place.cc: New file.
7220 * unittests/optional/observers/1.cc: New file.
7221 * unittests/optional/observers/2.cc: New file.
7222
22796e97
PA
72232017-04-18 Pedro Alves <palves@redhat.com>
7224
7225 * common/gdb_optional.h: Include common/traits.h.
7226 (in_place_t): New type.
7227 (in_place): New constexpr variable.
7228 (optional::optional): Remove member initialization of
7229 m_instantiated.
7230 (optional::optional(in_place_t...)): New constructor.
7231 (optional::~optional): Use reset.
7232 (optional::optional(const optional&)): New.
7233 (optional::optional(const optional&&)): New.
7234 (optional::optional(T &)): New.
7235 (optional::optional(T &&)): New.
7236 (operator::operator=(const optional &)): New.
7237 (operator::operator=(optional &&)): New.
7238 (operator::operator= (const T &))
7239 (operator::operator= (T &&))
7240 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7241 (operator::reset): New.
7242 (operator::m_instantiated):: Add in-class initializer.
7243 * common/traits.h: Include <type_traits>.
7244 (struct And): New types.
7245
a7fc9b61
PA
72462017-04-18 Pedro Alves <palves@redhat.com>
7247
7248 * xml-support.c: Include <vector>.
7249 (scope_level::scope_level(const gdb_xml_element *))
7250 (scope_level::scope_level(scope_level&&)): New.
7251 (scope_level::~scope_level): New.
7252 (scope_level_s): Delete.
7253 (gdb_xml_parser::scopes): Now a std::vector.
7254 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7255 Use std::vector.
7256 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7257 scope cleanup code.
7258 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7259 of the scopes member. Use std::vector::emplace_back.
7260
010151c9
PA
72612017-04-18 Pedro Alves <palves@redhat.com>
7262
7263 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7264 a bool.
7265 (gdb_xml_end_element): Change type of first parameter.
7266 (gdb_xml_cleanup): Rename to ...
7267 (gdb_xml_parser::~gdb_xml_parser): ... this.
7268 (gdb_xml_create_parser_and_cleanup): Delete with ...
7269 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7270 to this new ctor.
7271 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7272 using gdb_xml_create_parser_and_cleanup.
7273 (xinclude_parsing_data): Add ctor/dtor.
7274 (xml_xinclude_cleanup): Delete.
7275 (xml_process_xincludes): Create a local xinclude_parsing_data
7276 instead of heap-allocating one. Create a local gdb_xml_parser
7277 instead of heap-allocating one with
7278 gdb_xml_create_parser_and_cleanup.
7279
d56060f0
JB
72802017-04-18 John Baldwin <jhb@FreeBSD.org>
7281
7282 PR threads/20743
7283 * fbsd-nat.c (resume_one_thread_cb): Remove.
7284 (resume_all_threads_cb): Remove.
7285 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7286 iterate_over_threads.
7287
305d16a9
JB
72882017-04-17 Joel Brobecker <brobecker@adacore.com>
7289
7290 * NEWS: Create a new section for the next release branch.
7291 Rename the section of the current branch, now that it has
7292 been cut.
7293
8bb57231
JB
72942017-04-17 Joel Brobecker <brobecker@adacore.com>
7295
7296 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7297 * version.in: Bump version to 8.0.50.DATE-git.
7298
096c92dd
SDJ
72992017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7300
7301 PR gdb/21385
7302 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7303 independently of the host, and fix build breakage on Cygwin.
7304
0550c955
PA
73052017-04-13 Pedro Alves <palves@redhat.com>
7306
7307 * inferior.c (free_inferior): Convert to ...
7308 (inferior::~inferior): ... this dtor.
7309 (inferior::inferior): New ctor, factored out from ...
7310 (add_inferior_silent): ... here. Allocate the inferior with a new
7311 expression.
7312 (delete_inferior): Call delete instead of free_inferior.
7313 * inferior.h (gdb_environ, continuation): Forward declare.
7314 (inferior): Now a class. Add in-class initialization to all
7315 members. Make boolean fields bool, except 'detaching'.
7316 (inferior::inferior): New explicit ctor.
7317 (inferior::~inferior): New.
7318
e3d60dfc
PA
73192017-04-13 Pedro Alves <palves@redhat.com>
7320
7321 * inferior.c (init_inferior_list): Delete.
7322 * inferior.h (init_inferior_list): Delete.
7323
5fd69d0a
PA
73242017-04-13 Pedro Alves <palves@redhat.com>
7325
7326 PR threads/13217
7327 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7328 (top level): Call it twice, with different thread sets.
7329
c6609450
PA
73302017-04-13 Pedro Alves <palves@redhat.com>
7331
7332 * thread.c: Include <algorithm>.
7333 (thread_array_cleanup): Delete.
7334 (scoped_inc_dec_ref): New class.
7335 (live_threads_count): New function.
7336 (set_thread_refcount): Delete.
7337 (tp_array_compar_ascending): Now a bool.
7338 (tp_array_compar): Convert to a std::sort comparison function.
7339 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7340 and live_threads_count.
7341
2a00d7ce
PA
73422017-04-13 Pedro Alves <palves@redhat.com>
7343
7344 * infrun.c (follow_fork_inferior): Also switch the current
7345 inferior.
7346
441d7c93
PA
73472017-04-13 Pedro Alves <palves@redhat.com>
7348
7349 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7350 before calling create_internal_breakpoint.
7351
808480f6
PA
73522017-04-13 Pedro Alves <palves@redhat.com>
7353
7354 * fork-child.c (execv_argv): New class.
7355 (breakup_args): Refactored as ...
7356 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7357 Copy arguments to storage and replace separators with NULL
7358 terminators in place.
7359 (escape_bang_in_quoted_argument): Adjust to return bool.
7360 (execv_argv::execv_argv): New ctor.
7361 (execv_argv::init_for_shell): New method, factored out from
7362 fork_inferior. Don't strdup strings into the vector.
7363 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7364 Remove free_vector_argv call.
7365
ad3d022a
YQ
73662017-04-13 Yao Qi <yao.qi@linaro.org>
7367
7368 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7369 tdep->rx_psw_type.
7370
e6ddc3bf
YQ
73712017-04-13 Yao Qi <yao.qi@linaro.org>
7372
7373 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7374 * rx-tdep.c (rx_gdbarch_init): Likewise.
7375
bfb8cf90
PA
73762017-04-13 Pedro Alves <palves@redhat.com>
7377
7378 * breakpoint.h (struct breakpoint): Reindent.
7379
f5336ca5
PA
73802017-04-13 Pedro Alves <palves@redhat.com>
7381
7382 * breakpoint.c (bp_location): Rename to ...
7383 (bp_locations): ... this. All references updated.
7384 (bp_location_count): Rename to ...
7385 (bp_locations_count): ... this. All references updated.
7386 (bp_location_placed_address_before_address_max): Rename to ...
7387 (bp_locations_placed_address_before_address_max): ... this. All
7388 references updated.
7389 (bp_location_shadow_len_after_address_max): Rename to ...
7390 (bp_locations_shadow_len_after_address_max): ... this. All
7391 references updated.
7392 (bp_location_compare_addrs): Rename to ...
7393 (bp_locations_compare_addrs): ... this. All references updated.
7394 (bp_location_compare):Rename to ...
7395 (bp_locations_compare): ... this. All references updated.
7396 (bp_location_target_extensions_update): Rename to ...
7397 (bp_locations_target_extensions_update): ... this. All references
7398 updated.
7399
be628ab8
SDJ
74002017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7401
7402 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7403 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7404 'sgtty.h'.
7405 * common/gdb_termios.h: New file, with parts of "terminal.h".
7406 * inflow.c: Include "gdb_termios.h".
7407 * ser-unix.c: Include "gdb_termios.h".
7408 * terminal.h: Move terminal-related defines to
7409 "common/gdb_termios.h".
7410
8e9e35b1
TT
74112017-04-12 Tom Tromey <tom@tromey.com>
7412
7413 * probe.c (parse_probes): Update.
7414 * location.h (delete_event_location): Don't declare.
7415 (event_location_deleter::operator()): Update.
7416 * location.c (event_location_deleter::operator()): Rename from
7417 delete_event_location.
7418 * linespec.h (linespec_result) <location>: Change type to
7419 event_location_up.
7420 * linespec.c (canonicalize_linespec, event_location_to_sals)
7421 (decode_objc): Update.
7422 (linespec_result): Don't call delete_event_location.
7423 * breakpoint.c (create_breakpoints_sal)
7424 (bkpt_probe_create_sals_from_location)
7425 (strace_marker_create_sals_from_location): Update.
7426
16e802b9
TT
74272017-04-12 Tom Tromey <tom@tromey.com>
7428
7429 * linespec.h (struct linespec_result): Add constructor and
7430 destructor.
7431 (init_linespec_result, destroy_linespec_result)
7432 (make_cleanup_destroy_linespec_result): Don't declare.
7433 * linespec.c (init_linespec_result): Remove.
7434 (linespec_result::~linespec_result): Rename from
7435 destroy_linespec_result. Update.
7436 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7437 Remove.
7438 * breakpoint.c (create_breakpoint, break_range_command)
7439 (decode_location_default): Update.
7440 * ax-gdb.c (agent_command_1): Update.
7441
d28cd78a
TT
74422017-04-12 Tom Tromey <tom@tromey.com>
7443
7444 * remote.c (remote_download_tracepoint): Update.
7445 * python/py-breakpoint.c (bppy_get_location): Update.
7446 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7447 (gdbscm_breakpoint_location): Update.
7448 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7449 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7450 Change type to event_location_up.
7451 * breakpoint.c (create_overlay_event_breakpoint)
7452 (create_longjmp_master_breakpoint)
7453 (create_std_terminate_master_breakpoint)
7454 (create_exception_master_breakpoint)
7455 (breakpoint_event_location_empty_p, print_breakpoint_location)
7456 (print_one_breakpoint_location, create_thread_event_breakpoint)
7457 (init_breakpoint_sal, create_breakpoint)
7458 (print_recreate_ranged_breakpoint, break_range_command)
7459 (init_ada_exception_breakpoint, say_where): Update.
7460 (base_breakpoint_dtor): Don't call delete_event_location.
7461 (bkpt_print_recreate, tracepoint_print_recreate)
7462 (dprintf_print_recreate, update_static_tracepoint)
7463 (breakpoint_re_set_default): Update.
7464
711799d5
TT
74652017-04-12 Tom Tromey <tom@tromey.com>
7466
7467 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7468 type of "to_do". Update.
7469 (compute_stack_depth): Use std::vector.
7470
52d214d3
TT
74712017-04-12 Tom Tromey <tom@tromey.com>
7472
7473 * printcmd.c (find_instruction_backward): Use std::vector.
7474
4c404b8b
TT
74752017-04-12 Tom Tromey <tom@tromey.com>
7476
7477 * symfile.c (objfilep): Remove typedef.
7478 (reread_symbols): Use a std::vector.
7479
156d9eab
TT
74802017-04-12 Tom Tromey <tom@tromey.com>
7481
7482 * mi/mi-main.c (exec_direction_forward): Remove.
7483 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7484 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7485 scoped_restore.
7486 * guile/guile.c (guile_repl_command, guile_command)
7487 (gdbscm_execute_gdb_command): Use scoped_restore.
7488 * go-exp.y (go_parse): Use scoped_restore.
7489 * d-exp.y (d_parse): Use scoped_restore.
7490 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7491 * c-exp.y (c_parse): Use scoped_restore.
7492
4d89769a
TT
74932017-04-12 Tom Tromey <tom@tromey.com>
7494
7495 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7496 (mi_parse): Update return type.
7497 (mi_parse_free): Remove.
7498 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7499 (mi_parse::~mi_parse): Rename from mi_parse_free.
7500 (mi_parse_cleanup): Remove.
7501 (mi_parse): Return a unique_ptr. Use new.
7502 * mi/mi-main.c (mi_execute_command): Update.
7503
4b217cc7
TT
75042017-04-12 Tom Tromey <tom@tromey.com>
7505
7506 * location.c (explicit_location_lex_one): Return a
7507 unique_xmalloc_ptr.
7508 (string_to_explicit_location): Update. Remove cleanups.
7509
59d3651b
TT
75102017-04-12 Tom Tromey <tom@tromey.com>
7511
7512 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7513 (compare_value_and_voffset): Change type. Update.
7514 (compute_vtable_size): Change type of "offset_vec".
7515 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7516 (gnuv3_get_typeid): Remove extraneous declaration.
7517
b24b0d6c
TT
75182017-04-12 Tom Tromey <tom@tromey.com>
7519
7520 * charset.h (wchar_iterator): Fix comment.
7521
80a3b8c5
TT
75222017-04-12 Tom Tromey <tom@tromey.com>
7523
7524 * charset.c (iconv_wrapper): New class.
7525 (cleanup_iconv): Remove.
7526 (convert_between_encodings): Use it.
7527
c83dd867
TT
75282017-04-12 Tom Tromey <tom@tromey.com>
7529
7530 * symfile.h (increment_reading_symtab): Update type.
7531 * symfile.c (decrement_reading_symtab): Remove.
7532 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7533 * psymtab.c (psymtab_to_symtab): Update.
7534 * dwarf2read.c (dw2_instantiate_symtab): Update.
7535
0e8621a0
TT
75362017-04-12 Tom Tromey <tom@tromey.com>
7537
7538 * jit.c (struct jit_reader): Declare separately. Add constructor
7539 and destructor. Change type of "handle".
7540 (loaded_jit_reader): Define separately.
7541 (jit_reader_load): Update. New "new".
7542 (jit_reader_unload_command): Use "delete".
7543 * gdb-dlfcn.h (struct dlclose_deleter): New.
7544 (gdb_dlhandle_up): New typedef.
7545 (gdb_dlopen, gdb_dlsym): Update types.
7546 (gdb_dlclose): Remove.
7547 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7548 (gdb_dlsym): Change type of "handle".
7549 (make_cleanup_dlclose): Remove.
7550 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7551 * compile/compile-c-support.c (load_libcc): Update.
7552
67d89901
TT
75532017-04-12 Tom Tromey <tom@tromey.com>
7554
7555 * symtab.h (find_pcs_for_symtab_line): Change return type.
7556 * symtab.c (find_pcs_for_symtab_line): Change return type.
7557 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7558 type of "vec". Update.
7559 (ltpy_get_pcs_for_line): Update.
7560 * linespec.c (decode_digits_ordinary): Update.
7561
93921405
TT
75622017-04-12 Tom Tromey <tom@tromey.com>
7563
7564 * tracepoint.c (actions_command): Update.
7565 * python/python.c (python_command, python_interactive_command):
7566 Update.
7567 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7568 * guile/guile.c (guile_command): Update.
7569 * defs.h (read_command_lines, read_command_lines_1): Return
7570 command_line_up.
7571 (command_lines_deleter): New struct.
7572 (command_line_up): New typedef.
7573 * compile/compile.c (compile_code_command)
7574 (compile_print_command): Update.
7575 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7576 command_line_up.
7577 (make_cleanup_free_command_lines): Remove.
7578 * cli/cli-script.c (get_command_line, read_command_lines_1)
7579 (copy_command_lines): Return command_line_up.
7580 (while_command, if_command, read_command_lines, define_command)
7581 (document_command): Update.
7582 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7583 Remove.
7584 * breakpoint.h (breakpoint_set_commands): Change type of
7585 "commands".
7586 * breakpoint.c (breakpoint_set_commands): Change type of
7587 "commands". Update.
7588 (do_map_commands_command, update_dprintf_command_list)
7589 (create_tracepoint_from_upload): Update.
7590
ffc2605c
TT
75912017-04-12 Tom Tromey <tom@tromey.com>
7592
7593 * tracepoint.c (scope_info): Update.
7594 * spu-tdep.c (spu_catch_start): Update.
7595 * python/python.c (gdbpy_decode_line): Update.
7596 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7597 * python/py-breakpoint.c (bppy_init): Update.
7598 * probe.c (parse_probes): Update.
7599 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7600 * location.h (event_location_deleter): New struct.
7601 (event_location_up): New typedef.
7602 (new_linespec_location, new_address_location, new_probe_location)
7603 (new_explicit_location, copy_event_location)
7604 (string_to_event_location, string_to_event_location_basic)
7605 (string_to_explicit_location): Update return type.
7606 (make_cleanup_delete_event_location): Remove.
7607 * location.c (new_linespec_location, new_address_location)
7608 (new_probe_location, new_explicit_location, copy_event_location):
7609 Return event_location_up.
7610 (delete_event_location_cleanup)
7611 (make_cleanup_delete_event_location): Remove.
7612 (string_to_explicit_location, string_to_event_location_basic)
7613 (string_to_event_location): Return event_location_up.
7614 * linespec.c (canonicalize_linespec, event_location_to_sals)
7615 (decode_line_with_current_source)
7616 (decode_line_with_last_displayed, decode_objc): Update.
7617 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7618 * completer.c (location_completer): Update.
7619 * cli/cli-cmds.c (edit_command, list_command): Update.
7620 * breakpoint.c (create_overlay_event_breakpoint)
7621 (create_longjmp_master_breakpoint)
7622 (create_std_terminate_master_breakpoint)
7623 (create_exception_master_breakpoint)
7624 (create_thread_event_breakpoint): Update.
7625 (init_breakpoint_sal): Update. Remove some dead code.
7626 (create_breakpoint_sal): Change type of "location". Update.
7627 (create_breakpoints_sal, create_breakpoint, break_command_1)
7628 (dprintf_command, break_range_command, until_break_command)
7629 (init_ada_exception_breakpoint)
7630 (strace_marker_create_sals_from_location)
7631 (update_static_tracepoint, trace_command, ftrace_command)
7632 (strace_command, create_tracepoint_from_upload): Update.
7633 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7634 * ax-gdb.c (agent_command_1): Update.
7635
8f10c932
PA
76362017-04-12 Pedro Alves <palves@redhat.com>
7637
7638 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7639 * configure.tgt: Handle i[34567]86-*-go32* and
7640 i[34567]86-*-msdosdjgpp*.
7641 * i386-tdep.c (i386_svr4_reg_to_regnum):
7642 Make extern.
7643 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7644 i386-go32-tdep.c.
7645 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7646 * i386-go32-tdep.c: New file.
7647 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7648 declarations.
7649
0a31ccfb
SM
76502017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7651
7652 * aix-thread.c (pd_status2str): Change return type to const char *.
7653
e9bb3fbb
PA
76542017-04-12 Pedro Alves <palves@redhat.com>
7655
7656 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7657 calls to set_gdbarch_gnu_triplet_regexp.
7658
53375380
PA
76592017-04-12 Pedro Alves <palves@redhat.com>
7660
7661 PR gdb/21323
7662 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7663 New enum value.
7664 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7665 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7666 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7667 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7668 * gdbarch.h, gdbarch.c: Regenerate.
7669 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7670 gdbarch_wchar_bit and gdbarch_wchar_signed.
7671 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7672 * arm-tdep.c (arm_gdbarch_init): Likewise.
7673 * avr-tdep.c (avr_gdbarch_init): Likewise.
7674 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7675 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7676 * i386-tdep.c (i386_go32_init_abi): Likewise.
7677 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7678 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7679 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7680 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7681 * sh-tdep.c (sh_gdbarch_init): Likewise.
7682 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7683 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7684 * windows-tdep.c (windows_init_abi): Likewise.
7685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7686
53e710ac
PA
76872017-04-12 Pedro Alves <palves@redhat.com>
7688
7689 PR c++/21323
7690 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7691 cplus_primitive_type_char32_t>: New enum values.
7692 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7693 and cplus_primitive_type_char32_t.
7694 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7695 32, use the archtecture's built-in type for char16_t and char32_t,
7696 respectively. Otherwise, fallback to init_integer_type as before,
7697 but make the type unsigned, and issue a complaint.
7698 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7699
ab0538b8
AH
77002017-04-12 Alan Hayward <alan.hayward@arm.com>
7701
5e0e0422 7702 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
7703 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7704
5430098f
SDJ
77052017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7706
7707 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7708 'const char *'.
7709
7c5ded6a
SDJ
77102017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7711
7712 * common/common-utils.c (free_vector_argv): New function.
7713 * common/common-utils.h: Include <vector>.
7714 (free_vector_argv): New prototype.
7715 * darwin-nat.c (darwin_create_inferior): Rewrite function
7716 prototype in order to constify "exec_file" and accept a
7717 "std::string" for "allargs".
7718 * fork-child.c: Include <vector>.
7719 (breakup_args): Rewrite function, using C++.
7720 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7721 and accept "std::string" for "allargs". Update the code to
7722 calculate "argv" based on "allargs". Update calls to "exec_fun"
7723 and "execvp".
7724 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7725 order to constify "exec_file" and accept a "std::string" for
7726 "allargs".
7727 * go32-nat.c (go32_create_inferior): Likewise.
7728 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7729 * infcmd.c (run_command_1): Constify "exec_file". Use
7730 "std::string" for inferior arguments.
7731 * inferior.h (fork_inferior): Update prototype.
7732 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7733 prototype in order to constify "exec_file" and accept a
7734 "std::string" for "allargs".
7735 * nto-procfs.c (procfs_create_inferior): Likewise.
7736 * procfs.c (procfs_create_inferior): Likewise.
7737 * remote-sim.c (gdbsim_create_inferior): Likewise.
7738 * remote.c (extended_remote_run): Update code to accept
7739 "std::string" as argument.
7740 (extended_remote_create_inferior): Rewrite function prototype in
7741 order to constify "exec_file" and accept a "std::string" for
7742 "allargs".
7743 * rs6000-nat.c (super_create_inferior): Likewise.
7744 (rs6000_create_inferior): Likewise.
7745 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7746 * windows-nat.c (windows_create_inferior): Likewise.
7747
ae0eee42
PA
77482017-04-11 Pedro Alves <palves@redhat.com>
7749
7750 * thread.c: Fix whitespace throughout.
7751
a6acac06
PR
77522017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7753
7754 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7755
64403bd1
AH
77562017-04-11 Alan Hayward <alan.hayward@arm.com>
7757
7758 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7759
a5bef50f
SDJ
77602017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7761
7762 PR gdb/21364
7763 * osdata.c (info_osdata): Check if 'type' is an empty string
7764 instead of NULL.
7765
9295a5a9
PA
77662017-04-10 Pedro Alves <palves@redhat.com>
7767
7768 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7769 (ptid_to_global_thread_id, in_thread_list)
7770 (do_captured_list_thread_ids, set_resumed, set_running)
7771 (set_executing, set_stop_requested, finish_thread_state)
7772 (validate_registers_access, can_access_registers_ptid)
7773 (print_thread_info_1, switch_to_thread)
7774 (do_restore_current_thread_cleanup)
7775 (make_cleanup_restore_current_thread, thread_command)
7776 (thread_name_command): Use operator== instead of ptid_equal.
7777
996812e3
PA
77782017-04-10 Pedro Alves <palves@redhat.com>
7779
7780 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7781 (current_thread_cleanup_chain): Delete.
7782 (restore_current_thread_cleanup_dtor)
7783 (make_cleanup_restore_current_thread): Remove references to
7784 current_thread_cleanup_chain.
7785
845b344f
AH
77862017-04-10 Alan Hayward <alan.hayward@arm.com>
7787
7788 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7789 REG_UNKNOWN.
7790
803bdfe4
YQ
77912017-04-10 Yao Qi <yao.qi@linaro.org>
7792
7793 PR gdb/19942
7794 * gdbthread.h (thread_info::deletable): New method.
7795 (thread_info::incref): New method.
7796 (thread_info::decref): New method.
7797 (thread_info::refcount): Move it to private.
7798 * infrun.c (save_stop_context): Call inc_refcount.
7799 (release_stop_context_cleanup): Likewise.
7800 * thread.c (set_thread_exited): New function.
7801 (init_thread_list): Delete "tp" only it is deletable, otherwise
7802 call set_thread_exited.
7803 (delete_thread_1): Call set_thread_exited.
7804 (current_thread_cleanup) <inferior_pid>: Remove.
7805 <thread>: New field.
7806 (restore_current_thread_ptid_changed): Removed.
7807 (do_restore_current_thread_cleanup): Adjust.
7808 (restore_current_thread_cleanup_dtor): Don't call
7809 find_thread_ptid.
7810 (set_thread_refcount): Use dec_refcount.
7811 (make_cleanup_restore_current_thread): Adjust.
7812 (thread_apply_all_command): Call inc_refcount.
7813 (_initialize_thread): Don't call
7814 observer_attach_thread_ptid_changed.
7815
8c25b497
YQ
78162017-04-10 Yao Qi <yao.qi@linaro.org>
7817
7818 * thread.c (delete_thread_1): Hoist code on marking thread as
7819 exited.
7820
8473b447
SM
78212017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7822
7823 * windows-nat.c (windows_detach): Initialize ptid with
7824 minus_one_ptid.
7825
6670ec13
SM
78262017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7827
7828 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7829
ba2f91bb
AH
78302017-04-07 Alan Hayward <alan.hayward@arm.com>
7831
7832 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7833 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7834 (bfin_pseudo_register_write): Likewise
7835
436252de
SM
78362017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7837
7838 * common/ptid.h (struct ptid): Change to...
7839 (class ptid_t): ... this.
7840 <ptid_t>: New constructors.
7841 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7842 matches>: New methods.
7843 <make_null, make_minus_one>: New static methods.
7844 <pid>: Rename to...
7845 <m_pid>: ...this.
7846 <lwp>: Rename to...
7847 <m_lwp>: ...this.
7848 <tid>: Rename to...
7849 <m_tid>: ...this.
7850 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7851 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7852 as references, move comment to class ptid_t.
7853 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7854 ptid_t static methods.
7855 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7856 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7857 Take ptid arguments as references, implement using ptid_t methods.
7858 * unittests/ptid-selftests.c: New file.
7859 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7860 unittests/ptid-selftests.c.
7861 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7862
0dedf377
TP
78632017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7864
7865 * python/python.c (python_run_simple_file): Cast mode literal to
7866 non-const char pointer as expected by PyFile_FromString.
7867
4e9868d4
SM
78682017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7869
7870 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7871 minus_one_ptid and null_ptid.
7872
9bf2a700
PA
78732017-04-05 Pedro Alves <palves@redhat.com>
7874
7875 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7876 * configure: Regenerate.
7877
a121b7c1
PA
78782017-04-05 Pedro Alves <palves@redhat.com>
7879
7880 * ada-exp.y (yyerror): Constify.
7881 * ada-lang.c (bound_name, get_selections)
7882 (ada_variant_discrim_type)
7883 (ada_variant_discrim_name, ada_value_struct_elt)
7884 (ada_lookup_struct_elt_type, is_unchecked_variant)
7885 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7886 (catch_ada_exception_command_split)
7887 (catch_ada_assert_command_split, catch_assert_command)
7888 (ada_op_name): Constify.
7889 * ada-lang.h (ada_yyerror, get_selections)
7890 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7891 * arc-tdep.c (arc_print_frame_cache): Constify.
7892 * arm-tdep.c (arm_skip_stub): Constify.
7893 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7894 (gen_aggregate_elt_ref): Constify.
7895 * bcache.c (print_bcache_statistics): Constify.
7896 * bcache.h (print_bcache_statistics): Constify.
7897 * break-catch-throw.c (catch_exception_command_1):
7898 * breakpoint.c (struct ep_type_description::description):
7899 Constify.
7900 (add_solib_catchpoint): Constify.
7901 (catch_fork_command_1): Add cast.
7902 (add_catch_command): Constify.
7903 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7904 Constify.
7905 * bsd-uthread.c (bsd_uthread_state): Constify.
7906 * buildsym.c (patch_subfile_names): Constify.
7907 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7908 Constify.
7909 * c-exp.y (yyerror): Constify.
7910 (token::oper): Constify.
7911 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7912 * c-varobj.c (cplus_describe_child): Constify.
7913 * charset.c (find_charset_names): Add cast.
7914 (find_charset_names): Constify array and add const_cast.
7915 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7916 (edit_command): Constify.
7917 * cli/cli-decode.c (lookup_cmd): Constify.
7918 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7919 Constify.
7920 (struct dump_context): Constify.
7921 (add_dump_command, restore_command): Constify.
7922 * cli/cli-script.c (get_command_line): Constify.
7923 * cli/cli-script.h (get_command_line): Constify.
7924 * cli/cli-utils.c (check_for_argument): Constify.
7925 * cli/cli-utils.h (check_for_argument): Constify.
7926 * coff-pe-read.c (struct read_pe_section_data): Constify.
7927 * command.h (lookup_cmd): Constify.
7928 * common/print-utils.c (decimal2str): Constify.
7929 * completer.c (gdb_print_filename): Constify.
7930 * corefile.c (set_gnutarget): Constify.
7931 * cp-name-parser.y (yyerror): Constify.
7932 * cp-valprint.c (cp_print_class_member): Constify.
7933 * cris-tdep.c (cris_register_name, crisv32_register_name):
7934 Constify.
7935 * d-exp.y (yyerror): Constify.
7936 (struct token::oper): Constify.
7937 * d-lang.h (d_yyerror): Constify.
7938 * dbxread.c (struct header_file_location::name): Constify.
7939 (add_old_header_file, add_new_header_file, last_function_name)
7940 (dbx_next_symbol_text, add_bincl_to_list)
7941 (find_corresponding_bincl_psymtab, set_namestring)
7942 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7943 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7944 * defs.h (command_line_input, print_address_symbolic)
7945 (deprecated_readline_begin_hook): Constify.
7946 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7947 Constify.
7948 * event-top.c (handle_line_of_input): Constify and add cast.
7949 * exceptions.c (catch_errors): Constify.
7950 * exceptions.h (catch_errors): Constify.
7951 * expprint.c (print_subexp_standard, op_string, op_name)
7952 (op_name_standard, dump_raw_expression, dump_raw_expression):
7953 * expression.h (op_name, op_string, dump_raw_expression):
7954 Constify.
7955 * f-exp.y (yyerror): Constify.
7956 (struct token::oper): Constify.
7957 (struct f77_boolean_val::name): Constify.
7958 * f-lang.c (f_word_break_characters): Constify.
7959 * f-lang.h (f_yyerror): Constify.
7960 * fork-child.c (fork_inferior): Add cast.
7961 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7962 (new_variant): Constify.
7963 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7964 * gdbarch.c: Regenerate.
7965 * gdbcore.h (set_gnutarget): Constify.
7966 * go-exp.y (yyerror): Constify.
7967 (token::oper): Constify.
7968 * go-lang.h (go_yyerror): Constify.
7969 * go32-nat.c (go32_sysinfo): Constify.
7970 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7971 * guile/scm-cmd.c (cmdscm_function): Constify.
7972 * guile/scm-param.c (pascm_param_value): Constify.
7973 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7974 (h8300sx_register_name): Constify.
7975 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7976 Constify.
7977 * ia64-tdep.c (ia64_register_names): Constify.
7978 * infcmd.c (construct_inferior_arguments): Constify.
7979 (path_command, attach_post_wait): Constify.
7980 * language.c (show_range_command, show_case_command)
7981 (unk_lang_error): Constify.
7982 * language.h (language_defn::la_error)
7983 (language_defn::la_name_of_this): Constify.
7984 * linespec.c (decode_line_2): Constify.
7985 * linux-thread-db.c (thread_db_err_str): Constify.
7986 * lm32-tdep.c (lm32_register_name): Constify.
7987 * m2-exp.y (yyerror): Constify.
7988 * m2-lang.h (m2_yyerror): Constify.
7989 * m32r-tdep.c (m32r_register_names): Constify and make static.
7990 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7991 * m88k-tdep.c (m88k_register_name): Constify.
7992 * macroexp.c (appendmem): Constify.
7993 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7994 (upgrade_type, parse_external, parse_partial_symbols)
7995 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7996 (new_symbol): Constify.
7997 * memattr.c (mem_info_command): Constify.
7998 * mep-tdep.c (register_name_from_keyword): Constify.
7999 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8000 Constify.
8001 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8002 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8003 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8004 cast.
8005 (mi_execute_async_cli_command): Constify.
8006 * mips-tdep.c (mips_register_name): Constify.
8007 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8008 (am33_register_name, am33_2_register_name)
8009 * moxie-tdep.c (moxie_register_names): Constify.
8010 * nat/linux-osdata.c (osdata_type): Constify fields.
8011 * nto-tdep.c (nto_parse_redirection): Constify.
8012 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8013 (lookup_child_selector): Constify.
8014 (objc_methcall::name): Constify.
8015 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8016 (lookup_struct_typedef): Constify.
8017 * objfiles.c (pc_in_section): Constify.
8018 * objfiles.h (pc_in_section): Constify.
8019 * p-exp.y (struct token::oper): Constify.
8020 (yyerror): Constify.
8021 * p-lang.h (pascal_yyerror): Constify.
8022 * parser-defs.h (op_name_standard): Constify.
8023 (op_print::string): Constify.
8024 (exp_descriptor::op_name): Constify.
8025 * printcmd.c (print_address_symbolic): Constify.
8026 * psymtab.c (print_partial_symbols): Constify.
8027 * python/py-breakpoint.c (stop_func): Constify.
8028 (bppy_get_expression): Constify.
8029 * python/py-cmd.c (cmdpy_completer::name): Constify.
8030 (cmdpy_function): Constify.
8031 * python/py-event.c (evpy_add_attribute)
8032 (gdbpy_initialize_event_generic): Constify.
8033 * python/py-event.h (evpy_add_attribute)
8034 (gdbpy_initialize_event_generic): Constify.
8035 * python/py-evts.c (add_new_registry): Constify.
8036 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8037 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8038 * python/py-inferior.c (get_buffer): Add cast.
8039 * python/py-param.c (parm_constant::name): Constify.
8040 * python/py-unwind.c (fprint_frame_id): Constify.
8041 * python/python.c (gdbpy_parameter_value): Constify.
8042 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8043 * remote.c (memory_packet_config::name): Constify.
8044 (show_packet_config_cmd, remote_write_bytes)
8045 (remote_buffer_add_string):
8046 * reverse.c (exec_reverse_once): Constify.
8047 * rs6000-tdep.c (variant::name, variant::description): Constify.
8048 * rust-exp.y (rustyyerror): Constify.
8049 * rust-lang.c (rust_op_name): Constify.
8050 * rust-lang.h (rustyyerror): Constify.
8051 * serial.h (serial_ops::name): Constify.
8052 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8053 (sh_sh3e_register_name, sh_sh2e_register_name)
8054 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8055 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8056 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8057 (sh_sh4al_dsp_register_name): Constify.
8058 * sh64-tdep.c (sh64_register_name): Constify.
8059 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8060 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8061 * stabsread.c (patch_block_stabs, read_type_number)
8062 (ref_map::stabs, ref_add, process_reference)
8063 (symbol_reference_defined, define_symbol, define_symbol)
8064 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8065 (read_one_struct_field, read_struct_fields, read_baseclasses)
8066 (read_tilde_fields, read_struct_type, read_array_type)
8067 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8068 (read_huge_number, read_range_type, read_args, common_block_start)
8069 (find_name_end): Constify.
8070 * stabsread.h (common_block_start, define_symbol)
8071 (process_one_symbol, symbol_reference_defined, ref_add):
8072 * symfile.c (get_section_index, add_symbol_file_command):
8073 * symfile.h (get_section_index): Constify.
8074 * target-descriptions.c (tdesc_type::name): Constify.
8075 (tdesc_free_type): Add cast.
8076 * target.c (find_default_run_target):
8077 (add_deprecated_target_alias, find_default_run_target)
8078 (target_announce_detach): Constify.
8079 (do_option): Constify.
8080 * target.h (add_deprecated_target_alias): Constify.
8081 * thread.c (print_thread_info_1): Constify.
8082 * top.c (deprecated_readline_begin_hook, command_line_input):
8083 Constify.
8084 (init_main): Add casts.
8085 * top.h (handle_line_of_input): Constify.
8086 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8087 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8088 (tfind_command): Rename to ...
8089 (tfind_command_1): ... this and constify.
8090 (tfind_command): New function.
8091 (tfind_end_command, tfind_start_command): Adjust.
8092 (encode_source_string): Constify.
8093 * tracepoint.h (encode_source_string): Constify.
8094 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8095 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8096 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8097 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8098 * tui/tui-win.c (parse_scrolling_args): Constify.
8099 * tui/tui-windata.c (tui_erase_data_content): Constify.
8100 * tui/tui-windata.h (tui_erase_data_content): Constify.
8101 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8102 * tui/tui.c (tui_enable): Add cast.
8103 * utils.c (defaulted_query): Constify.
8104 (init_page_info): Add cast.
8105 (puts_debug, subset_compare): Constify.
8106 * utils.h (subset_compare): Constify.
8107 * varobj.c (varobj_format_string): Constify.
8108 * varobj.h (varobj_format_string): Constify.
8109 * vax-tdep.c (vax_register_name): Constify.
8110 * windows-nat.c (windows_detach): Constify.
8111 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8112 * xml-support.c (gdb_xml_end_element): Constify.
8113 * xml-tdesc.c (tdesc_start_reg): Constify.
8114 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8115 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8116 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8117
995816ba
PA
81182017-04-05 Pedro Alves <palves@redhat.com>
8119
8120 * proc-api.c (struct trans): Constify.
8121 (procfs_note): Constify.
8122 * proc-events.c (struct trans, syscall_table):
8123 * proc-flags.c (struct trans): Constify.
8124 * proc-utils.h (procfs_note): Constify.
8125 * proc-why.c (struct trans): Constify.
8126 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8127 (procfs_detach): Constify.
8128 * sol-thread.c (struct string_map): Constify.
8129 (td_err_string, td_state_string): Constify.
8130
3e83a920
PA
81312017-04-05 Pedro Alves <palves@redhat.com>
8132
8133 * proc-api.c (procfs_filename): Don't initialize
8134 procfs_filename.
8135 (prepare_to_trace): Assume procfs_filename is non-NULL.
8136 (_initialize_proc_api): Give procfs_filename a default value here.
8137
63160a43
PA
81382017-04-05 Pedro Alves <palves@redhat.com>
8139
8140 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8141 'cond_string' parameter.
8142 (extract_exception_regexp): Constify 'string' parameter.
8143 (catch_exception_command_1): Constify.
8144 * breakpoint.c (init_catchpoint)
8145 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8146 parameter.
8147 (ep_parse_optional_if_clause, catch_fork_command_1)
8148 (catch_exec_command_1): Constify.
8149 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8150 parameter.
8151 (ep_parse_optional_if_clause): Constify.
8152 * cli/cli-utils.c (remove_trailing_whitespace)
8153 (check_for_argument): Constify.
8154 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8155 non-const overload.
8156 (check_for_argument): Likewise.
8157
9b2eba3d
PA
81582017-04-05 Pedro Alves <palves@redhat.com>
8159
8160 * event-top.c (command_line_handler): Add cast to execute_command
8161 call.
8162 * record-btrace.c (cmd_record_btrace_bts_start)
8163 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8164 (cmd_record_btrace_start): Add cast to execute_command call.
8165 * record-full.c (record_full_goto_insn):
8166 * record.c (record_start, record_stop): Add cast to
8167 execute_command_to_string calls.
8168 (cmd_record_start): Add cast to execute_command calls.
8169
2adadf51
PA
81702017-04-05 Pedro Alves <palves@redhat.com>
8171
8172 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8173 static inline function.
8174 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8175 array and use gdb_PyArg_ParseTupleAndKeywords.
8176 * python/py-cmd.c (cmdpy_init): Likewise.
8177 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8178 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8179 (infpy_search_memory): Likewise.
8180 * python/py-objfile.c (objfpy_add_separate_debug_file)
8181 (gdbpy_lookup_objfile): Likewise.
8182 * python/py-symbol.c (gdbpy_lookup_symbol)
8183 (gdbpy_lookup_global_symbol): Likewise.
8184 * python/py-type.c (gdbpy_lookup_type): Likewise.
8185 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8186 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8187 Likewise.
8188
0d1f4ceb
PA
81892017-04-05 Pedro Alves <palves@redhat.com>
8190
8191 * python/python-internal.h (gdb_PyGetSetDef): New type.
8192 * python/py-block.c (block_object_getset)
8193 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8194 * python/py-event.c (event_object_getset)
8195 (finish_breakpoint_object_getset): Likewise.
8196 * python/py-inferior.c (inferior_object_getset): Likewise.
8197 * python/py-infthread.c (thread_object_getset): Likewise.
8198 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8199 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8200 * python/py-objfile.c (objfile_getset): Likewise.
8201 * python/py-progspace.c (pspace_getset): Likewise.
8202 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8203 Likewise.
8204 * python/py-record.c (recpy_record_getset): Likewise.
8205 * python/py-symbol.c (symbol_object_getset): Likewise.
8206 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8207 Likewise.
8208 * python/py-type.c (type_object_getset, field_object_getset):
8209 Likewise.
8210 * python/py-value.c (value_object_getset): Likewise.
8211
4d759979
PA
82122017-04-05 Pedro Alves <palves@redhat.com>
8213
8214 * python/python-internal.h (gdb_PyObject_CallMethod)
8215 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8216 New functions.
8217 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8218 (PySys_GetObject, PySys_SetPath): New macros.
8219
fdf9e36f
PA
82202017-04-05 Pedro Alves <palves@redhat.com>
8221
8222 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8223 info_osdata_command.
8224 * osdata.c (info_osdata_command): Rename to ...
8225 (info_osdata): ... this. Constify 'type' parameter, and remove
8226 the 'from_tty' parameter. Accept NULL TYPE.
8227 (info_osdata_command): New function.
8228 * osdata.h (info_osdata_command): Remove declaration.
8229 (info_osdata): New declaration.
8230
9f33b8b7
PA
82312017-04-05 Pedro Alves <palves@redhat.com>
8232
8233 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8234 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8235 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8236 parameter.
8237 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8238 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8239 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8240 parameter.
8241 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8242 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8243 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8244 (mi_cmd_file_list_exec_source_files)
8245 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8246 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8247 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8248 parameter.
8249 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8250 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8251 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8252 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8253 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8254 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8255 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8256 'command' parameter.
8257 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8258 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8259 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8260 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8261 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8262 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8263 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8264 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8265 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8266 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8267 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8268 parameter.
8269 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8270 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8271 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8272 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8273 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8274 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8275 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8276 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8277 (mi_cmd_data_list_changed_registers)
8278 (mi_cmd_data_write_register_values)
8279 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8280 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8281 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8282 (mi_cmd_list_features, mi_cmd_list_target_features)
8283 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8284 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8285 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8286 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8287 (mi_cmd_trace_frame_collected): Constify 'command'
8288 parameter.
8289 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8290 'command' parameter.
8291
67cb5b2d
PA
82922017-04-05 Pedro Alves <palves@redhat.com>
8293
8294 * ada-lang.c (ada_completer_word_break_characters): Now a const
8295 array.
8296 (ada_get_gdb_completer_word_break_characters): Constify.
8297 * completer.c (gdb_completer_command_word_break_characters)
8298 (gdb_completer_file_name_break_characters)
8299 (gdb_completer_quote_characters): Now const arrays.
8300 (get_gdb_completer_quote_characters): Constify.
8301 (set_rl_completer_word_break_characters): New function.
8302 (set_gdb_completion_word_break_characters)
8303 (complete_line_internal): Use it.
8304 * completer.h (get_gdb_completer_quote_characters): Constify.
8305 (set_rl_completer_word_break_characters): Declare.
8306 * f-lang.c (f_word_break_characters): Constify.
8307 * language.c (default_word_break_characters): Constify.
8308 * language.h (language_defn::la_word_break_characters): Constify.
8309 (default_word_break_characters): Constify.
8310 * top.c (init_main): Use set_rl_completer_word_break_characters.
8311
7a114964
PA
83122017-04-05 Pedro Alves <palves@redhat.com>
8313
8314 * aix-thread.c (aix_thread_pid_to_str)
8315 (aix_thread_extra_thread_info): Constify.
8316 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8317 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8318 (bsd_uthread_pid_to_str): Constify.
8319 * corelow.c (core_pid_to_str): Constify.
8320 * darwin-nat.c (darwin_pid_to_str): Constify.
8321 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8322 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8323 Constify.
8324 * gnu-nat.c (gnu_pid_to_str): Constify.
8325 * go32-nat.c (go32_pid_to_str): Constify.
8326 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8327 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8328 * inferior.c (inferior_pid_to_str): Constify.
8329 * linux-nat.c (linux_nat_pid_to_str): Constify.
8330 * linux-tdep.c (linux_core_pid_to_str): Constify.
8331 * linux-thread-db.c (thread_db_pid_to_str)
8332 (thread_db_extra_thread_info): Constify.
8333 * nto-tdep.c (nto_extra_thread_info): Constify.
8334 * nto-tdep.h (nto_extra_thread_info): Constify.
8335 * obsd-nat.c (obsd_pid_to_str): Constify.
8336 * procfs.c (procfs_pid_to_str): Constify.
8337 * ravenscar-thread.c (ravenscar_extra_thread_info)
8338 (ravenscar_pid_to_str): Constify.
8339 * remote-sim.c (gdbsim_pid_to_str): Constify.
8340 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8341 Constify.
8342 * sol-thread.c (solaris_pid_to_str): Constify.
8343 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8344 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8345 * target.c (default_pid_to_str, target_pid_to_str)
8346 (normal_pid_to_str, default_pid_to_str): Constify.
8347 * target.h (target_ops::to_pid_to_str)
8348 (target_ops::to_extra_thread_info): Constify.
8349 (target_pid_to_str, normal_pid_to_str): Constify.
8350 * windows-nat.c (windows_pid_to_str): Constify.
8351 * gdbarch.sh (core_pid_to_str): Constify.
8352 * target-delegates.c: Regenerate.
8353 * gdbarch.h, gdbarch.c: Regenerate.
8354
69bbf465
PA
83552017-04-05 Pedro Alves <palves@redhat.com>
8356
8357 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8358 the memory of the temporary warning_pre_print override.
8359 * utils.c (warning_pre_print): Constify.
8360 * utils.h (warning_pre_print): Constify.
8361
be47f9e8
PA
83622017-04-05 Pedro Alves <palves@redhat.com>
8363
8364 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8365 (shell_command): New function.
8366 (make_command): Use std::string.
8367 (init_cli_cmds): Register shell_command instead of shell_escape.
8368
bde6261a
PA
83692017-04-05 Pedro Alves <palves@redhat.com>
8370
8371 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8372 * tracepoint.c (default_collect): Don't initialize.
8373
b38ef47f
PA
83742017-04-05 Pedro Alves <palves@redhat.com>
8375
8376 * macroexp.c (macro_buffer::shared): Now a bool.
8377 (init_buffer): Update.
8378 (init_shared_buffer): Constify 'addr' parameter.
8379 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8380 casts.
8381
f995bbe8
PA
83822017-04-05 Pedro Alves <palves@redhat.com>
8383
8384 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8385 * disasm.c (set_disassembler_options): Constify local.
8386 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8387
4a596fe2
SDJ
83882017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8389
8390 PR gdb/21352
8391 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8392 option.
8393
2cad08ea
YQ
83942017-04-05 Yao Qi <yao.qi@linaro.org>
8395
8396 * frame.c (frame_unwind_register_unsigned): Call
8397 frame_unwind_register_value.
8398
55a98976
YQ
83992017-04-05 Yao Qi <yao.qi@linaro.org>
8400
8401 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8402 Use gdb_test_multiple, and don't match anchor.
8403
4ac40124
PA
84042017-04-05 Pedro Alves <palves@redhat.com>
8405
8406 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8407 (Write After Approval): Remove Simon Marchi.
8408
c053b654
PA
84092017-04-05 Pedro Alves <palves@redhat.com>
8410
8411 * common/gdb_optional.h (optional::optional): Make constexpr and
8412 initialize m_dummy.
8413
4c7bf4f9
JB
84142017-04-04 John Baldwin <jhb@FreeBSD.org>
8415
8416 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8417 (amd64fbsd_jmp_buf_reg_offset): Remove.
8418 (amd64fbsd_supply_uthread): Remove function.
8419 (amd64fbsd_collect_uthread): Remove function.
8420 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8421 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8422 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8423 (fbsd-nat.c): Update comment.
8424 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8425 (i386fbsd_jmp_buf_reg_offset): Remove.
8426 (i386fbsd_supply_uthread): Remove function.
8427 (i386fbsd_collect_uthread): Remove function.
8428 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8429
1e1a8bef
JB
84302017-04-04 John Baldwin <jhb@FreeBSD.org>
8431
8432 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8433 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8434 * NEWS: Mention that support for FreeBSD/alpha was removed.
8435 * alpha-fbsd-tdep.c: Delete file.
8436 * config/alpha/fbsd.mh: Delete file.
8437 * configure.host: Delete alpha*-*-freebsd* and
8438 alpha*-*-kfreebsd*-gnu.
8439 * configure.tgt: Delete alpha*-*-freebsd* and
8440 alpha*-*-kfreebsd*-gnu.
8441
49907934
JB
84422017-04-04 John Baldwin <jhb@FreeBSD.org>
8443
8444 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8445 amd64bsd_store_inferior_registers): Use ptid from regcache.
8446
6f77053d
PA
84472017-04-04 Pedro Alves <palves@redhat.com>
8448
8449 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8450 data fields, make them private and add "m_" prefixes.
8451 (lnp_state_machine::lnp_state_machine): New ctor.
8452 (record_line, check_line_address, handle_set_discriminator)
8453 (handle_set_address, handle_advance_pc, handle_special_opcode)
8454 (handle_advance_line, handle_set_file, handle_negate_stmt)
8455 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8456 (end_sequence, advance_line): New methods.
8457 (m_gdbarch, m_record_lines_p): New fields.
8458 (lnp_reader_state): Delete.
8459 (dwarf_record_line): Rename to ...
8460 (lnp_state_machine::record_line): ... adjust.
8461 (init_lnp_state_machine): Delete.
8462 (lnp_state_machine::lnp_state_machine): New.
8463 (check_line_address): Rename to ...
8464 (lnp_state_machine::check_line_address): This.
8465 (dwarf_decode_lines_1): Remove reference to "reader_state".
8466 Adjust lnp_state_machine having a non-default ctor. Use bool.
8467 State machine internal state manipulation moved to
8468 lnp_state_machine methods.
8469
9c541725
PA
84702017-04-04 Pedro Alves <palves@redhat.com>
8471
8472 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8473 unittests/offset-type-selftests.c.
8474 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8475 * common/offset-type.h: New file.
8476 * common/preprocessor.h: New file.
8477 * common/traits.h: New file.
8478 * common/valid-expr.h: New file.
8479 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8480 sect_offset and cu_offset strong typedefs throughout.
8481 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8482 typedefs throughout.
8483 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8484 sect_offset and cu_offset strong typedefs throughout.
8485 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8486 typedefs throughout.
8487 * gdbtypes.h: Include "common/offset-type.h".
8488 (cu_offset): Now an offset type (strong typedef) instead of a
8489 struct.
8490 (sect_offset): Likewise.
8491 (union call_site_parameter_u): Rename "param_offset" field to
8492 "param_cu_off".
8493 * unittests/offset-type-selftests.c: New file.
8494
ecfb656c
PA
84952017-04-04 Pedro Alves <palves@redhat.com>
8496
8497 * common/underlying.h: New file.
8498 * dwarf2read.c: Include "common/gdb_optional.h" and
8499 "common/underlying.h".
8500 (dir_index, file_name_index): New types.
8501 (file_entry): Use them.
8502 (file_entry::include): Use to_underlying.
8503 (line_header::add_file_name): Use dir_index.
8504 (read_formatted_entries): Use gdb::optional. Read form before
8505 writting to file_entry.
8506 (dwarf_decode_line_header): Use dir_index.
8507 (lnp_state_machine::current_file): Use to_underlying.
8508 (lnp_state_machine::file): Change type to file_name_index.
8509 (dwarf_record_line): Use to_underlying.
8510 (init_lnp_state_machine): Use file_name_index.
8511 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8512
d194f1fe
PA
85132017-04-04 Pedro Alves <palves@redhat.com>
8514
8515 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8516 operator bool, has_value and get methods.
8517
fff8551c
PA
85182017-04-04 Pedro Alves <palves@redhat.com>
8519
8520 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8521 fields.
8522 (line_header): Initialize all data fields. Change type of
8523 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8524 Change type of include_dirs to std::vector<const char *>. Remove
8525 num_include_dirs, include_dirs_size. Change type of file_names to
8526 std::vector<file_entry>. Remove num_file_names, file_names_size.
8527 (line_header::line_header): New.
8528 (line_header::add_include_dir, line_header::add_file_name): New
8529 methods.
8530 (line_header::include_dir_at): Remove NULL check.
8531 (line_header::file_name_at): Add const overload.
8532 (line_header_up): New unique_ptr typedef.
8533 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8534 std::vector. Remove free_line_header call.
8535 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8536 free_line_header call.
8537 (free_cu_line_header): Delete.
8538 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8539 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8540 Adjust to use std::vector.
8541 (free_line_header): Delete.
8542 (free_line_header_voidp): Use delete.
8543 (add_include_dir): Replace with ...
8544 (line_header::add_include_dir): ... this method. Use std::vector.
8545 (add_file_name): Replace with ...
8546 (line_header::add_file_name): ... this method. Use std::vector.
8547 (add_include_dir_stub): Delete.
8548 (read_formatted_entries): Remove memset.
8549 (dwarf_decode_line_header): Return a line_header_up instead of a
8550 raw pointer. Remove cleanup handling. Pass lambdas to
8551 read_formatted_entries. Adjust to use line_header methods.
8552 (dwarf_decode_lines_1): Adjust to use line_header methods.
8553 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8554 use std::vector.
8555
d62a8ae2
SM
85562017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8557
8558 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8559 instead of struct ptid.
8560
db3a1dc7
AH
85612017-05-04 Alan Hayward <alan.hayward@arm.com>
8562
8563 * frame.c (get_frame_register_bytes): Unwind using value.
8564 (put_frame_register_bytes): Likewise.
8565
b1b45502
IB
85662017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8567
8568 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8569 aggregate-like.
8570
ec13808e
JK
85712017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8572
8573 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8574
12316564
YQ
85752017-03-29 Yao Qi <yao.qi@linaro.org>
8576
8577 * gdbthread.h (struct thread_info): Declare constructor and
8578 destructor. Add some in-class member initializers.
8579 * thread.c (free_thread): Remove.
8580 (init_thread_list): Call delete instead of free_thread.
8581 (new_thread): Call thread_info constructor.
8582 (thread_info::thread_info): New function.
8583 (thread_info::~thread_info): New function.
8584 (delete_thread_1): Call delete instead of free_thread.
8585 (make_cleanup_restore_current_thread): Move tp and frame to
8586 inner block.
8587
fe5f7374
AK
85882017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8589
8590 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8591 (arc_skip_prologue): Likewise.
8592 (arc_make_frame_cache): Likewise.
8593 (arc_pv_get_operand): New function.
8594 (arc_is_in_prologue): Likewise.
8595 (arc_analyze_prologue): Likewise.
8596 (arc_print_frame_cache): Likewise.
8597 (MAX_PROLOGUE_LENGTH): New constant.
8598
eea78757
AK
85992017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8600
8601 * configure.tgt: Add arc-insn.o.
8602 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8603 (dump_arc_instruction_command): New function.
8604 (arc_fprintf_disasm): Likewise.
8605 (arc_disassemble_info): Likewise.
8606 (arc_insn_get_operand_value): Likewise.
8607 (arc_insn_get_operand_value_signed): Likewise.
8608 (arc_insn_get_memory_base_reg): Likewise.
8609 (arc_insn_get_memory_offset): Likewise.
8610 (arc_insn_get_branch_target): Likewise.
8611 (arc_insn_dump): Likewise.
8612 (arc_insn_get_linear_next_pc): Likewise.
8613 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8614 (arc_disassemble_info): Likewise.
8615 (arc_insn_get_branch_target): Likewise.
8616 (arc_insn_get_linear_next_pc): Likewise.
8617 * NEWS: Mention new "maint print arc arc-instruction".
8618
3be78afd
AK
86192017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8620
8621 * arc-tdep (maintenance_print_arc_list): New variable.
8622 (maintenance_print_arc_command): New function.
8623
296ec4fa
AK
86242017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8625
8626 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8627 Add "limm" and "reserved".
8628 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8629 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8630 * arc-tdep.h (arc_regnum): Likewise.
8631
f74f865e
MF
86322017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8633
8634 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8635 for THREADPTR register.
8636 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8637 register.
8638 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8639 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8640 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8641
0d0bf81a
MF
86422017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8643
8644 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8645 registers above gdbarch_num_regs (gdbarch) as privileged in
8646 call0 ABI.
8647
0ce4291e
MF
86482017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8649
8650 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8651 for a single specified register or for all registers in
8652 a0_base..a0_base + C0_NREGS range.
8653 (supply_gregset_reg): Call regcache_raw_supply for a single
8654 specified register or for all registers in a0_base..a0_base +
8655 C0_NREGS range.
8656
c56054f9
MF
86572017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8658
8659 * arch/xtensa.h (C0_NREGS): Add definition.
8660 * xtensa-tdep.c (C0_NREGS): Remove definition.
8661
a4398628
MF
86622017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8663
8664 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8665 Drop xtensa_default_isa initialization.
8666 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8667
8c43009f
PA
86682017-03-27 Pedro Alves <palves@redhat.com>
8669
8670 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8671 (file_entry::include_dir): New method.
8672 (line_header::include_dir_at, line_header::file_name_at): New
8673 methods.
8674 (setup_type_unit_groups, setup_type_unit_groups)
8675 (psymtab_include_file_name): Simplify using the new methods.
8676 (lnp_state_machine) <the_line_header>: New field.
8677 <file>: Add comment.
8678 (lnp_state_machine::current_file): New method.
8679 (dwarf_record_line): Simplify using the new methods.
8680 (init_lnp_state_machine): Initialize the "the_line_header" field.
8681 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8682 Simplify using the new methods.
8683
a7e80b9e
PA
86842017-03-27 Pedro Alves <palves@redhat.com>
8685
8686 * cp-name-parser.y (make_empty): Delete.
8687 (demangler_special, nested_name, ptr_operator, array_indicator)
8688 (direct_declarator, declarator_1): Use fill_comp instead of
8689 make_empty.
8690
21047726
PA
86912017-03-27 Pedro Alves <palves@redhat.com>
8692
8693 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8694 to ATTRIBUTE_PRINTF.
8695 * solib-target.c (library_list_start_list): Print "string" not
8696 "version".
8697 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8698 gdb_xml_error call.
8699
d721ba37
PA
87002017-03-27 Pedro Alves <palves@redhat.com>
8701
8702 * dwarf2read.c (struct file_and_directory): New.
8703 (dwarf2_get_dwz_file): Adjust to use std::string.
8704 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8705 (find_file_and_directory): Adjust to return a file_and_directory
8706 object.
8707 (read_file_scope): Adjust to use file_and_directory. Remove
8708 make_cleanup/do_cleanups calls.
8709 (open_and_init_dwp_file): Adjust to use std::string. Remove
8710 make_cleanup/do_cleanups calls.
8711 * python/python.c (do_start_initialization): Adjust to ldirname
8712 returning a std::string.
8713 * utils.c (ldirname): Now returns a std::string.
8714 * utils.h (ldirname): Change return type to std::string.
8715 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8716 returning a std::string.
8717 * xml-tdesc.c (file_read_description_xml): Likewise.
8718
ed771251
AH
87192017-03-24 Alan Hayward <alan.hayward@arm.com>
8720
8721 * regcache.c (regcache_debug_print_register): New function.
8722 * regcache.h (regcache_debug_print_register): New declaration.
8723 * target.c (debug_print_register): Remove.
8724 (target_fetch_registers): Call regcache_debug_print_register.
8725 (target_store_registers): Likewise.
8726
568c1b9f
PB
87272017-03-24 Pádraig Brady <pbrady@fb.com>
8728
8729 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8730 reference beyond the 'lh->include_dirs' array before accessing to
8731 it.
8732 (psymtab_include_file_name): Likewise.
8733 (dwarf_decode_lines_1): Likewise.
8734 (dwarf_decode_lines): Likewise.
8735 (file_file_name): Likewise.
8736
3e00d44f
SM
87372017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8738
8739 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8740 inferior_ptid.
8741 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8742 ps_lsetfpregs): Likewise.
8743 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8744 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8745 ps_lsetfpregs): Likewise.
8746 * target.c (target_fetch_registers, target_store_registers):
8747 Remove asserts.
8748
077ae656
AH
87492017-03-23 Alan Hayward <alan.hayward@arm.com>
8750
8751 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8752
1e2b521d
YQ
87532017-03-23 Yao Qi <yao.qi@linaro.org>
8754
8755 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8756 (_initialize_aarch64_tdep): Register it.
8757 (aarch64_record_load_store): Handle PRFM instruction.
8758 (aarch64_process_record_test): New function.
8759
33877125
YQ
87602017-03-23 Yao Qi <yao.qi@linaro.org>
8761
8762 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8763 indentation.
8764
a0eef940
YQ
87652017-03-23 Yao Qi <yao.qi@linaro.org>
8766
8767 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8768
3f2a3564
PR
87692017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8770
8771 python/python.c (do_start_initialization): Fix memory leak.
8772
b67aeab0
SM
87732017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8774
8775 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8776 using get_ptrace_pid.
8777 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8778 inferior_ptid.
8779 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8780 inferior_ptid instead of pid.
8781
ffdbe864
YQ
87822017-03-22 Yao Qi <yao.qi@linaro.org>
8783
8784 * aarch64-tdep.c: Wrap locally used classes in anonymous
8785 namespace.
8786 * arm-tdep.c: Likewise.
8787 * linespec.c: Likewise.
8788 * ui-out.c: Likewise.
8789
9d736fbf
JG
87902017-03-22 Jonah Graham <jonah@kichwacoders.com>
8791
8792 PR gdb/19637
8793 * python/lib/gdb/printer/bound_registers.py: Import sys.
8794
3de88e9a
SM
87952017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8796
8797 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8798 windows_thread_info parameter and use it instead of
8799 current_thread.
8800 (windows_fetch_inferior_registers): Don't set current_thread,
8801 pass the thread to do_windows_fetch_inferior_registers. Use
8802 ptid from regcache instead of inferior_ptid.
8803 (do_windows_store_inferior_registers): Add windows_thread_info
8804 parameter and use it instead of current_thread.
8805 (windows_store_inferior_registers): Don't set current_thread,
8806 pass the thread to do_windows_store_inferior_registers. Use
8807 ptid from regcache instead of inferior_ptid.
8808
0e7b8f61
SM
88092017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8810
8811 * ser-mingw.c (ser_windows_raw): Remove reference to
8812 struct serial::current_timeout.
8813
5badf10a
IR
88142017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8815
8816 PR tdep/20928
8817 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8818 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8819 (sparc64_fsr_type): Fix %fsr decoding.
8820
cee59b3f
TW
88212017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8822
8823 * python/py-record-btrace.c (btpy_insn_data): Change return type
8824 for Python 2.
8825
639a9038
SM
88262017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * spu-linux-nat.c (spu_fetch_inferior_registers,
8829 spu_store_inferior_registers): Use ptid from regcache, set and
8830 restore inferior_ptid.
8831 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8832 Likewise.
8833
bcc0c096
SM
88342017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8835
8836 * i386-linux-nat.c (fetch_register, store_register,
8837 i386_linux_fetch_inferior_registers,
8838 i386_linux_store_inferior_registers): Use ptid from regcache.
8839 * ia64-linux-nat.c (ia64_linux_fetch_register,
8840 ia64_linux_store_register): Likewise.
8841 * inf-ptrace.c (inf_ptrace_fetch_register,
8842 inf_ptrace_store_register): Likewise.
8843 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8844 m32r_linux_store_inferior_registers): Likewise.
8845 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8846 m68kbsd_store_inferior_registers): Likewise.
8847 * m68k-linux-nat.c (fetch_register, store_register,
8848 m68k_linux_fetch_inferior_registers,
8849 m68k_linux_store_inferior_registers): Likewise.
8850 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8851 m88kbsd_store_inferior_registers): Likewise.
8852 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8853 mips_fbsd_store_inferior_registers): Likewise.
8854 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8855 mips64_linux_regsets_store_registers): Likewise.
8856 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8857 mipsnbsd_store_inferior_registers): Likewise.
8858 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8859 mips64obsd_store_inferior_registers): Likewise.
8860 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8861 Likewise.
8862 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8863 ppcfbsd_store_inferior_registers): Likewise.
8864 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8865 ppc_linux_store_inferior_registers): Likewise.
8866 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8867 ppcnbsd_store_inferior_registers): Likewise.
8868 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8869 ppcobsd_store_registers): Likewise.
8870 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8871 Likewise.
8872 * ravenscar-thread.c (ravenscar_fetch_registers,
8873 ravenscar_store_registers, ravenscar_prepare_to_store):
8874 Likewise.
8875 * record-btrace.c (record_btrace_fetch_registers,
8876 record_btrace_store_registers, record_btrace_prepare_to_store):
8877 Likewise.
8878 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8879 Lookup inferior using ptid from regcache, instead of
8880 current_inferior.
8881 * remote.c (remote_fetch_registers, remote_store_registers): Use
8882 ptid from regcache.
8883 * rs6000-nat.c (fetch_register, store_register): Likewise.
8884 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8885 s390_linux_store_inferior_registers): Likewise.
8886 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8887 shnbsd_store_inferior_registers): Likewise.
8888 * sol-thread.c (sol_thread_fetch_registers,
8889 sol_thread_store_registers): Likewise.
8890 * sparc-nat.c (sparc_fetch_inferior_registers,
8891 sparc_store_inferior_registers): Likewise.
8892 * tilegx-linux-nat.c (fetch_inferior_registers,
8893 store_inferior_registers): Likewise.
8894 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8895 vaxbsd_store_inferior_registers): Likewise.
8896 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8897 store_xtregs): Likewise.
8898
c0f55cc6
AV
88992017-03-20 Artemiy Volkov <artemiyv@acm.org>
8900
8901 PR gdb/14441
8902 * NEWS: Mention support for rvalue references in GDB and python.
8903 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8904 supports both lvalue and rvalue references.
8905
15c0a2a9
AV
89062017-03-20 Artemiy Volkov <artemiyv@acm.org>
8907
8908 PR gdb/14441
8909 * gdbtypes.c (rank_one_type): Implement overloading
8910 resolution rules regarding rvalue references.
8911
aa006118
AV
89122017-03-20 Artemiy Volkov <artemiyv@acm.org>
8913
8914 PR gdb/14441
8915 * aarch64-tdep.c (aarch64_type_align)
8916 (aarch64_extract_return_value, aarch64_store_return_value): Change
8917 lvalue reference type checks to general reference type checks.
8918 * amd64-tdep.c (amd64_classify): Likewise.
8919 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8920 Likewise.
8921 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8922 (arm_store_return_value): Likewise.
8923 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8924 * c-typeprint.c (c_print_type): Likewise.
8925 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8926 (cplus_number_of_children, cplus_describe_child): Likewise.
8927 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8928 * completer.c (expression_completer): Likewise.
8929 * cp-support.c (make_symbol_overload_list_adl_namespace):
8930 Likewise.
8931 * darwin-nat-info.c (info_mach_region_command): Likewise.
8932 * dwarf2loc.c (entry_data_value_coerce_ref)
8933 (value_of_dwarf_reg_entry): Likewise.
8934 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8935 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8936 Likewise.
8937 * findvar.c (extract_typed_address, store_typed_address):
8938 Likewise.
8939 * gdbtypes.c (rank_one_type): Likewise.
8940 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8941 * infcall.c (value_arg_coerce): Likewise.
8942 * language.c (pointer_type): Likewise.
8943 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8944 Likewise.
8945 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8946 * mn10300-tdep.c (mn10300_type_align): Likewise.
8947 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8948 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8949 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8950 Likewise.
8951 * printcmd.c (print_formatted, x_command): Likewise.
8952 * python/py-type.c (typy_get_composite, typy_template_argument):
8953 Likewise.
8954 * python/py-value.c (valpy_referenced_value)
8955 (valpy_get_dynamic_type, value_has_field): Likewise.
8956 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8957 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8958 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8959 * spu-tdep.c (spu_scalar_value_p): Likewise.
8960 * symtab.c (lookup_symbol_aux): Likewise.
8961 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8962 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8963 Likewise.
8964 * valops.c (value_cast_pointers, value_cast)
8965 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8966 (value_struct_elt, value_struct_elt_bitpos)
8967 (value_find_oload_method_list, find_overload_match)
8968 (value_rtti_indirect_type): Likewise.
8969 * valprint.c (val_print_scalar_type_p, generic_val_print):
8970 Likewise.
8971 * value.c (value_actual_type, value_as_address, unpack_long)
8972 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8973 (coerce_ref): Likewise.
8974 * varobj.c (varobj_get_value_type): Likewise.
8975
3fcf899d
AV
89762017-03-20 Artemiy Volkov <artemiyv@acm.org>
8977
8978 PR gdb/14441
8979 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8980 table of constants.
8981 * python/lib/gdb/command/explore.py: Support exploring values
8982 of rvalue reference types.
8983 * python/lib/gdb/types.py: Implement get_basic_type() for
8984 rvalue reference types.
8985 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8986 constant.
8987 * python/py-value.c (valpy_getitem): Add an rvalue reference
8988 check.
8989 (valpy_reference_value): Add new parameter "refcode".
8990 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8991 New wrappers for valpy_reference_value().
8992 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8993 (gdbpy_invoke_xmethod): Likewise.
8994
4297a3f0
AV
89952017-03-20 Artemiy Volkov <artemiyv@acm.org>
8996
8997 PR gdb/14441
8998 * dwarf2read.c (process_die, read_type_die_1): Handle the
8999 DW_TAG_rvalue_reference_type DIE.
9000 (read_tag_reference_type): Add new parameter "refcode".
9001
e1cb3213
AV
90022017-03-20 Artemiy Volkov <artemiyv@acm.org>
9003
9004 PR gdb/14441
9005 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9006 (c_type_print_modifier, c_type_print_varspec_suffix)
9007 (c_type_print_base): Support printing rvalue reference types.
9008 * c-valprint.c (c_val_print, c_value_print): Support printing
9009 rvalue reference values.
9010
e4347c89
AV
90112017-03-20 Artemiy Volkov <artemiyv@acm.org>
9012
9013 PR gdb/14441
9014 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9015 typename.
9016 * cp-support.c (replace_typedefs): Handle
9017 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9018 * python/py-type.c (typy_lookup_type): Likewise.
9019
53cc15f5
AV
90202017-03-20 Artemiy Volkov <artemiyv@acm.org>
9021
9022 PR gdb/14441
9023 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9024 * parse.c (insert_type): Change assert statement.
9025 (follow_types): Handle rvalue reference types.
9026 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9027 constant.
9028
a65cfae5
AV
90292017-03-20 Artemiy Volkov <artemiyv@acm.org>
9030
9031 PR gdb/14441
9032 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9033 value_ref() interface.
9034 * c-valprint.c (c_value_print): Likewise.
9035 * infcall.c (value_arg_coerce): Likewise.
9036 * python/py-value.c (valpy_reference_value): Likewise.
9037 * valops.c (value_cast, value_reinterpret_cast)
9038 (value_dynamic_cast, typecmp): Likewise.
9039 (value_ref): Parameterize by kind of return value reference type.
9040 * value.h (value_ref): Add new parameter "refcode".
9041
3b224330
AV
90422017-03-20 Artemiy Volkov <artemiyv@acm.org>
9043
9044 PR gdb/14441
9045 * dwarf2read.c (read_tag_reference_type): Use
9046 lookup_lvalue_reference_type() instead of lookup_reference_type().
9047 * eval.c (evaluate_subexp_standard): Likewise.
9048 * f-exp.y: Likewise.
9049 * gdbtypes.c (make_reference_type, lookup_reference_type):
9050 Generalize with rvalue reference types.
9051 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9052 convenience wrappers for lookup_reference_type().
9053 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9054 reference kind parameter.
9055 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9056 wrappers for lookup_reference_type().
9057 * guile/scm-type.c (gdbscm_type_reference): Use
9058 lookup_lvalue_reference_type() instead of lookup_reference_type().
9059 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9060 * parse.c (follow_types): Likewise.
9061 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9062 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9063 Likewise.
9064 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9065 (gdbpy_invoke_xmethod): Likewise.
9066 * stabsread.c: Provide extra argument to make_reference_type()
9067 call.
9068 * valops.c (value_ref, value_rtti_indirect_type): Use
9069 lookup_lvalue_reference_type() instead of lookup_reference_type().
9070
f9aeb8d4
AV
90712017-03-20 Artemiy Volkov <artemiyv@acm.org>
9072
9073 PR gdb/14441
9074 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9075 (TYPE_IS_REFERENCE): New macro.
9076 (struct type): Add rvalue_reference_type field.
9077 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9078
51457a05
MAL
90792017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9080
9081 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9082 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9083 New function definition.
9084 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9085 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9086 New function declaration.
9087 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9088 * mi/mi-interp.h: New file.
9089 * solib.c (info_sharedlibrary_command): Replace for loop with
9090 ALL_SO_LIBS macro
9091 * solib.h (update_solib_list): New function declaration.
9092 (so_list_head): Move macro.
9093 * solist.h (ALL_SO_LIBS): New macro.
9094
e696b3ad
MAL
90952017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9096
9097 * infcmd.c (post_create_inferior): Remove unused argument in
9098 call to solib_add.
9099 * remote.c (remote_start_remote): Likewise.
9100 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9101 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9102 (enable_break): Likewise.
9103 * solib.c (update_solib_list): Remove unused target argument
9104 and its documentation.
9105 (solib_add): Remove unused target argument. Remove unused
9106 argument in call to update_solib_list.
9107 (info_sharedlibrary_command): Remove unused argument in call
9108 to update_solib_list.
9109 (sharedlibrary_command): Remove unused argument in call to
9110 solib_add.
9111 (handle_solib_event): Likewise.
9112 (reload_shared_libraries): Likewise.
9113 * solib.h (solib_add): Remove unused target argument.
9114
dcb84eda
AA
91152017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9116
9117 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9118 (s390_displaced_step_fixup): Cover relative branches with the
9119 default fixup handling. This fixes lack of support for some
9120 relative branch instructions.
9121
d9cb6cdc
SM
91222017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9123
9124 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9125 ptid from regcache.
9126
1afaf9f4
SM
91272017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9128
9129 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9130 i386_darwin_store_inferior_registers): Use ptid from regcache.
9131
aac12e24
SM
91322017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9133
9134 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9135 i386bsd_store_inferior_registers): Use ptid from regcache.
9136
bbe1eef1
SM
91372017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9138
9139 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9140 hppaobsd_store_registers): Use ptid from regcache.
9141
10799020
SM
91422017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9143
9144 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9145 hppanbsd_store_registers): Use ptid from regcache.
9146
00204cf7
SM
91472017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9148
9149 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9150 from regcache. Use get_ptrace_pid.
9151
11a33714
SM
91522017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9153
9154 * corelow.c (get_core_register_section): Use ptid from regcache,
9155 update doc.
9156
317cd492
SM
91572017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9158
9159 * bsd-uthread.c (bsd_uthread_fetch_registers,
9160 bsd_uthread_store_registers): Use ptid from regcache, set and
9161 restore inferior_ptid.
9162
9ac8a7c2
SM
91632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9164
9165 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9166 fetch_fp_regs, store_register, store_regs, store_fp_register,
9167 store_fp_regs): Use ptid from regcache.
9168
4ac4bb6a
SM
91692017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9170
9171 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9172 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9173 store_vfp_regs): Use ptid from regcache.
9174
9bcbdca8
PA
91752017-03-17 Pedro Alves <palves@redhat.com>
9176
9177 PR remote/21188
9178 * ser-base.c (ser_base_wait_for): Add comment.
9179 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9180 version.
9181 * ser-unix.c (hardwire_raw): Remove reference to
9182 scb->current_timeout.
9183 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9184 (hardwire_ops): Install ser_base_readchar instead of
9185 hardwire_readchar.
9186 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9187 Remove fields.
9188
7503099f
JG
91892017-03-17 Jonah Graham <jonah@kichwacoders.com>
9190
9191 PR gdb/19637
9192 * python/lib/gdb/printer/bound_registers.py: Add support for
9193 Python 3.
9194
7942e96e
AA
91952017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9196
9197 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9198 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9199 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9200 byte_offset to subobj_byte_offset. Fix the handling of
9201 DWARF_VALUE_STACK on big-endian targets when coming via an
9202 implicit pointer.
9203 (dwarf2_evaluate_loc_desc): Adjust call to
9204 dwarf2_evaluate_loc_desc_full.
9205 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9206 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9207
ba14f379
YQ
92082017-03-16 Yao Qi <yao.qi@linaro.org>
9209
9210 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9211 and REVSH instructions.
9212
b121eeb9
YQ
92132017-03-16 Yao Qi <yao.qi@linaro.org>
9214
9215 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9216 (arm_record_test): Declare.
9217 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9218 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9219 align with the manual.
9220 (thumb_record_misc): Adjust the code order to align with the
9221 manual.
9222 (thumb2_record_decode_insn_handler): Fix instruction matching.
9223 (instruction_reader_thumb): New class.
9224 (arm_record_test): New function.
9225
728a7913
YQ
92262017-03-16 Yao Qi <yao.qi@linaro.org>
9227
9228 * arm-tdep.c (abstract_memory_reader): New class.
9229 (instruction_reader): New class.
9230 (extract_arm_insn): Add argument 'reader'. Callers updated.
9231 (decode_insn): Likewise.
9232
34b43320
DE
92332017-03-16 Doug Evans <dje@google.com>
9234
a7c0469f
DE
9235 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9236 member. Change type of TYPE member to SCM. All uses updated.
9237 (lsscm_make_lazy_string_smob): Add assert.
9238 (lsscm_make_lazy_string): Flag bad length values.
9239 (lsscm_elt_type): New function.
9240 (gdbscm_lazy_string_to_value): Rewrite to use
9241 lsscm_safe_lazy_string_to_value.
9242 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9243 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9244 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9245 in incoming type.
9246 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9247 * guile/scm-type.c (tyscm_scm_to_type): New function.
9248
92492017-03-15 Doug Evans <dje@google.com>
9250
34b43320
DE
9251 PR python/17728, python/18439, python/18779
9252 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9253 member. Change type of TYPE member to PyObject *. All uses updated.
9254 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9255 (gdbpy_create_lazy_string_object): Flag bad length values.
9256 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9257 Handle typedefs in incoming type.
9258 (stpy_lazy_string_elt_type): New function.
9259 (gdbpy_extract_lazy_string): Call it.
9260 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9261 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9262 typedefs in incoming type.
9263
a3a5fecc
DE
92642017-03-16 Doug Evans <dje@google.com>
9265
9266 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9267 * guile/scm-type.c (tyscm_scm_to_type): New function.
9268
28f1c605
JW
92692017-03-16 Jiong Wang <jiong.wang@arm.com>
9270
9271 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9272 "ULONGEST" for "skip".
9273
87c336f6
AA
92742017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9275
9276 PR gdb/21220
9277 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9278 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9279 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9280 over ptrace peek/poke until end of buffer or error.
9281
cf81cf60
SM
92822017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9283
9284 * parse.c (length_of_subexp): Make static.
9285 * parser-defs.h (length_of_subexp): Remove.
9286
a379284a
AA
92872017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9288
9289 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9290 as well.
9291
8a6200ba
PA
92922017-03-14 Pedro Alves <palves@redhat.com>
9293
9294 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9295 (main): Use std::unique_ptr. Remove calls to
9296 cp_demangled_name_parse_free.
9297
f79ec206
SM
92982017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9299
9300 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9301 alphabsd_store_inferior_registers): Use regcache->ptid instead
9302 of inferior_ptid.
9303
edb5fb00
SM
93042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9305
9306 * aix-thread.c (aix_thread_fetch_registers,
9307 aix_thread_store_registers): Use regcache->ptid instead of
9308 inferior_ptid.
9309
55119686
SM
93102017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9311
9312 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9313 store_gregs_to_thread, fetch_fpregs_from_thread,
9314 store_fpregs_to_thread): Use regcache->ptid instead of
9315 inferior_ptid.
9316
6a06fbb7
SM
93172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9320 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9321 instead of inferior_ptid.
9322
c6386875
SM
93232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9324
9325 * target.c (target_fetch_registers, target_store_registers): Add
9326 assert.
9327
ddaaf0fb
SM
93282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * regcache.h (regcache_get_ptid): New function.
9331 * regcache.c (regcache_get_ptid): New function.
9332
b9da89d1 93332017-03-13 Mark Wielaard <mark@klomp.org>
9334
9335 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9336
5f4d1085
KS
93372017-03-10 Keith Seitz <keiths@redhat.com>
9338
9339 PR c++/8218
9340 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9341
c65d6b55
PA
93422017-03-08 Pedro Alves <palves@redhat.com>
9343
9344 PR gdb/18360
9345 * infrun.c (start_step_over, do_target_resume, resume)
9346 (restart_threads): Assert we're not resuming a thread that is
9347 meant to be stopped.
9348 (infrun_thread_stop_requested_callback): Delete.
9349 (infrun_thread_stop_requested): If the thread is internally
9350 stopped, queue a pending stop event and clear the thread's
9351 inline-frame state.
9352 (handle_stop_requested): New function.
9353 (handle_syscall_event, handle_inferior_event_1): Use
9354 handle_stop_requested.
9355 (handle_stop_requested): New function.
9356 (handle_signal_stop): Set the thread's stop_signal here instead of
9357 at caller.
9358 (finish_step_over): Clear step over info unconditionally.
9359 (handle_signal_stop): If the user had interrupted the event
9360 thread, consider the stop a random signal.
9361 (handle_signal_stop) <signal arrived while stepping over
9362 breakpoint>: Don't restart threads here.
9363 (stop_waiting): Don't clear step-over info here.
9364
15c22686
PA
93652017-03-08 Pedro Alves <palves@redhat.com>
9366
9367 PR 21206
9368 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9369 goes to argument 2, not 1.
9370
6e5d74e7
PA
93712017-03-08 Pedro Alves <palves@redhat.com>
9372
9373 PR cli/21218
9374 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9375 display_gdb_prompt.
9376 (command_line_input): Add comment.
9377
9753a2f6
PA
93782017-03-08 Pedro Alves <palves@redhat.com>
9379
9380 PR tui/21216
9381 * tui/tui-file.c (tui_file::write): New.
9382 * tui/tui-file.h (tui_file): Override "write".
9383 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9384 factored out from ...
9385 (tui_puts): ... here.
9386 (tui_putc): Use them.
9387 (tui_write): New function.
9388 * tui/tui-io.h (tui_write): Declare.
9389
1672e0d9
SDJ
93902017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9391
9392 * Makefile.in (SFILES): Replace "environ.c" with
9393 "common/environ.c".
9394 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9395 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9396 to...
9397 * common/environ.c: ... here.
9398 * environ.h: Moved to...
9399 * common/environ.h: ... here.
9400
f7bb4e3a
PB
94012017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9402
9403 * gdbarch.sh (pstring_ptr): New static function.
9404 (gdbarch_disassembler_options): Use it.
9405 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9406 not valid_disassembler_option->name.
9407 * gdbarch.c: Regenerate.
9408
e45ced6c
PB
94092017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9410
9411 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9412
5f6fd321
PA
94132017-03-07 Pedro Alves <palves@redhat.com>
9414
9415 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9416
6dbb839a 94172017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9418
9419 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9420 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9421 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9422 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9423
d274ecf4
SM
94242017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9425
9426 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9427
df97be55
SM
94282017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9429
9430 * remote.c (remote_add_target_side_commands): Use range-based
9431 for loop.
9432
7d45f3df
YQ
94332017-03-03 Yao Qi <yao.qi@linaro.org>
9434
9435 PR gdb/21165
9436 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9437 value is lazy.
9438 * valprint.c (common_val_print): Likewise.
9439
65b48a81
PB
94402017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9441
9442 * NEWS: Mention new set/show disassembler-options commands.
9443 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9444 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9445 (prospective_options): New static variable.
9446 (gdb_disassembler::gdb_disassembler): Initialize
9447 m_di.disassembler_options.
9448 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9449 (get_disassembler_options): New function.
9450 (set_disassembler_options): Likewise.
9451 (set_disassembler_options_sfunc): Likewise.
9452 (show_disassembler_options_sfunc): Likewise.
9453 (disassembler_options_completer): Likewise.
9454 (_initialize_disasm): Likewise.
9455 * disasm.h (get_disassembler_options): New prototype.
9456 (set_disassembler_options): Likewise.
9457 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9458 (gdbarch_verify_disassembler_options): Likewise.
9459 * gdbarch.c: Regenerate.
9460 * gdbarch.h: Likewise.
9461 * arm-tdep.c (num_disassembly_options): Delete.
9462 (set_disassembly_style): Likewise.
9463 (arm_disassembler_options): New static variable.
9464 (set_disassembly_style_sfunc): Convert short style name into long
9465 option name. Call set_disassembler_options.
9466 (show_disassembly_style_sfunc): New function.
9467 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9468 set_gdbarch_verify_disassembler_options.
9469 (_initialize_arm_tdep): Delete regnames variable and update callers.
9470 (arm_disassembler_options): Initialize.
9471 (disasm_options): New variable.
9472 (num_disassembly_options): Rename from this...
9473 (num_disassembly_styles): ...to this. Compute by scanning through
9474 disasm_options.
9475 (valid_disassembly_styles): Initialize using disasm_options.
9476 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9477 set_arm_regname_option.
9478 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9479 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9480 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9481 set_gdbarch_verify_disassembler_options.
9482 * s390-tdep.c (s390_disassembler_options): New static variable.
9483 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9484 set_gdbarch_verify_disassembler_options.
9485
d538e36d
SM
94862017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9487
9488 * remote.c (remote_add_target_side_condition): Remove "struct"
9489 keyword from range-based for loop.
9490
83621223
SM
94912017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9492
9493 * remote.c (remote_add_target_side_condition): Use range-based
9494 for loop. Update comment.
9495
2123df0e
YQ
94962017-02-27 Yao Qi <yao.qi@linaro.org>
9497
9498 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9499
8e368124
AH
95002017-02-26 Alan Hayward <alan.hayward@arm.com>
9501
9502 * regcache.c (regcache_raw_update): New function.
9503 (regcache_raw_read): Move code to regcache_raw_update.
9504 * regcache.h (regcache_raw_update): New declaration.
9505 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9506
a49dd8dd
JK
95072017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9508
9509 * dwarf2read.c (create_debug_type_hash_table): Initialize
9510 header.signature and header.type_offset_in_tu.
9511
34e4bae9
PA
95122017-02-24 Pedro Alves <palves@redhat.com>
9513
9514 * symtab.c (make_file_symbol_completion_list_1): Use
9515 add_symtab_completions.
9516
b0e4b369
AH
95172017-02-24 Alan Hayward <alan.hayward@arm.com>
9518
9519 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9520
975c21ab
AH
95212017-02-24 Alan Hayward <alan.hayward@arm.com>
9522
9523 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9524 I386_MAX_REGISTER_SIZE.
9525 (i386_pseudo_register_write): Likewise.
9526 (i386_process_record): Likewise.
9527 * i387-tdep.c (i387_supply_xsave): Likewise.
9528 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9529 (store_register): Likewise.
9530
14bc53a8
PA
95312017-02-23 Pedro Alves <palves@redhat.com>
9532
9533 * ada-lang.c: Include "common/function-view.h".
9534 (ada_iterate_over_symbols): Adjust to use function_view as
9535 callback type.
9536 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9537 (ada_make_symbol_completion_list): Use a lambda.
9538 (ada_exc_search_name_matches): Delete.
9539 (name_matches_regex): New.
9540 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9541 * compile/compile-c-support.c: Include "common/function-view.h".
9542 (print_one_macro): Change prototype to accept a ui_file pointer.
9543 (write_macro_definitions): Use a lambda.
9544 * dwarf2read.c: Include "common/function-view.h".
9545 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9546 (dw2_expand_symtabs_matching): Adjust to use function_view as
9547 callback type.
9548 * language.h: Include "common/function-view.h".
9549 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9550 function_view as callback type.
9551 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9552 * linespec.c: Include "common/function-view.h".
9553 (collect_info::add_symbol): New method.
9554 (struct symbol_and_data_callback, iterate_inline_only, struct
9555 symbol_matcher_data, iterate_name_matcher): Delete.
9556 (iterate_over_all_matching_symtabs): Adjust to use function_view
9557 as callback type and lambdas.
9558 (iterate_over_file_blocks): Adjust to use function_view as
9559 callback type.
9560 (decode_compound_collector): Now a class with private fields.
9561 (decode_compound_collector::release_symbols): New method.
9562 (collect_one_symbol): Rename to...
9563 (decode_compound_collector::operator()): ... this and adjust.
9564 (lookup_prefix_sym): decode_compound_collector construction bits
9565 move to decode_compound_collector ctor. Pass the
9566 decode_compound_collector object directly as callback. Remove
9567 cleanups and use decode_compound_collector::release_symbols
9568 instead.
9569 (symtab_collector): Now a class with private fields.
9570 (symtab_collector::release_symtabs): New method.
9571 (add_symtabs_to_list): Rename to...
9572 (symtab_collector::operator()): ... this and adjust.
9573 (collect_symtabs_from_filename): symtab_collector construction
9574 bits move to symtab_collector ctor. Pass the symtab_collector
9575 object directly as callback. Remove cleanups and use
9576 symtab_collector::release_symtabs instead.
9577 (collect_symbols): Delete.
9578 (add_matching_symbols_to_info): Use lambdas.
9579 * macrocmd.c (print_macro_callback): Delete.
9580 (info_macro_command): Use a lambda.
9581 (info_macros_command): Pass print_macro_definition as callable
9582 directly.
9583 (print_one_macro): Remove 'ignore' parameter.
9584 (macro_list_command): Adjust.
9585 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9586 (macro_for_each_data::user_data): Delete field.
9587 (foreach_macro): Adjust to call the function_view.
9588 (macro_for_each): Adjust to use function_view as callback type.
9589 (foreach_macro_in_scope): Adjust to call the function_view.
9590 (macro_for_each_in_scope): Adjust to use function_view as callback
9591 type.
9592 * macrotab.h: Include "common/function-view.h".
9593 (macro_callback_fn): Declare a prototype instead of a pointer.
9594 Remove "user_data" parameter.
9595 (macro_for_each, macro_for_each_in_scope): Adjust to use
9596 function_view as callback type.
9597 * psymtab.c (partial_map_expand_apply)
9598 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9599 Adjust to use function_view as callback type and to return bool.
9600 (psym_expand_symtabs_matching): Adjust to use function_view as
9601 callback types.
9602 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9603 to use function_view as callback type and to return bool.
9604 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9605 callback types.
9606 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9607 as callback types.
9608 * symfile.h: Include "common/function-view.h".
9609 (expand_symtabs_file_matcher_ftype)
9610 (expand_symtabs_symbol_matcher_ftype)
9611 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9612 return bool.
9613 (quick_symbol_functions::map_symtabs_matching_filename)
9614 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9615 function_view as callback type and return bool.
9616 (expand_symtabs_matching): Adjust to use function_view as callback
9617 type.
9618 (maintenance_expand_name_matcher)
9619 (maintenance_expand_file_matcher): Delete.
9620 (maintenance_expand_symtabs): Use lambdas.
9621 * symtab.c (iterate_over_some_symtabs): Adjust to use
9622 function_view as callback types and return bool.
9623 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9624 of a cleanup.
9625 (lookup_symtab_callback): Delete.
9626 (lookup_symtab): Use a lambda.
9627 (iterate_over_symbols): Adjust to use function_view as callback
9628 type.
9629 (struct search_symbols_data, search_symbols_file_matches)
9630 (search_symbols_name_matches): Delete.
9631 (search_symbols): Use a pair of lambdas.
9632 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9633 (symtab_expansion_callback): Delete.
9634 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9635 * symtab.h: Include "common/function-view.h".
9636 (iterate_over_some_symtabs): Adjust to use function_view as
9637 callback type and return bool.
9638 (iterate_over_symtabs): Adjust to use function_view as callback
9639 type.
9640 (symbol_found_callback_ftype): Remove 'data' parameter and return
9641 bool.
9642 (iterate_over_symbols): Adjust to use function_view as callback
9643 type.
9644
07e253aa
PA
96452017-02-23 Pedro Alves <palves@redhat.com>
9646
9647 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9648 (%.o) <unittests/%.c>: New pattern.
9649 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9650 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9651 * common/function-view.h: New file.
9652 * unittests/function-view-selftests.c: New file.
9653 * configure: Regenerate.
9654
8eaf5320
SM
96552017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9656
9657 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9658 inferior_ptid.
9659 * go32-nat.c (go32_thread_alive): Likewise.
9660
38768751
YQ
96612017-02-23 Yao Qi <yao.qi@linaro.org>
9662
9663 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9664 delete.
9665
0a8beaba
YQ
96662017-02-23 Yao Qi <yao.qi@linaro.org>
9667
9668 * varobj.c (varobj_clear_saved_item): Use delete instead of
9669 xfree.
9670 (update_dynamic_varobj_children): Likewise.
9671
58fdfd2c
JK
96722017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9675
1b90b139
SM
96762017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9677
9678 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9679 m_enum_value to 0 in default constructor.
9680
2039d74e
EBM
96812017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9682
9683 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9684 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9685 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9686 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9687 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9688 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9689 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9690 IS_STORE_CONDITIONAL_INSN.
9691
7814882a
JK
96922017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9693
9694 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9695
0ae60b63
JK
96962017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9697
9698 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9699
0224619f
JK
97002017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * dwarf2read.c (skip_one_die, read_attribute_value)
9703 (dwarf2_const_value_attr, dump_die_shallow)
9704 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9705 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9706
0af92d60
JK
97072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9708
9709 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9710 (dwarf_parse_macro_header): Accept DWARF version 5.
9711 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9712
216f72a1
JK
97132017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9716 DW_AT_GNU_*.
9717 * common/common-exceptions.h (enum errors): Likewise.
9718 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9719 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9720 (dwarf_expr_context::execute_stack_op): Likewise.
9721 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9722 Likewise.
9723 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9724 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9725 (show_entry_values_debug, call_site_to_target_addr)
9726 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9727 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9728 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9729 (value_of_dwarf_block_entry, indirect_pieced_value)
9730 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9731 (disassemble_dwarf_expression): Likewise.
9732 * dwarf2read.c (process_die, inherit_abstract_dies)
9733 (read_call_site_scope): Likewise.
9734 * gdbtypes.h (struct func_type, struct call_site_parameter)
9735 (struct call_site): Likewise.
9736 * stack.c (read_frame_arg): Likewise.
9737 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9738
43988095
JK
97392017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9740
9741 * defs.h (read_unsigned_leb128): New declaration.
9742 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9743 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9744 (dwarf2_find_location_expression): Call also
9745 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9746 * dwarf2loc.h (dwarf2_version): New declaration.
9747 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9748 rnglists.
9749 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9750 .debug_rnglists.
9751 (struct dwop_section_names): Add loclists_dwo.
9752 (dwop_section_names): Add .debug_loclists.dwo.
9753 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9754 (struct dwarf2_per_cu_data): Add dwarf_version.
9755 (struct dwo_sections): Add loclists.
9756 (struct attr_abbrev): Add implicit_const.
9757 (read_indirect_line_string): New declaration.
9758 (read_unsigned_leb128): Delete declaration.
9759 (rcuh_kind): New definition.
9760 (read_and_check_comp_unit_head): Change parameter
9761 is_debug_types_section to section_kind.
9762 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9763 (read_comp_unit_head): Change parameter abfd to section, add parameter
9764 section_kind. Handle DWARF-5.
9765 (error_check_comp_unit_head): Accept also DWARF version 5.
9766 (read_and_check_comp_unit_head): Change parameter
9767 is_debug_types_section to section_kind.
9768 (read_and_check_type_unit_head): Delete function.
9769 (read_abbrev_offset): Handle DWARF-5.
9770 (create_debug_type_hash_table): Add parameter section_kind. Process
9771 only DW_UT_type. Use signature and type_offset_in_tu from struct
9772 comp_unit_head.
9773 (create_debug_types_hash_table): Update create_debug_type_hash_table
9774 caller.
9775 (create_all_type_units): Call create_debug_type_hash_table.
9776 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9777 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9778 caller.
9779 (skip_one_die): Handle DW_FORM_implicit_const.
9780 (dwarf2_rnglists_process): New function.
9781 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9782 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9783 (read_attribute_value): Handle DW_FORM_implicit_const,
9784 DW_FORM_line_strp.
9785 (read_attribute): Handle DW_FORM_implicit_const.
9786 (read_indirect_string_at_offset_from): New function from
9787 read_indirect_string_at_offset.
9788 (read_indirect_string_at_offset): Call
9789 read_indirect_string_at_offset_from.
9790 (read_indirect_line_string_at_offset): New function.
9791 (read_indirect_string): New function comment.
9792 (read_indirect_line_string): New function.
9793 (read_unsigned_leb128): Make it global.
9794 (dwarf2_string_attr): Handle DWARF-5.
9795 (add_include_dir_stub, read_formatted_entries): New functions.
9796 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9797 Handle DWARF-5.
9798 (per_cu_header_read_in): Update read_comp_unit_head caller.
9799 (dwarf2_version): New function.
9800 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9801 rnglists.
9802 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9803 fields.
9804
22d2f3ab
JK
98052017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9806
9807 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9808
5f46c5a5
JK
98092017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * dwarf2read.c (dwarf2_ranges_process): New function from
9812 dwarf2_ranges_read.
9813 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9814 dwarf2_ranges_process.
9815
78d4d2c5
JK
98162017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9817
9818 * dwarf2read.c (create_debug_type_hash_table): New function from
9819 create_debug_types_hash_table.
9820 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9821 (create_all_type_units, open_and_init_dwo_file): Update
9822 create_debug_types_hash_table callers.
9823
1b076f25
SDJ
98242017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9825
9826 PR gdb/16188
9827 * fork-child.c (trace_start_error): Fix thinko. va_end should
9828 refer to 'ap', not 'args'.
9829
0db8980c
SDJ
98302017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9831 Pedro Alves <palves@redhat.com>
9832
9833 PR gdb/16188
9834 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9835 calls succeeded.
9836 * fork-child.c (trace_start_error): New function.
9837 (trace_start_error_with_name): Likewise.
9838 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9839 * inf-ptrace.c (inf_ptrace_me): Likewise.
9840 * inferior.h (trace_start_error): New prototype.
9841 (trace_start_error_with_name): Likewise.
9842
99e8a4f9
SDJ
98432017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9844
9845 PR gdb/21164
9846 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9847 NULL before using it.
9848 * symmisc.c (maintenance_print_symbols): Likewise.
9849 (maintenance_print_msymbols): Likewise.
9850
4e746bb6
TW
98512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9852
9853 * NEWS: Add record Python bindings entry.
9854
98552017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9856
9857 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9858 py-record-full.o.
9859 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9860 * python/py-record-btrace.c, python/py-record-btrace.h,
9861 python/py-record-full.c, python/py-record-full.h: New file.
9862 * python/py-record.c: Add include for py-record-btrace.h and
9863 py-record-full.h.
9864 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9865 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9866 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9867 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9868 New definition.
9869 (gdbpy_initialize_btrace): New export.
9870 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9871
98722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9873
9874 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9875 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9876 * python/py-record.c: New file.
9877 * python/python-internal.h (gdbpy_start_recording,
9878 gdbpy_current_recording, gdpy_stop_recording,
9879 gdbpy_initialize_record): New export.
9880 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9881 (python_GdbMethods): Add gdbpy_start_recording,
9882 gdbpy_current_recording and gdbpy_stop_recording.
9883
98842017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9885
9886 * record-btrace.c (record_btrace_record_method): New function.
9887 (init_record_btrace_ops): Initialize to_record_method.
9888 * record-full.c (record_full_record_method): New function.
9889 (init_record_full_ops, init_record_full_core_ops): Add
9890 record_full_record_method.
9891 * record.h (enum record_method): New enum.
9892 * target-debug.h (target_debug_print_enum_record_method: New define.
9893 * target-delegates.c: Regenerate.
9894 * target.c (target_record_method): New function.
9895 * target.h: Include record.h.
9896 (struct target_ops) <to_record_method>: New field.
9897 (target_record_method): New export.
9898
98992017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9900
9901 * record.h (record_start, record_stop): New export.
9902 * record.c (record_start, record_stop): New function.
9903
99042017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9905
9906 * btrace.c (btrace_fetch): Copy function call segments pointer
9907 into a vector.
9908 (btrace_clear): Clear the vector.
9909 (btrace_find_insn_by_number): Use binary search to find the correct
9910 function call segment.
9911 * btrace.h (brace_fun_p): New typedef.
9912 (struct btrace_thread_info) <functions>: New field.
9913
99142017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9915
9916 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9917 * btrace.c (btrace_decode_error): ... here. New function.
9918 * btrace.h (btrace_decode_error): New export.
9919
99202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9921
9922 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9923 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9924 btrace_find_insn_by_number): Remove special case for gaps.
9925 * btrace.h (btrace_insn_get_error): New export.
9926 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9927 * record-btrace.c (btrace_insn_history): Print number for gaps.
9928 (record_btrace_info, record_btrace_goto): Handle gaps.
9929
3f77c769
TT
99302017-02-14 Tom Tromey <tom@tromey.com>
9931
9932 PR python/13598:
9933 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9934 event.
9935 * python/py-evts.c (gdbpy_initialize_py_events): Add
9936 before_prompt registry.
9937 * python/py-events.h (events_object) <before_prompt>: New field.
9938
4c2c7ac6
MM
99392017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9940
9941 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9942
5cf30ebf
LM
99432017-02-13 Luis Machado <lgustavo@codesourcery.com>
9944
9945 * symfile (_initialize_symfile): Add usage text to the load command's
9946 help text.
9947
26a06916
SM
99482017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9949
9950 * utils.c (defaulted_query): Don't query on secondary UIs.
9951
0b145e37
TT
99522017-02-10 Tom Tromey <tom@tromey.com>
9953
9954 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9955
2d8365c4
TT
99562017-02-10 Tom Tromey <tom@tromey.com>
9957
9958 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9959 "cleanup" local.
9960 * python/py-type.c (typy_legacy_template_argument): Remove
9961 unnecessary "cleanup" local.
9962
2bb8f231
TT
99632017-02-10 Tom Tromey <tom@tromey.com>
9964
9965 * python/python.c (do_start_initialization): New function, from
9966 _initialize_python.
9967 (_initialize_python): Call do_start_initialization.
9968 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9969 goto.
9970
1bdfaf42
TT
99712017-02-10 Tom Tromey <tom@tromey.com>
9972
9973 * python/py-prettyprint.c (pretty_print_one_value): Use
9974 gdbpy_ref.
9975
88b6faea
TT
99762017-02-10 Tom Tromey <tom@tromey.com>
9977
9978 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9979 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9980 gdbpy_ref.
9981 * python/py-type.c (field_new): Use gdbpy_ref.
9982 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9983 gdbpy_ref.
9984 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9985 (py_free_pspace): Likewise.
9986 (pspace_to_pspace_object): Likewise.
9987 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9988 (py_free_objfile): Likewise.
9989 (objfile_to_objfile_object): Likewise.
9990 * python/py-inferior.c (delete_thread_object): Use
9991 gdbpy_ref.
9992 (infpy_read_memory): Likewise.
9993 (py_free_inferior): Likewise.
9994 * python/py-evtregistry.c (create_eventregistry_object): Use
9995 gdbpy_ref.
9996 * python/py-event.c (create_event_object): Use gdbpy_ref.
9997
7780f186
TT
99982017-02-10 Tom Tromey <tom@tromey.com>
9999
10000 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10001 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10002 used.
10003 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10004 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10005 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10006 python/py-framefilter.c, python/py-function.c,
10007 python/py-inferior.c, python/py-infevents.c,
10008 python/py-linetable.c, python/py-newobjfileevent.c,
10009 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10010 python/py-signalevent.c, python/py-stopevent.c,
10011 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10012 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10013 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10014 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10015
d4b0bb18
TT
100162017-02-10 Tom Tromey <tom@tromey.com>
10017
10018 * ui-out.h (ui_out_emit_type): New class.
10019 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10020 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10021 and ui_out_emit_tuple.
10022 (enumerate_locals): Likewise.
10023 (py_mi_print_variables, py_print_locals, py_print_args): Use
10024 ui_out_emit_list.
10025 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10026 ui_out_emit_list.
10027 * common/gdb_optional.h: New file.
10028
f67f945c
MG
100292017-02-10 Martin Galvan <martingalvan@sourceware.org>
10030
10031 * MAINTAINERS (Write After Approval): Update my e-mail address.
10032
18da0c51
MG
100332017-02-10 Martin Galvan <martingalvan@sourceware.org>
10034
10035 PR gdb/21122
10036 * breakpoint.c (_initialize_breakpoint): Update the help description
10037 of the 'commands' command to indicate that it takes a list argument.
10038
62c14536
SM
100392017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10040
10041 * interps.c (current_interp_set_logging): Remove "return".
10042
ff6fa247
GB
100432017-02-09 Gary Benson <gbenson@redhat.com>
10044
10045 * symtab.c (add_symtab_completions): Prevent NULL pointer
10046 dereference.
10047
a474bd8e
PA
100482017-02-08 Pedro Alves <palves@redhat.com>
10049
10050 * interps.c (interp::interp): Remove reference to quiet_p.
10051 (interp_set): Make static. Remove dead "Switching to" output
10052 code.
10053 (interp_quiet_p, interp_set_quiet): Delete.
10054 (interpreter_exec_cmd): Don't set the interpreter quiet.
10055 * interps.h (interp_quiet_p): Make static.
10056 (class interp) <quiet_p>: Remove field
10057
3d7b173c
JG
100582017-02-08 Jerome Guitton <guitton@adacore.com>
10059
604c4576
JG
10060 * cli/cli-decode.c (find_command_name_length): Make it extern.
10061 * cli/cli-decode.h (find_command_name_length): Declare.
10062 * cli/cli-script.c (command_name_equals, line_first_arg):
10063 New functions.
10064 (process_next_line): Use cli-decode to parse command names.
10065 (build_command_line): Make args a constant pointer.
10066
100672017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10068
3d7b173c
JG
10069 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10070 Remove case-insensitive search.
10071
1291063d
JM
100722017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10073
10074 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10075 at the end of the line. Avoids an ARI warning.
10076
20b477a7
LM
100772017-02-06 Luis Machado <lgustavo@codesourcery.com>
10078
10079 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10080 rdseed instructions.
10081 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10082
3f7b46f2
IR
100832017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10084
10085 PR tdep/20936
10086 Provide and use sparc32 and sparc64 target description XML files.
10087 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10088 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10089 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10090 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10091 * features/sparc/sparc32-solaris.xml: New file.
10092 * features/sparc/sparc64-solaris.xml: New file.
10093 * features/sparc/sparc32-solaris.c: Generated.
10094 * features/sparc/sparc64-solaris.c: Generated.
10095 * sparc-tdep.h: Account for differences in target descriptions.
10096 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10097 (sparc32_register_type): Use target provided registers.
10098 (validate_tdesc_registers): New function.
10099 (sparc32_gdbarch_init): Use tdesc_has_registers.
10100 Set pseudoregister functions.
10101 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10102 (sparc64_register_type): Use target provided registers.
10103 (sparc64_init_abi): Set pseudoregister functions.
10104
f0fd41c1
TT
101052017-02-03 Tom Tromey <tom@tromey.com>
10106
10107 PR rust/21097:
10108 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10109 with a single member.
10110
d6f9b0fb
PA
101112017-02-03 Pedro Alves <palves@redhat.com>
10112
10113 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10114 (cli_interp_base::~cli_interp_base): New.
10115 (cli_interp): New struct.
10116 (as_cli_interp): Cast the interp itself to cli_interp.
10117 (cli_interpreter_pre_command_loop): Rename to ...
10118 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10119 parameter.
10120 (cli_interpreter_init): Rename to ...
10121 (cli_interp::init): ... this. Remove 'self' parameter. Use
10122 boolean. Make extern.
10123 (cli_interpreter_resume): Rename to ...
10124 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10125 extern.
10126 (cli_interpreter_suspend): Rename to ...
10127 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10128 extern.
10129 (cli_interpreter_exec): Rename to ...
10130 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10131 extern.
10132 (cli_interpreter_supports_command_editing): Rename to ...
10133 (cli_interp_base::supports_command_editing): ... this. Remove
10134 'interp' parameter. Make extern.
10135 (cli_ui_out): Rename to ...
10136 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10137 Make extern.
10138 (cli_set_logging): Rename to ...
10139 (cli_interp_base::set_logging): ... this. Remove 'interp'
10140 parameter. Make extern.
10141 (cli_interp_procs): Delete.
10142 (cli_interp_factory): Adjust to use "new".
10143 * cli/cli-interp.h: Include "interps.h".
10144 (struct cli_interp_base): New struct.
10145 * interps.c (struct interp): Delete. Fields moved to interps.h.
10146 (interp_new): Delete.
10147 (interp::interp, interp::~interp): New.
10148 (interp_set): Use bool, and return void. Assume the interpreter
10149 has suspend, init and resume methods, and that the all return
10150 void.
10151 (set_top_level_interpreter): interp_set returns void.
10152 (interp_ui_out): Adapt.
10153 (current_interp_set_logging): Adapt.
10154 (interp_data): Delete.
10155 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10156 (interp_exec): Adapt.
10157 (top_level_interpreter_data): Delete.
10158 * interps.h (interp_init_ftype, interp_resume_ftype)
10159 (interp_suspend_ftype, interp_exec_ftype)
10160 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10161 (class interp): New.
10162 (interp_new): Delete.
10163 (interp_set): Now returns void. Use bool.
10164 (interp_data, top_level_interpreter_data): Delete.
10165 * mi/mi-common.h: Include interps.h.
10166 (class mi_interp): Inherit from interp. Define a ctor. Declare
10167 init, resume, suspect, exec, interp_ui_out, set_logging and
10168 pre_command_loop methods.
10169 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10170 (mi_interpreter_init): Rename to ...
10171 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10172 bool, return void and make extern. Adjust.
10173 (mi_interpreter_resume): ... Rename to ...
10174 (mi_interp::resume): ... this. Remove the 'data' parameter,
10175 return void and make extern. Adjust.
10176 (mi_interpreter_suspend): ... Rename to ...
10177 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10178 return void and make extern. Adjust.
10179 (mi_interpreter_exec): ... Rename to ...
10180 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10181 extern. Adjust.
10182 (mi_interpreter_pre_command_loop): ... Rename to ...
10183 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10184 parameter and make extern.
10185 (mi_on_normal_stop_1): Adjust.
10186 (mi_ui_out): Rename to ...
10187 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10188 parameter and make extern. Adjust.
10189 (mi_set_logging): Rename to ...
10190 (mi_interp::set_logging): ... this. Remove the 'interp'
10191 parameter and make extern. Adjust.
10192 (mi_interp_procs): Delete.
10193 (mi_interp_factory): Adjust to use 'new'.
10194 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10195 (mi_print_exception, mi_execute_command, mi_load_progress):
10196 Adjust.
10197 * tui/tui-interp.c (tui_interp): New class.
10198 (as_tui_interp): Return a tui_interp pointer.
10199 (tui_on_normal_stop, tui_on_signal_received)
10200 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10201 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10202 to use interp::interp_ui_out.
10203 (tui_init): Rename to ...
10204 (tui_interp::init): ... this. Remove the 'self' parameter, use
10205 bool, return void and make extern. Adjust.
10206 (tui_resume): Rename to ...
10207 (tui_interp::resume): ... this. Remove the 'data' parameter,
10208 return void and make extern. Adjust.
10209 (tui_suspend): Rename to ...
10210 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10211 return void and make extern. Adjust.
10212 (tui_ui_out): Rename to ...
10213 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10214 parameter, and make extern. Adjust.
10215 (tui_exec): Rename to ...
10216 (tui_interp::exec): ... this. Remove the 'data' parameter and
10217 make extern.
10218 (tui_interp_procs): Delete.
10219 (tui_interp_factory): Use "new".
10220
65c40c95
TT
102212017-02-02 Tom Tromey <tom@tromey.com>
10222
10223 * rust-exp.y (ends_raw_string, space_then_number)
10224 (rust_identifier_start_p): Return bool.
10225 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10226 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10227 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10228 (rust_chartype_p): Return bool.
10229 (val_print_struct, rust_print_struct_def, rust_print_type):
10230 Update.
10231 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10232 Return bool.
10233
b50f188d
TT
102342017-02-02 Tom Tromey <tom@tromey.com>
10235
10236 * rust-lang.c: Reindent.
10237
03c85b11
TT
102382017-02-02 Tom Tromey <tom@tromey.com>
10239
10240 * rust-lang.h (rust_crate_for_block): Update.
10241 * rust-lang.c (rust_crate_for_block): Return std::string.
10242 (rust_get_disr_info): Use std:;string, not
10243 gdb::unique_xmalloc_ptr.
10244 * rust-exp.y (crate_name): Update.
10245
9b6da501
PA
102462017-02-02 Pedro Alves <palves@redhat.com>
10247
10248 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10249 field out of gdb_disassembler_test and make it static.
10250
ec4cb20b
PA
102512017-02-02 Pedro Alves <palves@redhat.com>
10252
10253 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10254 mi1_interp and mi_interp fields.
10255
5be5dbf0
PA
102562017-02-02 Pedro Alves <palves@redhat.com>
10257
616268b6
PA
10258 * cli/cli-interp.c (struct saved_output_files, saved_output):
10259 Moved from cli/cli-logging.c.
10260 (cli_set_logging): New function.
10261 (cli_interp_procs): Install cli_set_logging.
10262 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10263 Declare.
10264 * cli/cli-logging.c (struct saved_output_files, saved_output):
10265 Moved to cli/cli-interp.c.
10266 (pop_output_files): Don't save outputs here.
10267 (make_logging_output): New function.
10268 (handle_redirections): Don't build tee nor save previous outputs
10269 here.
10270 * interps.c (current_interp_set_logging): Change prototype.
10271 Assume there's always a set_logging_proc method installed.
10272 * interps.h (interp_set_logging_ftype): Change prototype.
10273 (current_interp_set_logging): Change prototype and adjust comment.
10274 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10275 use make_logging_output.
10276 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
102772017-02-02 Pedro Alves <palves@redhat.com>
10278
5be5dbf0
PA
10279 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10280 from ...
10281 (set_logging_overwrite): ... here.
10282 (logging_no_redirect_file): Delete.
10283 (set_logging_redirect): Don't handle redirection on the fly.
10284 Instead warn that "logging off" / "logging on" is necessary.
10285 (pop_output_files): Delete references to logging_no_redirect_file.
10286 (show_logging_command): Always speak in terms of what will happen
10287 once logging is reenabled.
10288
c99cc448
PA
102892017-02-02 Pedro Alves <palves@redhat.com>
10290
10291 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10292
8b172ce7
PA
102932017-02-02 Pedro Alves <palves@redhat.com>
10294
10295 * disasm.c (gdb_pretty_print_insn): Rename to ...
10296 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10297 Remove gdbarch parameter. Adapt to clear the object's buffers
10298 instead of allocating new buffers, and to print using the object's
10299 gdb_disassembler instead of calling gdb_print_insn.
10300 (dump_insns): Use gdb_pretty_print_disassembler.
10301 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10302 (gdb_pretty_print_disassembler): New class.
10303 * record-btrace.c (btrace_insn_history): Use
10304 gdb_pretty_print_disassembler.
10305
d7e74731
PA
103062017-02-02 Pedro Alves <palves@redhat.com>
10307
10308 * ada-lang.c (type_as_string): Use string_file.
10309 * ada-valprint.c (ada_print_floating): Use string_file.
10310 * ada-varobj.c (ada_varobj_scalar_image)
10311 (ada_varobj_get_value_image): Use string_file.
10312 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10313 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10314 * breakpoint.c (update_inserted_breakpoint_locations)
10315 (insert_breakpoint_locations, reattach_breakpoints)
10316 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10317 (print_it_watchpoint): Use string_file.
10318 (save_breakpoints): Use stdio_file.
10319 * c-exp.y (oper): Use string_file.
10320 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10321 tee_file.
10322 (pop_output_files): Use delete.
10323 (handle_redirections): Use stdio_file and tee_file.
10324 * cli/cli-setshow.c (do_show_command): Use string_file.
10325 * compile/compile-c-support.c (c_compute_program): Use
10326 string_file.
10327 * compile/compile-c-symbols.c (generate_vla_size): Take a
10328 'string_file &' instead of a 'ui_file *'.
10329 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10330 of a 'ui_file *'. Use string_file.
10331 (generate_c_for_variable_locations): Take a 'string_file &'
10332 instead of a 'ui_file *'.
10333 * compile/compile-internal.h (generate_c_for_for_one_variable):
10334 Take a 'string_file &' instead of a 'ui_file *'.
10335 * compile/compile-loc2c.c (push, pushf, unary, binary)
10336 (print_label, pushf_register_address, pushf_register)
10337 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10338 'ui_file *'. Adjust.
10339 * compile/compile.c (compile_to_object): Use string_file.
10340 * compile/compile.h (compile_dwarf_expr_to_c)
10341 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10342 'ui_file *'.
10343 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10344 (replace_typedefs_qualified_name): Use string_file and
10345 obstack_copy0.
10346 * disasm.c (gdb_pretty_print_insn): Use string_file.
10347 (gdb_disassembly): Adjust reference the null_stream global.
10348 (do_ui_file_delete): Delete.
10349 (gdb_insn_length): Use null_stream.
10350 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10351 * dwarf2loc.c (dwarf2_compile_property_to_c)
10352 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10353 'string_file &' instead of a 'ui_file *'.
10354 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10355 * dwarf2read.c (do_ui_file_peek_last): Delete.
10356 (dwarf2_compute_name): Use string_file.
10357 * event-top.c (gdb_setup_readline): Use stdio_file.
10358 * gdbarch.sh (verify_gdbarch): Use string_file.
10359 * gdbtypes.c (safe_parse_type): Use null_stream.
10360 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10361 string_file.
10362 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10363 'string_file *' instead of a 'ui_file *'.
10364 (gdbscm_arch_disassemble): Use string_file.
10365 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10366 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10367 inherits from ui_file.
10368 (ioscm_file_port_delete, ioscm_file_port_rewind)
10369 (ioscm_file_port_put): Delete.
10370 (ioscm_file_port_write): Rename to ...
10371 (ioscm_file_port::write): ... this. Remove file_port_magic
10372 checks.
10373 (ioscm_file_port_new): Delete.
10374 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10375 ui_file_up.
10376 * guile/scm-type.c (tyscm_type_name): Use string_file.
10377 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10378 Use string_file.
10379 * infcmd.c (print_return_value_1): Use string_file.
10380 * infrun.c (print_target_wait_results): Use string_file.
10381 * language.c (add_language): Use string_file.
10382 * location.c (explicit_to_string_internal): Use string_file.
10383 * main.c (captured_main_1): Use null_file.
10384 * maint.c (maintenance_print_architecture): Use stdio_file.
10385 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10386 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10387 event_channel>: Change type to mi_console_file pointer.
10388 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10389 (mi_console_file_delete): Delete.
10390 (struct mi_console_file): Delete.
10391 (mi_console_file_magic): Delete.
10392 (mi_console_file_new): Delete.
10393 (mi_console_file::mi_console_file): New.
10394 (mi_console_file_delete): Delete.
10395 (mi_console_file_fputs): Delete.
10396 (mi_console_file::write): New.
10397 (mi_console_raw_packet): Delete.
10398 (mi_console_file::flush): New.
10399 (mi_console_file_flush): Delete.
10400 (mi_console_set_raw): Rename to ...
10401 (mi_console_file::set_raw): ... this.
10402 * mi/mi-console.h (class mi_console_file): New class.
10403 (mi_console_file_new, mi_console_set_raw): Delete.
10404 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10405 (mi_set_logging): Use delete and tee_file. Adjust.
10406 * mi/mi-main.c (output_register): Use string_file.
10407 (mi_cmd_data_evaluate_expression): Use string_file.
10408 (mi_cmd_data_read_memory): Use string_file.
10409 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10410 * mi/mi-out.c (mi_ui_out::main_stream): New.
10411 (mi_ui_out::rewind): Use main_stream and
10412 string_file.
10413 (mi_ui_out::put): Use main_stream and string_file.
10414 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10415 Allocate a 'string_file' instead.
10416 (mi_out_new): Don't allocate a mem_fileopen stream here.
10417 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10418 (mi_ui_out::main_stream): Declare method.
10419 * printcmd.c (eval_command): Use string_file.
10420 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10421 * python/py-arch.c (archpy_disassemble): Use string_file.
10422 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10423 * python/py-frame.c (frapy_str): Use string_file.
10424 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10425 Use string_file.
10426 * python/py-type.c (typy_str): Use string_file.
10427 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10428 * python/py-value.c (valpy_str): Use string_file.
10429 * record-btrace.c (btrace_insn_history): Use string_file.
10430 * regcache.c (regcache_print): Use stdio_file.
10431 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10432 * remote.c (escape_buffer): Use string_file.
10433 * rust-lang.c (rust_get_disr_info): Use string_file.
10434 * serial.c (serial_open_ops_1): Use stdio_file.
10435 (do_serial_close): Use delete.
10436 * stack.c (print_frame_arg): Use string_file.
10437 (print_frame_args): Remove local mem_fileopen stream, not used.
10438 (print_frame): Use string_file.
10439 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10440 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10441 Take a 'string_file *' instead of a 'ui_file *'.
10442 * top.c (new_ui): Use stdio_file and stderr_file.
10443 (free_ui): Use delete.
10444 (execute_command_to_string): Use string_file.
10445 (quit_confirm): Use string_file.
10446 * tracepoint.c (collection_list::append_exp): Use string_file.
10447 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10448 * tui/tui-file.c: Don't include "ui-file.h".
10449 (enum streamtype, struct tui_stream): Delete.
10450 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10451 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10452 (tui_file::tui_file): New method.
10453 (tui_file_fputs): Delete.
10454 (tui_file_get_strbuf): Delete.
10455 (tui_file::puts): New method.
10456 (tui_file_adjust_strbuf): Delete.
10457 (tui_file_flush): Delete.
10458 (tui_file::flush): New method.
10459 * tui/tui-file.h: Tweak intro comment.
10460 Include ui-file.h.
10461 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10462 (tui_file_adjust_strbuf): Delete declarations.
10463 (class tui_file): New class.
10464 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10465 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10466 (tui_register_format): Use string_stream.
10467 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10468 (tui_get_function_from_frame): Use string_file.
10469 * typeprint.c (type_to_string): Use string_file.
10470 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10471 (null_stream): New global.
10472 (ui_file_delete): Delete.
10473 (ui_file::ui_file): New.
10474 (null_file_isatty): Delete.
10475 (ui_file::~ui_file): New.
10476 (null_file_rewind): Delete.
10477 (ui_file::printf): New.
10478 (null_file_put): Delete.
10479 (null_file_flush): Delete.
10480 (ui_file::putstr): New.
10481 (null_file_write): Delete.
10482 (ui_file::putstrn): New.
10483 (null_file_read): Delete.
10484 (ui_file::putc): New.
10485 (null_file_fputs): Delete.
10486 (null_file_write_async_safe): Delete.
10487 (ui_file::vprintf): New.
10488 (null_file_delete): Delete.
10489 (null_file::write): New.
10490 (null_file_fseek): Delete.
10491 (null_file::puts): New.
10492 (ui_file_data): Delete.
10493 (null_file::write_async_safe): New.
10494 (gdb_flush, ui_file_isatty): Adjust.
10495 (ui_file_put, ui_file_rewind): Delete.
10496 (ui_file_write): Adjust.
10497 (ui_file_write_for_put): Delete.
10498 (ui_file_write_async_safe, ui_file_read): Adjust.
10499 (ui_file_fseek): Delete.
10500 (fputs_unfiltered): Adjust.
10501 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10502 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10503 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10504 (set_ui_file_data): Delete.
10505 (string_file::~string_file, string_file::write)
10506 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10507 (do_ui_file_as_string, ui_file_as_string): Delete.
10508 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10509 (struct mem_file): Delete.
10510 (mem_file_new): Delete.
10511 (stdio_file::stdio_file): New.
10512 (mem_file_delete): Delete.
10513 (stdio_file::stdio_file): New.
10514 (mem_fileopen): Delete.
10515 (stdio_file::~stdio_file): New.
10516 (mem_file_rewind): Delete.
10517 (stdio_file::set_stream): New.
10518 (mem_file_put): Delete.
10519 (stdio_file::open): New.
10520 (mem_file_write): Delete.
10521 (stdio_file_magic, struct stdio_file): Delete.
10522 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10523 (stdio_file::flush): New.
10524 (stdio_file_read): Rename to ...
10525 (stdio_file::read): ... this. Adjust.
10526 (stdio_file_write): Rename to ...
10527 (stdio_file::write): ... this. Adjust.
10528 (stdio_file_write_async_safe): Rename to ...
10529 (stdio_file::write_async_safe) ... this. Adjust.
10530 (stdio_file_fputs): Rename to ...
10531 (stdio_file::puts) ... this. Adjust.
10532 (stdio_file_isatty): Delete.
10533 (stdio_file_fseek): Delete.
10534 (stdio_file::isatty): New.
10535 (stderr_file_write): Rename to ...
10536 (stderr_file::write) ... this. Adjust.
10537 (stderr_file_fputs): Rename to ...
10538 (stderr_file::puts) ... this. Adjust.
10539 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10540 (stderr_file::stderr_file): New.
10541 (tee_file_magic): Delete.
10542 (struct tee_file): Delete.
10543 (tee_file::tee_file): New.
10544 (tee_file_new): Delete.
10545 (tee_file::~tee_file): New.
10546 (tee_file_delete): Delete.
10547 (tee_file_flush): Rename to ...
10548 (tee_file::flush): ... this. Adjust.
10549 (tee_file_write): Rename to ...
10550 (tee_file::write): ... this. Adjust.
10551 (tee_file::write_async_safe): New.
10552 (tee_file_fputs): Rename to ...
10553 (tee_file::puts): ... this. Adjust.
10554 (tee_file_isatty): Rename to ...
10555 (tee_file::isatty): ... this. Adjust.
10556 * ui-file.h (struct obstack, struct ui_file): Don't
10557 forward-declare.
10558 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10559 (ui_file_write_ftype)
10560 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10561 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10562 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10563 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10564 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10565 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10566 (set_ui_file_fseek): Delete.
10567 (ui_file_data, ui_file_delete, ui_file_rewind)
10568 (struct ui_file): New.
10569 (ui_file_up): New.
10570 (class null_file): New.
10571 (null_stream): Declare.
10572 (ui_file_write_for_put, ui_file_put): Delete.
10573 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10574 Delete.
10575 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10576 (gdb_fopen, tee_file_new): Delete.
10577 (struct string_file): New.
10578 (struct stdio_file): New.
10579 (stdio_file_up): New.
10580 (struct stderr_file): New.
10581 (class tee_file): New.
10582 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10583 of a 'ui_file *'. Adjust.
10584 * ui-out.h (class ui_out) <field_stream>: Likewise.
10585 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10586 (null_stream): Delete.
10587 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10588 Adjust.
10589 * utils.h (struct ui_file): Delete forward declaration..
10590 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10591 (error_stream): Take a 'string_file &' instead of a
10592 'ui_file *'.
10593 * varobj.c (varobj_value_get_print_value): Use string_file.
10594 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10595 * gdbarch.c: Regenerate.
10596
187808b0
PA
105972017-02-02 Pedro Alves <palves@redhat.com>
10598
10599 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10600 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10601 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10602 Adjust to call gdb_print_insn instead of
10603 gdb_disassembler::print_insn.
10604 (dump_insns, do_mixed_source_and_assembly_deprecated)
10605 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10606 'gdbarch' parameter. Remove gdb_disassembler parameter.
10607 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10608 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10609 declaration.
10610 (gdb_pretty_print_insn): Re-add declaration.
10611 * record-btrace.c (btrace_insn_history): Don't allocate a
10612 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10613
7a8eb317
SM
106142017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10615
10616 * disasm.h (gdb_disassembly): Remove file_string parameter.
10617 * disasm.c (gdb_disassembly): Likewise.
10618 * cli/cli-cmds.c (print_disassembly): Adapt.
10619 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10620 * stack.c (do_gdb_disassembly): Likewise.
10621
7346ef59
AA
106222017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10623
10624 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10625 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10626 targets. And if the implicit value is longer than needed, extract
10627 the first bytes instead of the "least significant" ones.
10628
cd4007e4
MM
106292017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10630
10631 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10632 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10633 (btrace_fetch): Assert can_access_registers_ptid.
10634 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10635 validate_registers_access.
10636
cf77c34e
MM
106372017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10638
10639 * gdbthread.h (can_access_registers_ptid): New.
10640 * thread.c (can_access_registers_ptid): New.
10641
be85ce7d
PA
106422017-02-01 Pedro Alves <palves@redhat.com>
10643
10644 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10645
29b0b251
PA
106462017-01-31 Pedro Alves <palves@redhat.com>
10647
10648 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10649 Fix typos.
10650
289b5b24
PA
106512017-01-31 Pedro Alves <palves@redhat.com>
10652
10653 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10654 not used.
10655
b47413b4
PA
106562017-01-31 Pedro Alves <palves@redhat.com>
10657
10658 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10659
60adb36c
PA
106602017-01-31 Pedro Alves <palves@redhat.com>
10661
10662 * common/scoped_restore.h
10663 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10664 change the value's parameter type to T2.
10665 (make_scoped_restore): Likewise.
10666
2735833d
WT
106672017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10668 Richard Henderson <rth@redhat.com>
10669
10670 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10671 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10672 GS_BASE for older kernels.
10673 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10674 GS_BASE for older kernels.
10675 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10676 and GS_BASE to the offset table.
10677 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10678 system register group.
10679 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10680 for older kernels.
10681 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10682 amd64 ABI.
10683 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10684 AMD64_GSBASE_REGNUM.
10685 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10686 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10687 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10688 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10689 i386/64bit-segments.xml in those rules.
10690 * features/i386/64bit-segments.xml: New file.
10691 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10692 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10693 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10694 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10695 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10696 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10697 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10698 * features/i386/amd64-avx-linux.c: Regenerated.
10699 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10700 * features/i386/amd64-avx-mpx.c: Regenerated.
10701 * features/i386/amd64-avx512-linux.c: Regenerated.
10702 * features/i386/amd64-linux.c: Regenerated.
10703 * features/i386/amd64-mpx-linux.c: Regenerated.
10704 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10705 * features/i386/i386-avx-mpx.c: Regenerated.
10706 * features/i386/x32-avx-linux.c: Regenerated.
10707 * features/i386/x32-avx512-linux.c: Regenerated.
10708 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10709 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10710 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10711 * regformats/i386/amd64-linux.dat: Regenerated.
10712 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10713 * regformats/i386/x32-avx-linux.dat: Regenerated.
10714 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10715 * regformats/i386/x32-linux.dat: Regenerated.
10716
8884e97e
WT
107172017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10718
10719 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10720 Set to AMD64_NUM_REGS.
10721
7005d26a
WT
107222017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10723
10724 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10725 that checks validity of a register number.
10726
4bd2e1b2
KC
107272017-01-27 Kees Cook <keescook@google.com>
10728
10729 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10730 fetch_fpregs if target has fpa registers.
10731 (arm_linux_store_inferior_registers): Call store_fpregs if target
10732 has fpa registers.
10733
7cf1de6c
AA
107342017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10735
10736 * cris-tdep.c (cris_gdbarch_init): Remove check for
10737 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10738
874a1c8c
AT
107392017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10740
10741 * corelow.c (get_core_register_section): Check for regset
10742 existence before checking for REGSET_VARIABLE_SIZE.
10743
d8b49cf0
YQ
107442017-01-26 Yao Qi <yao.qi@linaro.org>
10745 Pedro Alves <palves@redhat.com>
10746
10747 PR gdb/20939
10748 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10749 call memory_error, save memaddr instead.
10750 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10751 negative, cal memory_error.
10752 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10753
658ca58c
YQ
107542017-01-26 Yao Qi <yao.qi@linaro.org>
10755
10756 * disasm-selftests.c (memory_error_test): New function.
10757 (_initialize_disasm_selftests): Register memory_error_test.
10758
79843d45
YQ
107592017-01-26 Yao Qi <yao.qi@linaro.org>
10760
10761 * Makefile.in (SFILES): Add disasm-selftests.c and
10762 selftest-arch.c.
10763 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10764 * disasm-selftests.c: New file.
10765 * selftest-arch.c: New file.
10766 * selftest-arch.h: New file.
10767
8cafda32
YQ
107682017-01-26 Yao Qi <yao.qi@linaro.org>
10769
10770 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10771 to bfd_arch_mep. Don't return 0 if section is not
10772 found. Call print_insn_mep.
10773
e47ad6c0
YQ
107742017-01-26 Pedro Alves <palves@redhat.com>
10775 Yao Qi <yao.qi@linaro.org>
10776
10777 * arm-tdep.c: Include "disasm.h".
10778 (gdb_print_insn_arm): Update code to get gdbarch.
10779 * disasm.c (dis_asm_read_memory): Change it to
10780 gdb_disassembler::dis_asm_read_memory.
10781 (dis_asm_memory_error): Likewise.
10782 (dis_asm_print_address): Likewise.
10783 (gdb_pretty_print_insn): Change it to
10784 gdb_disassembler::pretty_print_insn.
10785 (dump_insns): Add one argument gdb_disassemlber. All
10786 callers updated.
10787 (do_mixed_source_and_assembly_deprecated): Likewise.
10788 (do_mixed_source_and_assembly): Likewise.
10789 (do_assembly_only): Likewise.
10790 (gdb_disassembler::gdb_disassembler): New.
10791 (gdb_disassembler::print_insn): New.
10792 * disasm.h (class gdb_disassembler): New.
10793 (gdb_pretty_print_insn): Remove declaration.
10794 (gdb_disassemble_info): Likewise.
10795 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10796 (gdbscm_disasm_read_memory_worker): Update.
10797 (gdbscm_disasm_read_memory): Update.
10798 (gdbscm_disasm_memory_error): Remove.
10799 (gdbscm_disasm_print_address): Remove.
10800 (gdbscm_disassembler::gdbscm_disassembler): New.
10801 (gdbscm_print_insn_from_port): Update.
10802 * mips-tdep.c: Include disasm.h.
10803 (gdb_print_insn_mips): Update code to get gdbarch.
10804 * record-btrace.c (btrace_insn_history): Update.
10805 * spu-tdep.c: Include disasm.h.
10806 (struct spu_dis_asm_data): Remove.
10807 (struct spu_dis_asm_info): New.
10808 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10809 SPU id.
10810 (gdb_print_insn_spu): Cast disassemble_info to
10811 spu_dis_asm_info.
10812
80d75874
YQ
108132017-01-26 Yao Qi <yao.qi@linaro.org>
10814
10815 * disasm.c (do_ui_file_delete): Delete.
10816 (gdb_insn_length): Move code creating stream to ...
10817 * utils.c (null_stream): ... here. New function.
10818 * utils.h (null_stream): Declare.
10819
60685cd0
SM
108202017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10821
10822 * python/py-inferior.c (find_thread_object): Return directly
10823 from the loop. Remove "found" variable.
10824
eb1cdb62
JB
108252017-01-21 Joel Brobecker <brobecker@adacore.com>
10826
10827 GDB 7.12.1 released.
10828
b1ce6568
SM
108292017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10830
10831 * python/py-function.c (fnpy_call): Reorder declarations to have
10832 the gdbpy_enter object declared first.
10833 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10834
6f8b0407
SM
108352017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10836
fec93fb1 10837 PR python/21068
6f8b0407
SM
10838 * python/python-internal.h (PyMem_RawMalloc): Define for
10839 Python < 3.4.
10840 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10841 PyMem_RawMalloc instead of PyMem_Malloc.
10842
78cbbba8
LM
108432017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10844 Luis Machado <lgustavo@codesourcery.com>
10845
10846 * NEWS (New commands): Mention flash-erase.
10847 (New MI commands): Mention target-flash-erase.
10848 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10849 command.
10850 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10851 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10852 * target.c (flash_erase_command): New function.
10853 (initialize_targets): Add new flash-erase command.
10854 * target.h (flash_erase_command): New declaration.
10855
2132fe85
JB
108562017-01-20 Joel Brobecker <brobecker@adacore.com>
10857
10858 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10859 HAVE_SYS_PROCFS_H is defined.
10860
d1dff226
AH
108612017-01-18 Alan Hayward <alan.hayward@arm.com>
10862
10863 * remote.c (struct cached_reg): Change data into a pointer.
10864 * (stop_reply_dtr): Free data pointers before deleting vector.
10865 (process_stop_reply): Likewise.
10866 (remote_parse_stop_reply): Allocate space for data
10867
9890e433
AH
108682017-01-18 Alan Hayward <alan.hayward@arm.com>
10869
10870 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10871 MAX_REGISTER_SIZE.
10872 (amd64_pseudo_register_read_value): Likewise.
10873 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10874 (store_register_using_P): Likewise.
10875 * regcache.c (regcache_xfer_part): Likewise.
10876
7a36499a
IR
108772017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10878
10879 Split real and pseudo registers.
10880 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10881 (sparc32_pseudo_regnum): New enum.
10882 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10883 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10884 (SPARC32_CP0_REGISTERS): New macro.
10885 (sparc32_pseudo_register_name): New function.
10886 (sparc32_register_name): Use sparc32_pseudo_register_name.
10887 (sparc32_pseudo_register_type): New function.
10888 (sparc32_register_type): Use sparc32_pseudo_register_type.
10889 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10890 pseudo register numbers.
10891 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10892 (SPARC64_CP0_REGISTERS): New macro.
10893 (sparc64_pseudo_register_name): New function.
10894 (sparc64_register_name): Use sparc64_pseudo_register_name.
10895 (sparc64_pseudo_register_type): New function.
10896 (sparc64_register_type): Use sparc64_pseudo_register_type.
10897 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10898 pseudo register numbers.
10899 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10900 sparc64_store_arguments): Handle pseudo register numbers.
10901
6f8976bf
YQ
109022017-01-13 Yao Qi <yao.qi@linaro.org>
10903
10904 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10905 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10906 output.
10907 (getpkt_or_notif_sane_1): Likewise.
10908
e4241ace
YQ
109092017-01-13 Yao Qi <yao.qi@linaro.org>
10910
10911 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10912 of CC. Pass "-x c++-header" instead of "-x c".
10913
3015c064
SM
109142017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10915
10916 * remote.c (remote_can_async_p): Update comment.
10917
fde1b17d
SM
109182017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10919
10920 * linux-nat.c (linux_nat_can_async_p): Update comment.
10921
ca1ca08b
SM
109222017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10923
10924 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10925
4ad2da73
SM
109262017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10927
10928 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10929
c8b23b3f
TT
109302017-01-10 Tom Tromey <tom@tromey.com>
10931
10932 * python/py-type.c (typy_legacy_template_argument): Update.
10933 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10934 ~demangle_parse_info): Declare new members.
10935 (cp_demangled_name_to_comp): Return unique_ptr.
10936 (cp_demangled_name_parse_free)
10937 (make_cleanup_cp_demangled_name_parse_free)
10938 (cp_new_demangle_parse_info): Remove.
10939 * cp-support.c (do_demangled_name_parse_free_cleanup)
10940 (make_cleanup_cp_demangled_name_parse_free): Remove.
10941 (inspect_type, cp_canonicalize_string_full)
10942 (cp_canonicalize_string): Update.
10943 (mangled_name_to_comp): Change return type.
10944 (cp_class_name_from_physname, method_name_from_physname)
10945 (cp_func_name, cp_remove_params): Update.
10946 * cp-name-parser.y (demangle_parse_info): New constructor, from
10947 cp_new_demangle_parse_info.
10948 (~demangle_parse_info): New destructor, from
10949 cp_demangled_name_parse_free.
10950 (cp_merge_demangle_parse_infos): Update.
10951 (cp_demangled_name_to_comp): Change return type.
10952
1ac32117
TT
109532017-01-10 Tom Tromey <tom@tromey.com>
10954
10955 * top.c (prevent_dont_repeat): Change return type.
10956 * python/python.c (execute_gdb_command): Use std::string.
10957 Update.
10958 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10959 * command.h (prevent_dont_repeat): Change return type.
10960 * breakpoint.c (bpstat_do_actions_1): Update.
10961
0cf08227
TT
109622017-01-10 Tom Tromey <tom@tromey.com>
10963
10964 * value.h (scoped_value_mark::~scoped_value_mark): Call
10965 free_to_mark.
10966 (scoped_value_mark::free_to_mark): New method.
10967 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10968 scoped_value_mark.
10969
eb115069
TT
109702017-01-10 Tom Tromey <tom@tromey.com>
10971
10972 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10973 (valpy_reference_value, valpy_const_value, valpy_get_address)
10974 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10975 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10976 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10977 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10978 scoped_value_mark.
10979 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10980 * value.h (scoped_value_mark): New class.
10981
906768f9
TT
109822017-01-10 Tom Tromey <tom@tromey.com>
10983
10984 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10985 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10986 * psymtab.c (discard_psymtabs_upto): Remove.
10987 (make_cleanup_discard_psymtabs): Remove.
10988 (struct psymtab_state): Remove.
10989
bef155c3
TT
109902017-01-10 Tom Tromey <tom@tromey.com>
10991
10992 * record-full.c (record_full_save_cleanups): Remove.
10993 (record_full_save): Use gdb::unlinker.
10994 * gcore.c (do_bfd_delete_cleanup): Remove.
10995 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10996 cleanups.
10997 * dwarf2read.c (unlink_if_set): Remove.
10998 (write_psymtabs_to_index): Use gdb::unlinker.
10999 * common/gdb_unlinker.h: New file.
11000
192b62ce
TT
110012017-01-10 Tom Tromey <tom@tromey.com>
11002
11003 * windows-tdep.c (windows_xfer_shared_library): Update.
11004 * windows-nat.c (windows_make_so): Update.
11005 * utils.h (make_cleanup_bfd_unref): Remove.
11006 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11007 * symfile.h (symfile_bfd_open)
11008 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11009 * symfile.c (read_symbols, symbol_file_add)
11010 (separate_debug_file_exists): Update.
11011 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11012 (generic_load, reread_symbols): Update.
11013 * symfile-mem.c (symbol_file_add_from_memory): Update.
11014 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11015 (spu_symbol_file_add_from_memory): Update.
11016 * solist.h (struct target_so_ops) <bfd_open>: Return
11017 gdb_bfd_ref_ptr.
11018 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11019 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11020 gdb_bfd_ref_ptr.
11021 (solib_map_sections, reload_shared_libraries_1): Update.
11022 * solib-svr4.c (enable_break): Update.
11023 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11024 * solib-frv.c (enable_break2): Update.
11025 * solib-dsbt.c (enable_break): Update.
11026 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11027 gdb_bfd_ref_ptr.
11028 (darwin_solib_get_all_image_info_addr_at_init): Update.
11029 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11030 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11031 * record-full.c (record_full_save): Update.
11032 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11033 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11034 * minidebug.c (find_separate_debug_file_in_section): Return
11035 gdb_bfd_ref_ptr.
11036 * machoread.c (macho_add_oso_symfile): Change abfd to
11037 gdb_bfd_ref_ptr.
11038 (macho_symfile_read_all_oso): Update.
11039 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11040 (macho_symfile_read): Update.
11041 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11042 (jit_bfd_try_read_symtab): Update.
11043 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11044 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11045 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11046 gdb_bfd_ref_ptr.
11047 (gdb_bfd_ref_policy): New struct.
11048 (gdb_bfd_ref_ptr): New typedef.
11049 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11050 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11051 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11052 gdb_bfd_ref_ptr.
11053 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11054 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11055 (gcore_command): Update.
11056 * exec.c (exec_file_attach): Update.
11057 * elfread.c (elf_symfile_read): Update.
11058 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11059 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11060 (open_and_init_dwo_file): Update.
11061 (open_dwp_file): Return gdb_bfd_ref_ptr.
11062 (open_and_init_dwp_file): Update.
11063 * corelow.c (core_open): Update.
11064 * compile/compile-object-load.c (compile_object_load): Update.
11065 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11066 * coffread.c (coff_symfile_read): Update.
11067 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11068 gdb_bfd_ref_ptr. Rename.
11069 (dump_bfd_file, restore_command): Update.
11070 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11071 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11072 (find_separate_debug_file_by_buildid): Update.
11073
50315b21
TT
110742017-01-10 Tom Tromey <tom@tromey.com>
11075
11076 * common/gdb_ref_ptr.h: New file.
11077 * python/py-ref.h (struct gdbpy_ref_policy): New.
11078 (gdbpy_ref): Now a typedef.
11079
fc4007c9
TT
110802017-01-10 Tom Tromey <tom@tromey.com>
11081
11082 * utils.h (make_cleanup_htab_delete): Don't declare.
11083 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11084 Remove.
11085 * linespec.c (decode_compound_collector): Add constructor,
11086 destructor.
11087 (lookup_prefix_sym): Remove cleanup.
11088 (symtab_collector): Add constructor, destructor.
11089 (collect_symtabs_from_filename): Remove cleanup.
11090 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11091 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11092 Use htab_up.
11093 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11094 * dwarf2read.c (dw2_expand_symtabs_matching)
11095 (dw2_map_symbol_filenames, dwarf_decode_macros)
11096 (write_psymtabs_to_index): Use htab_up.
11097 * dwarf2loc.c (func_verify_no_selftailcall)
11098 (call_site_find_chain_1, func_verify_no_selftailcall)
11099 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11100 std::vector, gdb::unique_xmalloc_ptr.
11101 (call_sitep): Remove typedef.
11102 (dwarf2_locexpr_baton_eval): Remove unused variable.
11103
8dbcee67
TT
111042017-01-10 Tom Tromey <tom@tromey.com>
11105
11106 * python/python-internal.h (make_cleanup_py_decref)
11107 (make_cleanup_py_xdecref): Don't declare.
11108 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11109 (py_xdecref, make_cleanup_py_xdecref): Remove.
11110
13df46cc
TT
111112017-01-10 Tom Tromey <tom@tromey.com>
11112
11113 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11114 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11115
06fc9bf7
TT
111162017-01-10 Tom Tromey <tom@tromey.com>
11117
11118 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11119
830a4934
TT
111202017-01-10 Tom Tromey <tom@tromey.com>
11121
11122 * python/py-utils.c (unicode_to_encoded_string)
11123 (python_string_to_target_string)
11124 (python_string_to_target_python_string)
11125 (python_string_to_host_string, gdbpy_obj_to_string)
11126 (get_addr_from_python): Use gdbpy_ref.
11127
4586d543
TT
111282017-01-10 Tom Tromey <tom@tromey.com>
11129
11130 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11131 gdbpy_ref.
11132
59876f8f
TT
111332017-01-10 Tom Tromey <tom@tromey.com>
11134
11135 * python/python.c (eval_python_command, gdbpy_decode_line)
11136 (gdbpy_run_events, gdbpy_start_type_printers)
11137 (gdbpy_apply_type_printers): Use gdbpy_ref.
11138
97d83487
TT
111392017-01-10 Tom Tromey <tom@tromey.com>
11140
11141 * python/py-param.c (get_doc_string, compute_enum_values): Use
11142 gdbpy_ref.
11143
9205649a
TT
111442017-01-10 Tom Tromey <tom@tromey.com>
11145
11146 * python/py-inferior.c (find_thread_object, build_inferior_list):
11147 Use gdbpy_ref.
11148
74c49d45
TT
111492017-01-10 Tom Tromey <tom@tromey.com>
11150
11151 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11152
16361ffb
TT
111532017-01-10 Tom Tromey <tom@tromey.com>
11154
11155 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11156 gdbpy_ref.
11157
905f2cca
TT
111582017-01-10 Tom Tromey <tom@tromey.com>
11159
11160 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11161 extra incref.
11162 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11163 Use gdbpy_ref.
11164
64081434
TT
111652017-01-10 Tom Tromey <tom@tromey.com>
11166
11167 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11168 gdbpy_ref.
11169
59e9e831
TT
111702017-01-10 Tom Tromey <tom@tromey.com>
11171
11172 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11173 decref results of PyArg_ParseTupleAndKeywords.
11174
9de10f6d
TT
111752017-01-10 Tom Tromey <tom@tromey.com>
11176
11177 * python/python.c (python_run_simple_file): Use
11178 unique_xmalloc_ptr, gdbpy_ref.
11179
2bd5759d
TT
111802017-01-10 Tom Tromey <tom@tromey.com>
11181
11182 * python/py-prettyprint.c (print_stack_unless_memory_error)
11183 (print_string_repr, print_children): Use gdbpy_ref.
11184 (dummy_python_frame): New class.
11185 (dummy_python_frame::dummy_python_frame): Rename from
11186 push_dummy_python_frame.
11187 (py_restore_tstate): Remove.
11188
3b4e0e01
TT
111892017-01-10 Tom Tromey <tom@tromey.com>
11190
11191 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11192
17a22718
TT
111932017-01-10 Tom Tromey <tom@tromey.com>
11194
11195 * python/python.c (ensure_python_env, restore_python_env):
11196 Remove.
11197 * python/python-internal.h (ensure_python_env): Don't declare.
11198 * varobj.h (varobj_ensure_python_env): Don't declare.
11199 * varobj.c (varobj_ensure_python_env): Remove.
11200
68cdc557
TT
112012017-01-10 Tom Tromey <tom@tromey.com>
11202
11203 * varobj.c (varobj_value_get_print_value): Use
11204 gdbpy_enter_varobj.
11205
1eba6383
TT
112062017-01-10 Tom Tromey <tom@tromey.com>
11207
11208 * python/py-prettyprint.c (print_string_repr, print_children):
11209 Update.
11210 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11211 of "encoding".
11212 * varobj.c (varobj_value_get_print_value): Update.
11213 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11214
bde7b3e3
TT
112152017-01-10 Tom Tromey <tom@tromey.com>
11216
11217 * varobj.c (varobj_get_display_hint)
11218 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11219 (varobj_set_visualizer, free_variable): Use
11220 gdbpy_enter_varobj.
11221
a7785f8c
TT
112222017-01-10 Tom Tromey <tom@tromey.com>
11223
11224 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11225 (do_finish_initialization): New function. Use gdbpy_ref.
11226 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11227 do_finish_initialization.
11228
2865bfce
TT
112292017-01-10 Tom Tromey <tom@tromey.com>
11230
11231 * python/py-param.c (get_set_value, get_show_value): Use
11232 gdbpy_enter, gdbpy_ref.
11233
0e9dcc75
TT
112342017-01-10 Tom Tromey <tom@tromey.com>
11235
11236 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11237
12a5cedd
TT
112382017-01-10 Tom Tromey <tom@tromey.com>
11239
11240 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11241
788f2586
TT
112422017-01-10 Tom Tromey <tom@tromey.com>
11243
11244 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11245 Use gdbpy_enter_varobj.
11246
6cd67bea
TT
112472017-01-10 Tom Tromey <tom@tromey.com>
11248
11249 * varobj.c (gdbpy_enter_varobj): New constructor.
11250 * python/python-internal.h (gdbpy_enter_varobj): New class.
11251 * python/py-varobj.c (py_varobj_get_iterator): Use
11252 gdbpy_enter_varobj.
11253
14b122bf
TT
112542017-01-10 Tom Tromey <tom@tromey.com>
11255
11256 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11257 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11258 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11259 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11260 unique_xmalloc_ptr.
11261 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11262
bf1ca3b9
TT
112632017-01-10 Tom Tromey <tom@tromey.com>
11264
11265 * python/py-xmethods.c (invoke_match_method): Use
11266 gdbpy_ref.
11267
572a5524
TT
112682017-01-10 Tom Tromey <tom@tromey.com>
11269
11270 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11271 gdbpy_enter, gdbpy_ref.
11272
396a78b6
TT
112732017-01-10 Tom Tromey <tom@tromey.com>
11274
11275 * python/python.c (python_interactive_command): Use gdbpy_enter.
11276
a88b13c7
TT
112772017-01-10 Tom Tromey <tom@tromey.com>
11278
11279 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11280 gdbpy_ref.
11281
e9f0c363
TT
112822017-01-10 Tom Tromey <tom@tromey.com>
11283
11284 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11285 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11286
6349f452
TT
112872017-01-10 Tom Tromey <tom@tromey.com>
11288
11289 * utils.h (htab_deleter): New struct.
11290 (htab_up): New typedef.
11291 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11292 gdbpy_enter, gdbpy_ref, htab_up.
11293
c0171de6
TT
112942017-01-10 Tom Tromey <tom@tromey.com>
11295
11296 * python/py-unwind.c (pending_frame_invalidate): Remove.
11297 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11298
f18e226f
TT
112992017-01-10 Tom Tromey <tom@tromey.com>
11300
11301 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11302 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11303
c57af3f1
TT
113042017-01-10 Tom Tromey <tom@tromey.com>
11305
11306 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11307
60e600ec
TT
113082017-01-10 Tom Tromey <tom@tromey.com>
11309
11310 * python/python.c (gdbpy_eval_from_control_command)
11311 (gdbpy_source_script, gdbpy_run_events)
11312 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11313 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11314 gdbpy_enter.
11315
bf7da5b0
TT
113162017-01-10 Tom Tromey <tom@tromey.com>
11317
11318 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11319
2d38bced
TT
113202017-01-10 Tom Tromey <tom@tromey.com>
11321
11322 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11323
07bc7329
TT
113242017-01-10 Tom Tromey <tom@tromey.com>
11325
11326 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11327 (python_on_inferior_call_pre, python_on_inferior_call_post)
11328 (python_on_memory_change, python_on_register_change)
11329 (python_inferior_exit, python_new_objfile, add_thread_object)
11330 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11331
6e7c365e
TT
113322017-01-10 Tom Tromey <tom@tromey.com>
11333
11334 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11335 (bpfinishpy_handle_exit): Use gdbpy_enter.
11336
6ba0cd40
TT
113372017-01-10 Tom Tromey <tom@tromey.com>
11338
11339 * python/py-cmd.c (cmdpy_destroyer)
11340 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11341 gdbpy_enter.
11342
de2dc875
TT
113432017-01-10 Tom Tromey <tom@tromey.com>
11344
11345 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11346 gdbpy_enter.
11347 (gdbpy_breakpoint_has_cond): Likewise.
11348
4ecee2c4
TT
113492017-01-10 Tom Tromey <tom@tromey.com>
11350
11351 * python/python.c (gdbpy_enter): New constructor.
11352 (~gdbpy_enter): New destructor.
11353 (restore_python_env, ensure_python_env): Rewrite.
11354 * python/python-internal.h (gdbpy_enter): New class.
11355
37fce74f
TT
113562017-01-10 Tom Tromey <tom@tromey.com>
11357
11358 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11359
53a0cca3
TT
113602017-01-10 Tom Tromey <tom@tromey.com>
11361
11362 * python/py-value.c (value_has_field, get_field_flag)
11363 (get_field_type, valpy_getitem, convert_value_from_python): Use
11364 gdbpy_ref.
11365
ff3724f5
TT
113662017-01-10 Tom Tromey <tom@tromey.com>
11367
11368 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11369 gdbpy_ref.
11370
0700aea5
TT
113712017-01-10 Tom Tromey <tom@tromey.com>
11372
11373 * python/py-prettyprint.c (search_pp_list)
11374 (find_pretty_printer_from_objfiles)
11375 (find_pretty_printer_from_progspace)
11376 (find_pretty_printer_from_gdb, find_pretty_printer)
11377 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11378 gdbpy_ref.
11379
1bb44c9f
TT
113802017-01-10 Tom Tromey <tom@tromey.com>
11381
11382 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11383
87ce03fd
TT
113842017-01-10 Tom Tromey <tom@tromey.com>
11385
11386 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11387 (ltpy_get_all_source_lines): Use gdbpy_ref.
11388
ee0a3fb8
TT
113892017-01-10 Tom Tromey <tom@tromey.com>
11390
11391 * python/py-framefilter.c (extract_sym, extract_value)
11392 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11393 gdbpy_ref.
11394
bf2a52fa
TT
113952017-01-10 Tom Tromey <tom@tromey.com>
11396
11397 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11398
f59fe7f8
TT
113992017-01-10 Tom Tromey <tom@tromey.com>
11400
11401 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11402
80bd970a
TT
114032017-01-10 Tom Tromey <tom@tromey.com>
11404
11405 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11406 gdbpy_ref.
11407
d1b3de2e
TT
114082017-01-10 Tom Tromey <tom@tromey.com>
11409
11410 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11411
3bb43384
TT
114122017-01-10 Tom Tromey <tom@tromey.com>
11413
11414 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11415 (typy_range): Use gdbpy_ref.
11416
abf5651e
TT
114172017-01-10 Tom Tromey <tom@tromey.com>
11418
11419 * python/py-threadevent.c (create_thread_event_object): Use
11420 gdbpy_ref.
11421 * python/py-stopevent.c (create_stop_event_object): Simplify.
11422 (emit_stop_event): Use gdbpy_ref.
11423 * python/py-signalevent.c (create_signal_event_object): Use
11424 gdbpy_ref.
11425 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11426 (emit_new_objfile_event, create_clear_objfiles_event_object)
11427 (emit_clear_objfiles_event): Use gdbpy_ref.
11428 * python/py-infevents.c (create_inferior_call_event_object)
11429 (create_register_changed_event_object)
11430 (create_memory_changed_event_object, emit_inferior_call_event)
11431 (emit_memory_changed_event, emit_register_changed_event): Use
11432 gdbpy_ref.
11433 * python/py-exitedevent.c (create_exited_event_object)
11434 (emit_exited_event): Use gdbpy_ref.
11435 * python/py-event.h (evpy_emit_event): Remove
11436 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11437 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11438 * python/py-continueevent.c (emit_continue_event): Use
11439 gdbpy_ref.
11440 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11441 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11442 gdbpy_ref.
11443 * python/py-bpevent.c (create_breakpoint_event_object): Use
11444 gdbpy_ref.
11445
a68ff33e
TT
114462017-01-10 Tom Tromey <tom@tromey.com>
11447
11448 * python/py-ref.h: New file.
11449
7becfd03
SM
114502017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11451
11452 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11453 void.
11454 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11455 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11456 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11457 * ui-out.c (ui_out::redirect): Likewise.
11458 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11459 * cli/cli-logging.c (set_logging_redirect): Update call site of
11460 ui_out::redirect.
11461 (handle_redirections): Likewise.
11462 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11463 * top.c (execute_command_to_string): Likewise.
11464 * utils.c (do_ui_out_redirect_pop): Likewise.
11465
df294654
SM
114662017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11467
11468 * stack.c (_initialize_stack): Update "frame" command help message.
11469
f5e6296e
IB
114702017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11471
11472 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11473
0e2d6fa6
YQ
114742017-01-06 Yao Qi <yao.qi@linaro.org>
11475
11476 * x86-linux-nat.h: Include gdb_proc_service.h.
11477
44d6d3f9
YQ
114782017-01-06 Yao Qi <yao.qi@linaro.org>
11479
11480 * ser-base.h: Include serial.h.
11481
656731fe
YQ
114822017-01-06 Yao Qi <yao.qi@linaro.org>
11483
11484 * ppc-linux-tdep.h: Include ppc-tdep.h.
11485
1ca8f924
YQ
114862017-01-06 Yao Qi <yao.qi@linaro.org>
11487
11488 * nat/amd64-linux-siginfo.h: Include signal.h.
11489
bc3008c4
YQ
114902017-01-06 Yao Qi <yao.qi@linaro.org>
11491
11492 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11493
66c80d03
YQ
114942017-01-06 Yao Qi <yao.qi@linaro.org>
11495
11496 * mi/mi-parse.h: Include mi-cmds.h.
11497
051d2dda
YQ
114982017-01-06 Yao Qi <yao.qi@linaro.org>
11499
11500 * inf-loop.c: Don't include "target.h".
11501 * inf-loop.h: Include it here.
11502
8018d34f
YQ
115032017-01-06 Yao Qi <yao.qi@linaro.org>
11504
11505 * dfp.h: Include "dboulest.h" and "expression.h".
11506
c0b8369c
YQ
115072017-01-06 Yao Qi <yao.qi@linaro.org>
11508
11509 * ax-gdb.h: Include "ax.h".
11510
ad5cba2a
YQ
115112017-01-06 Yao Qi <yao.qi@linaro.org>
11512
11513 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11514 with nat/gdb_ptrace.h.
11515
1c33cd7f
YQ
115162017-01-05 Yao Qi <yao.qi@linaro.org>
11517
11518 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11519 new line.
11520 (mips64_fbsd_sigframe_init): Likewise.
11521
c988ac1d
JB
115222017-01-04 John Baldwin <jhb@FreeBSD.org>
11523
11524 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11525 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11526
b268007c
JB
115272017-01-04 John Baldwin <jhb@FreeBSD.org>
11528
11529 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11530 * NEWS: Mention new FreeBSD/mips native configuration.
11531 * config/mips/fbsd.mh: New file.
11532 * configure.host: Add mips*-*-freebsd*.
11533 * mips-fbsd-nat.c: New file.
11534
387360da
JB
115352017-01-04 John Baldwin <jhb@FreeBSD.org>
11536
11537 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11538 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11539 * NEWS: Mention new FreeBSD/mips target.
11540 * configure.tgt: Add mips*-*-freebsd*.
11541 * mips-fbsd-tdep.c: New file.
11542 * mips-fbsd-tdep.h: New file.
11543
2aaaf250
YQ
115442017-01-04 Yao Qi <yao.qi@linaro.org>
11545
11546 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11547 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11548
61baf725
JB
115492017-01-01 Joel Brobecker <brobecker@adacore.com>
11550
6dbb839a 11551 Update copyright year range in all GDB files.
61baf725 11552
c113e7ff 115532017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11554
c113e7ff 11555 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11556
c113e7ff 11557For older changes see ChangeLog-2016.
c906108c
SS
11558\f
11559Local Variables:
11560mode: change-log
11561left-margin: 8
11562fill-column: 74
11563version-control: never
57da7796 11564coding: utf-8
c906108c 11565End:
This page took 2.414978 seconds and 4 git commands to generate.