Constify some commands in remote-fileio.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * remote-fileio.c (set_system_call_allowed)
4 (show_system_call_allowed): Constify.
5
6 2017-09-27 Tom Tromey <tom@tromey.com>
7
8 * tracepoint.c (delete_trace_variable_command)
9 (tfind_end_command, tfind_start_command, tfind_pc_command)
10 (tfind_tracepoint_command, tfind_line_command)
11 (tfind_range_command, tfind_outside_command): Constify.
12
13 2017-09-27 Tom Tromey <tom@tromey.com>
14
15 * ax-gdb.c (maint_agent_printf_command, agent_command)
16 (agent_eval_command): Constify.
17
18 2017-09-27 Tom Tromey <tom@tromey.com>
19
20 * tracepoint.c (info_scope_command): Constify.
21 * python/python.c (gdbpy_decode_line): Constify.
22 * python/py-breakpoint.c (bppy_init): Constify.
23 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
24 * location.h: (new_linespec_location)
25 (string_to_event_location_basic, string_to_event_location):
26 Constify.
27 * location.c (new_linespec_location)
28 (string_to_event_location_basic, string_to_event_location):
29 Constify.
30 * linespec.h (decode_line_with_current_source)
31 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
32 * linespec.c (linespec_lex_to_end)
33 (decode_line_with_current_source)
34 (decode_line_with_last_displayed): Constify.
35 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
36 Constify.
37 * cli/cli-cmds.c (edit_command, list_command): Constify.
38 * breakpoint.h (until_break_command, watch_command_wrapper)
39 (awatch_command_wrapper, rwatch_command_wrapper)
40 (init_ada_exception_breakpoint): Constify.
41 * breakpoint.c (break_command_1, dprintf_command)
42 (break_range_command, watch_command_wrapper)
43 (rwatch_command_wrapper, awatch_command_wrapper)
44 (until_break_command, init_ada_exception_breakpoint)
45 (strace_marker_create_sals_from_location, trace_command)
46 (ftrace_command, strace_command, struct tracepoint): Constify.
47 * ax-gdb.c (agent_command_1): Constify.
48 * ada-lang.c (ada_exception_sal): Constify.
49
50 2017-09-27 Tom Tromey <tom@tromey.com>
51
52 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
53 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
54 (get_context_size, no_chunk, get_insn_history_modifiers)
55 (cmd_record_insn_history, get_call_history_modifiers)
56 (cmd_record_call_history): Constify.
57
58 2017-09-27 Tom Tromey <tom@tromey.com>
59
60 * source.c (show_substitute_path_command)
61 (unset_substitute_path_command, set_substitute_path_command):
62 Constify.
63
64 2017-09-27 Tom Tromey <tom@tromey.com>
65
66 * typeprint.c (maintenance_print_type): Constify.
67 * maint.c (maintenance_dump_me, maintenance_demangle)
68 (maintenance_time_display, maintenance_info_sections)
69 (maintenance_print_statistics, maintenance_deprecate)
70 (maintenance_undeprecate): Constify.
71 (maintenance_do_deprecate): Constify. Use std::string.
72 (maintenance_selftest): Constify.
73 * gdbtypes.h (maintenance_print_type): Constify.
74
75 2017-09-27 Tom Tromey <tom@tromey.com>
76
77 * hppa-tdep.c (unwind_command): Constify.
78
79 2017-09-27 Tom Tromey <tom@tromey.com>
80
81 * target-descriptions.c (unset_tdesc_filename_cmd)
82 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
83 Constify.
84
85 2017-09-27 Tom Tromey <tom@tromey.com>
86
87 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
88
89 2017-09-27 Tom Tromey <tom@tromey.com>
90
91 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
92
93 2017-09-27 Tom Tromey <tom@tromey.com>
94
95 * tui/tui-regs.c (tui_reg_command): Constify.
96
97 2017-09-27 Tom Tromey <tom@tromey.com>
98
99 * skip.c (skip_file_command, skip_function_command)
100 (skip_enable_command, skip_disable_command, skip_delete_command):
101 Constify.
102
103 2017-09-27 Tom Tromey <tom@tromey.com>
104
105 * record-btrace.c (cmd_record_btrace_bts_start)
106 (cmd_record_btrace_pt_start): Constify.
107
108 2017-09-27 Tom Tromey <tom@tromey.com>
109
110 * symmisc.c (maintenance_print_symbols)
111 (maintenance_print_msymbols, maintenance_print_objfiles)
112 (maintenance_info_symtabs, maintenance_check_symtabs)
113 (maintenance_expand_symtabs, maintenance_info_line_tables):
114 Constify.
115
116 2017-09-27 Tom Tromey <tom@tromey.com>
117
118 * top.c (new_ui_command): Constify.
119
120 2017-09-27 Tom Tromey <tom@tromey.com>
121
122 * symfile.c (add_symbol_file_command)
123 (remove_symbol_file_command, list_overlays_command)
124 (map_overlay_command, unmap_overlay_command)
125 (overlay_auto_command, overlay_manual_command)
126 (overlay_off_command, overlay_load_command): Constify.
127
128 2017-09-27 Tom Tromey <tom@tromey.com>
129
130 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
131 (info_spu_mailbox_command, info_spu_dma_command)
132 (info_spu_proxydma_command): Constify.
133
134 2017-09-27 Tom Tromey <tom@tromey.com>
135
136 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
137
138 2017-09-27 Tom Tromey <tom@tromey.com>
139
140 * cli/cli-script.c (user_defined_command): Constify.
141
142 2017-09-27 Tom Tromey <tom@tromey.com>
143
144 * cli/cli-dump.c (dump_memory_command, dump_value_command)
145 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
146 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
147 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
148 (dump_binary_value, append_binary_memory, append_binary_value):
149 Constify.
150 (struct dump_context) <func>: Constify.
151 (add_dump_command): Update.
152
153 2017-09-27 Tom Tromey <tom@tromey.com>
154
155 * cli/cli-cmds.c (show_version, show_configuration)
156 (source_command, show_user): Constify.
157
158 2017-09-27 Tom Tromey <tom@tromey.com>
159
160 * target.c (maintenance_print_target_stack): Constify.
161
162 2017-09-27 Tom Tromey <tom@tromey.com>
163
164 * interps.c (interpreter_exec_cmd): Constify.
165
166 2017-09-27 Tom Tromey <tom@tromey.com>
167
168 * record-full.c (cmd_record_full_restore): Constify.
169
170 2017-09-27 Tom Tromey <tom@tromey.com>
171
172 * memattr.c (enable_mem_command, disable_mem_command)
173 (delete_mem_command): Constify.
174
175 2017-09-27 Tom Tromey <tom@tromey.com>
176
177 * value.c (show_convenience): Constify.
178
179 2017-09-27 Tom Tromey <tom@tromey.com>
180
181 * gdbcore.h (core_file_command): Update.
182 * corefile.c (core_file_command): Constify.
183
184 2017-09-27 Tom Tromey <tom@tromey.com>
185
186 * user-regs.c (maintenance_print_user_registers): Constify.
187
188 2017-09-27 Tom Tromey <tom@tromey.com>
189
190 * cp-namespace.c (maintenance_cplus_namespace): Constify.
191
192 2017-09-27 Tom Tromey <tom@tromey.com>
193
194 * cp-support.c (first_component_command): Constify.
195
196 2017-09-27 Tom Tromey <tom@tromey.com>
197
198 * psymtab.c (maintenance_print_psymbols)
199 (maintenance_info_psymtabs, maintenance_check_psymtabs):
200 Constify.
201
202 2017-09-27 Tom Tromey <tom@tromey.com>
203
204 * windows-tdep.c (display_tib): Constify.
205
206 2017-09-27 Tom Tromey <tom@tromey.com>
207
208 * linux-fork.c (delete_checkpoint_command)
209 (detach_checkpoint_command): Constify.
210
211 2017-09-27 Tom Tromey <tom@tromey.com>
212
213 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
214
215 2017-09-27 Tom Tromey <tom@tromey.com>
216
217 * arc-tdep.c (dump_arc_instruction_command): Constify.
218
219 2017-09-27 Tom Tromey <tom@tromey.com>
220
221 * valprint.c (set_radix, show_radix): Constify.
222
223 2017-09-27 Tom Tromey <tom@tromey.com>
224
225 * dtrace-probe.c (info_probes_dtrace_command): Constify.
226
227 2017-09-27 Tom Tromey <tom@tromey.com>
228
229 * command.h (not_just_help_class_command): Update.
230 * cli/cli-decode.h (not_just_help_class_command): Update.
231 * cli/cli-decode.c (not_just_help_class_command): Constify.
232
233 2017-09-27 Tom Tromey <tom@tromey.com>
234
235 * gdb_bfd.c (maintenance_info_bfds): Constify.
236
237 2017-09-27 Tom Tromey <tom@tromey.com>
238
239 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
240 overloads.
241 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
242 (do_const_cfunc): New function.
243 (cmd_cfunc_eq): New overload.
244 (cli_user_command_p): Check do_const_cfunc.
245 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
246 const_cfunc.
247 * command.h (add_cmd): Add const overload and no-function
248 overload.
249 (set_cmd_cfunc): Add const overload.
250 (cmd_const_cfunc_ftype): Declare.
251 (cmd_cfunc_eq): Add const overload.
252 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
253 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
254 overload.
255
256 2017-09-27 Tom Tromey <tom@tromey.com>
257
258 * macroexp.c (get_next_token_for_substitution): New function.
259 (substitute_args): Call it. Check for __VA_OPT__.
260
261 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
262 Pedro Alves <palves@redhat.com>
263
264 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
265 producer_is_icc_lt_14.
266 (producer_is_icc_lt_14): New function.
267 (check_producer): Add code for checking version of ICC.
268 (producer_is_icc): Move to producer.c.
269 (read_structure_type): Restrict ICC workaround to ICC<14.
270 * producer.c: Include selftest.h.
271 (producer_is_icc, producer_parsing_tests, _initialize_producer):
272 New functions.
273 * producer.h (producer_is_icc): New declaration.
274
275 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
276
277 * Makefile.in (SFILES): Add producer.c.
278 (COMMON_OBS): Add producer.o
279 * amd64-tdep.c (producer.h): Add new include.
280 * dwarf2read.c (producer.h): Add new include.
281 * producer.c: New file.
282 * producer.h: New file.
283 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
284 producer.c.
285 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
286 producer.h.
287
288 2017-09-26 Matthias Klose <doko@ubuntu.com>
289
290 * configure.ac: Search ncursesw before ncurses.
291 Check ncursesw/ncurses.h before ncurses/ncurses.h.
292 * gdb_curses.h: Include <ncursesw/ncurses.h>
293 * config.in, configure: Regenerate.
294
295 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
296
297 PR gdb/22185
298 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
299 obsolete.
300 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
301 Remove i386sol2 support.
302 * configure.nat <i386sol2>: Remove.
303 <sol2-64>: Fold into ...
304 <sol2>: ... this.
305 Move common settings to default section.
306 Add sol-thread.o.
307 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
308 x86_64-*-solaris2.1[0-9]*>: Rename to ...
309 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
310 <i[34567]86-*-solaris*>: Remove.
311 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
312
313 * configure.ac: Remove wctype in libw check.
314 (_MSE_INT_H): Don't define on Solaris 7-9.
315 <solaris*>: Remove libthread_db.so.1 check.
316 * configure: Regenerate.
317 * config.in: Regenerate.
318
319 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
320 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
321 (gdb_ps_size_t): Remove.
322 Use base types in users.
323 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
324
325 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
326
327 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328
329 PR build/22206
330 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
331 (adi_is_addr_mapped): Likewise.
332 (PSR_ICC): Don't redefine.
333 (PSR_IMPL): Likewise.
334
335 2017-09-25 Tom Tromey <tom@tromey.com>
336
337 * regcache.c (regcache::dump): Use string_printf.
338
339 2017-09-25 Tom Tromey <tom@tromey.com>
340
341 * regcache.c (class regcache_invalidator): New.
342 (struct register_to_invalidate): Remove.
343 (make_cleanup_regcache_invalidate): Remove.
344 (regcache::raw_write): Use regcache_invalidator.
345
346 2017-09-25 Tom Tromey <tom@tromey.com>
347
348 * spu-tdep.c (spu2ppu_sniffer): Update.
349 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
350 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
351 Remove.
352 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
353 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
354 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
355 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
356 (frame_pop): Update.
357
358 2017-09-25 Tom Tromey <tom@tromey.com>
359
360 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
361 * regcache.h (regcache_xfree): Don't declare.
362 * regcache.c (regcache_xfree): Remove.
363 (do_regcache_xfree): Use delete.
364 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
365 * linux-fork.c (free_fork): Use delete.
366 (fork_save_infrun_state): Likewise.
367 * jit.c (jit_dealloc_cache): Use delete.
368 * infrun.c (discard_infcall_suspend_state): Use delete.
369
370 2017-09-25 Tom Tromey <tom@tromey.com>
371
372 * regcache.h (regcache_xmalloc): Don't declare.
373 (regcache_raw_set_cached_value): Update comment.
374 * regcache.c (regcache_xmalloc): Remove.
375 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
376 * jit.c (jit_frame_sniffer): Use new.
377 * frame.c (frame_save_as_regcache): Use new.
378
379 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
380
381 * NEWS: Advertise support for guarded-storage registers on IBM z.
382
383 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
384
385 * s390-linux-nat.c (have_regset_gs): New static variable.
386 (s390_linux_fetch_inferior_registers): Handle guarded-storage
387 control block and guarded-storage broadcast control regsets.
388 (s390_read_description): Detect whether the target has
389 guarded-storage support, return appropriate tdesc.
390 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
391 (features/s390x-gs-linux64.c): Likewise.
392 (struct gdbarch_tdep) <have_gs>: New field.
393 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
394 (s390_gsbc_regset): New variables.
395 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
396 and s390_gsbc_regset, if applicable.
397 (s390_core_read_description): Check whether core file was from a
398 target with guarded-storage support; include appropriate regsets.
399 (s390_gdbarch_init): Add registers for guarded-storage support.
400 (_initialize_s390_tdep): Initialize new target descriptions that
401 include registers for guarded-storage support.
402 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
403 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
404 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
405 (S390_NUM_REGS): Adjust macro definition.
406 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
407 (tdesc_s390x_gs_linux64): New declarations.
408
409 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
410
411 * features/s390-gs-linux64.xml: New file.
412 * features/s390-gs.xml: New file.
413 * features/s390-gsbc.xml: New file.
414 * features/s390x-gs-linux64.xml: New file.
415 * features/Makefile (WHICH): Add s390-gs-linux64 and
416 s390x-gs-linux64.
417 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
418 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
419 * features/s390-gs-linux64.c: New generated file.
420 * features/s390x-gs-linux64.c: New file.
421 * regformats/s390-gs-linux64.dat: New file.
422 * regformats/s390x-gs-linux64.dat: New file.
423
424 2017-09-23 Tom Tromey <tom@tromey.com>
425
426 * defs.h (make_cleanup_override_quit_handler): Don't declare.
427
428 2017-09-22 Tom Tromey <tom@tromey.com>
429
430 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
431 type to scoped_restore_tmpl.
432 <scoped_input_handler>: Initialize m_quit_handler directly.
433
434 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
435
436 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
437 (cd_command): Likewise. Free "current_directory" before
438 assigning to it.
439 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
440 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
441 * top.c (gdb_dirbuf): Remove global declaration.
442 * top.h (gdb_dirbuf): Likewise.
443
444 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
445
446 * gnulib/aclocal.m4: Regenerate.
447 * gnulib/config.in: Regenerate.
448 * gnulib/configure: Regenerate.
449 * gnulib/import/Makefile.am: Regenerate.
450 * gnulib/import/Makefile.in: Regenerate.
451 * gnulib/import/assure.h: New file.
452 * gnulib/import/at-func.c: Likewise
453 * gnulib/import/chdir-long.c: New file.
454 * gnulib/import/chdir-long.h: New file.
455 * gnulib/import/cloexec.c: New file.
456 * gnulib/import/cloexec.h: New file.
457 * gnulib/import/close.c: New file.
458 * gnulib/import/closedir.c: New file.
459 * gnulib/import/dirent-private.h: New file.
460 * gnulib/import/dup-safer.c: New file.
461 * gnulib/import/dup.c: New file.
462 * gnulib/import/dup2.c: New file.
463 * gnulib/import/error.c: New file.
464 * gnulib/import/error.h: New file.
465 * gnulib/import/exitfail.c: New file.
466 * gnulib/import/exitfail.h: New file.
467 * gnulib/import/fchdir.c: New file.
468 * gnulib/import/fcntl.c: New file.
469 * gnulib/import/fcntl.in.h: New file.
470 * gnulib/import/fd-hook.c: New file.
471 * gnulib/import/fd-hook.h: New file.
472 * gnulib/import/fd-safer.c: New file.
473 * gnulib/import/fdopendir.c: New file.
474 * gnulib/import/filename.h: New file.
475 * gnulib/import/filenamecat-lgpl.c: New file.
476 * gnulib/import/filenamecat.h: New file.
477 * gnulib/import/fstat.c: New file.
478 * gnulib/import/fstatat.c: New file.
479 * gnulib/import/getcwd-lgpl.c: New file.
480 * gnulib/import/getcwd.c: New file.
481 * gnulib/import/getdtablesize.c: New file.
482 * gnulib/import/getlogin_r.c: New file.
483 * gnulib/import/getprogname.c: New file.
484 * gnulib/import/getprogname.h: New file.
485 * gnulib/import/gettext.h: New file.
486 * gnulib/import/glob-libc.h: New file.
487 * gnulib/import/glob.c: New file.
488 * gnulib/import/glob.in.h: New file.
489 * gnulib/import/intprops.h: New file.
490 * gnulib/import/m4/chdir-long.m4: New file.
491 * gnulib/import/m4/close.m4: New file.
492 * gnulib/import/m4/closedir.m4: New file.
493 * gnulib/import/m4/d-ino.m4: New file.
494 * gnulib/import/m4/d-type.m4: New file.
495 * gnulib/import/m4/dup.m4: New file.
496 * gnulib/import/m4/dup2.m4: New file.
497 * gnulib/import/m4/error.m4: New file.
498 * gnulib/import/m4/fchdir.m4: New file.
499 * gnulib/import/m4/fcntl.m4: New file.
500 * gnulib/import/m4/fcntl_h.m4: New file.
501 * gnulib/import/m4/fdopendir.m4: New file.
502 * gnulib/import/m4/filenamecat.m4: New file.
503 * gnulib/import/m4/fstat.m4: New file.
504 * gnulib/import/m4/fstatat.m4: New file.
505 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
506 * gnulib/import/m4/getcwd-path-max.m4: New file.
507 * gnulib/import/m4/getcwd.m4: New file.
508 * gnulib/import/m4/getdtablesize.m4: New file.
509 * gnulib/import/m4/getlogin_r.m4: New file.
510 * gnulib/import/m4/getprogname.m4: New file.
511 * gnulib/import/m4/glob.m4: New file.
512 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
513 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
514 * gnulib/import/m4/mempcpy.m4: New file.
515 * gnulib/import/m4/memrchr.m4: New file.
516 * gnulib/import/m4/mode_t.m4: New file.
517 * gnulib/import/m4/msvc-inval.m4: New file.
518 * gnulib/import/m4/msvc-nothrow.m4: New file.
519 * gnulib/import/m4/open.m4: New file.
520 * gnulib/import/m4/openat.m4: New file.
521 * gnulib/import/m4/opendir.m4: New file.
522 * gnulib/import/m4/readdir.m4: New file.
523 * gnulib/import/m4/realloc.m4: New file.
524 * gnulib/import/m4/rewinddir.m4: New file.
525 * gnulib/import/m4/save-cwd.m4: New file.
526 * gnulib/import/m4/strdup.m4: New file.
527 * gnulib/import/m4/strerror.m4: New file.
528 * gnulib/import/m4/unistd-safer.m4: New file.
529 * gnulib/import/mempcpy.c: New file.
530 * gnulib/import/memrchr.c: New file.
531 * gnulib/import/msvc-inval.c: New file.
532 * gnulib/import/msvc-inval.h: New file.
533 * gnulib/import/msvc-nothrow.c: New file.
534 * gnulib/import/msvc-nothrow.h: New file.
535 * gnulib/import/open.c: New file.
536 * gnulib/import/openat-die.c: New file.
537 * gnulib/import/openat-priv.h: New file.
538 * gnulib/import/openat-proc.c: New file.
539 * gnulib/import/openat.c: New file.
540 * gnulib/import/openat.h: New file.
541 * gnulib/import/opendir.c: New file.
542 * gnulib/import/pipe-safer.c: New file.
543 * gnulib/import/readdir.c: New file.
544 * gnulib/import/realloc.c: New file.
545 * gnulib/import/rewinddir.c: New file.
546 * gnulib/import/save-cwd.c: New file.
547 * gnulib/import/save-cwd.h: New file.
548 * gnulib/import/strdup.c: New file.
549 * gnulib/import/strerror-override.c: New file.
550 * gnulib/import/strerror-override.h: New file.
551 * gnulib/import/strerror.c: New file.
552 * gnulib/import/unistd--.h: New file.
553 * gnulib/import/unistd-safer.h: New file.
554 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
555 "getcwd" and "glob".
556 * ser-tcp.c: Undefine "close" before redefining it.
557
558 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
559
560 * guile/scm-value.c (gdbscm_value_address): Initialize address,
561 get rid of res_val.
562
563 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
564
565 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
566 <sol2,sparc>: Likewise.
567 <sol2-64,i386>: Likewise.
568
569 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
570 -Wdeprecated-declarations on *-*-solaris*.
571 * configure: Regenerate.
572
573 * procfs.c: Include "nat/inferior.h".
574 (procfs_info_proc): Fix typo.
575
576 2017-09-21 Kevin Buettner <kevinb@redhat.com>
577
578 * remote.c (vector): Include.
579 (struct private_thread_info): Add field, thread_handle.
580 (free_private_thread_info): Deallocate storage associated with
581 thread handle.
582 (get_private_info_thread): Initialize `thread_handle' field.
583 (struct thread_item): Add field, thread_handle.
584 (clear_threads_listing_context): Deallocate storage associated
585 with thread handle.
586 (start_thread): Add support for "handle" attribute.
587 (thread_attributes): Add "handle".
588 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
589 field.
590 (remote_update_thread_list): Update thread_handle.
591 (remote_thread_handle_to_thread_info): New function.
592 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
593
594 2017-09-21 Kevin Buettner <kevinb@redhat.com>
595
596 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
597 function.
598 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
599 * python/python-internal.h (thread_object_type): Declare.
600
601 2017-09-21 Kevin Buettner <kevinb@redhat.com>
602
603 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
604 (target_thread_handle_to_thread_info): Declare.
605 * target.c (target_thread_handle_to_thread_info): New function.
606 * target-delegates.c: Regenerate.
607 * gdbthread.h (find_thread_by_handle): Declare.
608 * thread.c (find_thread_by_handle): New function.
609 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
610 function.
611 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
612
613 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
614
615 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
616
617 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
618
619 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
620
621 2017-09-21 Yao Qi <yao.qi@linaro.org>
622
623 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
624 to gdb_target_obs.
625
626 2017-09-20 Tom Tromey <tom@tromey.com>
627
628 * breakpoint.c (struct counted_command_line): Remove.
629 (breakpoint_commands): Update.
630 (alloc_counted_command_line, incref_counted_command_line)
631 (decref_counted_command_line, do_cleanup_counted_command_line)
632 (make_cleanup_decref_counted_command_line): Remove.
633 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
634 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
635 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
636 (save_breakpoints): Update.
637 * breakpoint.h (counted_command_line): Now a typedef to
638 shared_ptr.
639 (struct breakpoint) <commands>: Now a counted_command_line.
640 (struct bpstats) <command>: Likewise.
641
642 2017-09-20 Tom Tromey <tom@tromey.com>
643
644 * breakpoint.c (struct commands_info, do_map_commands_command):
645 Remove.
646 (commands_command_1): Update.
647 (iterate_over_related_breakpoints): Take a function_view.
648 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
649 (delete_command): Update.
650 (map_breakpoint_numbers): Take a function_view.
651 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
652 (disable_command): Update.
653 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
654 (enable_command): Update.
655 (struct disp_data, do_enable_breakpoint_disp)
656 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
657 (do_map_enable_delete_breakpoint): Remove.
658 (enable_once_command, enable_count_command, enable_delete_command)
659 (delete_trace_variable_command): Update.
660
661 2017-09-20 Tom Tromey <tom@tromey.com>
662
663 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
664 (bpstat_clear): Use delete.
665 (bpstats): New constructors.
666 (bpstat_copy, bpstat_stop_status): Use new.
667 (dprintf_after_condition_true): Update.
668 * breakpoint.h (bpstats::bpstats): Add constructors.
669 (bpstats::~bpstats): Add destructor.
670
671 2017-09-20 Pedro Alves <palves@redhat.com>
672
673 * eval.c (make_params): Delete, refactored as ...
674 (class fake_method): ... this new type's ctor.
675 (fake_method::~fake_method): New.
676 (evaluate_subexp_standard): Use 'fake_method'.
677
678 2017-09-20 Tom Tromey <tom@tromey.com>
679
680 * windows-nat.c (get_windows_debug_event, windows_wait)
681 (do_initial_windows_stuff, windows_attach): Update.
682 * utils.c (vwarning, internal_vproblem): Update.
683 (ui_unregister_input_event_handler_cleanup)
684 (prepare_to_handle_input): Remove.
685 (class scoped_input_handler): New.
686 (defaulted_query, prompt_for_continue): Update.
687 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
688 Update.
689 * top.c (undo_terminal_modifications_before_exit): Update.
690 * target/target.h (target_terminal_init, target_terminal_inferior)
691 (target_terminal_ours): Don't declare.
692 (class target_terminal): New.
693 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
694 (target_terminal_ours_for_output)
695 (make_cleanup_restore_target_terminal): Don't declare.
696 (target_terminal_info): Remove.
697 * target.c (enum terminal_state, terminal_state): Remove.
698 (target_terminal::terminal_state): Define.
699 (target_terminal::init): Rename from target_terminal_init.
700 (target_terminal::inferior): Rename from
701 target_terminal_inferior.
702 (target_terminal::ours): Rename from target_terminal_ours.
703 (target_terminal::ours_for_output): Rename from
704 target_terminal_ours_for_output.
705 (target_terminal::info): New method.
706 (cleanup_restore_target_terminal)
707 (make_cleanup_restore_target_terminal): Remove.
708 * solib.c (handle_solib_event): Update.
709 * remote.c (remote_serial_quit_handler): Update.
710 (remote_terminal_inferior, remote_wait_as): Update.
711 * record-full.c (record_full_wait_1): Update.
712 * nto-procfs.c (procfs_create_inferior): Update.
713 * nat/fork-inferior.c (startup_inferior): Update.
714 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
715 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
716 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
717 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
718 (mi_breakpoint_created, mi_breakpoint_deleted)
719 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
720 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
721 (mi_user_selected_context_changed, report_initial_inferior):
722 Update.
723 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
724 (linux_nat_terminal_inferior): Update.
725 * infrun.c (follow_fork_inferior)
726 (handle_vfork_child_exec_or_exit, do_target_resume)
727 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
728 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
729 Update.
730 * inflow.c (child_terminal_init, info_terminal_command): Update.
731 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
732 (attach_command): Update.
733 * infcall.c (call_thread_fsm_should_stop): Update.
734 * gnu-nat.c (gnu_attach): Update.
735 * extension.c (struct active_ext_lang_state)
736 (restore_active_ext_lang): Update.
737 * exceptions.c (print_flush): Update.
738 * event-top.c (async_enable_stdin, default_quit_handler): Update.
739 (struct quit_handler_cleanup_data, restore_quit_handler)
740 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
741 Remove.
742 * cp-support.c (gdb_demangle): Update.
743 * breakpoint.c (update_inserted_breakpoint_locations)
744 (insert_breakpoint_locations, handle_jit_event)
745 (disable_breakpoints_in_unloaded_shlib): Update.
746 * annotate.c (annotate_breakpoints_invalid)
747 (annotate_frames_invalid): Update.
748
749 2017-09-20 Tom Tromey <tom@tromey.com>
750
751 * main.c (catch_command_errors): Rename from
752 catch_command_errors_const.
753 (captured_main_1): Update.
754
755 2017-09-20 Pedro Alves <palves@redhat.com>
756
757 * cli/cli-cmds.c (list_command): Use print_sal_location.
758 (print_sal_location): New function.
759 (ambiguous_line_spec): Use print_sal_location.
760 * linespec.c (symbol_to_sal): Record the symbol in the sal.
761 * symtab.c (find_function_start_sal): Likewise.
762 * symtab.h (symtab_and_line::symbol): New field.
763
764 2017-09-20 Pedro Alves <palves@redhat.com>
765
766 * linespec.c (minsym_found): Handle non-text minsyms.
767 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
768
769 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
770
771 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
772 backslash.
773
774 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
775
776 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
777 vmovups instead vmovaps.
778 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
779
780 2017-09-19 John Baldwin <jhb@FreeBSD.org>
781
782 * NEWS (Changes since GDB 8.0): Add starti.
783 * infcmd.c (enum run_break): New.
784 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
785 case.
786 (run_command): Use enum run_how.
787 (start_command): Likewise.
788 (starti_command): New function.
789 (RUN_ARGS_HELP): New macro.
790 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
791 commands. Add starti command.
792
793 2017-09-19 Yao Qi <yao.qi@linaro.org>
794
795 * Makefile.in (monitor.o): Remove the rule.
796
797 2017-09-19 Yao Qi <yao.qi@linaro.org>
798
799 * annotate.h (struct annotate_arg_emitter): Use
800 DISABLE_COPY_AND_ASSIGN.
801 * common/refcounted-object.h (refcounted_object): Likewise.
802 * completer.h (struct completion_result): Likewise.
803 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
804 * filename-seen-cache.h (filename_seen_cache): Likewise.
805 * gdbcore.h (thread_section_name): Likewise.
806 * gdb_regex.h (compiled_regex): Likewise.
807 * gdbthread.h (scoped_restore_current_thread): Likewise.
808 * inferior.h (scoped_restore_current_inferior): Likewise.
809 * jit.c (jit_reader): Likewise.
810 * linespec.h (struct linespec_result): Likewise.
811 * mi/mi-parse.h (struct mi_parse): Likewise.
812 * nat/fork-inferior.c (execv_argv): Likewise.
813 * progspace.h (scoped_restore_current_program_space): Likewise.
814 * python/python-internal.h (class gdbpy_enter): Likewise.
815 * regcache.h (regcache): Likewise.
816 * target-descriptions.c (struct tdesc_reg): Likewise.
817 (struct tdesc_type): Likewise.
818 (struct tdesc_feature): Likewise.
819 * ui-out.h (ui_out_emit_type): Likewise.
820
821 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
822
823 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
824 label abort_expression.
825
826 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
827
828 * common/buffer.c (buffer_xml_printf): Adjust.
829 * common/xml-utils.c (xml_escape_text): Change return type to
830 std::string, update code accordingly.
831 * common/xml-utils.h (xml_escape_text): Change return type to
832 std::string.
833 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
834 * windows-tdep.c (windows_xfer_shared_library): Adjust.
835 * unittests/xml-utils-selftests.c (test_xml_escape_text):
836 Adjust.
837
838 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
839
840 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
841 (SUBDIR_UNITTESTS_OBS): Add new object file.
842 * unittests/xml-utils-selftests.c: New file.
843
844 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
845
846 * common/selftest.h (selftest): New struct/interface.
847 (register_test): Add name parameter, add new overload.
848 (run_tests): Add filter parameter.
849 (for_each_selftest_ftype): New typedef.
850 (for_each_selftest): New declaration.
851 * common/selftest.c (tests): Change type to
852 map<string, unique_ptr<selftest>>.
853 (simple_selftest): New struct.
854 (register_test): New function.
855 (register_test): Add name parameter and use it.
856 (run_tests): Add filter parameter and use it. Add prints.
857 Adjust to vector -> map change.
858 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
859 registering selftests.
860 * arm-tdep.c (_initialize_arm_tdep): Likewise.
861 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
862 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
863 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
864 * findvar.c (_initialize_findvar): Likewise.
865 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
866 * maint.c (maintenance_selftest): Update call to run_tests.
867 (maintenance_info_selftests): New function.
868 (_initialize_maint_cmds): Register "maintenance info selftests"
869 command. Update "maintenance selftest" doc.
870 * regcache.c (_initialize_regcache): Add names when registering
871 selftests.
872 * rust-exp.y (_initialize_rust_exp): Likewise.
873 * selftest-arch.c (gdbarch_selftest): New struct.
874 (gdbarch_tests): Remove.
875 (register_test_foreach_arch): Add name parameter. Call
876 register_test.
877 (tests_with_arch): Remove, move most content to
878 gdbarch_selftest::operator().
879 (_initialize_selftests_foreach_arch): Remove.
880 * selftest-arch.h (register_test_foreach_arch): Add name
881 parameter.
882 (run_tests_with_arch): New declaration.
883 * utils-selftests.c (_initialize_utils_selftests): Add names
884 when registering selftests.
885 * utils.c (_initialize_utils): Likewise.
886 * unittests/array-view-selftests.c
887 (_initialize_array_view_selftests): Likewise.
888 * unittests/environ-selftests.c (_initialize_environ_selftests):
889 Likewise.
890 * unittests/function-view-selftests.c
891 (_initialize_function_view_selftests): Likewise.
892 * unittests/offset-type-selftests.c
893 (_initialize_offset_type_selftests): Likewise.
894 * unittests/optional-selftests.c
895 (_initialize_optional_selftests): Likewise.
896 * unittests/scoped_restore-selftests.c
897 (_initialize_scoped_restore_selftests): Likewise.
898 * NEWS: Document "maintenance selftest" and "maint info
899 selftests".
900
901 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
902
903 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
904 scoped_restore.
905
906 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
907
908 * mi/mi-main.c (mi_load_progress): Make uiout variable
909 a unique_ptr.
910
911 2017-09-15 Pedro Alves <palves@redhat.com>
912
913 * compile/compile-c-types.c (convert_enum, convert_int)
914 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
915
916 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
917
918 * dwarf2read.c (copy_string): Remove.
919 (parse_macro_definition): Replace copy_string with savestring.
920
921 2017-09-15 Yao Qi <yao.qi@linaro.org>
922
923 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
924 gdb_target_obs.
925 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
926 Likewise.
927 (i[34567]86-*-linux*): Likewise.
928
929 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
930
931 * dwarf2expr.h (dwarf_stack_value): Add constructor.
932 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
933 <stack>: Change type to std::vector.
934 <stack_len, stack_allocated>: Remove.
935 <grow_stack>: Remove.
936 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
937 (dwarf_expr_context::~dwarf_expr_context): Remove.
938 (dwarf_expr_context::grow_stack): Remove.
939 (dwarf_expr_context::push): Adjust.
940 (dwarf_expr_context::pop): Adjust.
941 (dwarf_expr_context::fetch): Adjust.
942 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
943 (dwarf_expr_context::stack_empty_p): Adjust.
944 (dwarf_expr_context::execute_stack_op): Adjust.
945
946 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
947
948 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
949 return type to bool.
950 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
951
952 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
953
954 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
955 Change type to bool.
956 (dwarf_stack_value) <in_stack_memory>: Likewise.
957 (dwarf_expr_context) <push_address>: Change parameter type to
958 bool.
959 <fetch_in_stack_memory>: Change return type to bool.
960 <push>: Change parameter type to bool.
961 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
962 to bool.
963 (dwarf_expr_context::push_address): Likewise.
964 (dwarf_expr_context::fetch_in_stack_memory): Change return type
965 to bool.
966 (dwarf_expr_context::execute_stack_op): Adjust.
967 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
968
969 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
970
971 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
972 (struct dwarf_expr_context) <n_pieces>: Remove.
973 <pieces>: Change type to std::vector.
974 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
975 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
976 pieces.
977 (dwarf_expr_context::add_piece): Adjust.
978 * dwarf2loc.c (struct piece_closure): Initialize fields.
979 <n_pieces>: Remove.
980 <pieces>: Change type to std::vector.
981 (allocate_piece_closure): Adjust, change parameter to
982 std::vector rvalue and std::move it to piece_closure.
983 (rw_pieced_value): Adjust.
984 (check_pieced_synthetic_pointer): Adjust.
985 (indirect_synthetic_pointer): Adjust.
986 (coerce_pieced_ref): Adjust.
987 (free_pieced_value_closure): Adjust. Use delete to free
988 piece_closure.
989 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
990 to allocate_piece_closure.
991 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
992
993 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
994
995 * probe.h (probe_ops_cp): Remove typedef.
996 (DEF_VEC_P (probe_ops_cp)): Remove.
997 (all_probe_ops): Change type to std::vector.
998 * probe.c (info_probes_for_ops): Adjust to vector change.
999 (probe_linespec_to_ops): Likewise.
1000 (all_probe_ops): Change type to std::vector.
1001 (_initialize_probe): Adjust to vector change.
1002 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1003 * elfread.c (elf_get_probes): Likewise.
1004 * stap-probe.c (_initialize_stap_probe): Likewise.
1005
1006 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1007
1008 * probe.h (struct bound_probe): Define constructors.
1009 * probe.c (bound_probe_s): Remove typedef.
1010 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1011 (collect_probes): Change return type to std::vector, remove
1012 cleanup.
1013 (compare_probes): Return bool, change parameter type. Change
1014 semantic to "less than".
1015 (gen_ui_out_table_header_info): Change parameter to std::vector
1016 and update.
1017 (exists_probe_with_pops): Likewise.
1018 (info_probes_for_ops): Update to std::vector change.
1019 (enable_probes_command): Likewise.
1020 (disable_probes_command): Likewise.
1021
1022 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1023
1024 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1025 vec to std::vector.
1026 * probe.c (parse_probes_in_pspace): Update.
1027 (find_probes_in_objfile): Update.
1028 (find_probe_by_pc): Update.
1029 (collect_probes): Update.
1030 (probe_any_get_probes): Update.
1031 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1032 return type to reference to std::vector.
1033 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1034 std::vector and update.
1035 (dtrace_process_dof): Likewise.
1036 (dtrace_get_probes): Likewise.
1037 * elfread.c (elf_get_probes): Change return type to std::vector,
1038 store an std::vector in bfd_data.
1039 (probe_key_free): Update to std::vector.
1040 * stap-probe.c (handle_stap_probe): Change parameter to
1041 std::vector and update.
1042 (stap_get_probes): Likewise.
1043 * symfile-debug.c (debug_sym_get_probes): Change return type to
1044 std::vector and update.
1045
1046 2017-09-11 Tom Tromey <tom@tromey.com>
1047
1048 * breakpoint.c (program_breakpoint_here_p): Update.
1049 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1050 from make_show_memory_breakpoints_cleanup. Return a
1051 scoped_restore_tmpl<int>.
1052 (restore_show_memory_breakpoints): Remove.
1053 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1054 * mem-break.c (memory_validate_breakpoint): Update.
1055 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1056 (ia64_memory_remove_breakpoint): Update.
1057 (ia64_breakpoint_from_pc): Update.
1058 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1059 from make_show_memory_breakpoints_cleanup.
1060
1061 2017-09-11 Tom Tromey <tom@tromey.com>
1062
1063 * d-namespace.c (d_lookup_symbol): Use std::string.
1064 (find_symbol_in_baseclass): Likewise.
1065
1066 2017-09-11 Tom Tromey <tom@tromey.com>
1067
1068 * ctf.c (ctf_start): Use std::string.
1069
1070 2017-09-11 Tom Tromey <tom@tromey.com>
1071
1072 * ada-lang.c (is_known_support_routine): Update.
1073 (ada_unhandled_exception_name_addr_from_raise): Update.
1074 * guile/scm-frame.c (gdbscm_frame_name): Update.
1075 * python/py-frame.c (frapy_name): Update.
1076 (frapy_function): Update.
1077 * stack.h (find_frame_funname): Update.
1078 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1079 (print_frame): Update.
1080
1081 2017-09-11 Tom Tromey <tom@tromey.com>
1082
1083 * findcmd.c (put_bits): Take a gdb::byte_vector.
1084 (parse_find_args): Return gdb::byte_vector. "args" now const.
1085 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1086 cleanups.
1087 (find_command): Update.
1088
1089 2017-09-11 Tom Tromey <tom@tromey.com>
1090
1091 * cli/cli-script.c (class scoped_restore_hook_in): New.
1092 (clear_hook_in_cleanup): Remove.
1093 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1094 scoped_restore_hook_in.
1095
1096 2017-09-11 Tom Tromey <tom@tromey.com>
1097
1098 * cli/cli-script.c (restore_interp): Remove.
1099 (read_command_lines): Use scoped_restore_interp.
1100 * interps.c (scoped_restore_interp::set_temp): Rename from
1101 interp_set_temp.
1102 * interps.h (class scoped_restore_interp): New.
1103 (interp_set_temp): Remove.
1104
1105 2017-09-11 Tom Tromey <tom@tromey.com>
1106
1107 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1108 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1109 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1110 scoped_restore.
1111 (mi_cmd_break_insert_1): Update.
1112 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1113 scoped_restore.
1114
1115 2017-09-11 Tom Tromey <tom@tromey.com>
1116
1117 * demangle.c (demangle_command): Update.
1118 * breakpoint.c (disable_command): Update.
1119 (enable_command): Update.
1120 (find_location_by_number): Make "number" const. Use
1121 get_number_trailer.
1122 * cli/cli-utils.c (extract_arg): Return std::string.
1123 * probe.c (parse_probe_linespec): Update. Change types.
1124 (collect_probes): Take string arguments.
1125 (parse_probe_linespec): Likewise.
1126 (info_probes_for_ops): Update.
1127 (enable_probes_command): Update.
1128 (disable_probes_command): Update.
1129 * break-catch-sig.c (catch_signal_split_args): Update.
1130 * mi/mi-parse.c (mi_parse): Update.
1131
1132 2017-09-11 Tom Tromey <tom@tromey.com>
1133
1134 * language.h (language_enum): Make argument const.
1135 * language.c (language_enum): Make argument const.
1136
1137 2017-09-11 Tom Tromey <tom@tromey.com>
1138
1139 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1140 as function.
1141 (skip_to_space): Rename from skip_to_space_const.
1142 * common/common-utils.c (skip_to_space): New function.
1143 (skip_to_space): Rename from skip_to_space_const.
1144 * cli/cli-utils.h (get_number): Rename from get_number_const.
1145 (extract_arg): Rename from extract_arg_const.
1146 * cli/cli-utils.c (get_number): Rename from get_number_const.
1147 (extract_arg): Rename from extract_arg_const.
1148 (number_or_range_parser::get_number): Use ::get_number.
1149 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1150 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1151 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1152 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1153 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1154 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1155 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1156 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1157
1158 2017-09-11 Tom Tromey <tom@tromey.com>
1159
1160 * python/python.c (do_start_initialization): Use
1161 py-event-types.def to initialize types.
1162 Define all object type structures.
1163 * python/python-internal.h: Don't declare event initialization
1164 functions.
1165 * python/py-threadevent.c (thread_event_object_type): Don't
1166 define.
1167 * python/py-stopevent.c (stop_event_object_type): Don't define.
1168 * python/py-signalevent.c (signal_event_object_type): Don't
1169 declare or define.
1170 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1171 (clear_objfiles_event_object_type): Don't declare or define.
1172 * python/py-infevents.c (inferior_call_pre_event_object_type)
1173 (inferior_call_post_event_object_type)
1174 (register_changed_event_object_type)
1175 (memory_changed_event_object_type): Don't declare or define.
1176 * python/py-inferior.c (new_thread_event_object_type)
1177 (new_inferior_event_object_type)
1178 (inferior_deleted_event_object_type): Don't declare or define.
1179 * python/py-exitedevent.c (exited_event_object_type): Don't
1180 declare or define.
1181 * python/py-evts.c (gdbpy_initialize_py_events): Use
1182 py-all-events.def.
1183 * python/py-events.h (thread_event_object_type): Don't declare.
1184 (events_object): Use py-all-events.def.
1185 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1186 py-event-types.def.
1187 * python/py-event-types.def: New file.
1188 * python/py-continueevent.c (create_continue_event_object): Don't
1189 declare or define.
1190 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1191 declare or define.
1192 * python/py-all-events.def: New file.
1193
1194 2017-09-11 Tom Tromey <tom@tromey.com>
1195
1196 * python/py-threadevent.c (create_thread_event_object): Return
1197 gdbpy_ref.
1198 * python/py-stopevent.h (create_stop_event_object)
1199 (create_breakpoint_event_object, create_signal_event_object):
1200 Update.
1201 * python/py-stopevent.c (create_stop_event_object): Return
1202 gdbpy_ref.
1203 (emit_stop_event): Update.
1204 * python/py-signalevent.c (create_signal_event_object): Return
1205 gdbpy_ref.
1206 * python/py-infevents.c (create_inferior_call_event_object):
1207 Update.
1208 * python/py-event.h (create_event_object)
1209 (create_thread_event_object): Update.
1210 * python/py-event.c (create_event_object): Return gdbpy_ref.
1211 * python/py-continueevent.c: Return gdbpy_ref.
1212 * python/py-bpevent.c (create_breakpoint_event_object): Return
1213 gdbpy_ref.
1214
1215 2017-09-11 Tom Tromey <tom@tromey.com>
1216
1217 PR python/15622:
1218 * NEWS: Add entry.
1219 * python/python.c (do_start_initialization): Initialize new event
1220 types.
1221 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1222 (gdbpy_initialize_inferior_deleted_event)
1223 (gdbpy_initialize_new_thread_event): Declare.
1224 * python/py-threadevent.c (create_thread_event_object): Add option
1225 "thread" parameter.
1226 * python/py-inferior.c (new_thread_event_object_type)
1227 (new_inferior_event_object_type)
1228 (inferior_deleted_event_object_type): Declare.
1229 (python_new_inferior, python_inferior_deleted): New functions.
1230 (add_thread_object): Emit new_thread event.
1231 (gdbpy_initialize_inferior): Attach new functions to corresponding
1232 observers.
1233 (new_thread, new_inferior, inferior_deleted): Define new event
1234 types.
1235 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1236 registries.
1237 * python/py-events.h (events_object) <new_inferior,
1238 inferior_deleted, new_thread>: New fields.
1239 * python/py-event.h (create_thread_event_breakpoint): Add optional
1240 "thread" parameter.
1241
1242 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1245 check current_ui instead.
1246 (internal_vproblem): Likewise.
1247
1248 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1249
1250 * thread.c (print_thread_info_1): Remove unnecessary calls to
1251 uiout->is_mi_like_p.
1252
1253 2017-09-09 Tom Tromey <tom@tromey.com>
1254
1255 * namespace.h (add_using_directive): Update.
1256 * namespace.c (add_using_directive): Change type of excludes to
1257 std::vector.
1258 * dwarf2read.c (read_import_statement): Use std::vector.
1259 (read_namespace): Update.
1260 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1261
1262 2017-09-09 Tom Tromey <tom@tromey.com>
1263
1264 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1265
1266 2017-09-09 Tom Tromey <tom@tromey.com>
1267
1268 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1269
1270 2017-09-09 Tom Tromey <tom@tromey.com>
1271
1272 * stack.c (func_command): Use gdb::def_vector.
1273
1274 2017-09-09 Tom Tromey <tom@tromey.com>
1275
1276 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1277 ui_out_emit_list, ui_out_emit_tuple.
1278 (mi_cmd_var_update): Likewise.
1279
1280 2017-09-09 Tom Tromey <tom@tromey.com>
1281
1282 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1283 ui_out_redirect_pop.
1284 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1285 ui_out_redirect_pop.
1286 * utils.c (do_ui_out_redirect_pop)
1287 (make_cleanup_ui_out_redirect_pop): Remove.
1288 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1289 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1290 * ui-out.h (ui_out_redirect_pop): New class.
1291
1292 2017-09-09 Tom Tromey <tom@tromey.com>
1293
1294 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1295 (list_available_thread_groups, mi_cmd_list_thread_groups)
1296 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1297 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1298 Likewise.
1299
1300 2017-09-09 Tom Tromey <tom@tromey.com>
1301
1302 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1303 ui_out_emit_tuple.
1304
1305 2017-09-09 Tom Tromey <tom@tromey.com>
1306
1307 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1308 * stack.c (print_frame): Use ui_out_emit_tuple.
1309 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1310 (info_spu_mailbox_command, info_spu_dma_command)
1311 (info_spu_proxydma_command): Likewise.
1312 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1313 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1314 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1315 ui_out_emit_tuple.
1316 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1317
1318 2017-09-09 Tom Tromey <tom@tromey.com>
1319
1320 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1321 (class ui_out_emit_table): Update comment.
1322 * ui-out.c (do_cleanup_table_end)
1323 (make_cleanup_ui_out_table_begin_end): Remove.
1324 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1325 (info_spu_dma_cmdlist): Likewise.
1326 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1327 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1328 ui_out_emit_table.
1329
1330 2017-09-09 Tom Tromey <tom@tromey.com>
1331
1332 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1333 ui_out_emit_list, gdb::optional.
1334
1335 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1336
1337 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1338 prototype.
1339 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1340 prototype.
1341 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1342 prototype.
1343 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1344 * ada-exp.y: Remove _initialize_ada_exp prototype.
1345 * ada-lang.c: Remove _initialize_ada_language prototype.
1346 * ada-tasks.c: Remove _initialize_tasks prototype.
1347 * addrmap.c: Remove _initialize_addrmap prototype.
1348 * agent.c: Remove _initialize_agent prototype.
1349 * aix-thread.c: Remove _initialize_aix_thread prototype.
1350 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1351 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1352 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1353 prototype.
1354 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1355 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1356 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1357 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1358 prototype.
1359 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1360 prototype.
1361 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1362 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1363 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1364 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1365 prototype.
1366 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1367 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1368 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1369 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1370 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1371 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1372 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1373 prototype.
1374 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1375 prototype.
1376 * annotate.c: Remove _initialize_annotate prototype.
1377 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1378 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1379 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1380 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1381 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1382 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1383 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1384 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1385 prototype.
1386 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1387 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1388 * auto-load.c: Remove _initialize_auto_load prototype.
1389 * auxv.c: Remove _initialize_auxv prototype.
1390 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1391 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1392 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1393 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1394 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1395 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1396 prototype.
1397 * break-catch-throw.c: Remove _initialize_break_catch_throw
1398 prototype.
1399 * breakpoint.c: Remove _initialize_breakpoint prototype.
1400 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1401 * btrace.c: Remove _initialize_btrace prototype.
1402 * charset.c: Remove _initialize_charset prototype.
1403 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1404 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1405 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1406 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1407 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1408 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1409 * coffread.c: Remove _initialize_coffread prototype.
1410 * compile/compile.c: Remove _initialize_compile prototype.
1411 * complaints.c: Remove _initialize_complaints prototype.
1412 * completer.c: Remove _initialize_completer prototype.
1413 * copying.awk: Remove _initialize_copying prototype.
1414 * copying.c: Regenerate.
1415 * core-regset.c: Remove _initialize_core_regset prototype.
1416 * corefile.c: Remove _initialize_core prototype.
1417 * corelow.c: Remove _initialize_corelow prototype.
1418 * cp-abi.c: Remove _initialize_cp_abi prototype.
1419 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1420 * cp-support.c: Remove _initialize_cp_support prototype.
1421 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1422 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1423 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1424 * ctf.c: Remove _initialize_ctf prototype.
1425 * d-lang.c: Remove _initialize_d_language prototype.
1426 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1427 prototype.
1428 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1429 * dbxread.c: Remove _initialize_dbxread prototype.
1430 * dcache.c: Remove _initialize_dcache prototype.
1431 * demangle.c: Remove _initialize_demangler prototype.
1432 * disasm-selftests.c: Remove _initialize_disasm_selftests
1433 prototype.
1434 * disasm.c: Remove _initialize_disasm prototype.
1435 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1436 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1437 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1438 prototype.
1439 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1440 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1441 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1442 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1443 * elfread.c: Remove _initialize_elfread prototype.
1444 * exec.c: Remove _initialize_exec prototype.
1445 * extension.c: Remove _initialize_extension prototype.
1446 * f-lang.c: Remove _initialize_f_language prototype.
1447 * f-valprint.c: Remove _initialize_f_valprint prototype.
1448 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1449 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1450 * filesystem.c: Remove _initialize_filesystem prototype.
1451 * findcmd.c: Remove _initialize_mem_search prototype.
1452 * fork-child.c: Remove _initialize_fork_child prototype.
1453 * frame-base.c: Remove _initialize_frame_base prototype.
1454 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1455 * frame.c: Remove _initialize_frame prototype.
1456 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1457 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1458 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1459 * gcore.c: Remove _initialize_gcore prototype.
1460 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1461 * gdbarch.c: Regenerate.
1462 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1463 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1464 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1465 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1466 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1467 * go-lang.c: Remove _initialize_go_language prototype.
1468 * go32-nat.c: Remove _initialize_go32_nat prototype.
1469 * guile/guile.c: Remove _initialize_guile prototype.
1470 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1471 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1472 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1473 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1474 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1475 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1476 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1477 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1478 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1479 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1480 prototype.
1481 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1482 prototype.
1483 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1484 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1485 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1486 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1487 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1488 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1489 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1490 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1491 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1492 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1493 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1494 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1495 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1496 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1497 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1498 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1499 prototype.
1500 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1501 prototype.
1502 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1503 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1504 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1505 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1506 * infcall.c: Remove _initialize_infcall prototype.
1507 * infcmd.c: Remove _initialize_infcmd prototype.
1508 * inferior.c: Remove _initialize_inferiors prototype.
1509 * inflow.c: Remove _initialize_inflow prototype.
1510 * infrun.c: Remove _initialize_infrun prototype.
1511 * interps.c: Remove _initialize_interpreter prototype.
1512 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1513 * jit.c: Remove _initialize_jit prototype.
1514 * language.c: Remove _initialize_language prototype.
1515 * linux-fork.c: Remove _initialize_linux_fork prototype.
1516 * linux-nat.c: Remove _initialize_linux_nat prototype.
1517 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1518 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1519 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1520 * m2-lang.c: Remove _initialize_m2_language prototype.
1521 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1522 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1523 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1524 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1525 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1526 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1527 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1528 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1529 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1530 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1531 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1532 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1533 * machoread.c: Remove _initialize_machoread prototype.
1534 * macrocmd.c: Remove _initialize_macrocmd prototype.
1535 * macroscope.c: Remove _initialize_macroscope prototype.
1536 * maint.c: Remove _initialize_maint_cmds prototype.
1537 * mdebugread.c: Remove _initialize_mdebugread prototype.
1538 * memattr.c: Remove _initialize_mem prototype.
1539 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1540 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1541 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1542 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1543 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1544 * microblaze-linux-tdep.c: Remove
1545 _initialize_microblaze_linux_tdep prototype.
1546 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1547 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1548 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1549 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1550 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1551 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1552 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1553 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1554 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1555 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1556 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1557 prototype.
1558 * mipsread.c: Remove _initialize_mipsread prototype.
1559 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1560 prototype.
1561 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1562 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1563 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1564 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1565 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1566 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1567 prototype.
1568 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1569 * nto-procfs.c: Remove _initialize_procfs prototype.
1570 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1571 * objc-lang.c: Remove _initialize_objc_language prototype.
1572 * objfiles.c: Remove _initialize_objfiles prototype.
1573 * observer.c: Remove observer_test_first_notification_function,
1574 observer_test_second_notification_function,
1575 observer_test_third_notification_function, and
1576 _initialize_observer prototypes.
1577 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1578 * osabi.c: Remove _initialize_gdb_osabi prototype.
1579 * osdata.c: Remove _initialize_osdata prototype.
1580 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1581 * parse.c: Remove _initialize_parse prototype.
1582 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1583 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1584 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1585 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1586 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1587 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1588 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1589 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1590 * printcmd.c: Remove _initialize_printcmd prototype.
1591 * probe.c: Remove _initialize_probe prototype.
1592 * proc-api.c: Remove _initialize_proc_api prototype.
1593 * proc-events.c: Remove _initialize_proc_events prototype.
1594 * proc-service.c: Remove _initialize_proc_service prototype.
1595 * procfs.c: Remove _initialize_procfs prototype.
1596 * psymtab.c: Remove _initialize_psymtab prototype.
1597 * python/python.c: Remove _initialize_python prototype.
1598 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1599 * record-btrace.c: Remove _initialize_record_btrace prototype.
1600 * record-full.c: Remove _initialize_record_full prototype.
1601 * record.c: Remove _initialize_record prototype.
1602 * regcache.c: Remove _initialize_regcache prototype.
1603 * reggroups.c: Remove _initialize_reggroup prototype.
1604 * remote-notif.c: Remove _initialize_notif prototype.
1605 * remote-sim.c: Remove _initialize_remote_sim prototype.
1606 * remote.c: Remove _initialize_remote prototype.
1607 * reverse.c: Remove _initialize_reverse prototype.
1608 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1609 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1610 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1611 prototype.
1612 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1613 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1614 * rust-exp.y: Remove _initialize_rust_exp prototype.
1615 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1616 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1617 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1618 * score-tdep.c: Remove _initialize_score_tdep prototype.
1619 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1620 prototype.
1621 * ser-go32.c: Remove _initialize_ser_dos prototype.
1622 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1623 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1624 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1625 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1626 * serial.c: Remove _initialize_serial prototype.
1627 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1628 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1629 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1630 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1631 * skip.c: Remove _initialize_step_skip prototype.
1632 * sol-thread.c: Remove _initialize_sol_thread prototype.
1633 * solib-aix.c: Remove _initialize_solib_aix prototype.
1634 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1635 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1636 * solib-frv.c: Remove _initialize_frv_solib prototype.
1637 * solib-spu.c: Remove _initialize_spu_solib prototype.
1638 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1639 * solib-target.c: Remove _initialize_solib_target prototype.
1640 * solib.c: Remove _initialize_solib prototype.
1641 * source.c: Remove _initialize_source prototype.
1642 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1643 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1644 prototype.
1645 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1646 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1647 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1648 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1649 prototype.
1650 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1651 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1652 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1653 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1654 prototype.
1655 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1656 prototype.
1657 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1658 prototype.
1659 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1660 prototype.
1661 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1662 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1663 prototype.
1664 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1665 prototype.
1666 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1667 prototype.
1668 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1669 prototype.
1670 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1671 prototype.
1672 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1673 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1674 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1675 * stabsread.c: Remove _initialize_stabsread prototype.
1676 * stack.c: Remove _initialize_stack prototype.
1677 * stap-probe.c: Remove _initialize_stap_probe prototype.
1678 * std-regs.c: Remove _initialize_frame_reg prototype.
1679 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1680 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1681 * symfile.c: Remove _initialize_symfile prototype.
1682 * symmisc.c: Remove _initialize_symmisc prototype.
1683 * symtab.c: Remove _initialize_symtab prototype.
1684 * target-dcache.c: Remove _initialize_target_dcache prototype.
1685 * target-descriptions.c: Remove _initialize_target_descriptions
1686 prototype.
1687 * thread.c: Remove _initialize_thread prototype.
1688 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1689 prototype.
1690 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1691 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1692 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1693 prototype.
1694 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1695 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1696 * tracefile.c: Remove _initialize_tracefile prototype.
1697 * tracepoint.c: Remove _initialize_tracepoint prototype.
1698 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1699 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1700 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1701 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1702 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1703 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1704 * tui/tui.c: Remove _initialize_tui prototype.
1705 * typeprint.c: Remove _initialize_typeprint prototype.
1706 * user-regs.c: Remove _initialize_user_regs prototype.
1707 * utils.c: Remove _initialize_utils prototype.
1708 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1709 * valarith.c: Remove _initialize_valarith prototype.
1710 * valops.c: Remove _initialize_valops prototype.
1711 * valprint.c: Remove _initialize_valprint prototype.
1712 * value.c: Remove _initialize_values prototype.
1713 * varobj.c: Remove _initialize_varobj prototype.
1714 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1715 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1716 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1717 * windows-nat.c: Remove _initialize_windows_nat,
1718 _initialize_check_for_gdb_ini, and _initialize_loadable
1719 prototypes.
1720 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1721 * xcoffread.c: Remove _initialize_xcoffread prototype.
1722 * xml-support.c: Remove _initialize_xml_support prototype.
1723 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1724 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1725 prototype.
1726 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1727 prototype.
1728 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1729
1730 2017-09-08 Keith Seitz <keiths@redhat.com>
1731
1732 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1733 field.
1734
1735 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1736
1737 * f-valprint.c (f_val_print): Remove check for one byte
1738 sized integers. Remove printing of character type.
1739
1740 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1741 Christoph Weinmann <christoph.t.weinmann@intel.com>
1742 Bernhard Heckel <bernhard.heckel@intel.com>
1743
1744 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1745 to maintain proper indentation when printing pointers/refs.
1746
1747 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1748
1749 GDB 8.0.1 released.
1750
1751 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1752
1753 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1754
1755 2017-09-05 Tom Tromey <tom@tromey.com>
1756
1757 * parse.c (funcall_chain): Now a std::vector.
1758 (start_arglist, end_arglist): Simplify.
1759 (free_funcalls): Remove.
1760 (parse_exp_in_context_1): Remove cleanup.
1761
1762 2017-09-05 Tom Tromey <tom@tromey.com>
1763
1764 * go-exp.y (go_parse): Don't create a cleanup.
1765
1766 2017-09-05 Tom Tromey <tom@tromey.com>
1767
1768 * d-exp.y (PrimaryExpression): Use std::string.
1769 (d_parse): Don't create a cleanup.
1770
1771 2017-09-05 Tom Tromey <tom@tromey.com>
1772
1773 * utils.c (do_clear_parser_state): Remove.
1774 (make_cleanup_clear_parser_state): Remove.
1775 * p-exp.y (pascal_parse): Use scoped_restore.
1776 * m2-exp.y (m2_parse): Use scoped_restore.
1777 * f-exp.y (f_parse): Use scoped_restore.
1778 * d-exp.y (d_parse): Use scoped_restore.
1779 * c-exp.y (c_parse): Use scoped_restore.
1780 * ada-exp.y (ada_parse): Use scoped_restore.
1781 * utils.h (make_cleanup_clear_parser_state): Remove.
1782
1783 2017-09-06 Keith Seitz <keiths@redhat.com>
1784
1785 * dwarf2read.c (dw2_linkage_name_attr): New function.
1786 (dw2_linkage_name): New function.
1787 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1788 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1789 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1790
1791 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1792
1793 * config/djgpp/djconfig.sh: Correct shell portability issue.
1794
1795 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1796
1797 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1798
1799 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1800
1801 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1802 * NEWS: Mention new FreeBSD/mips native configuration.
1803 * configure.host: Add aarch64*-*-freebsd*.
1804 * configure.nat: Likewise.
1805 * aarch64-fbsd-nat.c: New file.
1806
1807 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1808
1809 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1810 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1811 * NEWS: Mention new FreeBSD/aarch64 target.
1812 * configure.tgt: Add aarch64*-*-freebsd*.
1813 * aarch64-fbsd-tdep.c: New file.
1814 * aarch64-fbsd-tdep.h: New file.
1815
1816 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1817
1818 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1819
1820 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1823 of TLS symbols.
1824
1825 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1826
1827 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1828 call.
1829
1830 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1831
1832 * infrun.c (follow_exec): Call add_thread after
1833 target_find_description.
1834
1835 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1836
1837 * infrun.c (handle_inferior_event_1): When exec'ing, read
1838 stop_pc after follow_exec.
1839
1840 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1841
1842 * remote.c (process_g_packet): Update error message.
1843
1844 2017-09-05 Yao Qi <yao.qi@linaro.org>
1845
1846 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1847 targets.
1848
1849 2017-09-05 Pedro Alves <palves@redhat.com>
1850
1851 * eval.c (eval_call, evaluate_funcall): New functions, factored
1852 out from ...
1853 (evaluate_subexp_standard): ... this.
1854
1855 2017-09-05 Yao Qi <yao.qi@linaro.org>
1856
1857 * amd64-tdep.c (amd64_target_description): Create target
1858 descriptions.
1859 (_initialize_amd64_tdep): Don't call functions
1860 initialize_tdesc_amd64_*. Add self tests.
1861 * arch/amd64.c (amd64_create_target_description): Add parameter
1862 is_linux. Call set_tdesc_osabi if is_linux is true.
1863 * arch/amd64.h (amd64_create_target_description): Update the
1864 declaration.
1865 * arch/i386.c (i386_create_target_description): Add parameter
1866 is_linux. Call set_tdesc_osabi if is_linux is true.
1867 * arch/i386.h (i386_create_target_description): Update
1868 declaration.
1869 * configure.tgt: Add i386.o to gdb_target_obs.
1870 * features/Makefile (XMLTOC): Remove i386/*.xml.
1871 * features/i386/amd64-avx-avx512.c: Remove.
1872 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1873 * features/i386/amd64-avx-mpx.c: Remove.
1874 * features/i386/amd64-avx.c: Remove.
1875 * features/i386/amd64-mpx.c: Remove.
1876 * features/i386/amd64.c: Remove.
1877 * features/i386/i386-avx-avx512.c: Remove.
1878 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1879 * features/i386/i386-avx-mpx.c: Remove.
1880 * features/i386/i386-avx.c: Remove.
1881 * features/i386/i386-mmx.c: Remove.
1882 * features/i386/i386-mpx.c: Remove.
1883 * features/i386/i386.c: Remove.
1884 * i386-tdep.c: Don't include features/i386/i386*.c., include
1885 target-descriptions.h and arch/i386.h.
1886 (i386_target_description): Create target descriptions.
1887 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1888 functions. Do self tests.
1889
1890 2017-09-05 Yao Qi <yao.qi@linaro.org>
1891
1892 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1893 * features/i386/amd64-avx-avx512-linux.c: Removed.
1894 * features/i386/amd64-avx-linux.c: Removed.
1895 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1896 * features/i386/amd64-avx-mpx-linux.c: Removed.
1897 * features/i386/amd64-linux.c: Removed.
1898 * features/i386/amd64-mpx-linux.c: Removed.
1899 * features/i386/x32-avx-avx512-linux.c: Removed.
1900 * features/i386/x32-avx-linux.c: Removed.
1901 * features/i386/x32-linux.c: Removed.
1902
1903 2017-09-05 Yao Qi <yao.qi@linaro.org>
1904
1905 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1906 features/i386/*.c.
1907 (amd64_linux_read_description): Call
1908 amd64_create_target_description.
1909 * arch/amd64.c: New file.
1910 * arch/amd64.h: New file.
1911 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1912 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1913
1914 2017-09-05 Yao Qi <yao.qi@linaro.org>
1915
1916 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1917 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1918 (amd64_linux_read_description): Create target descriptions.
1919 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1920 functions. Add unit tests.
1921 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1922 x32-core.xml.
1923 * features/i386/64bit-avx.c: Generated.
1924 * features/i386/64bit-avx512.c: Generated.
1925 * features/i386/64bit-core.c: Generated.
1926 * features/i386/64bit-linux.c: Generated.
1927 * features/i386/64bit-mpx.c: Generated.
1928 * features/i386/64bit-pkeys.c: Generated.
1929 * features/i386/64bit-segments.c: Generated.
1930 * features/i386/64bit-sse.c: Generated.
1931 * features/i386/x32-core.c: Generated.
1932 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1933 c files for amd64-linux and x32-linux.
1934
1935 2017-09-05 Yao Qi <yao.qi@linaro.org>
1936
1937 * amd64-linux-tdep.c (amd64_linux_read_description): New
1938 function.
1939 (amd64_linux_core_read_description): Call
1940 amd64_linux_read_description.
1941 (amd64_linux_init_abi): Likewise.
1942 (amd64_x32_linux_init_abi): Likewise.
1943 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1944 * x86-linux-nat.c (x86_linux_read_description): Call
1945 amd64_linux_read_description.
1946
1947 2017-09-05 Yao Qi <yao.qi@linaro.org>
1948
1949 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1950 comments.
1951
1952 2017-09-05 Yao Qi <yao.qi@linaro.org>
1953
1954 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1955 * features/i386/i386-avx-avx512-linux.c: Remove.
1956 * features/i386/i386-avx-linux.c: Remove.
1957 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1958 * features/i386/i386-avx-mpx-linux.c: Remove.
1959 * features/i386/i386-linux.c: Remove.
1960 * features/i386/i386-mmx-linux.c: Remove.
1961 * features/i386/i386-mpx-linux.c: Remove.
1962
1963 2017-09-05 Yao Qi <yao.qi@linaro.org>
1964
1965 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1966 (SFILES): Add arch/i386.c.
1967 (HFILES_NO_SRCDIR): Add arch/i386.h.
1968 * arch/i386.c: New file.
1969 * arch/i386.h: New file.
1970 * arch/tdesc.h (allocate_target_description): Declare.
1971 (set_tdesc_architecture): Declare.
1972 (set_tdesc_osabi): Declare.
1973 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1974 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1975 include arch/i386.h.
1976 (i386_linux_read_description): Remove code and call
1977 i386_create_target_description.
1978 (set_tdesc_architecture): New function.
1979 (set_tdesc_osabi): New function.
1980 * target-descriptions.h (allocate_target_description): Remove.
1981
1982 2017-09-05 Yao Qi <yao.qi@linaro.org>
1983
1984 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1985 * target-descriptions.c (tdesc_create_feature): Likewise, and
1986 adjust code.
1987 * features/i386/32bit-avx.c: Re-generated.
1988 * features/i386/32bit-avx512.c: Re-generated.
1989 * features/i386/32bit-core.c: Re-generated.
1990 * features/i386/32bit-linux.c: Re-generated.
1991 * features/i386/32bit-mpx.c: Re-generated.
1992 * features/i386/32bit-pkeys.c: Re-generated.
1993 * features/i386/32bit-sse.c: Re-generated.
1994
1995 2017-09-05 Yao Qi <yao.qi@linaro.org>
1996
1997 * regformats/regdef.h (struct reg): Override operator == and !=.
1998
1999 2017-09-05 Yao Qi <yao.qi@linaro.org>
2000
2001 * arch/tdesc.h: New file.
2002 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2003 * target-descriptions.c: Update comments.
2004 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2005 declarations.
2006 * features/i386/32bit-avx.c: Re-generated.
2007 * features/i386/32bit-avx512.c: Re-generated.
2008 * features/i386/32bit-core.c: Re-generated.
2009 * features/i386/32bit-linux.c: Re-generated.
2010 * features/i386/32bit-mpx.c: Re-generated.
2011 * features/i386/32bit-pkeys.c: Re-generated.
2012 * features/i386/32bit-sse.c: Re-generated.
2013
2014 2017-09-05 Yao Qi <yao.qi@linaro.org>
2015
2016 * regformats/regdat.sh: Update generated code.
2017
2018 2017-09-05 Yao Qi <yao.qi@linaro.org>
2019
2020 * regformats/regdat.sh: Adjust code order.
2021
2022 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2023
2024 * expprint.c (dump_subexp_body_standard): Use constant format
2025 string in fprintf_filtered call.
2026
2027 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2028
2029 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2030 NetBSD/i386.
2031 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2032
2033 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2034
2035 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2036
2037 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2038
2039 * bsd-kvm.o: Define _KMEMUSER.
2040 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2041 * configure: Regenerate.
2042
2043 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2044
2045 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2046 * i386-fbsd-nat.c: Likewise.
2047
2048 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2049
2050 * unittests/array-view-selftests.c: Add include of <array>.
2051
2052 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2053
2054 * spu-tdep.c (flush_ea_cache): Add missing argument to
2055 call_function_by_hand.
2056
2057 2017-09-04 Pedro Alves <palves@redhat.com>
2058
2059 * NEWS (Safer support for debugging with no debug info): New.
2060
2061 2017-09-04 Pedro Alves <palves@redhat.com>
2062
2063 * c-exp.y (function_method, function_method_void): Add current
2064 instance flags to TYPE_INSTANCE.
2065 * dwarf2read.c (check_modifier): New.
2066 (compute_delayed_physnames): Assert that only C++ adds delayed
2067 physnames. Mark fn_fields as const/volatile depending on
2068 physname.
2069 * eval.c (make_params): New type_instance_flags parameter. Use
2070 it as the new type's instance flags.
2071 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2072 flags element and pass it to make_params.
2073 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2074 instance flags element.
2075 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2076 * gdbtypes.h: Include "enum-flags.h".
2077 (type_instance_flags): New enum-flags type.
2078 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2079 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2080 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2081 (follow_type_instance_flags): New function.
2082 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2083 * parser-defs.h (follow_type_instance_flags): Declare.
2084 * valops.c (value_struct_elt_for_reference): const/volatile must
2085 match too.
2086
2087 2017-09-04 Pedro Alves <palves@redhat.com>
2088
2089 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2090 function/method scopes; lookup the nested name as a function local
2091 static variable.
2092
2093 2017-09-04 Pedro Alves <palves@redhat.com>
2094
2095 (%type <voidval>): Add function_method.
2096 * c-exp.y (exp): New production for calls with no arguments.
2097 (function_method, function_method_void_or_typelist): New
2098 productions.
2099 (exp): New production for "method()::static_var".
2100 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2101 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2102 Handle OP_FUNC_STATIC_VAR.
2103 * parse.c (operator_length_standard):
2104 Handle OP_FUNC_STATIC_VAR.
2105
2106 2017-09-04 Pedro Alves <palves@redhat.com>
2107
2108 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2109 handling.
2110 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2111 Ditto.
2112 * parse.c (operator_length_standard, operator_check_standard):
2113 Ditto.
2114 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2115
2116 2017-09-04 Pedro Alves <palves@redhat.com>
2117
2118 * ax-gdb.c: Include "typeprint.h".
2119 (gen_expr_for_cast): New function.
2120 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2121 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2122 type is unknown.
2123 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2124 nodebug_data_symbol.
2125 * eval.c: Include "typeprint.h".
2126 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2127 Error out if symbol has unknown type.
2128 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2129 evaluate_subexp_for_cast.
2130 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2131 OP_VAR_MSYM_VALUE.
2132 (evaluate_subexp_for_cast): New function.
2133 * gdbtypes.c (init_nodebug_var_type): New function.
2134 (objfile_type): Use it to initialize types of variables with no
2135 debug info.
2136 * typeprint.c (error_unknown_type): New.
2137 * typeprint.h (error_unknown_type): New declaration.
2138 * compile/compile-c-types.c (convert_type_basic): Handle
2139 TYPE_CODE_ERROR; warn and fallback to int for variables with
2140 unknown type.
2141
2142 2017-09-04 Pedro Alves <palves@redhat.com>
2143
2144 * eval.c (evaluate_var_value): New function, factored out from ...
2145 (evaluate_subexp_standard): ... here.
2146
2147 2017-09-04 Pedro Alves <palves@redhat.com>
2148
2149 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2150 Remove useless assignments to 'op'.
2151
2152 2017-09-04 Pedro Alves <palves@redhat.com>
2153
2154 * eval.c (eval_skip_value): New function.
2155 (evaluate_subexp_standard): Use it.
2156
2157 2017-09-04 Pedro Alves <palves@redhat.com>
2158
2159 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2160 function name from symbol/minsym and pass it to
2161 error_call_unknown_return_type.
2162
2163 2017-09-04 Pedro Alves <palves@redhat.com>
2164
2165 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2166 * ax-gdb.c (gen_msym_var_ref): New function.
2167 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2168 * eval.c (evaluate_var_msym_value): New function.
2169 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2170 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2171 to call_function_by_hand.
2172 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2173 Handle OP_VAR_MSYM_VALUE.
2174 (union exp_element) <msymbol>: New field.
2175 * minsyms.h (struct type): Forward declare.
2176 (find_minsym_type_and_address): Declare.
2177 * parse.c (write_exp_elt_msym): New function.
2178 (write_exp_msymbol): Delete, refactored as ...
2179 (find_minsym_type_and_address): ... this new function.
2180 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2181 (operator_length_standard, operator_check_standard): Handle
2182 OP_VAR_MSYM_VALUE.
2183 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2184
2185 2017-09-04 Pedro Alves <palves@redhat.com>
2186
2187 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2188 TYPE_GNU_IFUNC specially here. Throw error if return type is
2189 unknown.
2190 * ada-typeprint.c (print_func_type): Handle functions with unknown
2191 return type.
2192 * c-typeprint.c (c_type_print_base): Handle functions and methods
2193 with unknown return type.
2194 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2195 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2196 * compile/compile-c-types.c: Include "objfiles.h".
2197 (convert_func): For functions with unknown return type, warn and
2198 default to int.
2199 * compile/compile-object-run.c (compile_object_run): Adjust call
2200 to call_function_by_hand_dummy.
2201 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2202 call_function_by_hand.
2203 * eval.c (evaluate_subexp_standard): Adjust calls to
2204 call_function_by_hand. Handle functions and methods with unknown
2205 return type. Pass expect_type to call_function_by_hand.
2206 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2207 return type.
2208 * gcore.c (call_target_sbrk): Adjust call to
2209 call_function_by_hand.
2210 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2211 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2212 an integer address type instead of nodebug.
2213 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2214 call_function_by_hand.
2215 * infcall.c (error_call_unknown_return_type): New function.
2216 (call_function_by_hand): New "default_return_type" parameter.
2217 Pass it down.
2218 (call_function_by_hand_dummy): New "default_return_type"
2219 parameter. Use it instead of defaulting to int. If there's no
2220 default and the return type is unknown, throw an error. If
2221 there's a default return type, and the called function has no
2222 debug info, then assume the function is prototyped.
2223 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2224 New "default_return_type" parameter.
2225 (error_call_unknown_return_type): New declaration.
2226 * linux-fork.c (call_lseek): Cast return type of lseek.
2227 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2228 call_function_by_hand.
2229 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2230 calls to call_function_by_hand.
2231 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2232 return type.
2233 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2234 (value_nsstring, print_object_command): Adjust calls to
2235 call_function_by_hand.
2236 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2237 functions with unknown return type.
2238 (pascal_type_print_func_varspec_suffix): New function.
2239 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2240 TYPE_CODE_METHOD>: Use it.
2241 * python/py-value.c (valpy_call): Adjust call to
2242 call_function_by_hand.
2243 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2244 call_function_by_hand.
2245 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2246 call_function_by_hand.
2247 * valops.c (value_allocate_space_in_inferior): Adjust call to
2248 call_function_by_hand.
2249 * typeprint.c (type_print_unknown_return_type): New function.
2250 * typeprint.h (type_print_unknown_return_type): New declaration.
2251
2252 2017-09-04 Pedro Alves <palves@redhat.com>
2253
2254 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2255 types with more than one parameter as prototyped.
2256
2257 2017-09-04 Pedro Alves <palves@redhat.com>
2258
2259 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2260 (disassemble_command): Use gdb_disassembly_flags instead of bare
2261 int.
2262 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2263 (dump_insns, do_mixed_source_and_assembly_deprecated)
2264 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2265 Use gdb_disassembly_flags instead of bare int.
2266 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2267 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2268 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2269 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2270 (enum gdb_disassembly_flag): ... values of this new enumeration.
2271 (gdb_disassembly_flags): Define.
2272 (gdb_disassembly)
2273 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2274 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2275 gdb_disassembly_flags instead of bare int.
2276 * record-btrace.c (btrace_insn_history)
2277 (record_btrace_insn_history, record_btrace_insn_history_range)
2278 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2279 instead of bare int.
2280 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2281 Use gdb_disassembly_flags instead of bare int.
2282 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2283 Define.
2284 * target-delegates.c: Regenerate.
2285 * target.c (target_insn_history, target_insn_history_from)
2286 (target_insn_history_range): Use gdb_disassembly_flags instead of
2287 bare int.
2288 * target.h: Include "disasm.h".
2289 (struct target_ops) <to_insn_history, to_insn_history_from,
2290 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2291 int.
2292 (target_insn_history, target_insn_history_from)
2293 (target_insn_history_range): Use gdb_disassembly_flags instead of
2294 bare int.
2295
2296 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2297
2298 * cli/cli-script.c (build_command_line): For if/while commands,
2299 check whether args is empty.
2300
2301 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2302
2303 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2304 (enum command_control_type): Likewise.
2305 (struct command_line): Likewise.
2306 (free_command_lines): Likewise.
2307 (struct command_lines_deleter): Likewise.
2308 (command_line_up): Likewise.
2309 (read_command_lines): Likewise.
2310 (read_command_lines_1): Likewise.
2311 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2312 (enum command_control_type): Likewise.
2313 (struct command_line): Likewise.
2314 (free_command_lines): Likewise.
2315 (struct command_lines_deleter): Likewise.
2316 (command_line_up): Likewise.
2317 (read_command_lines): Likewise.
2318 (read_command_lines_1): Likewise.
2319 * breakpoint.h: Include cli/cli-script.h.
2320 * extension-priv.h: Likewise.
2321 * gdbcmd.h: Likewise.
2322
2323 2017-09-04 Pedro Alves <palves@redhat.com>
2324
2325 * ada-lang.c (is_known_support_routine): Move sal declaration to
2326 where it is initialized.
2327 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2328 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2329 (clear_command, update_static_tracepoint): Remove init_sal
2330 references. Move declarations closer to initializations.
2331 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2332 initializations.
2333 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2334 references. Move sal declarations closer to initializations.
2335 * frame.c (find_frame_sal): Return a symtab_and_line via function
2336 return instead of output parameter. Remove init_sal references.
2337 * frame.h (find_frame_sal): Return a symtab_and_line via function
2338 return instead of output parameter.
2339 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2340 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2341 instead of memset.
2342 (gdbscm_find_pc_line): Remove init_sal reference.
2343 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2344 references. Move declarations closer to initializations.
2345 * infcmd.c (set_step_frame): Update. Move declarations closer to
2346 initializations.
2347 (finish_backward): Remove init_sal references. Move declarations
2348 closer to initializations.
2349 * infrun.c (process_event_stop_test, handle_step_into_function)
2350 (insert_hp_step_resume_breakpoint_at_frame)
2351 (insert_step_resume_breakpoint_at_caller): Likewise.
2352 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2353 (symbol_to_sal): Likewise.
2354 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2355 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2356 to its initialization.
2357 * reverse.c (save_bookmark_command): Use new/delete. Remove
2358 init_sal references. Move declarations closer to initializations.
2359 * source.c (get_current_source_symtab_and_line): Remove brace
2360 initialization.
2361 (set_current_source_symtab_and_line): Now takes the sal by const
2362 reference. Remove brace initialization.
2363 (line_info): Remove init_sal reference.
2364 * source.h (set_current_source_symtab_and_line): Now takes a
2365 symtab_and_line via const reference.
2366 * stack.c (set_current_sal_from_frame): Adjust.
2367 (print_frame_info): Adjust.
2368 (get_last_displayed_sal): Return the sal via function return
2369 instead of via output parameter. Simplify.
2370 (frame_info): Adjust.
2371 * stack.h (get_last_displayed_sal): Return the sal via function
2372 return instead of via output parameter.
2373 * symtab.c (init_sal): Delete.
2374 (find_pc_sect_line): Remove init_sal references. Move
2375 declarations closer to initializations.
2376 (find_function_start_sal): Remove init_sal references. Move
2377 declarations closer to initializations.
2378 * symtab.h (struct symtab_and_line): In-class initialize all
2379 fields.
2380 * tracepoint.c (set_traceframe_context)
2381 (print_one_static_tracepoint_marker): Remove init_sal references.
2382 Move declarations closer to initializations.
2383 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2384 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2385 declarations closer to initializations.
2386 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2387 init_sal references. Adjust.
2388
2389 2017-09-04 Pedro Alves <palves@redhat.com>
2390
2391 * ax-gdb.c (agent_command_1): Use range-for.
2392 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2393 * breakpoint.c: Include "common/array-view.h".
2394 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2395 parameter from struct symtabs_and_lines to
2396 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2397 (breakpoint_sals_to_pc): Change sals parameter from struct
2398 symtabs_and_lines to std::vector reference.
2399 (check_fast_tracepoint_sals): Change sals parameter from struct
2400 symtabs_and_lines to std::array_view. Use range-for.
2401 (decode_static_tracepoint_spec): Return a std::vector instead of
2402 symtabs_and_lines. Update.
2403 (create_breakpoint): Update.
2404 (break_range_command, until_break_command, clear_command): Update.
2405 (base_breakpoint_decode_location, bkpt_decode_location)
2406 (bkpt_probe_create_sals_from_location)
2407 (bkpt_probe_decode_location, tracepoint_decode_location)
2408 (tracepoint_probe_decode_location)
2409 (strace_marker_create_sals_from_location): Return a std::vector
2410 instead of symtabs_and_lines.
2411 (strace_marker_create_breakpoints_sal): Update.
2412 (strace_marker_decode_location): Return a std::vector instead of
2413 symtabs_and_lines. Update.
2414 (update_breakpoint_locations): Change struct symtabs_and_lines
2415 parameters to gdb::array_view. Adjust.
2416 (location_to_sals): Return a std::vector instead of
2417 symtabs_and_lines. Update.
2418 (breakpoint_re_set_default): Use std::vector instead of struct
2419 symtabs_and_lines.
2420 (decode_location_default): Return a std::vector instead of
2421 symtabs_and_lines. Update.
2422 * breakpoint.h: Include "common/array-view.h".
2423 (struct breakpoint_ops) <decode_location>: Now returns a
2424 std::vector instead of returning a symtabs_and_lines via output
2425 parameter.
2426 (update_breakpoint_locations): Change sals parameters to use
2427 gdb::array_view.
2428 * cli/cli-cmds.c (edit_command, list_command): Update to use
2429 std::vector and gdb::array_view.
2430 (ambiguous_line_spec): Adjust to use gdb::array_view and
2431 range-for.
2432 (compare_symtabs): Rename to ...
2433 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2434 const reference and adjust.
2435 (filter_sals): Rewrite using std::vector and standard algorithms.
2436 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2437 (jump_command): Update to use std::vector.
2438 * linespec.c (struct linespec_state) <canonical_names>: Update
2439 comment.
2440 (add_sal_to_sals_basic): Delete.
2441 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2442 (decode_line_2, create_sals_line_offset)
2443 (convert_address_location_to_sals, convert_linespec_to_sals)
2444 (convert_explicit_location_to_sals, parse_linespec)
2445 (event_location_to_sals, decode_line_full, decode_line_1)
2446 (decode_line_with_current_source)
2447 (decode_line_with_last_displayed, decode_objc)
2448 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2449 (linespec_result::~linespec_result): Adjust to use std::vector
2450 instead of symtabs_and_lines.
2451 * linespec.h (linespec_sals::sals): Now a std::vector.
2452 (struct linespec_result): Use std::vector, bool, and in-class
2453 initialization.
2454 (decode_line_1, decode_line_with_current_source)
2455 (decode_line_with_last_displayed): Return std::vector.
2456 * macrocmd.c (info_macros_command): Use std::vector.
2457 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2458 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2459 std::vector.
2460 * probe.h (parse_probes): Return a std::vector.
2461 * python/python.c (gdbpy_decode_line): Use std::vector and
2462 gdb::array_view.
2463 * source.c (select_source_symtab, line_info): Use std::vector.
2464 * stack.c (func_command): Use std::vector.
2465 * symtab.h (struct symtabs_and_lines): Delete.
2466 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2467
2468 2017-09-04 Pedro Alves <palves@redhat.com>
2469
2470 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2471 unittests/array-view-selftests.c.
2472 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2473 * common/array-view.h: New file.
2474 * unittests/array-view-selftests.c: New file.
2475
2476 2017-09-04 Pedro Alves <palves@redhat.com>
2477
2478 * cli/cli-cmds.c (edit_command): Pass message to
2479 ambiguous_line_spec.
2480 (list_command): Pass message to ambiguous_line_spec. Say
2481 "first"/"last" instead of "start" and "end" to be consistent with
2482 the manual.
2483 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2484 them to print formatted message.
2485
2486 2017-09-04 Pedro Alves <palves@redhat.com>
2487
2488 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2489 ftrace_update_insns by reference instead of pointer.
2490
2491 2017-09-04 Yao Qi <yao.qi@linaro.org>
2492
2493 * i386-go32-tdep.c: Include x86-xstate.h.
2494 (i386_go32_init_abi): Call i386_target_description.
2495 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2496 if xcr0 is X86_XSTATE_X87_MASK.
2497 * i386-tdep.h (tdesc_i386): Remove the declaration.
2498 (tdesc_i386_mmx): Likewise.
2499
2500 2017-09-04 Yao Qi <yao.qi@linaro.org>
2501
2502 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2503 X86_XSTATE_SSE_MASK instead of 0.
2504
2505 2017-09-04 Yao Qi <yao.qi@linaro.org>
2506
2507 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2508 i386_target_description.
2509 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2510 i386_target_description.
2511 * i386-tdep.c (i386_gdbarch_init): Likewise.
2512
2513 2017-09-04 Yao Qi <yao.qi@linaro.org>
2514
2515 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2516 (x86_darwin_init_abi_64): Call amd64_target_description.
2517 * amd64-dicos-tdep.c: Likewise.
2518 * amd64-fbsd-nat.c: Likewise.
2519 * amd64-fbsd-tdep.c: Likewise.
2520 * amd64-nbsd-tdep.c: Likewise.
2521 * amd64-obsd-tdep.c: Likewise.
2522 * amd64-sol2-tdep.c: Likewise.
2523 * amd64-windows-tdep.c: Likewise.
2524 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2525
2526 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2527
2528 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2529 (btrace_function) <insn>: Change type to use std::vector.
2530 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2531 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2532 ftrace_update_insns, ftrace_compute_global_level_offset,
2533 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2534 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2535 change to std::vector.
2536 (ftrace_update_insns): Adjust to change to std::vector, change
2537 type of INSN parameter.
2538 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2539 * record-btrace.c (btrace_call_history_insn_range,
2540 btrace_compute_src_line_range,
2541 record_btrace_frame_prev_register): Adjust to change to
2542 std::vector.
2543 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2544 to change to std::vector.
2545
2546 2017-09-03 Tom Tromey <tom@tromey.com>
2547
2548 * corefile.c (reopen_exec_file): Use std::string.
2549
2550 2017-09-03 Tom Tromey <tom@tromey.com>
2551
2552 * compile/compile.c (compile_register_name_mangled): Return
2553 std::string.
2554 * compile/compile-loc2c.c (pushf_register_address): Update.
2555 (pushf_register): Update.
2556 * compile/compile-c-types.c (convert_array): Update.
2557 * compile/compile-c-symbols.c (generate_vla_size): Update.
2558 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2559 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2560 (convert_one_symbol): Update.
2561 (generate_c_for_for_one_variable): Update.
2562 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2563 std::string.
2564 (generate_register_struct): Update.
2565 * compile/compile-internal.h (c_get_range_decl_name): Return a
2566 std::string.
2567 (compile_register_name_mangled): Return std::string.
2568
2569 2017-09-03 Tom Tromey <tom@tromey.com>
2570
2571 * utils.c (perror_string): Return a std::string.
2572 (throw_perror_with_name, perror_warning_with_name): Update.
2573
2574 2017-09-03 Tom Tromey <tom@tromey.com>
2575
2576 * demangle.c (demangle_command): Use std::string,
2577 unique_xmalloc_ptr.
2578
2579 2017-09-03 Tom Tromey <tom@tromey.com>
2580
2581 * cli/cli-setshow.c (do_set_command): Use std::string.
2582
2583 2017-09-03 Tom Tromey <tom@tromey.com>
2584
2585 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2586
2587 2017-09-03 Tom Tromey <tom@tromey.com>
2588
2589 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2590
2591 2017-09-03 Tom Tromey <tom@tromey.com>
2592
2593 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2594 gdb::unique_xmalloc_ptr.
2595
2596 2017-09-03 Tom Tromey <tom@tromey.com>
2597
2598 * thread.c (print_thread_info_1): Use string_printf.
2599 (thread_apply_command, thread_apply_all_command): Use
2600 std::string.
2601
2602 2017-09-03 Tom Tromey <tom@tromey.com>
2603
2604 * valprint.c (val_print_string): Update.
2605 * gdbcore.h (memory_error_message): Return std::string.
2606 * corefile.c (memory_error_message): Return std::string.
2607 (memory_error): Update.
2608 * breakpoint.c (insert_bp_location): Update.
2609
2610 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2611
2612 * target/waitstatus.h (target_waitstatus_to_string): Change
2613 return type to std::string.
2614 * target/waitstatus.c (target_waitstatus_to_string): Return
2615 std::string.
2616 * target.h (target_waitstatus_to_string): Remove declaration.
2617 * infrun.c (resume, clear_proceed_status_thread,
2618 print_target_wait_results, do_target_wait, save_waitstatus,
2619 stop_all_threads): Adjust.
2620 * record-btrace.c (record_btrace_wait): Adjust.
2621 * target-debug.h
2622 (target_debug_print_struct_target_waitstatus_p): Adjust.
2623
2624 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2625
2626 PR gdb/22046
2627 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2628 detection.
2629
2630 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2631
2632 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2633 for setting/unsetting environment variables on the remote target.
2634 (New remote packets): Add entries for QEnvironmentHexEncoded,
2635 QEnvironmentUnset and QEnvironmentReset.
2636 * common/environ.c (gdb_environ::operator=): Extend method to
2637 handle m_user_set_env_list and m_user_unset_env_list.
2638 (gdb_environ::clear): Likewise.
2639 (match_var_in_string): Change type of first parameter from 'char
2640 *' to 'const char *'.
2641 (gdb_environ::set): Extend method to handle
2642 m_user_set_env_list and m_user_unset_env_list.
2643 (gdb_environ::unset): Likewise.
2644 (gdb_environ::clear_user_set_env): New method.
2645 (gdb_environ::user_set_envp): Likewise.
2646 (gdb_environ::user_unset_envp): Likewise.
2647 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2648 m_user_unset_env_list on move constructor/assignment.
2649 (unset): Add new default parameter 'update_unset_list = true'.
2650 (clear_user_set_env): New method.
2651 (user_set_envp): Likewise.
2652 (user_unset_envp): Likewise.
2653 (m_user_set_env_list): New std::set.
2654 (m_user_unset_env_list): Likewise.
2655 * common/rsp-low.c (hex2str): New function.
2656 (bin2hex): New overload for bin2hex function.
2657 * common/rsp-low.c (hex2str): New prototype.
2658 (str2hex): New overload prototype.
2659 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2660 QEnvironmentUnset and QEnvironmentReset.
2661 (remote_protocol_features): Add QEnvironmentHexEncoded,
2662 QEnvironmentUnset and QEnvironmentReset packets.
2663 (send_environment_packet): New function.
2664 (extended_remote_environment_support): Likewise.
2665 (extended_remote_create_inferior): Call
2666 extended_remote_environment_support.
2667 (_initialize_remote): Add QEnvironmentHexEncoded,
2668 QEnvironmentUnset and QEnvironmentReset packet configs.
2669 * unittests/environ-selftests.c (gdb_selftest_env_var):
2670 New variable.
2671 (test_vector_initialization): New function.
2672 (test_init_from_host_environ): Likewise.
2673 (test_reinit_from_host_environ): Likewise.
2674 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2675 Likewise.
2676 (test_unset_set_empty_vector): Likewise.
2677 (test_vector_clear): Likewise.
2678 (test_std_move): Likewise.
2679 (test_move_constructor):
2680 (test_self_move): Likewise.
2681 (test_set_unset_reset): Likewise.
2682 (run_tests): Rewrite in terms of the functions above.
2683
2684 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2685
2686 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2687 (adi_available): Use a temp variable of type CORE_ADDR as argument
2688 3 when calling target_auxv_search.
2689 (adi_normalize_address): Use masks and xor operators to calculate
2690 normalized address.
2691 (adi_read_versions, adi_write_versions, adi_print_versions)
2692 (do_examine, do_assign): Use paddress.
2693
2694 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2695
2696 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2697 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2698 out of loop and add supply of FIR.
2699 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2700 add collect of FIR.
2701
2702 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2703
2704 PR gdb/21827
2705 * cli/cli-script.c (define_command): Don't convert command name
2706 to lower case.
2707
2708 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2709
2710 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2711 Update all callers accordingly. Remove all code blocks handling
2712 the case where DISPP is not NULL.
2713
2714 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 PR symtab/22003
2717 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2718 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2719 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2720
2721 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2724 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2725 (read_comp_units_from_section): New parameter abbrev_section, use
2726 read_and_check_comp_unit_head, allocate signatured_type if needed.
2727 (create_all_comp_units): Update read_comp_units_from_section caller.
2728
2729 2017-08-23 Pedro Alves <palves@redhat.com>
2730
2731 PR remote/21852
2732 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2733 to null_ptid and switch to thread without reading the registers
2734 after adding the inferior.
2735
2736 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2737
2738 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2739 compile-gcc.
2740 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2741 (compile_to_object): Implement compile_gcc.
2742 (_initialize_compile): Install "set compile-gcc". Initialize
2743 compile_gcc.
2744
2745 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2746
2747 * compile/compile.c (compile_to_object): Conditionally call
2748 set_verbose. Conditionally call compile or compile_v0.
2749
2750 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2751
2752 * sparc64-tdep.h: (adi_normalize_address): New export.
2753 * sparc-nat.h: (open_adi_tag_fd): New export.
2754 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2755 * sparc64-linux-tdep.c:
2756 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2757 (sparc64_linux_handle_segmentation_fault): New function.
2758 (sparc64_linux_init_abi): Register
2759 sparc64_linux_handle_segmentation_fault
2760 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2761 (sparc64_addr_bits_remove): New function.
2762 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2763 (MAX_PROC_NAME_SIZE): New macro.
2764 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2765 (sparc64adilist): New variable.
2766 (adi_proc_list): New variable.
2767 (find_adi_info): New function.
2768 (add_adi_info): New function.
2769 (get_adi_info_proc): New function.
2770 (get_adi_info): New function.
2771 (info_adi_command): New function.
2772 (read_maps_entry): New function.
2773 (adi_available): New function.
2774 (adi_normalize_address): New function.
2775 (adi_align_address): New function.
2776 (adi_convert_byte_count): New function.
2777 (adi_tag_fd): New function.
2778 (adi_is_addr_mapped): New function.
2779 (adi_read_versions): New function.
2780 (adi_write_versions): New function.
2781 (adi_print_versions): New function.
2782 (do_examine): New function.
2783 (do_assign): New function.
2784 (adi_examine_command): New function.
2785 (adi_assign_command): New function.
2786 (_initialize_sparc64_adi_tdep): New function.
2787
2788 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2789
2790 * breakpoint.c (breakpoints_info): Rename to ...
2791 (info_breakpoints_command): ... this.
2792 (watchpoints_info): Rename to ...
2793 (info_watchpoints_command): ... this.
2794 (tracepoints_info): Rename to ...
2795 (info_tracepoints_command): ... this.
2796 (_initialize_breakpoint): Adjust.
2797 * dcache.c (dcache_info): Rename to ...
2798 (info_display_command): ... this.
2799 (_initialize_dcache): Adjust.
2800 * frame.h (args_info): Rename to ...
2801 (info_args_command): ... this.
2802 (locals_info): Rename to ...
2803 (info_locals_command): ... this.
2804 * infcmd.c (nofp_registers_info): Rename to ...
2805 (info_registers_command): ... this.
2806 (float_info): Rename to ...
2807 (info_float_command): ... this.
2808 (program_info): Rename to ...
2809 (info_program_command): ... this.
2810 (all_registers_info): Rename to ...
2811 (info_all_registers_command): ... this.
2812 (vector_info): Rename to ...
2813 (info_vector_command): ... this.
2814 (float_info): Rename to ...
2815 (info_float_command): ... this.
2816 (_initialize_infcmd): Adjust.
2817 * inferior.h (term_info): Rename to ...
2818 (info_terminal_command): ... this.
2819 * inflow.c (term_info): Rename to ...
2820 (info_terminal_command): ... this.
2821 (_initialize_inflow): Adjust.
2822 * infrun.c (signals_info): Rename to ...
2823 (info_signals_command): ... this.
2824 (_initialize_infrun): Adjust.
2825 * objc-lang.c (classes_info): Rename to ...
2826 (info_classes_command): ... this.
2827 (selectors_info): Rename to ...
2828 (info_selectors_command): ... this.
2829 (_initialize_objc_language): Adjust.
2830 * printcmd.c (sym_info): Rename to ...
2831 (info_symbol_command): ... this.
2832 (address_info): Rename to ...
2833 (info_address_command): ... this.
2834 (display_info): Rename to ...
2835 (info_display_command): ... this.
2836 (_initialize_printcmd): Adjust.
2837 * reverse.c (bookmarks_info): Rename to ...
2838 (info_breakpoints_command): ... this.
2839 (_initialize_reverse): Adjust.
2840 * ser-go32.c (dos_info): Rename to ...
2841 (info_serial_command): ... this.
2842 (_initialize_ser_dos): Adjust.
2843 * skip.c (skip_info): Rename to ...
2844 (info_skip_command): ... this.
2845 (_initialize_step_skip): Adjust.
2846 * source.c (line_info): Rename to ...
2847 (info_line_command): ... this.
2848 (source_info): Rename to ...
2849 (info_source_command)
2850 * stack.c (frame_info): Rename to ...
2851 (info_frame_command): ... this.
2852 (locals_info): Rename to ...
2853 (info_locals_command): ... this.
2854 (args_info): Rename to ...
2855 (info_args_command): ... this.
2856 (_initialize_stack): Adjust.
2857 * symtab.c (sources_info): Rename to ...
2858 (info_sources_command): ... this.
2859 (variables_info): Rename to ...
2860 (info_variables_command): ... this.
2861 (functions_info): Rename to ...
2862 (info_functions_command): ... this.
2863 (types_info): Rename to ...
2864 (info_types_command): ... this.
2865 (_initialize_symtab): Adjust.
2866 * target.c (target_info): Rename to ...
2867 (info_target_command): ... this.
2868 (initialize_targets): Adjust.
2869 * tracepoint.c (tvariables_info): Rename to ...
2870 (info_tvariables_command): ... this.
2871 (scope_info): Rename to ...
2872 (info_scope_command): ... this.
2873 (trace_dump_actions): Adjust.
2874 (_initialize_tracepoint): Adjust.
2875
2876 2017-08-22 Tom Tromey <tom@tromey.com>
2877
2878 * breakpoint.h (install_breakpoint): Update.
2879 * breakpoint.c (add_solib_catchpoint): Update.
2880 (install_breakpoint): Change argument to a std::unique_ptr.
2881 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2882 (create_breakpoint_sal, create_breakpoint): Update.
2883 (watch_command_1, catch_exec_command_1)
2884 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2885 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2886 Return the breakpoint.
2887 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2888 (new_single_step_breakpoint): Update.
2889 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2890 std::unique_ptr.
2891 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2892 std::unique_ptr.
2893 * break-catch-sig.c (create_signal_catchpoint): Use
2894 std::unique_ptr.
2895 * ada-lang.c (create_ada_exception_catchpoint): Use
2896 std::unique_ptr.
2897
2898 2017-08-22 Tom Tromey <tom@tromey.com>
2899
2900 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2901
2902 2017-08-22 Tom Tromey <tom@tromey.com>
2903
2904 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2905 (lookup_partial_symbol): Update.
2906
2907 2017-08-22 Tom Tromey <tom@tromey.com>
2908
2909 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2910 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2911 (find_and_open_source, symtab_to_fullname): Update.
2912 * psymtab.c (psymtab_to_fullname): Update.
2913
2914 2017-08-22 Tom Tromey <tom@tromey.com>
2915
2916 * exec.c (exec_file_attach): Update.
2917 * linux-thread-db.c (try_thread_db_load): Update.
2918 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2919 * utils.c (gdb_realpath): Change return type.
2920 (gdb_realpath_keepfile): Update.
2921 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2922 (_initialize_utils): Register the new self test.
2923 * source.c (openp): Update.
2924 (find_and_open_source): Update.
2925 * nto-tdep.c (nto_find_and_open_solib): Update.
2926 * main.c (set_gdb_data_directory): Update.
2927 (captured_main_1): Update.
2928 * dwarf2read.c (dwarf2_get_dwz_file): Update
2929 (dw2_map_symbol_filenames): Update.
2930 * auto-load.c (auto_load_safe_path_vec_update): Update.
2931 (filename_is_in_auto_load_safe_path_vec): Change type of
2932 "filename_realp".
2933 (auto_load_objfile_script): Update.
2934 (file_is_auto_load_safe): Update. Use std::string.
2935 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2936
2937 2017-08-22 Tom Tromey <tom@tromey.com>
2938
2939 * utils.c (gdb_realpath_keepfile): Return a
2940 gdb::unique_xmalloc_ptr.
2941 * exec.c (exec_file_attach): Update.
2942 * utils.h (gdb_realpath_keepfile): Return a
2943 gdb::unique_xmalloc_ptr.
2944
2945 2017-08-22 Tom Tromey <tom@tromey.com>
2946
2947 * compile/compile.c (compile_file_command): Use
2948 gdb::unique_xmalloc_ptr, std::string.
2949 * utils.c (gdb_abspath): Change return type.
2950 * source.c (openp): Update.
2951 * objfiles.c (allocate_objfile): Update.
2952 * main.c (set_gdb_data_directory): Update.
2953 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2954
2955 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2956
2957 * cli-cmds.c (list_commands): List actual code around more than
2958 one location.
2959
2960 2017-08-21 John Baldwin <jhb@FreeBSD.org>
2961
2962 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2963
2964 2017-08-21 Pedro Alves <palves@redhat.com>
2965
2966 PR gdb/19487
2967 * c-exp.y (variable production): Handle function aliases.
2968 * minsyms.c (msymbol_is_text): New function.
2969 * minsyms.h (msymbol_is_text): Declare.
2970 * symtab.c (find_function_alias_target): New function.
2971 * symtab.h (find_function_alias_target): Declare.
2972
2973 2017-08-21 Pedro Alves <palves@redhat.com>
2974
2975 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2976 typedefs.
2977 * typeprint.c (whatis_exp): If handling "whatis", and expression
2978 is OP_TYPE, strip one typedef level. Otherwise don't strip
2979 typedefs here.
2980 * valops.c (value_cast): Save "to" type before resolving
2981 stubs/typedefs. Use that type as resulting value's type.
2982
2983 2017-08-18 Tom Tromey <tom@tromey.com>
2984 Pedro Alves <palves@redhat.com>
2985
2986 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2987 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2988 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2989 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2990 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2991 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2992 (linux_get_siginfo_data): Add "thread" argument. Use
2993 scoped_restore.
2994 * linux-nat.c (linux_child_follow_fork)
2995 (check_stopped_by_watchpoint): Use scoped_restore.
2996 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2997 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2998 (restore_inferior_ptid, save_inferior_ptid): Remove.
2999 * btrace.c (btrace_fetch): Use scoped_restore.
3000 * bsd-uthread.c (bsd_uthread_fetch_registers)
3001 (bsd_uthread_store_registers): Use scoped_restore.
3002 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3003 scoped_restore.
3004 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3005 (aix_thread_xfer_partial): Use scoped_restore.
3006 * inferior.h (save_inferior_ptid): Remove.
3007
3008 2017-08-18 Yao Qi <yao.qi@linaro.org>
3009
3010 PR tdep/21818
3011 * arm-tdep.c (gdb_print_insn_arm): Mark
3012 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3013
3014 2017-08-18 Yao Qi <yao.qi@linaro.org>
3015
3016 * NEWS: Mention GDBserver's new option "--selftest".
3017 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3018 * selftest.c: Move it to common/selftest.c.
3019 * selftest.h: Move it to common/selftest.h.
3020 * selftest-arch.c (reset): New function.
3021 (tests_with_arch): Call reset.
3022
3023 2017-08-18 Yao Qi <yao.qi@linaro.org>
3024
3025 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3026 instead of exception_fprintf and printf_filtered.
3027
3028 2017-08-18 Yao Qi <yao.qi@linaro.org>
3029
3030 * selftest.c (register_self_test): Rename it to
3031 selftests::register_test.
3032 (run_self_tests): selftest::run_tests.
3033 * selftest.h: Update declarations.
3034 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3035 selftests::register_test_foreach_arch.
3036 * selftest-arch.h: Update declaration.
3037 * aarch64-tdep.c: Update.
3038 * arm-tdep.c: Likewise.
3039 * disasm-selftests.c: Likewise.
3040 * dwarf2loc.c: Likewise.
3041 * dwarf2-frame.c: Likewise.
3042 * findvar.c: Likewise.
3043 * gdbarch-selftests.c: Likewise.
3044 * maint.c (maintenance_selftest): Likewise.
3045 * regcache.c: Likewise.
3046 * rust-exp.y: Likewise.
3047 * selftest-arch.c: Likewise.
3048 * unittests/environ-selftests.c: Likewise.
3049 * unittests/function-view-selftests.c: Likewise.
3050 * unittests/offset-type-selftests.c: Likewise.
3051 * unittests/optional-selftests.c: Likewise.
3052 * unittests/scoped_restore-selftests.c: Likewise.
3053 * utils-selftests.c: Likewise.
3054
3055 2017-08-17 Pedro Alves <palves@redhat.com>
3056
3057 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3058 local.
3059
3060 2017-08-17 Pedro Alves <palves@redhat.com>
3061
3062 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3063 field.
3064 (reset_die_in_process): Delete, replaced by ...
3065 (process_die_scope): ... this new class. Make it responsible for
3066 freeing cu->line_header too.
3067 (process_die): Use process_die_scope.
3068 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3069 cu->line_header_die_owner. Don't release the line header if it's
3070 owned by the CU.
3071 (setup_type_unit_groups): Make the CU/DIE own the line header.
3072 Don't release the line header here.
3073
3074 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3075
3076 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3077
3078 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3079
3080 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3081 Single-Key mode
3082
3083 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3084
3085 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3086 mode command list.
3087
3088 2017-08-15 Stafford Horne <shorne@gmail.com>
3089
3090 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3091
3092 2017-08-15 Stafford Horne <shorne@gmail.com>
3093
3094 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3095
3096 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3097
3098 PR gdb/21954
3099 * infcmd.c (unset_environment_command): Use the 'clear' method on
3100 the environment instead of resetting it.
3101
3102 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3103
3104 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3105 platforms.
3106
3107 2017-08-14 Tom Tromey <tom@tromey.com>
3108
3109 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3110 (print_binary_chars): Likewise.
3111 (BITS_IN_BYTES): Remove.
3112
3113 2017-08-14 Tom Tromey <tom@tromey.com>
3114
3115 PR gdb/21675
3116 * valprint.c (LOW_ZERO): Change value to 034.
3117 (print_octal_chars): Add static_asserts for octal constants.
3118 * printcmd.c (print_scalar_formatted): Add 'd' case.
3119
3120 2017-08-11 Tom Tromey <tom@tromey.com>
3121
3122 * symfile.c (add_symbol_file_command): Use std::vector.
3123
3124 2017-08-14 Tom Tromey <tom@tromey.com>
3125
3126 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3127 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3128 std::move.
3129 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3130
3131 2017-08-11 Pedro Alves <palves@redhat.com>
3132
3133 * infrun.c (process_event_stop_test): Adjust
3134 function_name_is_marked_for_skip call.
3135 * skip.c: Include <list>.
3136 (skiplist_entry): Make it a class with private fields, and
3137 getters/setters.
3138 (skiplist_entry_chain): Delete.
3139 (skiplist_entries): New.
3140 (skiplist_entry_count): Delete.
3141 (highest_skiplist_entry_num): New.
3142 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3143 (add_skiplist_entry): Delete.
3144 (skiplist_entry::skiplist_entry): New.
3145 (skiplist_entry::add_entry): New.
3146 (skip_file_command, skip_function): Adjust.
3147 (compile_skip_regexp): Delete.
3148 (skip_command): Don't compile regexp here. Adjust to use
3149 skiplist_entry::add_entry.
3150 (skip_info): Adjust to use range-for and getters.
3151 (skip_enable_command, skip_disable_command): Adjust to use
3152 range-for and setters.
3153 (skip_delete_command): Adjust to use std::list.
3154 (add_skiplist_entry): Delete.
3155 (skip_file_p): Delete, refactored as ...
3156 (skiplist_entry::do_skip_file_p): ... this new method.
3157 (skip_gfile_p): Delete, refactored as ...
3158 (skiplist_entry::do_gskip_file_p): ... this new method.
3159 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3160 (skiplist_entry::skip_function_p): ... this new method.
3161 (function_name_is_marked_for_skip): Now returns bool, and takes
3162 the function sal by const reference. Adjust to use range-for and
3163 skiplist_entry methods.
3164 (_initialize_step_skip): Remove references to
3165 skiplist_entry_chain, skiplist_entry_count.
3166 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3167 takes the function sal by const reference.
3168
3169 2017-08-11 Yao Qi <yao.qi@linaro.org>
3170
3171 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3172 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3173 (dwarf2_frame_cache):
3174 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3175 RETURN_MASK_ALL and set *this_case to NULL.
3176 * frame-unwind.h: Update comments.
3177
3178 2017-08-11 Yao Qi <yao.qi@linaro.org>
3179
3180 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3181 (dwarf2_frame_state_copy_regs): Remove.
3182 (dwarf2_frame_state_free_regs): Remove.
3183 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3184 (dwarf2_restore_rule): Call method .alloc_regs instead of
3185 dwarf2_frame_state_alloc_regs.
3186 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3187 constructor. Call std::move.
3188 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3189 (dwarf2_frame_cache): Likewise.
3190
3191 [GDB_SELF_TEST]: Include selftest.h and
3192 selftest-arch.h.
3193 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3194 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3195 execute_cfa_program_test.
3196
3197 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3198 copy ctor, assignment operator, move assignment.
3199 <alloc_regs>: New method.
3200 <swap>: New method.
3201 (struct dwarf2_frame_state): Delete dtor.
3202 (dwarf2_frame_state_alloc_regs): Remove declaration.
3203 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3204 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3205
3206 2017-08-11 Yao Qi <yao.qi@linaro.org>
3207
3208 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3209 (dwarf2_frame_state::dwarf2_frame_state): New.
3210 (dwarf2_frame_state::~dwarf2_frame_state): New.
3211 (dwarf2_fetch_cfa_info): Update.
3212 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3213 rather than a pointer. Update code.
3214 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3215 dtor.
3216 <data_align, code_align, retaddr_column>: Change them to const.
3217 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3218 to bool.
3219
3220 2017-08-11 Yao Qi <yao.qi@linaro.org>
3221
3222 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3223 <loc.exp>: New field.
3224 * dwarf2-frame.c (execute_cfa_program): Update.
3225 (dwarf2_frame_prev_register): Update.
3226
3227 2017-08-10 Pedro Alves <palves@redhat.com>
3228
3229 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3230
3231 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3232
3233 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3234 (fbsd_pending_children): Use std::list.
3235 (fbsd_remember_child): Likewise.
3236 (fbsd_is_child_pending): Likewise.
3237 (fbsd_pending_vfork_done): Use std::forward_list.
3238 (fbsd_add_vfork_done): Likewise.
3239 (fbsd_is_vfork_done_pending): Likewise.
3240 (fbsd_next_vfork_done): Likewise.
3241
3242 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3243
3244 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3245 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3246 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3247 for `mapfilename'.
3248 (fbsd_xfer_partial): Use gdb::byte_vector.
3249 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3250
3251 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3252
3253 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3254 "filestuff.h".
3255 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3256
3257 2017-08-09 Tom Tromey <tom@tromey.com>
3258
3259 * skip.c (skiplist_entry): New constructor.
3260 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3261 (skiplist_entry::file_is_glob): Now bool.
3262 (skiplist_entry::file, skiplist_entry::function): Now
3263 std::string.
3264 (make_skip_entry): Return a unique_ptr. Use new.
3265 (free_skiplist_entry, free_skiplist_entry_cleanup)
3266 (make_free_skiplist_entry_cleanup): Remove.
3267 (skip_command, skip_disable_command, add_skiplist_entry)
3268 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3269 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3270 (function_name_is_marked_for_skip): Update.
3271 (skip_delete_command): Update. Use delete.
3272
3273 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3274
3275 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3276 (aarch64_linux_core_read_description): New function.
3277 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3278
3279 2017-08-09 Pedro Alves <palves@redhat.com>
3280
3281 * cp-name-parser.y (cp_comp_to_string): Return a
3282 gdb::unique_xmalloc_ptr<char>.
3283 * cp-support.c (replace_typedefs_qualified_name)
3284 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3285 (cp_canonicalize_string_full): Use op= instead of explicit
3286 convertion.
3287 (cp_class_name_from_physname, method_name_from_physname)
3288 (cp_func_name, cp_remove_params): Adjust to use
3289 gdb::unique_xmalloc_ptr<char>.
3290 * cp-support.h (cp_comp_to_string): Return a
3291 gdb::unique_xmalloc_ptr<char>.
3292 * python/py-type.c (typy_lookup_type): Adjust to use
3293 gdb::unique_xmalloc_ptr<char>.
3294
3295 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3296
3297 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3298
3299 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3300 Yao Qi <yao.qi@linaro.org>
3301
3302 * cp-support.c (cp_canonicalize_string_full): Use
3303 gdb::unique_xmalloc_ptr<char>.
3304 (cp_canonicalize_string): Likewise.
3305
3306 2017-08-09 Yao Qi <yao.qi@linaro.org>
3307
3308 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3309 * regformats/i386/amd64-avx-avx512.dat: Remove.
3310 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3311 * regformats/i386/amd64-avx-mpx.dat:Remove.
3312 * regformats/i386/amd64-avx.dat: Remove.
3313 * regformats/i386/amd64-mpx.dat: Remove.
3314 * regformats/i386/i386-avx-avx512.dat: Remove.
3315 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3316 * regformats/i386/i386-avx-mpx.dat: Remove.
3317 * regformats/i386/i386-mmx.dat: Remove.
3318 * regformats/i386/i386-mpx.dat: Remove.
3319
3320 2017-08-09 Yao Qi <yao.qi@linaro.org>
3321
3322 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3323 * amd64-tdep.c: Don't include features/i386/x32*.c.
3324 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3325 functions.
3326 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3327 and i386/x32-avx-avx512.
3328 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3329 and i386/x32.xml.
3330 * features/i386/x32-avx-avx512.c: Removed.
3331 * features/i386/x32-avx-avx512.xml: Removed.
3332 * features/i386/x32-avx.c: Removed.
3333 * features/i386/x32-avx.xml: Removed.
3334 * features/i386/x32.c: Removed.
3335 * features/i386/x32.xml: Removed.
3336 * regformats/i386/x32-avx-avx512.dat: Removed.
3337 * regformats/i386/x32-avx.dat: Removed.
3338 * regformats/i386/x32.dat: Removed.
3339
3340 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3341
3342 PR breakpoints/21886
3343 * mem-break.c (default_memory_insert_breakpoint): Use
3344 `->placed_address' rather than `->reqstd_address' for the
3345 breakpoint location.
3346
3347 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3348
3349 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3350 assertions.
3351
3352 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3353
3354 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3355 a union of `tdep_info', `tdesc_data' and `id'.
3356 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3357 rather than `info.tdep_info'.
3358 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3359 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3360 * i386-tdep.c (i386_gdbarch_init): Likewise.
3361 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3362 * mips-tdep.c (mips_gdbarch_init): Likewise.
3363 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3364 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3365 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3366 `info.tdep_info'.
3367 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3368 `info.tdep_info'.
3369 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3370 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3371 `info.tdep_info'.
3372 * spu-tdep.c (spu_gdbarch_init): Likewise.
3373 * gdbarch.h: Regenerate.
3374
3375 2017-08-07 Leszek Swirski <leszeks@google.com>
3376
3377 PR symtab/20899
3378 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3379
3380 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3381
3382 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3383 (gdbsim_open): Rename gdb_argv args object to argv.
3384
3385 2017-08-05 Tom Tromey <tom@tromey.com>
3386
3387 * compile/compile-object-load.c (compile_object_load): Use
3388 gdb::unique_xmalloc_ptr.
3389 * cli/cli-dump.c (scan_filename): Rename from
3390 scan_filename_with_cleanup. Change return type.
3391 (scan_expression): Rename from scan_expression_with_cleanup.
3392 Change return type.
3393 (dump_memory_to_file, dump_value_to_file, restore_command):
3394 Use gdb::unique_xmalloc_ptr. Update.
3395 * cli/cli-cmds.c (find_and_open_script): Use
3396 gdb::unique_xmalloc_ptr.
3397 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3398 * symmisc.c (maintenance_print_symbols)
3399 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3400 * symfile.c (symfile_bfd_open, generic_load)
3401 (add_symbol_file_command, remove_symbol_file_command): Use
3402 gdb::unique_xmalloc_ptr.
3403 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3404 * psymtab.c (maintenance_print_psymbols): Use
3405 gdb::unique_xmalloc_ptr.
3406 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3407 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3408 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3409 (reload_shared_libraries_1): Likewise.
3410
3411 2017-08-05 Tom Tromey <tom@tromey.com>
3412
3413 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3414 (rust_op_vector, rust_set_vector): New typedefs.
3415 (current_parser): New global.
3416 (work_obstack): Change to pointer type. Update all users.
3417 (rust_ast, pstate): Remove globals.
3418 (struct rust_parser): New.
3419 (%union) <params, field_inits>: Change type.
3420 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3421 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3422 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3423 (convert_params_to_types, convert_params_to_expression): Change
3424 type of "params".
3425 (ast_string): Change type of "fields".
3426 (rust_parse): Make a rust_parser. Remove cleanups.
3427 (rust_lex_tests): Make and install an auto_obstack.
3428
3429 2017-08-04 Yao Qi <yao.qi@linaro.org>
3430
3431 * configure.srv (ipa_x32_linux_regobj): New.
3432 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3433 instead of X86_TDESC_AVX512.
3434 (initialize_low_tracepoint): Call
3435 init_registers_x32_avx_avx512_linux.
3436
3437 2017-08-04 Yao Qi <yao.qi@linaro.org>
3438
3439 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3440
3441 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3442
3443 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3444
3445 2017-08-03 Tom Tromey <tom@tromey.com>
3446
3447 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3448 Remove.
3449 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3450
3451 2017-08-03 Tom Tromey <tom@tromey.com>
3452
3453 * python/py-param.c (compute_enum_values): Use gdb_argv.
3454
3455 2017-08-03 Tom Tromey <tom@tromey.com>
3456
3457 * utils.h (struct gdb_argv_deleter): New.
3458 (gdb_argv): New class.
3459 * utils.c (gdb_argv::reset): New method.
3460 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3461 * tracefile.c (tsave_command): Use gdb_argv.
3462 * top.c (new_ui_command): Use gdb_argv.
3463 * symmisc.c (maintenance_print_symbols)
3464 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3465 * symfile.c (symbol_file_command, generic_load)
3466 (remove_symbol_file_command): Use gdb_argv.
3467 * stack.c (backtrace_command): Use gdb_argv.
3468 * source.c (add_path, show_substitute_path_command)
3469 (unset_substitute_path_command, set_substitute_path_command):
3470 Use gdb_argv.
3471 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3472 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3473 * remote.c (extended_remote_run, remote_put_command)
3474 (remote_get_command, remote_delete_command): Use gdb_argv.
3475 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3476 (gdbsim_open): Use gdb_argv.
3477 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3478 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3479 * procfs.c (procfs_info_proc): Use gdb_argv.
3480 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3481 * infrun.c (handle_command): Use gdb_argv.
3482 * inferior.c (add_inferior_command, clone_inferior_command):
3483 Use gdb_argv.
3484 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3485 * exec.c (exec_file_command): Use gdb_argv.
3486 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3487 * compile/compile.c (build_argc_argv): Use gdb_argv.
3488
3489 2017-08-03 Tom Tromey <tom@tromey.com>
3490
3491 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3492
3493 2017-08-03 Tom Tromey <tom@tromey.com>
3494
3495 * python/python.c (compute_python_string): Return std::string.
3496 (gdbpy_eval_from_control_command): Update.
3497 (do_start_initialization): Use std::string.
3498 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3499 xstrprintf.
3500 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3501 xstrprintf.
3502
3503 2017-08-03 Tom Tromey <tom@tromey.com>
3504
3505 * top.h (do_restore_instream_cleanup): Remove.
3506 * top.c (do_restore_instream_cleanup): Remove.
3507 (read_command_file): Use scoped_restore.
3508 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3509
3510 2017-08-03 Tom Tromey <tom@tromey.com>
3511
3512 * cli/cli-script.c (execute_user_command)
3513 (execute_control_command): Use scoped_restore.
3514
3515 2017-08-03 Tom Tromey <tom@tromey.com>
3516
3517 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3518 (execute_user_command): Remove user_call_depth; use
3519 user_args_stack's size instead.
3520
3521 2017-08-03 Tom Tromey <tom@tromey.com>
3522
3523 * top.h (in_user_command): Remove.
3524 * top.c (in_user_command): Remove.
3525 * cli/cli-script.c (do_restore_user_call_depth)
3526 (execute_user_command): Update.
3527
3528 2017-08-03 Tom Tromey <tom@tromey.com>
3529
3530 * valops.c (search_struct_method): Use gdb::byte_vector.
3531 * valarith.c (value_concat): Use std::vector.
3532 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3533 (simple_search_memory): Likewise.
3534 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3535 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3536 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3537 * elfread.c (elf_rel_plt_read): Use std::string.
3538 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3539 * cli/cli-dump.c (restore_section_callback): Use
3540 gdb::byte_vector.
3541
3542 2017-08-03 Tom Tromey <tom@tromey.com>
3543
3544 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3545
3546 2017-08-03 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3549 (tui_register_format): Use scoped_restore.
3550
3551 2017-08-03 Tom Tromey <tom@tromey.com>
3552
3553 * reverse.c (exec_direction_default): Remove.
3554 (exec_reverse_once): Use scoped_restore.
3555 * remote.c (restore_remote_timeout): Remove.
3556 (remote_flash_erase, remote_flash_write, remote_flash_done)
3557 (readchar, remote_serial_write): Use scoped_restore.
3558 * cli/cli-script.c (struct source_cleanup_lines_args)
3559 (source_cleanup_lines): Remove.
3560 (script_from_file): Use scoped_restore.
3561 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3562 (source_command): Use scoped_restore.
3563
3564 2017-08-03 Tom Tromey <tom@tromey.com>
3565
3566 * utils.h (make_cleanup_free_so): Remove.
3567 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3568 * solist.h (struct so_deleter): New.
3569 (so_list_up): New typedef.
3570 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3571
3572 2017-08-03 Tom Tromey <tom@tromey.com>
3573
3574 * utils.h (make_cleanup_restore_current_language): Remove.
3575 * utils.c (do_restore_current_language)
3576 (make_cleanup_restore_current_language): Remove.
3577 * parse.c (parse_exp_in_context_1)
3578 (parse_expression_with_language): Use
3579 scoped_restore_current_language.
3580 * mi/mi-main.c (mi_cmd_execute): Use
3581 scoped_restore_current_language.
3582 * language.h (scoped_restore_current_language): New class.
3583
3584 2017-08-03 Tom Tromey <tom@tromey.com>
3585
3586 * compile/compile.c (cleanup_unlink_file): Remove.
3587 (compile_to_object): Use gdb::unlinker.
3588 (eval_compile_command): Likewise.
3589
3590 2017-08-03 Tom Tromey <tom@tromey.com>
3591
3592 * utils.h (make_cleanup_fclose): Remove.
3593 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3594
3595 2017-08-03 Tom Tromey <tom@tromey.com>
3596
3597 * top.c (open_terminal_stream): Return gdb_file_up.
3598 (new_ui_command): Update.
3599
3600 2017-08-03 Tom Tromey <tom@tromey.com>
3601
3602 * source.c (print_source_lines_base, forward_search_command)
3603 (reverse_search_command): Use gdb_file_up.
3604
3605 2017-08-03 Tom Tromey <tom@tromey.com>
3606
3607 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3608
3609 2017-08-03 Tom Tromey <tom@tromey.com>
3610
3611 * cli/cli-cmds.c (find_and_open_script): Change return type.
3612 Remove "streamp" and "full_path" parameters.
3613 (source_script_with_search): Update.
3614 * auto-load.c (source_script_file): Update.
3615 * cli/cli-cmds.h (find_and_open_script): Change type.
3616 (open_script): New struct.
3617
3618 2017-08-03 Tom Tromey <tom@tromey.com>
3619
3620 * xml-support.c (xml_fetch_content_from_file): Update.
3621 * ui-file.c (stdio_file::open): Update.
3622 * tracefile-tfile.c (tfile_start): Update.
3623 * remote.c (remote_file_put, remote_file_get): Update.
3624 * nat/linux-procfs.c (linux_proc_get_int)
3625 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3626 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3627 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3628 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3629 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3630 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3631 * linux-nat.c (linux_proc_pending_signals): Update.
3632 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3633 (file_closer): Remove.
3634 * compile/compile.c (compile_to_object): Update.
3635 * common/filestuff.h (struct gdb_file_deleter): New.
3636 (gdb_file_up): New typedef.
3637 (gdb_fopen_cloexec): Change return type.
3638 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3639 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3640 (dump_binary_file, restore_binary_file): Update.
3641 * auto-load.c (auto_load_objfile_script_1): Update.
3642
3643 2017-08-03 Tom Tromey <tom@tromey.com>
3644
3645 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3646 (info_static_tracepoint_markers_command): Likewise.
3647 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3648 * skip.c (skip_info): Use ui_out_emit_table.
3649 * progspace.c (print_program_space): Use ui_out_emit_table.
3650 * osdata.c (info_osdata): Use ui_out_emit_table.
3651 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3652 ui_out_emit_table.
3653 * linux-thread-db.c (info_auto_load_libthread_db): Use
3654 ui_out_emit_table.
3655 * inferior.c (print_inferior): Use ui_out_emit_table.
3656 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3657 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3658 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3659 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3660 * ui-out.h (class ui_out_emit_table): New.
3661
3662 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3663
3664 * mips-tdep.c (mips_fpu_type_str): New function.
3665 (mips_dump_tdep): Call it.
3666
3667 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3668
3669 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3670 `->mips_fpu_type'.
3671
3672 2017-07-31 Xavier Roirand <roirand@adacore.com>
3673
3674 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3675
3676 2017-07-27 Xavier Roirand <roirand@adacore.com>
3677
3678 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3679
3680 2017-07-26 Yao Qi <yao.qi@linaro.org>
3681
3682 * cli/cli-cmds.c (maintenancechecklist): New variable.
3683 * gdbcmd.h (maintenancechecklist): Declare it.
3684 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3685 Call i386_linux_read_description with different masks.
3686 * maint.c (maintenance_check_command): New function.
3687 (_initialize_maint_cmds): Call add_prefix_cmd.
3688 * target-descriptions.c (tdesc_reg): override operator != and ==.
3689 (tdesc_type): Likewise.
3690 (tdesc_feature): Likewise.
3691 (target_desc): Likewise.
3692 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3693 (maintenance_check_xml_descriptions): New function.
3694 (_initialize_target_descriptions) Add command "xml-descriptions".
3695 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3696
3697 2017-07-26 Yao Qi <yao.qi@linaro.org>
3698
3699 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3700 Include features/i386/32bit-*.c.
3701 (i386_linux_read_description): Generate target description if it
3702 doesn't exist.
3703 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3704 functions.
3705 * features/i386/32bit-linux.c: Re-generated.
3706 * features/i386/32bit-sse.c: Likewise.
3707 * target-descriptions.c (print_c_feature::visit): Print code to
3708 set register number if needed.
3709 (print_c_feature) <m_next_regnum>: New field.
3710
3711 2017-07-26 Yao Qi <yao.qi@linaro.org>
3712
3713 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3714 (FEATURE_XMLFILES): New.
3715 (FEATURE_CFILES): New.
3716 New rules.
3717 (clean-cfiles): Remove generated c files.
3718 * features/i386/32bit-avx.c: Generated.
3719 * features/i386/32bit-avx512.c: Generated.
3720 * features/i386/32bit-core.c: Generated.
3721 * features/i386/32bit-linux.c: Generated.
3722 * features/i386/32bit-mpx.c: Generated.
3723 * features/i386/32bit-pkeys.c: Generated.
3724 * features/i386/32bit-sse.c: Generated.
3725 * target-descriptions.c: Include algorithm.
3726 (tdesc_element_visitor): Add method visit_end.
3727 (print_c_tdesc): Implement visit_end.
3728 (print_c_tdesc:: m_filename_after_features): Move it to
3729 protected.
3730 (print_c_feature): New class.
3731 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3732 name starts with "i386/32bit-".
3733
3734 2017-07-26 Yao Qi <yao.qi@linaro.org>
3735
3736 * target-descriptions.c (tdesc_element_visitor): New class.
3737 (tdesc_element): New class.
3738 (tdesc_reg): Inherit from tdesc_element.
3739 (tdesc_reg::accept): New function.
3740 (tdesc_type): Inherit from tdesc_element.
3741 (tdesc_type::accept): New function.
3742 (tdesc_feature): Inherit from tdesc_element.
3743 (tdesc_feature::accept): New function.
3744 (target_desc): Inherit from tdesc_element.
3745 (target_desc::target_desc): New.
3746 (target_desc::~target_desc): New.
3747 (target_desc::accept): New.
3748 (allocate_target_description): Use new.
3749 (free_target_description): Use delete.
3750 (print_c_tdesc): New class.
3751 (maint_print_c_tdesc_cmd): Adjust.
3752
3753 * features/aarch64.c: Re-generated.
3754 * features/arc-arcompact.c: Re-generated.
3755 * features/arc-v2.c: Re-generated.
3756 * features/arm/arm-with-iwmmxt.c: Re-generated.
3757 * features/arm/arm-with-m.c: Re-generated.
3758 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3759 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3760 * features/arm/arm-with-neon.c: Re-generated.
3761 * features/arm/arm-with-vfpv2.c: Re-generated.
3762 * features/arm/arm-with-vfpv3.c: Re-generated.
3763 * features/i386/amd64-avx-avx512.c: Re-generated.
3764 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3765 * features/i386/amd64-avx.c: Re-generated.
3766 * features/i386/amd64-avx-linux.c: Re-generated.
3767 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3768 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3769 * features/i386/amd64-avx-mpx.c: Re-generated.
3770 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3771 * features/i386/amd64.c: Re-generated.
3772 * features/i386/amd64-linux.c: Re-generated.
3773 * features/i386/amd64-mpx.c: Re-generated.
3774 * features/i386/amd64-mpx-linux.c: Re-generated.
3775 * features/i386/i386-avx-avx512.c: Re-generated.
3776 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3777 * features/i386/i386-avx.c: Re-generated.
3778 * features/i386/i386-avx-linux.c: Re-generated.
3779 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3780 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3781 * features/i386/i386-avx-mpx.c: Re-generated.
3782 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3783 * features/i386/i386.c: Re-generated.
3784 * features/i386/i386-linux.c: Re-generated.
3785 * features/i386/i386-mmx.c: Re-generated.
3786 * features/i386/i386-mmx-linux.c: Re-generated.
3787 * features/i386/i386-mpx.c: Re-generated.
3788 * features/i386/i386-mpx-linux.c: Re-generated.
3789 * features/i386/x32-avx-avx512.c: Re-generated.
3790 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3791 * features/i386/x32-avx.c: Re-generated.
3792 * features/i386/x32-avx-linux.c: Re-generated.
3793 * features/i386/x32.c: Re-generated.
3794 * features/i386/x32-linux.c: Re-generated.
3795 * features/microblaze.c: Re-generated.
3796 * features/microblaze-with-stack-protect.c: Re-generated.
3797 * features/mips64-dsp-linux.c: Re-generated.
3798 * features/mips64-linux.c: Re-generated.
3799 * features/mips-dsp-linux.c: Re-generated.
3800 * features/mips-linux.c: Re-generated.
3801 * features/nds32.c: Re-generated.
3802 * features/nios2.c: Re-generated.
3803 * features/nios2-linux.c: Re-generated.
3804 * features/rs6000/powerpc-32.c: Re-generated.
3805 * features/rs6000/powerpc-32l.c: Re-generated.
3806 * features/rs6000/powerpc-403.c: Re-generated.
3807 * features/rs6000/powerpc-403gc.c : Re-generated.
3808 * features/rs6000/powerpc-405.c: Re-generated.
3809 * features/rs6000/powerpc-505.c: Re-generated.
3810 * features/rs6000/powerpc-601.c: Re-generated.
3811 * features/rs6000/powerpc-602.c: Re-generated.
3812 * features/rs6000/powerpc-603.c: Re-generated.
3813 * features/rs6000/powerpc-604.c: Re-generated.
3814 * features/rs6000/powerpc-64.c: Re-generated.
3815 * features/rs6000/powerpc-64l.c: Re-generated.
3816 * features/rs6000/powerpc-7400.c: Re-generated.
3817 * features/rs6000/powerpc-750.c: Re-generated.
3818 * features/rs6000/powerpc-860.c: Re-generated.
3819 * features/rs6000/powerpc-altivec32.c: Re-generated.
3820 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3821 * features/rs6000/powerpc-altivec64.c: Re-generated.
3822 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3823 * features/rs6000/powerpc-cell32l.c: Re-generated.
3824 * features/rs6000/powerpc-cell64l.c: Re-generated.
3825 * features/rs6000/powerpc-e500.c: Re-generated.
3826 * features/rs6000/powerpc-e500l.c: Re-generated.
3827 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3828 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3829 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3830 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3831 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3832 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3833 * features/rs6000/powerpc-vsx32.c: Re-generated.
3834 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3835 * features/rs6000/powerpc-vsx64.c: Re-generated.
3836 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3837 * features/rs6000/rs6000.c: Re-generated.
3838 * features/s390-linux32.c: Re-generated.
3839 * features/s390-linux32v1.c: Re-generated.
3840 * features/s390-linux32v2.c: Re-generated.
3841 * features/s390-linux64.c: Re-generated.
3842 * features/s390-linux64v1.c: Re-generated.
3843 * features/s390-linux64v2.c: Re-generated.
3844 * features/s390-te-linux64.c: Re-generated.
3845 * features/s390-tevx-linux64.c: Re-generated.
3846 * features/s390-vx-linux64.c: Re-generated.
3847 * features/s390x-linux64.c: Re-generated.
3848 * features/s390x-linux64v1.c: Re-generated.
3849 * features/s390x-linux64v2.c: Re-generated.
3850 * features/s390x-te-linux64.c: Re-generated.
3851 * features/s390x-tevx-linux64.c: Re-generated.
3852 * features/s390x-vx-linux64.c: Re-generated.
3853 * features/sparc/sparc32-solaris.c: Re-generated.
3854 * features/sparc/sparc64-solaris.c: Re-generated.
3855 * features/tic6x-c62x.c: Re-generated.
3856 * features/tic6x-c62x-linux.c: Re-generated.
3857 * features/tic6x-c64x.c: Re-generated.
3858 * features/tic6x-c64x-linux.c: Re-generated.
3859 * features/tic6x-c64xp.c: Re-generated.
3860 * features/tic6x-c64xp-linux.c: Re-generated.
3861
3862 2017-07-26 Yao Qi <yao.qi@linaro.org>
3863
3864 * i386-linux-tdep.c (i386_linux_read_description): New function.
3865 (i386_linux_core_read_description): Call
3866 i386_linux_read_description.
3867 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3868 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3869 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3870 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3871 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3872 * x86-linux-nat.c (x86_linux_read_description): Call
3873 i386_linux_read_description.
3874
3875 2017-07-26 Yao Qi <yao.qi@linaro.org>
3876
3877 * NEWS: Mention it.
3878 * features/Makefile (%.c: %.xml): Pass the xml file name to
3879 command "maint print c-tdesc".
3880 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3881 name from 'arg'.
3882
3883 2017-07-26 Yao Qi <yao.qi@linaro.org>
3884
3885 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3886 in-class initialization.
3887 (tdesc_create_feature): Call new instead of XCNEW.
3888 (free_target_description): Ue delete.
3889
3890 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3891
3892 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3893
3894 2017-07-25 Yao Qi <yao.qi@linaro.org>
3895
3896 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3897 constant.
3898 (amd64_x32_init_abi): Likewise.
3899 * amd64-tdep.h (amd64_init_abi): Update declaration.
3900 (amd64_x32_init_abi): Likewise.
3901
3902 2017-07-25 Yao Qi <yao.qi@linaro.org>
3903
3904 PR tdep/21717
3905 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3906 condition for FPSCR.
3907 (arm_linux_store_inferior_registers): Likewise.
3908
3909 2017-07-22 Tom Tromey <tom@tromey.com>
3910
3911 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3912 <syscalls_counts>: Now a std::vector.
3913 (get_catch_syscall_inferior_data): Use "new".
3914 (catch_syscall_inferior_data_cleanup): Use "delete".
3915 (insert_catch_syscall, remove_catch_syscall)
3916 (clear_syscall_counts): Update.
3917
3918 2017-07-22 Tom Tromey <tom@tromey.com>
3919
3920 * break-catch-syscall.c (syscall_catchpoint)
3921 <syscalls_to_be_caught>: Now a std::vector<int>
3922 (~syscall_catchpoint): Remove.
3923 (insert_catch_syscall, remove_catch_syscall)
3924 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3925 (print_mention_catch_syscall, print_recreate_catch_syscall):
3926 Update.
3927 (create_syscall_event_catchpoint): Change type of "filter"
3928 parameter.
3929 (catch_syscall_split_args): Return a std::vector.
3930 (catch_syscall_command_1, catching_syscall_number_1): Update.
3931
3932 2017-07-22 Tom Tromey <tom@tromey.com>
3933
3934 * break-catch-throw.c (struct exception_catchpoint)
3935 <exception_rx>: Now a std::string.
3936 (~exception_catchpoint): Remove.
3937 (print_one_detail_exception_catchpoint): Update.
3938 (handle_gnu_v3_exceptions): Change type of except_rx.
3939 (extract_exception_regexp): Return a std::string.
3940 (catch_exception_command_1): Update.
3941
3942 2017-07-22 Tom Tromey <tom@tromey.com>
3943
3944 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3945 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3946 std::vector.
3947 <catch_all>: Now a bool.
3948 (~signal_catchpoint): Remove.
3949 (signal_catchpoint_insert_location)
3950 (signal_catchpoint_remove_location)
3951 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3952 (signal_catchpoint_print_mention)
3953 (signal_catchpoint_print_recreate)
3954 (signal_catchpoint_explains_signal): Update.
3955 (create_signal_catchpoint): Change type of "filter" and
3956 "catch_all".
3957 (catch_signal_split_args): Return a std::vector. Change type of
3958 "catch_all".
3959 (catch_signal_command): Update.
3960
3961 2017-07-20 Pedro Alves <palves@redhat.com>
3962
3963 * ada-lang.c (ada_language_defn): Make extern.
3964 (_initialize_ada_language): Remove add_language call.
3965 * c-lang.c (c_language_defn, cplus_language_defn)
3966 (asm_language_defn, minimal_language_defn): Make extern.
3967 (_initialize_c_language): Delete.
3968 * completer.c (compare_cstrings): Delete, moved to utils.h.
3969 * d-lang.c (d_language_defn): Make extern.
3970 (_initialize_d_language): Remove add_language calls.
3971 * defs.h (enum language): Add comment.
3972 * f-lang.c (f_language_defn): Make extern.
3973 (_initialize_f_language): Remove add_language call.
3974 * go-lang.c (go_language_defn): Make extern.
3975 (_initialize_go_language): Remove add_language call.
3976 * language.c: Include <algorithm>.
3977 (languages): Redefine as const array.
3978 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3979 (set_language_command): Handle "local". Use for-range loop.
3980 (set_language): Remove loop.
3981 (language_enum): Rewrite.
3982 (language_def, language_str): Remove loops.
3983 (add_language): Delete.
3984 (add_set_language_command): New, based on add_languages.
3985 (skip_language_trampoline): Adjust.
3986 (local_language_defn): Delete.
3987 (language_gdbarch_post_init): Adjust.
3988 (_initialize_language): Remove add_language calls. Call
3989 add_set_language_command.
3990 * language.h (add_language): Delete.
3991 (auto_language_defn)
3992 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3993 (asm_language_defn, c_language_defn, cplus_language_defn)
3994 (d_language_defn, f_language_defn, go_language_defn)
3995 (m2_language_defn, objc_language_defn, opencl_language_defn)
3996 (pascal_language_defn, rust_language_defn): Declare.
3997 * m2-lang.c (m2_language_defn): Make extern.
3998 (_initialize_m2_language): Remove add_language call.
3999 * objc-lang.c (objc_language_defn): Make extern.
4000 (_initialize_objc_language): Remove add_language call.
4001 * opencl-lang.c (opencl_language_defn): Make extern.
4002 (_initialize_opencl_language): Remove add_language call.
4003 * p-lang.c (pascal_language_defn): Make extern.
4004 (_initialize_pascal_language): Delete.
4005 * rust-lang.c (rust_language_defn): Make extern.
4006 (_initialize_rust_language): Delete.
4007 * utils.h (compare_cstrings): New static inline function.
4008
4009 2017-07-20 Pedro Alves <palves@redhat.com>
4010
4011 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4012 (get_var_value): Constify parameters.
4013 (get_int_var_value): Change prototype.
4014 (to_fixed_range_type): Adjust.
4015 * ada-lang.h (get_int_var_value): Change prototype.
4016
4017 2017-07-20 Pedro Alves <palves@redhat.com>
4018
4019 * dwarf2read.c (dw2_lookup_symbol): Use
4020 SYMBOL_MATCHES_SEARCH_NAME.
4021 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4022
4023 2017-07-20 Pedro Alves <palves@redhat.com>
4024
4025 * block.c (block_iter_name_step, block_iter_name_first)
4026 (block_iter_name_next): Delete.
4027 (block_lookup_symbol_primary): Adjust to use
4028 dict_iter_match_first/dict_iter_match_next.
4029 * block.h (block_iter_name_first, block_iter_name_next): Delete
4030 declarations.
4031 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4032 dict_iter_match_first/dict_iter_match_next.
4033
4034 2017-07-20 Pedro Alves <palves@redhat.com>
4035
4036 * cp-support.c (cp_find_first_component_aux): Add missing case for
4037 end of string.
4038
4039 2017-07-18 David Blaikie <dblaikie@gmail.com>
4040
4041 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4042 of dwo_cu's dwo_file.
4043
4044 2017-07-18 Yao Qi <yao.qi@linaro.org>
4045
4046 * remote.c (store_registers_using_G): Remove one line comment.
4047
4048 2017-07-18 Yao Qi <yao.qi@linaro.org>
4049
4050 * regcache.c (regcache_cpy): Simplify it.
4051 (regcache::cpy_no_passthrough): Remove it.
4052 * regcache.h (cpy_no_passthrough): Remove it.
4053 (regcache_dup, regcache_cpy): Update comments.
4054
4055 2017-07-18 Pedro Alves <palves@redhat.com>
4056
4057 * remote-sim.c (sim_command_completer): Adjust to work with a
4058 completion_tracker instead of a VEC.
4059
4060 2017-07-17 Pedro Alves <palves@redhat.com>
4061
4062 * completer.c (complete_source_filenames): New function.
4063 (complete_address_and_linespec_locations): New function.
4064 (location_completer): Use complete_address_and_linespec_locations.
4065 (completion_tracker::build_completion_result): Honor the tracker's
4066 request to suppress append.
4067 * completer.h (completion_tracker::suppress_append_ws)
4068 (completion_tracker::set_suppress_append_ws): New methods.
4069 (completion_tracker::m_suppress_append_ws): New field.
4070 (complete_source_filenames): New declaration.
4071 * linespec.c (linespec_complete_what): New.
4072 (struct ls_parser) <complete_what, completion_word,
4073 completion_quote_char, completion_quote_end, completion_tracker>:
4074 New fields.
4075 (string_find_incomplete_keyword_at_end): New.
4076 (linespec_lexer_lex_string): Record quote char. If in completion
4077 mode, don't throw.
4078 (linespec_lexer_consume_token): Advance the completion word point.
4079 (linespec_lexer_peek_token): Save/restore completion info.
4080 (save_stream_and_consume_token): New.
4081 (set_completion_after_number): New.
4082 (linespec_parse_basic): Set what to complete next depending on
4083 token. Handle function and label completions specially.
4084 (parse_linespec): Disable objc shortcut in completion mode. Set
4085 what to complete next depending on token type. Skip keyword if in
4086 completion mode.
4087 (complete_linespec_component, linespec_complete): New.
4088 * linespec.h (linespec_complete): Declare.
4089
4090 2017-07-17 Pedro Alves <palves@redhat.com>
4091
4092 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4093 Handle 'operator<' / 'operator<<'.
4094
4095 2017-07-17 Pedro Alves <palves@redhat.com>
4096
4097 * completer.c (collect_explicit_location_matches): Handle
4098 MATCH_LABEL.
4099 (convert_explicit_location_to_linespec): New, factored out from
4100 ...
4101 (convert_explicit_location_to_sals): ... this.
4102 (complete_label): New.
4103 (linespec_complete_label, find_label_symbols_in_block): New.
4104 (find_label_symbols): Add completion_mode parameter and adjust to
4105 call find_label_symbols_in_block.
4106 * linespec.h (linespec_complete_label): Declare.
4107
4108 2017-07-17 Pedro Alves <palves@redhat.com>
4109
4110 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4111 complete_symbol_mode parameter.
4112 * cli/cli-cmds.c (complete_command): Get the completion result out
4113 of the handle_brkchars tracker if used a custom word point.
4114 * completer.c: Include "linespec.h".
4115 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4116 (advance_to_expression_complete_word_point): New.
4117 (completion_tracker::completes_to_completion_word): New.
4118 (complete_files_symbols): Pass down
4119 complete_symbol_mode::EXPRESSION.
4120 (explicit_options, probe_options): New.
4121 (collect_explicit_location_matches): Complete on the
4122 explictit_loc->foo instead of word. Use
4123 linespec_complete_function. Handle MATCH_LINE. Handle offering
4124 keyword and options completions.
4125 (backup_text_ptr): Delete.
4126 (skip_keyword): New.
4127 (complete_explicit_location): Remove 'word' parameter. Add
4128 language, quoted_arg_start and quoted_arg_end parameters.
4129 Rewrite, parsing left to right.
4130 (location_completer): Rewrite.
4131 (location_completer_handle_brkchars): New function.
4132 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4133 (enum complete_line_internal_reason): Adjust comments.
4134 (completion_tracker::discard_completions): New.
4135 (completer_handle_brkchars_func_for_completer): Handle
4136 location_completer.
4137 (gdb_custom_word_point_brkchars)
4138 (gdb_org_rl_basic_quote_characters): New.
4139 (gdb_completion_word_break_characters_throw)
4140 (completion_find_completion_word): Handle trackers that use a
4141 custom word point.
4142 (completion_tracker::advance_custom_word_point_by): New.
4143 (completion_tracker::build_completion_result): Don't rely on
4144 readline appending the quote char.
4145 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4146 use a custom word point.
4147 (gdb_rl_attempted_completion_function): Restore
4148 rl_basic_quote_characters.
4149 * completer.h (class completion_tracker): Extend intro comment.
4150 (completion_tracker::set_quote_char)
4151 (completion_tracker::quote_char)
4152 (completion_tracker::set_use_custom_word_point)
4153 (completion_tracker::use_custom_word_point)
4154 (completion_tracker::custom_word_point)
4155 (completion_tracker::set_custom_word_point)
4156 (completion_tracker::advance_custom_word_point_by)
4157 (completion_tracker::completes_to_completion_word)
4158 (completion_tracker::discard_completions): New methods.
4159 (completion_tracker::m_quote_char)
4160 (completion_tracker::m_use_custom_word_point)
4161 (completion_tracker::m_custom_word_point): New fields.
4162 (advance_to_expression_complete_word_point): Declare.
4163 * f-lang.c (f_collect_symbol_completion_matches): Add
4164 complete_symbol_mode parameter.
4165 * language.h (struct language_defn)
4166 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4167 parameter.
4168 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4169 (linespec_complete_function): New function.
4170 (linespec_lexer_lex_keyword): Adjust.
4171 * linespec.h (linespec_keywords, linespec_complete_function): New
4172 declarations.
4173 * location.c (find_end_quote): New function.
4174 (explicit_location_lex_one): Add explicit_completion_info
4175 parameter. Save quoting info. Don't throw if being called for
4176 completion. Don't handle Ada operators here.
4177 (is_cp_operator, skip_op_false_positives, first_of)
4178 (explicit_location_lex_one_function): New function.
4179 (string_to_explicit_location): Replace 'dont_throw' parameter with
4180 an explicit_completion_info pointer parameter. Handle it. Don't
4181 use explicit_location_lex_one to lex function names. Use
4182 explicit_location_lex_one_function instead.
4183 * location.h (struct explicit_completion_info): New.
4184 (string_to_explicit_location): Replace 'dont_throw' parameter with
4185 an explicit_completion_info pointer parameter.
4186 * symtab.c (default_collect_symbol_completion_matches_break_on):
4187 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4188 (default_collect_symbol_completion_matches)
4189 (collect_symbol_completion_matches): Add complete_symbol_mode
4190 parameter.
4191 (collect_symbol_completion_matches_type): Pass down
4192 complete_symbol_mode::EXPRESSION.
4193 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4194 parameter. Handle LINESPEC mode.
4195 * symtab.h (complete_symbol_mode): New.
4196 (default_collect_symbol_completion_matches_break_on)
4197 (default_collect_symbol_completion_matches)
4198 (collect_symbol_completion_matches)
4199 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4200 parameter.
4201
4202 2017-07-17 Pedro Alves <palves@redhat.com>
4203
4204 * utils.c (enum class strncmp_iw_mode): New.
4205 (strcmp_iw): Rename to ...
4206 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4207 parameters. Handle them.
4208 (strncmp_iw): New.
4209 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4210 * utils.h (strncmp_iw): Declare.
4211 (strcmp_iw): Move describing comments here.
4212
4213 2017-07-17 Pedro Alves <palves@redhat.com>
4214
4215 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4216 CP_OPERATOR_STR.
4217 * c-typeprint.c (is_type_conversion_operator): Use
4218 CP_OPERATOR_STR.
4219 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4220 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4221 CP_OPERATOR_LEN.
4222 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4223 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4224 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4225 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4226 CP_OPERATOR_STR.
4227 * location.c: Include "cp-support.h".
4228 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4229 CP_OPERATOR_STR.
4230 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4231 CP_OPERATOR_LEN.
4232
4233 2017-07-17 Pedro Alves <palves@redhat.com>
4234
4235 * cli/cli-cmds.c (complete_command): Use a completion tracker
4236 along with completion_find_completion_word for handle_brkchars
4237 phase.
4238 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4239 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4240 (struct gdb_rl_completion_word_info): New.
4241 (gdb_rl_find_completion_word): New.
4242 (completion_find_completion_word): New.
4243 * completer.h (completion_find_completion_word): Declare.
4244
4245 2017-07-17 Pedro Alves <palves@redhat.com>
4246
4247 * ada-lang.c (symbol_completion_match): Adjust comments.
4248 (symbol_completion_add): Replace vector parameter with
4249 completion_tracker parameter. Use it.
4250 (ada_make_symbol_completion_list): Rename to...
4251 (ada_collect_symbol_completion_matches): ... this. Add
4252 completion_tracker parameter and use it.
4253 (ada_language_defn): Adjust.
4254 * break-catch-syscall.c (catch_syscall_completer): Adjust
4255 prototype and work with completion_tracker instead of VEC.
4256 * breakpoint.c (condition_completer): Adjust prototype and work
4257 with completion_tracker instead of VEC.
4258 * c-lang.c (c_language_defn, cplus_language_defn)
4259 (asm_language_defn, minimal_language_defn): Adjust to renames.
4260 * cli/cli-cmds.c (complete_command): Rework using
4261 completion_tracker. Catch exceptions when completing.
4262 * cli/cli-decode.c (integer_unlimited_completer)
4263 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4264 with completion_tracker instead of VEC.
4265 * command.h (struct completion_tracker): Forward declare.
4266 (completer_ftype, completer_handle_brkchars_ftype): Change
4267 types.
4268 (complete_on_cmdlist, complete_on_enum): Adjust.
4269 * completer.c: Include <algorithm>.
4270 (struct gdb_completer_state): New.
4271 (current_completion): New global.
4272 (readline_line_completion_function): Delete.
4273 (noop_completer, filename_completer)
4274 (filename_completer_handle_brkchars, complete_files_symbols)
4275 (linespec_location_completer): Adjust to work with a
4276 completion_tracker instead of a VEC.
4277 (string_or_empty): New.
4278 (collect_explicit_location_matches): Adjust to work with a
4279 completion_tracker instead of a VEC.
4280 (explicit_location_completer): Rename to ...
4281 (complete_explicit_location): ... this and adjust to work with a
4282 completion_tracker instead of a VEC.
4283 (location_completer): Adjust to work with a completion_tracker
4284 instead of a VEC.
4285 (add_struct_fields): Adjust to work with a completion_list instead
4286 of VEC.
4287 (expression_completer): Rename to ...
4288 (complete_expression): ... this and adjust to work with a
4289 completion_tracker instead of a VEC. Use complete_files_symbols.
4290 (expression_completer): Reimplement on top of complete_expression.
4291 (symbol_completer): Adjust to work with a completion_tracker
4292 instead of a VEC.
4293 (enum complete_line_internal_reason): Add describing comments.
4294 (complete_line_internal_normal_command): Adjust to work with a
4295 completion_tracker instead of a VEC.
4296 (complete_line_internal): Rename to ...
4297 (complete_line_internal_1): ... this and adjust to work with a
4298 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4299 handle_brkchars phase.
4300 (new_completion_tracker): Delete.
4301 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4302 complete_line_internal_1.
4303 (free_completion_tracker): Delete.
4304 (INITIAL_COMPLETION_HTAB_SIZE): New.
4305 (completion_tracker::completion_tracker)
4306 (completion_tracker::~completion_tracker): New.
4307 (maybe_add_completion): Delete.
4308 (completion_tracker::maybe_add_completion)
4309 (completion_tracker::add_completion)
4310 (completion_tracker::add_completions): New.
4311 (throw_max_completions_reached_error): Delete.
4312 (complete_line): Adjust to work with a completion_tracker instead
4313 of a VEC. Don't create a completion_tracker_t or check for max
4314 completions here.
4315 (command_completer, command_completer_handle_brkchars)
4316 (signal_completer, reg_or_group_completer_1)
4317 (reg_or_group_completer, default_completer_handle_brkchars):
4318 Adjust to work with a completion_tracker.
4319 (gdb_completion_word_break_characters_throw): New.
4320 (gdb_completion_word_break_characters): Reimplement.
4321 (line_completion_function): Delete.
4322 (completion_tracker::recompute_lowest_common_denominator)
4323 (expand_preserving_ws)
4324 (completion_tracker::build_completion_result)
4325 (completion_result::completion_result)
4326 (completion_result::completion_result)
4327 (completion_result::~completion_result)
4328 (completion_result::completion_result)
4329 (completion_result::release_match_list, compare_cstrings)
4330 (completion_result::sort_match_list)
4331 (completion_result::reset_match_list)
4332 (gdb_rl_attempted_completion_function_throw)
4333 (gdb_rl_attempted_completion_function): New.
4334 * completer.h (completion_list, struct completion_result)
4335 (class completion_tracker): New.
4336 (complete_line): Add completion_tracker parameter.
4337 (readline_line_completion_function): Delete.
4338 (gdb_rl_attempted_completion_function): New.
4339 (noop_completer, filename_completer, expression_completer)
4340 (location_completer, symbol_completer, command_completer)
4341 (signal_completer, reg_or_group_completer): Update prototypes.
4342 (completion_tracker_t, new_completion_tracker)
4343 (make_cleanup_free_completion_tracker): Delete.
4344 (enum maybe_add_completion_enum): Delete.
4345 (maybe_add_completion): Delete.
4346 (throw_max_completions_reached_error): Delete.
4347 * corefile.c (complete_set_gnutarget): Adjust to work with a
4348 completion_tracker instead of a VEC.
4349 * cp-abi.c (cp_abi_completer): Adjust to work with a
4350 completion_tracker instead of a VEC.
4351 * d-lang.c (d_language_defn): Adjust.
4352 * disasm.c (disassembler_options_completer): Adjust to work with a
4353 completion_tracker instead of a VEC.
4354 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4355 (f_collect_symbol_completion_matches): ... this. Adjust to work
4356 with a completion_tracker instead of a VEC.
4357 (f_language_defn): Adjust.
4358 * go-lang.c (go_language_defn): Adjust.
4359 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4360 Adjust to work with a completion_tracker instead of a VEC.
4361 * infrun.c (handle_completer): Likewise.
4362 * interps.c (interpreter_completer): Likewise.
4363 * interps.h (interpreter_completer): Likewise.
4364 * language.c (unknown_language_defn, auto_language_defn)
4365 (local_language_defn): Adjust.
4366 * language.h (language_defn::la_make_symbol_completion_list):
4367 Rename to ...
4368 (language_defn::la_collect_symbol_completion_matches): ... this
4369 and adjust to work with a completion_tracker instead of a VEC.
4370 * m2-lang.c (m2_language_defn): Adjust.
4371 * objc-lang.c (objc_language_defn): Adjust.
4372 * opencl-lang.c (opencl_language_defn): Adjust.
4373 * p-lang.c (pascal_language_defn): Adjust.
4374 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4375 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4376 with a completion_tracker.
4377 * rust-lang.c (rust_language_defn): Adjust.
4378 * symtab.c (free_completion_list, do_free_completion_list)
4379 (return_val, completion_tracker): Delete.
4380 (completion_list_add_name, completion_list_add_symbol)
4381 (completion_list_add_msymbol, completion_list_objc_symbol)
4382 (completion_list_add_fields, add_symtab_completions): Add
4383 completion_tracker parameter and use it.
4384 (default_make_symbol_completion_list_break_on_1): Rename to...
4385 (default_collect_symbol_completion_matches_break_on): ... this.
4386 Add completion_tracker parameter and use it instead of allocating
4387 a completion tracker here.
4388 (default_make_symbol_completion_list_break_on): Delete old
4389 implementation.
4390 (default_make_symbol_completion_list): Delete.
4391 (default_collect_symbol_completion_matches): New.
4392 (make_symbol_completion_list): Delete.
4393 (collect_symbol_completion_matches): New.
4394 (make_symbol_completion_type): Rename to ...
4395 (collect_symbol_completion_matches_type): ... this. Add
4396 completion_tracker parameter and use it instead of VEC.
4397 (make_file_symbol_completion_list_1): Rename to...
4398 (collect_file_symbol_completion_matches): ... this. Add
4399 completion_tracker parameter and use it instead of VEC.
4400 (make_file_symbol_completion_list): Delete.
4401 (add_filename_to_list): Use completion_list instead of a VEC.
4402 (add_partial_filename_data::list): Now a completion_list.
4403 (make_source_files_completion_list): Work with a completion_list
4404 instead of a VEC.
4405 * symtab.h: Include "completer.h".
4406 (default_make_symbol_completion_list_break_on)
4407 (default_make_symbol_completion_list, make_symbol_completion_list)
4408 (make_symbol_completion_type, make_file_symbol_completion_list)
4409 (make_source_files_completion_list): Delete.
4410 (default_collect_symbol_completion_matches_break_on)
4411 (default_collect_symbol_completion_matches)
4412 (collect_symbol_completion_matches)
4413 (collect_symbol_completion_matches_type)
4414 (collect_file_symbol_completion_matches)
4415 (make_source_files_completion_list): New.
4416 * top.c (init_main): Don't install a rl_completion_entry_function
4417 hook. Install a rl_attempted_completion_function hook instead.
4418 * tui/tui-layout.c (layout_completer): Adjust to work with a
4419 completion_tracker.
4420 * tui/tui-regs.c (tui_reggroup_completer):
4421 * tui/tui-win.c (window_name_completer, focus_completer)
4422 (winheight_completer): Adjust to work with a completion_tracker.
4423 * value.c: Include "completer.h".
4424 (complete_internalvar): Adjust to work with a completion_tracker.
4425 * value.h (complete_internalvar): Likewise.
4426
4427 2017-07-17 Pedro Alves <palves@redhat.com>
4428
4429 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4430 renames.
4431 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4432 comments to completer_ftype's declaration.
4433 <completer_handle_brkchars>: Change type to
4434 completer_handle_brkchars_ftype.
4435 * command.h (completer_ftype): Add describing comment and give
4436 names to parameters.
4437 (completer_ftype_void): Rename to ...
4438 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4439 (set_cmd_completer_handle_brkchars): Adjust.
4440 * completer.c (filename_completer_handle_brkchars): New function.
4441 (complete_line_internal_normal_command): New function, factored
4442 out from ...
4443 (complete_line_internal): ... here.
4444 (command_completer_handle_brkchars)
4445 (default_completer_handle_brkchars)
4446 (completer_handle_brkchars_func_for_completer): New functions.
4447 * completer.h (set_gdb_completion_word_break_characters): Delete
4448 declaration.
4449 (completer_handle_brkchars_func_for_completer): New declaration.
4450 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4451 completer_handle_brkchars_func_for_completer.
4452
4453 2017-07-17 Pedro Alves <palves@redhat.com>
4454
4455 * completer.c (symbol_completer): New function, based on
4456 make_symbol_completion_list_fn.
4457 * completer.h (symbol_completer): New declaration.
4458 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4459 * python/py-cmd.c (completers): Adjust.
4460 * symtab.c (make_symbol_completion_list_fn): Delete.
4461 * symtab.h (make_symbol_completion_list_fn): Delete.
4462 * cli/cli-decode.c (add_cmd): Adjust.
4463
4464 2017-07-17 Pedro Alves <palves@redhat.com>
4465
4466 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4467 * dwarf2read.c: Include "filename-seen-cache.h".
4468 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4469 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4470 * filename-seen-cache.c: New file.
4471 * filename-seen-cache.h: New file.
4472 * symtab.c: Include "filename-seen-cache.h".
4473 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4474 (create_filename_seen_cache, clear_filename_seen_cache)
4475 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4476 to filename-seen-cache.h/filename-seen-cache.c.
4477 (output_source_filename, sources_info)
4478 (maybe_add_partial_symtab_filename)
4479 (make_source_files_completion_list): Adjust to use
4480 filename_seen_cache.
4481
4482 2017-07-17 Pedro Alves <palves@redhat.com>
4483
4484 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4485 fields.
4486 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4487 dwarf2_debug_sections*)): New.
4488 (dwarf2_per_objfile::dwarf2_per_objfile(const
4489 dwarf2_per_objfile&)): Declare as deleted.
4490 (dwarf2_per_objfile::operator=): Declare as deleted.
4491 (dwarf2_per_objfile::dwarf2_per_objfile)
4492 (dwarf2_per_objfile::~dwarf2_per_objfile)
4493 (dwarf2_per_objfile::free_cached_comp_units): New.
4494 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4495 ctor. Call dwarf2_per_objfile's ctor manually.
4496 (dwarf2_locate_sections): Deleted/refactored as ...
4497 (dwarf2_per_objfile::locate_sections): ... this new method.
4498 (free_cached_comp_units): Defer to
4499 dwarf2_per_objfile::free_cached_comp_units.
4500 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4501
4502 2017-07-14 Tom Tromey <tom@tromey.com>
4503
4504 PR rust/21764:
4505 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4506 parameter.
4507 <UNOP_SIZEOF>: Split into separate case.
4508 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4509
4510 2017-07-14 Tom Tromey <tom@tromey.com>
4511
4512 PR rust/21763:
4513 * symtab.c (symbol_matches_domain): Add language_rust to special
4514 case.
4515 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4516 treat LOC_TYPEDEF symbols as variables.
4517
4518 2017-07-14 Pedro Alves <palves@redhat.com>
4519
4520 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4521 symtabs matching all symtabs with SRCFILE as file name instead of
4522 only considering the first hit, with lookup_symtab.
4523
4524 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4525
4526 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4527 operator_name parameters.
4528 (gen_expr): Update function call.
4529
4530 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4531
4532 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4533 parameter.
4534 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4535 Likewise.
4536 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4537 parameter, use agent_expr::gdbarch instead, update function
4538 calls.
4539 (locexpr_tracepoint_var_ref): Likewise.
4540 (loclist_tracepoint_var_ref): Likewise.
4541 * ax-gdb.c (gen_trace_static_fields): Likewise.
4542 (gen_traced_pop): Likewise.
4543 (gen_frame_args_address): Likewise.
4544 (gen_frame_locals_address): Likewise.
4545 (gen_var_ref): Likewise.
4546 (gen_struct_ref_recursive): Likewise.
4547 (gen_static_field): Likewise.
4548 (gen_maybe_namespace_elt): Likewise.
4549 (gen_expr): Likewise.
4550 (gen_trace_for_var): Likewise.
4551 (gen_trace_for_expr): Likewise.
4552 (gen_trace_for_return_address): Likewise.
4553
4554 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4555
4556 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4557 parameter.
4558 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4559
4560 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4561
4562 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4563 from ax, update calls.
4564 (gen_usual_arithmetic): Likewise.
4565 (gen_integral_promotions): Likewise.
4566 (gen_bitfield_ref): Likewise.
4567 (gen_primitive_field): Likewise.
4568 (gen_struct_ref_recursive): Likewise.
4569 (gen_struct_ref): Likewise.
4570 (gen_maybe_namespace_elt): Likewise.
4571 (gen_struct_elt_for_reference): Likewise.
4572 (gen_namespace_elt): Likewise.
4573 (gen_aggregate_elt_ref): Likewise.
4574 (gen_expr): Get gdbarch from ax, update calls.
4575 (gen_expr_binop_rest): Likewise.
4576
4577 2017-07-13 Pedro Alves <palves@redhat.com>
4578
4579 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4580 as default tdesc.
4581 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4582 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4583 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4584 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4585 tdep.
4586 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4587 Get final tdesc from the tdep.
4588 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4589 default tdesc.
4590 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4591 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4592 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4593 Use it as default tdesc.
4594 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4595 down to amd_init_abi. No longer handle fallback tdesc here.
4596 * amd64-tdep.h (tdesc_x32): Declare.
4597 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4598 parameter.
4599 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4600 as default tdesc.
4601
4602 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4603
4604 * s390-linux-tdep.c (s390_process_record): Add support for
4605 instructions new in arch12.
4606
4607 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4608
4609 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4610 PT_GETFSBASE and PT_GETGSBASE.
4611 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4612 PT_SETGSBASE.
4613
4614 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4615
4616 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4617 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4618 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4619 those rules.
4620 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4621 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4622 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4623 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4624 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4625 * features/i386/amd64.xml: Add 64bit-segments.xml.
4626 * features/i386/amd64-avx-avx512.c: Regenerated.
4627 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4628 * features/i386/amd64-avx-mpx.c: Regenerated.
4629 * features/i386/amd64-avx.c: Regenerated.
4630 * features/i386/amd64-mpx.c: Regenerated.
4631 * features/i386/amd64.c: Regenerated.
4632 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4633 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4634 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4635 * regformats/i386/amd64-avx.dat: Regenerated.
4636 * regformats/i386/amd64-mpx.dat: Regenerated.
4637 * regformats/i386/amd64.dat: Regenerated.
4638
4639 2017-07-10 Yao Qi <yao.qi@linaro.org>
4640
4641 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4642 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4643
4644 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4645
4646 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4647 unsetenv.
4648 * gnulib/aclocal.m4: Regenerate.
4649 * gnulib/config.in: Regenerate.
4650 * gnulib/configure: Regenerate.
4651 * gnulib/import/Makefile.am: Regenerate.
4652 * gnulib/import/Makefile.in: Regenerate.
4653 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4654 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4655 * gnulib/import/m4/environ.m4: New file.
4656 * gnulib/import/m4/setenv.m4: New file.
4657 * gnulib/import/setenv.c: New file.
4658 * gnulib/import/unsetenv.c: New file.
4659
4660 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4661
4662 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4663 address when op is DW_OP_addr.
4664
4665 2017-07-09 Tom Tromey <tom@tromey.com>
4666
4667 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4668 check and apply to outer type.
4669
4670 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4671
4672 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4673 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4674 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4675 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4676
4677 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4678
4679 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4680
4681 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4682
4683 * corelow.c (get_core_siginfo): Remove.
4684 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4685 instead of get_core_siginfo.
4686 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4687 * gdbarch.h: Re-generate.
4688 * gdbarch.c: Re-generate.
4689 * linux-tdep.c (linux_core_xfer_siginfo): New.
4690 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4691
4692 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4693
4694 * corelow.c (thread_section_name): Move to ...
4695 * gdbcore.h (thread_section_name): ... here.
4696
4697 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4698
4699 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4700 (struct siginfo32): New.
4701 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4702 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4703 via ptrace(PT_LWPINFO).
4704
4705 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4706
4707 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4708 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4709 (fbsd_get_siginfo_type): New.
4710 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4711 (_initialize_fbsd_tdep): New.
4712
4713 2017-07-06 David Blaikie <dblaikie@gmail.com>
4714
4715 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4716 a singular dwo_unit*) to support multiple CUs in the same way that
4717 multiple TUs are supported.
4718 (create_cus_hash_table): Replace create_dwo_cu with a function for
4719 parsing multiple CUs from a DWO file.
4720 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4721 create_dwo_cu.
4722 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4723 htab_find, rather than comparing the signature to a singleton CU in
4724 the dwo_file.
4725
4726 2017-07-06 Pedro Alves <palves@redhat.com>
4727
4728 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4729
4730 2017-07-04 Pedro Alves <palves@redhat.com>
4731
4732 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4733 * gdbtypes.h (TYPE_STATIC): Delete.
4734 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4735 is_synchronized, is_native>: Delete.
4736 <dummy>: Bump.
4737 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4738 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4739 (TYPE_FN_FIELD_ABSTRACT): Delete.
4740
4741 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4742
4743 * buffer.h (buffer_finish): Fix spelling mistakes.
4744
4745 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4746
4747 * .dir-locals.el: Automatically switch to C-style comments in
4748 versions of Emacs that support the feature.
4749
4750 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4751 Pedro Alves <palves@redhat.com>
4752
4753 PR cli/21688
4754 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4755 (process_next_line): New variable 'inline_cmd'.
4756 Adjust 'if' clauses for "python", "compile" and "guile" to use
4757 'command_name_equals' and check for '!inline_cmd'.
4758
4759 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4760
4761 PR cli/21688
4762 * cli/cli-script.c (command_name_equals_not_inline): New function.
4763 (process_next_line): Adjust 'if' clauses for "python", "compile"
4764 and "guile" to use command_name_equals_not_inline.
4765
4766 2017-06-29 Pedro Alves <palves@redhat.com>
4767
4768 * completer.c (expression_completer): Call
4769 linespec_location_completer instead of location_completer.
4770
4771 2017-06-29 Pedro Alves <palves@redhat.com>
4772
4773 * completer.c (expression_completer): Remove code that recomputes
4774 'text' from 'word'.
4775
4776 2017-06-29 Yao Qi <yao.qi@linaro.org>
4777
4778 * regformats/regdat.sh: Generate code with
4779 "ifndef IN_PROCESS_AGENT".
4780
4781 2017-06-28 Pedro Alves <palves@redhat.com>
4782
4783 * command.h: Include "common/scoped_restore.h".
4784
4785 2017-06-28 Yao Qi <yao.qi@linaro.org>
4786
4787 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4788 instead of obstack_grow.
4789
4790 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4791
4792 PR gdb/21337
4793 * symfile.c (reread_symbols): Call objfiles_changed just before
4794 read_symbols.
4795
4796 2017-06-27 Pedro Alves <palves@redhat.com>
4797
4798 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4799 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4800 (completion_list_add_symbol, completion_list_add_msymbol):
4801 ... these new functions.
4802 (add_symtab_completions)
4803 (default_make_symbol_completion_list_break_on_1): Adjust.
4804
4805 2017-06-27 Pedro Alves <palves@redhat.com>
4806
4807 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4808 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4809 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4810 dtor.
4811 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4812 'storage_obstack' field an auto_obstack. In-class initialize all
4813 non-bitfield fields. Make minsyms_read bool.
4814 * symfile.c (read_symbols): Adjust.
4815
4816 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4817
4818 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4819 (gdbsim_store_register): Likewise.
4820
4821 2017-06-27 Pedro Alves <palves@redhat.com>
4822
4823 * c-exp.y (name_obstack): Now an auto_obstack.
4824 (yylex): Use auto_obstack::clear.
4825 (c_parse): Use auto_obstack::clear instead of reinitializing and
4826 freeing the obstack.
4827 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4828 * d-exp.y (name_obstack): Now an auto_obstack.
4829 (yylex): Use auto_obstack::clear.
4830 (d_parse): Use auto_obstack::clear instead of reinitializing and
4831 freeing the obstack.
4832 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4833 auto_obstack.
4834 * dwarf2read.c (create_addrmap_from_index)
4835 (dwarf2_build_psymtabs_hard)
4836 (update_enumeration_type_from_children): Likewise.
4837 * gdb_obstack.h (auto_obstack): New type.
4838 * go-exp.y (name_obstack): Now an auto_obstack.
4839 (build_packaged_name): Use auto_obstack::clear.
4840 (go_parse): Use auto_obstack::clear instead of reinitializing and
4841 freeing the obstack.
4842 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4843 auto_obstack.
4844 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4845 * rust-exp.y (work_obstack): Now an auto_obstack.
4846 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4847 reinitializing and freeing the obstack.
4848 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4849 (host_char_to_target): Use auto_obstack.
4850 * utils.h (make_cleanup_obstack_free): Delete declaration.
4851 * valprint.c (generic_emit_char, generic_printstr): Use
4852 auto_obstack.
4853
4854 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4855
4856 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4857 thread.
4858 (darwin_init_thread_list): Don't update dummy thread.
4859 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4860
4861 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4862
4863 * record-full.c (netorder16): Remove.
4864
4865 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4866
4867 * common/diagnostics.h: Define macros for GCC.
4868 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4869 * common/vec.h: Include diagnostics.h.
4870 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4871 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4872 warning.
4873
4874 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4875
4876 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4877 New macro.
4878 * ada-lex.l: Ignore deprecated register warnings.
4879
4880 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4881
4882 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4883 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4884
4885 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4886
4887 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4888 its own line.
4889
4890 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4891
4892 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4893
4894 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4895
4896 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4897 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4898 (xtensa_register_read_masked): Likewise.
4899
4900 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4901
4902 * common/environ.c (gdb_environ::unset): Update comment.
4903
4904 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4905
4906 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4907 registers.
4908
4909 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4910
4911 * record-full.c (record_full_exec_insn): Use byte_vector.
4912
4913 2017-06-22 Yao Qi <yao.qi@linaro.org>
4914
4915 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4916 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4917
4918 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4919
4920 * remote.c (cached_reg): Move from here...
4921 * regcache.h (cached_reg): ...to here.
4922 * python/py-unwind.c (struct reg_info): Remove.
4923 (cached_frame_info): Use cached_reg_t.
4924 (pyuw_prev_register): Likewise.
4925 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4926 (pyuw_dealloc_cache): Free all registers.
4927
4928 2017-06-22 Pedro Alves <palves@redhat.com>
4929 Simon Marchi <simon.marchi@ericsson.com>
4930
4931 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4932 warning.
4933 * common/diagnostics.h: New file.
4934
4935 2017-06-22 Pedro Alves <palves@redhat.com>
4936
4937 * common/agent.h: Add include guards.
4938
4939 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4940
4941 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4942 talk about addressable units instead of bytes.
4943
4944 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4945
4946 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4947 of '::const_iterator'.
4948
4949 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4950
4951 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4952 'unittests/environ-selftests.c'.
4953 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4954 * charset.c (find_charset_names): Declare object 'iconv_env'.
4955 Update code to use 'iconv_env' object. Remove call to
4956 'free_environ'.
4957 * common/environ.c: Include <utility>.
4958 (make_environ): Delete function.
4959 (free_environ): Delete function.
4960 (gdb_environ::clear): New function.
4961 (gdb_environ::operator=): New function.
4962 (gdb_environ::get): Likewise.
4963 (environ_vector): Delete function.
4964 (set_in_environ): Delete function.
4965 (gdb_environ::set): New function.
4966 (unset_in_environ): Delete function.
4967 (gdb_environ::unset): New function.
4968 (gdb_environ::envp): Likewise.
4969 * common/environ.h: Include <vector>.
4970 (struct gdb_environ): Delete; transform into...
4971 (class gdb_environ): ... this class.
4972 (free_environ): Delete prototype.
4973 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4974 environ_vector): Likewise.
4975 * infcmd.c (run_command_1): Update code to call
4976 'envp' from 'gdb_environ' class.
4977 (environment_info): Update code to call methods from 'gdb_environ'
4978 class.
4979 (unset_environment_command): Likewise.
4980 (path_info): Likewise.
4981 (path_command): Likewise.
4982 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4983 (inferior::inferior): Initialize 'environment' using the host's
4984 information.
4985 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4986 Include "environ.h".
4987 (class inferior) <environment>: Change type from 'struct
4988 gdb_environ' to 'gdb_environ'.
4989 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4990 methods from 'gdb_environ' class.
4991 * solib.c (solib_find_1): Likewise
4992 * unittests/environ-selftests.c: New file.
4993
4994 2017-06-20 Yao Qi <yao.qi@linaro.org>
4995
4996 * features/i386/i386-linux.xml: Exchange the order of including
4997 32bit-linux.xml and 32bit-sse.xml.
4998 * features/i386/i386-linux.c: Regenerated.
4999
5000 2017-06-20 Yao Qi <yao.qi@linaro.org>
5001
5002 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5003 Delete copy ctor and assignment operator.
5004 (tdesc_type): Likewise.
5005 (tdesc_feature): Likewise.
5006 (tdesc_free_reg): Remove.
5007 (tdesc_create_reg): Use new.
5008 (tdesc_free_type): Remove.
5009 (tdesc_create_vector): Use new.
5010 (tdesc_create_union): Likewise.
5011 (tdesc_create_flags): Likewise.
5012 (tdesc_create_enum): Likewise.
5013 (tdesc_free_feature): Delete.
5014 (free_target_description): Use delete.
5015
5016 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5017
5018 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5019 registers.
5020
5021 2017-06-19 Pedro Alves <palves@redhat.com>
5022
5023 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5024 after gdb::unlinker.
5025
5026 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5027
5028 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5029 gdb_environ to access an environment variable.
5030
5031 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5032
5033 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5034 gdb_byte*.
5035
5036 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5037
5038 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5039
5040 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5041
5042 * configure: Re-generate.
5043 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5044
5045 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5046
5047 * configure: Re-generate.
5048 * warning.m4: Pass -Werror to compiler when checking for
5049 supported warning flags.
5050
5051 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5052
5053 * Makefile.in (COMPILE.pre): Add "-x c++".
5054
5055 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5056 Pedro Alves <palves@redhat.com>
5057 Yao Qi <yao.qi@linaro.org>
5058
5059 * defs.h (RequireLongest): New.
5060 (extract_integer): Declare function template.
5061 (extract_signed_integer): Remove the declaration, but define it
5062 static inline.
5063 (extract_unsigned_integer): Likewise.
5064 (store_integer): Declare function template.
5065 (store_signed_integer): Remove the declaration, but define it
5066 static inline.
5067 (store_unsigned_integer): Likewise.
5068 * findvar.c (extract_integer): New function template.
5069 (extract_signed_integer): Remove.
5070 (extract_unsigned_integer): Remove.
5071 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5072 instantiations.
5073 (store_integer): New function template.
5074 (store_signed_integer): Remove.
5075 (store_unsigned_integer): Remove.
5076 (store_integer): Explicit instantiations.
5077 * regcache.c (regcache_raw_read_signed): Update.
5078 (regcache::raw_read): New function.
5079 (regcache::raw_read_signed): Remove.
5080 (regcache::raw_read_unsigned): Remove.
5081 (regcache_raw_read_unsigned): Update.
5082 (regcache_raw_write_unsigned): Update.
5083 (regcache::raw_write_signed): Remove.
5084 (regcache::raw_write): New function.
5085 (regcache_cooked_read_signed): Update.
5086 (regcache::raw_write_unsigned): Remove.
5087 (regcache::cooked_read_signed): Remove.
5088 (regcache_cooked_read_unsigned): Update.
5089 (regcache::cooked_read_unsigned): Remove.
5090 (regcache_cooked_write_signed): Update.
5091 (regcache_cooked_write_unsigned): Update.
5092 * regcache.h (regcache) <raw_read_signed>: Remove.
5093 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5094 <raw_read, raw_write>: New.
5095 <cooked_read_signed, cooked_write_signed>: Remove.
5096 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5097 <cooked_read, cooked_write>: New.
5098 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5099 (sh64_pseudo_register_write): Update.
5100
5101 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5102
5103 * arc-tdep.c (arc_disassembler_options): New variable.
5104 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5105 of default_print_insn.
5106 (arc_delayed_print_insn): Set info->section when needed,
5107 use default_print_insn to retrieve a disassembler.
5108
5109 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5110
5111 PR gdb/21574
5112 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5113 to mention $SHELL and startup-with-shell.
5114
5115 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5116
5117 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5118
5119 2017-06-14 Yao Qi <yao.qi@linaro.org>
5120
5121 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5122 default_print_insn instead of print_insn_aarch64.
5123 * arm-tdep.c (gdb_print_insn_arm): Call
5124 default_print_insn instead of print_insn_big_arm
5125 and print_insn_little_arm.
5126 * i386-tdep.c (i386_print_insn): Call default_print_insn
5127 instead of print_insn_i386.
5128 * ia64-tdep.c (ia64_print_insn): Call
5129 default_print_insn instead of print_insn_ia64.
5130 * mips-tdep.c (gdb_print_insn_mips): Call
5131 default_print_insn instead of print_insn_big_mips
5132 and print_insn_little_mips.
5133 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5134 instead of print_insn_spu.
5135
5136 2017-06-14 Pedro Alves <palves@redhat.com>
5137
5138 * ada-lang.c: Include "common/byte-vector.h".
5139 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5140 * charset.c (wchar_iterator::iterate): Resize the vector instead
5141 of reserving it.
5142 * common/byte-vector.h: Include "common/def-vector.h".
5143 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5144 * cli/cli-dump.c: Include "common/byte-vector.h".
5145 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5146 * common/byte-vector.h: New file.
5147 * common/def-vector.h: New file.
5148 * common/default-init-alloc.h: New file.
5149 * dwarf2loc.c: Include "common/byte-vector.h".
5150 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5151 instead of reserving it.
5152 * dwarf2read.c: Include "common/byte-vector.h".
5153 (data_buf::m_vec): Now a gdb::byte_vector.
5154 * gdb_regex.c: Include "common/def-vector.h".
5155 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5156 * mi/mi-main.c: Include "common/byte-vector.h".
5157 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5158 * printcmd.c: Include "common/byte-vector.h".
5159 (print_scalar_formatted): Use gdb::byte_vector.
5160 * valprint.c: Include "common/byte-vector.h".
5161 (maybe_negate_by_bytes, print_decimal_chars): Use
5162 gdb::byte_vector.
5163
5164 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5165
5166 * darwin-nat.c: Include "nat/fork-inferior.h".
5167
5168 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5169
5170 * configure.nat: Factor out Darwin bits that are not
5171 architecture-specific. Add fork-inferior.o.
5172
5173 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5174
5175 * configure.nat: Factor out AIX bits that are not
5176 architecture-specific. Add fork-inferior.o.
5177
5178 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5179
5180 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5181 (read_pieced_value, write_pieced_value): ...here. Reduce to
5182 wrappers that just call rw_pieced_value.
5183
5184 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5185
5186 * dwarf2loc.c (write_pieced_value): When writing the data for a
5187 memory piece, use write_memory_with_notification instead of
5188 write_memory.
5189
5190 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5191
5192 * valops.c (read_value_memory): Change embedded_offset to
5193 represent a bit offset instead of a byte offset.
5194 * value.h (read_value_memory): Adjust comment.
5195
5196 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5197
5198 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5199 dest_offset_bits and source_offset_bits.
5200 (write_pieced_value): Likewise.
5201
5202 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5203
5204 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5205 given by DW_OP_bit_piece.
5206 (write_pieced_value): Likewise.
5207
5208 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5209
5210 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5211 some other preparations to the places where sufficient information
5212 is available.
5213 (write_pieced_value): Likewise.
5214
5215 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5216
5217 * dwarf2loc.c (bits_to_bytes): New function.
5218 (read_pieced_value): Fix offset calculations for register pieces
5219 on big-endian targets.
5220 (write_pieced_value): Likewise.
5221
5222 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5223
5224 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5225 (write_pieced_value): Likewise.
5226
5227 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5228
5229 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5230 transfer the source value's least significant bits, instead of its
5231 lowest-addressed ones. Rename type_len to max_offset.
5232 (read_pieced_value): Mirror above changes to write_pieced_value as
5233 applicable.
5234
5235 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5236
5237 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5238 truncate full bytes from dest_offset_bits before using it as an
5239 offset into the buffer.
5240
5241 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5242
5243 * dwarf2loc.c (write_pieced_value): Include transfer size in
5244 byte-wise check.
5245
5246 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5247
5248 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5249 calculation of this_size.
5250
5251 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5252
5253 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5254 when targeting a bit-field.
5255 (write_pieced_value): Likewise.
5256
5257 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5258
5259 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5260 (allocate_piece_closure): Drop addr_size parameter.
5261 (dwarf2_evaluate_loc_desc_full): Adjust call to
5262 allocate_piece_closure.
5263
5264 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5265
5266 PR gdb/21226
5267 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5268 the LSB end, independent of endianness.
5269
5270 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5271
5272 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5273 size capping.
5274
5275 2017-06-13 Yao Qi <yao.qi@linaro.org>
5276
5277 * mips-linux-nat.c: Move include features/mips*-linux.c to
5278 mips-linux-tdep.c.
5279 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5280 to mips-linux-tdep.c.
5281 * mips-linux-tdep.c: Include features/mips*-linux.c
5282 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5283 functions.
5284 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5285 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5286 (tdesc_mips64_dsp_linux): Declare.
5287
5288 2017-06-12 Tom Tromey <tom@tromey.com>
5289
5290 * valprint.h (val_print_type_code_int): Remove.
5291 * valprint.c (generic_val_print_int): Always call
5292 val_print_scalar_formatted.
5293 (val_print_type_code_int): Remove.
5294 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5295 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5296 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5297 * ada-valprint.c (ada_val_print_num): Use
5298 val_print_scalar_formatted.
5299
5300 2017-06-12 Tom Tromey <tom@tromey.com>
5301
5302 * printcmd.c (print_scalar_formatted): Unify the two switches.
5303 Don't convert scalars to LONGEST.
5304
5305 2017-06-12 Tom Tromey <tom@tromey.com>
5306
5307 PR exp/16225:
5308 * valprint.h (print_decimal_chars): Update.
5309 * valprint.c (maybe_negate_by_bytes): New function.
5310 (print_decimal_chars): Add "is_signed" argument.
5311 * printcmd.c (print_scalar_formatted): Update.
5312
5313 2017-06-12 Tom Tromey <tom@tromey.com>
5314
5315 PR exp/16225:
5316 * valprint.h (print_binary_chars, print_hex_chars): Update.
5317 * valprint.c (val_print_type_code_int): Update.
5318 (print_binary_chars): Add "zero_pad" argument.
5319 (emit_octal_digit): New function.
5320 (print_octal_chars): Don't zero-pad.
5321 (print_decimal_chars): Likewise.
5322 (print_hex_chars): Add "zero_pad" argument.
5323 * sh64-tdep.c (sh64_do_fp_register): Update.
5324 * regcache.c (regcache::dump): Update.
5325 * printcmd.c (print_scalar_formatted): Update.
5326 * infcmd.c (default_print_one_register_info): Update.
5327
5328 2017-06-12 Pedro Alves <palves@redhat.com>
5329 Alan Hayward <alan.hayward@arm.com>
5330
5331 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5332 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5333 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5334 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5335 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5336
5337 2017-06-12 Pedro Alves <palves@redhat.com>
5338
5339 * dwarf2read.c (mapped_symtab::data): Now a vector of
5340 symtab_index_entry instead of vector of
5341 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5342 whether an element's name is NULL instead of checking whether the
5343 element itself is NULL.
5344 (find_slot): Change return type. Adjust.
5345 (hash_expand, , add_index_entry, uniquify_cu_indices)
5346 (write_hash_table): Adjust.
5347
5348 2017-06-12 Pedro Alves <palves@redhat.com>
5349
5350 * dwarf2read.c (recursively_count_psymbols): New function.
5351 (write_psymtabs_to_index): Call it to compute number of psyms and
5352 pass estimate size of psyms_seen to unordered_set's ctor.
5353
5354 2017-06-12 Pedro Alves <palves@redhat.com>
5355
5356 * dwarf2read.c (write_hash_table): Check if key already exists
5357 before emplacing.
5358
5359 2017-06-12 Pedro Alves <palves@redhat.com>
5360
5361 * dwarf2read.c (data_buf::append_space): Rename to...
5362 (data_buf::grow): ... this, and make private. Adjust all callers.
5363 (data_buf::append_uint): New method.
5364 (add_address_entry, write_one_signatured_type)
5365 (write_psymtabs_to_index): Use it.
5366
5367 2017-06-12 Pedro Alves <palves@redhat.com>
5368
5369 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5370 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5371 (data_buf::file_write): Call ::fwrite directly.
5372
5373 2017-06-12 Pedro Alves <palves@redhat.com>
5374
5375 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5376 std::vector::erase.
5377
5378 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5379
5380 Code cleanup: C++ify .gdb_index producer.
5381 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5382 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5383 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5384 (create_strtab, add_string): Remove.
5385 (file_write, data_buf): New.
5386 (struct symtab_index_entry): Use std::vector for cu_indices.
5387 (struct mapped_symtab): Use std::vector for data.
5388 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5389 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5390 Remove.
5391 (find_slot): Change return type. Update it to the new data structures.
5392 (hash_expand, add_index_entry): Update it to the new data structures.
5393 (offset_type_compare): Remove.
5394 (uniquify_cu_indices): Update it to the new data structures.
5395 (c_str_view, c_str_view_hasher, vector_hasher): New.
5396 (add_indices_to_cpool): Remove.
5397 (write_hash_table): Update it to the new data structures.
5398 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5399 (eq_psymtab_cu_index): Remove.
5400 (psym_index_map): New typedef.
5401 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5402 reference and std::unordered_map for cu_index_htab.
5403 (add_address_entry, add_address_entry_worker, write_address_map)
5404 (write_psymbols): Update it to the new data structures.
5405 (write_obstack): Remove.
5406 (struct signatured_type_index_data): Change types_list to a data_buf
5407 reference and psyms_seen to a std::unordered_set reference.
5408 (write_one_signatured_type, recursively_write_psymbols)
5409 (write_psymtabs_to_index): Update it to the new data structures.
5410
5411 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5412
5413 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5414 separate-debug-file commands.
5415 * symfile.h (separate_debug_file_debug): New global.
5416 * symfile.c (separate_debug_file_debug): New global.
5417 (separate_debug_file_exists, find_separate_debug_file): Add
5418 debug output.
5419 (_initialize_symfile): Add "set debug separate-debug-file"
5420 command.
5421 * build-id.c (build_id_to_debug_bfd,
5422 find_separate_debug_file_by_buildid): Add debug output.
5423
5424 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * gdbarch.sh (displaced_step_free_closure): Remove.
5427 * gdbarch.h, gdbarch.c: Re-generate.
5428 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5429 displaced_step_free_closure.
5430 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5431 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5432 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5433 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5434 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5435 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5436 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5437 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5438 * infrun.c (displaced_step_clear): Call xfree instead of
5439 gdbarch_displaced_step_free_closure.
5440
5441 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5442
5443 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5444 NULL".
5445
5446 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5447
5448 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5449 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5450 (mn10300_push_dummy_call): Likewise.
5451
5452 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5453
5454 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5455
5456 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5457
5458 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5459
5460 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5461
5462 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5463 able to start inferiors using a shell.
5464 (New remote packets): Announce new packet "QStartupWithShell".
5465 * remote.c: Add PACKET_QStartupWithShell.
5466 (extended_remote_create_inferior): Handle new
5467 PACKET_QStartupWithShell.
5468 (remote_protocol_features) <QStartupWithShell>: New entry for
5469 PACKET_QStartupWithShell.
5470 (_initialize_remote): Call "add_packet_config_cmd" for
5471 QStartupShell.
5472
5473 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5474 Pedro Alves <palves@redhat.com>
5475
5476 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5477 and "nat/fork-inferior.h".
5478 * common/common-inferior.h: New file, with contents from
5479 "gdb/inferior.h".
5480 * commom/common-utils.c: Include "common-utils.h".
5481 (stringify_argv): New function.
5482 * common/common-utils.h (stringify_argv): New prototype.
5483 * configure.nat: Add "fork-inferior.o" as a dependency for
5484 "*linux*", "fbsd*" and "nbsd*" hosts.
5485 * corefile.c (get_exec_file): Update comment.
5486 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5487 instead of "startup_inferior".
5488 (darwin_create_inferior): Call "add_thread_silent" after
5489 "fork_inferior".
5490 * fork-child.c: Cleanup unnecessary includes.
5491 (SHELL_FILE): Move to "common/common-fork-child.c".
5492 (environ): Likewise.
5493 (exec_wrapper): Initialize.
5494 (get_exec_wrapper): New function.
5495 (breakup_args): Move to "common/common-fork-child.c"; rename to
5496 "breakup_args_for_exec".
5497 (escape_bang_in_quoted_argument): Move to
5498 "common/common-fork-child.c".
5499 (saved_ui): New variable.
5500 (prefork_hook): New function.
5501 (postfork_hook): Likewise.
5502 (postfork_child_hook): Likewise.
5503 (gdb_startup_inferior): Likewise.
5504 (fork_inferior): Move to "common/common-fork-child.c". Update
5505 function to support gdbserver.
5506 (startup_inferior): Likewise.
5507 * gdbcore.h (get_exec_file): Remove declaration.
5508 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5509 instead of "startup_inferior". Call "add_thread_silent" after
5510 "fork_inferior".
5511 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5512 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5513 instead of "startup_inferior". Call "add_thread_silent" after
5514 "fork_inferior".
5515 * inferior.h: Include "common-inferior.h".
5516 (trace_start_error): Move to "common/common-utils.h".
5517 (trace_start_error_with_name): Likewise.
5518 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5519 (startup_inferior): Likewise.
5520 (gdb_startup_inferior): New prototype.
5521 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5522 * nat/fork-inferior.h: New file.
5523 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5524 instead of "startup_inferior". Call "add_thread_silent" after
5525 "fork_inferior".
5526 * target.h (target_terminal_init): Move prototype to
5527 "target/target.h".
5528 (target_terminal_inferior): Likewise.
5529 (target_terminal_ours): Likewise.
5530 * target/target.h (target_terminal_init): New prototype, moved
5531 from "target.h".
5532 (target_terminal_inferior): Likewise.
5533 (target_terminal_ours): Likewise.
5534 * utils.c (gdb_flush_out_err): New function.
5535
5536 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5537
5538 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5539 * common/common-gdbthread.h: New file, with parts from
5540 "gdb/gdbthread.h".
5541 * gdbthread.h: Include "common-gdbthread.h".
5542 (switch_to_thread): Moved to "common/common-gdbthread.h".
5543
5544 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5545
5546 * Makefile.in (SFILES): Add "common/job-control.c".
5547 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5548 (COMMON_OBS): Add "job-control.o".
5549 * common/job-control.c: New file, with contents from
5550 "gdb/inflow.c".
5551 * common/job-control.h: New file, with contents from "terminal.h".
5552 * fork-child.c: Include "job-control.h".
5553 * inflow.c: Include "job-control.h".
5554 (gdb_setpgid): Move to "common/common-inflow.c".
5555 (_initialize_inflow): Move setting of "job_control" to
5556 "handle_job_control".
5557 * terminal.h (job_control): Moved to "common/common-terminal.h".
5558 (gdb_setpgid): Likewise.
5559 * top.c: Include "job_control.h".
5560 * utils.c: Likewise.
5561 (job_control): Moved to "job-control.c".
5562
5563 2017-06-07 Pedro Alves <palves@redhat.com>
5564
5565 * Makefile.in (SFILES): Add gdb_regex.c.
5566 (COMMON_OBS): Add gdb_regex.o.
5567 * ada-lang.c (ada_add_standard_exceptions)
5568 (ada_add_exceptions_from_frame, name_matches_regex)
5569 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5570 parameter type to compiled_regex. Adjust.
5571 (ada_exceptions_list): Use compiled_regex.
5572 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5573 std::unique_ptr<compiled_regex>.
5574 (exception_catchpoint::~exception_catchpoint): Remove regfree
5575 call.
5576 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5577 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5578 * breakpoint.c (solib_catchpoint::compiled): Now a
5579 std::unique_ptr<compiled_regex>.
5580 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5581 (check_status_catch_solib): Adjust to use compiled_regex.
5582 (add_solib_catchpoint): Adjust to use compiled_regex.
5583 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5584 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5585 compiled_regex reference. Adjust to use it.
5586 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5587 declaration. Include "gdb_regex.h".
5588 (apropos_cmd): Change regex parameter to compiled_regex reference.
5589 * gdb_regex.c: New file.
5590 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5591 declarations.
5592 (class compiled_regex): New.
5593 * linux-tdep.c: Include "common/gdb_optional.h".
5594 (struct mapping_regexes): New, factored out from
5595 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5596 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5597 gdb::optional and remove cleanups. Adjust to compiled_regex.
5598 * probe.c: Include "common/gdb_optional.h".
5599 (collect_probes): Use compiled_regex and gdb::optional and remove
5600 cleanups.
5601 * skip.c: Include "common/gdb_optional.h".
5602 (skiplist_entry::compiled_function_regexp): Now a
5603 gdb::optional<compiled_regex>.
5604 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5605 (free_skiplist_entry): Remove regfree call.
5606 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5607 compiled_regex and gdb::optional.
5608 * symtab.c: Include "common/gdb_optional.h".
5609 (search_symbols): Use compiled_regex and gdb::optional.
5610 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5611 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5612 to gdb_regex.c.
5613
5614 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5615
5616 * regcache.c (regcache::save): Avoid buffer use.
5617 (regcache::dump): Likewise.
5618
5619 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5620
5621 * sh-tdep.c (sh_pseudo_register_read): Remove
5622 MAX_REGISTER_SIZE.
5623 (sh_pseudo_register_write): Likewise.
5624 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5625 (sh64_pseudo_register_write): Likewise
5626
5627 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5628
5629 * aarch64-tdep.c (aarch64_store_return_value): Use
5630 V_REGISTER_SIZE.
5631 (aarch64_pseudo_read_value): Likewise.
5632 (aarch64_pseudo_write): Likewise.
5633
5634 2017-06-06 Yao Qi <yao.qi@linaro.org>
5635
5636 * regformats/regdef.h (set_register_cache): Remove the
5637 declaration.
5638
5639 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5640
5641 * frame.c (frame_unwind_register_signed): Use
5642 frame_unwind_register_value.
5643
5644 2017-06-06 Pedro Alves <palves@redhat.com>
5645
5646 PR breakpoints/21553
5647 * breakpoint.c (create_breakpoints_sal_default)
5648 (init_breakpoint_sal, create_breakpoint_sal): Use
5649 gdb::unique_xmalloc_ptr for string parameters.
5650 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5651 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5652 (base_breakpoint_create_breakpoints_sal)
5653 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5654 (strace_marker_create_breakpoints_sal)
5655 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5656 string parameters.
5657 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5658 gdb::unique_xmalloc_ptr for string parameters.
5659 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5660 parameters.
5661
5662 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5663
5664 * alpha-tdep.c (alpha_register_to_value): Use
5665 get_frame_register_value.
5666 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5667
5668 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5669
5670 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5671 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5672 (ia64_value_to_register): Likewise.
5673 (ia64_extract_return_value): Likewise.
5674 (ia64_store_return_value): Likewise.
5675 (ia64_push_dummy_call): Likewise.
5676
5677 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5678
5679 GDB 8.0 released.
5680
5681 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5682
5683 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5684
5685 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5686
5687 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5688 parameter.
5689 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5690
5691 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5692
5693 * event-loop.c (poll_timers): Unallocate timer using delete
5694 instead of xfree.
5695
5696 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5699 (struct breakpoint) <~breakpoint>: New.
5700 (struct watchpoint): Inherit from breakpoint.
5701 <~watchpoint>: New.
5702 <base>: Remove.
5703 (struct tracepoint): Inherit from breakpoint.
5704 <base>: Remove.
5705 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5706 (struct longjmp_breakpoint): Inherit from breakpoint.
5707 <~longjmp_breakpoint>: New.
5708 <base>: Remove.
5709 (new_breakpoint_from_type): Remove casts.
5710 (watchpoint_in_thread_scope): Remove reference to base field.
5711 (watchpoint_del_at_next_stop): Likewise.
5712 (update_watchpoint): Likewise.
5713 (watchpoint_check): Likewise.
5714 (bpstat_check_watchpoint): Likewise.
5715 (set_longjmp_breakpoint): Likewise.
5716 (struct fork_catchpoint): Inherit from breakpoint.
5717 <base>: Remove.
5718 (struct solib_catchpoint): Inherit from breakpoint.
5719 <~solib_catchpoint>: New.
5720 <base>: Remove.
5721 (dtor_catch_solib): Change to ...
5722 (solib_catchpoint::~solib_catchpoint): ... this.
5723 (breakpoint_hit_catch_solib): Remove reference to base field.
5724 (add_solib_catchpoint): Likewise.
5725 (create_fork_vfork_event_catchpoint): Likewise.
5726 (struct exec_catchpoint): Inherit from breakpoint.
5727 <~exec_catchpoint>: New.
5728 <base>: Remove.
5729 (dtor_catch_exec): Change to ...
5730 (exec_catchpoint::~exec_catchpoint): ... this.
5731 (dtor_watchpoint): Change to ...
5732 (watchpoint::~watchpoint): ... this.
5733 (watch_command_1): Remove reference to base field.
5734 (catch_exec_command_1): Likewise.
5735 (base_breakpoint_dtor): Change to ...
5736 (breakpoint::~breakpoint): ... this.
5737 (base_breakpoint_ops): Remove dtor field value.
5738 (longjmp_bkpt_dtor): Change to ...
5739 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5740 (strace_marker_create_breakpoints_sal): Remove reference to base
5741 field.
5742 (delete_breakpoint): Don't manually call breakpoint destructor.
5743 (create_tracepoint_from_upload): Remove reference to base field.
5744 (trace_pass_set_count): Likewise.
5745 (initialize_breakpoint_ops): Don't initialize
5746 momentary_breakpoint_ops, don't set dtors.
5747 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5748 <~ada_catchpoint>: New.
5749 <base>: Remove.
5750 (create_excep_cond_exprs): Remove reference to base field.
5751 (dtor_exception): Change to ...
5752 (ada_catchpoint::~ada_catchpoint): ... this.
5753 (dtor_catch_exception): Remove.
5754 (dtor_catch_exception_unhandled): Remove.
5755 (dtor_catch_assert): Remove.
5756 (create_ada_exception_catchpoint): Remove reference to base
5757 field.
5758 (initialize_ada_catchpoint_ops): Don't set dtors.
5759 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5760 breakpoint.
5761 <~signal_catchpoint>: New.
5762 <base>: Remove.
5763 (signal_catchpoint_dtor): Change to ...
5764 (signal_catchpoint::~signal_catchpoint): ... this.
5765 (create_signal_catchpoint): Remove reference to base field.
5766 (initialize_signal_catchpoint_ops): Don't set dtor.
5767 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5768 from breakpoint.
5769 <~syscall_catchpoint>: New.
5770 <base>: Remove.
5771 (dtor_catch_syscall): Change to ...
5772 (syscall_catchpoint::~syscall_catchpoint): ... this.
5773 (create_syscall_event_catchpoint): Remove reference to base
5774 field.
5775 (initialize_syscall_catchpoint_ops): Don't set dtor.
5776 * break-catch-throw.c (struct exception_catchpoint): Inherit
5777 from breakpoint.
5778 <~exception_catchpoint>: New.
5779 <base>: Remove.
5780 (dtor_exception_catchpoint): Change to ...
5781 (exception_catchpoint::~exception_catchpoint): ... this.
5782 (handle_gnu_v3_exceptions): Remove reference to base field.
5783 (initialize_throw_catchpoint_ops): Don't set dtor.
5784 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5785 field.
5786 * remote.c (remote_get_tracepoint_status): Likewise.
5787 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5788 * tracefile.c (tracefile_fetch_registers): Likewise.
5789 * tracepoint.c (actions_command): Likewise.
5790 (validate_actionline): Likewise.
5791 (tfind_1): Likewise.
5792 (get_traceframe_location): Likewise.
5793 (find_matching_tracepoint_location): Likewise.
5794 (parse_tracepoint_status): Likewise.
5795 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5796
5797 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * breakpoint.c (struct longjmp_breakpoint): New struct.
5800 (is_tracepoint_type): Change return type to bool.
5801 (is_longjmp_type): New function.
5802 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5803 (set_raw_breakpoint_without_location): Use
5804 new_breakpoint_from_type.
5805 (set_raw_breakpoint): Likewise.
5806
5807 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * breakpoint.c (new_breakpoint_from_type): New function.
5810 (create_breakpoint_sal): Use new_breakpoint_from_type and
5811 unique_ptr.
5812 (create_breakpoint): Likewise.
5813
5814 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5815
5816 * memattr.c (mem_info_command): Rename to ...
5817 (info_mem_command): ... this.
5818 (mem_enable_command): Rename to ...
5819 (enable_mem_command): ... this.
5820 (mem_disable_command): Rename to ...
5821 (disable_mem_command): ... this.
5822 (mem_delete_command): Rename to ...
5823 (delete_mem_command): ... this.
5824 (_initialize_mem): Adjust function names.
5825
5826 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5827
5828 * btrace.c (handle_pt_insn_events): New.
5829 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5830 STATUS. Split into this and ...
5831 (handle_pt_insn_event_flags): ... this.
5832
5833 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5834
5835 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5836 and struct pt_insn.resynced.
5837 * configure: Regenerated.
5838 * config.in: Regenerated.
5839
5840 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5841
5842 * btrace.c (ftrace_find_call_by_number): New function.
5843 (ftrace_new_function): Store objects, not pointers.
5844 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5845 ftrace_new_gap, ftrace_update_function,
5846 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5847 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5848 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5849 btrace_ends_with_single_insn, btrace_call_get): Account for
5850 btrace_thread_info::functions now storing objects.
5851 * btrace.h (struct btrace_thread_info): Add constructor.
5852 (struct btrace_thread_info) <functions>: Make std::vector.
5853 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5854 Initialize with default values.
5855 * record-btrace.c (record_btrace_frame_sniffer): Account for
5856 btrace_thread_info::functions now storing objects.
5857
5858 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5859
5860 * btrace.c: Remove typedef bfun_s.
5861 (ftrace_new_gap): Directly add gaps to the list of gaps.
5862 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5863 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5864 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5865 instead of gdb VEC.
5866
5867 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5868
5869 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5870 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5871 with btrace_thread_info::next_segment and
5872 btrace_thread_info::prev_segment.
5873 * btrace.h: Remove struct btrace_func_link.
5874 (struct btrace_function): Replace pair of function segment pointers
5875 with pair of indices.
5876 * python/py-record-btrace.c (btpy_call_prev_sibling,
5877 btpy_call_next_sibling): Replace references to
5878 btrace_thread_info::segment with btrace_thread_info::next_segment and
5879 btrace_thread_info::prev_segment.
5880 * record-btrace.c (record_btrace_frame_this_id): Use
5881 btrace_find_call_by_number.
5882
5883 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5884
5885 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5886 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5887 btrace_insn_next, btrace_insn_prev): Remove references to
5888 btrace_thread_info::flow.
5889 * btrace.h (struct btrace_function): Remove FLOW.
5890
5891 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5892
5893 * btrace.c (ftrace_find_call_by_number): New function.
5894 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5895 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5896 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5897 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5898 index.
5899 * btrace.h (struct btrace_function): Turn UP into an index.
5900 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5901 as an index.
5902 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5903 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5904 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5905
5906 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5907
5908 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5909 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5910 ftrace_update_function, ftrace_compute_global_level_offset,
5911 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5912 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5913 btrace_insn_end, btrace_is_empty): Remove references to
5914 btrace_thread_info::begin and btrace_thread_info::end.
5915 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5916 (struct btrace_thread_info) <functions>: Adjust comment.
5917 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5918 btrace_thread_info::begin.
5919
5920 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5921
5922 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5923 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5924 ftrace_update_function): Remove arguments that implicitly were always
5925 BTINFO->END.
5926 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5927 Don't pass BTINFO->END.
5928
5929 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5930
5931 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5932 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5933 btrace_find_insn_by_number): Replace function segment pointer with
5934 index.
5935 (btrace_insn_cmp): Simplify.
5936 * btrace.h: (struct btrace_insn_iterator) Rename index to
5937 insn_index. Replace function segment pointer with index into function
5938 segment vector.
5939 * record-btrace.c (record_btrace_call_history): Replace function
5940 segment pointer use with index.
5941 (record_btrace_frame_sniffer): Retrieve function call segment through
5942 vector.
5943 (record_btrace_set_replay): Remove defunc't safety check.
5944
5945 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5946
5947 * btrace.c (btrace_ends_with_single_insn): New function.
5948 (btrace_call_get, btrace_call_number, btrace_call_begin,
5949 btrace_call_end, btrace_call_next, btrace_call_prev,
5950 btrace_find_call_by_number): Use index into call segment vector
5951 instead of pointer.
5952 (btrace_call_cmp): Simplify.
5953 * btrace.h (struct btrace_call_iterator): Replace function call segment
5954 pointer with index into vector.
5955 * record-btrace.c (record_btrace_call_history): Use index instead of
5956 pointer.
5957
5958 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5959
5960 * btrace.c (btrace_insn_begin, btrace_insn_end,
5961 btrace_find_insn_by_number): Add btinfo to iterator.
5962 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5963
5964 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5965
5966 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5967 and save pointers directly.
5968 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5969 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5970 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5971 changed signature of functions.
5972 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5973 (btrace_fetch): Remove code that adds btrace_function pointers to
5974 vector of btrace_functions.
5975 (btrace_clear): Simplify freeing vector of btrace_functions.
5976
5977 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5978
5979 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5980 Replace VEC_* with std::vector functions.
5981 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5982 (struct btrace_thread_info)<functions>: Change type to std::vector.
5983
5984 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5985
5986 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5987 "Removed targets and native configurations" up. Merge duplicate
5988 "New commands" sub-sections. Add "New options" sub-sections.
5989
5990 2017-05-26 Alan Hayward <alan.hayward@arm.com>
5991
5992 * defs.h (copy_integer_to_size): New declaration.
5993 * findvar.c (copy_integer_to_size): New function.
5994 (do_cint_test): New selftest function.
5995 (copy_integer_to_size_test): Likewise.
5996 (_initialize_findvar): Likewise.
5997 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5998 (mips_fbsd_collect_reg): Use raw_collect_integer.
5999 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6000 (mips64_fill_gregset): Use raw_collect_integer
6001 (mips64_fill_fpregset): Use raw_supply_integer.
6002 * regcache.c (regcache::raw_supply_integer): New function.
6003 (regcache::raw_collect_integer): Likewise.
6004 * regcache.h: (regcache::raw_supply_integer): New declaration.
6005 (regcache::raw_collect_integer): Likewise.
6006
6007 2017-05-24 Yao Qi <yao.qi@linaro.org>
6008
6009 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6010 (COMMON_OBS): Add gdbarch-selftests.o.
6011 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6012 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6013 * gdbarch-selftests.c: New file.
6014 * regcache.h (regcache) <~regcache>: Mark it virtual if
6015 GDB_SELF_TEST.
6016 <raw_write>: Likewise.
6017
6018 2017-05-24 Yao Qi <yao.qi@linaro.org>
6019
6020 * regcache.c (current_regcache): Change it to
6021 regcache::current_regcache.
6022 (regcache_observer_target_changed): Update.
6023 (regcache_thread_ptid_changed): Make it a regcache static
6024 method.
6025 (regcache_thread_ptid_changed): Update.
6026 (class regcache_access): New.
6027 (current_regcache_test): Update.
6028 (_initialize_regcache): Update.
6029 * regcache.h: Include forward_list.
6030 (regcache): Declare regcache_thread_ptid_changed and declare
6031 registers_changed_ptid as friend.
6032
6033 2017-05-24 Yao Qi <yao.qi@linaro.org>
6034
6035 * i387-tdep.c (i387_register_to_value): Use register_size
6036 instead of TYPE_LENGTH.
6037 * m68k-tdep.c (m68k_register_to_value): Likewise.
6038
6039 2017-05-24 Yao Qi <yao.qi@linaro.org>
6040
6041 * i387-tdep.c (i387_convert_register_p): Return false if type
6042 code isn't TYPE_CODE_FLT.
6043
6044 2017-05-24 Yao Qi <yao.qi@linaro.org>
6045
6046 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6047 length is 4.
6048 (alpha_register_to_value): Remove type length check.
6049 (alpha_value_to_register): Likewise.
6050
6051 2017-05-24 Yao Qi <yao.qi@linaro.org>
6052
6053 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6054 TYPE_CODE_FLT.
6055
6056 2017-05-24 Yao Qi <yao.qi@linaro.org>
6057
6058 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6059 TYPE_CODE_FLT or not.
6060
6061 2017-05-24 Yao Qi <yao.qi@linaro.org>
6062
6063 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6064 * avr-tdep.c (avr_gdbarch_init): Likewise.
6065 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6066 * cris-tdep.c (cris_gdbarch_init): Likewise.
6067 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6068 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6069 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6071 * mep-tdep.c (mep_gdbarch_init): Likewise.
6072 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6073 * mips-tdep.c (mips_gdbarch_init): Likewise.
6074 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6075 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6076 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6077 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6078 * v850-tdep.c (v850_gdbarch_init): Likewise.
6079
6080 2017-05-24 Yao Qi <yao.qi@linaro.org>
6081
6082 * selftest-arch.c (tests_with_arch): Call registers_changed
6083 and reinit_frame_cache.
6084 * selftest.c (run_self_tests): Likewise.
6085
6086 2017-05-24 Yao Qi <yao.qi@linaro.org>
6087
6088 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6089 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6090
6091 2017-05-24 Yao Qi <yao.qi@linaro.org>
6092
6093 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6094 set_gdbarch_print_insn.
6095
6096 2017-05-24 Yao Qi <yao.qi@linaro.org>
6097
6098 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6099 set_gdbarch_print_insn.
6100
6101 2017-05-24 Yao Qi <yao.qi@linaro.org>
6102
6103 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6104 set_gdbarch_print_insn.
6105 * arc-tdep.c (arc_gdbarch_init): Likewise.
6106 * arch-utils.c: include dis-asm.h.
6107 (default_print_insn): New function.
6108 * arch-utils.h (default_print_insn): Declare.
6109 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6110 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6111 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6112 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6113 * frv-tdep.c (frv_gdbarch_init): Likewise.
6114 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6115 * gdbarch.sh (print_insn): Use default_print_insn.
6116 * gdbarch.c: Regenerated.
6117 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6118 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6119 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6120 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6121 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6122 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6123 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6124 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6125 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6126 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6127 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6128 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6129 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6130 * mt-tdep.c (mt_gdbarch_init): Likewise.
6131 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6132 * nios2-tdep.c (nios2_print_insn): Remove.
6133 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6134 * rx-tdep.c (rx_gdbarch_init): Likewise.
6135 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6136 * score-tdep.c (score_print_insn): Remove.
6137 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6138 * sh-tdep.c (sh_gdbarch_init): Likewise.
6139 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6140 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6141 * tic6x-tdep.c (tic6x_print_insn): Remove.
6142 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6143 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6144 * v850-tdep.c (v850_gdbarch_init): Likewise.
6145 * vax-tdep.c (vax_gdbarch_init): Likewise.
6146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6147 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6148
6149 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6150
6151 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6152 (MIPS_FP0_REGNUM): Remove.
6153 (MIPS_FSR_REGNUM): Remove.
6154 (mips_fbsd_supply_fpregs): Use mips_regnum.
6155 (mips_fbsd_supply_gregs): Likewise.
6156 (mips_fbsd_collect_fpregs): Likewise.
6157 (mips_fbsd_collect_gregs): Likewise.
6158
6159 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6160
6161 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6162 (getpfpregs_supplies): New function.
6163 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6164 getfpregs_supplies.
6165 (mips_fbsd_store_inferior_registers): Likewise.
6166
6167 2017-05-22 Pedro Alves <palves@redhat.com>
6168
6169 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6170 maintainer.
6171
6172 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6173
6174 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6175 (store_register): Likewise.
6176 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6177 (get_decimal_float_return_value): Likewise.
6178 (do_ppc_sysv_return_value): Likewise.
6179 (ppc64_sysv_abi_push_integer): Likewise.
6180 (ppc64_sysv_abi_push_freg): Likewise.
6181 (ppc64_sysv_abi_return_value_base): Likewise.
6182 (ppc64_sysv_abi_return_value): Likewise.
6183 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6184 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6185 * rs6000-nat.c: Likewise.
6186 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6187 (rs6000_value_to_register): Likewise.
6188 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6189
6190 2017-05-21 Tom Tromey <tom@tromey.com>
6191
6192 PR rust/21466:
6193 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6194 arrays as "[T]", not "[T; ]".
6195
6196 2017-05-19 Tom Tromey <tom@tromey.com>
6197
6198 PR rust/21484:
6199 * rust-lang.c (exp_descriptor_rust): New function.
6200 (rust_language_defn): Use it.
6201 * p-lang.c (pascal_language_defn): Update.
6202 * opencl-lang.c (opencl_language_defn): Update.
6203 * objc-lang.c (objc_language_defn): Update.
6204 * m2-lang.c (m2_language_defn): Update.
6205 * language.h (struct language_defn)
6206 <la_watch_location_expression>: New member.
6207 * language.c (unknown_language_defn, auto_language_defn)
6208 (local_language_defn): Update.
6209 * go-lang.c (go_language_defn): Update.
6210 * f-lang.c (f_language_defn): Update.
6211 * d-lang.c (d_language_defn): Update.
6212 * c-lang.h (c_watch_location_expression): Declare.
6213 * c-lang.c (c_watch_location_expression): New function.
6214 (c_language_defn, cplus_language_defn, asm_language_defn)
6215 (minimal_language_defn): Use it.
6216 * breakpoint.c (watch_command_1): Call
6217 la_watch_location_expression.
6218 * ada-lang.c (ada_language_defn): Update.
6219
6220 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6221
6222 PR tui/21482
6223 * gdb_curses.h (NOMACROS): Define.
6224 (NCURSES_NOMACROS): Define.
6225
6226 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6227
6228 PR tui/21482
6229 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6230 arg to char *.
6231 * tui/tui-wingeneral.c (box_win): Likewise.
6232 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6233 (tui_show_source_line): Likewise.
6234 (tui_show_exec_info_content): Likewise.
6235
6236 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6237
6238 * sparc-tdep.c (sparc_structure_return_p)
6239 (sparc_arg_on_registers_p): New functions.
6240 (sparc32_store_arguments): Use them.
6241 * sparc64-tdep.c (sparc64_16_byte_align_p)
6242 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6243 Handle TYPE_CODE_ARRAY.
6244
6245 2017-05-17 Yao Qi <yao.qi@linaro.org>
6246
6247 * cli/cli-decode.c (add_alias_cmd): New function.
6248 * command.h (add_alias_cmd): Declare.
6249 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6250 instead call add_alias_cmd.
6251
6252 2017-05-17 Pedro Alves <palves@redhat.com>
6253
6254 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6255 (nat_makefile_frag): ... this. All references updated.
6256 * configure.ac: Likewise.
6257 * configure.nat: Likewise. Enhance comments.
6258 * configure: Regenerate.
6259
6260 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6261
6262 * procfs.c (procfs_create_inferior): Change prototype to match
6263 definition.
6264
6265 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6266
6267 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6268 C++ compiler warning.
6269
6270 2017-05-12 Tom Tromey <tom@tromey.com>
6271
6272 PR rust/21483:
6273 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6274 recurse, just call value_struct_elt directly.
6275
6276 2017-05-12 Tom Tromey <tom@tromey.com>
6277
6278 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6279 OP_RUST_ARRAY>: Fix.
6280
6281 2017-05-12 Tom Tromey <tom@tromey.com>
6282
6283 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6284
6285 2017-05-09 Yao Qi <yao.qi@linaro.org>
6286
6287 * regcache.c: Include <forward_list>.
6288 (struct regcache_list): Remove.
6289 (current_regcache): Update.
6290 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6291 (regcache_thread_ptid_changed): Likewise.
6292 (registers_changed_ptid): Likewise.
6293 (current_regcache_size): Likewise.
6294
6295 2017-05-09 Yao Qi <yao.qi@linaro.org>
6296
6297 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6298 (current_regcache_size): New function.
6299 (current_regcache_test): New function.
6300 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6301
6302 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6303
6304 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6305 (print_gp_register_row): Use get_frame_register_value.
6306
6307 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6308
6309 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6310 (mips_supply_fpregset): Likewise.
6311 (mips64_supply_gregset): Likewise.
6312
6313 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6314
6315 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6316 regcache->raw_supply_zeroed.
6317
6318 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6319
6320 * configure.nat: Rearrange 'case' statements to match
6321 host before cpu.
6322
6323 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6324
6325 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6326 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6327 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6328 "@nat_extra_makefile_frag@".
6329 (Makefile): Remove dependency on "@frags@".
6330 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6331 (data-directory/Makefile): Likewise.
6332 * config/aarch64/linux.mh: Deleted; moved contents to
6333 "gdb/configure.nat".
6334 * config/alpha/alpha-linux.mh: Likewise.
6335 * config/alpha/nbsd.mh: Likewise.
6336 * config/arm/linux.mh: Likewise.
6337 * config/arm/nbsdelf.mh: Likewise.
6338 * config/i386/cygwin.mh: Likewise.
6339 * config/i386/cygwin64.mh: Likewise.
6340 * config/i386/darwin.mh: Likewise.
6341 * config/i386/fbsd.mh: Likewise.
6342 * config/i386/fbsd64.mh: Likewise.
6343 * config/i386/go32.mh: Likewise.
6344 * config/i386/i386gnu.mh: Likewise.
6345 * config/i386/i386sol2.mh: Likewise.
6346 * config/i386/linux.mh: Likewise.
6347 * config/i386/linux64.mh: Likewise.
6348 * config/i386/mingw.mh: Likewise.
6349 * config/i386/mingw64.mh: Likewise.
6350 * config/i386/nbsd64.mh: Likewise.
6351 * config/i386/nbsdelf.mh: Likewise.
6352 * config/i386/nto.mh: Likewise.
6353 * config/i386/obsd.mh: Likewise.
6354 * config/i386/obsd64.mh: Likewise.
6355 * config/i386/sol2-64.mh: Likewise.
6356 * config/ia64/linux.mh: Likewise.
6357 * config/m32r/linux.mh: Likewise.
6358 * config/m68k/linux.mh: Likewise.
6359 * config/m68k/nbsdelf.mh: Likewise.
6360 * config/m68k/obsd.mh: Likewise.
6361 * config/m88k/obsd.mh: Likewise.
6362 * config/mips/fbsd.mh: Likewise.
6363 * config/mips/linux.mh: Likewise.
6364 * config/mips/nbsd.mh: Likewise.
6365 * config/mips/obsd64.mh: Likewise.
6366 * config/pa/linux.mh: Likewise.
6367 * config/pa/nbsd.mh: Likewise.
6368 * config/pa/obsd.mh: Likewise.
6369 * config/powerpc/aix.mh: Likewise.
6370 * config/powerpc/fbsd.mh: Likewise.
6371 * config/powerpc/linux.mh: Likewise.
6372 * config/powerpc/nbsd.mh: Likewise.
6373 * config/powerpc/obsd.mh: Likewise.
6374 * config/powerpc/ppc64-linux.mh: Likewise.
6375 * config/powerpc/spu-linux.mh: Likewise.
6376 * config/s390/linux.mh: Likewise.
6377 * config/sh/nbsd.mh: Likewise.
6378 * config/sparc/fbsd.mh: Likewise.
6379 * config/sparc/linux.mh: Likewise.
6380 * config/sparc/linux64.mh: Likewise.
6381 * config/sparc/nbsd64.mh: Likewise.
6382 * config/sparc/nbsdelf.mh: Likewise.
6383 * config/sparc/obsd64.mh: Likewise.
6384 * config/sparc/sol2.mh: Likewise.
6385 * config/tilegx/linux.mh: Likewise.
6386 * config/vax/nbsdelf.mh: Likewise.
6387 * config/vax/obsd.mh: Likewise.
6388 * config/xtensa/linux.mh: Likewise.
6389 * config/i386/i386gnu.mn: New file, with excerpts from
6390 "config/i386/i386gnu.mh".
6391 * configure: Regenerate.
6392 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6393 *.mh files under "gdb/config".
6394 * configure.nat: New file, with contents from the
6395 "gdb/config/*/*.mh" files.
6396
6397 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6398
6399 * btrace.c (btrace_clear): Free insn vector.
6400
6401 2017-05-05 Pedro Alves <palves@redhat.com>
6402
6403 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6404 * configure: Regenerate.
6405
6406 2017-05-04 Pedro Alves <palves@redhat.com>
6407
6408 * Makefile.in (SFILES): Add progspace-and-thread.c.
6409 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6410 (COMMON_OBS): Add progspace-and-thread.o.
6411 * breakpoint.c: Include "progspace-and-thread.h".
6412 (update_inserted_breakpoint_locations)
6413 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6414 Use scoped_restore_current_pspace_and_thread.
6415 (create_std_terminate_master_breakpoint): Use
6416 scoped_restore_current_program_space.
6417 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6418 (print_breakpoint_location): Use
6419 scoped_restore_current_program_space.
6420 (bp_loc_is_permanent): Use
6421 scoped_restore_current_pspace_and_thread.
6422 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6423 (download_tracepoint_locations): Use
6424 scoped_restore_current_pspace_and_thread.
6425 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6426 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6427 (enum step_over_calls_kind): Moved from inferior.h.
6428 (class scoped_restore_current_thread): New class.
6429 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6430 declaration.
6431 (scoped_restore_current_thread): New class.
6432 * infcmd.c: Include "common/gdb_optional.h".
6433 (continue_1, proceed_after_attach): Use
6434 scoped_restore_current_thread.
6435 (notice_new_inferior): Use scoped_restore_current_thread.
6436 * inferior.c: Include "progspace-and-thread.h".
6437 (restore_inferior, save_current_inferior): Delete.
6438 (add_inferior_command, clone_inferior_command): Use
6439 scoped_restore_current_pspace_and_thread.
6440 * inferior.h (scoped_restore_current_inferior): New class.
6441 * infrun.c: Include "progspace-and-thread.h" and
6442 "common/gdb_optional.h".
6443 (follow_fork_inferior): Use
6444 scoped_restore_current_pspace_and_thread.
6445 (scoped_restore_exited_inferior): New class.
6446 (handle_vfork_child_exec_or_exit): Use
6447 scoped_restore_exited_inferior,
6448 scoped_restore_current_pspace_and_thread,
6449 scoped_restore_current_thread and scoped_restore.
6450 (fetch_inferior_event): Use scoped_restore_current_thread.
6451 * linespec.c (decode_line_full, decode_line_1): Use
6452 scoped_restore_current_program_space.
6453 * mi/mi-main.c: Include "progspace-and-thread.h".
6454 (exec_continue): Use scoped_restore_current_thread.
6455 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6456 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6457 * proc-service.c (ps_pglobal_lookup): Use
6458 scoped_restore_current_program_space.
6459 * progspace-and-thread.c: New file.
6460 * progspace-and-thread.h: New file.
6461 * progspace.c (release_program_space, clone_program_space): Use
6462 scoped_restore_current_program_space.
6463 (restore_program_space, save_current_program_space)
6464 (save_current_space_and_thread): Delete.
6465 (switch_to_program_space_and_thread): Moved to
6466 progspace-and-thread.c.
6467 * progspace.h (save_current_program_space)
6468 (save_current_space_and_thread): Delete declarations.
6469 (scoped_restore_current_program_space): New class.
6470 * remote.c (remote_btrace_maybe_reopen): Use
6471 scoped_restore_current_thread.
6472 * symtab.c: Include "progspace-and-thread.h".
6473 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6474 * thread.c (print_thread_info_1): Use
6475 scoped_restore_current_thread.
6476 (struct current_thread_cleanup): Delete.
6477 (do_restore_current_thread_cleanup)
6478 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6479 (scoped_restore_current_thread::~scoped_restore_current_thread):
6480 ... this new dtor.
6481 (make_cleanup_restore_current_thread): Rename/convert to ...
6482 (scoped_restore_current_thread::scoped_restore_current_thread):
6483 ... this new ctor.
6484 (thread_apply_all_command): Use scoped_restore_current_thread.
6485 (thread_apply_command): Use scoped_restore_current_thread.
6486 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6487 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6488
6489 2017-05-04 Pedro Alves <palves@redhat.com>
6490
6491 * thread.c (make_cleanup_restore_current_thread): Move
6492 find_thread_ptid call before the is_stopped call. Assert that the
6493 thread is found. Replace is_stopped call by checking the thread's
6494 state directly. Remove unnecessary NULL-thread check.
6495
6496 2017-05-04 Pedro Alves <palves@redhat.com>
6497
6498 * corelow.c (thread_section_name): New class.
6499 (get_core_register_section, get_core_siginfo): Use it.
6500
6501 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6502
6503 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6504 (get_core_register_section): Remove xfree of NULL pointer.
6505
6506 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6507
6508 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6509 * regcache.c (regcache::raw_supply_zeroed): New function.
6510 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6511
6512 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6513
6514 * gdbarch.sh: Remove commented out definition of
6515 TARGET_CHAR_BIT.
6516 * gdbarch.h: Re-generate.
6517
6518 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6519
6520 * configure: Regenerate.
6521
6522 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6523
6524 * solib-target.c (solib_target_relocate_section_addresses):
6525 Remove num_section_bases, num_bases, segment_bases variables.
6526
6527 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6530
6531 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * solib-target.c: Include <vector>
6534 (struct lm_info_target) <~lm_info_target>: Remove.
6535 <segment_bases, section_bases>: Change type to
6536 std::vector<CORE_ADDR>.
6537 (library_list_start_segment, library_list_start_section,
6538 library_list_end_library,
6539 solib_target_relocate_section_addresses): Adjust.
6540
6541 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * gdbarch.sh (software_single_step): Change return type to
6544 std::vector<CORE_ADDR>.
6545 * gdbarch.c, gdbarch.h: Re-generate.
6546 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6547 Adjust.
6548 (arm_deal_with_atomic_sequence_raw): Adjust.
6549 (thumb_get_next_pcs_raw): Adjust.
6550 (arm_get_next_pcs_raw): Adjust.
6551 (arm_get_next_pcs): Adjust.
6552 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6553 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6554 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6555 (alpha_software_single_step): Adjust.
6556 * alpha-tdep.h (alpha_software_single_step): Adjust.
6557 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6558 * arm-tdep.c (arm_software_single_step): Adjust.
6559 (arm_breakpoint_kind_from_current_state): Adjust.
6560 * arm-tdep.h (arm_software_single_step): Adjust.
6561 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6562 * cris-tdep.c (cris_software_single_step): Adjust.
6563 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6564 (micromips_deal_with_atomic_sequence): Adjust.
6565 (deal_with_atomic_sequence): Adjust.
6566 (mips_software_single_step): Adjust.
6567 * mips-tdep.h (mips_software_single_step): Adjust.
6568 * moxie-tdep.c (moxie_software_single_step): Adjust.
6569 * nios2-tdep.c (nios2_software_single_step): Adjust.
6570 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6571 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6572 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6573 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6574 * sparc-tdep.c (sparc_software_single_step): Adjust.
6575 * spu-tdep.c (spu_software_single_step): Adjust.
6576 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6577
6578 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6581 * gdbarch.h: Re-generate.
6582
6583 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6584
6585 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6586 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6587 * python/py-instruction.c, python/py-instruction.h: New file.
6588 * python/py-record.c: Add py-instruction.h include.
6589 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6590 gdb.RecordInstruction.
6591 * python/python-internal.h: Add gdbpy_initialize_instruction
6592 declaration.
6593 * python/python.c (do_start_initialization): Add
6594 gdbpy_initialize_instruction.
6595
6596 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6597
6598 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6599 Remove.
6600 (btrace_func_from_recpy_func): New function.
6601 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6602 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6603 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6604 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6605 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6606 Also, use new helper functions.
6607 (btpy_list_item): Use new helper functions.
6608 (recpy_bt_function_call_history): Use new type name.
6609 (btpy_call_getset): Remove.
6610 (gdbpy_initialize_btrace): Remove code to initialize
6611 gdb.BtraceFunctionCall.
6612 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6613 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6614 recpy_bt_func_prev, recpy_bt_func_next): New export.
6615 * python/py-record.c (recpy_func_type): New static object.
6616 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6617 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6618 recpy_func_next): New function.
6619 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6620 (recpy_func_getset): New static object.
6621 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6622 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6623
6624 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6625
6626 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6627 (btpy_object, btpy_insn_type, btpy_new): Remove.
6628 (btpy_list_object): Use gdb.RecordInstruction type instead of
6629 gdb.BtraceInstruction type.
6630 (btrace_insn_from_recpy_insn): New function.
6631 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6632 btpy_new.
6633 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6634 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6635 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6636 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6637 instead of btpy_object.
6638 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6639 btpy_insn_data, btpy_insn_decode): Rename to ...
6640 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6641 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6642 recpy_bt_insn_decode): This. Also, use new helper functions.
6643 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6644 recpy_insn_type.
6645 (btpy_insn_getset): Remove.
6646 (gdbpy_initialize_btrace): Remove code to initialize
6647 gdb.BtraceInstruction. Use recpy_element_object.
6648 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6649 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6650 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6651 * python/py-record.c (recpy_insn_type): New static object.
6652 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6653 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6654 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6655 New function.
6656 (recpy_insn_getset): New static object.
6657 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6658 * python/py-record.h (recpy_element_object): New typedef.
6659 (recpy_insn_type, recpy_insn_new): New export.
6660
6661 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6662
6663 * py-record-btrace.c (btpy_insn_new): Removed.
6664 (btpy_insn_or_gap_new): New function.
6665 (btpy_insn_error): Removed.
6666 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6667 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6668 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6669 btpy_insn_or_gap_new instead of btpy_insn_new.
6670 (btpy_insn_getset): Remove btpy_insn_error.
6671 * py-record.c (recpy_gap_type): New static object.
6672 (recpy_gap_object): New typedef.
6673 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6674 recpy_gap_reason_string): New function.
6675 (recpy_gap_getset): New static object.
6676 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6677 * py-record.h (recpy_gap_new): New export.
6678
6679 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6680
6681 * python/py-record.c (recpy_ptid): Remove.
6682 (recpy_record_getset): Remove recpy_ptid.
6683
6684 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6685
6686 * btrace.c (btrace_fetch): Set inferior_ptid.
6687 * python/py-record-btrace.c: Add "py-record.h" include.
6688 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6689 recpy_bt_end, recpy_bt_instruction_history,
6690 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6691 in gdb.Record object instead of current ptid.
6692 * python/py-record.c: Include new "py-record.h" file.
6693 (recpy_record_object): Moved to py-record.h.
6694 * python/py-record.h: New file.
6695
6696 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6697
6698 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6699 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6700 indentation.
6701
6702 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6703
6704 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6705 the past maintainers section.
6706
6707 2017-04-28 Yao Qi <yao.qi@linaro.org>
6708
6709 * infcmd.c (get_return_value): Use regcache ctor, and remove
6710 cleanup.
6711
6712 2017-04-28 Yao Qi <yao.qi@linaro.org>
6713 Pedro Alves <palves@redhat.com>
6714
6715 * regcache.c (regcache::regcache): New tag dispatch ctor.
6716 (do_cooked_read): Moved above.
6717 (regcache_dup): Use the tag dispatch ctor..
6718 * regcache.h (regcache): Declare ctor, delete copy ctor and
6719 assignment operator, remove friend regcache_dup.
6720
6721 2017-04-28 Yao Qi <yao.qi@linaro.org>
6722
6723 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6724 call method save instead of regcache_cpy.
6725 * regcache.h (struct regcache): Make regcache_dup a friend.
6726
6727 2017-04-28 Yao Qi <yao.qi@linaro.org>
6728
6729 * regcache.c (struct regcache): Move to regcache.h
6730 (regcache::arch): New method.
6731 (regcache_get_ptid): Update.
6732 (get_regcache_arch): Call arch method.
6733 (get_regcache_aspace): Call method aspace.
6734 (register_buffer): Change it to method.
6735 (regcache_save): Change it to regcache::save.
6736 (regcache_restore): Likewise.
6737 (regcache_cpy_no_passthrough): Remove the declaration.
6738 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6739 (regcache_cpy_no_passthrough): Change it to method
6740 cpy_no_passthrough.
6741 (regcache_register_status): Change it to method
6742 get_register_status.
6743 (regcache_invalidate): Change it to method invalidate.
6744 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6745 (regcache_raw_update): Change it to method raw_update.
6746 (regcache_raw_read): Likewise.
6747 (regcache_raw_read_signed): Likewise.
6748 (regcache_raw_read_unsigned): Likewise.
6749 (regcache_raw_write_signed): Likewise.
6750 (regcache_raw_write_unsigned): Likewise.
6751 (regcache_cooked_read): Likewise.
6752 (regcache_cooked_read_value): Likewise.
6753 (regcache_cooked_read_signed): Likewise.
6754 (regcache_cooked_read_unsigned): Likewise.
6755 (regcache_cooked_write_signed): Likewise.
6756 (regcache_cooked_write_unsigned): Likewise.
6757 (regcache_raw_set_cached_value): Likewise.
6758 (regcache_raw_write): Likewise.
6759 (regcache_cooked_write): Likewise.
6760 (regcache_xfer_part): Likewise.
6761 (regcache_raw_read_part): Likewise.
6762 (regcache_raw_write_part): Likewise.
6763 (regcache_cooked_read_part): Likewise.
6764 (regcache_cooked_write_part): Likewise.
6765 (regcache_raw_supply): Likewise.
6766 (regcache_raw_collect): Likewise.
6767 (regcache_transfer_regset): Likewise.
6768 (regcache_supply_regset): Likewise.
6769 (regcache_collect_regset): Likewise.
6770 (regcache_debug_print_register): Likewise.
6771 (enum regcache_dump_what): Move it to regcache.h.
6772 (regcache_dump): Change it to method dump.
6773 * regcache.h (enum regcache_dump_what): New.
6774 (class regcache): New.
6775 * target.c (target_fetch_registers): Call method
6776 debug_print_register.
6777 (target_store_registers): Likewise.
6778
6779 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6780
6781 * windows-nat.c (struct lm_info_windows): Initialize field.
6782 (windows_make_so): Allocate lm_info_windows with new.
6783 (windows_free_so): Free lm_info_windows with delete.
6784
6785 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6786
6787 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6788 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6789 cleanup.
6790 (darwin_free_so): Free lm_info_darwin with delete.
6791
6792 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6793
6794 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6795 <l_addr_p>: Change type to bool.
6796 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6797 (svr4_free_so): Free lm_info_svr4 with delete.
6798 (svr4_copy_library_list): Replace memcpy with call to copy
6799 constructor.
6800 (library_list_start_library, svr4_default_sos): Allocate
6801 lm_info_svr4 with new.
6802
6803 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6804
6805 * solib-target.c (struct lm_info_target): Add destructor,
6806 initialize fields.
6807 <name>: Change type to std::string.
6808 (library_list_start_library): Allocate lm_info_target with new.
6809 (solib_target_free_library_list): Free lm_info_target with
6810 delete.
6811 (solib_target_current_sos): Adapt to std::string.
6812 (solib_target_free_so): Free lm_info_target with delete.
6813
6814 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6817 fields.
6818 (frv_current_sos): Allocate lm_info_frv with new.
6819 (frv_relocate_main_executable): Free lm_info_frv with delete,
6820 allocate with new.
6821 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6822
6823 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6824
6825 * solib-frv.c (struct lm_info_frv): Fix indentation.
6826
6827 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6828
6829 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6830 map field.
6831 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6832 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6833 and allocate with new.
6834 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6835
6836 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6839 <filename, member_name>: Change type to std::string.
6840 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6841 (library_list_start_library): Allocate lm_info_aix with new.
6842 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6843 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6844 with copy constructor.
6845
6846 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * solist.h (struct lm_info): Remove.
6849 (struct lm_info_base): New class.
6850 (struct so_list) <lm_info>: Change type to lm_info_base *.
6851 * nto-tdep.c (struct lm_info): Remove.
6852 (lm_addr): Adjust.
6853 * solib-aix.c (struct lm_info): Rename to ...
6854 (struct lm_info_aix): ... this. Extend lm_info_base.
6855 (lm_info_p): Rename to ...
6856 (lm_info_aix_p): ... this, and adjust.
6857 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6858 solib_aix_parse_libraries, library_list_start_library,
6859 solib_aix_free_library_list, solib_aix_parse_libraries,
6860 solib_aix_get_library_list,
6861 solib_aix_relocate_section_addresses, solib_aix_free_so,
6862 solib_aix_get_section_offsets,
6863 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6864 Adjust.
6865 (struct solib_aix_inferior_data) <library_list>: Adjust.
6866 * solib-darwin.c (struct lm_info): Rename to ...
6867 (struct lm_info_darwin): ... this. Extend lm_info_base.
6868 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6869 * solib-dsbt.c (struct lm_info): Rename to ...
6870 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6871 (struct dsbt_info) <main_executable_lm_info): Adjust.
6872 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6873 dsbt_relocate_section_addresses): Adjust.
6874 * solib-frv.c (struct lm_info): Rename to ...
6875 (struct lm_info_frv): ... this. Extend lm_info_base.
6876 (main_executable_lm_info): Adjust.
6877 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6878 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6879 find_canonical_descriptor_in_load_object,
6880 frv_fdpic_find_canonical_descriptor): Adjust.
6881 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6882 to lm_info_svr4.
6883 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6884 svr4_clear_so, svr4_copy_library_list,
6885 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6886 svr4_current_sos, svr4_fetch_objfile_link_map,
6887 solist_update_incremental): Adjust.
6888 * solib-svr4.h (struct lm_info_svr4): Move here from
6889 solib-svr4.c.
6890 * solib-target.c (struct lm_info): Rename to ...
6891 (struct lm_info_target): ... this. Extend lm_info_base.
6892 (lm_info_p): Rename to ...
6893 (lm_info_target_p): ... this.
6894 (solib_target_parse_libraries, library_list_start_segment,
6895 library_list_start_section, library_list_start_library,
6896 library_list_end_library, solib_target_free_library_list,
6897 solib_target_current_sos, solib_target_free_so,
6898 solib_target_relocate_section_addresses): Adjust.
6899 * windows-nat.c (struct lm_info): Rename to ...
6900 (struct lm_info_windows): ... this. Extend lm_info_base.
6901 (windows_make_so, handle_load_dll, handle_unload_dll,
6902 windows_xfer_shared_libraries): Adjust.
6903
6904 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6905
6906 * solib-darwin.c (struct darwin_so_list): Remove.
6907 (darwin_current_sos): Allocate an so_list object instead of a
6908 darwin_so_list, separately allocate an lm_info object.
6909 (darwin_free_so): Free lm_info.
6910
6911 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6912
6913 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6914 with fprintf_filtered.
6915
6916 2017-04-28 Yao Qi <yao.qi@linaro.org>
6917
6918 * regcache.c (regcache::regcache): New function.
6919 (regcache::~regcache): New function.
6920 (regcache_xmalloc_1): Remove.
6921 (regcache_xmalloc): Call new regcache.
6922 (regcache_xfree): Call delete regcache.
6923 (get_thread_arch_aspace_regcache): Call new regcache.
6924
6925 2017-04-28 Yao Qi <yao.qi@linaro.org>
6926
6927 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6928 lwp instead of ptid_get_lwp.
6929
6930 2017-04-28 Yao Qi <yao.qi@linaro.org>
6931
6932 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6933 lwp_info instead of getting from inferior_ptid.
6934
6935 2017-04-27 Keith Seitz <keiths@redhat.com>
6936
6937 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6938 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6939 (CV_CONVERSION_BADNESS): Define.
6940 (rank_one_type): Remove overly restrictive rvalue reference
6941 rank checks.
6942 Add cv-qualifier checks and subranks for type equality.
6943 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6944 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6945 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6946
6947 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6948
6949 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6950 count when creating the object.
6951
6952 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6953 Ulrich Weigand <uweigand@de.ibm.com>
6954
6955 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6956 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6957 is used in AIX.
6958 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6959 (process_xcoff_symbol): Likewise.
6960 (scan_xcoff_symtab): Likewise.
6961
6962 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6963
6964 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6965 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6966 (ia64_access_reg): Use get_frame_register_unsigned.
6967 (ia64_access_rse_reg): Likewise.
6968 (ia64_libunwind_frame_prev_register): Likewise.
6969
6970 2017-04-26 Jiong Wang <jiong.wang@arm.com>
6971
6972 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6973 * gdbarch.c: Regenerated.
6974 * gdbarch.h: Regenerated.
6975 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6976 visibility external.
6977 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6978 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6979 (enum cfa_how_kind): Move to ...
6980 (struct dwarf2_frame_state_reg_info): Likewise.
6981 (struct dwarf2_frame_state): Likewise.
6982 * dwarf2-frame.h: ... here.
6983 (dwarf2_frame_state_alloc_regs): New declaration.
6984 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6985 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6986
6987 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6988
6989 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6990 regcache_raw_read_unsigned.
6991 (xtensa_pseudo_register_write): Likewise.
6992
6993 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6994
6995 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6996 (nds32_pseudo_register_write): Likewise.
6997
6998 2017-04-25 Yao Qi <yao.qi@linaro.org>
6999
7000 * regcache.c (struct regcache) <readonly_p>: Change its type
7001 to bool.
7002 (regcache_xmalloc_1): Update parameter type and callers update.
7003
7004 2017-04-25 Yao Qi <yao.qi@linaro.org>
7005
7006 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7007 set_gdbarch_wchar_bit.
7008 * arm-tdep.c (arm_gdbarch_init): Likewise.
7009
7010 2017-04-25 Pedro Alves <palves@redhat.com>
7011
7012 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7013 (BothAreRelocatable, memcopy, memmove): Don't define.
7014 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7015 macros.
7016
7017 2017-04-25 Pedro Alves <palves@redhat.com>
7018
7019 * common/common-defs.h: Include "common/poison.h".
7020 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7021 and adjust.
7022 * common/poison.h: New file.
7023 * common/traits.h: Include <type_traits>.
7024 (Not, Or, Requires): New, moved from common/function-view.h.
7025
7026 2017-04-25 Pedro Alves <palves@redhat.com>
7027
7028 * breakpoint.h (struct breakpoint): In-class initialize all
7029 fields. Make boolean fields "bool".
7030 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7031 memset call and initializations no longer necessary.
7032
7033 2017-04-25 Pedro Alves <palves@redhat.com>
7034
7035 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7036 reference.
7037 (pt_btrace_insn): New function.
7038 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7039
7040 2017-04-25 Pedro Alves <palves@redhat.com>
7041
7042 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7043 "base" field and inherit from "bp_location" instead. Add
7044 non-default ctor.
7045 (allocate_location_exception): Use new non-default ctor.
7046 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7047 (init_bp_location): Convert to ...
7048 (bp_location::bp_location): ... this new ctor, and remove memset
7049 call.
7050 (base_breakpoint_allocate_location): Use the new non-default ctor.
7051 * breakpoint.h (bp_location): Now a class. Declare default and
7052 non-default ctors. In-class initialize all members.
7053 (init_bp_location): Remove declaration.
7054
7055 2017-04-25 Pedro Alves <palves@redhat.com>
7056
7057 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7058 assignment operator.
7059
7060 2017-04-24 Yao Qi <yao.qi@linaro.org>
7061
7062 * doublest.c (convert_doublest_to_floatformat): Call
7063 floatformat_totalsize_bytes.
7064
7065 2017-04-22 Tom Tromey <tom@tromey.com>
7066
7067 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7068 ui_out_emit_list.
7069 * stack.c (print_frame): Use ui_out_emit_list.
7070 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7071 ui_out_emit_list.
7072 * mi/mi-main.c (print_one_inferior)
7073 (mi_cmd_data_list_register_names)
7074 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7075 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7076 ui_out_emit_list.
7077 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7078 (mi_output_solib_attribs): Use ui_out_emit_list,
7079 ui_out_emit_tuple.
7080 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7081 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7082 (mi_cmd_stack_list_args, list_args_or_locals): Use
7083 ui_out_emit_list.
7084 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7085 * breakpoint.c (print_solib_event, output_thread_groups): Use
7086 ui_out_emit_list.
7087
7088 2017-04-22 Tom Tromey <tom@tromey.com>
7089
7090 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7091 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7092 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7093
7094 2017-04-22 Tom Tromey <tom@tromey.com>
7095
7096 * tracepoint.c (tvariables_info_1)
7097 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7098
7099 2017-04-22 Tom Tromey <tom@tromey.com>
7100
7101 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7102 annotate_arg_emitter.
7103 * breakpoint.c (print_mention_watchpoint)
7104 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7105 * annotate.h (struct annotate_arg_emitter): New.
7106
7107 2017-04-22 Tom Tromey <tom@tromey.com>
7108
7109 * record-btrace.c (record_btrace_insn_history)
7110 (record_btrace_insn_history_range, record_btrace_call_history)
7111 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7112 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7113 ui_out_emit_tuple.
7114 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7115 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7116 * skip.c (skip_info): Use ui_out_emit_tuple.
7117 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7118 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7119 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7120 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7121 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7122 ui_out_emit_tuple.
7123 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7124 (output_register, mi_cmd_data_read_memory)
7125 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7126 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7127 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7128 Use ui_out_emit_tuple.
7129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7130 ui_out_emit_tuple.
7131 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7132 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7133 * linux-thread-db.c (info_auto_load_libthread_db): Use
7134 ui_out_emit_tuple.
7135 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7136 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7137 * disasm.c (do_mixed_source_and_assembly_deprecated)
7138 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7139 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7140 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7141 * breakpoint.c (print_one_breakpoint_location)
7142 (print_one_breakpoint): Use ui_out_emit_tuple.
7143 * auto-load.c (print_script, info_auto_load_cmd): Use
7144 ui_out_emit_tuple.
7145 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7146
7147 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7148
7149 * thread.c (print_thread_info_1): Remove dead code.
7150
7151 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7152
7153 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7154 GDB_SELF_TEST.
7155 * arm-tdep.c (selftests::arm_record_test): Likewise.
7156
7157 2017-04-21 Yao Qi <yao.qi@linaro.org>
7158
7159 * regcache.c (regcache_restore): Remove argument 2. Replace
7160 argument 3 with regcache. Get register status from
7161 src->register_status and get register contents from
7162 register_buffer (src, regnum).
7163 (regcache_cpy): Update.
7164
7165 2017-04-19 Pedro Alves <palves@redhat.com>
7166
7167 * gdbthread.h (thread): Add missing closing parenthesis in
7168 comment.
7169
7170 2017-04-19 Pedro Alves <palves@redhat.com>
7171
7172 * common/refcounted-object.h: New file.
7173 * gdbthread.h: Include "common/refcounted-object.h".
7174 (thread_info): Inherit from refcounted_object and add comments.
7175 (thread_info::incref, thread_info::decref)
7176 (thread_info::m_refcount): Delete.
7177 (thread_info::deletable): Use the refcounted_object::refcount()
7178 method.
7179 * inferior.c (current_inferior_): Add comment.
7180 (set_current_inferior): Increment/decrement refcounts.
7181 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7182 not-deletable instead of comparing with the current inferior.
7183 (initialize_inferiors): Increment the initial inferior's refcount.
7184 * inferior.h (struct inferior): Forward declare.
7185 Include "common/refcounted-object.h".
7186 (current_inferior, set_current_inferior): Move declaration to
7187 before struct inferior's definition, and fix comment.
7188 (inferior): Inherit from refcounted_object. Add comments.
7189 * thread.c (switch_to_thread_no_regs): Reference the thread's
7190 inferior pointer directly instead of doing a ptid lookup.
7191 (switch_to_no_thread): New function.
7192 (switch_to_thread(thread_info *)): New function, factored out
7193 from ...
7194 (switch_to_thread(ptid_t)): ... this.
7195 (restore_current_thread): Delete.
7196 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7197 fields, and add 'inf' field.
7198 (do_restore_current_thread_cleanup): Check whether old->inf is
7199 alive instead of looking up an inferior by ptid. Use
7200 switch_to_thread and switch_to_no_thread.
7201 (restore_current_thread_cleanup_dtor): Use old->inf directly
7202 instead of lookup up an inferior by id. Decref the inferior.
7203 Don't restore 'removable'.
7204 (make_cleanup_restore_current_thread): Same the inferior pointer
7205 in old, instead of the inferior number. Incref the inferior.
7206 Don't save/clear 'removable'.
7207
7208 2017-04-19 Pedro Alves <palves@redhat.com>
7209
7210 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7211 unittests/scoped_restore-selftests.c.
7212 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7213 * common/scoped_restore.h (scoped_restore_base): Make "class".
7214 (scoped_restore_base::release): New public method.
7215 (scoped_restore_base::scoped_restore_base): New protected ctor.
7216 (scoped_restore_base::m_saved_var): New protected field.
7217 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7218 scoped_restore_base base class instead of m_saved_var directly.
7219 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7220 (scoped_restore_tmpl::scoped_restore_tmpl(const
7221 scoped_restore_tmpl<T>&)): Likewise.
7222 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7223 method.
7224 (scoped_restore_tmpl::saved_var): New method.
7225 (scoped_restore_tmpl::m_saved_var): Delete.
7226 * inferior.h (inferior::detaching): Now a bool.
7227 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7228 cleanup.
7229 * unittests/scoped_restore-selftests.c: New file.
7230
7231 2017-04-19 Pedro Alves <palves@redhat.com>
7232
7233 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7234 Re-sort in alphabetic order.
7235
7236 2017-04-18 Pedro Alves <palves@redhat.com>
7237
7238 * xml-support.c (obstack_xml_printf): Delete.
7239 * xml-support.h (obstack_xml_printf): Delete.
7240
7241 2017-04-18 Pedro Alves <palves@redhat.com>
7242
7243 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7244 vdebug, verror, body_text, start_element, end_element, name,
7245 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7246 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7247 is_xinclude>: Make private and add m_ prefix.
7248 (gdb_xml_parser::body_text): New method, based on ...
7249 (gdb_xml_body_text): ... this. Adjust.
7250 (gdb_xml_parser::vdebug): New method, based on ...
7251 (gdb_xml_debug): ... this. Adjust.
7252 (gdb_xml_parser::verror): New method, based on ...
7253 (gdb_xml_error): ... this. Adjust.
7254 (gdb_xml_parser::start_element): New method, based on ...
7255 (gdb_xml_start_element): ... this. Adjust.
7256 (gdb_xml_start_element_wrapper): Defer to
7257 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7258 (gdb_xml_parser::end_element): New method, based on ...
7259 (gdb_xml_end_element_wrapper): ... this. Adjust.
7260 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7261 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7262 (gdb_xml_parser::use_dtd): New method, based on ...
7263 (gdb_xml_use_dtd): ... this. Adjust.
7264 (gdb_xml_parser::parse): New method, based on ...
7265 (gdb_xml_parse): ... this. Adjust.
7266 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7267 (xinclude_start_include): Adjust to call the parser's name method.
7268 (xml_xinclude_default, xml_xinclude_start_doctype)
7269 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7270 method.
7271 (xml_process_xincludes): Adjust to call parser methods.
7272 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7273 declarations.
7274
7275 2017-04-18 Pedro Alves <palves@redhat.com>
7276
7277 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7278 gdb::optional<std::string>.
7279 * xml-support.c: Include <string>.
7280 (scope_level::scope_level(scope_level &&))
7281 (scope_level::~scope_level): Delete.
7282 (scope_level::body): Now a std::string.
7283 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7284 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7285 parameter.
7286 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7287 (xinclude_parsing_data::output): Now a std::string reference.
7288 (xinclude_start_include): Adjust.
7289 (xml_xinclude_default): Adjust.
7290 (xml_process_xincludes): Add 'output' parameter, and return bool.
7291 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7292 and return bool.
7293 * xml-tdesc.c: Include <unordered_map> and <string>.
7294 (tdesc_xml_cache): Delete.
7295 (tdesc_xml_cache_s): Delete.
7296 (xml_cache): Now an std::unordered_map.
7297 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7298 (target_fetch_description_xml): Change return type to
7299 gdb::optional<std::string>, and adjust.
7300 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7301 (target_fetch_description_xml): Change return type to
7302 gdb::optional<std::string>.
7303
7304 2017-04-18 Pedro Alves <palves@redhat.com>
7305
7306 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7307 unittests/optional-selftests.c.
7308 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7309 * unittests/optional-selftests.c: New file.
7310 * unittests/optional/assignment/1.cc: New file.
7311 * unittests/optional/assignment/2.cc: New file.
7312 * unittests/optional/assignment/3.cc: New file.
7313 * unittests/optional/assignment/4.cc: New file.
7314 * unittests/optional/assignment/5.cc: New file.
7315 * unittests/optional/assignment/6.cc: New file.
7316 * unittests/optional/assignment/7.cc: New file.
7317 * unittests/optional/cons/copy.cc: New file.
7318 * unittests/optional/cons/default.cc: New file.
7319 * unittests/optional/cons/move.cc: New file.
7320 * unittests/optional/cons/value.cc: New file.
7321 * unittests/optional/in_place.cc: New file.
7322 * unittests/optional/observers/1.cc: New file.
7323 * unittests/optional/observers/2.cc: New file.
7324
7325 2017-04-18 Pedro Alves <palves@redhat.com>
7326
7327 * common/gdb_optional.h: Include common/traits.h.
7328 (in_place_t): New type.
7329 (in_place): New constexpr variable.
7330 (optional::optional): Remove member initialization of
7331 m_instantiated.
7332 (optional::optional(in_place_t...)): New constructor.
7333 (optional::~optional): Use reset.
7334 (optional::optional(const optional&)): New.
7335 (optional::optional(const optional&&)): New.
7336 (optional::optional(T &)): New.
7337 (optional::optional(T &&)): New.
7338 (operator::operator=(const optional &)): New.
7339 (operator::operator=(optional &&)): New.
7340 (operator::operator= (const T &))
7341 (operator::operator= (T &&))
7342 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7343 (operator::reset): New.
7344 (operator::m_instantiated):: Add in-class initializer.
7345 * common/traits.h: Include <type_traits>.
7346 (struct And): New types.
7347
7348 2017-04-18 Pedro Alves <palves@redhat.com>
7349
7350 * xml-support.c: Include <vector>.
7351 (scope_level::scope_level(const gdb_xml_element *))
7352 (scope_level::scope_level(scope_level&&)): New.
7353 (scope_level::~scope_level): New.
7354 (scope_level_s): Delete.
7355 (gdb_xml_parser::scopes): Now a std::vector.
7356 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7357 Use std::vector.
7358 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7359 scope cleanup code.
7360 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7361 of the scopes member. Use std::vector::emplace_back.
7362
7363 2017-04-18 Pedro Alves <palves@redhat.com>
7364
7365 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7366 a bool.
7367 (gdb_xml_end_element): Change type of first parameter.
7368 (gdb_xml_cleanup): Rename to ...
7369 (gdb_xml_parser::~gdb_xml_parser): ... this.
7370 (gdb_xml_create_parser_and_cleanup): Delete with ...
7371 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7372 to this new ctor.
7373 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7374 using gdb_xml_create_parser_and_cleanup.
7375 (xinclude_parsing_data): Add ctor/dtor.
7376 (xml_xinclude_cleanup): Delete.
7377 (xml_process_xincludes): Create a local xinclude_parsing_data
7378 instead of heap-allocating one. Create a local gdb_xml_parser
7379 instead of heap-allocating one with
7380 gdb_xml_create_parser_and_cleanup.
7381
7382 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7383
7384 PR threads/20743
7385 * fbsd-nat.c (resume_one_thread_cb): Remove.
7386 (resume_all_threads_cb): Remove.
7387 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7388 iterate_over_threads.
7389
7390 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7391
7392 * NEWS: Create a new section for the next release branch.
7393 Rename the section of the current branch, now that it has
7394 been cut.
7395
7396 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7397
7398 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7399 * version.in: Bump version to 8.0.50.DATE-git.
7400
7401 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7402
7403 PR gdb/21385
7404 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7405 independently of the host, and fix build breakage on Cygwin.
7406
7407 2017-04-13 Pedro Alves <palves@redhat.com>
7408
7409 * inferior.c (free_inferior): Convert to ...
7410 (inferior::~inferior): ... this dtor.
7411 (inferior::inferior): New ctor, factored out from ...
7412 (add_inferior_silent): ... here. Allocate the inferior with a new
7413 expression.
7414 (delete_inferior): Call delete instead of free_inferior.
7415 * inferior.h (gdb_environ, continuation): Forward declare.
7416 (inferior): Now a class. Add in-class initialization to all
7417 members. Make boolean fields bool, except 'detaching'.
7418 (inferior::inferior): New explicit ctor.
7419 (inferior::~inferior): New.
7420
7421 2017-04-13 Pedro Alves <palves@redhat.com>
7422
7423 * inferior.c (init_inferior_list): Delete.
7424 * inferior.h (init_inferior_list): Delete.
7425
7426 2017-04-13 Pedro Alves <palves@redhat.com>
7427
7428 PR threads/13217
7429 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7430 (top level): Call it twice, with different thread sets.
7431
7432 2017-04-13 Pedro Alves <palves@redhat.com>
7433
7434 * thread.c: Include <algorithm>.
7435 (thread_array_cleanup): Delete.
7436 (scoped_inc_dec_ref): New class.
7437 (live_threads_count): New function.
7438 (set_thread_refcount): Delete.
7439 (tp_array_compar_ascending): Now a bool.
7440 (tp_array_compar): Convert to a std::sort comparison function.
7441 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7442 and live_threads_count.
7443
7444 2017-04-13 Pedro Alves <palves@redhat.com>
7445
7446 * infrun.c (follow_fork_inferior): Also switch the current
7447 inferior.
7448
7449 2017-04-13 Pedro Alves <palves@redhat.com>
7450
7451 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7452 before calling create_internal_breakpoint.
7453
7454 2017-04-13 Pedro Alves <palves@redhat.com>
7455
7456 * fork-child.c (execv_argv): New class.
7457 (breakup_args): Refactored as ...
7458 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7459 Copy arguments to storage and replace separators with NULL
7460 terminators in place.
7461 (escape_bang_in_quoted_argument): Adjust to return bool.
7462 (execv_argv::execv_argv): New ctor.
7463 (execv_argv::init_for_shell): New method, factored out from
7464 fork_inferior. Don't strdup strings into the vector.
7465 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7466 Remove free_vector_argv call.
7467
7468 2017-04-13 Yao Qi <yao.qi@linaro.org>
7469
7470 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7471 tdep->rx_psw_type.
7472
7473 2017-04-13 Yao Qi <yao.qi@linaro.org>
7474
7475 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7476 * rx-tdep.c (rx_gdbarch_init): Likewise.
7477
7478 2017-04-13 Pedro Alves <palves@redhat.com>
7479
7480 * breakpoint.h (struct breakpoint): Reindent.
7481
7482 2017-04-13 Pedro Alves <palves@redhat.com>
7483
7484 * breakpoint.c (bp_location): Rename to ...
7485 (bp_locations): ... this. All references updated.
7486 (bp_location_count): Rename to ...
7487 (bp_locations_count): ... this. All references updated.
7488 (bp_location_placed_address_before_address_max): Rename to ...
7489 (bp_locations_placed_address_before_address_max): ... this. All
7490 references updated.
7491 (bp_location_shadow_len_after_address_max): Rename to ...
7492 (bp_locations_shadow_len_after_address_max): ... this. All
7493 references updated.
7494 (bp_location_compare_addrs): Rename to ...
7495 (bp_locations_compare_addrs): ... this. All references updated.
7496 (bp_location_compare):Rename to ...
7497 (bp_locations_compare): ... this. All references updated.
7498 (bp_location_target_extensions_update): Rename to ...
7499 (bp_locations_target_extensions_update): ... this. All references
7500 updated.
7501
7502 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7503
7504 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7505 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7506 'sgtty.h'.
7507 * common/gdb_termios.h: New file, with parts of "terminal.h".
7508 * inflow.c: Include "gdb_termios.h".
7509 * ser-unix.c: Include "gdb_termios.h".
7510 * terminal.h: Move terminal-related defines to
7511 "common/gdb_termios.h".
7512
7513 2017-04-12 Tom Tromey <tom@tromey.com>
7514
7515 * probe.c (parse_probes): Update.
7516 * location.h (delete_event_location): Don't declare.
7517 (event_location_deleter::operator()): Update.
7518 * location.c (event_location_deleter::operator()): Rename from
7519 delete_event_location.
7520 * linespec.h (linespec_result) <location>: Change type to
7521 event_location_up.
7522 * linespec.c (canonicalize_linespec, event_location_to_sals)
7523 (decode_objc): Update.
7524 (linespec_result): Don't call delete_event_location.
7525 * breakpoint.c (create_breakpoints_sal)
7526 (bkpt_probe_create_sals_from_location)
7527 (strace_marker_create_sals_from_location): Update.
7528
7529 2017-04-12 Tom Tromey <tom@tromey.com>
7530
7531 * linespec.h (struct linespec_result): Add constructor and
7532 destructor.
7533 (init_linespec_result, destroy_linespec_result)
7534 (make_cleanup_destroy_linespec_result): Don't declare.
7535 * linespec.c (init_linespec_result): Remove.
7536 (linespec_result::~linespec_result): Rename from
7537 destroy_linespec_result. Update.
7538 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7539 Remove.
7540 * breakpoint.c (create_breakpoint, break_range_command)
7541 (decode_location_default): Update.
7542 * ax-gdb.c (agent_command_1): Update.
7543
7544 2017-04-12 Tom Tromey <tom@tromey.com>
7545
7546 * remote.c (remote_download_tracepoint): Update.
7547 * python/py-breakpoint.c (bppy_get_location): Update.
7548 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7549 (gdbscm_breakpoint_location): Update.
7550 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7551 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7552 Change type to event_location_up.
7553 * breakpoint.c (create_overlay_event_breakpoint)
7554 (create_longjmp_master_breakpoint)
7555 (create_std_terminate_master_breakpoint)
7556 (create_exception_master_breakpoint)
7557 (breakpoint_event_location_empty_p, print_breakpoint_location)
7558 (print_one_breakpoint_location, create_thread_event_breakpoint)
7559 (init_breakpoint_sal, create_breakpoint)
7560 (print_recreate_ranged_breakpoint, break_range_command)
7561 (init_ada_exception_breakpoint, say_where): Update.
7562 (base_breakpoint_dtor): Don't call delete_event_location.
7563 (bkpt_print_recreate, tracepoint_print_recreate)
7564 (dprintf_print_recreate, update_static_tracepoint)
7565 (breakpoint_re_set_default): Update.
7566
7567 2017-04-12 Tom Tromey <tom@tromey.com>
7568
7569 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7570 type of "to_do". Update.
7571 (compute_stack_depth): Use std::vector.
7572
7573 2017-04-12 Tom Tromey <tom@tromey.com>
7574
7575 * printcmd.c (find_instruction_backward): Use std::vector.
7576
7577 2017-04-12 Tom Tromey <tom@tromey.com>
7578
7579 * symfile.c (objfilep): Remove typedef.
7580 (reread_symbols): Use a std::vector.
7581
7582 2017-04-12 Tom Tromey <tom@tromey.com>
7583
7584 * mi/mi-main.c (exec_direction_forward): Remove.
7585 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7586 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7587 scoped_restore.
7588 * guile/guile.c (guile_repl_command, guile_command)
7589 (gdbscm_execute_gdb_command): Use scoped_restore.
7590 * go-exp.y (go_parse): Use scoped_restore.
7591 * d-exp.y (d_parse): Use scoped_restore.
7592 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7593 * c-exp.y (c_parse): Use scoped_restore.
7594
7595 2017-04-12 Tom Tromey <tom@tromey.com>
7596
7597 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7598 (mi_parse): Update return type.
7599 (mi_parse_free): Remove.
7600 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7601 (mi_parse::~mi_parse): Rename from mi_parse_free.
7602 (mi_parse_cleanup): Remove.
7603 (mi_parse): Return a unique_ptr. Use new.
7604 * mi/mi-main.c (mi_execute_command): Update.
7605
7606 2017-04-12 Tom Tromey <tom@tromey.com>
7607
7608 * location.c (explicit_location_lex_one): Return a
7609 unique_xmalloc_ptr.
7610 (string_to_explicit_location): Update. Remove cleanups.
7611
7612 2017-04-12 Tom Tromey <tom@tromey.com>
7613
7614 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7615 (compare_value_and_voffset): Change type. Update.
7616 (compute_vtable_size): Change type of "offset_vec".
7617 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7618 (gnuv3_get_typeid): Remove extraneous declaration.
7619
7620 2017-04-12 Tom Tromey <tom@tromey.com>
7621
7622 * charset.h (wchar_iterator): Fix comment.
7623
7624 2017-04-12 Tom Tromey <tom@tromey.com>
7625
7626 * charset.c (iconv_wrapper): New class.
7627 (cleanup_iconv): Remove.
7628 (convert_between_encodings): Use it.
7629
7630 2017-04-12 Tom Tromey <tom@tromey.com>
7631
7632 * symfile.h (increment_reading_symtab): Update type.
7633 * symfile.c (decrement_reading_symtab): Remove.
7634 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7635 * psymtab.c (psymtab_to_symtab): Update.
7636 * dwarf2read.c (dw2_instantiate_symtab): Update.
7637
7638 2017-04-12 Tom Tromey <tom@tromey.com>
7639
7640 * jit.c (struct jit_reader): Declare separately. Add constructor
7641 and destructor. Change type of "handle".
7642 (loaded_jit_reader): Define separately.
7643 (jit_reader_load): Update. New "new".
7644 (jit_reader_unload_command): Use "delete".
7645 * gdb-dlfcn.h (struct dlclose_deleter): New.
7646 (gdb_dlhandle_up): New typedef.
7647 (gdb_dlopen, gdb_dlsym): Update types.
7648 (gdb_dlclose): Remove.
7649 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7650 (gdb_dlsym): Change type of "handle".
7651 (make_cleanup_dlclose): Remove.
7652 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7653 * compile/compile-c-support.c (load_libcc): Update.
7654
7655 2017-04-12 Tom Tromey <tom@tromey.com>
7656
7657 * symtab.h (find_pcs_for_symtab_line): Change return type.
7658 * symtab.c (find_pcs_for_symtab_line): Change return type.
7659 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7660 type of "vec". Update.
7661 (ltpy_get_pcs_for_line): Update.
7662 * linespec.c (decode_digits_ordinary): Update.
7663
7664 2017-04-12 Tom Tromey <tom@tromey.com>
7665
7666 * tracepoint.c (actions_command): Update.
7667 * python/python.c (python_command, python_interactive_command):
7668 Update.
7669 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7670 * guile/guile.c (guile_command): Update.
7671 * defs.h (read_command_lines, read_command_lines_1): Return
7672 command_line_up.
7673 (command_lines_deleter): New struct.
7674 (command_line_up): New typedef.
7675 * compile/compile.c (compile_code_command)
7676 (compile_print_command): Update.
7677 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7678 command_line_up.
7679 (make_cleanup_free_command_lines): Remove.
7680 * cli/cli-script.c (get_command_line, read_command_lines_1)
7681 (copy_command_lines): Return command_line_up.
7682 (while_command, if_command, read_command_lines, define_command)
7683 (document_command): Update.
7684 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7685 Remove.
7686 * breakpoint.h (breakpoint_set_commands): Change type of
7687 "commands".
7688 * breakpoint.c (breakpoint_set_commands): Change type of
7689 "commands". Update.
7690 (do_map_commands_command, update_dprintf_command_list)
7691 (create_tracepoint_from_upload): Update.
7692
7693 2017-04-12 Tom Tromey <tom@tromey.com>
7694
7695 * tracepoint.c (scope_info): Update.
7696 * spu-tdep.c (spu_catch_start): Update.
7697 * python/python.c (gdbpy_decode_line): Update.
7698 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7699 * python/py-breakpoint.c (bppy_init): Update.
7700 * probe.c (parse_probes): Update.
7701 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7702 * location.h (event_location_deleter): New struct.
7703 (event_location_up): New typedef.
7704 (new_linespec_location, new_address_location, new_probe_location)
7705 (new_explicit_location, copy_event_location)
7706 (string_to_event_location, string_to_event_location_basic)
7707 (string_to_explicit_location): Update return type.
7708 (make_cleanup_delete_event_location): Remove.
7709 * location.c (new_linespec_location, new_address_location)
7710 (new_probe_location, new_explicit_location, copy_event_location):
7711 Return event_location_up.
7712 (delete_event_location_cleanup)
7713 (make_cleanup_delete_event_location): Remove.
7714 (string_to_explicit_location, string_to_event_location_basic)
7715 (string_to_event_location): Return event_location_up.
7716 * linespec.c (canonicalize_linespec, event_location_to_sals)
7717 (decode_line_with_current_source)
7718 (decode_line_with_last_displayed, decode_objc): Update.
7719 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7720 * completer.c (location_completer): Update.
7721 * cli/cli-cmds.c (edit_command, list_command): Update.
7722 * breakpoint.c (create_overlay_event_breakpoint)
7723 (create_longjmp_master_breakpoint)
7724 (create_std_terminate_master_breakpoint)
7725 (create_exception_master_breakpoint)
7726 (create_thread_event_breakpoint): Update.
7727 (init_breakpoint_sal): Update. Remove some dead code.
7728 (create_breakpoint_sal): Change type of "location". Update.
7729 (create_breakpoints_sal, create_breakpoint, break_command_1)
7730 (dprintf_command, break_range_command, until_break_command)
7731 (init_ada_exception_breakpoint)
7732 (strace_marker_create_sals_from_location)
7733 (update_static_tracepoint, trace_command, ftrace_command)
7734 (strace_command, create_tracepoint_from_upload): Update.
7735 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7736 * ax-gdb.c (agent_command_1): Update.
7737
7738 2017-04-12 Pedro Alves <palves@redhat.com>
7739
7740 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7741 * configure.tgt: Handle i[34567]86-*-go32* and
7742 i[34567]86-*-msdosdjgpp*.
7743 * i386-tdep.c (i386_svr4_reg_to_regnum):
7744 Make extern.
7745 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7746 i386-go32-tdep.c.
7747 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7748 * i386-go32-tdep.c: New file.
7749 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7750 declarations.
7751
7752 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7753
7754 * aix-thread.c (pd_status2str): Change return type to const char *.
7755
7756 2017-04-12 Pedro Alves <palves@redhat.com>
7757
7758 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7759 calls to set_gdbarch_gnu_triplet_regexp.
7760
7761 2017-04-12 Pedro Alves <palves@redhat.com>
7762
7763 PR gdb/21323
7764 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7765 New enum value.
7766 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7767 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7768 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7769 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7770 * gdbarch.h, gdbarch.c: Regenerate.
7771 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7772 gdbarch_wchar_bit and gdbarch_wchar_signed.
7773 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7774 * arm-tdep.c (arm_gdbarch_init): Likewise.
7775 * avr-tdep.c (avr_gdbarch_init): Likewise.
7776 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7777 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7778 * i386-tdep.c (i386_go32_init_abi): Likewise.
7779 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7780 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7781 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7782 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7783 * sh-tdep.c (sh_gdbarch_init): Likewise.
7784 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7785 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7786 * windows-tdep.c (windows_init_abi): Likewise.
7787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7788
7789 2017-04-12 Pedro Alves <palves@redhat.com>
7790
7791 PR c++/21323
7792 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7793 cplus_primitive_type_char32_t>: New enum values.
7794 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7795 and cplus_primitive_type_char32_t.
7796 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7797 32, use the archtecture's built-in type for char16_t and char32_t,
7798 respectively. Otherwise, fallback to init_integer_type as before,
7799 but make the type unsigned, and issue a complaint.
7800 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7801
7802 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7803
7804 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7805 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7806
7807 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7808
7809 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7810 'const char *'.
7811
7812 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7813
7814 * common/common-utils.c (free_vector_argv): New function.
7815 * common/common-utils.h: Include <vector>.
7816 (free_vector_argv): New prototype.
7817 * darwin-nat.c (darwin_create_inferior): Rewrite function
7818 prototype in order to constify "exec_file" and accept a
7819 "std::string" for "allargs".
7820 * fork-child.c: Include <vector>.
7821 (breakup_args): Rewrite function, using C++.
7822 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7823 and accept "std::string" for "allargs". Update the code to
7824 calculate "argv" based on "allargs". Update calls to "exec_fun"
7825 and "execvp".
7826 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7827 order to constify "exec_file" and accept a "std::string" for
7828 "allargs".
7829 * go32-nat.c (go32_create_inferior): Likewise.
7830 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7831 * infcmd.c (run_command_1): Constify "exec_file". Use
7832 "std::string" for inferior arguments.
7833 * inferior.h (fork_inferior): Update prototype.
7834 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7835 prototype in order to constify "exec_file" and accept a
7836 "std::string" for "allargs".
7837 * nto-procfs.c (procfs_create_inferior): Likewise.
7838 * procfs.c (procfs_create_inferior): Likewise.
7839 * remote-sim.c (gdbsim_create_inferior): Likewise.
7840 * remote.c (extended_remote_run): Update code to accept
7841 "std::string" as argument.
7842 (extended_remote_create_inferior): Rewrite function prototype in
7843 order to constify "exec_file" and accept a "std::string" for
7844 "allargs".
7845 * rs6000-nat.c (super_create_inferior): Likewise.
7846 (rs6000_create_inferior): Likewise.
7847 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7848 * windows-nat.c (windows_create_inferior): Likewise.
7849
7850 2017-04-11 Pedro Alves <palves@redhat.com>
7851
7852 * thread.c: Fix whitespace throughout.
7853
7854 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7855
7856 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7857
7858 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7859
7860 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7861
7862 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7863
7864 PR gdb/21364
7865 * osdata.c (info_osdata): Check if 'type' is an empty string
7866 instead of NULL.
7867
7868 2017-04-10 Pedro Alves <palves@redhat.com>
7869
7870 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7871 (ptid_to_global_thread_id, in_thread_list)
7872 (do_captured_list_thread_ids, set_resumed, set_running)
7873 (set_executing, set_stop_requested, finish_thread_state)
7874 (validate_registers_access, can_access_registers_ptid)
7875 (print_thread_info_1, switch_to_thread)
7876 (do_restore_current_thread_cleanup)
7877 (make_cleanup_restore_current_thread, thread_command)
7878 (thread_name_command): Use operator== instead of ptid_equal.
7879
7880 2017-04-10 Pedro Alves <palves@redhat.com>
7881
7882 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7883 (current_thread_cleanup_chain): Delete.
7884 (restore_current_thread_cleanup_dtor)
7885 (make_cleanup_restore_current_thread): Remove references to
7886 current_thread_cleanup_chain.
7887
7888 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7889
7890 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7891 REG_UNKNOWN.
7892
7893 2017-04-10 Yao Qi <yao.qi@linaro.org>
7894
7895 PR gdb/19942
7896 * gdbthread.h (thread_info::deletable): New method.
7897 (thread_info::incref): New method.
7898 (thread_info::decref): New method.
7899 (thread_info::refcount): Move it to private.
7900 * infrun.c (save_stop_context): Call inc_refcount.
7901 (release_stop_context_cleanup): Likewise.
7902 * thread.c (set_thread_exited): New function.
7903 (init_thread_list): Delete "tp" only it is deletable, otherwise
7904 call set_thread_exited.
7905 (delete_thread_1): Call set_thread_exited.
7906 (current_thread_cleanup) <inferior_pid>: Remove.
7907 <thread>: New field.
7908 (restore_current_thread_ptid_changed): Removed.
7909 (do_restore_current_thread_cleanup): Adjust.
7910 (restore_current_thread_cleanup_dtor): Don't call
7911 find_thread_ptid.
7912 (set_thread_refcount): Use dec_refcount.
7913 (make_cleanup_restore_current_thread): Adjust.
7914 (thread_apply_all_command): Call inc_refcount.
7915 (_initialize_thread): Don't call
7916 observer_attach_thread_ptid_changed.
7917
7918 2017-04-10 Yao Qi <yao.qi@linaro.org>
7919
7920 * thread.c (delete_thread_1): Hoist code on marking thread as
7921 exited.
7922
7923 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7924
7925 * windows-nat.c (windows_detach): Initialize ptid with
7926 minus_one_ptid.
7927
7928 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7929
7930 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7931
7932 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7933
7934 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7935 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7936 (bfin_pseudo_register_write): Likewise
7937
7938 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7939
7940 * common/ptid.h (struct ptid): Change to...
7941 (class ptid_t): ... this.
7942 <ptid_t>: New constructors.
7943 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7944 matches>: New methods.
7945 <make_null, make_minus_one>: New static methods.
7946 <pid>: Rename to...
7947 <m_pid>: ...this.
7948 <lwp>: Rename to...
7949 <m_lwp>: ...this.
7950 <tid>: Rename to...
7951 <m_tid>: ...this.
7952 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7953 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7954 as references, move comment to class ptid_t.
7955 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7956 ptid_t static methods.
7957 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7958 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7959 Take ptid arguments as references, implement using ptid_t methods.
7960 * unittests/ptid-selftests.c: New file.
7961 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7962 unittests/ptid-selftests.c.
7963 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7964
7965 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7966
7967 * python/python.c (python_run_simple_file): Cast mode literal to
7968 non-const char pointer as expected by PyFile_FromString.
7969
7970 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7971
7972 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7973 minus_one_ptid and null_ptid.
7974
7975 2017-04-05 Pedro Alves <palves@redhat.com>
7976
7977 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7978 * configure: Regenerate.
7979
7980 2017-04-05 Pedro Alves <palves@redhat.com>
7981
7982 * ada-exp.y (yyerror): Constify.
7983 * ada-lang.c (bound_name, get_selections)
7984 (ada_variant_discrim_type)
7985 (ada_variant_discrim_name, ada_value_struct_elt)
7986 (ada_lookup_struct_elt_type, is_unchecked_variant)
7987 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7988 (catch_ada_exception_command_split)
7989 (catch_ada_assert_command_split, catch_assert_command)
7990 (ada_op_name): Constify.
7991 * ada-lang.h (ada_yyerror, get_selections)
7992 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7993 * arc-tdep.c (arc_print_frame_cache): Constify.
7994 * arm-tdep.c (arm_skip_stub): Constify.
7995 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7996 (gen_aggregate_elt_ref): Constify.
7997 * bcache.c (print_bcache_statistics): Constify.
7998 * bcache.h (print_bcache_statistics): Constify.
7999 * break-catch-throw.c (catch_exception_command_1):
8000 * breakpoint.c (struct ep_type_description::description):
8001 Constify.
8002 (add_solib_catchpoint): Constify.
8003 (catch_fork_command_1): Add cast.
8004 (add_catch_command): Constify.
8005 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8006 Constify.
8007 * bsd-uthread.c (bsd_uthread_state): Constify.
8008 * buildsym.c (patch_subfile_names): Constify.
8009 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8010 Constify.
8011 * c-exp.y (yyerror): Constify.
8012 (token::oper): Constify.
8013 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8014 * c-varobj.c (cplus_describe_child): Constify.
8015 * charset.c (find_charset_names): Add cast.
8016 (find_charset_names): Constify array and add const_cast.
8017 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8018 (edit_command): Constify.
8019 * cli/cli-decode.c (lookup_cmd): Constify.
8020 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8021 Constify.
8022 (struct dump_context): Constify.
8023 (add_dump_command, restore_command): Constify.
8024 * cli/cli-script.c (get_command_line): Constify.
8025 * cli/cli-script.h (get_command_line): Constify.
8026 * cli/cli-utils.c (check_for_argument): Constify.
8027 * cli/cli-utils.h (check_for_argument): Constify.
8028 * coff-pe-read.c (struct read_pe_section_data): Constify.
8029 * command.h (lookup_cmd): Constify.
8030 * common/print-utils.c (decimal2str): Constify.
8031 * completer.c (gdb_print_filename): Constify.
8032 * corefile.c (set_gnutarget): Constify.
8033 * cp-name-parser.y (yyerror): Constify.
8034 * cp-valprint.c (cp_print_class_member): Constify.
8035 * cris-tdep.c (cris_register_name, crisv32_register_name):
8036 Constify.
8037 * d-exp.y (yyerror): Constify.
8038 (struct token::oper): Constify.
8039 * d-lang.h (d_yyerror): Constify.
8040 * dbxread.c (struct header_file_location::name): Constify.
8041 (add_old_header_file, add_new_header_file, last_function_name)
8042 (dbx_next_symbol_text, add_bincl_to_list)
8043 (find_corresponding_bincl_psymtab, set_namestring)
8044 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8045 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8046 * defs.h (command_line_input, print_address_symbolic)
8047 (deprecated_readline_begin_hook): Constify.
8048 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8049 Constify.
8050 * event-top.c (handle_line_of_input): Constify and add cast.
8051 * exceptions.c (catch_errors): Constify.
8052 * exceptions.h (catch_errors): Constify.
8053 * expprint.c (print_subexp_standard, op_string, op_name)
8054 (op_name_standard, dump_raw_expression, dump_raw_expression):
8055 * expression.h (op_name, op_string, dump_raw_expression):
8056 Constify.
8057 * f-exp.y (yyerror): Constify.
8058 (struct token::oper): Constify.
8059 (struct f77_boolean_val::name): Constify.
8060 * f-lang.c (f_word_break_characters): Constify.
8061 * f-lang.h (f_yyerror): Constify.
8062 * fork-child.c (fork_inferior): Add cast.
8063 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8064 (new_variant): Constify.
8065 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8066 * gdbarch.c: Regenerate.
8067 * gdbcore.h (set_gnutarget): Constify.
8068 * go-exp.y (yyerror): Constify.
8069 (token::oper): Constify.
8070 * go-lang.h (go_yyerror): Constify.
8071 * go32-nat.c (go32_sysinfo): Constify.
8072 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8073 * guile/scm-cmd.c (cmdscm_function): Constify.
8074 * guile/scm-param.c (pascm_param_value): Constify.
8075 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8076 (h8300sx_register_name): Constify.
8077 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8078 Constify.
8079 * ia64-tdep.c (ia64_register_names): Constify.
8080 * infcmd.c (construct_inferior_arguments): Constify.
8081 (path_command, attach_post_wait): Constify.
8082 * language.c (show_range_command, show_case_command)
8083 (unk_lang_error): Constify.
8084 * language.h (language_defn::la_error)
8085 (language_defn::la_name_of_this): Constify.
8086 * linespec.c (decode_line_2): Constify.
8087 * linux-thread-db.c (thread_db_err_str): Constify.
8088 * lm32-tdep.c (lm32_register_name): Constify.
8089 * m2-exp.y (yyerror): Constify.
8090 * m2-lang.h (m2_yyerror): Constify.
8091 * m32r-tdep.c (m32r_register_names): Constify and make static.
8092 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8093 * m88k-tdep.c (m88k_register_name): Constify.
8094 * macroexp.c (appendmem): Constify.
8095 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8096 (upgrade_type, parse_external, parse_partial_symbols)
8097 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8098 (new_symbol): Constify.
8099 * memattr.c (mem_info_command): Constify.
8100 * mep-tdep.c (register_name_from_keyword): Constify.
8101 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8102 Constify.
8103 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8104 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8105 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8106 cast.
8107 (mi_execute_async_cli_command): Constify.
8108 * mips-tdep.c (mips_register_name): Constify.
8109 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8110 (am33_register_name, am33_2_register_name)
8111 * moxie-tdep.c (moxie_register_names): Constify.
8112 * nat/linux-osdata.c (osdata_type): Constify fields.
8113 * nto-tdep.c (nto_parse_redirection): Constify.
8114 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8115 (lookup_child_selector): Constify.
8116 (objc_methcall::name): Constify.
8117 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8118 (lookup_struct_typedef): Constify.
8119 * objfiles.c (pc_in_section): Constify.
8120 * objfiles.h (pc_in_section): Constify.
8121 * p-exp.y (struct token::oper): Constify.
8122 (yyerror): Constify.
8123 * p-lang.h (pascal_yyerror): Constify.
8124 * parser-defs.h (op_name_standard): Constify.
8125 (op_print::string): Constify.
8126 (exp_descriptor::op_name): Constify.
8127 * printcmd.c (print_address_symbolic): Constify.
8128 * psymtab.c (print_partial_symbols): Constify.
8129 * python/py-breakpoint.c (stop_func): Constify.
8130 (bppy_get_expression): Constify.
8131 * python/py-cmd.c (cmdpy_completer::name): Constify.
8132 (cmdpy_function): Constify.
8133 * python/py-event.c (evpy_add_attribute)
8134 (gdbpy_initialize_event_generic): Constify.
8135 * python/py-event.h (evpy_add_attribute)
8136 (gdbpy_initialize_event_generic): Constify.
8137 * python/py-evts.c (add_new_registry): Constify.
8138 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8139 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8140 * python/py-inferior.c (get_buffer): Add cast.
8141 * python/py-param.c (parm_constant::name): Constify.
8142 * python/py-unwind.c (fprint_frame_id): Constify.
8143 * python/python.c (gdbpy_parameter_value): Constify.
8144 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8145 * remote.c (memory_packet_config::name): Constify.
8146 (show_packet_config_cmd, remote_write_bytes)
8147 (remote_buffer_add_string):
8148 * reverse.c (exec_reverse_once): Constify.
8149 * rs6000-tdep.c (variant::name, variant::description): Constify.
8150 * rust-exp.y (rustyyerror): Constify.
8151 * rust-lang.c (rust_op_name): Constify.
8152 * rust-lang.h (rustyyerror): Constify.
8153 * serial.h (serial_ops::name): Constify.
8154 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8155 (sh_sh3e_register_name, sh_sh2e_register_name)
8156 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8157 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8158 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8159 (sh_sh4al_dsp_register_name): Constify.
8160 * sh64-tdep.c (sh64_register_name): Constify.
8161 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8162 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8163 * stabsread.c (patch_block_stabs, read_type_number)
8164 (ref_map::stabs, ref_add, process_reference)
8165 (symbol_reference_defined, define_symbol, define_symbol)
8166 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8167 (read_one_struct_field, read_struct_fields, read_baseclasses)
8168 (read_tilde_fields, read_struct_type, read_array_type)
8169 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8170 (read_huge_number, read_range_type, read_args, common_block_start)
8171 (find_name_end): Constify.
8172 * stabsread.h (common_block_start, define_symbol)
8173 (process_one_symbol, symbol_reference_defined, ref_add):
8174 * symfile.c (get_section_index, add_symbol_file_command):
8175 * symfile.h (get_section_index): Constify.
8176 * target-descriptions.c (tdesc_type::name): Constify.
8177 (tdesc_free_type): Add cast.
8178 * target.c (find_default_run_target):
8179 (add_deprecated_target_alias, find_default_run_target)
8180 (target_announce_detach): Constify.
8181 (do_option): Constify.
8182 * target.h (add_deprecated_target_alias): Constify.
8183 * thread.c (print_thread_info_1): Constify.
8184 * top.c (deprecated_readline_begin_hook, command_line_input):
8185 Constify.
8186 (init_main): Add casts.
8187 * top.h (handle_line_of_input): Constify.
8188 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8189 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8190 (tfind_command): Rename to ...
8191 (tfind_command_1): ... this and constify.
8192 (tfind_command): New function.
8193 (tfind_end_command, tfind_start_command): Adjust.
8194 (encode_source_string): Constify.
8195 * tracepoint.h (encode_source_string): Constify.
8196 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8197 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8198 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8199 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8200 * tui/tui-win.c (parse_scrolling_args): Constify.
8201 * tui/tui-windata.c (tui_erase_data_content): Constify.
8202 * tui/tui-windata.h (tui_erase_data_content): Constify.
8203 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8204 * tui/tui.c (tui_enable): Add cast.
8205 * utils.c (defaulted_query): Constify.
8206 (init_page_info): Add cast.
8207 (puts_debug, subset_compare): Constify.
8208 * utils.h (subset_compare): Constify.
8209 * varobj.c (varobj_format_string): Constify.
8210 * varobj.h (varobj_format_string): Constify.
8211 * vax-tdep.c (vax_register_name): Constify.
8212 * windows-nat.c (windows_detach): Constify.
8213 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8214 * xml-support.c (gdb_xml_end_element): Constify.
8215 * xml-tdesc.c (tdesc_start_reg): Constify.
8216 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8217 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8218 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8219
8220 2017-04-05 Pedro Alves <palves@redhat.com>
8221
8222 * proc-api.c (struct trans): Constify.
8223 (procfs_note): Constify.
8224 * proc-events.c (struct trans, syscall_table):
8225 * proc-flags.c (struct trans): Constify.
8226 * proc-utils.h (procfs_note): Constify.
8227 * proc-why.c (struct trans): Constify.
8228 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8229 (procfs_detach): Constify.
8230 * sol-thread.c (struct string_map): Constify.
8231 (td_err_string, td_state_string): Constify.
8232
8233 2017-04-05 Pedro Alves <palves@redhat.com>
8234
8235 * proc-api.c (procfs_filename): Don't initialize
8236 procfs_filename.
8237 (prepare_to_trace): Assume procfs_filename is non-NULL.
8238 (_initialize_proc_api): Give procfs_filename a default value here.
8239
8240 2017-04-05 Pedro Alves <palves@redhat.com>
8241
8242 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8243 'cond_string' parameter.
8244 (extract_exception_regexp): Constify 'string' parameter.
8245 (catch_exception_command_1): Constify.
8246 * breakpoint.c (init_catchpoint)
8247 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8248 parameter.
8249 (ep_parse_optional_if_clause, catch_fork_command_1)
8250 (catch_exec_command_1): Constify.
8251 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8252 parameter.
8253 (ep_parse_optional_if_clause): Constify.
8254 * cli/cli-utils.c (remove_trailing_whitespace)
8255 (check_for_argument): Constify.
8256 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8257 non-const overload.
8258 (check_for_argument): Likewise.
8259
8260 2017-04-05 Pedro Alves <palves@redhat.com>
8261
8262 * event-top.c (command_line_handler): Add cast to execute_command
8263 call.
8264 * record-btrace.c (cmd_record_btrace_bts_start)
8265 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8266 (cmd_record_btrace_start): Add cast to execute_command call.
8267 * record-full.c (record_full_goto_insn):
8268 * record.c (record_start, record_stop): Add cast to
8269 execute_command_to_string calls.
8270 (cmd_record_start): Add cast to execute_command calls.
8271
8272 2017-04-05 Pedro Alves <palves@redhat.com>
8273
8274 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8275 static inline function.
8276 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8277 array and use gdb_PyArg_ParseTupleAndKeywords.
8278 * python/py-cmd.c (cmdpy_init): Likewise.
8279 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8280 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8281 (infpy_search_memory): Likewise.
8282 * python/py-objfile.c (objfpy_add_separate_debug_file)
8283 (gdbpy_lookup_objfile): Likewise.
8284 * python/py-symbol.c (gdbpy_lookup_symbol)
8285 (gdbpy_lookup_global_symbol): Likewise.
8286 * python/py-type.c (gdbpy_lookup_type): Likewise.
8287 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8288 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8289 Likewise.
8290
8291 2017-04-05 Pedro Alves <palves@redhat.com>
8292
8293 * python/python-internal.h (gdb_PyGetSetDef): New type.
8294 * python/py-block.c (block_object_getset)
8295 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8296 * python/py-event.c (event_object_getset)
8297 (finish_breakpoint_object_getset): Likewise.
8298 * python/py-inferior.c (inferior_object_getset): Likewise.
8299 * python/py-infthread.c (thread_object_getset): Likewise.
8300 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8301 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8302 * python/py-objfile.c (objfile_getset): Likewise.
8303 * python/py-progspace.c (pspace_getset): Likewise.
8304 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8305 Likewise.
8306 * python/py-record.c (recpy_record_getset): Likewise.
8307 * python/py-symbol.c (symbol_object_getset): Likewise.
8308 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8309 Likewise.
8310 * python/py-type.c (type_object_getset, field_object_getset):
8311 Likewise.
8312 * python/py-value.c (value_object_getset): Likewise.
8313
8314 2017-04-05 Pedro Alves <palves@redhat.com>
8315
8316 * python/python-internal.h (gdb_PyObject_CallMethod)
8317 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8318 New functions.
8319 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8320 (PySys_GetObject, PySys_SetPath): New macros.
8321
8322 2017-04-05 Pedro Alves <palves@redhat.com>
8323
8324 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8325 info_osdata_command.
8326 * osdata.c (info_osdata_command): Rename to ...
8327 (info_osdata): ... this. Constify 'type' parameter, and remove
8328 the 'from_tty' parameter. Accept NULL TYPE.
8329 (info_osdata_command): New function.
8330 * osdata.h (info_osdata_command): Remove declaration.
8331 (info_osdata): New declaration.
8332
8333 2017-04-05 Pedro Alves <palves@redhat.com>
8334
8335 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8336 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8337 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8338 parameter.
8339 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8340 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8341 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8342 parameter.
8343 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8344 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8345 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8346 (mi_cmd_file_list_exec_source_files)
8347 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8348 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8349 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8350 parameter.
8351 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8352 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8353 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8354 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8355 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8356 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8357 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8358 'command' parameter.
8359 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8360 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8361 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8362 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8363 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8364 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8365 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8366 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8367 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8368 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8369 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8370 parameter.
8371 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8372 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8373 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8374 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8375 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8376 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8377 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8378 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8379 (mi_cmd_data_list_changed_registers)
8380 (mi_cmd_data_write_register_values)
8381 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8382 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8383 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8384 (mi_cmd_list_features, mi_cmd_list_target_features)
8385 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8386 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8387 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8388 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8389 (mi_cmd_trace_frame_collected): Constify 'command'
8390 parameter.
8391 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8392 'command' parameter.
8393
8394 2017-04-05 Pedro Alves <palves@redhat.com>
8395
8396 * ada-lang.c (ada_completer_word_break_characters): Now a const
8397 array.
8398 (ada_get_gdb_completer_word_break_characters): Constify.
8399 * completer.c (gdb_completer_command_word_break_characters)
8400 (gdb_completer_file_name_break_characters)
8401 (gdb_completer_quote_characters): Now const arrays.
8402 (get_gdb_completer_quote_characters): Constify.
8403 (set_rl_completer_word_break_characters): New function.
8404 (set_gdb_completion_word_break_characters)
8405 (complete_line_internal): Use it.
8406 * completer.h (get_gdb_completer_quote_characters): Constify.
8407 (set_rl_completer_word_break_characters): Declare.
8408 * f-lang.c (f_word_break_characters): Constify.
8409 * language.c (default_word_break_characters): Constify.
8410 * language.h (language_defn::la_word_break_characters): Constify.
8411 (default_word_break_characters): Constify.
8412 * top.c (init_main): Use set_rl_completer_word_break_characters.
8413
8414 2017-04-05 Pedro Alves <palves@redhat.com>
8415
8416 * aix-thread.c (aix_thread_pid_to_str)
8417 (aix_thread_extra_thread_info): Constify.
8418 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8419 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8420 (bsd_uthread_pid_to_str): Constify.
8421 * corelow.c (core_pid_to_str): Constify.
8422 * darwin-nat.c (darwin_pid_to_str): Constify.
8423 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8424 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8425 Constify.
8426 * gnu-nat.c (gnu_pid_to_str): Constify.
8427 * go32-nat.c (go32_pid_to_str): Constify.
8428 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8429 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8430 * inferior.c (inferior_pid_to_str): Constify.
8431 * linux-nat.c (linux_nat_pid_to_str): Constify.
8432 * linux-tdep.c (linux_core_pid_to_str): Constify.
8433 * linux-thread-db.c (thread_db_pid_to_str)
8434 (thread_db_extra_thread_info): Constify.
8435 * nto-tdep.c (nto_extra_thread_info): Constify.
8436 * nto-tdep.h (nto_extra_thread_info): Constify.
8437 * obsd-nat.c (obsd_pid_to_str): Constify.
8438 * procfs.c (procfs_pid_to_str): Constify.
8439 * ravenscar-thread.c (ravenscar_extra_thread_info)
8440 (ravenscar_pid_to_str): Constify.
8441 * remote-sim.c (gdbsim_pid_to_str): Constify.
8442 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8443 Constify.
8444 * sol-thread.c (solaris_pid_to_str): Constify.
8445 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8446 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8447 * target.c (default_pid_to_str, target_pid_to_str)
8448 (normal_pid_to_str, default_pid_to_str): Constify.
8449 * target.h (target_ops::to_pid_to_str)
8450 (target_ops::to_extra_thread_info): Constify.
8451 (target_pid_to_str, normal_pid_to_str): Constify.
8452 * windows-nat.c (windows_pid_to_str): Constify.
8453 * gdbarch.sh (core_pid_to_str): Constify.
8454 * target-delegates.c: Regenerate.
8455 * gdbarch.h, gdbarch.c: Regenerate.
8456
8457 2017-04-05 Pedro Alves <palves@redhat.com>
8458
8459 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8460 the memory of the temporary warning_pre_print override.
8461 * utils.c (warning_pre_print): Constify.
8462 * utils.h (warning_pre_print): Constify.
8463
8464 2017-04-05 Pedro Alves <palves@redhat.com>
8465
8466 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8467 (shell_command): New function.
8468 (make_command): Use std::string.
8469 (init_cli_cmds): Register shell_command instead of shell_escape.
8470
8471 2017-04-05 Pedro Alves <palves@redhat.com>
8472
8473 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8474 * tracepoint.c (default_collect): Don't initialize.
8475
8476 2017-04-05 Pedro Alves <palves@redhat.com>
8477
8478 * macroexp.c (macro_buffer::shared): Now a bool.
8479 (init_buffer): Update.
8480 (init_shared_buffer): Constify 'addr' parameter.
8481 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8482 casts.
8483
8484 2017-04-05 Pedro Alves <palves@redhat.com>
8485
8486 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8487 * disasm.c (set_disassembler_options): Constify local.
8488 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8489
8490 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8491
8492 PR gdb/21352
8493 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8494 option.
8495
8496 2017-04-05 Yao Qi <yao.qi@linaro.org>
8497
8498 * frame.c (frame_unwind_register_unsigned): Call
8499 frame_unwind_register_value.
8500
8501 2017-04-05 Yao Qi <yao.qi@linaro.org>
8502
8503 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8504 Use gdb_test_multiple, and don't match anchor.
8505
8506 2017-04-05 Pedro Alves <palves@redhat.com>
8507
8508 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8509 (Write After Approval): Remove Simon Marchi.
8510
8511 2017-04-05 Pedro Alves <palves@redhat.com>
8512
8513 * common/gdb_optional.h (optional::optional): Make constexpr and
8514 initialize m_dummy.
8515
8516 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8517
8518 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8519 (amd64fbsd_jmp_buf_reg_offset): Remove.
8520 (amd64fbsd_supply_uthread): Remove function.
8521 (amd64fbsd_collect_uthread): Remove function.
8522 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8523 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8524 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8525 (fbsd-nat.c): Update comment.
8526 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8527 (i386fbsd_jmp_buf_reg_offset): Remove.
8528 (i386fbsd_supply_uthread): Remove function.
8529 (i386fbsd_collect_uthread): Remove function.
8530 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8531
8532 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8533
8534 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8535 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8536 * NEWS: Mention that support for FreeBSD/alpha was removed.
8537 * alpha-fbsd-tdep.c: Delete file.
8538 * config/alpha/fbsd.mh: Delete file.
8539 * configure.host: Delete alpha*-*-freebsd* and
8540 alpha*-*-kfreebsd*-gnu.
8541 * configure.tgt: Delete alpha*-*-freebsd* and
8542 alpha*-*-kfreebsd*-gnu.
8543
8544 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8545
8546 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8547 amd64bsd_store_inferior_registers): Use ptid from regcache.
8548
8549 2017-04-04 Pedro Alves <palves@redhat.com>
8550
8551 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8552 data fields, make them private and add "m_" prefixes.
8553 (lnp_state_machine::lnp_state_machine): New ctor.
8554 (record_line, check_line_address, handle_set_discriminator)
8555 (handle_set_address, handle_advance_pc, handle_special_opcode)
8556 (handle_advance_line, handle_set_file, handle_negate_stmt)
8557 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8558 (end_sequence, advance_line): New methods.
8559 (m_gdbarch, m_record_lines_p): New fields.
8560 (lnp_reader_state): Delete.
8561 (dwarf_record_line): Rename to ...
8562 (lnp_state_machine::record_line): ... adjust.
8563 (init_lnp_state_machine): Delete.
8564 (lnp_state_machine::lnp_state_machine): New.
8565 (check_line_address): Rename to ...
8566 (lnp_state_machine::check_line_address): This.
8567 (dwarf_decode_lines_1): Remove reference to "reader_state".
8568 Adjust lnp_state_machine having a non-default ctor. Use bool.
8569 State machine internal state manipulation moved to
8570 lnp_state_machine methods.
8571
8572 2017-04-04 Pedro Alves <palves@redhat.com>
8573
8574 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8575 unittests/offset-type-selftests.c.
8576 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8577 * common/offset-type.h: New file.
8578 * common/preprocessor.h: New file.
8579 * common/traits.h: New file.
8580 * common/valid-expr.h: New file.
8581 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8582 sect_offset and cu_offset strong typedefs throughout.
8583 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8584 typedefs throughout.
8585 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8586 sect_offset and cu_offset strong typedefs throughout.
8587 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8588 typedefs throughout.
8589 * gdbtypes.h: Include "common/offset-type.h".
8590 (cu_offset): Now an offset type (strong typedef) instead of a
8591 struct.
8592 (sect_offset): Likewise.
8593 (union call_site_parameter_u): Rename "param_offset" field to
8594 "param_cu_off".
8595 * unittests/offset-type-selftests.c: New file.
8596
8597 2017-04-04 Pedro Alves <palves@redhat.com>
8598
8599 * common/underlying.h: New file.
8600 * dwarf2read.c: Include "common/gdb_optional.h" and
8601 "common/underlying.h".
8602 (dir_index, file_name_index): New types.
8603 (file_entry): Use them.
8604 (file_entry::include): Use to_underlying.
8605 (line_header::add_file_name): Use dir_index.
8606 (read_formatted_entries): Use gdb::optional. Read form before
8607 writting to file_entry.
8608 (dwarf_decode_line_header): Use dir_index.
8609 (lnp_state_machine::current_file): Use to_underlying.
8610 (lnp_state_machine::file): Change type to file_name_index.
8611 (dwarf_record_line): Use to_underlying.
8612 (init_lnp_state_machine): Use file_name_index.
8613 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8614
8615 2017-04-04 Pedro Alves <palves@redhat.com>
8616
8617 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8618 operator bool, has_value and get methods.
8619
8620 2017-04-04 Pedro Alves <palves@redhat.com>
8621
8622 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8623 fields.
8624 (line_header): Initialize all data fields. Change type of
8625 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8626 Change type of include_dirs to std::vector<const char *>. Remove
8627 num_include_dirs, include_dirs_size. Change type of file_names to
8628 std::vector<file_entry>. Remove num_file_names, file_names_size.
8629 (line_header::line_header): New.
8630 (line_header::add_include_dir, line_header::add_file_name): New
8631 methods.
8632 (line_header::include_dir_at): Remove NULL check.
8633 (line_header::file_name_at): Add const overload.
8634 (line_header_up): New unique_ptr typedef.
8635 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8636 std::vector. Remove free_line_header call.
8637 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8638 free_line_header call.
8639 (free_cu_line_header): Delete.
8640 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8641 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8642 Adjust to use std::vector.
8643 (free_line_header): Delete.
8644 (free_line_header_voidp): Use delete.
8645 (add_include_dir): Replace with ...
8646 (line_header::add_include_dir): ... this method. Use std::vector.
8647 (add_file_name): Replace with ...
8648 (line_header::add_file_name): ... this method. Use std::vector.
8649 (add_include_dir_stub): Delete.
8650 (read_formatted_entries): Remove memset.
8651 (dwarf_decode_line_header): Return a line_header_up instead of a
8652 raw pointer. Remove cleanup handling. Pass lambdas to
8653 read_formatted_entries. Adjust to use line_header methods.
8654 (dwarf_decode_lines_1): Adjust to use line_header methods.
8655 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8656 use std::vector.
8657
8658 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8659
8660 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8661 instead of struct ptid.
8662
8663 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8664
8665 * frame.c (get_frame_register_bytes): Unwind using value.
8666 (put_frame_register_bytes): Likewise.
8667
8668 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8669
8670 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8671 aggregate-like.
8672
8673 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8674
8675 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8676
8677 2017-03-29 Yao Qi <yao.qi@linaro.org>
8678
8679 * gdbthread.h (struct thread_info): Declare constructor and
8680 destructor. Add some in-class member initializers.
8681 * thread.c (free_thread): Remove.
8682 (init_thread_list): Call delete instead of free_thread.
8683 (new_thread): Call thread_info constructor.
8684 (thread_info::thread_info): New function.
8685 (thread_info::~thread_info): New function.
8686 (delete_thread_1): Call delete instead of free_thread.
8687 (make_cleanup_restore_current_thread): Move tp and frame to
8688 inner block.
8689
8690 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8691
8692 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8693 (arc_skip_prologue): Likewise.
8694 (arc_make_frame_cache): Likewise.
8695 (arc_pv_get_operand): New function.
8696 (arc_is_in_prologue): Likewise.
8697 (arc_analyze_prologue): Likewise.
8698 (arc_print_frame_cache): Likewise.
8699 (MAX_PROLOGUE_LENGTH): New constant.
8700
8701 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8702
8703 * configure.tgt: Add arc-insn.o.
8704 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8705 (dump_arc_instruction_command): New function.
8706 (arc_fprintf_disasm): Likewise.
8707 (arc_disassemble_info): Likewise.
8708 (arc_insn_get_operand_value): Likewise.
8709 (arc_insn_get_operand_value_signed): Likewise.
8710 (arc_insn_get_memory_base_reg): Likewise.
8711 (arc_insn_get_memory_offset): Likewise.
8712 (arc_insn_get_branch_target): Likewise.
8713 (arc_insn_dump): Likewise.
8714 (arc_insn_get_linear_next_pc): Likewise.
8715 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8716 (arc_disassemble_info): Likewise.
8717 (arc_insn_get_branch_target): Likewise.
8718 (arc_insn_get_linear_next_pc): Likewise.
8719 * NEWS: Mention new "maint print arc arc-instruction".
8720
8721 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8722
8723 * arc-tdep (maintenance_print_arc_list): New variable.
8724 (maintenance_print_arc_command): New function.
8725
8726 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8727
8728 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8729 Add "limm" and "reserved".
8730 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8731 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8732 * arc-tdep.h (arc_regnum): Likewise.
8733
8734 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8735
8736 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8737 for THREADPTR register.
8738 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8739 register.
8740 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8741 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8742 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8743
8744 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8745
8746 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8747 registers above gdbarch_num_regs (gdbarch) as privileged in
8748 call0 ABI.
8749
8750 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8751
8752 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8753 for a single specified register or for all registers in
8754 a0_base..a0_base + C0_NREGS range.
8755 (supply_gregset_reg): Call regcache_raw_supply for a single
8756 specified register or for all registers in a0_base..a0_base +
8757 C0_NREGS range.
8758
8759 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8760
8761 * arch/xtensa.h (C0_NREGS): Add definition.
8762 * xtensa-tdep.c (C0_NREGS): Remove definition.
8763
8764 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8765
8766 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8767 Drop xtensa_default_isa initialization.
8768 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8769
8770 2017-03-27 Pedro Alves <palves@redhat.com>
8771
8772 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8773 (file_entry::include_dir): New method.
8774 (line_header::include_dir_at, line_header::file_name_at): New
8775 methods.
8776 (setup_type_unit_groups, setup_type_unit_groups)
8777 (psymtab_include_file_name): Simplify using the new methods.
8778 (lnp_state_machine) <the_line_header>: New field.
8779 <file>: Add comment.
8780 (lnp_state_machine::current_file): New method.
8781 (dwarf_record_line): Simplify using the new methods.
8782 (init_lnp_state_machine): Initialize the "the_line_header" field.
8783 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8784 Simplify using the new methods.
8785
8786 2017-03-27 Pedro Alves <palves@redhat.com>
8787
8788 * cp-name-parser.y (make_empty): Delete.
8789 (demangler_special, nested_name, ptr_operator, array_indicator)
8790 (direct_declarator, declarator_1): Use fill_comp instead of
8791 make_empty.
8792
8793 2017-03-27 Pedro Alves <palves@redhat.com>
8794
8795 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8796 to ATTRIBUTE_PRINTF.
8797 * solib-target.c (library_list_start_list): Print "string" not
8798 "version".
8799 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8800 gdb_xml_error call.
8801
8802 2017-03-27 Pedro Alves <palves@redhat.com>
8803
8804 * dwarf2read.c (struct file_and_directory): New.
8805 (dwarf2_get_dwz_file): Adjust to use std::string.
8806 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8807 (find_file_and_directory): Adjust to return a file_and_directory
8808 object.
8809 (read_file_scope): Adjust to use file_and_directory. Remove
8810 make_cleanup/do_cleanups calls.
8811 (open_and_init_dwp_file): Adjust to use std::string. Remove
8812 make_cleanup/do_cleanups calls.
8813 * python/python.c (do_start_initialization): Adjust to ldirname
8814 returning a std::string.
8815 * utils.c (ldirname): Now returns a std::string.
8816 * utils.h (ldirname): Change return type to std::string.
8817 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8818 returning a std::string.
8819 * xml-tdesc.c (file_read_description_xml): Likewise.
8820
8821 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8822
8823 * regcache.c (regcache_debug_print_register): New function.
8824 * regcache.h (regcache_debug_print_register): New declaration.
8825 * target.c (debug_print_register): Remove.
8826 (target_fetch_registers): Call regcache_debug_print_register.
8827 (target_store_registers): Likewise.
8828
8829 2017-03-24 Pádraig Brady <pbrady@fb.com>
8830
8831 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8832 reference beyond the 'lh->include_dirs' array before accessing to
8833 it.
8834 (psymtab_include_file_name): Likewise.
8835 (dwarf_decode_lines_1): Likewise.
8836 (dwarf_decode_lines): Likewise.
8837 (file_file_name): Likewise.
8838
8839 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8840
8841 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8842 inferior_ptid.
8843 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8844 ps_lsetfpregs): Likewise.
8845 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8846 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8847 ps_lsetfpregs): Likewise.
8848 * target.c (target_fetch_registers, target_store_registers):
8849 Remove asserts.
8850
8851 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8852
8853 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8854
8855 2017-03-23 Yao Qi <yao.qi@linaro.org>
8856
8857 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8858 (_initialize_aarch64_tdep): Register it.
8859 (aarch64_record_load_store): Handle PRFM instruction.
8860 (aarch64_process_record_test): New function.
8861
8862 2017-03-23 Yao Qi <yao.qi@linaro.org>
8863
8864 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8865 indentation.
8866
8867 2017-03-23 Yao Qi <yao.qi@linaro.org>
8868
8869 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8870
8871 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8872
8873 python/python.c (do_start_initialization): Fix memory leak.
8874
8875 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8876
8877 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8878 using get_ptrace_pid.
8879 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8880 inferior_ptid.
8881 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8882 inferior_ptid instead of pid.
8883
8884 2017-03-22 Yao Qi <yao.qi@linaro.org>
8885
8886 * aarch64-tdep.c: Wrap locally used classes in anonymous
8887 namespace.
8888 * arm-tdep.c: Likewise.
8889 * linespec.c: Likewise.
8890 * ui-out.c: Likewise.
8891
8892 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8893
8894 PR gdb/19637
8895 * python/lib/gdb/printer/bound_registers.py: Import sys.
8896
8897 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8898
8899 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8900 windows_thread_info parameter and use it instead of
8901 current_thread.
8902 (windows_fetch_inferior_registers): Don't set current_thread,
8903 pass the thread to do_windows_fetch_inferior_registers. Use
8904 ptid from regcache instead of inferior_ptid.
8905 (do_windows_store_inferior_registers): Add windows_thread_info
8906 parameter and use it instead of current_thread.
8907 (windows_store_inferior_registers): Don't set current_thread,
8908 pass the thread to do_windows_store_inferior_registers. Use
8909 ptid from regcache instead of inferior_ptid.
8910
8911 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8912
8913 * ser-mingw.c (ser_windows_raw): Remove reference to
8914 struct serial::current_timeout.
8915
8916 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8917
8918 PR tdep/20928
8919 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8920 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8921 (sparc64_fsr_type): Fix %fsr decoding.
8922
8923 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8924
8925 * python/py-record-btrace.c (btpy_insn_data): Change return type
8926 for Python 2.
8927
8928 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8929
8930 * spu-linux-nat.c (spu_fetch_inferior_registers,
8931 spu_store_inferior_registers): Use ptid from regcache, set and
8932 restore inferior_ptid.
8933 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8934 Likewise.
8935
8936 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8937
8938 * i386-linux-nat.c (fetch_register, store_register,
8939 i386_linux_fetch_inferior_registers,
8940 i386_linux_store_inferior_registers): Use ptid from regcache.
8941 * ia64-linux-nat.c (ia64_linux_fetch_register,
8942 ia64_linux_store_register): Likewise.
8943 * inf-ptrace.c (inf_ptrace_fetch_register,
8944 inf_ptrace_store_register): Likewise.
8945 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8946 m32r_linux_store_inferior_registers): Likewise.
8947 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8948 m68kbsd_store_inferior_registers): Likewise.
8949 * m68k-linux-nat.c (fetch_register, store_register,
8950 m68k_linux_fetch_inferior_registers,
8951 m68k_linux_store_inferior_registers): Likewise.
8952 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8953 m88kbsd_store_inferior_registers): Likewise.
8954 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8955 mips_fbsd_store_inferior_registers): Likewise.
8956 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8957 mips64_linux_regsets_store_registers): Likewise.
8958 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8959 mipsnbsd_store_inferior_registers): Likewise.
8960 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8961 mips64obsd_store_inferior_registers): Likewise.
8962 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8963 Likewise.
8964 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8965 ppcfbsd_store_inferior_registers): Likewise.
8966 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8967 ppc_linux_store_inferior_registers): Likewise.
8968 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8969 ppcnbsd_store_inferior_registers): Likewise.
8970 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8971 ppcobsd_store_registers): Likewise.
8972 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8973 Likewise.
8974 * ravenscar-thread.c (ravenscar_fetch_registers,
8975 ravenscar_store_registers, ravenscar_prepare_to_store):
8976 Likewise.
8977 * record-btrace.c (record_btrace_fetch_registers,
8978 record_btrace_store_registers, record_btrace_prepare_to_store):
8979 Likewise.
8980 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8981 Lookup inferior using ptid from regcache, instead of
8982 current_inferior.
8983 * remote.c (remote_fetch_registers, remote_store_registers): Use
8984 ptid from regcache.
8985 * rs6000-nat.c (fetch_register, store_register): Likewise.
8986 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8987 s390_linux_store_inferior_registers): Likewise.
8988 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8989 shnbsd_store_inferior_registers): Likewise.
8990 * sol-thread.c (sol_thread_fetch_registers,
8991 sol_thread_store_registers): Likewise.
8992 * sparc-nat.c (sparc_fetch_inferior_registers,
8993 sparc_store_inferior_registers): Likewise.
8994 * tilegx-linux-nat.c (fetch_inferior_registers,
8995 store_inferior_registers): Likewise.
8996 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8997 vaxbsd_store_inferior_registers): Likewise.
8998 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8999 store_xtregs): Likewise.
9000
9001 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9002
9003 PR gdb/14441
9004 * NEWS: Mention support for rvalue references in GDB and python.
9005 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9006 supports both lvalue and rvalue references.
9007
9008 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9009
9010 PR gdb/14441
9011 * gdbtypes.c (rank_one_type): Implement overloading
9012 resolution rules regarding rvalue references.
9013
9014 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9015
9016 PR gdb/14441
9017 * aarch64-tdep.c (aarch64_type_align)
9018 (aarch64_extract_return_value, aarch64_store_return_value): Change
9019 lvalue reference type checks to general reference type checks.
9020 * amd64-tdep.c (amd64_classify): Likewise.
9021 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9022 Likewise.
9023 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9024 (arm_store_return_value): Likewise.
9025 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9026 * c-typeprint.c (c_print_type): Likewise.
9027 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9028 (cplus_number_of_children, cplus_describe_child): Likewise.
9029 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9030 * completer.c (expression_completer): Likewise.
9031 * cp-support.c (make_symbol_overload_list_adl_namespace):
9032 Likewise.
9033 * darwin-nat-info.c (info_mach_region_command): Likewise.
9034 * dwarf2loc.c (entry_data_value_coerce_ref)
9035 (value_of_dwarf_reg_entry): Likewise.
9036 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9037 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9038 Likewise.
9039 * findvar.c (extract_typed_address, store_typed_address):
9040 Likewise.
9041 * gdbtypes.c (rank_one_type): Likewise.
9042 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9043 * infcall.c (value_arg_coerce): Likewise.
9044 * language.c (pointer_type): Likewise.
9045 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9046 Likewise.
9047 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9048 * mn10300-tdep.c (mn10300_type_align): Likewise.
9049 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9050 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9051 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9052 Likewise.
9053 * printcmd.c (print_formatted, x_command): Likewise.
9054 * python/py-type.c (typy_get_composite, typy_template_argument):
9055 Likewise.
9056 * python/py-value.c (valpy_referenced_value)
9057 (valpy_get_dynamic_type, value_has_field): Likewise.
9058 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9059 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9060 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9061 * spu-tdep.c (spu_scalar_value_p): Likewise.
9062 * symtab.c (lookup_symbol_aux): Likewise.
9063 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9064 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9065 Likewise.
9066 * valops.c (value_cast_pointers, value_cast)
9067 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9068 (value_struct_elt, value_struct_elt_bitpos)
9069 (value_find_oload_method_list, find_overload_match)
9070 (value_rtti_indirect_type): Likewise.
9071 * valprint.c (val_print_scalar_type_p, generic_val_print):
9072 Likewise.
9073 * value.c (value_actual_type, value_as_address, unpack_long)
9074 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9075 (coerce_ref): Likewise.
9076 * varobj.c (varobj_get_value_type): Likewise.
9077
9078 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9079
9080 PR gdb/14441
9081 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9082 table of constants.
9083 * python/lib/gdb/command/explore.py: Support exploring values
9084 of rvalue reference types.
9085 * python/lib/gdb/types.py: Implement get_basic_type() for
9086 rvalue reference types.
9087 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9088 constant.
9089 * python/py-value.c (valpy_getitem): Add an rvalue reference
9090 check.
9091 (valpy_reference_value): Add new parameter "refcode".
9092 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9093 New wrappers for valpy_reference_value().
9094 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9095 (gdbpy_invoke_xmethod): Likewise.
9096
9097 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9098
9099 PR gdb/14441
9100 * dwarf2read.c (process_die, read_type_die_1): Handle the
9101 DW_TAG_rvalue_reference_type DIE.
9102 (read_tag_reference_type): Add new parameter "refcode".
9103
9104 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9105
9106 PR gdb/14441
9107 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9108 (c_type_print_modifier, c_type_print_varspec_suffix)
9109 (c_type_print_base): Support printing rvalue reference types.
9110 * c-valprint.c (c_val_print, c_value_print): Support printing
9111 rvalue reference values.
9112
9113 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9114
9115 PR gdb/14441
9116 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9117 typename.
9118 * cp-support.c (replace_typedefs): Handle
9119 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9120 * python/py-type.c (typy_lookup_type): Likewise.
9121
9122 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9123
9124 PR gdb/14441
9125 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9126 * parse.c (insert_type): Change assert statement.
9127 (follow_types): Handle rvalue reference types.
9128 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9129 constant.
9130
9131 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9132
9133 PR gdb/14441
9134 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9135 value_ref() interface.
9136 * c-valprint.c (c_value_print): Likewise.
9137 * infcall.c (value_arg_coerce): Likewise.
9138 * python/py-value.c (valpy_reference_value): Likewise.
9139 * valops.c (value_cast, value_reinterpret_cast)
9140 (value_dynamic_cast, typecmp): Likewise.
9141 (value_ref): Parameterize by kind of return value reference type.
9142 * value.h (value_ref): Add new parameter "refcode".
9143
9144 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9145
9146 PR gdb/14441
9147 * dwarf2read.c (read_tag_reference_type): Use
9148 lookup_lvalue_reference_type() instead of lookup_reference_type().
9149 * eval.c (evaluate_subexp_standard): Likewise.
9150 * f-exp.y: Likewise.
9151 * gdbtypes.c (make_reference_type, lookup_reference_type):
9152 Generalize with rvalue reference types.
9153 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9154 convenience wrappers for lookup_reference_type().
9155 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9156 reference kind parameter.
9157 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9158 wrappers for lookup_reference_type().
9159 * guile/scm-type.c (gdbscm_type_reference): Use
9160 lookup_lvalue_reference_type() instead of lookup_reference_type().
9161 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9162 * parse.c (follow_types): Likewise.
9163 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9164 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9165 Likewise.
9166 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9167 (gdbpy_invoke_xmethod): Likewise.
9168 * stabsread.c: Provide extra argument to make_reference_type()
9169 call.
9170 * valops.c (value_ref, value_rtti_indirect_type): Use
9171 lookup_lvalue_reference_type() instead of lookup_reference_type().
9172
9173 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9174
9175 PR gdb/14441
9176 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9177 (TYPE_IS_REFERENCE): New macro.
9178 (struct type): Add rvalue_reference_type field.
9179 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9180
9181 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9182
9183 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9184 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9185 New function definition.
9186 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9187 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9188 New function declaration.
9189 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9190 * mi/mi-interp.h: New file.
9191 * solib.c (info_sharedlibrary_command): Replace for loop with
9192 ALL_SO_LIBS macro
9193 * solib.h (update_solib_list): New function declaration.
9194 (so_list_head): Move macro.
9195 * solist.h (ALL_SO_LIBS): New macro.
9196
9197 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9198
9199 * infcmd.c (post_create_inferior): Remove unused argument in
9200 call to solib_add.
9201 * remote.c (remote_start_remote): Likewise.
9202 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9203 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9204 (enable_break): Likewise.
9205 * solib.c (update_solib_list): Remove unused target argument
9206 and its documentation.
9207 (solib_add): Remove unused target argument. Remove unused
9208 argument in call to update_solib_list.
9209 (info_sharedlibrary_command): Remove unused argument in call
9210 to update_solib_list.
9211 (sharedlibrary_command): Remove unused argument in call to
9212 solib_add.
9213 (handle_solib_event): Likewise.
9214 (reload_shared_libraries): Likewise.
9215 * solib.h (solib_add): Remove unused target argument.
9216
9217 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9218
9219 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9220 (s390_displaced_step_fixup): Cover relative branches with the
9221 default fixup handling. This fixes lack of support for some
9222 relative branch instructions.
9223
9224 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9227 ptid from regcache.
9228
9229 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9232 i386_darwin_store_inferior_registers): Use ptid from regcache.
9233
9234 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9235
9236 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9237 i386bsd_store_inferior_registers): Use ptid from regcache.
9238
9239 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9242 hppaobsd_store_registers): Use ptid from regcache.
9243
9244 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9247 hppanbsd_store_registers): Use ptid from regcache.
9248
9249 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9250
9251 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9252 from regcache. Use get_ptrace_pid.
9253
9254 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9255
9256 * corelow.c (get_core_register_section): Use ptid from regcache,
9257 update doc.
9258
9259 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9260
9261 * bsd-uthread.c (bsd_uthread_fetch_registers,
9262 bsd_uthread_store_registers): Use ptid from regcache, set and
9263 restore inferior_ptid.
9264
9265 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9266
9267 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9268 fetch_fp_regs, store_register, store_regs, store_fp_register,
9269 store_fp_regs): Use ptid from regcache.
9270
9271 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9272
9273 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9274 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9275 store_vfp_regs): Use ptid from regcache.
9276
9277 2017-03-17 Pedro Alves <palves@redhat.com>
9278
9279 PR remote/21188
9280 * ser-base.c (ser_base_wait_for): Add comment.
9281 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9282 version.
9283 * ser-unix.c (hardwire_raw): Remove reference to
9284 scb->current_timeout.
9285 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9286 (hardwire_ops): Install ser_base_readchar instead of
9287 hardwire_readchar.
9288 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9289 Remove fields.
9290
9291 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9292
9293 PR gdb/19637
9294 * python/lib/gdb/printer/bound_registers.py: Add support for
9295 Python 3.
9296
9297 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9298
9299 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9300 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9301 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9302 byte_offset to subobj_byte_offset. Fix the handling of
9303 DWARF_VALUE_STACK on big-endian targets when coming via an
9304 implicit pointer.
9305 (dwarf2_evaluate_loc_desc): Adjust call to
9306 dwarf2_evaluate_loc_desc_full.
9307 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9308 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9309
9310 2017-03-16 Yao Qi <yao.qi@linaro.org>
9311
9312 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9313 and REVSH instructions.
9314
9315 2017-03-16 Yao Qi <yao.qi@linaro.org>
9316
9317 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9318 (arm_record_test): Declare.
9319 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9320 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9321 align with the manual.
9322 (thumb_record_misc): Adjust the code order to align with the
9323 manual.
9324 (thumb2_record_decode_insn_handler): Fix instruction matching.
9325 (instruction_reader_thumb): New class.
9326 (arm_record_test): New function.
9327
9328 2017-03-16 Yao Qi <yao.qi@linaro.org>
9329
9330 * arm-tdep.c (abstract_memory_reader): New class.
9331 (instruction_reader): New class.
9332 (extract_arm_insn): Add argument 'reader'. Callers updated.
9333 (decode_insn): Likewise.
9334
9335 2017-03-16 Doug Evans <dje@google.com>
9336
9337 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9338 member. Change type of TYPE member to SCM. All uses updated.
9339 (lsscm_make_lazy_string_smob): Add assert.
9340 (lsscm_make_lazy_string): Flag bad length values.
9341 (lsscm_elt_type): New function.
9342 (gdbscm_lazy_string_to_value): Rewrite to use
9343 lsscm_safe_lazy_string_to_value.
9344 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9345 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9346 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9347 in incoming type.
9348 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9349 * guile/scm-type.c (tyscm_scm_to_type): New function.
9350
9351 2017-03-15 Doug Evans <dje@google.com>
9352
9353 PR python/17728, python/18439, python/18779
9354 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9355 member. Change type of TYPE member to PyObject *. All uses updated.
9356 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9357 (gdbpy_create_lazy_string_object): Flag bad length values.
9358 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9359 Handle typedefs in incoming type.
9360 (stpy_lazy_string_elt_type): New function.
9361 (gdbpy_extract_lazy_string): Call it.
9362 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9363 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9364 typedefs in incoming type.
9365
9366 2017-03-16 Doug Evans <dje@google.com>
9367
9368 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9369 * guile/scm-type.c (tyscm_scm_to_type): New function.
9370
9371 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9372
9373 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9374 "ULONGEST" for "skip".
9375
9376 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9377
9378 PR gdb/21220
9379 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9380 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9381 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9382 over ptrace peek/poke until end of buffer or error.
9383
9384 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9385
9386 * parse.c (length_of_subexp): Make static.
9387 * parser-defs.h (length_of_subexp): Remove.
9388
9389 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9390
9391 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9392 as well.
9393
9394 2017-03-14 Pedro Alves <palves@redhat.com>
9395
9396 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9397 (main): Use std::unique_ptr. Remove calls to
9398 cp_demangled_name_parse_free.
9399
9400 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9401
9402 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9403 alphabsd_store_inferior_registers): Use regcache->ptid instead
9404 of inferior_ptid.
9405
9406 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9407
9408 * aix-thread.c (aix_thread_fetch_registers,
9409 aix_thread_store_registers): Use regcache->ptid instead of
9410 inferior_ptid.
9411
9412 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9413
9414 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9415 store_gregs_to_thread, fetch_fpregs_from_thread,
9416 store_fpregs_to_thread): Use regcache->ptid instead of
9417 inferior_ptid.
9418
9419 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9422 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9423 instead of inferior_ptid.
9424
9425 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9426
9427 * target.c (target_fetch_registers, target_store_registers): Add
9428 assert.
9429
9430 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9431
9432 * regcache.h (regcache_get_ptid): New function.
9433 * regcache.c (regcache_get_ptid): New function.
9434
9435 2017-03-13 Mark Wielaard <mark@klomp.org>
9436
9437 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9438
9439 2017-03-10 Keith Seitz <keiths@redhat.com>
9440
9441 PR c++/8218
9442 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9443
9444 2017-03-08 Pedro Alves <palves@redhat.com>
9445
9446 PR gdb/18360
9447 * infrun.c (start_step_over, do_target_resume, resume)
9448 (restart_threads): Assert we're not resuming a thread that is
9449 meant to be stopped.
9450 (infrun_thread_stop_requested_callback): Delete.
9451 (infrun_thread_stop_requested): If the thread is internally
9452 stopped, queue a pending stop event and clear the thread's
9453 inline-frame state.
9454 (handle_stop_requested): New function.
9455 (handle_syscall_event, handle_inferior_event_1): Use
9456 handle_stop_requested.
9457 (handle_stop_requested): New function.
9458 (handle_signal_stop): Set the thread's stop_signal here instead of
9459 at caller.
9460 (finish_step_over): Clear step over info unconditionally.
9461 (handle_signal_stop): If the user had interrupted the event
9462 thread, consider the stop a random signal.
9463 (handle_signal_stop) <signal arrived while stepping over
9464 breakpoint>: Don't restart threads here.
9465 (stop_waiting): Don't clear step-over info here.
9466
9467 2017-03-08 Pedro Alves <palves@redhat.com>
9468
9469 PR 21206
9470 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9471 goes to argument 2, not 1.
9472
9473 2017-03-08 Pedro Alves <palves@redhat.com>
9474
9475 PR cli/21218
9476 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9477 display_gdb_prompt.
9478 (command_line_input): Add comment.
9479
9480 2017-03-08 Pedro Alves <palves@redhat.com>
9481
9482 PR tui/21216
9483 * tui/tui-file.c (tui_file::write): New.
9484 * tui/tui-file.h (tui_file): Override "write".
9485 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9486 factored out from ...
9487 (tui_puts): ... here.
9488 (tui_putc): Use them.
9489 (tui_write): New function.
9490 * tui/tui-io.h (tui_write): Declare.
9491
9492 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9493
9494 * Makefile.in (SFILES): Replace "environ.c" with
9495 "common/environ.c".
9496 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9497 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9498 to...
9499 * common/environ.c: ... here.
9500 * environ.h: Moved to...
9501 * common/environ.h: ... here.
9502
9503 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9504
9505 * gdbarch.sh (pstring_ptr): New static function.
9506 (gdbarch_disassembler_options): Use it.
9507 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9508 not valid_disassembler_option->name.
9509 * gdbarch.c: Regenerate.
9510
9511 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9512
9513 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9514
9515 2017-03-07 Pedro Alves <palves@redhat.com>
9516
9517 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9518
9519 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9520
9521 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9522 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9523 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9524 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9525
9526 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9527
9528 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9529
9530 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9531
9532 * remote.c (remote_add_target_side_commands): Use range-based
9533 for loop.
9534
9535 2017-03-03 Yao Qi <yao.qi@linaro.org>
9536
9537 PR gdb/21165
9538 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9539 value is lazy.
9540 * valprint.c (common_val_print): Likewise.
9541
9542 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9543
9544 * NEWS: Mention new set/show disassembler-options commands.
9545 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9546 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9547 (prospective_options): New static variable.
9548 (gdb_disassembler::gdb_disassembler): Initialize
9549 m_di.disassembler_options.
9550 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9551 (get_disassembler_options): New function.
9552 (set_disassembler_options): Likewise.
9553 (set_disassembler_options_sfunc): Likewise.
9554 (show_disassembler_options_sfunc): Likewise.
9555 (disassembler_options_completer): Likewise.
9556 (_initialize_disasm): Likewise.
9557 * disasm.h (get_disassembler_options): New prototype.
9558 (set_disassembler_options): Likewise.
9559 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9560 (gdbarch_verify_disassembler_options): Likewise.
9561 * gdbarch.c: Regenerate.
9562 * gdbarch.h: Likewise.
9563 * arm-tdep.c (num_disassembly_options): Delete.
9564 (set_disassembly_style): Likewise.
9565 (arm_disassembler_options): New static variable.
9566 (set_disassembly_style_sfunc): Convert short style name into long
9567 option name. Call set_disassembler_options.
9568 (show_disassembly_style_sfunc): New function.
9569 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9570 set_gdbarch_verify_disassembler_options.
9571 (_initialize_arm_tdep): Delete regnames variable and update callers.
9572 (arm_disassembler_options): Initialize.
9573 (disasm_options): New variable.
9574 (num_disassembly_options): Rename from this...
9575 (num_disassembly_styles): ...to this. Compute by scanning through
9576 disasm_options.
9577 (valid_disassembly_styles): Initialize using disasm_options.
9578 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9579 set_arm_regname_option.
9580 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9581 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9582 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9583 set_gdbarch_verify_disassembler_options.
9584 * s390-tdep.c (s390_disassembler_options): New static variable.
9585 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9586 set_gdbarch_verify_disassembler_options.
9587
9588 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9589
9590 * remote.c (remote_add_target_side_condition): Remove "struct"
9591 keyword from range-based for loop.
9592
9593 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9594
9595 * remote.c (remote_add_target_side_condition): Use range-based
9596 for loop. Update comment.
9597
9598 2017-02-27 Yao Qi <yao.qi@linaro.org>
9599
9600 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9601
9602 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9603
9604 * regcache.c (regcache_raw_update): New function.
9605 (regcache_raw_read): Move code to regcache_raw_update.
9606 * regcache.h (regcache_raw_update): New declaration.
9607 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9608
9609 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * dwarf2read.c (create_debug_type_hash_table): Initialize
9612 header.signature and header.type_offset_in_tu.
9613
9614 2017-02-24 Pedro Alves <palves@redhat.com>
9615
9616 * symtab.c (make_file_symbol_completion_list_1): Use
9617 add_symtab_completions.
9618
9619 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9620
9621 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9622
9623 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9624
9625 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9626 I386_MAX_REGISTER_SIZE.
9627 (i386_pseudo_register_write): Likewise.
9628 (i386_process_record): Likewise.
9629 * i387-tdep.c (i387_supply_xsave): Likewise.
9630 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9631 (store_register): Likewise.
9632
9633 2017-02-23 Pedro Alves <palves@redhat.com>
9634
9635 * ada-lang.c: Include "common/function-view.h".
9636 (ada_iterate_over_symbols): Adjust to use function_view as
9637 callback type.
9638 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9639 (ada_make_symbol_completion_list): Use a lambda.
9640 (ada_exc_search_name_matches): Delete.
9641 (name_matches_regex): New.
9642 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9643 * compile/compile-c-support.c: Include "common/function-view.h".
9644 (print_one_macro): Change prototype to accept a ui_file pointer.
9645 (write_macro_definitions): Use a lambda.
9646 * dwarf2read.c: Include "common/function-view.h".
9647 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9648 (dw2_expand_symtabs_matching): Adjust to use function_view as
9649 callback type.
9650 * language.h: Include "common/function-view.h".
9651 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9652 function_view as callback type.
9653 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9654 * linespec.c: Include "common/function-view.h".
9655 (collect_info::add_symbol): New method.
9656 (struct symbol_and_data_callback, iterate_inline_only, struct
9657 symbol_matcher_data, iterate_name_matcher): Delete.
9658 (iterate_over_all_matching_symtabs): Adjust to use function_view
9659 as callback type and lambdas.
9660 (iterate_over_file_blocks): Adjust to use function_view as
9661 callback type.
9662 (decode_compound_collector): Now a class with private fields.
9663 (decode_compound_collector::release_symbols): New method.
9664 (collect_one_symbol): Rename to...
9665 (decode_compound_collector::operator()): ... this and adjust.
9666 (lookup_prefix_sym): decode_compound_collector construction bits
9667 move to decode_compound_collector ctor. Pass the
9668 decode_compound_collector object directly as callback. Remove
9669 cleanups and use decode_compound_collector::release_symbols
9670 instead.
9671 (symtab_collector): Now a class with private fields.
9672 (symtab_collector::release_symtabs): New method.
9673 (add_symtabs_to_list): Rename to...
9674 (symtab_collector::operator()): ... this and adjust.
9675 (collect_symtabs_from_filename): symtab_collector construction
9676 bits move to symtab_collector ctor. Pass the symtab_collector
9677 object directly as callback. Remove cleanups and use
9678 symtab_collector::release_symtabs instead.
9679 (collect_symbols): Delete.
9680 (add_matching_symbols_to_info): Use lambdas.
9681 * macrocmd.c (print_macro_callback): Delete.
9682 (info_macro_command): Use a lambda.
9683 (info_macros_command): Pass print_macro_definition as callable
9684 directly.
9685 (print_one_macro): Remove 'ignore' parameter.
9686 (macro_list_command): Adjust.
9687 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9688 (macro_for_each_data::user_data): Delete field.
9689 (foreach_macro): Adjust to call the function_view.
9690 (macro_for_each): Adjust to use function_view as callback type.
9691 (foreach_macro_in_scope): Adjust to call the function_view.
9692 (macro_for_each_in_scope): Adjust to use function_view as callback
9693 type.
9694 * macrotab.h: Include "common/function-view.h".
9695 (macro_callback_fn): Declare a prototype instead of a pointer.
9696 Remove "user_data" parameter.
9697 (macro_for_each, macro_for_each_in_scope): Adjust to use
9698 function_view as callback type.
9699 * psymtab.c (partial_map_expand_apply)
9700 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9701 Adjust to use function_view as callback type and to return bool.
9702 (psym_expand_symtabs_matching): Adjust to use function_view as
9703 callback types.
9704 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9705 to use function_view as callback type and to return bool.
9706 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9707 callback types.
9708 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9709 as callback types.
9710 * symfile.h: Include "common/function-view.h".
9711 (expand_symtabs_file_matcher_ftype)
9712 (expand_symtabs_symbol_matcher_ftype)
9713 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9714 return bool.
9715 (quick_symbol_functions::map_symtabs_matching_filename)
9716 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9717 function_view as callback type and return bool.
9718 (expand_symtabs_matching): Adjust to use function_view as callback
9719 type.
9720 (maintenance_expand_name_matcher)
9721 (maintenance_expand_file_matcher): Delete.
9722 (maintenance_expand_symtabs): Use lambdas.
9723 * symtab.c (iterate_over_some_symtabs): Adjust to use
9724 function_view as callback types and return bool.
9725 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9726 of a cleanup.
9727 (lookup_symtab_callback): Delete.
9728 (lookup_symtab): Use a lambda.
9729 (iterate_over_symbols): Adjust to use function_view as callback
9730 type.
9731 (struct search_symbols_data, search_symbols_file_matches)
9732 (search_symbols_name_matches): Delete.
9733 (search_symbols): Use a pair of lambdas.
9734 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9735 (symtab_expansion_callback): Delete.
9736 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9737 * symtab.h: Include "common/function-view.h".
9738 (iterate_over_some_symtabs): Adjust to use function_view as
9739 callback type and return bool.
9740 (iterate_over_symtabs): Adjust to use function_view as callback
9741 type.
9742 (symbol_found_callback_ftype): Remove 'data' parameter and return
9743 bool.
9744 (iterate_over_symbols): Adjust to use function_view as callback
9745 type.
9746
9747 2017-02-23 Pedro Alves <palves@redhat.com>
9748
9749 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9750 (%.o) <unittests/%.c>: New pattern.
9751 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9752 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9753 * common/function-view.h: New file.
9754 * unittests/function-view-selftests.c: New file.
9755 * configure: Regenerate.
9756
9757 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9758
9759 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9760 inferior_ptid.
9761 * go32-nat.c (go32_thread_alive): Likewise.
9762
9763 2017-02-23 Yao Qi <yao.qi@linaro.org>
9764
9765 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9766 delete.
9767
9768 2017-02-23 Yao Qi <yao.qi@linaro.org>
9769
9770 * varobj.c (varobj_clear_saved_item): Use delete instead of
9771 xfree.
9772 (update_dynamic_varobj_children): Likewise.
9773
9774 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9775
9776 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9777
9778 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9779
9780 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9781 m_enum_value to 0 in default constructor.
9782
9783 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9784
9785 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9786 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9787 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9788 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9789 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9790 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9791 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9792 IS_STORE_CONDITIONAL_INSN.
9793
9794 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9795
9796 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9797
9798 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9799
9800 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9801
9802 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9803
9804 * dwarf2read.c (skip_one_die, read_attribute_value)
9805 (dwarf2_const_value_attr, dump_die_shallow)
9806 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9807 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9808
9809 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9812 (dwarf_parse_macro_header): Accept DWARF version 5.
9813 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9814
9815 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9816
9817 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9818 DW_AT_GNU_*.
9819 * common/common-exceptions.h (enum errors): Likewise.
9820 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9821 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9822 (dwarf_expr_context::execute_stack_op): Likewise.
9823 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9824 Likewise.
9825 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9826 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9827 (show_entry_values_debug, call_site_to_target_addr)
9828 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9829 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9830 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9831 (value_of_dwarf_block_entry, indirect_pieced_value)
9832 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9833 (disassemble_dwarf_expression): Likewise.
9834 * dwarf2read.c (process_die, inherit_abstract_dies)
9835 (read_call_site_scope): Likewise.
9836 * gdbtypes.h (struct func_type, struct call_site_parameter)
9837 (struct call_site): Likewise.
9838 * stack.c (read_frame_arg): Likewise.
9839 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9840
9841 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9842
9843 * defs.h (read_unsigned_leb128): New declaration.
9844 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9845 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9846 (dwarf2_find_location_expression): Call also
9847 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9848 * dwarf2loc.h (dwarf2_version): New declaration.
9849 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9850 rnglists.
9851 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9852 .debug_rnglists.
9853 (struct dwop_section_names): Add loclists_dwo.
9854 (dwop_section_names): Add .debug_loclists.dwo.
9855 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9856 (struct dwarf2_per_cu_data): Add dwarf_version.
9857 (struct dwo_sections): Add loclists.
9858 (struct attr_abbrev): Add implicit_const.
9859 (read_indirect_line_string): New declaration.
9860 (read_unsigned_leb128): Delete declaration.
9861 (rcuh_kind): New definition.
9862 (read_and_check_comp_unit_head): Change parameter
9863 is_debug_types_section to section_kind.
9864 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9865 (read_comp_unit_head): Change parameter abfd to section, add parameter
9866 section_kind. Handle DWARF-5.
9867 (error_check_comp_unit_head): Accept also DWARF version 5.
9868 (read_and_check_comp_unit_head): Change parameter
9869 is_debug_types_section to section_kind.
9870 (read_and_check_type_unit_head): Delete function.
9871 (read_abbrev_offset): Handle DWARF-5.
9872 (create_debug_type_hash_table): Add parameter section_kind. Process
9873 only DW_UT_type. Use signature and type_offset_in_tu from struct
9874 comp_unit_head.
9875 (create_debug_types_hash_table): Update create_debug_type_hash_table
9876 caller.
9877 (create_all_type_units): Call create_debug_type_hash_table.
9878 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9879 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9880 caller.
9881 (skip_one_die): Handle DW_FORM_implicit_const.
9882 (dwarf2_rnglists_process): New function.
9883 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9884 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9885 (read_attribute_value): Handle DW_FORM_implicit_const,
9886 DW_FORM_line_strp.
9887 (read_attribute): Handle DW_FORM_implicit_const.
9888 (read_indirect_string_at_offset_from): New function from
9889 read_indirect_string_at_offset.
9890 (read_indirect_string_at_offset): Call
9891 read_indirect_string_at_offset_from.
9892 (read_indirect_line_string_at_offset): New function.
9893 (read_indirect_string): New function comment.
9894 (read_indirect_line_string): New function.
9895 (read_unsigned_leb128): Make it global.
9896 (dwarf2_string_attr): Handle DWARF-5.
9897 (add_include_dir_stub, read_formatted_entries): New functions.
9898 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9899 Handle DWARF-5.
9900 (per_cu_header_read_in): Update read_comp_unit_head caller.
9901 (dwarf2_version): New function.
9902 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9903 rnglists.
9904 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9905 fields.
9906
9907 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9910
9911 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9912
9913 * dwarf2read.c (dwarf2_ranges_process): New function from
9914 dwarf2_ranges_read.
9915 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9916 dwarf2_ranges_process.
9917
9918 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9919
9920 * dwarf2read.c (create_debug_type_hash_table): New function from
9921 create_debug_types_hash_table.
9922 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9923 (create_all_type_units, open_and_init_dwo_file): Update
9924 create_debug_types_hash_table callers.
9925
9926 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9927
9928 PR gdb/16188
9929 * fork-child.c (trace_start_error): Fix thinko. va_end should
9930 refer to 'ap', not 'args'.
9931
9932 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9933 Pedro Alves <palves@redhat.com>
9934
9935 PR gdb/16188
9936 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9937 calls succeeded.
9938 * fork-child.c (trace_start_error): New function.
9939 (trace_start_error_with_name): Likewise.
9940 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9941 * inf-ptrace.c (inf_ptrace_me): Likewise.
9942 * inferior.h (trace_start_error): New prototype.
9943 (trace_start_error_with_name): Likewise.
9944
9945 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9946
9947 PR gdb/21164
9948 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9949 NULL before using it.
9950 * symmisc.c (maintenance_print_symbols): Likewise.
9951 (maintenance_print_msymbols): Likewise.
9952
9953 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9954
9955 * NEWS: Add record Python bindings entry.
9956
9957 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9958
9959 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9960 py-record-full.o.
9961 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9962 * python/py-record-btrace.c, python/py-record-btrace.h,
9963 python/py-record-full.c, python/py-record-full.h: New file.
9964 * python/py-record.c: Add include for py-record-btrace.h and
9965 py-record-full.h.
9966 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9967 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9968 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9969 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9970 New definition.
9971 (gdbpy_initialize_btrace): New export.
9972 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9973
9974 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9975
9976 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9977 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9978 * python/py-record.c: New file.
9979 * python/python-internal.h (gdbpy_start_recording,
9980 gdbpy_current_recording, gdpy_stop_recording,
9981 gdbpy_initialize_record): New export.
9982 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9983 (python_GdbMethods): Add gdbpy_start_recording,
9984 gdbpy_current_recording and gdbpy_stop_recording.
9985
9986 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9987
9988 * record-btrace.c (record_btrace_record_method): New function.
9989 (init_record_btrace_ops): Initialize to_record_method.
9990 * record-full.c (record_full_record_method): New function.
9991 (init_record_full_ops, init_record_full_core_ops): Add
9992 record_full_record_method.
9993 * record.h (enum record_method): New enum.
9994 * target-debug.h (target_debug_print_enum_record_method: New define.
9995 * target-delegates.c: Regenerate.
9996 * target.c (target_record_method): New function.
9997 * target.h: Include record.h.
9998 (struct target_ops) <to_record_method>: New field.
9999 (target_record_method): New export.
10000
10001 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10002
10003 * record.h (record_start, record_stop): New export.
10004 * record.c (record_start, record_stop): New function.
10005
10006 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10007
10008 * btrace.c (btrace_fetch): Copy function call segments pointer
10009 into a vector.
10010 (btrace_clear): Clear the vector.
10011 (btrace_find_insn_by_number): Use binary search to find the correct
10012 function call segment.
10013 * btrace.h (brace_fun_p): New typedef.
10014 (struct btrace_thread_info) <functions>: New field.
10015
10016 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10017
10018 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10019 * btrace.c (btrace_decode_error): ... here. New function.
10020 * btrace.h (btrace_decode_error): New export.
10021
10022 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10023
10024 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10025 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10026 btrace_find_insn_by_number): Remove special case for gaps.
10027 * btrace.h (btrace_insn_get_error): New export.
10028 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10029 * record-btrace.c (btrace_insn_history): Print number for gaps.
10030 (record_btrace_info, record_btrace_goto): Handle gaps.
10031
10032 2017-02-14 Tom Tromey <tom@tromey.com>
10033
10034 PR python/13598:
10035 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10036 event.
10037 * python/py-evts.c (gdbpy_initialize_py_events): Add
10038 before_prompt registry.
10039 * python/py-events.h (events_object) <before_prompt>: New field.
10040
10041 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10042
10043 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10044
10045 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10046
10047 * symfile (_initialize_symfile): Add usage text to the load command's
10048 help text.
10049
10050 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10051
10052 * utils.c (defaulted_query): Don't query on secondary UIs.
10053
10054 2017-02-10 Tom Tromey <tom@tromey.com>
10055
10056 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10057
10058 2017-02-10 Tom Tromey <tom@tromey.com>
10059
10060 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10061 "cleanup" local.
10062 * python/py-type.c (typy_legacy_template_argument): Remove
10063 unnecessary "cleanup" local.
10064
10065 2017-02-10 Tom Tromey <tom@tromey.com>
10066
10067 * python/python.c (do_start_initialization): New function, from
10068 _initialize_python.
10069 (_initialize_python): Call do_start_initialization.
10070 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10071 goto.
10072
10073 2017-02-10 Tom Tromey <tom@tromey.com>
10074
10075 * python/py-prettyprint.c (pretty_print_one_value): Use
10076 gdbpy_ref.
10077
10078 2017-02-10 Tom Tromey <tom@tromey.com>
10079
10080 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10081 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10082 gdbpy_ref.
10083 * python/py-type.c (field_new): Use gdbpy_ref.
10084 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10085 gdbpy_ref.
10086 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10087 (py_free_pspace): Likewise.
10088 (pspace_to_pspace_object): Likewise.
10089 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10090 (py_free_objfile): Likewise.
10091 (objfile_to_objfile_object): Likewise.
10092 * python/py-inferior.c (delete_thread_object): Use
10093 gdbpy_ref.
10094 (infpy_read_memory): Likewise.
10095 (py_free_inferior): Likewise.
10096 * python/py-evtregistry.c (create_eventregistry_object): Use
10097 gdbpy_ref.
10098 * python/py-event.c (create_event_object): Use gdbpy_ref.
10099
10100 2017-02-10 Tom Tromey <tom@tromey.com>
10101
10102 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10103 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10104 used.
10105 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10106 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10107 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10108 python/py-framefilter.c, python/py-function.c,
10109 python/py-inferior.c, python/py-infevents.c,
10110 python/py-linetable.c, python/py-newobjfileevent.c,
10111 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10112 python/py-signalevent.c, python/py-stopevent.c,
10113 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10114 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10115 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10116 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10117
10118 2017-02-10 Tom Tromey <tom@tromey.com>
10119
10120 * ui-out.h (ui_out_emit_type): New class.
10121 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10122 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10123 and ui_out_emit_tuple.
10124 (enumerate_locals): Likewise.
10125 (py_mi_print_variables, py_print_locals, py_print_args): Use
10126 ui_out_emit_list.
10127 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10128 ui_out_emit_list.
10129 * common/gdb_optional.h: New file.
10130
10131 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10132
10133 * MAINTAINERS (Write After Approval): Update my e-mail address.
10134
10135 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10136
10137 PR gdb/21122
10138 * breakpoint.c (_initialize_breakpoint): Update the help description
10139 of the 'commands' command to indicate that it takes a list argument.
10140
10141 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10142
10143 * interps.c (current_interp_set_logging): Remove "return".
10144
10145 2017-02-09 Gary Benson <gbenson@redhat.com>
10146
10147 * symtab.c (add_symtab_completions): Prevent NULL pointer
10148 dereference.
10149
10150 2017-02-08 Pedro Alves <palves@redhat.com>
10151
10152 * interps.c (interp::interp): Remove reference to quiet_p.
10153 (interp_set): Make static. Remove dead "Switching to" output
10154 code.
10155 (interp_quiet_p, interp_set_quiet): Delete.
10156 (interpreter_exec_cmd): Don't set the interpreter quiet.
10157 * interps.h (interp_quiet_p): Make static.
10158 (class interp) <quiet_p>: Remove field
10159
10160 2017-02-08 Jerome Guitton <guitton@adacore.com>
10161
10162 * cli/cli-decode.c (find_command_name_length): Make it extern.
10163 * cli/cli-decode.h (find_command_name_length): Declare.
10164 * cli/cli-script.c (command_name_equals, line_first_arg):
10165 New functions.
10166 (process_next_line): Use cli-decode to parse command names.
10167 (build_command_line): Make args a constant pointer.
10168
10169 2017-02-08 Jerome Guitton <guitton@adacore.com>
10170
10171 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10172 Remove case-insensitive search.
10173
10174 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10175
10176 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10177 at the end of the line. Avoids an ARI warning.
10178
10179 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10180
10181 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10182 rdseed instructions.
10183 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10184
10185 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10186
10187 PR tdep/20936
10188 Provide and use sparc32 and sparc64 target description XML files.
10189 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10190 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10191 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10192 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10193 * features/sparc/sparc32-solaris.xml: New file.
10194 * features/sparc/sparc64-solaris.xml: New file.
10195 * features/sparc/sparc32-solaris.c: Generated.
10196 * features/sparc/sparc64-solaris.c: Generated.
10197 * sparc-tdep.h: Account for differences in target descriptions.
10198 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10199 (sparc32_register_type): Use target provided registers.
10200 (validate_tdesc_registers): New function.
10201 (sparc32_gdbarch_init): Use tdesc_has_registers.
10202 Set pseudoregister functions.
10203 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10204 (sparc64_register_type): Use target provided registers.
10205 (sparc64_init_abi): Set pseudoregister functions.
10206
10207 2017-02-03 Tom Tromey <tom@tromey.com>
10208
10209 PR rust/21097:
10210 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10211 with a single member.
10212
10213 2017-02-03 Pedro Alves <palves@redhat.com>
10214
10215 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10216 (cli_interp_base::~cli_interp_base): New.
10217 (cli_interp): New struct.
10218 (as_cli_interp): Cast the interp itself to cli_interp.
10219 (cli_interpreter_pre_command_loop): Rename to ...
10220 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10221 parameter.
10222 (cli_interpreter_init): Rename to ...
10223 (cli_interp::init): ... this. Remove 'self' parameter. Use
10224 boolean. Make extern.
10225 (cli_interpreter_resume): Rename to ...
10226 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10227 extern.
10228 (cli_interpreter_suspend): Rename to ...
10229 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10230 extern.
10231 (cli_interpreter_exec): Rename to ...
10232 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10233 extern.
10234 (cli_interpreter_supports_command_editing): Rename to ...
10235 (cli_interp_base::supports_command_editing): ... this. Remove
10236 'interp' parameter. Make extern.
10237 (cli_ui_out): Rename to ...
10238 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10239 Make extern.
10240 (cli_set_logging): Rename to ...
10241 (cli_interp_base::set_logging): ... this. Remove 'interp'
10242 parameter. Make extern.
10243 (cli_interp_procs): Delete.
10244 (cli_interp_factory): Adjust to use "new".
10245 * cli/cli-interp.h: Include "interps.h".
10246 (struct cli_interp_base): New struct.
10247 * interps.c (struct interp): Delete. Fields moved to interps.h.
10248 (interp_new): Delete.
10249 (interp::interp, interp::~interp): New.
10250 (interp_set): Use bool, and return void. Assume the interpreter
10251 has suspend, init and resume methods, and that the all return
10252 void.
10253 (set_top_level_interpreter): interp_set returns void.
10254 (interp_ui_out): Adapt.
10255 (current_interp_set_logging): Adapt.
10256 (interp_data): Delete.
10257 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10258 (interp_exec): Adapt.
10259 (top_level_interpreter_data): Delete.
10260 * interps.h (interp_init_ftype, interp_resume_ftype)
10261 (interp_suspend_ftype, interp_exec_ftype)
10262 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10263 (class interp): New.
10264 (interp_new): Delete.
10265 (interp_set): Now returns void. Use bool.
10266 (interp_data, top_level_interpreter_data): Delete.
10267 * mi/mi-common.h: Include interps.h.
10268 (class mi_interp): Inherit from interp. Define a ctor. Declare
10269 init, resume, suspect, exec, interp_ui_out, set_logging and
10270 pre_command_loop methods.
10271 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10272 (mi_interpreter_init): Rename to ...
10273 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10274 bool, return void and make extern. Adjust.
10275 (mi_interpreter_resume): ... Rename to ...
10276 (mi_interp::resume): ... this. Remove the 'data' parameter,
10277 return void and make extern. Adjust.
10278 (mi_interpreter_suspend): ... Rename to ...
10279 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10280 return void and make extern. Adjust.
10281 (mi_interpreter_exec): ... Rename to ...
10282 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10283 extern. Adjust.
10284 (mi_interpreter_pre_command_loop): ... Rename to ...
10285 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10286 parameter and make extern.
10287 (mi_on_normal_stop_1): Adjust.
10288 (mi_ui_out): Rename to ...
10289 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10290 parameter and make extern. Adjust.
10291 (mi_set_logging): Rename to ...
10292 (mi_interp::set_logging): ... this. Remove the 'interp'
10293 parameter and make extern. Adjust.
10294 (mi_interp_procs): Delete.
10295 (mi_interp_factory): Adjust to use 'new'.
10296 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10297 (mi_print_exception, mi_execute_command, mi_load_progress):
10298 Adjust.
10299 * tui/tui-interp.c (tui_interp): New class.
10300 (as_tui_interp): Return a tui_interp pointer.
10301 (tui_on_normal_stop, tui_on_signal_received)
10302 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10303 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10304 to use interp::interp_ui_out.
10305 (tui_init): Rename to ...
10306 (tui_interp::init): ... this. Remove the 'self' parameter, use
10307 bool, return void and make extern. Adjust.
10308 (tui_resume): Rename to ...
10309 (tui_interp::resume): ... this. Remove the 'data' parameter,
10310 return void and make extern. Adjust.
10311 (tui_suspend): Rename to ...
10312 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10313 return void and make extern. Adjust.
10314 (tui_ui_out): Rename to ...
10315 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10316 parameter, and make extern. Adjust.
10317 (tui_exec): Rename to ...
10318 (tui_interp::exec): ... this. Remove the 'data' parameter and
10319 make extern.
10320 (tui_interp_procs): Delete.
10321 (tui_interp_factory): Use "new".
10322
10323 2017-02-02 Tom Tromey <tom@tromey.com>
10324
10325 * rust-exp.y (ends_raw_string, space_then_number)
10326 (rust_identifier_start_p): Return bool.
10327 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10328 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10329 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10330 (rust_chartype_p): Return bool.
10331 (val_print_struct, rust_print_struct_def, rust_print_type):
10332 Update.
10333 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10334 Return bool.
10335
10336 2017-02-02 Tom Tromey <tom@tromey.com>
10337
10338 * rust-lang.c: Reindent.
10339
10340 2017-02-02 Tom Tromey <tom@tromey.com>
10341
10342 * rust-lang.h (rust_crate_for_block): Update.
10343 * rust-lang.c (rust_crate_for_block): Return std::string.
10344 (rust_get_disr_info): Use std:;string, not
10345 gdb::unique_xmalloc_ptr.
10346 * rust-exp.y (crate_name): Update.
10347
10348 2017-02-02 Pedro Alves <palves@redhat.com>
10349
10350 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10351 field out of gdb_disassembler_test and make it static.
10352
10353 2017-02-02 Pedro Alves <palves@redhat.com>
10354
10355 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10356 mi1_interp and mi_interp fields.
10357
10358 2017-02-02 Pedro Alves <palves@redhat.com>
10359
10360 * cli/cli-interp.c (struct saved_output_files, saved_output):
10361 Moved from cli/cli-logging.c.
10362 (cli_set_logging): New function.
10363 (cli_interp_procs): Install cli_set_logging.
10364 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10365 Declare.
10366 * cli/cli-logging.c (struct saved_output_files, saved_output):
10367 Moved to cli/cli-interp.c.
10368 (pop_output_files): Don't save outputs here.
10369 (make_logging_output): New function.
10370 (handle_redirections): Don't build tee nor save previous outputs
10371 here.
10372 * interps.c (current_interp_set_logging): Change prototype.
10373 Assume there's always a set_logging_proc method installed.
10374 * interps.h (interp_set_logging_ftype): Change prototype.
10375 (current_interp_set_logging): Change prototype and adjust comment.
10376 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10377 use make_logging_output.
10378 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10379 2017-02-02 Pedro Alves <palves@redhat.com>
10380
10381 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10382 from ...
10383 (set_logging_overwrite): ... here.
10384 (logging_no_redirect_file): Delete.
10385 (set_logging_redirect): Don't handle redirection on the fly.
10386 Instead warn that "logging off" / "logging on" is necessary.
10387 (pop_output_files): Delete references to logging_no_redirect_file.
10388 (show_logging_command): Always speak in terms of what will happen
10389 once logging is reenabled.
10390
10391 2017-02-02 Pedro Alves <palves@redhat.com>
10392
10393 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10394
10395 2017-02-02 Pedro Alves <palves@redhat.com>
10396
10397 * disasm.c (gdb_pretty_print_insn): Rename to ...
10398 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10399 Remove gdbarch parameter. Adapt to clear the object's buffers
10400 instead of allocating new buffers, and to print using the object's
10401 gdb_disassembler instead of calling gdb_print_insn.
10402 (dump_insns): Use gdb_pretty_print_disassembler.
10403 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10404 (gdb_pretty_print_disassembler): New class.
10405 * record-btrace.c (btrace_insn_history): Use
10406 gdb_pretty_print_disassembler.
10407
10408 2017-02-02 Pedro Alves <palves@redhat.com>
10409
10410 * ada-lang.c (type_as_string): Use string_file.
10411 * ada-valprint.c (ada_print_floating): Use string_file.
10412 * ada-varobj.c (ada_varobj_scalar_image)
10413 (ada_varobj_get_value_image): Use string_file.
10414 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10415 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10416 * breakpoint.c (update_inserted_breakpoint_locations)
10417 (insert_breakpoint_locations, reattach_breakpoints)
10418 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10419 (print_it_watchpoint): Use string_file.
10420 (save_breakpoints): Use stdio_file.
10421 * c-exp.y (oper): Use string_file.
10422 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10423 tee_file.
10424 (pop_output_files): Use delete.
10425 (handle_redirections): Use stdio_file and tee_file.
10426 * cli/cli-setshow.c (do_show_command): Use string_file.
10427 * compile/compile-c-support.c (c_compute_program): Use
10428 string_file.
10429 * compile/compile-c-symbols.c (generate_vla_size): Take a
10430 'string_file &' instead of a 'ui_file *'.
10431 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10432 of a 'ui_file *'. Use string_file.
10433 (generate_c_for_variable_locations): Take a 'string_file &'
10434 instead of a 'ui_file *'.
10435 * compile/compile-internal.h (generate_c_for_for_one_variable):
10436 Take a 'string_file &' instead of a 'ui_file *'.
10437 * compile/compile-loc2c.c (push, pushf, unary, binary)
10438 (print_label, pushf_register_address, pushf_register)
10439 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10440 'ui_file *'. Adjust.
10441 * compile/compile.c (compile_to_object): Use string_file.
10442 * compile/compile.h (compile_dwarf_expr_to_c)
10443 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10444 'ui_file *'.
10445 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10446 (replace_typedefs_qualified_name): Use string_file and
10447 obstack_copy0.
10448 * disasm.c (gdb_pretty_print_insn): Use string_file.
10449 (gdb_disassembly): Adjust reference the null_stream global.
10450 (do_ui_file_delete): Delete.
10451 (gdb_insn_length): Use null_stream.
10452 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10453 * dwarf2loc.c (dwarf2_compile_property_to_c)
10454 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10455 'string_file &' instead of a 'ui_file *'.
10456 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10457 * dwarf2read.c (do_ui_file_peek_last): Delete.
10458 (dwarf2_compute_name): Use string_file.
10459 * event-top.c (gdb_setup_readline): Use stdio_file.
10460 * gdbarch.sh (verify_gdbarch): Use string_file.
10461 * gdbtypes.c (safe_parse_type): Use null_stream.
10462 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10463 string_file.
10464 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10465 'string_file *' instead of a 'ui_file *'.
10466 (gdbscm_arch_disassemble): Use string_file.
10467 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10468 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10469 inherits from ui_file.
10470 (ioscm_file_port_delete, ioscm_file_port_rewind)
10471 (ioscm_file_port_put): Delete.
10472 (ioscm_file_port_write): Rename to ...
10473 (ioscm_file_port::write): ... this. Remove file_port_magic
10474 checks.
10475 (ioscm_file_port_new): Delete.
10476 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10477 ui_file_up.
10478 * guile/scm-type.c (tyscm_type_name): Use string_file.
10479 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10480 Use string_file.
10481 * infcmd.c (print_return_value_1): Use string_file.
10482 * infrun.c (print_target_wait_results): Use string_file.
10483 * language.c (add_language): Use string_file.
10484 * location.c (explicit_to_string_internal): Use string_file.
10485 * main.c (captured_main_1): Use null_file.
10486 * maint.c (maintenance_print_architecture): Use stdio_file.
10487 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10488 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10489 event_channel>: Change type to mi_console_file pointer.
10490 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10491 (mi_console_file_delete): Delete.
10492 (struct mi_console_file): Delete.
10493 (mi_console_file_magic): Delete.
10494 (mi_console_file_new): Delete.
10495 (mi_console_file::mi_console_file): New.
10496 (mi_console_file_delete): Delete.
10497 (mi_console_file_fputs): Delete.
10498 (mi_console_file::write): New.
10499 (mi_console_raw_packet): Delete.
10500 (mi_console_file::flush): New.
10501 (mi_console_file_flush): Delete.
10502 (mi_console_set_raw): Rename to ...
10503 (mi_console_file::set_raw): ... this.
10504 * mi/mi-console.h (class mi_console_file): New class.
10505 (mi_console_file_new, mi_console_set_raw): Delete.
10506 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10507 (mi_set_logging): Use delete and tee_file. Adjust.
10508 * mi/mi-main.c (output_register): Use string_file.
10509 (mi_cmd_data_evaluate_expression): Use string_file.
10510 (mi_cmd_data_read_memory): Use string_file.
10511 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10512 * mi/mi-out.c (mi_ui_out::main_stream): New.
10513 (mi_ui_out::rewind): Use main_stream and
10514 string_file.
10515 (mi_ui_out::put): Use main_stream and string_file.
10516 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10517 Allocate a 'string_file' instead.
10518 (mi_out_new): Don't allocate a mem_fileopen stream here.
10519 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10520 (mi_ui_out::main_stream): Declare method.
10521 * printcmd.c (eval_command): Use string_file.
10522 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10523 * python/py-arch.c (archpy_disassemble): Use string_file.
10524 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10525 * python/py-frame.c (frapy_str): Use string_file.
10526 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10527 Use string_file.
10528 * python/py-type.c (typy_str): Use string_file.
10529 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10530 * python/py-value.c (valpy_str): Use string_file.
10531 * record-btrace.c (btrace_insn_history): Use string_file.
10532 * regcache.c (regcache_print): Use stdio_file.
10533 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10534 * remote.c (escape_buffer): Use string_file.
10535 * rust-lang.c (rust_get_disr_info): Use string_file.
10536 * serial.c (serial_open_ops_1): Use stdio_file.
10537 (do_serial_close): Use delete.
10538 * stack.c (print_frame_arg): Use string_file.
10539 (print_frame_args): Remove local mem_fileopen stream, not used.
10540 (print_frame): Use string_file.
10541 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10542 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10543 Take a 'string_file *' instead of a 'ui_file *'.
10544 * top.c (new_ui): Use stdio_file and stderr_file.
10545 (free_ui): Use delete.
10546 (execute_command_to_string): Use string_file.
10547 (quit_confirm): Use string_file.
10548 * tracepoint.c (collection_list::append_exp): Use string_file.
10549 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10550 * tui/tui-file.c: Don't include "ui-file.h".
10551 (enum streamtype, struct tui_stream): Delete.
10552 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10553 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10554 (tui_file::tui_file): New method.
10555 (tui_file_fputs): Delete.
10556 (tui_file_get_strbuf): Delete.
10557 (tui_file::puts): New method.
10558 (tui_file_adjust_strbuf): Delete.
10559 (tui_file_flush): Delete.
10560 (tui_file::flush): New method.
10561 * tui/tui-file.h: Tweak intro comment.
10562 Include ui-file.h.
10563 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10564 (tui_file_adjust_strbuf): Delete declarations.
10565 (class tui_file): New class.
10566 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10567 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10568 (tui_register_format): Use string_stream.
10569 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10570 (tui_get_function_from_frame): Use string_file.
10571 * typeprint.c (type_to_string): Use string_file.
10572 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10573 (null_stream): New global.
10574 (ui_file_delete): Delete.
10575 (ui_file::ui_file): New.
10576 (null_file_isatty): Delete.
10577 (ui_file::~ui_file): New.
10578 (null_file_rewind): Delete.
10579 (ui_file::printf): New.
10580 (null_file_put): Delete.
10581 (null_file_flush): Delete.
10582 (ui_file::putstr): New.
10583 (null_file_write): Delete.
10584 (ui_file::putstrn): New.
10585 (null_file_read): Delete.
10586 (ui_file::putc): New.
10587 (null_file_fputs): Delete.
10588 (null_file_write_async_safe): Delete.
10589 (ui_file::vprintf): New.
10590 (null_file_delete): Delete.
10591 (null_file::write): New.
10592 (null_file_fseek): Delete.
10593 (null_file::puts): New.
10594 (ui_file_data): Delete.
10595 (null_file::write_async_safe): New.
10596 (gdb_flush, ui_file_isatty): Adjust.
10597 (ui_file_put, ui_file_rewind): Delete.
10598 (ui_file_write): Adjust.
10599 (ui_file_write_for_put): Delete.
10600 (ui_file_write_async_safe, ui_file_read): Adjust.
10601 (ui_file_fseek): Delete.
10602 (fputs_unfiltered): Adjust.
10603 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10604 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10605 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10606 (set_ui_file_data): Delete.
10607 (string_file::~string_file, string_file::write)
10608 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10609 (do_ui_file_as_string, ui_file_as_string): Delete.
10610 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10611 (struct mem_file): Delete.
10612 (mem_file_new): Delete.
10613 (stdio_file::stdio_file): New.
10614 (mem_file_delete): Delete.
10615 (stdio_file::stdio_file): New.
10616 (mem_fileopen): Delete.
10617 (stdio_file::~stdio_file): New.
10618 (mem_file_rewind): Delete.
10619 (stdio_file::set_stream): New.
10620 (mem_file_put): Delete.
10621 (stdio_file::open): New.
10622 (mem_file_write): Delete.
10623 (stdio_file_magic, struct stdio_file): Delete.
10624 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10625 (stdio_file::flush): New.
10626 (stdio_file_read): Rename to ...
10627 (stdio_file::read): ... this. Adjust.
10628 (stdio_file_write): Rename to ...
10629 (stdio_file::write): ... this. Adjust.
10630 (stdio_file_write_async_safe): Rename to ...
10631 (stdio_file::write_async_safe) ... this. Adjust.
10632 (stdio_file_fputs): Rename to ...
10633 (stdio_file::puts) ... this. Adjust.
10634 (stdio_file_isatty): Delete.
10635 (stdio_file_fseek): Delete.
10636 (stdio_file::isatty): New.
10637 (stderr_file_write): Rename to ...
10638 (stderr_file::write) ... this. Adjust.
10639 (stderr_file_fputs): Rename to ...
10640 (stderr_file::puts) ... this. Adjust.
10641 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10642 (stderr_file::stderr_file): New.
10643 (tee_file_magic): Delete.
10644 (struct tee_file): Delete.
10645 (tee_file::tee_file): New.
10646 (tee_file_new): Delete.
10647 (tee_file::~tee_file): New.
10648 (tee_file_delete): Delete.
10649 (tee_file_flush): Rename to ...
10650 (tee_file::flush): ... this. Adjust.
10651 (tee_file_write): Rename to ...
10652 (tee_file::write): ... this. Adjust.
10653 (tee_file::write_async_safe): New.
10654 (tee_file_fputs): Rename to ...
10655 (tee_file::puts): ... this. Adjust.
10656 (tee_file_isatty): Rename to ...
10657 (tee_file::isatty): ... this. Adjust.
10658 * ui-file.h (struct obstack, struct ui_file): Don't
10659 forward-declare.
10660 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10661 (ui_file_write_ftype)
10662 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10663 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10664 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10665 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10666 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10667 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10668 (set_ui_file_fseek): Delete.
10669 (ui_file_data, ui_file_delete, ui_file_rewind)
10670 (struct ui_file): New.
10671 (ui_file_up): New.
10672 (class null_file): New.
10673 (null_stream): Declare.
10674 (ui_file_write_for_put, ui_file_put): Delete.
10675 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10676 Delete.
10677 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10678 (gdb_fopen, tee_file_new): Delete.
10679 (struct string_file): New.
10680 (struct stdio_file): New.
10681 (stdio_file_up): New.
10682 (struct stderr_file): New.
10683 (class tee_file): New.
10684 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10685 of a 'ui_file *'. Adjust.
10686 * ui-out.h (class ui_out) <field_stream>: Likewise.
10687 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10688 (null_stream): Delete.
10689 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10690 Adjust.
10691 * utils.h (struct ui_file): Delete forward declaration..
10692 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10693 (error_stream): Take a 'string_file &' instead of a
10694 'ui_file *'.
10695 * varobj.c (varobj_value_get_print_value): Use string_file.
10696 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10697 * gdbarch.c: Regenerate.
10698
10699 2017-02-02 Pedro Alves <palves@redhat.com>
10700
10701 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10702 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10703 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10704 Adjust to call gdb_print_insn instead of
10705 gdb_disassembler::print_insn.
10706 (dump_insns, do_mixed_source_and_assembly_deprecated)
10707 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10708 'gdbarch' parameter. Remove gdb_disassembler parameter.
10709 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10710 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10711 declaration.
10712 (gdb_pretty_print_insn): Re-add declaration.
10713 * record-btrace.c (btrace_insn_history): Don't allocate a
10714 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10715
10716 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10717
10718 * disasm.h (gdb_disassembly): Remove file_string parameter.
10719 * disasm.c (gdb_disassembly): Likewise.
10720 * cli/cli-cmds.c (print_disassembly): Adapt.
10721 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10722 * stack.c (do_gdb_disassembly): Likewise.
10723
10724 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10725
10726 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10727 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10728 targets. And if the implicit value is longer than needed, extract
10729 the first bytes instead of the "least significant" ones.
10730
10731 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10732
10733 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10734 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10735 (btrace_fetch): Assert can_access_registers_ptid.
10736 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10737 validate_registers_access.
10738
10739 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10740
10741 * gdbthread.h (can_access_registers_ptid): New.
10742 * thread.c (can_access_registers_ptid): New.
10743
10744 2017-02-01 Pedro Alves <palves@redhat.com>
10745
10746 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10747
10748 2017-01-31 Pedro Alves <palves@redhat.com>
10749
10750 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10751 Fix typos.
10752
10753 2017-01-31 Pedro Alves <palves@redhat.com>
10754
10755 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10756 not used.
10757
10758 2017-01-31 Pedro Alves <palves@redhat.com>
10759
10760 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10761
10762 2017-01-31 Pedro Alves <palves@redhat.com>
10763
10764 * common/scoped_restore.h
10765 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10766 change the value's parameter type to T2.
10767 (make_scoped_restore): Likewise.
10768
10769 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10770 Richard Henderson <rth@redhat.com>
10771
10772 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10773 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10774 GS_BASE for older kernels.
10775 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10776 GS_BASE for older kernels.
10777 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10778 and GS_BASE to the offset table.
10779 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10780 system register group.
10781 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10782 for older kernels.
10783 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10784 amd64 ABI.
10785 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10786 AMD64_GSBASE_REGNUM.
10787 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10788 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10789 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10790 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10791 i386/64bit-segments.xml in those rules.
10792 * features/i386/64bit-segments.xml: New file.
10793 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10794 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10795 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10796 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10797 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10798 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10799 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10800 * features/i386/amd64-avx-linux.c: Regenerated.
10801 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10802 * features/i386/amd64-avx-mpx.c: Regenerated.
10803 * features/i386/amd64-avx512-linux.c: Regenerated.
10804 * features/i386/amd64-linux.c: Regenerated.
10805 * features/i386/amd64-mpx-linux.c: Regenerated.
10806 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10807 * features/i386/i386-avx-mpx.c: Regenerated.
10808 * features/i386/x32-avx-linux.c: Regenerated.
10809 * features/i386/x32-avx512-linux.c: Regenerated.
10810 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10811 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10812 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10813 * regformats/i386/amd64-linux.dat: Regenerated.
10814 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10815 * regformats/i386/x32-avx-linux.dat: Regenerated.
10816 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10817 * regformats/i386/x32-linux.dat: Regenerated.
10818
10819 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10820
10821 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10822 Set to AMD64_NUM_REGS.
10823
10824 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10825
10826 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10827 that checks validity of a register number.
10828
10829 2017-01-27 Kees Cook <keescook@google.com>
10830
10831 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10832 fetch_fpregs if target has fpa registers.
10833 (arm_linux_store_inferior_registers): Call store_fpregs if target
10834 has fpa registers.
10835
10836 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10837
10838 * cris-tdep.c (cris_gdbarch_init): Remove check for
10839 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10840
10841 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10842
10843 * corelow.c (get_core_register_section): Check for regset
10844 existence before checking for REGSET_VARIABLE_SIZE.
10845
10846 2017-01-26 Yao Qi <yao.qi@linaro.org>
10847 Pedro Alves <palves@redhat.com>
10848
10849 PR gdb/20939
10850 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10851 call memory_error, save memaddr instead.
10852 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10853 negative, cal memory_error.
10854 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10855
10856 2017-01-26 Yao Qi <yao.qi@linaro.org>
10857
10858 * disasm-selftests.c (memory_error_test): New function.
10859 (_initialize_disasm_selftests): Register memory_error_test.
10860
10861 2017-01-26 Yao Qi <yao.qi@linaro.org>
10862
10863 * Makefile.in (SFILES): Add disasm-selftests.c and
10864 selftest-arch.c.
10865 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10866 * disasm-selftests.c: New file.
10867 * selftest-arch.c: New file.
10868 * selftest-arch.h: New file.
10869
10870 2017-01-26 Yao Qi <yao.qi@linaro.org>
10871
10872 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10873 to bfd_arch_mep. Don't return 0 if section is not
10874 found. Call print_insn_mep.
10875
10876 2017-01-26 Pedro Alves <palves@redhat.com>
10877 Yao Qi <yao.qi@linaro.org>
10878
10879 * arm-tdep.c: Include "disasm.h".
10880 (gdb_print_insn_arm): Update code to get gdbarch.
10881 * disasm.c (dis_asm_read_memory): Change it to
10882 gdb_disassembler::dis_asm_read_memory.
10883 (dis_asm_memory_error): Likewise.
10884 (dis_asm_print_address): Likewise.
10885 (gdb_pretty_print_insn): Change it to
10886 gdb_disassembler::pretty_print_insn.
10887 (dump_insns): Add one argument gdb_disassemlber. All
10888 callers updated.
10889 (do_mixed_source_and_assembly_deprecated): Likewise.
10890 (do_mixed_source_and_assembly): Likewise.
10891 (do_assembly_only): Likewise.
10892 (gdb_disassembler::gdb_disassembler): New.
10893 (gdb_disassembler::print_insn): New.
10894 * disasm.h (class gdb_disassembler): New.
10895 (gdb_pretty_print_insn): Remove declaration.
10896 (gdb_disassemble_info): Likewise.
10897 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10898 (gdbscm_disasm_read_memory_worker): Update.
10899 (gdbscm_disasm_read_memory): Update.
10900 (gdbscm_disasm_memory_error): Remove.
10901 (gdbscm_disasm_print_address): Remove.
10902 (gdbscm_disassembler::gdbscm_disassembler): New.
10903 (gdbscm_print_insn_from_port): Update.
10904 * mips-tdep.c: Include disasm.h.
10905 (gdb_print_insn_mips): Update code to get gdbarch.
10906 * record-btrace.c (btrace_insn_history): Update.
10907 * spu-tdep.c: Include disasm.h.
10908 (struct spu_dis_asm_data): Remove.
10909 (struct spu_dis_asm_info): New.
10910 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10911 SPU id.
10912 (gdb_print_insn_spu): Cast disassemble_info to
10913 spu_dis_asm_info.
10914
10915 2017-01-26 Yao Qi <yao.qi@linaro.org>
10916
10917 * disasm.c (do_ui_file_delete): Delete.
10918 (gdb_insn_length): Move code creating stream to ...
10919 * utils.c (null_stream): ... here. New function.
10920 * utils.h (null_stream): Declare.
10921
10922 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10923
10924 * python/py-inferior.c (find_thread_object): Return directly
10925 from the loop. Remove "found" variable.
10926
10927 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10928
10929 GDB 7.12.1 released.
10930
10931 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10932
10933 * python/py-function.c (fnpy_call): Reorder declarations to have
10934 the gdbpy_enter object declared first.
10935 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10936
10937 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10938
10939 PR python/21068
10940 * python/python-internal.h (PyMem_RawMalloc): Define for
10941 Python < 3.4.
10942 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10943 PyMem_RawMalloc instead of PyMem_Malloc.
10944
10945 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10946 Luis Machado <lgustavo@codesourcery.com>
10947
10948 * NEWS (New commands): Mention flash-erase.
10949 (New MI commands): Mention target-flash-erase.
10950 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10951 command.
10952 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10953 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10954 * target.c (flash_erase_command): New function.
10955 (initialize_targets): Add new flash-erase command.
10956 * target.h (flash_erase_command): New declaration.
10957
10958 2017-01-20 Joel Brobecker <brobecker@adacore.com>
10959
10960 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10961 HAVE_SYS_PROCFS_H is defined.
10962
10963 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10964
10965 * remote.c (struct cached_reg): Change data into a pointer.
10966 * (stop_reply_dtr): Free data pointers before deleting vector.
10967 (process_stop_reply): Likewise.
10968 (remote_parse_stop_reply): Allocate space for data
10969
10970 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10971
10972 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10973 MAX_REGISTER_SIZE.
10974 (amd64_pseudo_register_read_value): Likewise.
10975 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10976 (store_register_using_P): Likewise.
10977 * regcache.c (regcache_xfer_part): Likewise.
10978
10979 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10980
10981 Split real and pseudo registers.
10982 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10983 (sparc32_pseudo_regnum): New enum.
10984 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10985 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10986 (SPARC32_CP0_REGISTERS): New macro.
10987 (sparc32_pseudo_register_name): New function.
10988 (sparc32_register_name): Use sparc32_pseudo_register_name.
10989 (sparc32_pseudo_register_type): New function.
10990 (sparc32_register_type): Use sparc32_pseudo_register_type.
10991 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10992 pseudo register numbers.
10993 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10994 (SPARC64_CP0_REGISTERS): New macro.
10995 (sparc64_pseudo_register_name): New function.
10996 (sparc64_register_name): Use sparc64_pseudo_register_name.
10997 (sparc64_pseudo_register_type): New function.
10998 (sparc64_register_type): Use sparc64_pseudo_register_type.
10999 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11000 pseudo register numbers.
11001 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11002 sparc64_store_arguments): Handle pseudo register numbers.
11003
11004 2017-01-13 Yao Qi <yao.qi@linaro.org>
11005
11006 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11007 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11008 output.
11009 (getpkt_or_notif_sane_1): Likewise.
11010
11011 2017-01-13 Yao Qi <yao.qi@linaro.org>
11012
11013 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11014 of CC. Pass "-x c++-header" instead of "-x c".
11015
11016 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11017
11018 * remote.c (remote_can_async_p): Update comment.
11019
11020 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11021
11022 * linux-nat.c (linux_nat_can_async_p): Update comment.
11023
11024 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11025
11026 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11027
11028 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11029
11030 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11031
11032 2017-01-10 Tom Tromey <tom@tromey.com>
11033
11034 * python/py-type.c (typy_legacy_template_argument): Update.
11035 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11036 ~demangle_parse_info): Declare new members.
11037 (cp_demangled_name_to_comp): Return unique_ptr.
11038 (cp_demangled_name_parse_free)
11039 (make_cleanup_cp_demangled_name_parse_free)
11040 (cp_new_demangle_parse_info): Remove.
11041 * cp-support.c (do_demangled_name_parse_free_cleanup)
11042 (make_cleanup_cp_demangled_name_parse_free): Remove.
11043 (inspect_type, cp_canonicalize_string_full)
11044 (cp_canonicalize_string): Update.
11045 (mangled_name_to_comp): Change return type.
11046 (cp_class_name_from_physname, method_name_from_physname)
11047 (cp_func_name, cp_remove_params): Update.
11048 * cp-name-parser.y (demangle_parse_info): New constructor, from
11049 cp_new_demangle_parse_info.
11050 (~demangle_parse_info): New destructor, from
11051 cp_demangled_name_parse_free.
11052 (cp_merge_demangle_parse_infos): Update.
11053 (cp_demangled_name_to_comp): Change return type.
11054
11055 2017-01-10 Tom Tromey <tom@tromey.com>
11056
11057 * top.c (prevent_dont_repeat): Change return type.
11058 * python/python.c (execute_gdb_command): Use std::string.
11059 Update.
11060 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11061 * command.h (prevent_dont_repeat): Change return type.
11062 * breakpoint.c (bpstat_do_actions_1): Update.
11063
11064 2017-01-10 Tom Tromey <tom@tromey.com>
11065
11066 * value.h (scoped_value_mark::~scoped_value_mark): Call
11067 free_to_mark.
11068 (scoped_value_mark::free_to_mark): New method.
11069 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11070 scoped_value_mark.
11071
11072 2017-01-10 Tom Tromey <tom@tromey.com>
11073
11074 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11075 (valpy_reference_value, valpy_const_value, valpy_get_address)
11076 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11077 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11078 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11079 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11080 scoped_value_mark.
11081 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11082 * value.h (scoped_value_mark): New class.
11083
11084 2017-01-10 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11087 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11088 * psymtab.c (discard_psymtabs_upto): Remove.
11089 (make_cleanup_discard_psymtabs): Remove.
11090 (struct psymtab_state): Remove.
11091
11092 2017-01-10 Tom Tromey <tom@tromey.com>
11093
11094 * record-full.c (record_full_save_cleanups): Remove.
11095 (record_full_save): Use gdb::unlinker.
11096 * gcore.c (do_bfd_delete_cleanup): Remove.
11097 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11098 cleanups.
11099 * dwarf2read.c (unlink_if_set): Remove.
11100 (write_psymtabs_to_index): Use gdb::unlinker.
11101 * common/gdb_unlinker.h: New file.
11102
11103 2017-01-10 Tom Tromey <tom@tromey.com>
11104
11105 * windows-tdep.c (windows_xfer_shared_library): Update.
11106 * windows-nat.c (windows_make_so): Update.
11107 * utils.h (make_cleanup_bfd_unref): Remove.
11108 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11109 * symfile.h (symfile_bfd_open)
11110 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11111 * symfile.c (read_symbols, symbol_file_add)
11112 (separate_debug_file_exists): Update.
11113 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11114 (generic_load, reread_symbols): Update.
11115 * symfile-mem.c (symbol_file_add_from_memory): Update.
11116 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11117 (spu_symbol_file_add_from_memory): Update.
11118 * solist.h (struct target_so_ops) <bfd_open>: Return
11119 gdb_bfd_ref_ptr.
11120 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11121 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11122 gdb_bfd_ref_ptr.
11123 (solib_map_sections, reload_shared_libraries_1): Update.
11124 * solib-svr4.c (enable_break): Update.
11125 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11126 * solib-frv.c (enable_break2): Update.
11127 * solib-dsbt.c (enable_break): Update.
11128 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11129 gdb_bfd_ref_ptr.
11130 (darwin_solib_get_all_image_info_addr_at_init): Update.
11131 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11132 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11133 * record-full.c (record_full_save): Update.
11134 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11135 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11136 * minidebug.c (find_separate_debug_file_in_section): Return
11137 gdb_bfd_ref_ptr.
11138 * machoread.c (macho_add_oso_symfile): Change abfd to
11139 gdb_bfd_ref_ptr.
11140 (macho_symfile_read_all_oso): Update.
11141 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11142 (macho_symfile_read): Update.
11143 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11144 (jit_bfd_try_read_symtab): Update.
11145 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11146 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11147 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11148 gdb_bfd_ref_ptr.
11149 (gdb_bfd_ref_policy): New struct.
11150 (gdb_bfd_ref_ptr): New typedef.
11151 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11152 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11153 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11154 gdb_bfd_ref_ptr.
11155 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11156 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11157 (gcore_command): Update.
11158 * exec.c (exec_file_attach): Update.
11159 * elfread.c (elf_symfile_read): Update.
11160 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11161 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11162 (open_and_init_dwo_file): Update.
11163 (open_dwp_file): Return gdb_bfd_ref_ptr.
11164 (open_and_init_dwp_file): Update.
11165 * corelow.c (core_open): Update.
11166 * compile/compile-object-load.c (compile_object_load): Update.
11167 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11168 * coffread.c (coff_symfile_read): Update.
11169 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11170 gdb_bfd_ref_ptr. Rename.
11171 (dump_bfd_file, restore_command): Update.
11172 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11173 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11174 (find_separate_debug_file_by_buildid): Update.
11175
11176 2017-01-10 Tom Tromey <tom@tromey.com>
11177
11178 * common/gdb_ref_ptr.h: New file.
11179 * python/py-ref.h (struct gdbpy_ref_policy): New.
11180 (gdbpy_ref): Now a typedef.
11181
11182 2017-01-10 Tom Tromey <tom@tromey.com>
11183
11184 * utils.h (make_cleanup_htab_delete): Don't declare.
11185 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11186 Remove.
11187 * linespec.c (decode_compound_collector): Add constructor,
11188 destructor.
11189 (lookup_prefix_sym): Remove cleanup.
11190 (symtab_collector): Add constructor, destructor.
11191 (collect_symtabs_from_filename): Remove cleanup.
11192 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11193 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11194 Use htab_up.
11195 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11196 * dwarf2read.c (dw2_expand_symtabs_matching)
11197 (dw2_map_symbol_filenames, dwarf_decode_macros)
11198 (write_psymtabs_to_index): Use htab_up.
11199 * dwarf2loc.c (func_verify_no_selftailcall)
11200 (call_site_find_chain_1, func_verify_no_selftailcall)
11201 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11202 std::vector, gdb::unique_xmalloc_ptr.
11203 (call_sitep): Remove typedef.
11204 (dwarf2_locexpr_baton_eval): Remove unused variable.
11205
11206 2017-01-10 Tom Tromey <tom@tromey.com>
11207
11208 * python/python-internal.h (make_cleanup_py_decref)
11209 (make_cleanup_py_xdecref): Don't declare.
11210 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11211 (py_xdecref, make_cleanup_py_xdecref): Remove.
11212
11213 2017-01-10 Tom Tromey <tom@tromey.com>
11214
11215 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11216 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11217
11218 2017-01-10 Tom Tromey <tom@tromey.com>
11219
11220 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11221
11222 2017-01-10 Tom Tromey <tom@tromey.com>
11223
11224 * python/py-utils.c (unicode_to_encoded_string)
11225 (python_string_to_target_string)
11226 (python_string_to_target_python_string)
11227 (python_string_to_host_string, gdbpy_obj_to_string)
11228 (get_addr_from_python): Use gdbpy_ref.
11229
11230 2017-01-10 Tom Tromey <tom@tromey.com>
11231
11232 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11233 gdbpy_ref.
11234
11235 2017-01-10 Tom Tromey <tom@tromey.com>
11236
11237 * python/python.c (eval_python_command, gdbpy_decode_line)
11238 (gdbpy_run_events, gdbpy_start_type_printers)
11239 (gdbpy_apply_type_printers): Use gdbpy_ref.
11240
11241 2017-01-10 Tom Tromey <tom@tromey.com>
11242
11243 * python/py-param.c (get_doc_string, compute_enum_values): Use
11244 gdbpy_ref.
11245
11246 2017-01-10 Tom Tromey <tom@tromey.com>
11247
11248 * python/py-inferior.c (find_thread_object, build_inferior_list):
11249 Use gdbpy_ref.
11250
11251 2017-01-10 Tom Tromey <tom@tromey.com>
11252
11253 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11254
11255 2017-01-10 Tom Tromey <tom@tromey.com>
11256
11257 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11258 gdbpy_ref.
11259
11260 2017-01-10 Tom Tromey <tom@tromey.com>
11261
11262 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11263 extra incref.
11264 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11265 Use gdbpy_ref.
11266
11267 2017-01-10 Tom Tromey <tom@tromey.com>
11268
11269 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11270 gdbpy_ref.
11271
11272 2017-01-10 Tom Tromey <tom@tromey.com>
11273
11274 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11275 decref results of PyArg_ParseTupleAndKeywords.
11276
11277 2017-01-10 Tom Tromey <tom@tromey.com>
11278
11279 * python/python.c (python_run_simple_file): Use
11280 unique_xmalloc_ptr, gdbpy_ref.
11281
11282 2017-01-10 Tom Tromey <tom@tromey.com>
11283
11284 * python/py-prettyprint.c (print_stack_unless_memory_error)
11285 (print_string_repr, print_children): Use gdbpy_ref.
11286 (dummy_python_frame): New class.
11287 (dummy_python_frame::dummy_python_frame): Rename from
11288 push_dummy_python_frame.
11289 (py_restore_tstate): Remove.
11290
11291 2017-01-10 Tom Tromey <tom@tromey.com>
11292
11293 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11294
11295 2017-01-10 Tom Tromey <tom@tromey.com>
11296
11297 * python/python.c (ensure_python_env, restore_python_env):
11298 Remove.
11299 * python/python-internal.h (ensure_python_env): Don't declare.
11300 * varobj.h (varobj_ensure_python_env): Don't declare.
11301 * varobj.c (varobj_ensure_python_env): Remove.
11302
11303 2017-01-10 Tom Tromey <tom@tromey.com>
11304
11305 * varobj.c (varobj_value_get_print_value): Use
11306 gdbpy_enter_varobj.
11307
11308 2017-01-10 Tom Tromey <tom@tromey.com>
11309
11310 * python/py-prettyprint.c (print_string_repr, print_children):
11311 Update.
11312 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11313 of "encoding".
11314 * varobj.c (varobj_value_get_print_value): Update.
11315 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11316
11317 2017-01-10 Tom Tromey <tom@tromey.com>
11318
11319 * varobj.c (varobj_get_display_hint)
11320 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11321 (varobj_set_visualizer, free_variable): Use
11322 gdbpy_enter_varobj.
11323
11324 2017-01-10 Tom Tromey <tom@tromey.com>
11325
11326 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11327 (do_finish_initialization): New function. Use gdbpy_ref.
11328 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11329 do_finish_initialization.
11330
11331 2017-01-10 Tom Tromey <tom@tromey.com>
11332
11333 * python/py-param.c (get_set_value, get_show_value): Use
11334 gdbpy_enter, gdbpy_ref.
11335
11336 2017-01-10 Tom Tromey <tom@tromey.com>
11337
11338 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11339
11340 2017-01-10 Tom Tromey <tom@tromey.com>
11341
11342 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11343
11344 2017-01-10 Tom Tromey <tom@tromey.com>
11345
11346 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11347 Use gdbpy_enter_varobj.
11348
11349 2017-01-10 Tom Tromey <tom@tromey.com>
11350
11351 * varobj.c (gdbpy_enter_varobj): New constructor.
11352 * python/python-internal.h (gdbpy_enter_varobj): New class.
11353 * python/py-varobj.c (py_varobj_get_iterator): Use
11354 gdbpy_enter_varobj.
11355
11356 2017-01-10 Tom Tromey <tom@tromey.com>
11357
11358 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11359 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11360 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11361 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11362 unique_xmalloc_ptr.
11363 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11364
11365 2017-01-10 Tom Tromey <tom@tromey.com>
11366
11367 * python/py-xmethods.c (invoke_match_method): Use
11368 gdbpy_ref.
11369
11370 2017-01-10 Tom Tromey <tom@tromey.com>
11371
11372 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11373 gdbpy_enter, gdbpy_ref.
11374
11375 2017-01-10 Tom Tromey <tom@tromey.com>
11376
11377 * python/python.c (python_interactive_command): Use gdbpy_enter.
11378
11379 2017-01-10 Tom Tromey <tom@tromey.com>
11380
11381 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11382 gdbpy_ref.
11383
11384 2017-01-10 Tom Tromey <tom@tromey.com>
11385
11386 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11387 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11388
11389 2017-01-10 Tom Tromey <tom@tromey.com>
11390
11391 * utils.h (htab_deleter): New struct.
11392 (htab_up): New typedef.
11393 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11394 gdbpy_enter, gdbpy_ref, htab_up.
11395
11396 2017-01-10 Tom Tromey <tom@tromey.com>
11397
11398 * python/py-unwind.c (pending_frame_invalidate): Remove.
11399 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11400
11401 2017-01-10 Tom Tromey <tom@tromey.com>
11402
11403 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11404 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11405
11406 2017-01-10 Tom Tromey <tom@tromey.com>
11407
11408 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11409
11410 2017-01-10 Tom Tromey <tom@tromey.com>
11411
11412 * python/python.c (gdbpy_eval_from_control_command)
11413 (gdbpy_source_script, gdbpy_run_events)
11414 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11415 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11416 gdbpy_enter.
11417
11418 2017-01-10 Tom Tromey <tom@tromey.com>
11419
11420 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11421
11422 2017-01-10 Tom Tromey <tom@tromey.com>
11423
11424 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11425
11426 2017-01-10 Tom Tromey <tom@tromey.com>
11427
11428 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11429 (python_on_inferior_call_pre, python_on_inferior_call_post)
11430 (python_on_memory_change, python_on_register_change)
11431 (python_inferior_exit, python_new_objfile, add_thread_object)
11432 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11433
11434 2017-01-10 Tom Tromey <tom@tromey.com>
11435
11436 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11437 (bpfinishpy_handle_exit): Use gdbpy_enter.
11438
11439 2017-01-10 Tom Tromey <tom@tromey.com>
11440
11441 * python/py-cmd.c (cmdpy_destroyer)
11442 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11443 gdbpy_enter.
11444
11445 2017-01-10 Tom Tromey <tom@tromey.com>
11446
11447 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11448 gdbpy_enter.
11449 (gdbpy_breakpoint_has_cond): Likewise.
11450
11451 2017-01-10 Tom Tromey <tom@tromey.com>
11452
11453 * python/python.c (gdbpy_enter): New constructor.
11454 (~gdbpy_enter): New destructor.
11455 (restore_python_env, ensure_python_env): Rewrite.
11456 * python/python-internal.h (gdbpy_enter): New class.
11457
11458 2017-01-10 Tom Tromey <tom@tromey.com>
11459
11460 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11461
11462 2017-01-10 Tom Tromey <tom@tromey.com>
11463
11464 * python/py-value.c (value_has_field, get_field_flag)
11465 (get_field_type, valpy_getitem, convert_value_from_python): Use
11466 gdbpy_ref.
11467
11468 2017-01-10 Tom Tromey <tom@tromey.com>
11469
11470 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11471 gdbpy_ref.
11472
11473 2017-01-10 Tom Tromey <tom@tromey.com>
11474
11475 * python/py-prettyprint.c (search_pp_list)
11476 (find_pretty_printer_from_objfiles)
11477 (find_pretty_printer_from_progspace)
11478 (find_pretty_printer_from_gdb, find_pretty_printer)
11479 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11480 gdbpy_ref.
11481
11482 2017-01-10 Tom Tromey <tom@tromey.com>
11483
11484 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11485
11486 2017-01-10 Tom Tromey <tom@tromey.com>
11487
11488 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11489 (ltpy_get_all_source_lines): Use gdbpy_ref.
11490
11491 2017-01-10 Tom Tromey <tom@tromey.com>
11492
11493 * python/py-framefilter.c (extract_sym, extract_value)
11494 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11495 gdbpy_ref.
11496
11497 2017-01-10 Tom Tromey <tom@tromey.com>
11498
11499 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11500
11501 2017-01-10 Tom Tromey <tom@tromey.com>
11502
11503 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11504
11505 2017-01-10 Tom Tromey <tom@tromey.com>
11506
11507 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11508 gdbpy_ref.
11509
11510 2017-01-10 Tom Tromey <tom@tromey.com>
11511
11512 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11513
11514 2017-01-10 Tom Tromey <tom@tromey.com>
11515
11516 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11517 (typy_range): Use gdbpy_ref.
11518
11519 2017-01-10 Tom Tromey <tom@tromey.com>
11520
11521 * python/py-threadevent.c (create_thread_event_object): Use
11522 gdbpy_ref.
11523 * python/py-stopevent.c (create_stop_event_object): Simplify.
11524 (emit_stop_event): Use gdbpy_ref.
11525 * python/py-signalevent.c (create_signal_event_object): Use
11526 gdbpy_ref.
11527 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11528 (emit_new_objfile_event, create_clear_objfiles_event_object)
11529 (emit_clear_objfiles_event): Use gdbpy_ref.
11530 * python/py-infevents.c (create_inferior_call_event_object)
11531 (create_register_changed_event_object)
11532 (create_memory_changed_event_object, emit_inferior_call_event)
11533 (emit_memory_changed_event, emit_register_changed_event): Use
11534 gdbpy_ref.
11535 * python/py-exitedevent.c (create_exited_event_object)
11536 (emit_exited_event): Use gdbpy_ref.
11537 * python/py-event.h (evpy_emit_event): Remove
11538 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11539 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11540 * python/py-continueevent.c (emit_continue_event): Use
11541 gdbpy_ref.
11542 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11543 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11544 gdbpy_ref.
11545 * python/py-bpevent.c (create_breakpoint_event_object): Use
11546 gdbpy_ref.
11547
11548 2017-01-10 Tom Tromey <tom@tromey.com>
11549
11550 * python/py-ref.h: New file.
11551
11552 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11553
11554 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11555 void.
11556 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11557 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11558 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11559 * ui-out.c (ui_out::redirect): Likewise.
11560 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11561 * cli/cli-logging.c (set_logging_redirect): Update call site of
11562 ui_out::redirect.
11563 (handle_redirections): Likewise.
11564 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11565 * top.c (execute_command_to_string): Likewise.
11566 * utils.c (do_ui_out_redirect_pop): Likewise.
11567
11568 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11569
11570 * stack.c (_initialize_stack): Update "frame" command help message.
11571
11572 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11573
11574 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11575
11576 2017-01-06 Yao Qi <yao.qi@linaro.org>
11577
11578 * x86-linux-nat.h: Include gdb_proc_service.h.
11579
11580 2017-01-06 Yao Qi <yao.qi@linaro.org>
11581
11582 * ser-base.h: Include serial.h.
11583
11584 2017-01-06 Yao Qi <yao.qi@linaro.org>
11585
11586 * ppc-linux-tdep.h: Include ppc-tdep.h.
11587
11588 2017-01-06 Yao Qi <yao.qi@linaro.org>
11589
11590 * nat/amd64-linux-siginfo.h: Include signal.h.
11591
11592 2017-01-06 Yao Qi <yao.qi@linaro.org>
11593
11594 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11595
11596 2017-01-06 Yao Qi <yao.qi@linaro.org>
11597
11598 * mi/mi-parse.h: Include mi-cmds.h.
11599
11600 2017-01-06 Yao Qi <yao.qi@linaro.org>
11601
11602 * inf-loop.c: Don't include "target.h".
11603 * inf-loop.h: Include it here.
11604
11605 2017-01-06 Yao Qi <yao.qi@linaro.org>
11606
11607 * dfp.h: Include "dboulest.h" and "expression.h".
11608
11609 2017-01-06 Yao Qi <yao.qi@linaro.org>
11610
11611 * ax-gdb.h: Include "ax.h".
11612
11613 2017-01-06 Yao Qi <yao.qi@linaro.org>
11614
11615 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11616 with nat/gdb_ptrace.h.
11617
11618 2017-01-05 Yao Qi <yao.qi@linaro.org>
11619
11620 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11621 new line.
11622 (mips64_fbsd_sigframe_init): Likewise.
11623
11624 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11625
11626 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11627 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11628
11629 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11630
11631 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11632 * NEWS: Mention new FreeBSD/mips native configuration.
11633 * config/mips/fbsd.mh: New file.
11634 * configure.host: Add mips*-*-freebsd*.
11635 * mips-fbsd-nat.c: New file.
11636
11637 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11638
11639 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11640 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11641 * NEWS: Mention new FreeBSD/mips target.
11642 * configure.tgt: Add mips*-*-freebsd*.
11643 * mips-fbsd-tdep.c: New file.
11644 * mips-fbsd-tdep.h: New file.
11645
11646 2017-01-04 Yao Qi <yao.qi@linaro.org>
11647
11648 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11649 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11650
11651 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11652
11653 Update copyright year range in all GDB files.
11654
11655 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11656
11657 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11658
11659 For older changes see ChangeLog-2016.
11660 \f
11661 Local Variables:
11662 mode: change-log
11663 left-margin: 8
11664 fill-column: 74
11665 version-control: never
11666 coding: utf-8
11667 End:
This page took 0.262496 seconds and 5 git commands to generate.