Remove make_cleanup_regcache_xfree
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-25 Tom Tromey <tom@tromey.com>
2
3 * spu-tdep.c (spu2ppu_sniffer): Update.
4 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6 Remove.
7 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
8 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
9 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
10 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
11 (frame_pop): Update.
12
13 2017-09-25 Tom Tromey <tom@tromey.com>
14
15 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
16 * regcache.h (regcache_xfree): Don't declare.
17 * regcache.c (regcache_xfree): Remove.
18 (do_regcache_xfree): Use delete.
19 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
20 * linux-fork.c (free_fork): Use delete.
21 (fork_save_infrun_state): Likewise.
22 * jit.c (jit_dealloc_cache): Use delete.
23 * infrun.c (discard_infcall_suspend_state): Use delete.
24
25 2017-09-25 Tom Tromey <tom@tromey.com>
26
27 * regcache.h (regcache_xmalloc): Don't declare.
28 (regcache_raw_set_cached_value): Update comment.
29 * regcache.c (regcache_xmalloc): Remove.
30 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
31 * jit.c (jit_frame_sniffer): Use new.
32 * frame.c (frame_save_as_regcache): Use new.
33
34 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
35
36 * NEWS: Advertise support for guarded-storage registers on IBM z.
37
38 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
39
40 * s390-linux-nat.c (have_regset_gs): New static variable.
41 (s390_linux_fetch_inferior_registers): Handle guarded-storage
42 control block and guarded-storage broadcast control regsets.
43 (s390_read_description): Detect whether the target has
44 guarded-storage support, return appropriate tdesc.
45 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
46 (features/s390x-gs-linux64.c): Likewise.
47 (struct gdbarch_tdep) <have_gs>: New field.
48 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
49 (s390_gsbc_regset): New variables.
50 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
51 and s390_gsbc_regset, if applicable.
52 (s390_core_read_description): Check whether core file was from a
53 target with guarded-storage support; include appropriate regsets.
54 (s390_gdbarch_init): Add registers for guarded-storage support.
55 (_initialize_s390_tdep): Initialize new target descriptions that
56 include registers for guarded-storage support.
57 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
58 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
59 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
60 (S390_NUM_REGS): Adjust macro definition.
61 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
62 (tdesc_s390x_gs_linux64): New declarations.
63
64 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
65
66 * features/s390-gs-linux64.xml: New file.
67 * features/s390-gs.xml: New file.
68 * features/s390-gsbc.xml: New file.
69 * features/s390x-gs-linux64.xml: New file.
70 * features/Makefile (WHICH): Add s390-gs-linux64 and
71 s390x-gs-linux64.
72 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
73 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
74 * features/s390-gs-linux64.c: New generated file.
75 * features/s390x-gs-linux64.c: New file.
76 * regformats/s390-gs-linux64.dat: New file.
77 * regformats/s390x-gs-linux64.dat: New file.
78
79 2017-09-23 Tom Tromey <tom@tromey.com>
80
81 * defs.h (make_cleanup_override_quit_handler): Don't declare.
82
83 2017-09-22 Tom Tromey <tom@tromey.com>
84
85 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
86 type to scoped_restore_tmpl.
87 <scoped_input_handler>: Initialize m_quit_handler directly.
88
89 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
90
91 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
92 (cd_command): Likewise. Free "current_directory" before
93 assigning to it.
94 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
95 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
96 * top.c (gdb_dirbuf): Remove global declaration.
97 * top.h (gdb_dirbuf): Likewise.
98
99 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
100
101 * gnulib/aclocal.m4: Regenerate.
102 * gnulib/config.in: Regenerate.
103 * gnulib/configure: Regenerate.
104 * gnulib/import/Makefile.am: Regenerate.
105 * gnulib/import/Makefile.in: Regenerate.
106 * gnulib/import/assure.h: New file.
107 * gnulib/import/at-func.c: Likewise
108 * gnulib/import/chdir-long.c: New file.
109 * gnulib/import/chdir-long.h: New file.
110 * gnulib/import/cloexec.c: New file.
111 * gnulib/import/cloexec.h: New file.
112 * gnulib/import/close.c: New file.
113 * gnulib/import/closedir.c: New file.
114 * gnulib/import/dirent-private.h: New file.
115 * gnulib/import/dup-safer.c: New file.
116 * gnulib/import/dup.c: New file.
117 * gnulib/import/dup2.c: New file.
118 * gnulib/import/error.c: New file.
119 * gnulib/import/error.h: New file.
120 * gnulib/import/exitfail.c: New file.
121 * gnulib/import/exitfail.h: New file.
122 * gnulib/import/fchdir.c: New file.
123 * gnulib/import/fcntl.c: New file.
124 * gnulib/import/fcntl.in.h: New file.
125 * gnulib/import/fd-hook.c: New file.
126 * gnulib/import/fd-hook.h: New file.
127 * gnulib/import/fd-safer.c: New file.
128 * gnulib/import/fdopendir.c: New file.
129 * gnulib/import/filename.h: New file.
130 * gnulib/import/filenamecat-lgpl.c: New file.
131 * gnulib/import/filenamecat.h: New file.
132 * gnulib/import/fstat.c: New file.
133 * gnulib/import/fstatat.c: New file.
134 * gnulib/import/getcwd-lgpl.c: New file.
135 * gnulib/import/getcwd.c: New file.
136 * gnulib/import/getdtablesize.c: New file.
137 * gnulib/import/getlogin_r.c: New file.
138 * gnulib/import/getprogname.c: New file.
139 * gnulib/import/getprogname.h: New file.
140 * gnulib/import/gettext.h: New file.
141 * gnulib/import/glob-libc.h: New file.
142 * gnulib/import/glob.c: New file.
143 * gnulib/import/glob.in.h: New file.
144 * gnulib/import/intprops.h: New file.
145 * gnulib/import/m4/chdir-long.m4: New file.
146 * gnulib/import/m4/close.m4: New file.
147 * gnulib/import/m4/closedir.m4: New file.
148 * gnulib/import/m4/d-ino.m4: New file.
149 * gnulib/import/m4/d-type.m4: New file.
150 * gnulib/import/m4/dup.m4: New file.
151 * gnulib/import/m4/dup2.m4: New file.
152 * gnulib/import/m4/error.m4: New file.
153 * gnulib/import/m4/fchdir.m4: New file.
154 * gnulib/import/m4/fcntl.m4: New file.
155 * gnulib/import/m4/fcntl_h.m4: New file.
156 * gnulib/import/m4/fdopendir.m4: New file.
157 * gnulib/import/m4/filenamecat.m4: New file.
158 * gnulib/import/m4/fstat.m4: New file.
159 * gnulib/import/m4/fstatat.m4: New file.
160 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
161 * gnulib/import/m4/getcwd-path-max.m4: New file.
162 * gnulib/import/m4/getcwd.m4: New file.
163 * gnulib/import/m4/getdtablesize.m4: New file.
164 * gnulib/import/m4/getlogin_r.m4: New file.
165 * gnulib/import/m4/getprogname.m4: New file.
166 * gnulib/import/m4/glob.m4: New file.
167 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
168 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
169 * gnulib/import/m4/mempcpy.m4: New file.
170 * gnulib/import/m4/memrchr.m4: New file.
171 * gnulib/import/m4/mode_t.m4: New file.
172 * gnulib/import/m4/msvc-inval.m4: New file.
173 * gnulib/import/m4/msvc-nothrow.m4: New file.
174 * gnulib/import/m4/open.m4: New file.
175 * gnulib/import/m4/openat.m4: New file.
176 * gnulib/import/m4/opendir.m4: New file.
177 * gnulib/import/m4/readdir.m4: New file.
178 * gnulib/import/m4/realloc.m4: New file.
179 * gnulib/import/m4/rewinddir.m4: New file.
180 * gnulib/import/m4/save-cwd.m4: New file.
181 * gnulib/import/m4/strdup.m4: New file.
182 * gnulib/import/m4/strerror.m4: New file.
183 * gnulib/import/m4/unistd-safer.m4: New file.
184 * gnulib/import/mempcpy.c: New file.
185 * gnulib/import/memrchr.c: New file.
186 * gnulib/import/msvc-inval.c: New file.
187 * gnulib/import/msvc-inval.h: New file.
188 * gnulib/import/msvc-nothrow.c: New file.
189 * gnulib/import/msvc-nothrow.h: New file.
190 * gnulib/import/open.c: New file.
191 * gnulib/import/openat-die.c: New file.
192 * gnulib/import/openat-priv.h: New file.
193 * gnulib/import/openat-proc.c: New file.
194 * gnulib/import/openat.c: New file.
195 * gnulib/import/openat.h: New file.
196 * gnulib/import/opendir.c: New file.
197 * gnulib/import/pipe-safer.c: New file.
198 * gnulib/import/readdir.c: New file.
199 * gnulib/import/realloc.c: New file.
200 * gnulib/import/rewinddir.c: New file.
201 * gnulib/import/save-cwd.c: New file.
202 * gnulib/import/save-cwd.h: New file.
203 * gnulib/import/strdup.c: New file.
204 * gnulib/import/strerror-override.c: New file.
205 * gnulib/import/strerror-override.h: New file.
206 * gnulib/import/strerror.c: New file.
207 * gnulib/import/unistd--.h: New file.
208 * gnulib/import/unistd-safer.h: New file.
209 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
210 "getcwd" and "glob".
211 * ser-tcp.c: Undefine "close" before redefining it.
212
213 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
214
215 * guile/scm-value.c (gdbscm_value_address): Initialize address,
216 get rid of res_val.
217
218 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219
220 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
221 <sol2,sparc>: Likewise.
222 <sol2-64,i386>: Likewise.
223
224 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
225 -Wdeprecated-declarations on *-*-solaris*.
226 * configure: Regenerate.
227
228 * procfs.c: Include "nat/inferior.h".
229 (procfs_info_proc): Fix typo.
230
231 2017-09-21 Kevin Buettner <kevinb@redhat.com>
232
233 * remote.c (vector): Include.
234 (struct private_thread_info): Add field, thread_handle.
235 (free_private_thread_info): Deallocate storage associated with
236 thread handle.
237 (get_private_info_thread): Initialize `thread_handle' field.
238 (struct thread_item): Add field, thread_handle.
239 (clear_threads_listing_context): Deallocate storage associated
240 with thread handle.
241 (start_thread): Add support for "handle" attribute.
242 (thread_attributes): Add "handle".
243 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
244 field.
245 (remote_update_thread_list): Update thread_handle.
246 (remote_thread_handle_to_thread_info): New function.
247 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
248
249 2017-09-21 Kevin Buettner <kevinb@redhat.com>
250
251 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
252 function.
253 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
254 * python/python-internal.h (thread_object_type): Declare.
255
256 2017-09-21 Kevin Buettner <kevinb@redhat.com>
257
258 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
259 (target_thread_handle_to_thread_info): Declare.
260 * target.c (target_thread_handle_to_thread_info): New function.
261 * target-delegates.c: Regenerate.
262 * gdbthread.h (find_thread_by_handle): Declare.
263 * thread.c (find_thread_by_handle): New function.
264 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
265 function.
266 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
267
268 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
269
270 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
271
272 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
273
274 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
275
276 2017-09-21 Yao Qi <yao.qi@linaro.org>
277
278 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
279 to gdb_target_obs.
280
281 2017-09-20 Tom Tromey <tom@tromey.com>
282
283 * breakpoint.c (struct counted_command_line): Remove.
284 (breakpoint_commands): Update.
285 (alloc_counted_command_line, incref_counted_command_line)
286 (decref_counted_command_line, do_cleanup_counted_command_line)
287 (make_cleanup_decref_counted_command_line): Remove.
288 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
289 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
290 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
291 (save_breakpoints): Update.
292 * breakpoint.h (counted_command_line): Now a typedef to
293 shared_ptr.
294 (struct breakpoint) <commands>: Now a counted_command_line.
295 (struct bpstats) <command>: Likewise.
296
297 2017-09-20 Tom Tromey <tom@tromey.com>
298
299 * breakpoint.c (struct commands_info, do_map_commands_command):
300 Remove.
301 (commands_command_1): Update.
302 (iterate_over_related_breakpoints): Take a function_view.
303 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
304 (delete_command): Update.
305 (map_breakpoint_numbers): Take a function_view.
306 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
307 (disable_command): Update.
308 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
309 (enable_command): Update.
310 (struct disp_data, do_enable_breakpoint_disp)
311 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
312 (do_map_enable_delete_breakpoint): Remove.
313 (enable_once_command, enable_count_command, enable_delete_command)
314 (delete_trace_variable_command): Update.
315
316 2017-09-20 Tom Tromey <tom@tromey.com>
317
318 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
319 (bpstat_clear): Use delete.
320 (bpstats): New constructors.
321 (bpstat_copy, bpstat_stop_status): Use new.
322 (dprintf_after_condition_true): Update.
323 * breakpoint.h (bpstats::bpstats): Add constructors.
324 (bpstats::~bpstats): Add destructor.
325
326 2017-09-20 Pedro Alves <palves@redhat.com>
327
328 * eval.c (make_params): Delete, refactored as ...
329 (class fake_method): ... this new type's ctor.
330 (fake_method::~fake_method): New.
331 (evaluate_subexp_standard): Use 'fake_method'.
332
333 2017-09-20 Tom Tromey <tom@tromey.com>
334
335 * windows-nat.c (get_windows_debug_event, windows_wait)
336 (do_initial_windows_stuff, windows_attach): Update.
337 * utils.c (vwarning, internal_vproblem): Update.
338 (ui_unregister_input_event_handler_cleanup)
339 (prepare_to_handle_input): Remove.
340 (class scoped_input_handler): New.
341 (defaulted_query, prompt_for_continue): Update.
342 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
343 Update.
344 * top.c (undo_terminal_modifications_before_exit): Update.
345 * target/target.h (target_terminal_init, target_terminal_inferior)
346 (target_terminal_ours): Don't declare.
347 (class target_terminal): New.
348 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
349 (target_terminal_ours_for_output)
350 (make_cleanup_restore_target_terminal): Don't declare.
351 (target_terminal_info): Remove.
352 * target.c (enum terminal_state, terminal_state): Remove.
353 (target_terminal::terminal_state): Define.
354 (target_terminal::init): Rename from target_terminal_init.
355 (target_terminal::inferior): Rename from
356 target_terminal_inferior.
357 (target_terminal::ours): Rename from target_terminal_ours.
358 (target_terminal::ours_for_output): Rename from
359 target_terminal_ours_for_output.
360 (target_terminal::info): New method.
361 (cleanup_restore_target_terminal)
362 (make_cleanup_restore_target_terminal): Remove.
363 * solib.c (handle_solib_event): Update.
364 * remote.c (remote_serial_quit_handler): Update.
365 (remote_terminal_inferior, remote_wait_as): Update.
366 * record-full.c (record_full_wait_1): Update.
367 * nto-procfs.c (procfs_create_inferior): Update.
368 * nat/fork-inferior.c (startup_inferior): Update.
369 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
370 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
371 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
372 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
373 (mi_breakpoint_created, mi_breakpoint_deleted)
374 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
375 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
376 (mi_user_selected_context_changed, report_initial_inferior):
377 Update.
378 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
379 (linux_nat_terminal_inferior): Update.
380 * infrun.c (follow_fork_inferior)
381 (handle_vfork_child_exec_or_exit, do_target_resume)
382 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
383 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
384 Update.
385 * inflow.c (child_terminal_init, info_terminal_command): Update.
386 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
387 (attach_command): Update.
388 * infcall.c (call_thread_fsm_should_stop): Update.
389 * gnu-nat.c (gnu_attach): Update.
390 * extension.c (struct active_ext_lang_state)
391 (restore_active_ext_lang): Update.
392 * exceptions.c (print_flush): Update.
393 * event-top.c (async_enable_stdin, default_quit_handler): Update.
394 (struct quit_handler_cleanup_data, restore_quit_handler)
395 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
396 Remove.
397 * cp-support.c (gdb_demangle): Update.
398 * breakpoint.c (update_inserted_breakpoint_locations)
399 (insert_breakpoint_locations, handle_jit_event)
400 (disable_breakpoints_in_unloaded_shlib): Update.
401 * annotate.c (annotate_breakpoints_invalid)
402 (annotate_frames_invalid): Update.
403
404 2017-09-20 Tom Tromey <tom@tromey.com>
405
406 * main.c (catch_command_errors): Rename from
407 catch_command_errors_const.
408 (captured_main_1): Update.
409
410 2017-09-20 Pedro Alves <palves@redhat.com>
411
412 * cli/cli-cmds.c (list_command): Use print_sal_location.
413 (print_sal_location): New function.
414 (ambiguous_line_spec): Use print_sal_location.
415 * linespec.c (symbol_to_sal): Record the symbol in the sal.
416 * symtab.c (find_function_start_sal): Likewise.
417 * symtab.h (symtab_and_line::symbol): New field.
418
419 2017-09-20 Pedro Alves <palves@redhat.com>
420
421 * linespec.c (minsym_found): Handle non-text minsyms.
422 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
423
424 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
425
426 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
427 backslash.
428
429 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
430
431 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
432 vmovups instead vmovaps.
433 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
434
435 2017-09-19 John Baldwin <jhb@FreeBSD.org>
436
437 * NEWS (Changes since GDB 8.0): Add starti.
438 * infcmd.c (enum run_break): New.
439 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
440 case.
441 (run_command): Use enum run_how.
442 (start_command): Likewise.
443 (starti_command): New function.
444 (RUN_ARGS_HELP): New macro.
445 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
446 commands. Add starti command.
447
448 2017-09-19 Yao Qi <yao.qi@linaro.org>
449
450 * Makefile.in (monitor.o): Remove the rule.
451
452 2017-09-19 Yao Qi <yao.qi@linaro.org>
453
454 * annotate.h (struct annotate_arg_emitter): Use
455 DISABLE_COPY_AND_ASSIGN.
456 * common/refcounted-object.h (refcounted_object): Likewise.
457 * completer.h (struct completion_result): Likewise.
458 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
459 * filename-seen-cache.h (filename_seen_cache): Likewise.
460 * gdbcore.h (thread_section_name): Likewise.
461 * gdb_regex.h (compiled_regex): Likewise.
462 * gdbthread.h (scoped_restore_current_thread): Likewise.
463 * inferior.h (scoped_restore_current_inferior): Likewise.
464 * jit.c (jit_reader): Likewise.
465 * linespec.h (struct linespec_result): Likewise.
466 * mi/mi-parse.h (struct mi_parse): Likewise.
467 * nat/fork-inferior.c (execv_argv): Likewise.
468 * progspace.h (scoped_restore_current_program_space): Likewise.
469 * python/python-internal.h (class gdbpy_enter): Likewise.
470 * regcache.h (regcache): Likewise.
471 * target-descriptions.c (struct tdesc_reg): Likewise.
472 (struct tdesc_type): Likewise.
473 (struct tdesc_feature): Likewise.
474 * ui-out.h (ui_out_emit_type): Likewise.
475
476 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
477
478 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
479 label abort_expression.
480
481 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
482
483 * common/buffer.c (buffer_xml_printf): Adjust.
484 * common/xml-utils.c (xml_escape_text): Change return type to
485 std::string, update code accordingly.
486 * common/xml-utils.h (xml_escape_text): Change return type to
487 std::string.
488 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
489 * windows-tdep.c (windows_xfer_shared_library): Adjust.
490 * unittests/xml-utils-selftests.c (test_xml_escape_text):
491 Adjust.
492
493 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
494
495 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
496 (SUBDIR_UNITTESTS_OBS): Add new object file.
497 * unittests/xml-utils-selftests.c: New file.
498
499 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
500
501 * common/selftest.h (selftest): New struct/interface.
502 (register_test): Add name parameter, add new overload.
503 (run_tests): Add filter parameter.
504 (for_each_selftest_ftype): New typedef.
505 (for_each_selftest): New declaration.
506 * common/selftest.c (tests): Change type to
507 map<string, unique_ptr<selftest>>.
508 (simple_selftest): New struct.
509 (register_test): New function.
510 (register_test): Add name parameter and use it.
511 (run_tests): Add filter parameter and use it. Add prints.
512 Adjust to vector -> map change.
513 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
514 registering selftests.
515 * arm-tdep.c (_initialize_arm_tdep): Likewise.
516 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
517 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
518 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
519 * findvar.c (_initialize_findvar): Likewise.
520 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
521 * maint.c (maintenance_selftest): Update call to run_tests.
522 (maintenance_info_selftests): New function.
523 (_initialize_maint_cmds): Register "maintenance info selftests"
524 command. Update "maintenance selftest" doc.
525 * regcache.c (_initialize_regcache): Add names when registering
526 selftests.
527 * rust-exp.y (_initialize_rust_exp): Likewise.
528 * selftest-arch.c (gdbarch_selftest): New struct.
529 (gdbarch_tests): Remove.
530 (register_test_foreach_arch): Add name parameter. Call
531 register_test.
532 (tests_with_arch): Remove, move most content to
533 gdbarch_selftest::operator().
534 (_initialize_selftests_foreach_arch): Remove.
535 * selftest-arch.h (register_test_foreach_arch): Add name
536 parameter.
537 (run_tests_with_arch): New declaration.
538 * utils-selftests.c (_initialize_utils_selftests): Add names
539 when registering selftests.
540 * utils.c (_initialize_utils): Likewise.
541 * unittests/array-view-selftests.c
542 (_initialize_array_view_selftests): Likewise.
543 * unittests/environ-selftests.c (_initialize_environ_selftests):
544 Likewise.
545 * unittests/function-view-selftests.c
546 (_initialize_function_view_selftests): Likewise.
547 * unittests/offset-type-selftests.c
548 (_initialize_offset_type_selftests): Likewise.
549 * unittests/optional-selftests.c
550 (_initialize_optional_selftests): Likewise.
551 * unittests/scoped_restore-selftests.c
552 (_initialize_scoped_restore_selftests): Likewise.
553 * NEWS: Document "maintenance selftest" and "maint info
554 selftests".
555
556 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
557
558 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
559 scoped_restore.
560
561 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
562
563 * mi/mi-main.c (mi_load_progress): Make uiout variable
564 a unique_ptr.
565
566 2017-09-15 Pedro Alves <palves@redhat.com>
567
568 * compile/compile-c-types.c (convert_enum, convert_int)
569 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
570
571 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
572
573 * dwarf2read.c (copy_string): Remove.
574 (parse_macro_definition): Replace copy_string with savestring.
575
576 2017-09-15 Yao Qi <yao.qi@linaro.org>
577
578 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
579 gdb_target_obs.
580 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
581 Likewise.
582 (i[34567]86-*-linux*): Likewise.
583
584 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
585
586 * dwarf2expr.h (dwarf_stack_value): Add constructor.
587 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
588 <stack>: Change type to std::vector.
589 <stack_len, stack_allocated>: Remove.
590 <grow_stack>: Remove.
591 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
592 (dwarf_expr_context::~dwarf_expr_context): Remove.
593 (dwarf_expr_context::grow_stack): Remove.
594 (dwarf_expr_context::push): Adjust.
595 (dwarf_expr_context::pop): Adjust.
596 (dwarf_expr_context::fetch): Adjust.
597 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
598 (dwarf_expr_context::stack_empty_p): Adjust.
599 (dwarf_expr_context::execute_stack_op): Adjust.
600
601 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
602
603 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
604 return type to bool.
605 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
606
607 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
608
609 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
610 Change type to bool.
611 (dwarf_stack_value) <in_stack_memory>: Likewise.
612 (dwarf_expr_context) <push_address>: Change parameter type to
613 bool.
614 <fetch_in_stack_memory>: Change return type to bool.
615 <push>: Change parameter type to bool.
616 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
617 to bool.
618 (dwarf_expr_context::push_address): Likewise.
619 (dwarf_expr_context::fetch_in_stack_memory): Change return type
620 to bool.
621 (dwarf_expr_context::execute_stack_op): Adjust.
622 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
623
624 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
625
626 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
627 (struct dwarf_expr_context) <n_pieces>: Remove.
628 <pieces>: Change type to std::vector.
629 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
630 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
631 pieces.
632 (dwarf_expr_context::add_piece): Adjust.
633 * dwarf2loc.c (struct piece_closure): Initialize fields.
634 <n_pieces>: Remove.
635 <pieces>: Change type to std::vector.
636 (allocate_piece_closure): Adjust, change parameter to
637 std::vector rvalue and std::move it to piece_closure.
638 (rw_pieced_value): Adjust.
639 (check_pieced_synthetic_pointer): Adjust.
640 (indirect_synthetic_pointer): Adjust.
641 (coerce_pieced_ref): Adjust.
642 (free_pieced_value_closure): Adjust. Use delete to free
643 piece_closure.
644 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
645 to allocate_piece_closure.
646 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
647
648 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
649
650 * probe.h (probe_ops_cp): Remove typedef.
651 (DEF_VEC_P (probe_ops_cp)): Remove.
652 (all_probe_ops): Change type to std::vector.
653 * probe.c (info_probes_for_ops): Adjust to vector change.
654 (probe_linespec_to_ops): Likewise.
655 (all_probe_ops): Change type to std::vector.
656 (_initialize_probe): Adjust to vector change.
657 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
658 * elfread.c (elf_get_probes): Likewise.
659 * stap-probe.c (_initialize_stap_probe): Likewise.
660
661 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
662
663 * probe.h (struct bound_probe): Define constructors.
664 * probe.c (bound_probe_s): Remove typedef.
665 (DEF_VEC_O (bound_probe_s)): Remove VEC.
666 (collect_probes): Change return type to std::vector, remove
667 cleanup.
668 (compare_probes): Return bool, change parameter type. Change
669 semantic to "less than".
670 (gen_ui_out_table_header_info): Change parameter to std::vector
671 and update.
672 (exists_probe_with_pops): Likewise.
673 (info_probes_for_ops): Update to std::vector change.
674 (enable_probes_command): Likewise.
675 (disable_probes_command): Likewise.
676
677 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
678
679 * probe.h (struct probe_ops) <get_probes>: Change parameter from
680 vec to std::vector.
681 * probe.c (parse_probes_in_pspace): Update.
682 (find_probes_in_objfile): Update.
683 (find_probe_by_pc): Update.
684 (collect_probes): Update.
685 (probe_any_get_probes): Update.
686 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
687 return type to reference to std::vector.
688 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
689 std::vector and update.
690 (dtrace_process_dof): Likewise.
691 (dtrace_get_probes): Likewise.
692 * elfread.c (elf_get_probes): Change return type to std::vector,
693 store an std::vector in bfd_data.
694 (probe_key_free): Update to std::vector.
695 * stap-probe.c (handle_stap_probe): Change parameter to
696 std::vector and update.
697 (stap_get_probes): Likewise.
698 * symfile-debug.c (debug_sym_get_probes): Change return type to
699 std::vector and update.
700
701 2017-09-11 Tom Tromey <tom@tromey.com>
702
703 * breakpoint.c (program_breakpoint_here_p): Update.
704 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
705 from make_show_memory_breakpoints_cleanup. Return a
706 scoped_restore_tmpl<int>.
707 (restore_show_memory_breakpoints): Remove.
708 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
709 * mem-break.c (memory_validate_breakpoint): Update.
710 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
711 (ia64_memory_remove_breakpoint): Update.
712 (ia64_breakpoint_from_pc): Update.
713 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
714 from make_show_memory_breakpoints_cleanup.
715
716 2017-09-11 Tom Tromey <tom@tromey.com>
717
718 * d-namespace.c (d_lookup_symbol): Use std::string.
719 (find_symbol_in_baseclass): Likewise.
720
721 2017-09-11 Tom Tromey <tom@tromey.com>
722
723 * ctf.c (ctf_start): Use std::string.
724
725 2017-09-11 Tom Tromey <tom@tromey.com>
726
727 * ada-lang.c (is_known_support_routine): Update.
728 (ada_unhandled_exception_name_addr_from_raise): Update.
729 * guile/scm-frame.c (gdbscm_frame_name): Update.
730 * python/py-frame.c (frapy_name): Update.
731 (frapy_function): Update.
732 * stack.h (find_frame_funname): Update.
733 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
734 (print_frame): Update.
735
736 2017-09-11 Tom Tromey <tom@tromey.com>
737
738 * findcmd.c (put_bits): Take a gdb::byte_vector.
739 (parse_find_args): Return gdb::byte_vector. "args" now const.
740 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
741 cleanups.
742 (find_command): Update.
743
744 2017-09-11 Tom Tromey <tom@tromey.com>
745
746 * cli/cli-script.c (class scoped_restore_hook_in): New.
747 (clear_hook_in_cleanup): Remove.
748 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
749 scoped_restore_hook_in.
750
751 2017-09-11 Tom Tromey <tom@tromey.com>
752
753 * cli/cli-script.c (restore_interp): Remove.
754 (read_command_lines): Use scoped_restore_interp.
755 * interps.c (scoped_restore_interp::set_temp): Rename from
756 interp_set_temp.
757 * interps.h (class scoped_restore_interp): New.
758 (interp_set_temp): Remove.
759
760 2017-09-11 Tom Tromey <tom@tromey.com>
761
762 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
763 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
764 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
765 scoped_restore.
766 (mi_cmd_break_insert_1): Update.
767 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
768 scoped_restore.
769
770 2017-09-11 Tom Tromey <tom@tromey.com>
771
772 * demangle.c (demangle_command): Update.
773 * breakpoint.c (disable_command): Update.
774 (enable_command): Update.
775 (find_location_by_number): Make "number" const. Use
776 get_number_trailer.
777 * cli/cli-utils.c (extract_arg): Return std::string.
778 * probe.c (parse_probe_linespec): Update. Change types.
779 (collect_probes): Take string arguments.
780 (parse_probe_linespec): Likewise.
781 (info_probes_for_ops): Update.
782 (enable_probes_command): Update.
783 (disable_probes_command): Update.
784 * break-catch-sig.c (catch_signal_split_args): Update.
785 * mi/mi-parse.c (mi_parse): Update.
786
787 2017-09-11 Tom Tromey <tom@tromey.com>
788
789 * language.h (language_enum): Make argument const.
790 * language.c (language_enum): Make argument const.
791
792 2017-09-11 Tom Tromey <tom@tromey.com>
793
794 * common/common-utils.h (skip_to_space): Remove macro, redeclare
795 as function.
796 (skip_to_space): Rename from skip_to_space_const.
797 * common/common-utils.c (skip_to_space): New function.
798 (skip_to_space): Rename from skip_to_space_const.
799 * cli/cli-utils.h (get_number): Rename from get_number_const.
800 (extract_arg): Rename from extract_arg_const.
801 * cli/cli-utils.c (get_number): Rename from get_number_const.
802 (extract_arg): Rename from extract_arg_const.
803 (number_or_range_parser::get_number): Use ::get_number.
804 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
805 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
806 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
807 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
808 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
809 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
810 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
811 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
812
813 2017-09-11 Tom Tromey <tom@tromey.com>
814
815 * python/python.c (do_start_initialization): Use
816 py-event-types.def to initialize types.
817 Define all object type structures.
818 * python/python-internal.h: Don't declare event initialization
819 functions.
820 * python/py-threadevent.c (thread_event_object_type): Don't
821 define.
822 * python/py-stopevent.c (stop_event_object_type): Don't define.
823 * python/py-signalevent.c (signal_event_object_type): Don't
824 declare or define.
825 * python/py-newobjfileevent.c (new_objfile_event_object_type)
826 (clear_objfiles_event_object_type): Don't declare or define.
827 * python/py-infevents.c (inferior_call_pre_event_object_type)
828 (inferior_call_post_event_object_type)
829 (register_changed_event_object_type)
830 (memory_changed_event_object_type): Don't declare or define.
831 * python/py-inferior.c (new_thread_event_object_type)
832 (new_inferior_event_object_type)
833 (inferior_deleted_event_object_type): Don't declare or define.
834 * python/py-exitedevent.c (exited_event_object_type): Don't
835 declare or define.
836 * python/py-evts.c (gdbpy_initialize_py_events): Use
837 py-all-events.def.
838 * python/py-events.h (thread_event_object_type): Don't declare.
839 (events_object): Use py-all-events.def.
840 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
841 py-event-types.def.
842 * python/py-event-types.def: New file.
843 * python/py-continueevent.c (create_continue_event_object): Don't
844 declare or define.
845 * python/py-bpevent.c (breakpoint_event_object_type): Don't
846 declare or define.
847 * python/py-all-events.def: New file.
848
849 2017-09-11 Tom Tromey <tom@tromey.com>
850
851 * python/py-threadevent.c (create_thread_event_object): Return
852 gdbpy_ref.
853 * python/py-stopevent.h (create_stop_event_object)
854 (create_breakpoint_event_object, create_signal_event_object):
855 Update.
856 * python/py-stopevent.c (create_stop_event_object): Return
857 gdbpy_ref.
858 (emit_stop_event): Update.
859 * python/py-signalevent.c (create_signal_event_object): Return
860 gdbpy_ref.
861 * python/py-infevents.c (create_inferior_call_event_object):
862 Update.
863 * python/py-event.h (create_event_object)
864 (create_thread_event_object): Update.
865 * python/py-event.c (create_event_object): Return gdbpy_ref.
866 * python/py-continueevent.c: Return gdbpy_ref.
867 * python/py-bpevent.c (create_breakpoint_event_object): Return
868 gdbpy_ref.
869
870 2017-09-11 Tom Tromey <tom@tromey.com>
871
872 PR python/15622:
873 * NEWS: Add entry.
874 * python/python.c (do_start_initialization): Initialize new event
875 types.
876 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
877 (gdbpy_initialize_inferior_deleted_event)
878 (gdbpy_initialize_new_thread_event): Declare.
879 * python/py-threadevent.c (create_thread_event_object): Add option
880 "thread" parameter.
881 * python/py-inferior.c (new_thread_event_object_type)
882 (new_inferior_event_object_type)
883 (inferior_deleted_event_object_type): Declare.
884 (python_new_inferior, python_inferior_deleted): New functions.
885 (add_thread_object): Emit new_thread event.
886 (gdbpy_initialize_inferior): Attach new functions to corresponding
887 observers.
888 (new_thread, new_inferior, inferior_deleted): Define new event
889 types.
890 * python/py-evts.c (gdbpy_initialize_py_events): Add new
891 registries.
892 * python/py-events.h (events_object) <new_inferior,
893 inferior_deleted, new_thread>: New fields.
894 * python/py-event.h (create_thread_event_breakpoint): Add optional
895 "thread" parameter.
896
897 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
900 check current_ui instead.
901 (internal_vproblem): Likewise.
902
903 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
904
905 * thread.c (print_thread_info_1): Remove unnecessary calls to
906 uiout->is_mi_like_p.
907
908 2017-09-09 Tom Tromey <tom@tromey.com>
909
910 * namespace.h (add_using_directive): Update.
911 * namespace.c (add_using_directive): Change type of excludes to
912 std::vector.
913 * dwarf2read.c (read_import_statement): Use std::vector.
914 (read_namespace): Update.
915 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
916
917 2017-09-09 Tom Tromey <tom@tromey.com>
918
919 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
920
921 2017-09-09 Tom Tromey <tom@tromey.com>
922
923 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
924
925 2017-09-09 Tom Tromey <tom@tromey.com>
926
927 * stack.c (func_command): Use gdb::def_vector.
928
929 2017-09-09 Tom Tromey <tom@tromey.com>
930
931 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
932 ui_out_emit_list, ui_out_emit_tuple.
933 (mi_cmd_var_update): Likewise.
934
935 2017-09-09 Tom Tromey <tom@tromey.com>
936
937 * mi/mi-interp.c (mi_user_selected_context_changed): Use
938 ui_out_redirect_pop.
939 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
940 ui_out_redirect_pop.
941 * utils.c (do_ui_out_redirect_pop)
942 (make_cleanup_ui_out_redirect_pop): Remove.
943 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
944 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
945 * ui-out.h (ui_out_redirect_pop): New class.
946
947 2017-09-09 Tom Tromey <tom@tromey.com>
948
949 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
950 (list_available_thread_groups, mi_cmd_list_thread_groups)
951 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
952 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
953 Likewise.
954
955 2017-09-09 Tom Tromey <tom@tromey.com>
956
957 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
958 ui_out_emit_tuple.
959
960 2017-09-09 Tom Tromey <tom@tromey.com>
961
962 * target.c (flash_erase_command): Use ui_out_emit_tuple.
963 * stack.c (print_frame): Use ui_out_emit_tuple.
964 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
965 (info_spu_mailbox_command, info_spu_dma_command)
966 (info_spu_proxydma_command): Likewise.
967 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
968 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
969 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
970 ui_out_emit_tuple.
971 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
972
973 2017-09-09 Tom Tromey <tom@tromey.com>
974
975 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
976 (class ui_out_emit_table): Update comment.
977 * ui-out.c (do_cleanup_table_end)
978 (make_cleanup_ui_out_table_begin_end): Remove.
979 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
980 (info_spu_dma_cmdlist): Likewise.
981 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
982 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
983 ui_out_emit_table.
984
985 2017-09-09 Tom Tromey <tom@tromey.com>
986
987 * thread.c (print_thread_info_1): Use ui_out_emit_table,
988 ui_out_emit_list, gdb::optional.
989
990 2017-09-09 John Baldwin <jhb@FreeBSD.org>
991
992 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
993 prototype.
994 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
995 prototype.
996 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
997 prototype.
998 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
999 * ada-exp.y: Remove _initialize_ada_exp prototype.
1000 * ada-lang.c: Remove _initialize_ada_language prototype.
1001 * ada-tasks.c: Remove _initialize_tasks prototype.
1002 * addrmap.c: Remove _initialize_addrmap prototype.
1003 * agent.c: Remove _initialize_agent prototype.
1004 * aix-thread.c: Remove _initialize_aix_thread prototype.
1005 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1006 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1007 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1008 prototype.
1009 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1010 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1011 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1012 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1013 prototype.
1014 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1015 prototype.
1016 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1017 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1018 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1019 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1020 prototype.
1021 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1022 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1023 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1024 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1025 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1026 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1027 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1028 prototype.
1029 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1030 prototype.
1031 * annotate.c: Remove _initialize_annotate prototype.
1032 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1033 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1034 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1035 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1036 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1037 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1038 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1039 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1040 prototype.
1041 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1042 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1043 * auto-load.c: Remove _initialize_auto_load prototype.
1044 * auxv.c: Remove _initialize_auxv prototype.
1045 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1046 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1047 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1048 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1049 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1050 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1051 prototype.
1052 * break-catch-throw.c: Remove _initialize_break_catch_throw
1053 prototype.
1054 * breakpoint.c: Remove _initialize_breakpoint prototype.
1055 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1056 * btrace.c: Remove _initialize_btrace prototype.
1057 * charset.c: Remove _initialize_charset prototype.
1058 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1059 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1060 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1061 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1062 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1063 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1064 * coffread.c: Remove _initialize_coffread prototype.
1065 * compile/compile.c: Remove _initialize_compile prototype.
1066 * complaints.c: Remove _initialize_complaints prototype.
1067 * completer.c: Remove _initialize_completer prototype.
1068 * copying.awk: Remove _initialize_copying prototype.
1069 * copying.c: Regenerate.
1070 * core-regset.c: Remove _initialize_core_regset prototype.
1071 * corefile.c: Remove _initialize_core prototype.
1072 * corelow.c: Remove _initialize_corelow prototype.
1073 * cp-abi.c: Remove _initialize_cp_abi prototype.
1074 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1075 * cp-support.c: Remove _initialize_cp_support prototype.
1076 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1077 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1078 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1079 * ctf.c: Remove _initialize_ctf prototype.
1080 * d-lang.c: Remove _initialize_d_language prototype.
1081 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1082 prototype.
1083 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1084 * dbxread.c: Remove _initialize_dbxread prototype.
1085 * dcache.c: Remove _initialize_dcache prototype.
1086 * demangle.c: Remove _initialize_demangler prototype.
1087 * disasm-selftests.c: Remove _initialize_disasm_selftests
1088 prototype.
1089 * disasm.c: Remove _initialize_disasm prototype.
1090 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1091 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1092 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1093 prototype.
1094 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1095 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1096 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1097 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1098 * elfread.c: Remove _initialize_elfread prototype.
1099 * exec.c: Remove _initialize_exec prototype.
1100 * extension.c: Remove _initialize_extension prototype.
1101 * f-lang.c: Remove _initialize_f_language prototype.
1102 * f-valprint.c: Remove _initialize_f_valprint prototype.
1103 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1104 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1105 * filesystem.c: Remove _initialize_filesystem prototype.
1106 * findcmd.c: Remove _initialize_mem_search prototype.
1107 * fork-child.c: Remove _initialize_fork_child prototype.
1108 * frame-base.c: Remove _initialize_frame_base prototype.
1109 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1110 * frame.c: Remove _initialize_frame prototype.
1111 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1112 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1113 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1114 * gcore.c: Remove _initialize_gcore prototype.
1115 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1116 * gdbarch.c: Regenerate.
1117 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1118 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1119 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1120 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1121 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1122 * go-lang.c: Remove _initialize_go_language prototype.
1123 * go32-nat.c: Remove _initialize_go32_nat prototype.
1124 * guile/guile.c: Remove _initialize_guile prototype.
1125 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1126 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1127 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1128 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1129 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1130 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1131 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1132 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1133 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1134 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1135 prototype.
1136 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1137 prototype.
1138 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1139 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1140 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1141 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1142 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1143 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1144 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1145 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1146 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1147 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1148 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1149 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1150 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1151 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1152 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1153 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1154 prototype.
1155 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1156 prototype.
1157 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1158 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1159 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1160 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1161 * infcall.c: Remove _initialize_infcall prototype.
1162 * infcmd.c: Remove _initialize_infcmd prototype.
1163 * inferior.c: Remove _initialize_inferiors prototype.
1164 * inflow.c: Remove _initialize_inflow prototype.
1165 * infrun.c: Remove _initialize_infrun prototype.
1166 * interps.c: Remove _initialize_interpreter prototype.
1167 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1168 * jit.c: Remove _initialize_jit prototype.
1169 * language.c: Remove _initialize_language prototype.
1170 * linux-fork.c: Remove _initialize_linux_fork prototype.
1171 * linux-nat.c: Remove _initialize_linux_nat prototype.
1172 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1173 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1174 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1175 * m2-lang.c: Remove _initialize_m2_language prototype.
1176 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1177 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1178 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1179 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1180 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1181 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1182 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1183 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1184 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1185 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1186 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1187 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1188 * machoread.c: Remove _initialize_machoread prototype.
1189 * macrocmd.c: Remove _initialize_macrocmd prototype.
1190 * macroscope.c: Remove _initialize_macroscope prototype.
1191 * maint.c: Remove _initialize_maint_cmds prototype.
1192 * mdebugread.c: Remove _initialize_mdebugread prototype.
1193 * memattr.c: Remove _initialize_mem prototype.
1194 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1195 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1196 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1197 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1198 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1199 * microblaze-linux-tdep.c: Remove
1200 _initialize_microblaze_linux_tdep prototype.
1201 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1202 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1203 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1204 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1205 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1206 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1207 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1208 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1209 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1210 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1211 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1212 prototype.
1213 * mipsread.c: Remove _initialize_mipsread prototype.
1214 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1215 prototype.
1216 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1217 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1218 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1219 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1220 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1221 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1222 prototype.
1223 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1224 * nto-procfs.c: Remove _initialize_procfs prototype.
1225 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1226 * objc-lang.c: Remove _initialize_objc_language prototype.
1227 * objfiles.c: Remove _initialize_objfiles prototype.
1228 * observer.c: Remove observer_test_first_notification_function,
1229 observer_test_second_notification_function,
1230 observer_test_third_notification_function, and
1231 _initialize_observer prototypes.
1232 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1233 * osabi.c: Remove _initialize_gdb_osabi prototype.
1234 * osdata.c: Remove _initialize_osdata prototype.
1235 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1236 * parse.c: Remove _initialize_parse prototype.
1237 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1238 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1239 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1240 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1241 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1242 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1243 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1244 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1245 * printcmd.c: Remove _initialize_printcmd prototype.
1246 * probe.c: Remove _initialize_probe prototype.
1247 * proc-api.c: Remove _initialize_proc_api prototype.
1248 * proc-events.c: Remove _initialize_proc_events prototype.
1249 * proc-service.c: Remove _initialize_proc_service prototype.
1250 * procfs.c: Remove _initialize_procfs prototype.
1251 * psymtab.c: Remove _initialize_psymtab prototype.
1252 * python/python.c: Remove _initialize_python prototype.
1253 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1254 * record-btrace.c: Remove _initialize_record_btrace prototype.
1255 * record-full.c: Remove _initialize_record_full prototype.
1256 * record.c: Remove _initialize_record prototype.
1257 * regcache.c: Remove _initialize_regcache prototype.
1258 * reggroups.c: Remove _initialize_reggroup prototype.
1259 * remote-notif.c: Remove _initialize_notif prototype.
1260 * remote-sim.c: Remove _initialize_remote_sim prototype.
1261 * remote.c: Remove _initialize_remote prototype.
1262 * reverse.c: Remove _initialize_reverse prototype.
1263 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1264 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1265 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1266 prototype.
1267 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1268 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1269 * rust-exp.y: Remove _initialize_rust_exp prototype.
1270 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1271 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1272 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1273 * score-tdep.c: Remove _initialize_score_tdep prototype.
1274 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1275 prototype.
1276 * ser-go32.c: Remove _initialize_ser_dos prototype.
1277 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1278 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1279 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1280 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1281 * serial.c: Remove _initialize_serial prototype.
1282 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1283 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1284 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1285 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1286 * skip.c: Remove _initialize_step_skip prototype.
1287 * sol-thread.c: Remove _initialize_sol_thread prototype.
1288 * solib-aix.c: Remove _initialize_solib_aix prototype.
1289 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1290 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1291 * solib-frv.c: Remove _initialize_frv_solib prototype.
1292 * solib-spu.c: Remove _initialize_spu_solib prototype.
1293 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1294 * solib-target.c: Remove _initialize_solib_target prototype.
1295 * solib.c: Remove _initialize_solib prototype.
1296 * source.c: Remove _initialize_source prototype.
1297 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1298 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1299 prototype.
1300 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1301 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1302 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1303 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1304 prototype.
1305 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1306 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1307 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1308 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1309 prototype.
1310 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1311 prototype.
1312 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1313 prototype.
1314 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1315 prototype.
1316 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1317 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1318 prototype.
1319 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1320 prototype.
1321 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1322 prototype.
1323 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1324 prototype.
1325 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1326 prototype.
1327 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1328 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1329 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1330 * stabsread.c: Remove _initialize_stabsread prototype.
1331 * stack.c: Remove _initialize_stack prototype.
1332 * stap-probe.c: Remove _initialize_stap_probe prototype.
1333 * std-regs.c: Remove _initialize_frame_reg prototype.
1334 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1335 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1336 * symfile.c: Remove _initialize_symfile prototype.
1337 * symmisc.c: Remove _initialize_symmisc prototype.
1338 * symtab.c: Remove _initialize_symtab prototype.
1339 * target-dcache.c: Remove _initialize_target_dcache prototype.
1340 * target-descriptions.c: Remove _initialize_target_descriptions
1341 prototype.
1342 * thread.c: Remove _initialize_thread prototype.
1343 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1344 prototype.
1345 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1346 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1347 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1348 prototype.
1349 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1350 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1351 * tracefile.c: Remove _initialize_tracefile prototype.
1352 * tracepoint.c: Remove _initialize_tracepoint prototype.
1353 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1354 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1355 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1356 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1357 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1358 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1359 * tui/tui.c: Remove _initialize_tui prototype.
1360 * typeprint.c: Remove _initialize_typeprint prototype.
1361 * user-regs.c: Remove _initialize_user_regs prototype.
1362 * utils.c: Remove _initialize_utils prototype.
1363 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1364 * valarith.c: Remove _initialize_valarith prototype.
1365 * valops.c: Remove _initialize_valops prototype.
1366 * valprint.c: Remove _initialize_valprint prototype.
1367 * value.c: Remove _initialize_values prototype.
1368 * varobj.c: Remove _initialize_varobj prototype.
1369 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1370 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1371 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1372 * windows-nat.c: Remove _initialize_windows_nat,
1373 _initialize_check_for_gdb_ini, and _initialize_loadable
1374 prototypes.
1375 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1376 * xcoffread.c: Remove _initialize_xcoffread prototype.
1377 * xml-support.c: Remove _initialize_xml_support prototype.
1378 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1379 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1380 prototype.
1381 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1382 prototype.
1383 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1384
1385 2017-09-08 Keith Seitz <keiths@redhat.com>
1386
1387 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1388 field.
1389
1390 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1391
1392 * f-valprint.c (f_val_print): Remove check for one byte
1393 sized integers. Remove printing of character type.
1394
1395 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1396 Christoph Weinmann <christoph.t.weinmann@intel.com>
1397 Bernhard Heckel <bernhard.heckel@intel.com>
1398
1399 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1400 to maintain proper indentation when printing pointers/refs.
1401
1402 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1403
1404 GDB 8.0.1 released.
1405
1406 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1407
1408 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1409
1410 2017-09-05 Tom Tromey <tom@tromey.com>
1411
1412 * parse.c (funcall_chain): Now a std::vector.
1413 (start_arglist, end_arglist): Simplify.
1414 (free_funcalls): Remove.
1415 (parse_exp_in_context_1): Remove cleanup.
1416
1417 2017-09-05 Tom Tromey <tom@tromey.com>
1418
1419 * go-exp.y (go_parse): Don't create a cleanup.
1420
1421 2017-09-05 Tom Tromey <tom@tromey.com>
1422
1423 * d-exp.y (PrimaryExpression): Use std::string.
1424 (d_parse): Don't create a cleanup.
1425
1426 2017-09-05 Tom Tromey <tom@tromey.com>
1427
1428 * utils.c (do_clear_parser_state): Remove.
1429 (make_cleanup_clear_parser_state): Remove.
1430 * p-exp.y (pascal_parse): Use scoped_restore.
1431 * m2-exp.y (m2_parse): Use scoped_restore.
1432 * f-exp.y (f_parse): Use scoped_restore.
1433 * d-exp.y (d_parse): Use scoped_restore.
1434 * c-exp.y (c_parse): Use scoped_restore.
1435 * ada-exp.y (ada_parse): Use scoped_restore.
1436 * utils.h (make_cleanup_clear_parser_state): Remove.
1437
1438 2017-09-06 Keith Seitz <keiths@redhat.com>
1439
1440 * dwarf2read.c (dw2_linkage_name_attr): New function.
1441 (dw2_linkage_name): New function.
1442 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1443 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1444 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1445
1446 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1447
1448 * config/djgpp/djconfig.sh: Correct shell portability issue.
1449
1450 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1451
1452 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1453
1454 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1455
1456 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1457 * NEWS: Mention new FreeBSD/mips native configuration.
1458 * configure.host: Add aarch64*-*-freebsd*.
1459 * configure.nat: Likewise.
1460 * aarch64-fbsd-nat.c: New file.
1461
1462 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1463
1464 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1465 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1466 * NEWS: Mention new FreeBSD/aarch64 target.
1467 * configure.tgt: Add aarch64*-*-freebsd*.
1468 * aarch64-fbsd-tdep.c: New file.
1469 * aarch64-fbsd-tdep.h: New file.
1470
1471 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1472
1473 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1474
1475 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1478 of TLS symbols.
1479
1480 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1481
1482 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1483 call.
1484
1485 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1486
1487 * infrun.c (follow_exec): Call add_thread after
1488 target_find_description.
1489
1490 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1491
1492 * infrun.c (handle_inferior_event_1): When exec'ing, read
1493 stop_pc after follow_exec.
1494
1495 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1496
1497 * remote.c (process_g_packet): Update error message.
1498
1499 2017-09-05 Yao Qi <yao.qi@linaro.org>
1500
1501 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1502 targets.
1503
1504 2017-09-05 Pedro Alves <palves@redhat.com>
1505
1506 * eval.c (eval_call, evaluate_funcall): New functions, factored
1507 out from ...
1508 (evaluate_subexp_standard): ... this.
1509
1510 2017-09-05 Yao Qi <yao.qi@linaro.org>
1511
1512 * amd64-tdep.c (amd64_target_description): Create target
1513 descriptions.
1514 (_initialize_amd64_tdep): Don't call functions
1515 initialize_tdesc_amd64_*. Add self tests.
1516 * arch/amd64.c (amd64_create_target_description): Add parameter
1517 is_linux. Call set_tdesc_osabi if is_linux is true.
1518 * arch/amd64.h (amd64_create_target_description): Update the
1519 declaration.
1520 * arch/i386.c (i386_create_target_description): Add parameter
1521 is_linux. Call set_tdesc_osabi if is_linux is true.
1522 * arch/i386.h (i386_create_target_description): Update
1523 declaration.
1524 * configure.tgt: Add i386.o to gdb_target_obs.
1525 * features/Makefile (XMLTOC): Remove i386/*.xml.
1526 * features/i386/amd64-avx-avx512.c: Remove.
1527 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1528 * features/i386/amd64-avx-mpx.c: Remove.
1529 * features/i386/amd64-avx.c: Remove.
1530 * features/i386/amd64-mpx.c: Remove.
1531 * features/i386/amd64.c: Remove.
1532 * features/i386/i386-avx-avx512.c: Remove.
1533 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1534 * features/i386/i386-avx-mpx.c: Remove.
1535 * features/i386/i386-avx.c: Remove.
1536 * features/i386/i386-mmx.c: Remove.
1537 * features/i386/i386-mpx.c: Remove.
1538 * features/i386/i386.c: Remove.
1539 * i386-tdep.c: Don't include features/i386/i386*.c., include
1540 target-descriptions.h and arch/i386.h.
1541 (i386_target_description): Create target descriptions.
1542 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1543 functions. Do self tests.
1544
1545 2017-09-05 Yao Qi <yao.qi@linaro.org>
1546
1547 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1548 * features/i386/amd64-avx-avx512-linux.c: Removed.
1549 * features/i386/amd64-avx-linux.c: Removed.
1550 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1551 * features/i386/amd64-avx-mpx-linux.c: Removed.
1552 * features/i386/amd64-linux.c: Removed.
1553 * features/i386/amd64-mpx-linux.c: Removed.
1554 * features/i386/x32-avx-avx512-linux.c: Removed.
1555 * features/i386/x32-avx-linux.c: Removed.
1556 * features/i386/x32-linux.c: Removed.
1557
1558 2017-09-05 Yao Qi <yao.qi@linaro.org>
1559
1560 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1561 features/i386/*.c.
1562 (amd64_linux_read_description): Call
1563 amd64_create_target_description.
1564 * arch/amd64.c: New file.
1565 * arch/amd64.h: New file.
1566 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1567 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1568
1569 2017-09-05 Yao Qi <yao.qi@linaro.org>
1570
1571 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1572 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1573 (amd64_linux_read_description): Create target descriptions.
1574 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1575 functions. Add unit tests.
1576 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1577 x32-core.xml.
1578 * features/i386/64bit-avx.c: Generated.
1579 * features/i386/64bit-avx512.c: Generated.
1580 * features/i386/64bit-core.c: Generated.
1581 * features/i386/64bit-linux.c: Generated.
1582 * features/i386/64bit-mpx.c: Generated.
1583 * features/i386/64bit-pkeys.c: Generated.
1584 * features/i386/64bit-segments.c: Generated.
1585 * features/i386/64bit-sse.c: Generated.
1586 * features/i386/x32-core.c: Generated.
1587 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1588 c files for amd64-linux and x32-linux.
1589
1590 2017-09-05 Yao Qi <yao.qi@linaro.org>
1591
1592 * amd64-linux-tdep.c (amd64_linux_read_description): New
1593 function.
1594 (amd64_linux_core_read_description): Call
1595 amd64_linux_read_description.
1596 (amd64_linux_init_abi): Likewise.
1597 (amd64_x32_linux_init_abi): Likewise.
1598 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1599 * x86-linux-nat.c (x86_linux_read_description): Call
1600 amd64_linux_read_description.
1601
1602 2017-09-05 Yao Qi <yao.qi@linaro.org>
1603
1604 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1605 comments.
1606
1607 2017-09-05 Yao Qi <yao.qi@linaro.org>
1608
1609 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1610 * features/i386/i386-avx-avx512-linux.c: Remove.
1611 * features/i386/i386-avx-linux.c: Remove.
1612 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1613 * features/i386/i386-avx-mpx-linux.c: Remove.
1614 * features/i386/i386-linux.c: Remove.
1615 * features/i386/i386-mmx-linux.c: Remove.
1616 * features/i386/i386-mpx-linux.c: Remove.
1617
1618 2017-09-05 Yao Qi <yao.qi@linaro.org>
1619
1620 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1621 (SFILES): Add arch/i386.c.
1622 (HFILES_NO_SRCDIR): Add arch/i386.h.
1623 * arch/i386.c: New file.
1624 * arch/i386.h: New file.
1625 * arch/tdesc.h (allocate_target_description): Declare.
1626 (set_tdesc_architecture): Declare.
1627 (set_tdesc_osabi): Declare.
1628 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1629 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1630 include arch/i386.h.
1631 (i386_linux_read_description): Remove code and call
1632 i386_create_target_description.
1633 (set_tdesc_architecture): New function.
1634 (set_tdesc_osabi): New function.
1635 * target-descriptions.h (allocate_target_description): Remove.
1636
1637 2017-09-05 Yao Qi <yao.qi@linaro.org>
1638
1639 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1640 * target-descriptions.c (tdesc_create_feature): Likewise, and
1641 adjust code.
1642 * features/i386/32bit-avx.c: Re-generated.
1643 * features/i386/32bit-avx512.c: Re-generated.
1644 * features/i386/32bit-core.c: Re-generated.
1645 * features/i386/32bit-linux.c: Re-generated.
1646 * features/i386/32bit-mpx.c: Re-generated.
1647 * features/i386/32bit-pkeys.c: Re-generated.
1648 * features/i386/32bit-sse.c: Re-generated.
1649
1650 2017-09-05 Yao Qi <yao.qi@linaro.org>
1651
1652 * regformats/regdef.h (struct reg): Override operator == and !=.
1653
1654 2017-09-05 Yao Qi <yao.qi@linaro.org>
1655
1656 * arch/tdesc.h: New file.
1657 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1658 * target-descriptions.c: Update comments.
1659 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1660 declarations.
1661 * features/i386/32bit-avx.c: Re-generated.
1662 * features/i386/32bit-avx512.c: Re-generated.
1663 * features/i386/32bit-core.c: Re-generated.
1664 * features/i386/32bit-linux.c: Re-generated.
1665 * features/i386/32bit-mpx.c: Re-generated.
1666 * features/i386/32bit-pkeys.c: Re-generated.
1667 * features/i386/32bit-sse.c: Re-generated.
1668
1669 2017-09-05 Yao Qi <yao.qi@linaro.org>
1670
1671 * regformats/regdat.sh: Update generated code.
1672
1673 2017-09-05 Yao Qi <yao.qi@linaro.org>
1674
1675 * regformats/regdat.sh: Adjust code order.
1676
1677 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1678
1679 * expprint.c (dump_subexp_body_standard): Use constant format
1680 string in fprintf_filtered call.
1681
1682 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1683
1684 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1685 NetBSD/i386.
1686 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1687
1688 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1689
1690 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1691
1692 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1693
1694 * bsd-kvm.o: Define _KMEMUSER.
1695 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1696 * configure: Regenerate.
1697
1698 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1699
1700 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1701 * i386-fbsd-nat.c: Likewise.
1702
1703 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1704
1705 * unittests/array-view-selftests.c: Add include of <array>.
1706
1707 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1708
1709 * spu-tdep.c (flush_ea_cache): Add missing argument to
1710 call_function_by_hand.
1711
1712 2017-09-04 Pedro Alves <palves@redhat.com>
1713
1714 * NEWS (Safer support for debugging with no debug info): New.
1715
1716 2017-09-04 Pedro Alves <palves@redhat.com>
1717
1718 * c-exp.y (function_method, function_method_void): Add current
1719 instance flags to TYPE_INSTANCE.
1720 * dwarf2read.c (check_modifier): New.
1721 (compute_delayed_physnames): Assert that only C++ adds delayed
1722 physnames. Mark fn_fields as const/volatile depending on
1723 physname.
1724 * eval.c (make_params): New type_instance_flags parameter. Use
1725 it as the new type's instance flags.
1726 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1727 flags element and pass it to make_params.
1728 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1729 instance flags element.
1730 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1731 * gdbtypes.h: Include "enum-flags.h".
1732 (type_instance_flags): New enum-flags type.
1733 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1734 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1735 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1736 (follow_type_instance_flags): New function.
1737 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1738 * parser-defs.h (follow_type_instance_flags): Declare.
1739 * valops.c (value_struct_elt_for_reference): const/volatile must
1740 match too.
1741
1742 2017-09-04 Pedro Alves <palves@redhat.com>
1743
1744 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1745 function/method scopes; lookup the nested name as a function local
1746 static variable.
1747
1748 2017-09-04 Pedro Alves <palves@redhat.com>
1749
1750 (%type <voidval>): Add function_method.
1751 * c-exp.y (exp): New production for calls with no arguments.
1752 (function_method, function_method_void_or_typelist): New
1753 productions.
1754 (exp): New production for "method()::static_var".
1755 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1756 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1757 Handle OP_FUNC_STATIC_VAR.
1758 * parse.c (operator_length_standard):
1759 Handle OP_FUNC_STATIC_VAR.
1760
1761 2017-09-04 Pedro Alves <palves@redhat.com>
1762
1763 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1764 handling.
1765 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1766 Ditto.
1767 * parse.c (operator_length_standard, operator_check_standard):
1768 Ditto.
1769 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1770
1771 2017-09-04 Pedro Alves <palves@redhat.com>
1772
1773 * ax-gdb.c: Include "typeprint.h".
1774 (gen_expr_for_cast): New function.
1775 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1776 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1777 type is unknown.
1778 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1779 nodebug_data_symbol.
1780 * eval.c: Include "typeprint.h".
1781 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1782 Error out if symbol has unknown type.
1783 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1784 evaluate_subexp_for_cast.
1785 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1786 OP_VAR_MSYM_VALUE.
1787 (evaluate_subexp_for_cast): New function.
1788 * gdbtypes.c (init_nodebug_var_type): New function.
1789 (objfile_type): Use it to initialize types of variables with no
1790 debug info.
1791 * typeprint.c (error_unknown_type): New.
1792 * typeprint.h (error_unknown_type): New declaration.
1793 * compile/compile-c-types.c (convert_type_basic): Handle
1794 TYPE_CODE_ERROR; warn and fallback to int for variables with
1795 unknown type.
1796
1797 2017-09-04 Pedro Alves <palves@redhat.com>
1798
1799 * eval.c (evaluate_var_value): New function, factored out from ...
1800 (evaluate_subexp_standard): ... here.
1801
1802 2017-09-04 Pedro Alves <palves@redhat.com>
1803
1804 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1805 Remove useless assignments to 'op'.
1806
1807 2017-09-04 Pedro Alves <palves@redhat.com>
1808
1809 * eval.c (eval_skip_value): New function.
1810 (evaluate_subexp_standard): Use it.
1811
1812 2017-09-04 Pedro Alves <palves@redhat.com>
1813
1814 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1815 function name from symbol/minsym and pass it to
1816 error_call_unknown_return_type.
1817
1818 2017-09-04 Pedro Alves <palves@redhat.com>
1819
1820 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1821 * ax-gdb.c (gen_msym_var_ref): New function.
1822 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1823 * eval.c (evaluate_var_msym_value): New function.
1824 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1825 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1826 to call_function_by_hand.
1827 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1828 Handle OP_VAR_MSYM_VALUE.
1829 (union exp_element) <msymbol>: New field.
1830 * minsyms.h (struct type): Forward declare.
1831 (find_minsym_type_and_address): Declare.
1832 * parse.c (write_exp_elt_msym): New function.
1833 (write_exp_msymbol): Delete, refactored as ...
1834 (find_minsym_type_and_address): ... this new function.
1835 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
1836 (operator_length_standard, operator_check_standard): Handle
1837 OP_VAR_MSYM_VALUE.
1838 * std-operator.def (OP_VAR_MSYM_VALUE): New.
1839
1840 2017-09-04 Pedro Alves <palves@redhat.com>
1841
1842 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
1843 TYPE_GNU_IFUNC specially here. Throw error if return type is
1844 unknown.
1845 * ada-typeprint.c (print_func_type): Handle functions with unknown
1846 return type.
1847 * c-typeprint.c (c_type_print_base): Handle functions and methods
1848 with unknown return type.
1849 * compile/compile-c-symbols.c (convert_symbol_bmsym)
1850 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
1851 * compile/compile-c-types.c: Include "objfiles.h".
1852 (convert_func): For functions with unknown return type, warn and
1853 default to int.
1854 * compile/compile-object-run.c (compile_object_run): Adjust call
1855 to call_function_by_hand_dummy.
1856 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
1857 call_function_by_hand.
1858 * eval.c (evaluate_subexp_standard): Adjust calls to
1859 call_function_by_hand. Handle functions and methods with unknown
1860 return type. Pass expect_type to call_function_by_hand.
1861 * f-typeprint.c (f_type_print_base): Handle functions with unknown
1862 return type.
1863 * gcore.c (call_target_sbrk): Adjust call to
1864 call_function_by_hand.
1865 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
1866 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
1867 an integer address type instead of nodebug.
1868 * guile/scm-value.c (gdbscm_value_call): Adjust call to
1869 call_function_by_hand.
1870 * infcall.c (error_call_unknown_return_type): New function.
1871 (call_function_by_hand): New "default_return_type" parameter.
1872 Pass it down.
1873 (call_function_by_hand_dummy): New "default_return_type"
1874 parameter. Use it instead of defaulting to int. If there's no
1875 default and the return type is unknown, throw an error. If
1876 there's a default return type, and the called function has no
1877 debug info, then assume the function is prototyped.
1878 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
1879 New "default_return_type" parameter.
1880 (error_call_unknown_return_type): New declaration.
1881 * linux-fork.c (call_lseek): Cast return type of lseek.
1882 (inferior_call_waitpid, checkpoint_command): Adjust calls to
1883 call_function_by_hand.
1884 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
1885 calls to call_function_by_hand.
1886 * m2-typeprint.c (m2_procedure): Handle functions with unknown
1887 return type.
1888 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1889 (value_nsstring, print_object_command): Adjust calls to
1890 call_function_by_hand.
1891 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
1892 functions with unknown return type.
1893 (pascal_type_print_func_varspec_suffix): New function.
1894 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
1895 TYPE_CODE_METHOD>: Use it.
1896 * python/py-value.c (valpy_call): Adjust call to
1897 call_function_by_hand.
1898 * rust-lang.c (rust_evaluate_funcall): Adjust call to
1899 call_function_by_hand.
1900 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
1901 call_function_by_hand.
1902 * valops.c (value_allocate_space_in_inferior): Adjust call to
1903 call_function_by_hand.
1904 * typeprint.c (type_print_unknown_return_type): New function.
1905 * typeprint.h (type_print_unknown_return_type): New declaration.
1906
1907 2017-09-04 Pedro Alves <palves@redhat.com>
1908
1909 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
1910 types with more than one parameter as prototyped.
1911
1912 2017-09-04 Pedro Alves <palves@redhat.com>
1913
1914 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
1915 (disassemble_command): Use gdb_disassembly_flags instead of bare
1916 int.
1917 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
1918 (dump_insns, do_mixed_source_and_assembly_deprecated)
1919 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
1920 Use gdb_disassembly_flags instead of bare int.
1921 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
1922 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
1923 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
1924 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
1925 (enum gdb_disassembly_flag): ... values of this new enumeration.
1926 (gdb_disassembly_flags): Define.
1927 (gdb_disassembly)
1928 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
1929 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
1930 gdb_disassembly_flags instead of bare int.
1931 * record-btrace.c (btrace_insn_history)
1932 (record_btrace_insn_history, record_btrace_insn_history_range)
1933 (record_btrace_insn_history_from): Use gdb_disassembly_flags
1934 instead of bare int.
1935 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
1936 Use gdb_disassembly_flags instead of bare int.
1937 * target-debug.h (target_debug_print_gdb_disassembly_flags):
1938 Define.
1939 * target-delegates.c: Regenerate.
1940 * target.c (target_insn_history, target_insn_history_from)
1941 (target_insn_history_range): Use gdb_disassembly_flags instead of
1942 bare int.
1943 * target.h: Include "disasm.h".
1944 (struct target_ops) <to_insn_history, to_insn_history_from,
1945 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
1946 int.
1947 (target_insn_history, target_insn_history_from)
1948 (target_insn_history_range): Use gdb_disassembly_flags instead of
1949 bare int.
1950
1951 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1952
1953 * cli/cli-script.c (build_command_line): For if/while commands,
1954 check whether args is empty.
1955
1956 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1957
1958 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
1959 (enum command_control_type): Likewise.
1960 (struct command_line): Likewise.
1961 (free_command_lines): Likewise.
1962 (struct command_lines_deleter): Likewise.
1963 (command_line_up): Likewise.
1964 (read_command_lines): Likewise.
1965 (read_command_lines_1): Likewise.
1966 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
1967 (enum command_control_type): Likewise.
1968 (struct command_line): Likewise.
1969 (free_command_lines): Likewise.
1970 (struct command_lines_deleter): Likewise.
1971 (command_line_up): Likewise.
1972 (read_command_lines): Likewise.
1973 (read_command_lines_1): Likewise.
1974 * breakpoint.h: Include cli/cli-script.h.
1975 * extension-priv.h: Likewise.
1976 * gdbcmd.h: Likewise.
1977
1978 2017-09-04 Pedro Alves <palves@redhat.com>
1979
1980 * ada-lang.c (is_known_support_routine): Move sal declaration to
1981 where it is initialized.
1982 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
1983 (parse_breakpoint_sals, decode_static_tracepoint_spec)
1984 (clear_command, update_static_tracepoint): Remove init_sal
1985 references. Move declarations closer to initializations.
1986 * cli/cli-cmds.c (list_command): Move sal declarations closer to
1987 initializations.
1988 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
1989 references. Move sal declarations closer to initializations.
1990 * frame.c (find_frame_sal): Return a symtab_and_line via function
1991 return instead of output parameter. Remove init_sal references.
1992 * frame.h (find_frame_sal): Return a symtab_and_line via function
1993 return instead of output parameter.
1994 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
1995 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
1996 instead of memset.
1997 (gdbscm_find_pc_line): Remove init_sal reference.
1998 * infcall.c (call_function_by_hand_dummy): Remove init_sal
1999 references. Move declarations closer to initializations.
2000 * infcmd.c (set_step_frame): Update. Move declarations closer to
2001 initializations.
2002 (finish_backward): Remove init_sal references. Move declarations
2003 closer to initializations.
2004 * infrun.c (process_event_stop_test, handle_step_into_function)
2005 (insert_hp_step_resume_breakpoint_at_frame)
2006 (insert_step_resume_breakpoint_at_caller): Likewise.
2007 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2008 (symbol_to_sal): Likewise.
2009 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2010 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2011 to its initialization.
2012 * reverse.c (save_bookmark_command): Use new/delete. Remove
2013 init_sal references. Move declarations closer to initializations.
2014 * source.c (get_current_source_symtab_and_line): Remove brace
2015 initialization.
2016 (set_current_source_symtab_and_line): Now takes the sal by const
2017 reference. Remove brace initialization.
2018 (line_info): Remove init_sal reference.
2019 * source.h (set_current_source_symtab_and_line): Now takes a
2020 symtab_and_line via const reference.
2021 * stack.c (set_current_sal_from_frame): Adjust.
2022 (print_frame_info): Adjust.
2023 (get_last_displayed_sal): Return the sal via function return
2024 instead of via output parameter. Simplify.
2025 (frame_info): Adjust.
2026 * stack.h (get_last_displayed_sal): Return the sal via function
2027 return instead of via output parameter.
2028 * symtab.c (init_sal): Delete.
2029 (find_pc_sect_line): Remove init_sal references. Move
2030 declarations closer to initializations.
2031 (find_function_start_sal): Remove init_sal references. Move
2032 declarations closer to initializations.
2033 * symtab.h (struct symtab_and_line): In-class initialize all
2034 fields.
2035 * tracepoint.c (set_traceframe_context)
2036 (print_one_static_tracepoint_marker): Remove init_sal references.
2037 Move declarations closer to initializations.
2038 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2039 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2040 declarations closer to initializations.
2041 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2042 init_sal references. Adjust.
2043
2044 2017-09-04 Pedro Alves <palves@redhat.com>
2045
2046 * ax-gdb.c (agent_command_1): Use range-for.
2047 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2048 * breakpoint.c: Include "common/array-view.h".
2049 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2050 parameter from struct symtabs_and_lines to
2051 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2052 (breakpoint_sals_to_pc): Change sals parameter from struct
2053 symtabs_and_lines to std::vector reference.
2054 (check_fast_tracepoint_sals): Change sals parameter from struct
2055 symtabs_and_lines to std::array_view. Use range-for.
2056 (decode_static_tracepoint_spec): Return a std::vector instead of
2057 symtabs_and_lines. Update.
2058 (create_breakpoint): Update.
2059 (break_range_command, until_break_command, clear_command): Update.
2060 (base_breakpoint_decode_location, bkpt_decode_location)
2061 (bkpt_probe_create_sals_from_location)
2062 (bkpt_probe_decode_location, tracepoint_decode_location)
2063 (tracepoint_probe_decode_location)
2064 (strace_marker_create_sals_from_location): Return a std::vector
2065 instead of symtabs_and_lines.
2066 (strace_marker_create_breakpoints_sal): Update.
2067 (strace_marker_decode_location): Return a std::vector instead of
2068 symtabs_and_lines. Update.
2069 (update_breakpoint_locations): Change struct symtabs_and_lines
2070 parameters to gdb::array_view. Adjust.
2071 (location_to_sals): Return a std::vector instead of
2072 symtabs_and_lines. Update.
2073 (breakpoint_re_set_default): Use std::vector instead of struct
2074 symtabs_and_lines.
2075 (decode_location_default): Return a std::vector instead of
2076 symtabs_and_lines. Update.
2077 * breakpoint.h: Include "common/array-view.h".
2078 (struct breakpoint_ops) <decode_location>: Now returns a
2079 std::vector instead of returning a symtabs_and_lines via output
2080 parameter.
2081 (update_breakpoint_locations): Change sals parameters to use
2082 gdb::array_view.
2083 * cli/cli-cmds.c (edit_command, list_command): Update to use
2084 std::vector and gdb::array_view.
2085 (ambiguous_line_spec): Adjust to use gdb::array_view and
2086 range-for.
2087 (compare_symtabs): Rename to ...
2088 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2089 const reference and adjust.
2090 (filter_sals): Rewrite using std::vector and standard algorithms.
2091 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2092 (jump_command): Update to use std::vector.
2093 * linespec.c (struct linespec_state) <canonical_names>: Update
2094 comment.
2095 (add_sal_to_sals_basic): Delete.
2096 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2097 (decode_line_2, create_sals_line_offset)
2098 (convert_address_location_to_sals, convert_linespec_to_sals)
2099 (convert_explicit_location_to_sals, parse_linespec)
2100 (event_location_to_sals, decode_line_full, decode_line_1)
2101 (decode_line_with_current_source)
2102 (decode_line_with_last_displayed, decode_objc)
2103 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2104 (linespec_result::~linespec_result): Adjust to use std::vector
2105 instead of symtabs_and_lines.
2106 * linespec.h (linespec_sals::sals): Now a std::vector.
2107 (struct linespec_result): Use std::vector, bool, and in-class
2108 initialization.
2109 (decode_line_1, decode_line_with_current_source)
2110 (decode_line_with_last_displayed): Return std::vector.
2111 * macrocmd.c (info_macros_command): Use std::vector.
2112 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2113 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2114 std::vector.
2115 * probe.h (parse_probes): Return a std::vector.
2116 * python/python.c (gdbpy_decode_line): Use std::vector and
2117 gdb::array_view.
2118 * source.c (select_source_symtab, line_info): Use std::vector.
2119 * stack.c (func_command): Use std::vector.
2120 * symtab.h (struct symtabs_and_lines): Delete.
2121 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2122
2123 2017-09-04 Pedro Alves <palves@redhat.com>
2124
2125 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2126 unittests/array-view-selftests.c.
2127 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2128 * common/array-view.h: New file.
2129 * unittests/array-view-selftests.c: New file.
2130
2131 2017-09-04 Pedro Alves <palves@redhat.com>
2132
2133 * cli/cli-cmds.c (edit_command): Pass message to
2134 ambiguous_line_spec.
2135 (list_command): Pass message to ambiguous_line_spec. Say
2136 "first"/"last" instead of "start" and "end" to be consistent with
2137 the manual.
2138 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2139 them to print formatted message.
2140
2141 2017-09-04 Pedro Alves <palves@redhat.com>
2142
2143 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2144 ftrace_update_insns by reference instead of pointer.
2145
2146 2017-09-04 Yao Qi <yao.qi@linaro.org>
2147
2148 * i386-go32-tdep.c: Include x86-xstate.h.
2149 (i386_go32_init_abi): Call i386_target_description.
2150 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2151 if xcr0 is X86_XSTATE_X87_MASK.
2152 * i386-tdep.h (tdesc_i386): Remove the declaration.
2153 (tdesc_i386_mmx): Likewise.
2154
2155 2017-09-04 Yao Qi <yao.qi@linaro.org>
2156
2157 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2158 X86_XSTATE_SSE_MASK instead of 0.
2159
2160 2017-09-04 Yao Qi <yao.qi@linaro.org>
2161
2162 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2163 i386_target_description.
2164 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2165 i386_target_description.
2166 * i386-tdep.c (i386_gdbarch_init): Likewise.
2167
2168 2017-09-04 Yao Qi <yao.qi@linaro.org>
2169
2170 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2171 (x86_darwin_init_abi_64): Call amd64_target_description.
2172 * amd64-dicos-tdep.c: Likewise.
2173 * amd64-fbsd-nat.c: Likewise.
2174 * amd64-fbsd-tdep.c: Likewise.
2175 * amd64-nbsd-tdep.c: Likewise.
2176 * amd64-obsd-tdep.c: Likewise.
2177 * amd64-sol2-tdep.c: Likewise.
2178 * amd64-windows-tdep.c: Likewise.
2179 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2180
2181 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2182
2183 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2184 (btrace_function) <insn>: Change type to use std::vector.
2185 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2186 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2187 ftrace_update_insns, ftrace_compute_global_level_offset,
2188 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2189 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2190 change to std::vector.
2191 (ftrace_update_insns): Adjust to change to std::vector, change
2192 type of INSN parameter.
2193 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2194 * record-btrace.c (btrace_call_history_insn_range,
2195 btrace_compute_src_line_range,
2196 record_btrace_frame_prev_register): Adjust to change to
2197 std::vector.
2198 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2199 to change to std::vector.
2200
2201 2017-09-03 Tom Tromey <tom@tromey.com>
2202
2203 * corefile.c (reopen_exec_file): Use std::string.
2204
2205 2017-09-03 Tom Tromey <tom@tromey.com>
2206
2207 * compile/compile.c (compile_register_name_mangled): Return
2208 std::string.
2209 * compile/compile-loc2c.c (pushf_register_address): Update.
2210 (pushf_register): Update.
2211 * compile/compile-c-types.c (convert_array): Update.
2212 * compile/compile-c-symbols.c (generate_vla_size): Update.
2213 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2214 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2215 (convert_one_symbol): Update.
2216 (generate_c_for_for_one_variable): Update.
2217 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2218 std::string.
2219 (generate_register_struct): Update.
2220 * compile/compile-internal.h (c_get_range_decl_name): Return a
2221 std::string.
2222 (compile_register_name_mangled): Return std::string.
2223
2224 2017-09-03 Tom Tromey <tom@tromey.com>
2225
2226 * utils.c (perror_string): Return a std::string.
2227 (throw_perror_with_name, perror_warning_with_name): Update.
2228
2229 2017-09-03 Tom Tromey <tom@tromey.com>
2230
2231 * demangle.c (demangle_command): Use std::string,
2232 unique_xmalloc_ptr.
2233
2234 2017-09-03 Tom Tromey <tom@tromey.com>
2235
2236 * cli/cli-setshow.c (do_set_command): Use std::string.
2237
2238 2017-09-03 Tom Tromey <tom@tromey.com>
2239
2240 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2241
2242 2017-09-03 Tom Tromey <tom@tromey.com>
2243
2244 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2245
2246 2017-09-03 Tom Tromey <tom@tromey.com>
2247
2248 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2249 gdb::unique_xmalloc_ptr.
2250
2251 2017-09-03 Tom Tromey <tom@tromey.com>
2252
2253 * thread.c (print_thread_info_1): Use string_printf.
2254 (thread_apply_command, thread_apply_all_command): Use
2255 std::string.
2256
2257 2017-09-03 Tom Tromey <tom@tromey.com>
2258
2259 * valprint.c (val_print_string): Update.
2260 * gdbcore.h (memory_error_message): Return std::string.
2261 * corefile.c (memory_error_message): Return std::string.
2262 (memory_error): Update.
2263 * breakpoint.c (insert_bp_location): Update.
2264
2265 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2266
2267 * target/waitstatus.h (target_waitstatus_to_string): Change
2268 return type to std::string.
2269 * target/waitstatus.c (target_waitstatus_to_string): Return
2270 std::string.
2271 * target.h (target_waitstatus_to_string): Remove declaration.
2272 * infrun.c (resume, clear_proceed_status_thread,
2273 print_target_wait_results, do_target_wait, save_waitstatus,
2274 stop_all_threads): Adjust.
2275 * record-btrace.c (record_btrace_wait): Adjust.
2276 * target-debug.h
2277 (target_debug_print_struct_target_waitstatus_p): Adjust.
2278
2279 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2280
2281 PR gdb/22046
2282 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2283 detection.
2284
2285 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2286
2287 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2288 for setting/unsetting environment variables on the remote target.
2289 (New remote packets): Add entries for QEnvironmentHexEncoded,
2290 QEnvironmentUnset and QEnvironmentReset.
2291 * common/environ.c (gdb_environ::operator=): Extend method to
2292 handle m_user_set_env_list and m_user_unset_env_list.
2293 (gdb_environ::clear): Likewise.
2294 (match_var_in_string): Change type of first parameter from 'char
2295 *' to 'const char *'.
2296 (gdb_environ::set): Extend method to handle
2297 m_user_set_env_list and m_user_unset_env_list.
2298 (gdb_environ::unset): Likewise.
2299 (gdb_environ::clear_user_set_env): New method.
2300 (gdb_environ::user_set_envp): Likewise.
2301 (gdb_environ::user_unset_envp): Likewise.
2302 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2303 m_user_unset_env_list on move constructor/assignment.
2304 (unset): Add new default parameter 'update_unset_list = true'.
2305 (clear_user_set_env): New method.
2306 (user_set_envp): Likewise.
2307 (user_unset_envp): Likewise.
2308 (m_user_set_env_list): New std::set.
2309 (m_user_unset_env_list): Likewise.
2310 * common/rsp-low.c (hex2str): New function.
2311 (bin2hex): New overload for bin2hex function.
2312 * common/rsp-low.c (hex2str): New prototype.
2313 (str2hex): New overload prototype.
2314 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2315 QEnvironmentUnset and QEnvironmentReset.
2316 (remote_protocol_features): Add QEnvironmentHexEncoded,
2317 QEnvironmentUnset and QEnvironmentReset packets.
2318 (send_environment_packet): New function.
2319 (extended_remote_environment_support): Likewise.
2320 (extended_remote_create_inferior): Call
2321 extended_remote_environment_support.
2322 (_initialize_remote): Add QEnvironmentHexEncoded,
2323 QEnvironmentUnset and QEnvironmentReset packet configs.
2324 * unittests/environ-selftests.c (gdb_selftest_env_var):
2325 New variable.
2326 (test_vector_initialization): New function.
2327 (test_init_from_host_environ): Likewise.
2328 (test_reinit_from_host_environ): Likewise.
2329 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2330 Likewise.
2331 (test_unset_set_empty_vector): Likewise.
2332 (test_vector_clear): Likewise.
2333 (test_std_move): Likewise.
2334 (test_move_constructor):
2335 (test_self_move): Likewise.
2336 (test_set_unset_reset): Likewise.
2337 (run_tests): Rewrite in terms of the functions above.
2338
2339 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2340
2341 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2342 (adi_available): Use a temp variable of type CORE_ADDR as argument
2343 3 when calling target_auxv_search.
2344 (adi_normalize_address): Use masks and xor operators to calculate
2345 normalized address.
2346 (adi_read_versions, adi_write_versions, adi_print_versions)
2347 (do_examine, do_assign): Use paddress.
2348
2349 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2350
2351 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2352 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2353 out of loop and add supply of FIR.
2354 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2355 add collect of FIR.
2356
2357 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2358
2359 PR gdb/21827
2360 * cli/cli-script.c (define_command): Don't convert command name
2361 to lower case.
2362
2363 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2364
2365 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2366 Update all callers accordingly. Remove all code blocks handling
2367 the case where DISPP is not NULL.
2368
2369 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2370
2371 PR symtab/22003
2372 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2373 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2374 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2375
2376 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2377
2378 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2379 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2380 (read_comp_units_from_section): New parameter abbrev_section, use
2381 read_and_check_comp_unit_head, allocate signatured_type if needed.
2382 (create_all_comp_units): Update read_comp_units_from_section caller.
2383
2384 2017-08-23 Pedro Alves <palves@redhat.com>
2385
2386 PR remote/21852
2387 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2388 to null_ptid and switch to thread without reading the registers
2389 after adding the inferior.
2390
2391 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2394 compile-gcc.
2395 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2396 (compile_to_object): Implement compile_gcc.
2397 (_initialize_compile): Install "set compile-gcc". Initialize
2398 compile_gcc.
2399
2400 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 * compile/compile.c (compile_to_object): Conditionally call
2403 set_verbose. Conditionally call compile or compile_v0.
2404
2405 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2406
2407 * sparc64-tdep.h: (adi_normalize_address): New export.
2408 * sparc-nat.h: (open_adi_tag_fd): New export.
2409 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2410 * sparc64-linux-tdep.c:
2411 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2412 (sparc64_linux_handle_segmentation_fault): New function.
2413 (sparc64_linux_init_abi): Register
2414 sparc64_linux_handle_segmentation_fault
2415 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2416 (sparc64_addr_bits_remove): New function.
2417 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2418 (MAX_PROC_NAME_SIZE): New macro.
2419 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2420 (sparc64adilist): New variable.
2421 (adi_proc_list): New variable.
2422 (find_adi_info): New function.
2423 (add_adi_info): New function.
2424 (get_adi_info_proc): New function.
2425 (get_adi_info): New function.
2426 (info_adi_command): New function.
2427 (read_maps_entry): New function.
2428 (adi_available): New function.
2429 (adi_normalize_address): New function.
2430 (adi_align_address): New function.
2431 (adi_convert_byte_count): New function.
2432 (adi_tag_fd): New function.
2433 (adi_is_addr_mapped): New function.
2434 (adi_read_versions): New function.
2435 (adi_write_versions): New function.
2436 (adi_print_versions): New function.
2437 (do_examine): New function.
2438 (do_assign): New function.
2439 (adi_examine_command): New function.
2440 (adi_assign_command): New function.
2441 (_initialize_sparc64_adi_tdep): New function.
2442
2443 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2444
2445 * breakpoint.c (breakpoints_info): Rename to ...
2446 (info_breakpoints_command): ... this.
2447 (watchpoints_info): Rename to ...
2448 (info_watchpoints_command): ... this.
2449 (tracepoints_info): Rename to ...
2450 (info_tracepoints_command): ... this.
2451 (_initialize_breakpoint): Adjust.
2452 * dcache.c (dcache_info): Rename to ...
2453 (info_display_command): ... this.
2454 (_initialize_dcache): Adjust.
2455 * frame.h (args_info): Rename to ...
2456 (info_args_command): ... this.
2457 (locals_info): Rename to ...
2458 (info_locals_command): ... this.
2459 * infcmd.c (nofp_registers_info): Rename to ...
2460 (info_registers_command): ... this.
2461 (float_info): Rename to ...
2462 (info_float_command): ... this.
2463 (program_info): Rename to ...
2464 (info_program_command): ... this.
2465 (all_registers_info): Rename to ...
2466 (info_all_registers_command): ... this.
2467 (vector_info): Rename to ...
2468 (info_vector_command): ... this.
2469 (float_info): Rename to ...
2470 (info_float_command): ... this.
2471 (_initialize_infcmd): Adjust.
2472 * inferior.h (term_info): Rename to ...
2473 (info_terminal_command): ... this.
2474 * inflow.c (term_info): Rename to ...
2475 (info_terminal_command): ... this.
2476 (_initialize_inflow): Adjust.
2477 * infrun.c (signals_info): Rename to ...
2478 (info_signals_command): ... this.
2479 (_initialize_infrun): Adjust.
2480 * objc-lang.c (classes_info): Rename to ...
2481 (info_classes_command): ... this.
2482 (selectors_info): Rename to ...
2483 (info_selectors_command): ... this.
2484 (_initialize_objc_language): Adjust.
2485 * printcmd.c (sym_info): Rename to ...
2486 (info_symbol_command): ... this.
2487 (address_info): Rename to ...
2488 (info_address_command): ... this.
2489 (display_info): Rename to ...
2490 (info_display_command): ... this.
2491 (_initialize_printcmd): Adjust.
2492 * reverse.c (bookmarks_info): Rename to ...
2493 (info_breakpoints_command): ... this.
2494 (_initialize_reverse): Adjust.
2495 * ser-go32.c (dos_info): Rename to ...
2496 (info_serial_command): ... this.
2497 (_initialize_ser_dos): Adjust.
2498 * skip.c (skip_info): Rename to ...
2499 (info_skip_command): ... this.
2500 (_initialize_step_skip): Adjust.
2501 * source.c (line_info): Rename to ...
2502 (info_line_command): ... this.
2503 (source_info): Rename to ...
2504 (info_source_command)
2505 * stack.c (frame_info): Rename to ...
2506 (info_frame_command): ... this.
2507 (locals_info): Rename to ...
2508 (info_locals_command): ... this.
2509 (args_info): Rename to ...
2510 (info_args_command): ... this.
2511 (_initialize_stack): Adjust.
2512 * symtab.c (sources_info): Rename to ...
2513 (info_sources_command): ... this.
2514 (variables_info): Rename to ...
2515 (info_variables_command): ... this.
2516 (functions_info): Rename to ...
2517 (info_functions_command): ... this.
2518 (types_info): Rename to ...
2519 (info_types_command): ... this.
2520 (_initialize_symtab): Adjust.
2521 * target.c (target_info): Rename to ...
2522 (info_target_command): ... this.
2523 (initialize_targets): Adjust.
2524 * tracepoint.c (tvariables_info): Rename to ...
2525 (info_tvariables_command): ... this.
2526 (scope_info): Rename to ...
2527 (info_scope_command): ... this.
2528 (trace_dump_actions): Adjust.
2529 (_initialize_tracepoint): Adjust.
2530
2531 2017-08-22 Tom Tromey <tom@tromey.com>
2532
2533 * breakpoint.h (install_breakpoint): Update.
2534 * breakpoint.c (add_solib_catchpoint): Update.
2535 (install_breakpoint): Change argument to a std::unique_ptr.
2536 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2537 (create_breakpoint_sal, create_breakpoint): Update.
2538 (watch_command_1, catch_exec_command_1)
2539 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2540 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2541 Return the breakpoint.
2542 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2543 (new_single_step_breakpoint): Update.
2544 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2545 std::unique_ptr.
2546 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2547 std::unique_ptr.
2548 * break-catch-sig.c (create_signal_catchpoint): Use
2549 std::unique_ptr.
2550 * ada-lang.c (create_ada_exception_catchpoint): Use
2551 std::unique_ptr.
2552
2553 2017-08-22 Tom Tromey <tom@tromey.com>
2554
2555 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2556
2557 2017-08-22 Tom Tromey <tom@tromey.com>
2558
2559 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2560 (lookup_partial_symbol): Update.
2561
2562 2017-08-22 Tom Tromey <tom@tromey.com>
2563
2564 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2565 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2566 (find_and_open_source, symtab_to_fullname): Update.
2567 * psymtab.c (psymtab_to_fullname): Update.
2568
2569 2017-08-22 Tom Tromey <tom@tromey.com>
2570
2571 * exec.c (exec_file_attach): Update.
2572 * linux-thread-db.c (try_thread_db_load): Update.
2573 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2574 * utils.c (gdb_realpath): Change return type.
2575 (gdb_realpath_keepfile): Update.
2576 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2577 (_initialize_utils): Register the new self test.
2578 * source.c (openp): Update.
2579 (find_and_open_source): Update.
2580 * nto-tdep.c (nto_find_and_open_solib): Update.
2581 * main.c (set_gdb_data_directory): Update.
2582 (captured_main_1): Update.
2583 * dwarf2read.c (dwarf2_get_dwz_file): Update
2584 (dw2_map_symbol_filenames): Update.
2585 * auto-load.c (auto_load_safe_path_vec_update): Update.
2586 (filename_is_in_auto_load_safe_path_vec): Change type of
2587 "filename_realp".
2588 (auto_load_objfile_script): Update.
2589 (file_is_auto_load_safe): Update. Use std::string.
2590 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2591
2592 2017-08-22 Tom Tromey <tom@tromey.com>
2593
2594 * utils.c (gdb_realpath_keepfile): Return a
2595 gdb::unique_xmalloc_ptr.
2596 * exec.c (exec_file_attach): Update.
2597 * utils.h (gdb_realpath_keepfile): Return a
2598 gdb::unique_xmalloc_ptr.
2599
2600 2017-08-22 Tom Tromey <tom@tromey.com>
2601
2602 * compile/compile.c (compile_file_command): Use
2603 gdb::unique_xmalloc_ptr, std::string.
2604 * utils.c (gdb_abspath): Change return type.
2605 * source.c (openp): Update.
2606 * objfiles.c (allocate_objfile): Update.
2607 * main.c (set_gdb_data_directory): Update.
2608 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2609
2610 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2611
2612 * cli-cmds.c (list_commands): List actual code around more than
2613 one location.
2614
2615 2017-08-21 John Baldwin <jhb@FreeBSD.org>
2616
2617 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2618
2619 2017-08-21 Pedro Alves <palves@redhat.com>
2620
2621 PR gdb/19487
2622 * c-exp.y (variable production): Handle function aliases.
2623 * minsyms.c (msymbol_is_text): New function.
2624 * minsyms.h (msymbol_is_text): Declare.
2625 * symtab.c (find_function_alias_target): New function.
2626 * symtab.h (find_function_alias_target): Declare.
2627
2628 2017-08-21 Pedro Alves <palves@redhat.com>
2629
2630 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2631 typedefs.
2632 * typeprint.c (whatis_exp): If handling "whatis", and expression
2633 is OP_TYPE, strip one typedef level. Otherwise don't strip
2634 typedefs here.
2635 * valops.c (value_cast): Save "to" type before resolving
2636 stubs/typedefs. Use that type as resulting value's type.
2637
2638 2017-08-18 Tom Tromey <tom@tromey.com>
2639 Pedro Alves <palves@redhat.com>
2640
2641 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2642 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2643 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2644 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2645 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2646 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2647 (linux_get_siginfo_data): Add "thread" argument. Use
2648 scoped_restore.
2649 * linux-nat.c (linux_child_follow_fork)
2650 (check_stopped_by_watchpoint): Use scoped_restore.
2651 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2652 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2653 (restore_inferior_ptid, save_inferior_ptid): Remove.
2654 * btrace.c (btrace_fetch): Use scoped_restore.
2655 * bsd-uthread.c (bsd_uthread_fetch_registers)
2656 (bsd_uthread_store_registers): Use scoped_restore.
2657 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2658 scoped_restore.
2659 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2660 (aix_thread_xfer_partial): Use scoped_restore.
2661 * inferior.h (save_inferior_ptid): Remove.
2662
2663 2017-08-18 Yao Qi <yao.qi@linaro.org>
2664
2665 PR tdep/21818
2666 * arm-tdep.c (gdb_print_insn_arm): Mark
2667 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2668
2669 2017-08-18 Yao Qi <yao.qi@linaro.org>
2670
2671 * NEWS: Mention GDBserver's new option "--selftest".
2672 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2673 * selftest.c: Move it to common/selftest.c.
2674 * selftest.h: Move it to common/selftest.h.
2675 * selftest-arch.c (reset): New function.
2676 (tests_with_arch): Call reset.
2677
2678 2017-08-18 Yao Qi <yao.qi@linaro.org>
2679
2680 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2681 instead of exception_fprintf and printf_filtered.
2682
2683 2017-08-18 Yao Qi <yao.qi@linaro.org>
2684
2685 * selftest.c (register_self_test): Rename it to
2686 selftests::register_test.
2687 (run_self_tests): selftest::run_tests.
2688 * selftest.h: Update declarations.
2689 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2690 selftests::register_test_foreach_arch.
2691 * selftest-arch.h: Update declaration.
2692 * aarch64-tdep.c: Update.
2693 * arm-tdep.c: Likewise.
2694 * disasm-selftests.c: Likewise.
2695 * dwarf2loc.c: Likewise.
2696 * dwarf2-frame.c: Likewise.
2697 * findvar.c: Likewise.
2698 * gdbarch-selftests.c: Likewise.
2699 * maint.c (maintenance_selftest): Likewise.
2700 * regcache.c: Likewise.
2701 * rust-exp.y: Likewise.
2702 * selftest-arch.c: Likewise.
2703 * unittests/environ-selftests.c: Likewise.
2704 * unittests/function-view-selftests.c: Likewise.
2705 * unittests/offset-type-selftests.c: Likewise.
2706 * unittests/optional-selftests.c: Likewise.
2707 * unittests/scoped_restore-selftests.c: Likewise.
2708 * utils-selftests.c: Likewise.
2709
2710 2017-08-17 Pedro Alves <palves@redhat.com>
2711
2712 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2713 local.
2714
2715 2017-08-17 Pedro Alves <palves@redhat.com>
2716
2717 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2718 field.
2719 (reset_die_in_process): Delete, replaced by ...
2720 (process_die_scope): ... this new class. Make it responsible for
2721 freeing cu->line_header too.
2722 (process_die): Use process_die_scope.
2723 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2724 cu->line_header_die_owner. Don't release the line header if it's
2725 owned by the CU.
2726 (setup_type_unit_groups): Make the CU/DIE own the line header.
2727 Don't release the line header here.
2728
2729 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2730
2731 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2732
2733 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2734
2735 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2736 Single-Key mode
2737
2738 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2739
2740 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2741 mode command list.
2742
2743 2017-08-15 Stafford Horne <shorne@gmail.com>
2744
2745 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2746
2747 2017-08-15 Stafford Horne <shorne@gmail.com>
2748
2749 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2750
2751 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2752
2753 PR gdb/21954
2754 * infcmd.c (unset_environment_command): Use the 'clear' method on
2755 the environment instead of resetting it.
2756
2757 2017-08-15 John Baldwin <jhb@FreeBSD.org>
2758
2759 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2760 platforms.
2761
2762 2017-08-14 Tom Tromey <tom@tromey.com>
2763
2764 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2765 (print_binary_chars): Likewise.
2766 (BITS_IN_BYTES): Remove.
2767
2768 2017-08-14 Tom Tromey <tom@tromey.com>
2769
2770 PR gdb/21675
2771 * valprint.c (LOW_ZERO): Change value to 034.
2772 (print_octal_chars): Add static_asserts for octal constants.
2773 * printcmd.c (print_scalar_formatted): Add 'd' case.
2774
2775 2017-08-11 Tom Tromey <tom@tromey.com>
2776
2777 * symfile.c (add_symbol_file_command): Use std::vector.
2778
2779 2017-08-14 Tom Tromey <tom@tromey.com>
2780
2781 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2782 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2783 std::move.
2784 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2785
2786 2017-08-11 Pedro Alves <palves@redhat.com>
2787
2788 * infrun.c (process_event_stop_test): Adjust
2789 function_name_is_marked_for_skip call.
2790 * skip.c: Include <list>.
2791 (skiplist_entry): Make it a class with private fields, and
2792 getters/setters.
2793 (skiplist_entry_chain): Delete.
2794 (skiplist_entries): New.
2795 (skiplist_entry_count): Delete.
2796 (highest_skiplist_entry_num): New.
2797 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2798 (add_skiplist_entry): Delete.
2799 (skiplist_entry::skiplist_entry): New.
2800 (skiplist_entry::add_entry): New.
2801 (skip_file_command, skip_function): Adjust.
2802 (compile_skip_regexp): Delete.
2803 (skip_command): Don't compile regexp here. Adjust to use
2804 skiplist_entry::add_entry.
2805 (skip_info): Adjust to use range-for and getters.
2806 (skip_enable_command, skip_disable_command): Adjust to use
2807 range-for and setters.
2808 (skip_delete_command): Adjust to use std::list.
2809 (add_skiplist_entry): Delete.
2810 (skip_file_p): Delete, refactored as ...
2811 (skiplist_entry::do_skip_file_p): ... this new method.
2812 (skip_gfile_p): Delete, refactored as ...
2813 (skiplist_entry::do_gskip_file_p): ... this new method.
2814 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2815 (skiplist_entry::skip_function_p): ... this new method.
2816 (function_name_is_marked_for_skip): Now returns bool, and takes
2817 the function sal by const reference. Adjust to use range-for and
2818 skiplist_entry methods.
2819 (_initialize_step_skip): Remove references to
2820 skiplist_entry_chain, skiplist_entry_count.
2821 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2822 takes the function sal by const reference.
2823
2824 2017-08-11 Yao Qi <yao.qi@linaro.org>
2825
2826 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2827 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2828 (dwarf2_frame_cache):
2829 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2830 RETURN_MASK_ALL and set *this_case to NULL.
2831 * frame-unwind.h: Update comments.
2832
2833 2017-08-11 Yao Qi <yao.qi@linaro.org>
2834
2835 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
2836 (dwarf2_frame_state_copy_regs): Remove.
2837 (dwarf2_frame_state_free_regs): Remove.
2838 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
2839 (dwarf2_restore_rule): Call method .alloc_regs instead of
2840 dwarf2_frame_state_alloc_regs.
2841 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
2842 constructor. Call std::move.
2843 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
2844 (dwarf2_frame_cache): Likewise.
2845
2846 [GDB_SELF_TEST]: Include selftest.h and
2847 selftest-arch.h.
2848 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
2849 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
2850 execute_cfa_program_test.
2851
2852 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
2853 copy ctor, assignment operator, move assignment.
2854 <alloc_regs>: New method.
2855 <swap>: New method.
2856 (struct dwarf2_frame_state): Delete dtor.
2857 (dwarf2_frame_state_alloc_regs): Remove declaration.
2858 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
2859 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
2860
2861 2017-08-11 Yao Qi <yao.qi@linaro.org>
2862
2863 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
2864 (dwarf2_frame_state::dwarf2_frame_state): New.
2865 (dwarf2_frame_state::~dwarf2_frame_state): New.
2866 (dwarf2_fetch_cfa_info): Update.
2867 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
2868 rather than a pointer. Update code.
2869 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
2870 dtor.
2871 <data_align, code_align, retaddr_column>: Change them to const.
2872 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
2873 to bool.
2874
2875 2017-08-11 Yao Qi <yao.qi@linaro.org>
2876
2877 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
2878 <loc.exp>: New field.
2879 * dwarf2-frame.c (execute_cfa_program): Update.
2880 (dwarf2_frame_prev_register): Update.
2881
2882 2017-08-10 Pedro Alves <palves@redhat.com>
2883
2884 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
2885
2886 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2887
2888 * fbsd-nat.c (struct fbsd_fork_info): Remove.
2889 (fbsd_pending_children): Use std::list.
2890 (fbsd_remember_child): Likewise.
2891 (fbsd_is_child_pending): Likewise.
2892 (fbsd_pending_vfork_done): Use std::forward_list.
2893 (fbsd_add_vfork_done): Likewise.
2894 (fbsd_is_vfork_done_pending): Likewise.
2895 (fbsd_next_vfork_done): Likewise.
2896
2897 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2898
2899 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
2900 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
2901 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
2902 for `mapfilename'.
2903 (fbsd_xfer_partial): Use gdb::byte_vector.
2904 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
2905
2906 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2907
2908 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
2909 "filestuff.h".
2910 (fbsd_find_memory_regions): Fix `mapfile' initialization.
2911
2912 2017-08-09 Tom Tromey <tom@tromey.com>
2913
2914 * skip.c (skiplist_entry): New constructor.
2915 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
2916 (skiplist_entry::file_is_glob): Now bool.
2917 (skiplist_entry::file, skiplist_entry::function): Now
2918 std::string.
2919 (make_skip_entry): Return a unique_ptr. Use new.
2920 (free_skiplist_entry, free_skiplist_entry_cleanup)
2921 (make_free_skiplist_entry_cleanup): Remove.
2922 (skip_command, skip_disable_command, add_skiplist_entry)
2923 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
2924 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
2925 (function_name_is_marked_for_skip): Update.
2926 (skip_delete_command): Update. Use delete.
2927
2928 2017-08-09 Jiong Wang <jiong.wang@arm.com>
2929
2930 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
2931 (aarch64_linux_core_read_description): New function.
2932 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
2933
2934 2017-08-09 Pedro Alves <palves@redhat.com>
2935
2936 * cp-name-parser.y (cp_comp_to_string): Return a
2937 gdb::unique_xmalloc_ptr<char>.
2938 * cp-support.c (replace_typedefs_qualified_name)
2939 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
2940 (cp_canonicalize_string_full): Use op= instead of explicit
2941 convertion.
2942 (cp_class_name_from_physname, method_name_from_physname)
2943 (cp_func_name, cp_remove_params): Adjust to use
2944 gdb::unique_xmalloc_ptr<char>.
2945 * cp-support.h (cp_comp_to_string): Return a
2946 gdb::unique_xmalloc_ptr<char>.
2947 * python/py-type.c (typy_lookup_type): Adjust to use
2948 gdb::unique_xmalloc_ptr<char>.
2949
2950 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
2951
2952 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
2953
2954 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
2955 Yao Qi <yao.qi@linaro.org>
2956
2957 * cp-support.c (cp_canonicalize_string_full): Use
2958 gdb::unique_xmalloc_ptr<char>.
2959 (cp_canonicalize_string): Likewise.
2960
2961 2017-08-09 Yao Qi <yao.qi@linaro.org>
2962
2963 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
2964 * regformats/i386/amd64-avx-avx512.dat: Remove.
2965 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
2966 * regformats/i386/amd64-avx-mpx.dat:Remove.
2967 * regformats/i386/amd64-avx.dat: Remove.
2968 * regformats/i386/amd64-mpx.dat: Remove.
2969 * regformats/i386/i386-avx-avx512.dat: Remove.
2970 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
2971 * regformats/i386/i386-avx-mpx.dat: Remove.
2972 * regformats/i386/i386-mmx.dat: Remove.
2973 * regformats/i386/i386-mpx.dat: Remove.
2974
2975 2017-08-09 Yao Qi <yao.qi@linaro.org>
2976
2977 * amd64-tdep.h (tdesc_x32): Remove the declaration.
2978 * amd64-tdep.c: Don't include features/i386/x32*.c.
2979 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
2980 functions.
2981 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
2982 and i386/x32-avx-avx512.
2983 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
2984 and i386/x32.xml.
2985 * features/i386/x32-avx-avx512.c: Removed.
2986 * features/i386/x32-avx-avx512.xml: Removed.
2987 * features/i386/x32-avx.c: Removed.
2988 * features/i386/x32-avx.xml: Removed.
2989 * features/i386/x32.c: Removed.
2990 * features/i386/x32.xml: Removed.
2991 * regformats/i386/x32-avx-avx512.dat: Removed.
2992 * regformats/i386/x32-avx.dat: Removed.
2993 * regformats/i386/x32.dat: Removed.
2994
2995 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2996
2997 PR breakpoints/21886
2998 * mem-break.c (default_memory_insert_breakpoint): Use
2999 `->placed_address' rather than `->reqstd_address' for the
3000 breakpoint location.
3001
3002 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3003
3004 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3005 assertions.
3006
3007 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3008
3009 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3010 a union of `tdep_info', `tdesc_data' and `id'.
3011 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3012 rather than `info.tdep_info'.
3013 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3014 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3015 * i386-tdep.c (i386_gdbarch_init): Likewise.
3016 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3017 * mips-tdep.c (mips_gdbarch_init): Likewise.
3018 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3019 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3020 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3021 `info.tdep_info'.
3022 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3023 `info.tdep_info'.
3024 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3025 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3026 `info.tdep_info'.
3027 * spu-tdep.c (spu_gdbarch_init): Likewise.
3028 * gdbarch.h: Regenerate.
3029
3030 2017-08-07 Leszek Swirski <leszeks@google.com>
3031
3032 PR symtab/20899
3033 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3034
3035 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3036
3037 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3038 (gdbsim_open): Rename gdb_argv args object to argv.
3039
3040 2017-08-05 Tom Tromey <tom@tromey.com>
3041
3042 * compile/compile-object-load.c (compile_object_load): Use
3043 gdb::unique_xmalloc_ptr.
3044 * cli/cli-dump.c (scan_filename): Rename from
3045 scan_filename_with_cleanup. Change return type.
3046 (scan_expression): Rename from scan_expression_with_cleanup.
3047 Change return type.
3048 (dump_memory_to_file, dump_value_to_file, restore_command):
3049 Use gdb::unique_xmalloc_ptr. Update.
3050 * cli/cli-cmds.c (find_and_open_script): Use
3051 gdb::unique_xmalloc_ptr.
3052 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3053 * symmisc.c (maintenance_print_symbols)
3054 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3055 * symfile.c (symfile_bfd_open, generic_load)
3056 (add_symbol_file_command, remove_symbol_file_command): Use
3057 gdb::unique_xmalloc_ptr.
3058 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3059 * psymtab.c (maintenance_print_psymbols): Use
3060 gdb::unique_xmalloc_ptr.
3061 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3062 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3063 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3064 (reload_shared_libraries_1): Likewise.
3065
3066 2017-08-05 Tom Tromey <tom@tromey.com>
3067
3068 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3069 (rust_op_vector, rust_set_vector): New typedefs.
3070 (current_parser): New global.
3071 (work_obstack): Change to pointer type. Update all users.
3072 (rust_ast, pstate): Remove globals.
3073 (struct rust_parser): New.
3074 (%union) <params, field_inits>: Change type.
3075 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3076 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3077 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3078 (convert_params_to_types, convert_params_to_expression): Change
3079 type of "params".
3080 (ast_string): Change type of "fields".
3081 (rust_parse): Make a rust_parser. Remove cleanups.
3082 (rust_lex_tests): Make and install an auto_obstack.
3083
3084 2017-08-04 Yao Qi <yao.qi@linaro.org>
3085
3086 * configure.srv (ipa_x32_linux_regobj): New.
3087 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3088 instead of X86_TDESC_AVX512.
3089 (initialize_low_tracepoint): Call
3090 init_registers_x32_avx_avx512_linux.
3091
3092 2017-08-04 Yao Qi <yao.qi@linaro.org>
3093
3094 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3095
3096 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3097
3098 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3099
3100 2017-08-03 Tom Tromey <tom@tromey.com>
3101
3102 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3103 Remove.
3104 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3105
3106 2017-08-03 Tom Tromey <tom@tromey.com>
3107
3108 * python/py-param.c (compute_enum_values): Use gdb_argv.
3109
3110 2017-08-03 Tom Tromey <tom@tromey.com>
3111
3112 * utils.h (struct gdb_argv_deleter): New.
3113 (gdb_argv): New class.
3114 * utils.c (gdb_argv::reset): New method.
3115 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3116 * tracefile.c (tsave_command): Use gdb_argv.
3117 * top.c (new_ui_command): Use gdb_argv.
3118 * symmisc.c (maintenance_print_symbols)
3119 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3120 * symfile.c (symbol_file_command, generic_load)
3121 (remove_symbol_file_command): Use gdb_argv.
3122 * stack.c (backtrace_command): Use gdb_argv.
3123 * source.c (add_path, show_substitute_path_command)
3124 (unset_substitute_path_command, set_substitute_path_command):
3125 Use gdb_argv.
3126 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3127 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3128 * remote.c (extended_remote_run, remote_put_command)
3129 (remote_get_command, remote_delete_command): Use gdb_argv.
3130 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3131 (gdbsim_open): Use gdb_argv.
3132 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3133 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3134 * procfs.c (procfs_info_proc): Use gdb_argv.
3135 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3136 * infrun.c (handle_command): Use gdb_argv.
3137 * inferior.c (add_inferior_command, clone_inferior_command):
3138 Use gdb_argv.
3139 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3140 * exec.c (exec_file_command): Use gdb_argv.
3141 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3142 * compile/compile.c (build_argc_argv): Use gdb_argv.
3143
3144 2017-08-03 Tom Tromey <tom@tromey.com>
3145
3146 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3147
3148 2017-08-03 Tom Tromey <tom@tromey.com>
3149
3150 * python/python.c (compute_python_string): Return std::string.
3151 (gdbpy_eval_from_control_command): Update.
3152 (do_start_initialization): Use std::string.
3153 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3154 xstrprintf.
3155 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3156 xstrprintf.
3157
3158 2017-08-03 Tom Tromey <tom@tromey.com>
3159
3160 * top.h (do_restore_instream_cleanup): Remove.
3161 * top.c (do_restore_instream_cleanup): Remove.
3162 (read_command_file): Use scoped_restore.
3163 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3164
3165 2017-08-03 Tom Tromey <tom@tromey.com>
3166
3167 * cli/cli-script.c (execute_user_command)
3168 (execute_control_command): Use scoped_restore.
3169
3170 2017-08-03 Tom Tromey <tom@tromey.com>
3171
3172 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3173 (execute_user_command): Remove user_call_depth; use
3174 user_args_stack's size instead.
3175
3176 2017-08-03 Tom Tromey <tom@tromey.com>
3177
3178 * top.h (in_user_command): Remove.
3179 * top.c (in_user_command): Remove.
3180 * cli/cli-script.c (do_restore_user_call_depth)
3181 (execute_user_command): Update.
3182
3183 2017-08-03 Tom Tromey <tom@tromey.com>
3184
3185 * valops.c (search_struct_method): Use gdb::byte_vector.
3186 * valarith.c (value_concat): Use std::vector.
3187 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3188 (simple_search_memory): Likewise.
3189 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3190 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3191 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3192 * elfread.c (elf_rel_plt_read): Use std::string.
3193 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3194 * cli/cli-dump.c (restore_section_callback): Use
3195 gdb::byte_vector.
3196
3197 2017-08-03 Tom Tromey <tom@tromey.com>
3198
3199 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3200
3201 2017-08-03 Tom Tromey <tom@tromey.com>
3202
3203 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3204 (tui_register_format): Use scoped_restore.
3205
3206 2017-08-03 Tom Tromey <tom@tromey.com>
3207
3208 * reverse.c (exec_direction_default): Remove.
3209 (exec_reverse_once): Use scoped_restore.
3210 * remote.c (restore_remote_timeout): Remove.
3211 (remote_flash_erase, remote_flash_write, remote_flash_done)
3212 (readchar, remote_serial_write): Use scoped_restore.
3213 * cli/cli-script.c (struct source_cleanup_lines_args)
3214 (source_cleanup_lines): Remove.
3215 (script_from_file): Use scoped_restore.
3216 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3217 (source_command): Use scoped_restore.
3218
3219 2017-08-03 Tom Tromey <tom@tromey.com>
3220
3221 * utils.h (make_cleanup_free_so): Remove.
3222 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3223 * solist.h (struct so_deleter): New.
3224 (so_list_up): New typedef.
3225 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3226
3227 2017-08-03 Tom Tromey <tom@tromey.com>
3228
3229 * utils.h (make_cleanup_restore_current_language): Remove.
3230 * utils.c (do_restore_current_language)
3231 (make_cleanup_restore_current_language): Remove.
3232 * parse.c (parse_exp_in_context_1)
3233 (parse_expression_with_language): Use
3234 scoped_restore_current_language.
3235 * mi/mi-main.c (mi_cmd_execute): Use
3236 scoped_restore_current_language.
3237 * language.h (scoped_restore_current_language): New class.
3238
3239 2017-08-03 Tom Tromey <tom@tromey.com>
3240
3241 * compile/compile.c (cleanup_unlink_file): Remove.
3242 (compile_to_object): Use gdb::unlinker.
3243 (eval_compile_command): Likewise.
3244
3245 2017-08-03 Tom Tromey <tom@tromey.com>
3246
3247 * utils.h (make_cleanup_fclose): Remove.
3248 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3249
3250 2017-08-03 Tom Tromey <tom@tromey.com>
3251
3252 * top.c (open_terminal_stream): Return gdb_file_up.
3253 (new_ui_command): Update.
3254
3255 2017-08-03 Tom Tromey <tom@tromey.com>
3256
3257 * source.c (print_source_lines_base, forward_search_command)
3258 (reverse_search_command): Use gdb_file_up.
3259
3260 2017-08-03 Tom Tromey <tom@tromey.com>
3261
3262 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3263
3264 2017-08-03 Tom Tromey <tom@tromey.com>
3265
3266 * cli/cli-cmds.c (find_and_open_script): Change return type.
3267 Remove "streamp" and "full_path" parameters.
3268 (source_script_with_search): Update.
3269 * auto-load.c (source_script_file): Update.
3270 * cli/cli-cmds.h (find_and_open_script): Change type.
3271 (open_script): New struct.
3272
3273 2017-08-03 Tom Tromey <tom@tromey.com>
3274
3275 * xml-support.c (xml_fetch_content_from_file): Update.
3276 * ui-file.c (stdio_file::open): Update.
3277 * tracefile-tfile.c (tfile_start): Update.
3278 * remote.c (remote_file_put, remote_file_get): Update.
3279 * nat/linux-procfs.c (linux_proc_get_int)
3280 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3281 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3282 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3283 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3284 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3285 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3286 * linux-nat.c (linux_proc_pending_signals): Update.
3287 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3288 (file_closer): Remove.
3289 * compile/compile.c (compile_to_object): Update.
3290 * common/filestuff.h (struct gdb_file_deleter): New.
3291 (gdb_file_up): New typedef.
3292 (gdb_fopen_cloexec): Change return type.
3293 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3294 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3295 (dump_binary_file, restore_binary_file): Update.
3296 * auto-load.c (auto_load_objfile_script_1): Update.
3297
3298 2017-08-03 Tom Tromey <tom@tromey.com>
3299
3300 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3301 (info_static_tracepoint_markers_command): Likewise.
3302 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3303 * skip.c (skip_info): Use ui_out_emit_table.
3304 * progspace.c (print_program_space): Use ui_out_emit_table.
3305 * osdata.c (info_osdata): Use ui_out_emit_table.
3306 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3307 ui_out_emit_table.
3308 * linux-thread-db.c (info_auto_load_libthread_db): Use
3309 ui_out_emit_table.
3310 * inferior.c (print_inferior): Use ui_out_emit_table.
3311 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3312 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3313 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3314 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3315 * ui-out.h (class ui_out_emit_table): New.
3316
3317 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3318
3319 * mips-tdep.c (mips_fpu_type_str): New function.
3320 (mips_dump_tdep): Call it.
3321
3322 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3323
3324 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3325 `->mips_fpu_type'.
3326
3327 2017-07-31 Xavier Roirand <roirand@adacore.com>
3328
3329 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3330
3331 2017-07-27 Xavier Roirand <roirand@adacore.com>
3332
3333 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3334
3335 2017-07-26 Yao Qi <yao.qi@linaro.org>
3336
3337 * cli/cli-cmds.c (maintenancechecklist): New variable.
3338 * gdbcmd.h (maintenancechecklist): Declare it.
3339 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3340 Call i386_linux_read_description with different masks.
3341 * maint.c (maintenance_check_command): New function.
3342 (_initialize_maint_cmds): Call add_prefix_cmd.
3343 * target-descriptions.c (tdesc_reg): override operator != and ==.
3344 (tdesc_type): Likewise.
3345 (tdesc_feature): Likewise.
3346 (target_desc): Likewise.
3347 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3348 (maintenance_check_xml_descriptions): New function.
3349 (_initialize_target_descriptions) Add command "xml-descriptions".
3350 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3351
3352 2017-07-26 Yao Qi <yao.qi@linaro.org>
3353
3354 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3355 Include features/i386/32bit-*.c.
3356 (i386_linux_read_description): Generate target description if it
3357 doesn't exist.
3358 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3359 functions.
3360 * features/i386/32bit-linux.c: Re-generated.
3361 * features/i386/32bit-sse.c: Likewise.
3362 * target-descriptions.c (print_c_feature::visit): Print code to
3363 set register number if needed.
3364 (print_c_feature) <m_next_regnum>: New field.
3365
3366 2017-07-26 Yao Qi <yao.qi@linaro.org>
3367
3368 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3369 (FEATURE_XMLFILES): New.
3370 (FEATURE_CFILES): New.
3371 New rules.
3372 (clean-cfiles): Remove generated c files.
3373 * features/i386/32bit-avx.c: Generated.
3374 * features/i386/32bit-avx512.c: Generated.
3375 * features/i386/32bit-core.c: Generated.
3376 * features/i386/32bit-linux.c: Generated.
3377 * features/i386/32bit-mpx.c: Generated.
3378 * features/i386/32bit-pkeys.c: Generated.
3379 * features/i386/32bit-sse.c: Generated.
3380 * target-descriptions.c: Include algorithm.
3381 (tdesc_element_visitor): Add method visit_end.
3382 (print_c_tdesc): Implement visit_end.
3383 (print_c_tdesc:: m_filename_after_features): Move it to
3384 protected.
3385 (print_c_feature): New class.
3386 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3387 name starts with "i386/32bit-".
3388
3389 2017-07-26 Yao Qi <yao.qi@linaro.org>
3390
3391 * target-descriptions.c (tdesc_element_visitor): New class.
3392 (tdesc_element): New class.
3393 (tdesc_reg): Inherit from tdesc_element.
3394 (tdesc_reg::accept): New function.
3395 (tdesc_type): Inherit from tdesc_element.
3396 (tdesc_type::accept): New function.
3397 (tdesc_feature): Inherit from tdesc_element.
3398 (tdesc_feature::accept): New function.
3399 (target_desc): Inherit from tdesc_element.
3400 (target_desc::target_desc): New.
3401 (target_desc::~target_desc): New.
3402 (target_desc::accept): New.
3403 (allocate_target_description): Use new.
3404 (free_target_description): Use delete.
3405 (print_c_tdesc): New class.
3406 (maint_print_c_tdesc_cmd): Adjust.
3407
3408 * features/aarch64.c: Re-generated.
3409 * features/arc-arcompact.c: Re-generated.
3410 * features/arc-v2.c: Re-generated.
3411 * features/arm/arm-with-iwmmxt.c: Re-generated.
3412 * features/arm/arm-with-m.c: Re-generated.
3413 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3414 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3415 * features/arm/arm-with-neon.c: Re-generated.
3416 * features/arm/arm-with-vfpv2.c: Re-generated.
3417 * features/arm/arm-with-vfpv3.c: Re-generated.
3418 * features/i386/amd64-avx-avx512.c: Re-generated.
3419 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3420 * features/i386/amd64-avx.c: Re-generated.
3421 * features/i386/amd64-avx-linux.c: Re-generated.
3422 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3423 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3424 * features/i386/amd64-avx-mpx.c: Re-generated.
3425 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3426 * features/i386/amd64.c: Re-generated.
3427 * features/i386/amd64-linux.c: Re-generated.
3428 * features/i386/amd64-mpx.c: Re-generated.
3429 * features/i386/amd64-mpx-linux.c: Re-generated.
3430 * features/i386/i386-avx-avx512.c: Re-generated.
3431 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3432 * features/i386/i386-avx.c: Re-generated.
3433 * features/i386/i386-avx-linux.c: Re-generated.
3434 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3435 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3436 * features/i386/i386-avx-mpx.c: Re-generated.
3437 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3438 * features/i386/i386.c: Re-generated.
3439 * features/i386/i386-linux.c: Re-generated.
3440 * features/i386/i386-mmx.c: Re-generated.
3441 * features/i386/i386-mmx-linux.c: Re-generated.
3442 * features/i386/i386-mpx.c: Re-generated.
3443 * features/i386/i386-mpx-linux.c: Re-generated.
3444 * features/i386/x32-avx-avx512.c: Re-generated.
3445 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3446 * features/i386/x32-avx.c: Re-generated.
3447 * features/i386/x32-avx-linux.c: Re-generated.
3448 * features/i386/x32.c: Re-generated.
3449 * features/i386/x32-linux.c: Re-generated.
3450 * features/microblaze.c: Re-generated.
3451 * features/microblaze-with-stack-protect.c: Re-generated.
3452 * features/mips64-dsp-linux.c: Re-generated.
3453 * features/mips64-linux.c: Re-generated.
3454 * features/mips-dsp-linux.c: Re-generated.
3455 * features/mips-linux.c: Re-generated.
3456 * features/nds32.c: Re-generated.
3457 * features/nios2.c: Re-generated.
3458 * features/nios2-linux.c: Re-generated.
3459 * features/rs6000/powerpc-32.c: Re-generated.
3460 * features/rs6000/powerpc-32l.c: Re-generated.
3461 * features/rs6000/powerpc-403.c: Re-generated.
3462 * features/rs6000/powerpc-403gc.c : Re-generated.
3463 * features/rs6000/powerpc-405.c: Re-generated.
3464 * features/rs6000/powerpc-505.c: Re-generated.
3465 * features/rs6000/powerpc-601.c: Re-generated.
3466 * features/rs6000/powerpc-602.c: Re-generated.
3467 * features/rs6000/powerpc-603.c: Re-generated.
3468 * features/rs6000/powerpc-604.c: Re-generated.
3469 * features/rs6000/powerpc-64.c: Re-generated.
3470 * features/rs6000/powerpc-64l.c: Re-generated.
3471 * features/rs6000/powerpc-7400.c: Re-generated.
3472 * features/rs6000/powerpc-750.c: Re-generated.
3473 * features/rs6000/powerpc-860.c: Re-generated.
3474 * features/rs6000/powerpc-altivec32.c: Re-generated.
3475 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3476 * features/rs6000/powerpc-altivec64.c: Re-generated.
3477 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3478 * features/rs6000/powerpc-cell32l.c: Re-generated.
3479 * features/rs6000/powerpc-cell64l.c: Re-generated.
3480 * features/rs6000/powerpc-e500.c: Re-generated.
3481 * features/rs6000/powerpc-e500l.c: Re-generated.
3482 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3483 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3484 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3485 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3486 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3487 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3488 * features/rs6000/powerpc-vsx32.c: Re-generated.
3489 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3490 * features/rs6000/powerpc-vsx64.c: Re-generated.
3491 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3492 * features/rs6000/rs6000.c: Re-generated.
3493 * features/s390-linux32.c: Re-generated.
3494 * features/s390-linux32v1.c: Re-generated.
3495 * features/s390-linux32v2.c: Re-generated.
3496 * features/s390-linux64.c: Re-generated.
3497 * features/s390-linux64v1.c: Re-generated.
3498 * features/s390-linux64v2.c: Re-generated.
3499 * features/s390-te-linux64.c: Re-generated.
3500 * features/s390-tevx-linux64.c: Re-generated.
3501 * features/s390-vx-linux64.c: Re-generated.
3502 * features/s390x-linux64.c: Re-generated.
3503 * features/s390x-linux64v1.c: Re-generated.
3504 * features/s390x-linux64v2.c: Re-generated.
3505 * features/s390x-te-linux64.c: Re-generated.
3506 * features/s390x-tevx-linux64.c: Re-generated.
3507 * features/s390x-vx-linux64.c: Re-generated.
3508 * features/sparc/sparc32-solaris.c: Re-generated.
3509 * features/sparc/sparc64-solaris.c: Re-generated.
3510 * features/tic6x-c62x.c: Re-generated.
3511 * features/tic6x-c62x-linux.c: Re-generated.
3512 * features/tic6x-c64x.c: Re-generated.
3513 * features/tic6x-c64x-linux.c: Re-generated.
3514 * features/tic6x-c64xp.c: Re-generated.
3515 * features/tic6x-c64xp-linux.c: Re-generated.
3516
3517 2017-07-26 Yao Qi <yao.qi@linaro.org>
3518
3519 * i386-linux-tdep.c (i386_linux_read_description): New function.
3520 (i386_linux_core_read_description): Call
3521 i386_linux_read_description.
3522 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3523 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3524 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3525 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3526 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3527 * x86-linux-nat.c (x86_linux_read_description): Call
3528 i386_linux_read_description.
3529
3530 2017-07-26 Yao Qi <yao.qi@linaro.org>
3531
3532 * NEWS: Mention it.
3533 * features/Makefile (%.c: %.xml): Pass the xml file name to
3534 command "maint print c-tdesc".
3535 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3536 name from 'arg'.
3537
3538 2017-07-26 Yao Qi <yao.qi@linaro.org>
3539
3540 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3541 in-class initialization.
3542 (tdesc_create_feature): Call new instead of XCNEW.
3543 (free_target_description): Ue delete.
3544
3545 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3546
3547 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3548
3549 2017-07-25 Yao Qi <yao.qi@linaro.org>
3550
3551 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3552 constant.
3553 (amd64_x32_init_abi): Likewise.
3554 * amd64-tdep.h (amd64_init_abi): Update declaration.
3555 (amd64_x32_init_abi): Likewise.
3556
3557 2017-07-25 Yao Qi <yao.qi@linaro.org>
3558
3559 PR tdep/21717
3560 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3561 condition for FPSCR.
3562 (arm_linux_store_inferior_registers): Likewise.
3563
3564 2017-07-22 Tom Tromey <tom@tromey.com>
3565
3566 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3567 <syscalls_counts>: Now a std::vector.
3568 (get_catch_syscall_inferior_data): Use "new".
3569 (catch_syscall_inferior_data_cleanup): Use "delete".
3570 (insert_catch_syscall, remove_catch_syscall)
3571 (clear_syscall_counts): Update.
3572
3573 2017-07-22 Tom Tromey <tom@tromey.com>
3574
3575 * break-catch-syscall.c (syscall_catchpoint)
3576 <syscalls_to_be_caught>: Now a std::vector<int>
3577 (~syscall_catchpoint): Remove.
3578 (insert_catch_syscall, remove_catch_syscall)
3579 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3580 (print_mention_catch_syscall, print_recreate_catch_syscall):
3581 Update.
3582 (create_syscall_event_catchpoint): Change type of "filter"
3583 parameter.
3584 (catch_syscall_split_args): Return a std::vector.
3585 (catch_syscall_command_1, catching_syscall_number_1): Update.
3586
3587 2017-07-22 Tom Tromey <tom@tromey.com>
3588
3589 * break-catch-throw.c (struct exception_catchpoint)
3590 <exception_rx>: Now a std::string.
3591 (~exception_catchpoint): Remove.
3592 (print_one_detail_exception_catchpoint): Update.
3593 (handle_gnu_v3_exceptions): Change type of except_rx.
3594 (extract_exception_regexp): Return a std::string.
3595 (catch_exception_command_1): Update.
3596
3597 2017-07-22 Tom Tromey <tom@tromey.com>
3598
3599 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3600 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3601 std::vector.
3602 <catch_all>: Now a bool.
3603 (~signal_catchpoint): Remove.
3604 (signal_catchpoint_insert_location)
3605 (signal_catchpoint_remove_location)
3606 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3607 (signal_catchpoint_print_mention)
3608 (signal_catchpoint_print_recreate)
3609 (signal_catchpoint_explains_signal): Update.
3610 (create_signal_catchpoint): Change type of "filter" and
3611 "catch_all".
3612 (catch_signal_split_args): Return a std::vector. Change type of
3613 "catch_all".
3614 (catch_signal_command): Update.
3615
3616 2017-07-20 Pedro Alves <palves@redhat.com>
3617
3618 * ada-lang.c (ada_language_defn): Make extern.
3619 (_initialize_ada_language): Remove add_language call.
3620 * c-lang.c (c_language_defn, cplus_language_defn)
3621 (asm_language_defn, minimal_language_defn): Make extern.
3622 (_initialize_c_language): Delete.
3623 * completer.c (compare_cstrings): Delete, moved to utils.h.
3624 * d-lang.c (d_language_defn): Make extern.
3625 (_initialize_d_language): Remove add_language calls.
3626 * defs.h (enum language): Add comment.
3627 * f-lang.c (f_language_defn): Make extern.
3628 (_initialize_f_language): Remove add_language call.
3629 * go-lang.c (go_language_defn): Make extern.
3630 (_initialize_go_language): Remove add_language call.
3631 * language.c: Include <algorithm>.
3632 (languages): Redefine as const array.
3633 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3634 (set_language_command): Handle "local". Use for-range loop.
3635 (set_language): Remove loop.
3636 (language_enum): Rewrite.
3637 (language_def, language_str): Remove loops.
3638 (add_language): Delete.
3639 (add_set_language_command): New, based on add_languages.
3640 (skip_language_trampoline): Adjust.
3641 (local_language_defn): Delete.
3642 (language_gdbarch_post_init): Adjust.
3643 (_initialize_language): Remove add_language calls. Call
3644 add_set_language_command.
3645 * language.h (add_language): Delete.
3646 (auto_language_defn)
3647 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3648 (asm_language_defn, c_language_defn, cplus_language_defn)
3649 (d_language_defn, f_language_defn, go_language_defn)
3650 (m2_language_defn, objc_language_defn, opencl_language_defn)
3651 (pascal_language_defn, rust_language_defn): Declare.
3652 * m2-lang.c (m2_language_defn): Make extern.
3653 (_initialize_m2_language): Remove add_language call.
3654 * objc-lang.c (objc_language_defn): Make extern.
3655 (_initialize_objc_language): Remove add_language call.
3656 * opencl-lang.c (opencl_language_defn): Make extern.
3657 (_initialize_opencl_language): Remove add_language call.
3658 * p-lang.c (pascal_language_defn): Make extern.
3659 (_initialize_pascal_language): Delete.
3660 * rust-lang.c (rust_language_defn): Make extern.
3661 (_initialize_rust_language): Delete.
3662 * utils.h (compare_cstrings): New static inline function.
3663
3664 2017-07-20 Pedro Alves <palves@redhat.com>
3665
3666 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3667 (get_var_value): Constify parameters.
3668 (get_int_var_value): Change prototype.
3669 (to_fixed_range_type): Adjust.
3670 * ada-lang.h (get_int_var_value): Change prototype.
3671
3672 2017-07-20 Pedro Alves <palves@redhat.com>
3673
3674 * dwarf2read.c (dw2_lookup_symbol): Use
3675 SYMBOL_MATCHES_SEARCH_NAME.
3676 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3677
3678 2017-07-20 Pedro Alves <palves@redhat.com>
3679
3680 * block.c (block_iter_name_step, block_iter_name_first)
3681 (block_iter_name_next): Delete.
3682 (block_lookup_symbol_primary): Adjust to use
3683 dict_iter_match_first/dict_iter_match_next.
3684 * block.h (block_iter_name_first, block_iter_name_next): Delete
3685 declarations.
3686 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3687 dict_iter_match_first/dict_iter_match_next.
3688
3689 2017-07-20 Pedro Alves <palves@redhat.com>
3690
3691 * cp-support.c (cp_find_first_component_aux): Add missing case for
3692 end of string.
3693
3694 2017-07-18 David Blaikie <dblaikie@gmail.com>
3695
3696 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3697 of dwo_cu's dwo_file.
3698
3699 2017-07-18 Yao Qi <yao.qi@linaro.org>
3700
3701 * remote.c (store_registers_using_G): Remove one line comment.
3702
3703 2017-07-18 Yao Qi <yao.qi@linaro.org>
3704
3705 * regcache.c (regcache_cpy): Simplify it.
3706 (regcache::cpy_no_passthrough): Remove it.
3707 * regcache.h (cpy_no_passthrough): Remove it.
3708 (regcache_dup, regcache_cpy): Update comments.
3709
3710 2017-07-18 Pedro Alves <palves@redhat.com>
3711
3712 * remote-sim.c (sim_command_completer): Adjust to work with a
3713 completion_tracker instead of a VEC.
3714
3715 2017-07-17 Pedro Alves <palves@redhat.com>
3716
3717 * completer.c (complete_source_filenames): New function.
3718 (complete_address_and_linespec_locations): New function.
3719 (location_completer): Use complete_address_and_linespec_locations.
3720 (completion_tracker::build_completion_result): Honor the tracker's
3721 request to suppress append.
3722 * completer.h (completion_tracker::suppress_append_ws)
3723 (completion_tracker::set_suppress_append_ws): New methods.
3724 (completion_tracker::m_suppress_append_ws): New field.
3725 (complete_source_filenames): New declaration.
3726 * linespec.c (linespec_complete_what): New.
3727 (struct ls_parser) <complete_what, completion_word,
3728 completion_quote_char, completion_quote_end, completion_tracker>:
3729 New fields.
3730 (string_find_incomplete_keyword_at_end): New.
3731 (linespec_lexer_lex_string): Record quote char. If in completion
3732 mode, don't throw.
3733 (linespec_lexer_consume_token): Advance the completion word point.
3734 (linespec_lexer_peek_token): Save/restore completion info.
3735 (save_stream_and_consume_token): New.
3736 (set_completion_after_number): New.
3737 (linespec_parse_basic): Set what to complete next depending on
3738 token. Handle function and label completions specially.
3739 (parse_linespec): Disable objc shortcut in completion mode. Set
3740 what to complete next depending on token type. Skip keyword if in
3741 completion mode.
3742 (complete_linespec_component, linespec_complete): New.
3743 * linespec.h (linespec_complete): Declare.
3744
3745 2017-07-17 Pedro Alves <palves@redhat.com>
3746
3747 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3748 Handle 'operator<' / 'operator<<'.
3749
3750 2017-07-17 Pedro Alves <palves@redhat.com>
3751
3752 * completer.c (collect_explicit_location_matches): Handle
3753 MATCH_LABEL.
3754 (convert_explicit_location_to_linespec): New, factored out from
3755 ...
3756 (convert_explicit_location_to_sals): ... this.
3757 (complete_label): New.
3758 (linespec_complete_label, find_label_symbols_in_block): New.
3759 (find_label_symbols): Add completion_mode parameter and adjust to
3760 call find_label_symbols_in_block.
3761 * linespec.h (linespec_complete_label): Declare.
3762
3763 2017-07-17 Pedro Alves <palves@redhat.com>
3764
3765 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3766 complete_symbol_mode parameter.
3767 * cli/cli-cmds.c (complete_command): Get the completion result out
3768 of the handle_brkchars tracker if used a custom word point.
3769 * completer.c: Include "linespec.h".
3770 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3771 (advance_to_expression_complete_word_point): New.
3772 (completion_tracker::completes_to_completion_word): New.
3773 (complete_files_symbols): Pass down
3774 complete_symbol_mode::EXPRESSION.
3775 (explicit_options, probe_options): New.
3776 (collect_explicit_location_matches): Complete on the
3777 explictit_loc->foo instead of word. Use
3778 linespec_complete_function. Handle MATCH_LINE. Handle offering
3779 keyword and options completions.
3780 (backup_text_ptr): Delete.
3781 (skip_keyword): New.
3782 (complete_explicit_location): Remove 'word' parameter. Add
3783 language, quoted_arg_start and quoted_arg_end parameters.
3784 Rewrite, parsing left to right.
3785 (location_completer): Rewrite.
3786 (location_completer_handle_brkchars): New function.
3787 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3788 (enum complete_line_internal_reason): Adjust comments.
3789 (completion_tracker::discard_completions): New.
3790 (completer_handle_brkchars_func_for_completer): Handle
3791 location_completer.
3792 (gdb_custom_word_point_brkchars)
3793 (gdb_org_rl_basic_quote_characters): New.
3794 (gdb_completion_word_break_characters_throw)
3795 (completion_find_completion_word): Handle trackers that use a
3796 custom word point.
3797 (completion_tracker::advance_custom_word_point_by): New.
3798 (completion_tracker::build_completion_result): Don't rely on
3799 readline appending the quote char.
3800 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3801 use a custom word point.
3802 (gdb_rl_attempted_completion_function): Restore
3803 rl_basic_quote_characters.
3804 * completer.h (class completion_tracker): Extend intro comment.
3805 (completion_tracker::set_quote_char)
3806 (completion_tracker::quote_char)
3807 (completion_tracker::set_use_custom_word_point)
3808 (completion_tracker::use_custom_word_point)
3809 (completion_tracker::custom_word_point)
3810 (completion_tracker::set_custom_word_point)
3811 (completion_tracker::advance_custom_word_point_by)
3812 (completion_tracker::completes_to_completion_word)
3813 (completion_tracker::discard_completions): New methods.
3814 (completion_tracker::m_quote_char)
3815 (completion_tracker::m_use_custom_word_point)
3816 (completion_tracker::m_custom_word_point): New fields.
3817 (advance_to_expression_complete_word_point): Declare.
3818 * f-lang.c (f_collect_symbol_completion_matches): Add
3819 complete_symbol_mode parameter.
3820 * language.h (struct language_defn)
3821 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3822 parameter.
3823 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3824 (linespec_complete_function): New function.
3825 (linespec_lexer_lex_keyword): Adjust.
3826 * linespec.h (linespec_keywords, linespec_complete_function): New
3827 declarations.
3828 * location.c (find_end_quote): New function.
3829 (explicit_location_lex_one): Add explicit_completion_info
3830 parameter. Save quoting info. Don't throw if being called for
3831 completion. Don't handle Ada operators here.
3832 (is_cp_operator, skip_op_false_positives, first_of)
3833 (explicit_location_lex_one_function): New function.
3834 (string_to_explicit_location): Replace 'dont_throw' parameter with
3835 an explicit_completion_info pointer parameter. Handle it. Don't
3836 use explicit_location_lex_one to lex function names. Use
3837 explicit_location_lex_one_function instead.
3838 * location.h (struct explicit_completion_info): New.
3839 (string_to_explicit_location): Replace 'dont_throw' parameter with
3840 an explicit_completion_info pointer parameter.
3841 * symtab.c (default_collect_symbol_completion_matches_break_on):
3842 Add complete_symbol_mode parameter. Handle LINESPEC mode.
3843 (default_collect_symbol_completion_matches)
3844 (collect_symbol_completion_matches): Add complete_symbol_mode
3845 parameter.
3846 (collect_symbol_completion_matches_type): Pass down
3847 complete_symbol_mode::EXPRESSION.
3848 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3849 parameter. Handle LINESPEC mode.
3850 * symtab.h (complete_symbol_mode): New.
3851 (default_collect_symbol_completion_matches_break_on)
3852 (default_collect_symbol_completion_matches)
3853 (collect_symbol_completion_matches)
3854 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3855 parameter.
3856
3857 2017-07-17 Pedro Alves <palves@redhat.com>
3858
3859 * utils.c (enum class strncmp_iw_mode): New.
3860 (strcmp_iw): Rename to ...
3861 (strncmp_iw_with_mode): ... this. Add string2_len and mode
3862 parameters. Handle them.
3863 (strncmp_iw): New.
3864 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
3865 * utils.h (strncmp_iw): Declare.
3866 (strcmp_iw): Move describing comments here.
3867
3868 2017-07-17 Pedro Alves <palves@redhat.com>
3869
3870 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
3871 CP_OPERATOR_STR.
3872 * c-typeprint.c (is_type_conversion_operator): Use
3873 CP_OPERATOR_STR.
3874 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
3875 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
3876 CP_OPERATOR_LEN.
3877 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
3878 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
3879 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
3880 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
3881 CP_OPERATOR_STR.
3882 * location.c: Include "cp-support.h".
3883 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
3884 CP_OPERATOR_STR.
3885 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
3886 CP_OPERATOR_LEN.
3887
3888 2017-07-17 Pedro Alves <palves@redhat.com>
3889
3890 * cli/cli-cmds.c (complete_command): Use a completion tracker
3891 along with completion_find_completion_word for handle_brkchars
3892 phase.
3893 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
3894 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
3895 (struct gdb_rl_completion_word_info): New.
3896 (gdb_rl_find_completion_word): New.
3897 (completion_find_completion_word): New.
3898 * completer.h (completion_find_completion_word): Declare.
3899
3900 2017-07-17 Pedro Alves <palves@redhat.com>
3901
3902 * ada-lang.c (symbol_completion_match): Adjust comments.
3903 (symbol_completion_add): Replace vector parameter with
3904 completion_tracker parameter. Use it.
3905 (ada_make_symbol_completion_list): Rename to...
3906 (ada_collect_symbol_completion_matches): ... this. Add
3907 completion_tracker parameter and use it.
3908 (ada_language_defn): Adjust.
3909 * break-catch-syscall.c (catch_syscall_completer): Adjust
3910 prototype and work with completion_tracker instead of VEC.
3911 * breakpoint.c (condition_completer): Adjust prototype and work
3912 with completion_tracker instead of VEC.
3913 * c-lang.c (c_language_defn, cplus_language_defn)
3914 (asm_language_defn, minimal_language_defn): Adjust to renames.
3915 * cli/cli-cmds.c (complete_command): Rework using
3916 completion_tracker. Catch exceptions when completing.
3917 * cli/cli-decode.c (integer_unlimited_completer)
3918 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
3919 with completion_tracker instead of VEC.
3920 * command.h (struct completion_tracker): Forward declare.
3921 (completer_ftype, completer_handle_brkchars_ftype): Change
3922 types.
3923 (complete_on_cmdlist, complete_on_enum): Adjust.
3924 * completer.c: Include <algorithm>.
3925 (struct gdb_completer_state): New.
3926 (current_completion): New global.
3927 (readline_line_completion_function): Delete.
3928 (noop_completer, filename_completer)
3929 (filename_completer_handle_brkchars, complete_files_symbols)
3930 (linespec_location_completer): Adjust to work with a
3931 completion_tracker instead of a VEC.
3932 (string_or_empty): New.
3933 (collect_explicit_location_matches): Adjust to work with a
3934 completion_tracker instead of a VEC.
3935 (explicit_location_completer): Rename to ...
3936 (complete_explicit_location): ... this and adjust to work with a
3937 completion_tracker instead of a VEC.
3938 (location_completer): Adjust to work with a completion_tracker
3939 instead of a VEC.
3940 (add_struct_fields): Adjust to work with a completion_list instead
3941 of VEC.
3942 (expression_completer): Rename to ...
3943 (complete_expression): ... this and adjust to work with a
3944 completion_tracker instead of a VEC. Use complete_files_symbols.
3945 (expression_completer): Reimplement on top of complete_expression.
3946 (symbol_completer): Adjust to work with a completion_tracker
3947 instead of a VEC.
3948 (enum complete_line_internal_reason): Add describing comments.
3949 (complete_line_internal_normal_command): Adjust to work with a
3950 completion_tracker instead of a VEC.
3951 (complete_line_internal): Rename to ...
3952 (complete_line_internal_1): ... this and adjust to work with a
3953 completion_tracker instead of a VEC. Assert TEXT is NULL in the
3954 handle_brkchars phase.
3955 (new_completion_tracker): Delete.
3956 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
3957 complete_line_internal_1.
3958 (free_completion_tracker): Delete.
3959 (INITIAL_COMPLETION_HTAB_SIZE): New.
3960 (completion_tracker::completion_tracker)
3961 (completion_tracker::~completion_tracker): New.
3962 (maybe_add_completion): Delete.
3963 (completion_tracker::maybe_add_completion)
3964 (completion_tracker::add_completion)
3965 (completion_tracker::add_completions): New.
3966 (throw_max_completions_reached_error): Delete.
3967 (complete_line): Adjust to work with a completion_tracker instead
3968 of a VEC. Don't create a completion_tracker_t or check for max
3969 completions here.
3970 (command_completer, command_completer_handle_brkchars)
3971 (signal_completer, reg_or_group_completer_1)
3972 (reg_or_group_completer, default_completer_handle_brkchars):
3973 Adjust to work with a completion_tracker.
3974 (gdb_completion_word_break_characters_throw): New.
3975 (gdb_completion_word_break_characters): Reimplement.
3976 (line_completion_function): Delete.
3977 (completion_tracker::recompute_lowest_common_denominator)
3978 (expand_preserving_ws)
3979 (completion_tracker::build_completion_result)
3980 (completion_result::completion_result)
3981 (completion_result::completion_result)
3982 (completion_result::~completion_result)
3983 (completion_result::completion_result)
3984 (completion_result::release_match_list, compare_cstrings)
3985 (completion_result::sort_match_list)
3986 (completion_result::reset_match_list)
3987 (gdb_rl_attempted_completion_function_throw)
3988 (gdb_rl_attempted_completion_function): New.
3989 * completer.h (completion_list, struct completion_result)
3990 (class completion_tracker): New.
3991 (complete_line): Add completion_tracker parameter.
3992 (readline_line_completion_function): Delete.
3993 (gdb_rl_attempted_completion_function): New.
3994 (noop_completer, filename_completer, expression_completer)
3995 (location_completer, symbol_completer, command_completer)
3996 (signal_completer, reg_or_group_completer): Update prototypes.
3997 (completion_tracker_t, new_completion_tracker)
3998 (make_cleanup_free_completion_tracker): Delete.
3999 (enum maybe_add_completion_enum): Delete.
4000 (maybe_add_completion): Delete.
4001 (throw_max_completions_reached_error): Delete.
4002 * corefile.c (complete_set_gnutarget): Adjust to work with a
4003 completion_tracker instead of a VEC.
4004 * cp-abi.c (cp_abi_completer): Adjust to work with a
4005 completion_tracker instead of a VEC.
4006 * d-lang.c (d_language_defn): Adjust.
4007 * disasm.c (disassembler_options_completer): Adjust to work with a
4008 completion_tracker instead of a VEC.
4009 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4010 (f_collect_symbol_completion_matches): ... this. Adjust to work
4011 with a completion_tracker instead of a VEC.
4012 (f_language_defn): Adjust.
4013 * go-lang.c (go_language_defn): Adjust.
4014 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4015 Adjust to work with a completion_tracker instead of a VEC.
4016 * infrun.c (handle_completer): Likewise.
4017 * interps.c (interpreter_completer): Likewise.
4018 * interps.h (interpreter_completer): Likewise.
4019 * language.c (unknown_language_defn, auto_language_defn)
4020 (local_language_defn): Adjust.
4021 * language.h (language_defn::la_make_symbol_completion_list):
4022 Rename to ...
4023 (language_defn::la_collect_symbol_completion_matches): ... this
4024 and adjust to work with a completion_tracker instead of a VEC.
4025 * m2-lang.c (m2_language_defn): Adjust.
4026 * objc-lang.c (objc_language_defn): Adjust.
4027 * opencl-lang.c (opencl_language_defn): Adjust.
4028 * p-lang.c (pascal_language_defn): Adjust.
4029 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4030 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4031 with a completion_tracker.
4032 * rust-lang.c (rust_language_defn): Adjust.
4033 * symtab.c (free_completion_list, do_free_completion_list)
4034 (return_val, completion_tracker): Delete.
4035 (completion_list_add_name, completion_list_add_symbol)
4036 (completion_list_add_msymbol, completion_list_objc_symbol)
4037 (completion_list_add_fields, add_symtab_completions): Add
4038 completion_tracker parameter and use it.
4039 (default_make_symbol_completion_list_break_on_1): Rename to...
4040 (default_collect_symbol_completion_matches_break_on): ... this.
4041 Add completion_tracker parameter and use it instead of allocating
4042 a completion tracker here.
4043 (default_make_symbol_completion_list_break_on): Delete old
4044 implementation.
4045 (default_make_symbol_completion_list): Delete.
4046 (default_collect_symbol_completion_matches): New.
4047 (make_symbol_completion_list): Delete.
4048 (collect_symbol_completion_matches): New.
4049 (make_symbol_completion_type): Rename to ...
4050 (collect_symbol_completion_matches_type): ... this. Add
4051 completion_tracker parameter and use it instead of VEC.
4052 (make_file_symbol_completion_list_1): Rename to...
4053 (collect_file_symbol_completion_matches): ... this. Add
4054 completion_tracker parameter and use it instead of VEC.
4055 (make_file_symbol_completion_list): Delete.
4056 (add_filename_to_list): Use completion_list instead of a VEC.
4057 (add_partial_filename_data::list): Now a completion_list.
4058 (make_source_files_completion_list): Work with a completion_list
4059 instead of a VEC.
4060 * symtab.h: Include "completer.h".
4061 (default_make_symbol_completion_list_break_on)
4062 (default_make_symbol_completion_list, make_symbol_completion_list)
4063 (make_symbol_completion_type, make_file_symbol_completion_list)
4064 (make_source_files_completion_list): Delete.
4065 (default_collect_symbol_completion_matches_break_on)
4066 (default_collect_symbol_completion_matches)
4067 (collect_symbol_completion_matches)
4068 (collect_symbol_completion_matches_type)
4069 (collect_file_symbol_completion_matches)
4070 (make_source_files_completion_list): New.
4071 * top.c (init_main): Don't install a rl_completion_entry_function
4072 hook. Install a rl_attempted_completion_function hook instead.
4073 * tui/tui-layout.c (layout_completer): Adjust to work with a
4074 completion_tracker.
4075 * tui/tui-regs.c (tui_reggroup_completer):
4076 * tui/tui-win.c (window_name_completer, focus_completer)
4077 (winheight_completer): Adjust to work with a completion_tracker.
4078 * value.c: Include "completer.h".
4079 (complete_internalvar): Adjust to work with a completion_tracker.
4080 * value.h (complete_internalvar): Likewise.
4081
4082 2017-07-17 Pedro Alves <palves@redhat.com>
4083
4084 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4085 renames.
4086 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4087 comments to completer_ftype's declaration.
4088 <completer_handle_brkchars>: Change type to
4089 completer_handle_brkchars_ftype.
4090 * command.h (completer_ftype): Add describing comment and give
4091 names to parameters.
4092 (completer_ftype_void): Rename to ...
4093 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4094 (set_cmd_completer_handle_brkchars): Adjust.
4095 * completer.c (filename_completer_handle_brkchars): New function.
4096 (complete_line_internal_normal_command): New function, factored
4097 out from ...
4098 (complete_line_internal): ... here.
4099 (command_completer_handle_brkchars)
4100 (default_completer_handle_brkchars)
4101 (completer_handle_brkchars_func_for_completer): New functions.
4102 * completer.h (set_gdb_completion_word_break_characters): Delete
4103 declaration.
4104 (completer_handle_brkchars_func_for_completer): New declaration.
4105 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4106 completer_handle_brkchars_func_for_completer.
4107
4108 2017-07-17 Pedro Alves <palves@redhat.com>
4109
4110 * completer.c (symbol_completer): New function, based on
4111 make_symbol_completion_list_fn.
4112 * completer.h (symbol_completer): New declaration.
4113 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4114 * python/py-cmd.c (completers): Adjust.
4115 * symtab.c (make_symbol_completion_list_fn): Delete.
4116 * symtab.h (make_symbol_completion_list_fn): Delete.
4117 * cli/cli-decode.c (add_cmd): Adjust.
4118
4119 2017-07-17 Pedro Alves <palves@redhat.com>
4120
4121 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4122 * dwarf2read.c: Include "filename-seen-cache.h".
4123 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4124 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4125 * filename-seen-cache.c: New file.
4126 * filename-seen-cache.h: New file.
4127 * symtab.c: Include "filename-seen-cache.h".
4128 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4129 (create_filename_seen_cache, clear_filename_seen_cache)
4130 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4131 to filename-seen-cache.h/filename-seen-cache.c.
4132 (output_source_filename, sources_info)
4133 (maybe_add_partial_symtab_filename)
4134 (make_source_files_completion_list): Adjust to use
4135 filename_seen_cache.
4136
4137 2017-07-17 Pedro Alves <palves@redhat.com>
4138
4139 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4140 fields.
4141 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4142 dwarf2_debug_sections*)): New.
4143 (dwarf2_per_objfile::dwarf2_per_objfile(const
4144 dwarf2_per_objfile&)): Declare as deleted.
4145 (dwarf2_per_objfile::operator=): Declare as deleted.
4146 (dwarf2_per_objfile::dwarf2_per_objfile)
4147 (dwarf2_per_objfile::~dwarf2_per_objfile)
4148 (dwarf2_per_objfile::free_cached_comp_units): New.
4149 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4150 ctor. Call dwarf2_per_objfile's ctor manually.
4151 (dwarf2_locate_sections): Deleted/refactored as ...
4152 (dwarf2_per_objfile::locate_sections): ... this new method.
4153 (free_cached_comp_units): Defer to
4154 dwarf2_per_objfile::free_cached_comp_units.
4155 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4156
4157 2017-07-14 Tom Tromey <tom@tromey.com>
4158
4159 PR rust/21764:
4160 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4161 parameter.
4162 <UNOP_SIZEOF>: Split into separate case.
4163 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4164
4165 2017-07-14 Tom Tromey <tom@tromey.com>
4166
4167 PR rust/21763:
4168 * symtab.c (symbol_matches_domain): Add language_rust to special
4169 case.
4170 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4171 treat LOC_TYPEDEF symbols as variables.
4172
4173 2017-07-14 Pedro Alves <palves@redhat.com>
4174
4175 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4176 symtabs matching all symtabs with SRCFILE as file name instead of
4177 only considering the first hit, with lookup_symtab.
4178
4179 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4180
4181 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4182 operator_name parameters.
4183 (gen_expr): Update function call.
4184
4185 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4186
4187 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4188 parameter.
4189 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4190 Likewise.
4191 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4192 parameter, use agent_expr::gdbarch instead, update function
4193 calls.
4194 (locexpr_tracepoint_var_ref): Likewise.
4195 (loclist_tracepoint_var_ref): Likewise.
4196 * ax-gdb.c (gen_trace_static_fields): Likewise.
4197 (gen_traced_pop): Likewise.
4198 (gen_frame_args_address): Likewise.
4199 (gen_frame_locals_address): Likewise.
4200 (gen_var_ref): Likewise.
4201 (gen_struct_ref_recursive): Likewise.
4202 (gen_static_field): Likewise.
4203 (gen_maybe_namespace_elt): Likewise.
4204 (gen_expr): Likewise.
4205 (gen_trace_for_var): Likewise.
4206 (gen_trace_for_expr): Likewise.
4207 (gen_trace_for_return_address): Likewise.
4208
4209 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4210
4211 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4212 parameter.
4213 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4214
4215 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4216
4217 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4218 from ax, update calls.
4219 (gen_usual_arithmetic): Likewise.
4220 (gen_integral_promotions): Likewise.
4221 (gen_bitfield_ref): Likewise.
4222 (gen_primitive_field): Likewise.
4223 (gen_struct_ref_recursive): Likewise.
4224 (gen_struct_ref): Likewise.
4225 (gen_maybe_namespace_elt): Likewise.
4226 (gen_struct_elt_for_reference): Likewise.
4227 (gen_namespace_elt): Likewise.
4228 (gen_aggregate_elt_ref): Likewise.
4229 (gen_expr): Get gdbarch from ax, update calls.
4230 (gen_expr_binop_rest): Likewise.
4231
4232 2017-07-13 Pedro Alves <palves@redhat.com>
4233
4234 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4235 as default tdesc.
4236 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4237 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4238 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4239 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4240 tdep.
4241 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4242 Get final tdesc from the tdep.
4243 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4244 default tdesc.
4245 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4246 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4247 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4248 Use it as default tdesc.
4249 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4250 down to amd_init_abi. No longer handle fallback tdesc here.
4251 * amd64-tdep.h (tdesc_x32): Declare.
4252 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4253 parameter.
4254 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4255 as default tdesc.
4256
4257 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4258
4259 * s390-linux-tdep.c (s390_process_record): Add support for
4260 instructions new in arch12.
4261
4262 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4263
4264 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4265 PT_GETFSBASE and PT_GETGSBASE.
4266 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4267 PT_SETGSBASE.
4268
4269 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4270
4271 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4272 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4273 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4274 those rules.
4275 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4276 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4277 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4278 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4279 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4280 * features/i386/amd64.xml: Add 64bit-segments.xml.
4281 * features/i386/amd64-avx-avx512.c: Regenerated.
4282 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4283 * features/i386/amd64-avx-mpx.c: Regenerated.
4284 * features/i386/amd64-avx.c: Regenerated.
4285 * features/i386/amd64-mpx.c: Regenerated.
4286 * features/i386/amd64.c: Regenerated.
4287 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4288 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4289 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4290 * regformats/i386/amd64-avx.dat: Regenerated.
4291 * regformats/i386/amd64-mpx.dat: Regenerated.
4292 * regformats/i386/amd64.dat: Regenerated.
4293
4294 2017-07-10 Yao Qi <yao.qi@linaro.org>
4295
4296 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4297 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4298
4299 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4300
4301 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4302 unsetenv.
4303 * gnulib/aclocal.m4: Regenerate.
4304 * gnulib/config.in: Regenerate.
4305 * gnulib/configure: Regenerate.
4306 * gnulib/import/Makefile.am: Regenerate.
4307 * gnulib/import/Makefile.in: Regenerate.
4308 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4309 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4310 * gnulib/import/m4/environ.m4: New file.
4311 * gnulib/import/m4/setenv.m4: New file.
4312 * gnulib/import/setenv.c: New file.
4313 * gnulib/import/unsetenv.c: New file.
4314
4315 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4316
4317 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4318 address when op is DW_OP_addr.
4319
4320 2017-07-09 Tom Tromey <tom@tromey.com>
4321
4322 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4323 check and apply to outer type.
4324
4325 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4326
4327 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4328 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4329 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4330 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4331
4332 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4333
4334 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4335
4336 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4337
4338 * corelow.c (get_core_siginfo): Remove.
4339 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4340 instead of get_core_siginfo.
4341 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4342 * gdbarch.h: Re-generate.
4343 * gdbarch.c: Re-generate.
4344 * linux-tdep.c (linux_core_xfer_siginfo): New.
4345 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4346
4347 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4348
4349 * corelow.c (thread_section_name): Move to ...
4350 * gdbcore.h (thread_section_name): ... here.
4351
4352 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4353
4354 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4355 (struct siginfo32): New.
4356 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4357 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4358 via ptrace(PT_LWPINFO).
4359
4360 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4361
4362 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4363 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4364 (fbsd_get_siginfo_type): New.
4365 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4366 (_initialize_fbsd_tdep): New.
4367
4368 2017-07-06 David Blaikie <dblaikie@gmail.com>
4369
4370 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4371 a singular dwo_unit*) to support multiple CUs in the same way that
4372 multiple TUs are supported.
4373 (create_cus_hash_table): Replace create_dwo_cu with a function for
4374 parsing multiple CUs from a DWO file.
4375 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4376 create_dwo_cu.
4377 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4378 htab_find, rather than comparing the signature to a singleton CU in
4379 the dwo_file.
4380
4381 2017-07-06 Pedro Alves <palves@redhat.com>
4382
4383 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4384
4385 2017-07-04 Pedro Alves <palves@redhat.com>
4386
4387 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4388 * gdbtypes.h (TYPE_STATIC): Delete.
4389 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4390 is_synchronized, is_native>: Delete.
4391 <dummy>: Bump.
4392 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4393 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4394 (TYPE_FN_FIELD_ABSTRACT): Delete.
4395
4396 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4397
4398 * buffer.h (buffer_finish): Fix spelling mistakes.
4399
4400 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4401
4402 * .dir-locals.el: Automatically switch to C-style comments in
4403 versions of Emacs that support the feature.
4404
4405 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4406 Pedro Alves <palves@redhat.com>
4407
4408 PR cli/21688
4409 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4410 (process_next_line): New variable 'inline_cmd'.
4411 Adjust 'if' clauses for "python", "compile" and "guile" to use
4412 'command_name_equals' and check for '!inline_cmd'.
4413
4414 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4415
4416 PR cli/21688
4417 * cli/cli-script.c (command_name_equals_not_inline): New function.
4418 (process_next_line): Adjust 'if' clauses for "python", "compile"
4419 and "guile" to use command_name_equals_not_inline.
4420
4421 2017-06-29 Pedro Alves <palves@redhat.com>
4422
4423 * completer.c (expression_completer): Call
4424 linespec_location_completer instead of location_completer.
4425
4426 2017-06-29 Pedro Alves <palves@redhat.com>
4427
4428 * completer.c (expression_completer): Remove code that recomputes
4429 'text' from 'word'.
4430
4431 2017-06-29 Yao Qi <yao.qi@linaro.org>
4432
4433 * regformats/regdat.sh: Generate code with
4434 "ifndef IN_PROCESS_AGENT".
4435
4436 2017-06-28 Pedro Alves <palves@redhat.com>
4437
4438 * command.h: Include "common/scoped_restore.h".
4439
4440 2017-06-28 Yao Qi <yao.qi@linaro.org>
4441
4442 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4443 instead of obstack_grow.
4444
4445 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4446
4447 PR gdb/21337
4448 * symfile.c (reread_symbols): Call objfiles_changed just before
4449 read_symbols.
4450
4451 2017-06-27 Pedro Alves <palves@redhat.com>
4452
4453 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4454 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4455 (completion_list_add_symbol, completion_list_add_msymbol):
4456 ... these new functions.
4457 (add_symtab_completions)
4458 (default_make_symbol_completion_list_break_on_1): Adjust.
4459
4460 2017-06-27 Pedro Alves <palves@redhat.com>
4461
4462 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4463 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4464 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4465 dtor.
4466 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4467 'storage_obstack' field an auto_obstack. In-class initialize all
4468 non-bitfield fields. Make minsyms_read bool.
4469 * symfile.c (read_symbols): Adjust.
4470
4471 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4472
4473 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4474 (gdbsim_store_register): Likewise.
4475
4476 2017-06-27 Pedro Alves <palves@redhat.com>
4477
4478 * c-exp.y (name_obstack): Now an auto_obstack.
4479 (yylex): Use auto_obstack::clear.
4480 (c_parse): Use auto_obstack::clear instead of reinitializing and
4481 freeing the obstack.
4482 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4483 * d-exp.y (name_obstack): Now an auto_obstack.
4484 (yylex): Use auto_obstack::clear.
4485 (d_parse): Use auto_obstack::clear instead of reinitializing and
4486 freeing the obstack.
4487 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4488 auto_obstack.
4489 * dwarf2read.c (create_addrmap_from_index)
4490 (dwarf2_build_psymtabs_hard)
4491 (update_enumeration_type_from_children): Likewise.
4492 * gdb_obstack.h (auto_obstack): New type.
4493 * go-exp.y (name_obstack): Now an auto_obstack.
4494 (build_packaged_name): Use auto_obstack::clear.
4495 (go_parse): Use auto_obstack::clear instead of reinitializing and
4496 freeing the obstack.
4497 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4498 auto_obstack.
4499 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4500 * rust-exp.y (work_obstack): Now an auto_obstack.
4501 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4502 reinitializing and freeing the obstack.
4503 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4504 (host_char_to_target): Use auto_obstack.
4505 * utils.h (make_cleanup_obstack_free): Delete declaration.
4506 * valprint.c (generic_emit_char, generic_printstr): Use
4507 auto_obstack.
4508
4509 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4510
4511 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4512 thread.
4513 (darwin_init_thread_list): Don't update dummy thread.
4514 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4515
4516 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4517
4518 * record-full.c (netorder16): Remove.
4519
4520 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4521
4522 * common/diagnostics.h: Define macros for GCC.
4523 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4524 * common/vec.h: Include diagnostics.h.
4525 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4526 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4527 warning.
4528
4529 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4530
4531 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4532 New macro.
4533 * ada-lex.l: Ignore deprecated register warnings.
4534
4535 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4536
4537 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4538 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4539
4540 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4541
4542 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4543 its own line.
4544
4545 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4546
4547 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4548
4549 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4550
4551 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4552 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4553 (xtensa_register_read_masked): Likewise.
4554
4555 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4556
4557 * common/environ.c (gdb_environ::unset): Update comment.
4558
4559 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4560
4561 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4562 registers.
4563
4564 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4565
4566 * record-full.c (record_full_exec_insn): Use byte_vector.
4567
4568 2017-06-22 Yao Qi <yao.qi@linaro.org>
4569
4570 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4571 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4572
4573 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4574
4575 * remote.c (cached_reg): Move from here...
4576 * regcache.h (cached_reg): ...to here.
4577 * python/py-unwind.c (struct reg_info): Remove.
4578 (cached_frame_info): Use cached_reg_t.
4579 (pyuw_prev_register): Likewise.
4580 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4581 (pyuw_dealloc_cache): Free all registers.
4582
4583 2017-06-22 Pedro Alves <palves@redhat.com>
4584 Simon Marchi <simon.marchi@ericsson.com>
4585
4586 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4587 warning.
4588 * common/diagnostics.h: New file.
4589
4590 2017-06-22 Pedro Alves <palves@redhat.com>
4591
4592 * common/agent.h: Add include guards.
4593
4594 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4595
4596 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4597 talk about addressable units instead of bytes.
4598
4599 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4600
4601 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4602 of '::const_iterator'.
4603
4604 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4605
4606 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4607 'unittests/environ-selftests.c'.
4608 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4609 * charset.c (find_charset_names): Declare object 'iconv_env'.
4610 Update code to use 'iconv_env' object. Remove call to
4611 'free_environ'.
4612 * common/environ.c: Include <utility>.
4613 (make_environ): Delete function.
4614 (free_environ): Delete function.
4615 (gdb_environ::clear): New function.
4616 (gdb_environ::operator=): New function.
4617 (gdb_environ::get): Likewise.
4618 (environ_vector): Delete function.
4619 (set_in_environ): Delete function.
4620 (gdb_environ::set): New function.
4621 (unset_in_environ): Delete function.
4622 (gdb_environ::unset): New function.
4623 (gdb_environ::envp): Likewise.
4624 * common/environ.h: Include <vector>.
4625 (struct gdb_environ): Delete; transform into...
4626 (class gdb_environ): ... this class.
4627 (free_environ): Delete prototype.
4628 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4629 environ_vector): Likewise.
4630 * infcmd.c (run_command_1): Update code to call
4631 'envp' from 'gdb_environ' class.
4632 (environment_info): Update code to call methods from 'gdb_environ'
4633 class.
4634 (unset_environment_command): Likewise.
4635 (path_info): Likewise.
4636 (path_command): Likewise.
4637 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4638 (inferior::inferior): Initialize 'environment' using the host's
4639 information.
4640 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4641 Include "environ.h".
4642 (class inferior) <environment>: Change type from 'struct
4643 gdb_environ' to 'gdb_environ'.
4644 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4645 methods from 'gdb_environ' class.
4646 * solib.c (solib_find_1): Likewise
4647 * unittests/environ-selftests.c: New file.
4648
4649 2017-06-20 Yao Qi <yao.qi@linaro.org>
4650
4651 * features/i386/i386-linux.xml: Exchange the order of including
4652 32bit-linux.xml and 32bit-sse.xml.
4653 * features/i386/i386-linux.c: Regenerated.
4654
4655 2017-06-20 Yao Qi <yao.qi@linaro.org>
4656
4657 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4658 Delete copy ctor and assignment operator.
4659 (tdesc_type): Likewise.
4660 (tdesc_feature): Likewise.
4661 (tdesc_free_reg): Remove.
4662 (tdesc_create_reg): Use new.
4663 (tdesc_free_type): Remove.
4664 (tdesc_create_vector): Use new.
4665 (tdesc_create_union): Likewise.
4666 (tdesc_create_flags): Likewise.
4667 (tdesc_create_enum): Likewise.
4668 (tdesc_free_feature): Delete.
4669 (free_target_description): Use delete.
4670
4671 2017-06-19 John Baldwin <jhb@FreeBSD.org>
4672
4673 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4674 registers.
4675
4676 2017-06-19 Pedro Alves <palves@redhat.com>
4677
4678 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4679 after gdb::unlinker.
4680
4681 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4682
4683 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4684 gdb_environ to access an environment variable.
4685
4686 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4687
4688 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4689 gdb_byte*.
4690
4691 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4692
4693 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4694
4695 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4696
4697 * configure: Re-generate.
4698 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4699
4700 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4701
4702 * configure: Re-generate.
4703 * warning.m4: Pass -Werror to compiler when checking for
4704 supported warning flags.
4705
4706 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4707
4708 * Makefile.in (COMPILE.pre): Add "-x c++".
4709
4710 2017-06-16 Alan Hayward <alan.hayward@arm.com>
4711 Pedro Alves <palves@redhat.com>
4712 Yao Qi <yao.qi@linaro.org>
4713
4714 * defs.h (RequireLongest): New.
4715 (extract_integer): Declare function template.
4716 (extract_signed_integer): Remove the declaration, but define it
4717 static inline.
4718 (extract_unsigned_integer): Likewise.
4719 (store_integer): Declare function template.
4720 (store_signed_integer): Remove the declaration, but define it
4721 static inline.
4722 (store_unsigned_integer): Likewise.
4723 * findvar.c (extract_integer): New function template.
4724 (extract_signed_integer): Remove.
4725 (extract_unsigned_integer): Remove.
4726 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4727 instantiations.
4728 (store_integer): New function template.
4729 (store_signed_integer): Remove.
4730 (store_unsigned_integer): Remove.
4731 (store_integer): Explicit instantiations.
4732 * regcache.c (regcache_raw_read_signed): Update.
4733 (regcache::raw_read): New function.
4734 (regcache::raw_read_signed): Remove.
4735 (regcache::raw_read_unsigned): Remove.
4736 (regcache_raw_read_unsigned): Update.
4737 (regcache_raw_write_unsigned): Update.
4738 (regcache::raw_write_signed): Remove.
4739 (regcache::raw_write): New function.
4740 (regcache_cooked_read_signed): Update.
4741 (regcache::raw_write_unsigned): Remove.
4742 (regcache::cooked_read_signed): Remove.
4743 (regcache_cooked_read_unsigned): Update.
4744 (regcache::cooked_read_unsigned): Remove.
4745 (regcache_cooked_write_signed): Update.
4746 (regcache_cooked_write_unsigned): Update.
4747 * regcache.h (regcache) <raw_read_signed>: Remove.
4748 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4749 <raw_read, raw_write>: New.
4750 <cooked_read_signed, cooked_write_signed>: Remove.
4751 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4752 <cooked_read, cooked_write>: New.
4753 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4754 (sh64_pseudo_register_write): Update.
4755
4756 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4757
4758 * arc-tdep.c (arc_disassembler_options): New variable.
4759 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4760 of default_print_insn.
4761 (arc_delayed_print_insn): Set info->section when needed,
4762 use default_print_insn to retrieve a disassembler.
4763
4764 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4765
4766 PR gdb/21574
4767 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4768 to mention $SHELL and startup-with-shell.
4769
4770 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4771
4772 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4773
4774 2017-06-14 Yao Qi <yao.qi@linaro.org>
4775
4776 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4777 default_print_insn instead of print_insn_aarch64.
4778 * arm-tdep.c (gdb_print_insn_arm): Call
4779 default_print_insn instead of print_insn_big_arm
4780 and print_insn_little_arm.
4781 * i386-tdep.c (i386_print_insn): Call default_print_insn
4782 instead of print_insn_i386.
4783 * ia64-tdep.c (ia64_print_insn): Call
4784 default_print_insn instead of print_insn_ia64.
4785 * mips-tdep.c (gdb_print_insn_mips): Call
4786 default_print_insn instead of print_insn_big_mips
4787 and print_insn_little_mips.
4788 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4789 instead of print_insn_spu.
4790
4791 2017-06-14 Pedro Alves <palves@redhat.com>
4792
4793 * ada-lang.c: Include "common/byte-vector.h".
4794 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4795 * charset.c (wchar_iterator::iterate): Resize the vector instead
4796 of reserving it.
4797 * common/byte-vector.h: Include "common/def-vector.h".
4798 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4799 * cli/cli-dump.c: Include "common/byte-vector.h".
4800 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4801 * common/byte-vector.h: New file.
4802 * common/def-vector.h: New file.
4803 * common/default-init-alloc.h: New file.
4804 * dwarf2loc.c: Include "common/byte-vector.h".
4805 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4806 instead of reserving it.
4807 * dwarf2read.c: Include "common/byte-vector.h".
4808 (data_buf::m_vec): Now a gdb::byte_vector.
4809 * gdb_regex.c: Include "common/def-vector.h".
4810 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4811 * mi/mi-main.c: Include "common/byte-vector.h".
4812 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4813 * printcmd.c: Include "common/byte-vector.h".
4814 (print_scalar_formatted): Use gdb::byte_vector.
4815 * valprint.c: Include "common/byte-vector.h".
4816 (maybe_negate_by_bytes, print_decimal_chars): Use
4817 gdb::byte_vector.
4818
4819 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4820
4821 * darwin-nat.c: Include "nat/fork-inferior.h".
4822
4823 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4824
4825 * configure.nat: Factor out Darwin bits that are not
4826 architecture-specific. Add fork-inferior.o.
4827
4828 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4829
4830 * configure.nat: Factor out AIX bits that are not
4831 architecture-specific. Add fork-inferior.o.
4832
4833 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4834
4835 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
4836 (read_pieced_value, write_pieced_value): ...here. Reduce to
4837 wrappers that just call rw_pieced_value.
4838
4839 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4840
4841 * dwarf2loc.c (write_pieced_value): When writing the data for a
4842 memory piece, use write_memory_with_notification instead of
4843 write_memory.
4844
4845 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4846
4847 * valops.c (read_value_memory): Change embedded_offset to
4848 represent a bit offset instead of a byte offset.
4849 * value.h (read_value_memory): Adjust comment.
4850
4851 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4852
4853 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
4854 dest_offset_bits and source_offset_bits.
4855 (write_pieced_value): Likewise.
4856
4857 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4858
4859 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
4860 given by DW_OP_bit_piece.
4861 (write_pieced_value): Likewise.
4862
4863 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4864
4865 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
4866 some other preparations to the places where sufficient information
4867 is available.
4868 (write_pieced_value): Likewise.
4869
4870 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4871
4872 * dwarf2loc.c (bits_to_bytes): New function.
4873 (read_pieced_value): Fix offset calculations for register pieces
4874 on big-endian targets.
4875 (write_pieced_value): Likewise.
4876
4877 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4878
4879 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
4880 (write_pieced_value): Likewise.
4881
4882 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4883
4884 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
4885 transfer the source value's least significant bits, instead of its
4886 lowest-addressed ones. Rename type_len to max_offset.
4887 (read_pieced_value): Mirror above changes to write_pieced_value as
4888 applicable.
4889
4890 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4891
4892 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
4893 truncate full bytes from dest_offset_bits before using it as an
4894 offset into the buffer.
4895
4896 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4897
4898 * dwarf2loc.c (write_pieced_value): Include transfer size in
4899 byte-wise check.
4900
4901 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4902
4903 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
4904 calculation of this_size.
4905
4906 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4907
4908 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
4909 when targeting a bit-field.
4910 (write_pieced_value): Likewise.
4911
4912 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4913
4914 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
4915 (allocate_piece_closure): Drop addr_size parameter.
4916 (dwarf2_evaluate_loc_desc_full): Adjust call to
4917 allocate_piece_closure.
4918
4919 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4920
4921 PR gdb/21226
4922 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
4923 the LSB end, independent of endianness.
4924
4925 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4926
4927 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
4928 size capping.
4929
4930 2017-06-13 Yao Qi <yao.qi@linaro.org>
4931
4932 * mips-linux-nat.c: Move include features/mips*-linux.c to
4933 mips-linux-tdep.c.
4934 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
4935 to mips-linux-tdep.c.
4936 * mips-linux-tdep.c: Include features/mips*-linux.c
4937 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
4938 functions.
4939 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
4940 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
4941 (tdesc_mips64_dsp_linux): Declare.
4942
4943 2017-06-12 Tom Tromey <tom@tromey.com>
4944
4945 * valprint.h (val_print_type_code_int): Remove.
4946 * valprint.c (generic_val_print_int): Always call
4947 val_print_scalar_formatted.
4948 (val_print_type_code_int): Remove.
4949 * printcmd.c (print_scalar_formatted): Handle options->format==0.
4950 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
4951 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
4952 * ada-valprint.c (ada_val_print_num): Use
4953 val_print_scalar_formatted.
4954
4955 2017-06-12 Tom Tromey <tom@tromey.com>
4956
4957 * printcmd.c (print_scalar_formatted): Unify the two switches.
4958 Don't convert scalars to LONGEST.
4959
4960 2017-06-12 Tom Tromey <tom@tromey.com>
4961
4962 PR exp/16225:
4963 * valprint.h (print_decimal_chars): Update.
4964 * valprint.c (maybe_negate_by_bytes): New function.
4965 (print_decimal_chars): Add "is_signed" argument.
4966 * printcmd.c (print_scalar_formatted): Update.
4967
4968 2017-06-12 Tom Tromey <tom@tromey.com>
4969
4970 PR exp/16225:
4971 * valprint.h (print_binary_chars, print_hex_chars): Update.
4972 * valprint.c (val_print_type_code_int): Update.
4973 (print_binary_chars): Add "zero_pad" argument.
4974 (emit_octal_digit): New function.
4975 (print_octal_chars): Don't zero-pad.
4976 (print_decimal_chars): Likewise.
4977 (print_hex_chars): Add "zero_pad" argument.
4978 * sh64-tdep.c (sh64_do_fp_register): Update.
4979 * regcache.c (regcache::dump): Update.
4980 * printcmd.c (print_scalar_formatted): Update.
4981 * infcmd.c (default_print_one_register_info): Update.
4982
4983 2017-06-12 Pedro Alves <palves@redhat.com>
4984 Alan Hayward <alan.hayward@arm.com>
4985
4986 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
4987 (mips_eabi_push_dummy_call): Rename local 'regsize' to
4988 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
4989 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
4990 Assert that abi_regsize bytes fit in 'ref_valbuf'.
4991
4992 2017-06-12 Pedro Alves <palves@redhat.com>
4993
4994 * dwarf2read.c (mapped_symtab::data): Now a vector of
4995 symtab_index_entry instead of vector of
4996 std::unique_ptr<symtab_index_entry>. All users adjusted to check
4997 whether an element's name is NULL instead of checking whether the
4998 element itself is NULL.
4999 (find_slot): Change return type. Adjust.
5000 (hash_expand, , add_index_entry, uniquify_cu_indices)
5001 (write_hash_table): Adjust.
5002
5003 2017-06-12 Pedro Alves <palves@redhat.com>
5004
5005 * dwarf2read.c (recursively_count_psymbols): New function.
5006 (write_psymtabs_to_index): Call it to compute number of psyms and
5007 pass estimate size of psyms_seen to unordered_set's ctor.
5008
5009 2017-06-12 Pedro Alves <palves@redhat.com>
5010
5011 * dwarf2read.c (write_hash_table): Check if key already exists
5012 before emplacing.
5013
5014 2017-06-12 Pedro Alves <palves@redhat.com>
5015
5016 * dwarf2read.c (data_buf::append_space): Rename to...
5017 (data_buf::grow): ... this, and make private. Adjust all callers.
5018 (data_buf::append_uint): New method.
5019 (add_address_entry, write_one_signatured_type)
5020 (write_psymtabs_to_index): Use it.
5021
5022 2017-06-12 Pedro Alves <palves@redhat.com>
5023
5024 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5025 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5026 (data_buf::file_write): Call ::fwrite directly.
5027
5028 2017-06-12 Pedro Alves <palves@redhat.com>
5029
5030 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5031 std::vector::erase.
5032
5033 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5034
5035 Code cleanup: C++ify .gdb_index producer.
5036 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5037 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5038 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5039 (create_strtab, add_string): Remove.
5040 (file_write, data_buf): New.
5041 (struct symtab_index_entry): Use std::vector for cu_indices.
5042 (struct mapped_symtab): Use std::vector for data.
5043 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5044 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5045 Remove.
5046 (find_slot): Change return type. Update it to the new data structures.
5047 (hash_expand, add_index_entry): Update it to the new data structures.
5048 (offset_type_compare): Remove.
5049 (uniquify_cu_indices): Update it to the new data structures.
5050 (c_str_view, c_str_view_hasher, vector_hasher): New.
5051 (add_indices_to_cpool): Remove.
5052 (write_hash_table): Update it to the new data structures.
5053 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5054 (eq_psymtab_cu_index): Remove.
5055 (psym_index_map): New typedef.
5056 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5057 reference and std::unordered_map for cu_index_htab.
5058 (add_address_entry, add_address_entry_worker, write_address_map)
5059 (write_psymbols): Update it to the new data structures.
5060 (write_obstack): Remove.
5061 (struct signatured_type_index_data): Change types_list to a data_buf
5062 reference and psyms_seen to a std::unordered_set reference.
5063 (write_one_signatured_type, recursively_write_psymbols)
5064 (write_psymtabs_to_index): Update it to the new data structures.
5065
5066 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5067
5068 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5069 separate-debug-file commands.
5070 * symfile.h (separate_debug_file_debug): New global.
5071 * symfile.c (separate_debug_file_debug): New global.
5072 (separate_debug_file_exists, find_separate_debug_file): Add
5073 debug output.
5074 (_initialize_symfile): Add "set debug separate-debug-file"
5075 command.
5076 * build-id.c (build_id_to_debug_bfd,
5077 find_separate_debug_file_by_buildid): Add debug output.
5078
5079 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * gdbarch.sh (displaced_step_free_closure): Remove.
5082 * gdbarch.h, gdbarch.c: Re-generate.
5083 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5084 displaced_step_free_closure.
5085 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5086 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5087 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5088 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5089 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5090 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5091 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5092 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5093 * infrun.c (displaced_step_clear): Call xfree instead of
5094 gdbarch_displaced_step_free_closure.
5095
5096 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5097
5098 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5099 NULL".
5100
5101 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5102
5103 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5104 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5105 (mn10300_push_dummy_call): Likewise.
5106
5107 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5108
5109 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5110
5111 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5112
5113 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5114
5115 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5116
5117 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5118 able to start inferiors using a shell.
5119 (New remote packets): Announce new packet "QStartupWithShell".
5120 * remote.c: Add PACKET_QStartupWithShell.
5121 (extended_remote_create_inferior): Handle new
5122 PACKET_QStartupWithShell.
5123 (remote_protocol_features) <QStartupWithShell>: New entry for
5124 PACKET_QStartupWithShell.
5125 (_initialize_remote): Call "add_packet_config_cmd" for
5126 QStartupShell.
5127
5128 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5129 Pedro Alves <palves@redhat.com>
5130
5131 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5132 and "nat/fork-inferior.h".
5133 * common/common-inferior.h: New file, with contents from
5134 "gdb/inferior.h".
5135 * commom/common-utils.c: Include "common-utils.h".
5136 (stringify_argv): New function.
5137 * common/common-utils.h (stringify_argv): New prototype.
5138 * configure.nat: Add "fork-inferior.o" as a dependency for
5139 "*linux*", "fbsd*" and "nbsd*" hosts.
5140 * corefile.c (get_exec_file): Update comment.
5141 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5142 instead of "startup_inferior".
5143 (darwin_create_inferior): Call "add_thread_silent" after
5144 "fork_inferior".
5145 * fork-child.c: Cleanup unnecessary includes.
5146 (SHELL_FILE): Move to "common/common-fork-child.c".
5147 (environ): Likewise.
5148 (exec_wrapper): Initialize.
5149 (get_exec_wrapper): New function.
5150 (breakup_args): Move to "common/common-fork-child.c"; rename to
5151 "breakup_args_for_exec".
5152 (escape_bang_in_quoted_argument): Move to
5153 "common/common-fork-child.c".
5154 (saved_ui): New variable.
5155 (prefork_hook): New function.
5156 (postfork_hook): Likewise.
5157 (postfork_child_hook): Likewise.
5158 (gdb_startup_inferior): Likewise.
5159 (fork_inferior): Move to "common/common-fork-child.c". Update
5160 function to support gdbserver.
5161 (startup_inferior): Likewise.
5162 * gdbcore.h (get_exec_file): Remove declaration.
5163 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5164 instead of "startup_inferior". Call "add_thread_silent" after
5165 "fork_inferior".
5166 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5167 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5168 instead of "startup_inferior". Call "add_thread_silent" after
5169 "fork_inferior".
5170 * inferior.h: Include "common-inferior.h".
5171 (trace_start_error): Move to "common/common-utils.h".
5172 (trace_start_error_with_name): Likewise.
5173 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5174 (startup_inferior): Likewise.
5175 (gdb_startup_inferior): New prototype.
5176 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5177 * nat/fork-inferior.h: New file.
5178 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5179 instead of "startup_inferior". Call "add_thread_silent" after
5180 "fork_inferior".
5181 * target.h (target_terminal_init): Move prototype to
5182 "target/target.h".
5183 (target_terminal_inferior): Likewise.
5184 (target_terminal_ours): Likewise.
5185 * target/target.h (target_terminal_init): New prototype, moved
5186 from "target.h".
5187 (target_terminal_inferior): Likewise.
5188 (target_terminal_ours): Likewise.
5189 * utils.c (gdb_flush_out_err): New function.
5190
5191 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5192
5193 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5194 * common/common-gdbthread.h: New file, with parts from
5195 "gdb/gdbthread.h".
5196 * gdbthread.h: Include "common-gdbthread.h".
5197 (switch_to_thread): Moved to "common/common-gdbthread.h".
5198
5199 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5200
5201 * Makefile.in (SFILES): Add "common/job-control.c".
5202 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5203 (COMMON_OBS): Add "job-control.o".
5204 * common/job-control.c: New file, with contents from
5205 "gdb/inflow.c".
5206 * common/job-control.h: New file, with contents from "terminal.h".
5207 * fork-child.c: Include "job-control.h".
5208 * inflow.c: Include "job-control.h".
5209 (gdb_setpgid): Move to "common/common-inflow.c".
5210 (_initialize_inflow): Move setting of "job_control" to
5211 "handle_job_control".
5212 * terminal.h (job_control): Moved to "common/common-terminal.h".
5213 (gdb_setpgid): Likewise.
5214 * top.c: Include "job_control.h".
5215 * utils.c: Likewise.
5216 (job_control): Moved to "job-control.c".
5217
5218 2017-06-07 Pedro Alves <palves@redhat.com>
5219
5220 * Makefile.in (SFILES): Add gdb_regex.c.
5221 (COMMON_OBS): Add gdb_regex.o.
5222 * ada-lang.c (ada_add_standard_exceptions)
5223 (ada_add_exceptions_from_frame, name_matches_regex)
5224 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5225 parameter type to compiled_regex. Adjust.
5226 (ada_exceptions_list): Use compiled_regex.
5227 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5228 std::unique_ptr<compiled_regex>.
5229 (exception_catchpoint::~exception_catchpoint): Remove regfree
5230 call.
5231 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5232 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5233 * breakpoint.c (solib_catchpoint::compiled): Now a
5234 std::unique_ptr<compiled_regex>.
5235 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5236 (check_status_catch_solib): Adjust to use compiled_regex.
5237 (add_solib_catchpoint): Adjust to use compiled_regex.
5238 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5239 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5240 compiled_regex reference. Adjust to use it.
5241 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5242 declaration. Include "gdb_regex.h".
5243 (apropos_cmd): Change regex parameter to compiled_regex reference.
5244 * gdb_regex.c: New file.
5245 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5246 declarations.
5247 (class compiled_regex): New.
5248 * linux-tdep.c: Include "common/gdb_optional.h".
5249 (struct mapping_regexes): New, factored out from
5250 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5251 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5252 gdb::optional and remove cleanups. Adjust to compiled_regex.
5253 * probe.c: Include "common/gdb_optional.h".
5254 (collect_probes): Use compiled_regex and gdb::optional and remove
5255 cleanups.
5256 * skip.c: Include "common/gdb_optional.h".
5257 (skiplist_entry::compiled_function_regexp): Now a
5258 gdb::optional<compiled_regex>.
5259 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5260 (free_skiplist_entry): Remove regfree call.
5261 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5262 compiled_regex and gdb::optional.
5263 * symtab.c: Include "common/gdb_optional.h".
5264 (search_symbols): Use compiled_regex and gdb::optional.
5265 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5266 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5267 to gdb_regex.c.
5268
5269 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5270
5271 * regcache.c (regcache::save): Avoid buffer use.
5272 (regcache::dump): Likewise.
5273
5274 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5275
5276 * sh-tdep.c (sh_pseudo_register_read): Remove
5277 MAX_REGISTER_SIZE.
5278 (sh_pseudo_register_write): Likewise.
5279 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5280 (sh64_pseudo_register_write): Likewise
5281
5282 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5283
5284 * aarch64-tdep.c (aarch64_store_return_value): Use
5285 V_REGISTER_SIZE.
5286 (aarch64_pseudo_read_value): Likewise.
5287 (aarch64_pseudo_write): Likewise.
5288
5289 2017-06-06 Yao Qi <yao.qi@linaro.org>
5290
5291 * regformats/regdef.h (set_register_cache): Remove the
5292 declaration.
5293
5294 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5295
5296 * frame.c (frame_unwind_register_signed): Use
5297 frame_unwind_register_value.
5298
5299 2017-06-06 Pedro Alves <palves@redhat.com>
5300
5301 PR breakpoints/21553
5302 * breakpoint.c (create_breakpoints_sal_default)
5303 (init_breakpoint_sal, create_breakpoint_sal): Use
5304 gdb::unique_xmalloc_ptr for string parameters.
5305 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5306 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5307 (base_breakpoint_create_breakpoints_sal)
5308 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5309 (strace_marker_create_breakpoints_sal)
5310 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5311 string parameters.
5312 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5313 gdb::unique_xmalloc_ptr for string parameters.
5314 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5315 parameters.
5316
5317 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5318
5319 * alpha-tdep.c (alpha_register_to_value): Use
5320 get_frame_register_value.
5321 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5322
5323 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5324
5325 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5326 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5327 (ia64_value_to_register): Likewise.
5328 (ia64_extract_return_value): Likewise.
5329 (ia64_store_return_value): Likewise.
5330 (ia64_push_dummy_call): Likewise.
5331
5332 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5333
5334 GDB 8.0 released.
5335
5336 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5337
5338 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5339
5340 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5341
5342 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5343 parameter.
5344 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5345
5346 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5347
5348 * event-loop.c (poll_timers): Unallocate timer using delete
5349 instead of xfree.
5350
5351 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5352
5353 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5354 (struct breakpoint) <~breakpoint>: New.
5355 (struct watchpoint): Inherit from breakpoint.
5356 <~watchpoint>: New.
5357 <base>: Remove.
5358 (struct tracepoint): Inherit from breakpoint.
5359 <base>: Remove.
5360 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5361 (struct longjmp_breakpoint): Inherit from breakpoint.
5362 <~longjmp_breakpoint>: New.
5363 <base>: Remove.
5364 (new_breakpoint_from_type): Remove casts.
5365 (watchpoint_in_thread_scope): Remove reference to base field.
5366 (watchpoint_del_at_next_stop): Likewise.
5367 (update_watchpoint): Likewise.
5368 (watchpoint_check): Likewise.
5369 (bpstat_check_watchpoint): Likewise.
5370 (set_longjmp_breakpoint): Likewise.
5371 (struct fork_catchpoint): Inherit from breakpoint.
5372 <base>: Remove.
5373 (struct solib_catchpoint): Inherit from breakpoint.
5374 <~solib_catchpoint>: New.
5375 <base>: Remove.
5376 (dtor_catch_solib): Change to ...
5377 (solib_catchpoint::~solib_catchpoint): ... this.
5378 (breakpoint_hit_catch_solib): Remove reference to base field.
5379 (add_solib_catchpoint): Likewise.
5380 (create_fork_vfork_event_catchpoint): Likewise.
5381 (struct exec_catchpoint): Inherit from breakpoint.
5382 <~exec_catchpoint>: New.
5383 <base>: Remove.
5384 (dtor_catch_exec): Change to ...
5385 (exec_catchpoint::~exec_catchpoint): ... this.
5386 (dtor_watchpoint): Change to ...
5387 (watchpoint::~watchpoint): ... this.
5388 (watch_command_1): Remove reference to base field.
5389 (catch_exec_command_1): Likewise.
5390 (base_breakpoint_dtor): Change to ...
5391 (breakpoint::~breakpoint): ... this.
5392 (base_breakpoint_ops): Remove dtor field value.
5393 (longjmp_bkpt_dtor): Change to ...
5394 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5395 (strace_marker_create_breakpoints_sal): Remove reference to base
5396 field.
5397 (delete_breakpoint): Don't manually call breakpoint destructor.
5398 (create_tracepoint_from_upload): Remove reference to base field.
5399 (trace_pass_set_count): Likewise.
5400 (initialize_breakpoint_ops): Don't initialize
5401 momentary_breakpoint_ops, don't set dtors.
5402 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5403 <~ada_catchpoint>: New.
5404 <base>: Remove.
5405 (create_excep_cond_exprs): Remove reference to base field.
5406 (dtor_exception): Change to ...
5407 (ada_catchpoint::~ada_catchpoint): ... this.
5408 (dtor_catch_exception): Remove.
5409 (dtor_catch_exception_unhandled): Remove.
5410 (dtor_catch_assert): Remove.
5411 (create_ada_exception_catchpoint): Remove reference to base
5412 field.
5413 (initialize_ada_catchpoint_ops): Don't set dtors.
5414 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5415 breakpoint.
5416 <~signal_catchpoint>: New.
5417 <base>: Remove.
5418 (signal_catchpoint_dtor): Change to ...
5419 (signal_catchpoint::~signal_catchpoint): ... this.
5420 (create_signal_catchpoint): Remove reference to base field.
5421 (initialize_signal_catchpoint_ops): Don't set dtor.
5422 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5423 from breakpoint.
5424 <~syscall_catchpoint>: New.
5425 <base>: Remove.
5426 (dtor_catch_syscall): Change to ...
5427 (syscall_catchpoint::~syscall_catchpoint): ... this.
5428 (create_syscall_event_catchpoint): Remove reference to base
5429 field.
5430 (initialize_syscall_catchpoint_ops): Don't set dtor.
5431 * break-catch-throw.c (struct exception_catchpoint): Inherit
5432 from breakpoint.
5433 <~exception_catchpoint>: New.
5434 <base>: Remove.
5435 (dtor_exception_catchpoint): Change to ...
5436 (exception_catchpoint::~exception_catchpoint): ... this.
5437 (handle_gnu_v3_exceptions): Remove reference to base field.
5438 (initialize_throw_catchpoint_ops): Don't set dtor.
5439 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5440 field.
5441 * remote.c (remote_get_tracepoint_status): Likewise.
5442 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5443 * tracefile.c (tracefile_fetch_registers): Likewise.
5444 * tracepoint.c (actions_command): Likewise.
5445 (validate_actionline): Likewise.
5446 (tfind_1): Likewise.
5447 (get_traceframe_location): Likewise.
5448 (find_matching_tracepoint_location): Likewise.
5449 (parse_tracepoint_status): Likewise.
5450 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5451
5452 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5453
5454 * breakpoint.c (struct longjmp_breakpoint): New struct.
5455 (is_tracepoint_type): Change return type to bool.
5456 (is_longjmp_type): New function.
5457 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5458 (set_raw_breakpoint_without_location): Use
5459 new_breakpoint_from_type.
5460 (set_raw_breakpoint): Likewise.
5461
5462 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5463
5464 * breakpoint.c (new_breakpoint_from_type): New function.
5465 (create_breakpoint_sal): Use new_breakpoint_from_type and
5466 unique_ptr.
5467 (create_breakpoint): Likewise.
5468
5469 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5470
5471 * memattr.c (mem_info_command): Rename to ...
5472 (info_mem_command): ... this.
5473 (mem_enable_command): Rename to ...
5474 (enable_mem_command): ... this.
5475 (mem_disable_command): Rename to ...
5476 (disable_mem_command): ... this.
5477 (mem_delete_command): Rename to ...
5478 (delete_mem_command): ... this.
5479 (_initialize_mem): Adjust function names.
5480
5481 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5482
5483 * btrace.c (handle_pt_insn_events): New.
5484 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5485 STATUS. Split into this and ...
5486 (handle_pt_insn_event_flags): ... this.
5487
5488 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5489
5490 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5491 and struct pt_insn.resynced.
5492 * configure: Regenerated.
5493 * config.in: Regenerated.
5494
5495 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5496
5497 * btrace.c (ftrace_find_call_by_number): New function.
5498 (ftrace_new_function): Store objects, not pointers.
5499 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5500 ftrace_new_gap, ftrace_update_function,
5501 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5502 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5503 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5504 btrace_ends_with_single_insn, btrace_call_get): Account for
5505 btrace_thread_info::functions now storing objects.
5506 * btrace.h (struct btrace_thread_info): Add constructor.
5507 (struct btrace_thread_info) <functions>: Make std::vector.
5508 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5509 Initialize with default values.
5510 * record-btrace.c (record_btrace_frame_sniffer): Account for
5511 btrace_thread_info::functions now storing objects.
5512
5513 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5514
5515 * btrace.c: Remove typedef bfun_s.
5516 (ftrace_new_gap): Directly add gaps to the list of gaps.
5517 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5518 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5519 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5520 instead of gdb VEC.
5521
5522 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5523
5524 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5525 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5526 with btrace_thread_info::next_segment and
5527 btrace_thread_info::prev_segment.
5528 * btrace.h: Remove struct btrace_func_link.
5529 (struct btrace_function): Replace pair of function segment pointers
5530 with pair of indices.
5531 * python/py-record-btrace.c (btpy_call_prev_sibling,
5532 btpy_call_next_sibling): Replace references to
5533 btrace_thread_info::segment with btrace_thread_info::next_segment and
5534 btrace_thread_info::prev_segment.
5535 * record-btrace.c (record_btrace_frame_this_id): Use
5536 btrace_find_call_by_number.
5537
5538 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5539
5540 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5541 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5542 btrace_insn_next, btrace_insn_prev): Remove references to
5543 btrace_thread_info::flow.
5544 * btrace.h (struct btrace_function): Remove FLOW.
5545
5546 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5547
5548 * btrace.c (ftrace_find_call_by_number): New function.
5549 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5550 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5551 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5552 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5553 index.
5554 * btrace.h (struct btrace_function): Turn UP into an index.
5555 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5556 as an index.
5557 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5558 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5559 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5560
5561 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5562
5563 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5564 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5565 ftrace_update_function, ftrace_compute_global_level_offset,
5566 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5567 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5568 btrace_insn_end, btrace_is_empty): Remove references to
5569 btrace_thread_info::begin and btrace_thread_info::end.
5570 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5571 (struct btrace_thread_info) <functions>: Adjust comment.
5572 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5573 btrace_thread_info::begin.
5574
5575 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5576
5577 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5578 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5579 ftrace_update_function): Remove arguments that implicitly were always
5580 BTINFO->END.
5581 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5582 Don't pass BTINFO->END.
5583
5584 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5585
5586 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5587 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5588 btrace_find_insn_by_number): Replace function segment pointer with
5589 index.
5590 (btrace_insn_cmp): Simplify.
5591 * btrace.h: (struct btrace_insn_iterator) Rename index to
5592 insn_index. Replace function segment pointer with index into function
5593 segment vector.
5594 * record-btrace.c (record_btrace_call_history): Replace function
5595 segment pointer use with index.
5596 (record_btrace_frame_sniffer): Retrieve function call segment through
5597 vector.
5598 (record_btrace_set_replay): Remove defunc't safety check.
5599
5600 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5601
5602 * btrace.c (btrace_ends_with_single_insn): New function.
5603 (btrace_call_get, btrace_call_number, btrace_call_begin,
5604 btrace_call_end, btrace_call_next, btrace_call_prev,
5605 btrace_find_call_by_number): Use index into call segment vector
5606 instead of pointer.
5607 (btrace_call_cmp): Simplify.
5608 * btrace.h (struct btrace_call_iterator): Replace function call segment
5609 pointer with index into vector.
5610 * record-btrace.c (record_btrace_call_history): Use index instead of
5611 pointer.
5612
5613 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5614
5615 * btrace.c (btrace_insn_begin, btrace_insn_end,
5616 btrace_find_insn_by_number): Add btinfo to iterator.
5617 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5618
5619 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5620
5621 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5622 and save pointers directly.
5623 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5624 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5625 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5626 changed signature of functions.
5627 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5628 (btrace_fetch): Remove code that adds btrace_function pointers to
5629 vector of btrace_functions.
5630 (btrace_clear): Simplify freeing vector of btrace_functions.
5631
5632 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5633
5634 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5635 Replace VEC_* with std::vector functions.
5636 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5637 (struct btrace_thread_info)<functions>: Change type to std::vector.
5638
5639 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5640
5641 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5642 "Removed targets and native configurations" up. Merge duplicate
5643 "New commands" sub-sections. Add "New options" sub-sections.
5644
5645 2017-05-26 Alan Hayward <alan.hayward@arm.com>
5646
5647 * defs.h (copy_integer_to_size): New declaration.
5648 * findvar.c (copy_integer_to_size): New function.
5649 (do_cint_test): New selftest function.
5650 (copy_integer_to_size_test): Likewise.
5651 (_initialize_findvar): Likewise.
5652 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5653 (mips_fbsd_collect_reg): Use raw_collect_integer.
5654 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5655 (mips64_fill_gregset): Use raw_collect_integer
5656 (mips64_fill_fpregset): Use raw_supply_integer.
5657 * regcache.c (regcache::raw_supply_integer): New function.
5658 (regcache::raw_collect_integer): Likewise.
5659 * regcache.h: (regcache::raw_supply_integer): New declaration.
5660 (regcache::raw_collect_integer): Likewise.
5661
5662 2017-05-24 Yao Qi <yao.qi@linaro.org>
5663
5664 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5665 (COMMON_OBS): Add gdbarch-selftests.o.
5666 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5667 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5668 * gdbarch-selftests.c: New file.
5669 * regcache.h (regcache) <~regcache>: Mark it virtual if
5670 GDB_SELF_TEST.
5671 <raw_write>: Likewise.
5672
5673 2017-05-24 Yao Qi <yao.qi@linaro.org>
5674
5675 * regcache.c (current_regcache): Change it to
5676 regcache::current_regcache.
5677 (regcache_observer_target_changed): Update.
5678 (regcache_thread_ptid_changed): Make it a regcache static
5679 method.
5680 (regcache_thread_ptid_changed): Update.
5681 (class regcache_access): New.
5682 (current_regcache_test): Update.
5683 (_initialize_regcache): Update.
5684 * regcache.h: Include forward_list.
5685 (regcache): Declare regcache_thread_ptid_changed and declare
5686 registers_changed_ptid as friend.
5687
5688 2017-05-24 Yao Qi <yao.qi@linaro.org>
5689
5690 * i387-tdep.c (i387_register_to_value): Use register_size
5691 instead of TYPE_LENGTH.
5692 * m68k-tdep.c (m68k_register_to_value): Likewise.
5693
5694 2017-05-24 Yao Qi <yao.qi@linaro.org>
5695
5696 * i387-tdep.c (i387_convert_register_p): Return false if type
5697 code isn't TYPE_CODE_FLT.
5698
5699 2017-05-24 Yao Qi <yao.qi@linaro.org>
5700
5701 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5702 length is 4.
5703 (alpha_register_to_value): Remove type length check.
5704 (alpha_value_to_register): Likewise.
5705
5706 2017-05-24 Yao Qi <yao.qi@linaro.org>
5707
5708 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5709 TYPE_CODE_FLT.
5710
5711 2017-05-24 Yao Qi <yao.qi@linaro.org>
5712
5713 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5714 TYPE_CODE_FLT or not.
5715
5716 2017-05-24 Yao Qi <yao.qi@linaro.org>
5717
5718 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5719 * avr-tdep.c (avr_gdbarch_init): Likewise.
5720 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5721 * cris-tdep.c (cris_gdbarch_init): Likewise.
5722 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5723 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5724 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5726 * mep-tdep.c (mep_gdbarch_init): Likewise.
5727 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5728 * mips-tdep.c (mips_gdbarch_init): Likewise.
5729 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5730 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5731 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5732 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5733 * v850-tdep.c (v850_gdbarch_init): Likewise.
5734
5735 2017-05-24 Yao Qi <yao.qi@linaro.org>
5736
5737 * selftest-arch.c (tests_with_arch): Call registers_changed
5738 and reinit_frame_cache.
5739 * selftest.c (run_self_tests): Likewise.
5740
5741 2017-05-24 Yao Qi <yao.qi@linaro.org>
5742
5743 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5744 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5745
5746 2017-05-24 Yao Qi <yao.qi@linaro.org>
5747
5748 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5749 set_gdbarch_print_insn.
5750
5751 2017-05-24 Yao Qi <yao.qi@linaro.org>
5752
5753 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5754 set_gdbarch_print_insn.
5755
5756 2017-05-24 Yao Qi <yao.qi@linaro.org>
5757
5758 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5759 set_gdbarch_print_insn.
5760 * arc-tdep.c (arc_gdbarch_init): Likewise.
5761 * arch-utils.c: include dis-asm.h.
5762 (default_print_insn): New function.
5763 * arch-utils.h (default_print_insn): Declare.
5764 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5765 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5766 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5767 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5768 * frv-tdep.c (frv_gdbarch_init): Likewise.
5769 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5770 * gdbarch.sh (print_insn): Use default_print_insn.
5771 * gdbarch.c: Regenerated.
5772 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5773 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5774 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5775 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5776 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5777 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5778 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5779 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5780 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5781 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5782 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5783 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5784 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5785 * mt-tdep.c (mt_gdbarch_init): Likewise.
5786 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5787 * nios2-tdep.c (nios2_print_insn): Remove.
5788 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5789 * rx-tdep.c (rx_gdbarch_init): Likewise.
5790 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5791 * score-tdep.c (score_print_insn): Remove.
5792 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5793 * sh-tdep.c (sh_gdbarch_init): Likewise.
5794 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5795 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5796 * tic6x-tdep.c (tic6x_print_insn): Remove.
5797 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5798 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5799 * v850-tdep.c (v850_gdbarch_init): Likewise.
5800 * vax-tdep.c (vax_gdbarch_init): Likewise.
5801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5802 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5803
5804 2017-05-23 John Baldwin <jhb@FreeBSD.org>
5805
5806 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5807 (MIPS_FP0_REGNUM): Remove.
5808 (MIPS_FSR_REGNUM): Remove.
5809 (mips_fbsd_supply_fpregs): Use mips_regnum.
5810 (mips_fbsd_supply_gregs): Likewise.
5811 (mips_fbsd_collect_fpregs): Likewise.
5812 (mips_fbsd_collect_gregs): Likewise.
5813
5814 2017-05-23 John Baldwin <jhb@FreeBSD.org>
5815
5816 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5817 (getpfpregs_supplies): New function.
5818 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5819 getfpregs_supplies.
5820 (mips_fbsd_store_inferior_registers): Likewise.
5821
5822 2017-05-22 Pedro Alves <palves@redhat.com>
5823
5824 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5825 maintainer.
5826
5827 2017-05-22 Alan Hayward <alan.hayward@arm.com>
5828
5829 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5830 (store_register): Likewise.
5831 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5832 (get_decimal_float_return_value): Likewise.
5833 (do_ppc_sysv_return_value): Likewise.
5834 (ppc64_sysv_abi_push_integer): Likewise.
5835 (ppc64_sysv_abi_push_freg): Likewise.
5836 (ppc64_sysv_abi_return_value_base): Likewise.
5837 (ppc64_sysv_abi_return_value): Likewise.
5838 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5839 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5840 * rs6000-nat.c: Likewise.
5841 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
5842 (rs6000_value_to_register): Likewise.
5843 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
5844
5845 2017-05-21 Tom Tromey <tom@tromey.com>
5846
5847 PR rust/21466:
5848 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
5849 arrays as "[T]", not "[T; ]".
5850
5851 2017-05-19 Tom Tromey <tom@tromey.com>
5852
5853 PR rust/21484:
5854 * rust-lang.c (exp_descriptor_rust): New function.
5855 (rust_language_defn): Use it.
5856 * p-lang.c (pascal_language_defn): Update.
5857 * opencl-lang.c (opencl_language_defn): Update.
5858 * objc-lang.c (objc_language_defn): Update.
5859 * m2-lang.c (m2_language_defn): Update.
5860 * language.h (struct language_defn)
5861 <la_watch_location_expression>: New member.
5862 * language.c (unknown_language_defn, auto_language_defn)
5863 (local_language_defn): Update.
5864 * go-lang.c (go_language_defn): Update.
5865 * f-lang.c (f_language_defn): Update.
5866 * d-lang.c (d_language_defn): Update.
5867 * c-lang.h (c_watch_location_expression): Declare.
5868 * c-lang.c (c_watch_location_expression): New function.
5869 (c_language_defn, cplus_language_defn, asm_language_defn)
5870 (minimal_language_defn): Use it.
5871 * breakpoint.c (watch_command_1): Call
5872 la_watch_location_expression.
5873 * ada-lang.c (ada_language_defn): Update.
5874
5875 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5876
5877 PR tui/21482
5878 * gdb_curses.h (NOMACROS): Define.
5879 (NCURSES_NOMACROS): Define.
5880
5881 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5882
5883 PR tui/21482
5884 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
5885 arg to char *.
5886 * tui/tui-wingeneral.c (box_win): Likewise.
5887 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
5888 (tui_show_source_line): Likewise.
5889 (tui_show_exec_info_content): Likewise.
5890
5891 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
5892
5893 * sparc-tdep.c (sparc_structure_return_p)
5894 (sparc_arg_on_registers_p): New functions.
5895 (sparc32_store_arguments): Use them.
5896 * sparc64-tdep.c (sparc64_16_byte_align_p)
5897 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
5898 Handle TYPE_CODE_ARRAY.
5899
5900 2017-05-17 Yao Qi <yao.qi@linaro.org>
5901
5902 * cli/cli-decode.c (add_alias_cmd): New function.
5903 * command.h (add_alias_cmd): Declare.
5904 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
5905 instead call add_alias_cmd.
5906
5907 2017-05-17 Pedro Alves <palves@redhat.com>
5908
5909 * Makefile.in (nat_extra_makefile_frag): Rename to ...
5910 (nat_makefile_frag): ... this. All references updated.
5911 * configure.ac: Likewise.
5912 * configure.nat: Likewise. Enhance comments.
5913 * configure: Regenerate.
5914
5915 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5916
5917 * procfs.c (procfs_create_inferior): Change prototype to match
5918 definition.
5919
5920 2017-05-13 Eli Zaretskii <eliz@gnu.org>
5921
5922 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
5923 C++ compiler warning.
5924
5925 2017-05-12 Tom Tromey <tom@tromey.com>
5926
5927 PR rust/21483:
5928 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
5929 recurse, just call value_struct_elt directly.
5930
5931 2017-05-12 Tom Tromey <tom@tromey.com>
5932
5933 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
5934 OP_RUST_ARRAY>: Fix.
5935
5936 2017-05-12 Tom Tromey <tom@tromey.com>
5937
5938 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
5939
5940 2017-05-09 Yao Qi <yao.qi@linaro.org>
5941
5942 * regcache.c: Include <forward_list>.
5943 (struct regcache_list): Remove.
5944 (current_regcache): Update.
5945 (get_thread_arch_aspace_regcache): Update for std::forward_list.
5946 (regcache_thread_ptid_changed): Likewise.
5947 (registers_changed_ptid): Likewise.
5948 (current_regcache_size): Likewise.
5949
5950 2017-05-09 Yao Qi <yao.qi@linaro.org>
5951
5952 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
5953 (current_regcache_size): New function.
5954 (current_regcache_test): New function.
5955 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
5956
5957 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5958
5959 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
5960 (print_gp_register_row): Use get_frame_register_value.
5961
5962 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5963
5964 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
5965 (mips_supply_fpregset): Likewise.
5966 (mips64_supply_gregset): Likewise.
5967
5968 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5969
5970 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
5971 regcache->raw_supply_zeroed.
5972
5973 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5974
5975 * configure.nat: Rearrange 'case' statements to match
5976 host before cpu.
5977
5978 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5979
5980 * Makefile.in: Remove "@host_makefile_frag@". Add variables
5981 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
5982 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
5983 "@nat_extra_makefile_frag@".
5984 (Makefile): Remove dependency on "@frags@".
5985 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
5986 (data-directory/Makefile): Likewise.
5987 * config/aarch64/linux.mh: Deleted; moved contents to
5988 "gdb/configure.nat".
5989 * config/alpha/alpha-linux.mh: Likewise.
5990 * config/alpha/nbsd.mh: Likewise.
5991 * config/arm/linux.mh: Likewise.
5992 * config/arm/nbsdelf.mh: Likewise.
5993 * config/i386/cygwin.mh: Likewise.
5994 * config/i386/cygwin64.mh: Likewise.
5995 * config/i386/darwin.mh: Likewise.
5996 * config/i386/fbsd.mh: Likewise.
5997 * config/i386/fbsd64.mh: Likewise.
5998 * config/i386/go32.mh: Likewise.
5999 * config/i386/i386gnu.mh: Likewise.
6000 * config/i386/i386sol2.mh: Likewise.
6001 * config/i386/linux.mh: Likewise.
6002 * config/i386/linux64.mh: Likewise.
6003 * config/i386/mingw.mh: Likewise.
6004 * config/i386/mingw64.mh: Likewise.
6005 * config/i386/nbsd64.mh: Likewise.
6006 * config/i386/nbsdelf.mh: Likewise.
6007 * config/i386/nto.mh: Likewise.
6008 * config/i386/obsd.mh: Likewise.
6009 * config/i386/obsd64.mh: Likewise.
6010 * config/i386/sol2-64.mh: Likewise.
6011 * config/ia64/linux.mh: Likewise.
6012 * config/m32r/linux.mh: Likewise.
6013 * config/m68k/linux.mh: Likewise.
6014 * config/m68k/nbsdelf.mh: Likewise.
6015 * config/m68k/obsd.mh: Likewise.
6016 * config/m88k/obsd.mh: Likewise.
6017 * config/mips/fbsd.mh: Likewise.
6018 * config/mips/linux.mh: Likewise.
6019 * config/mips/nbsd.mh: Likewise.
6020 * config/mips/obsd64.mh: Likewise.
6021 * config/pa/linux.mh: Likewise.
6022 * config/pa/nbsd.mh: Likewise.
6023 * config/pa/obsd.mh: Likewise.
6024 * config/powerpc/aix.mh: Likewise.
6025 * config/powerpc/fbsd.mh: Likewise.
6026 * config/powerpc/linux.mh: Likewise.
6027 * config/powerpc/nbsd.mh: Likewise.
6028 * config/powerpc/obsd.mh: Likewise.
6029 * config/powerpc/ppc64-linux.mh: Likewise.
6030 * config/powerpc/spu-linux.mh: Likewise.
6031 * config/s390/linux.mh: Likewise.
6032 * config/sh/nbsd.mh: Likewise.
6033 * config/sparc/fbsd.mh: Likewise.
6034 * config/sparc/linux.mh: Likewise.
6035 * config/sparc/linux64.mh: Likewise.
6036 * config/sparc/nbsd64.mh: Likewise.
6037 * config/sparc/nbsdelf.mh: Likewise.
6038 * config/sparc/obsd64.mh: Likewise.
6039 * config/sparc/sol2.mh: Likewise.
6040 * config/tilegx/linux.mh: Likewise.
6041 * config/vax/nbsdelf.mh: Likewise.
6042 * config/vax/obsd.mh: Likewise.
6043 * config/xtensa/linux.mh: Likewise.
6044 * config/i386/i386gnu.mn: New file, with excerpts from
6045 "config/i386/i386gnu.mh".
6046 * configure: Regenerate.
6047 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6048 *.mh files under "gdb/config".
6049 * configure.nat: New file, with contents from the
6050 "gdb/config/*/*.mh" files.
6051
6052 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6053
6054 * btrace.c (btrace_clear): Free insn vector.
6055
6056 2017-05-05 Pedro Alves <palves@redhat.com>
6057
6058 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6059 * configure: Regenerate.
6060
6061 2017-05-04 Pedro Alves <palves@redhat.com>
6062
6063 * Makefile.in (SFILES): Add progspace-and-thread.c.
6064 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6065 (COMMON_OBS): Add progspace-and-thread.o.
6066 * breakpoint.c: Include "progspace-and-thread.h".
6067 (update_inserted_breakpoint_locations)
6068 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6069 Use scoped_restore_current_pspace_and_thread.
6070 (create_std_terminate_master_breakpoint): Use
6071 scoped_restore_current_program_space.
6072 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6073 (print_breakpoint_location): Use
6074 scoped_restore_current_program_space.
6075 (bp_loc_is_permanent): Use
6076 scoped_restore_current_pspace_and_thread.
6077 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6078 (download_tracepoint_locations): Use
6079 scoped_restore_current_pspace_and_thread.
6080 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6081 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6082 (enum step_over_calls_kind): Moved from inferior.h.
6083 (class scoped_restore_current_thread): New class.
6084 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6085 declaration.
6086 (scoped_restore_current_thread): New class.
6087 * infcmd.c: Include "common/gdb_optional.h".
6088 (continue_1, proceed_after_attach): Use
6089 scoped_restore_current_thread.
6090 (notice_new_inferior): Use scoped_restore_current_thread.
6091 * inferior.c: Include "progspace-and-thread.h".
6092 (restore_inferior, save_current_inferior): Delete.
6093 (add_inferior_command, clone_inferior_command): Use
6094 scoped_restore_current_pspace_and_thread.
6095 * inferior.h (scoped_restore_current_inferior): New class.
6096 * infrun.c: Include "progspace-and-thread.h" and
6097 "common/gdb_optional.h".
6098 (follow_fork_inferior): Use
6099 scoped_restore_current_pspace_and_thread.
6100 (scoped_restore_exited_inferior): New class.
6101 (handle_vfork_child_exec_or_exit): Use
6102 scoped_restore_exited_inferior,
6103 scoped_restore_current_pspace_and_thread,
6104 scoped_restore_current_thread and scoped_restore.
6105 (fetch_inferior_event): Use scoped_restore_current_thread.
6106 * linespec.c (decode_line_full, decode_line_1): Use
6107 scoped_restore_current_program_space.
6108 * mi/mi-main.c: Include "progspace-and-thread.h".
6109 (exec_continue): Use scoped_restore_current_thread.
6110 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6111 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6112 * proc-service.c (ps_pglobal_lookup): Use
6113 scoped_restore_current_program_space.
6114 * progspace-and-thread.c: New file.
6115 * progspace-and-thread.h: New file.
6116 * progspace.c (release_program_space, clone_program_space): Use
6117 scoped_restore_current_program_space.
6118 (restore_program_space, save_current_program_space)
6119 (save_current_space_and_thread): Delete.
6120 (switch_to_program_space_and_thread): Moved to
6121 progspace-and-thread.c.
6122 * progspace.h (save_current_program_space)
6123 (save_current_space_and_thread): Delete declarations.
6124 (scoped_restore_current_program_space): New class.
6125 * remote.c (remote_btrace_maybe_reopen): Use
6126 scoped_restore_current_thread.
6127 * symtab.c: Include "progspace-and-thread.h".
6128 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6129 * thread.c (print_thread_info_1): Use
6130 scoped_restore_current_thread.
6131 (struct current_thread_cleanup): Delete.
6132 (do_restore_current_thread_cleanup)
6133 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6134 (scoped_restore_current_thread::~scoped_restore_current_thread):
6135 ... this new dtor.
6136 (make_cleanup_restore_current_thread): Rename/convert to ...
6137 (scoped_restore_current_thread::scoped_restore_current_thread):
6138 ... this new ctor.
6139 (thread_apply_all_command): Use scoped_restore_current_thread.
6140 (thread_apply_command): Use scoped_restore_current_thread.
6141 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6142 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6143
6144 2017-05-04 Pedro Alves <palves@redhat.com>
6145
6146 * thread.c (make_cleanup_restore_current_thread): Move
6147 find_thread_ptid call before the is_stopped call. Assert that the
6148 thread is found. Replace is_stopped call by checking the thread's
6149 state directly. Remove unnecessary NULL-thread check.
6150
6151 2017-05-04 Pedro Alves <palves@redhat.com>
6152
6153 * corelow.c (thread_section_name): New class.
6154 (get_core_register_section, get_core_siginfo): Use it.
6155
6156 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6157
6158 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6159 (get_core_register_section): Remove xfree of NULL pointer.
6160
6161 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6162
6163 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6164 * regcache.c (regcache::raw_supply_zeroed): New function.
6165 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6166
6167 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6168
6169 * gdbarch.sh: Remove commented out definition of
6170 TARGET_CHAR_BIT.
6171 * gdbarch.h: Re-generate.
6172
6173 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6174
6175 * configure: Regenerate.
6176
6177 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6178
6179 * solib-target.c (solib_target_relocate_section_addresses):
6180 Remove num_section_bases, num_bases, segment_bases variables.
6181
6182 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6185
6186 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * solib-target.c: Include <vector>
6189 (struct lm_info_target) <~lm_info_target>: Remove.
6190 <segment_bases, section_bases>: Change type to
6191 std::vector<CORE_ADDR>.
6192 (library_list_start_segment, library_list_start_section,
6193 library_list_end_library,
6194 solib_target_relocate_section_addresses): Adjust.
6195
6196 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6197
6198 * gdbarch.sh (software_single_step): Change return type to
6199 std::vector<CORE_ADDR>.
6200 * gdbarch.c, gdbarch.h: Re-generate.
6201 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6202 Adjust.
6203 (arm_deal_with_atomic_sequence_raw): Adjust.
6204 (thumb_get_next_pcs_raw): Adjust.
6205 (arm_get_next_pcs_raw): Adjust.
6206 (arm_get_next_pcs): Adjust.
6207 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6208 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6209 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6210 (alpha_software_single_step): Adjust.
6211 * alpha-tdep.h (alpha_software_single_step): Adjust.
6212 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6213 * arm-tdep.c (arm_software_single_step): Adjust.
6214 (arm_breakpoint_kind_from_current_state): Adjust.
6215 * arm-tdep.h (arm_software_single_step): Adjust.
6216 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6217 * cris-tdep.c (cris_software_single_step): Adjust.
6218 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6219 (micromips_deal_with_atomic_sequence): Adjust.
6220 (deal_with_atomic_sequence): Adjust.
6221 (mips_software_single_step): Adjust.
6222 * mips-tdep.h (mips_software_single_step): Adjust.
6223 * moxie-tdep.c (moxie_software_single_step): Adjust.
6224 * nios2-tdep.c (nios2_software_single_step): Adjust.
6225 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6226 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6227 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6228 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6229 * sparc-tdep.c (sparc_software_single_step): Adjust.
6230 * spu-tdep.c (spu_software_single_step): Adjust.
6231 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6232
6233 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6236 * gdbarch.h: Re-generate.
6237
6238 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6239
6240 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6241 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6242 * python/py-instruction.c, python/py-instruction.h: New file.
6243 * python/py-record.c: Add py-instruction.h include.
6244 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6245 gdb.RecordInstruction.
6246 * python/python-internal.h: Add gdbpy_initialize_instruction
6247 declaration.
6248 * python/python.c (do_start_initialization): Add
6249 gdbpy_initialize_instruction.
6250
6251 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6252
6253 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6254 Remove.
6255 (btrace_func_from_recpy_func): New function.
6256 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6257 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6258 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6259 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6260 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6261 Also, use new helper functions.
6262 (btpy_list_item): Use new helper functions.
6263 (recpy_bt_function_call_history): Use new type name.
6264 (btpy_call_getset): Remove.
6265 (gdbpy_initialize_btrace): Remove code to initialize
6266 gdb.BtraceFunctionCall.
6267 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6268 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6269 recpy_bt_func_prev, recpy_bt_func_next): New export.
6270 * python/py-record.c (recpy_func_type): New static object.
6271 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6272 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6273 recpy_func_next): New function.
6274 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6275 (recpy_func_getset): New static object.
6276 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6277 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6278
6279 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6280
6281 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6282 (btpy_object, btpy_insn_type, btpy_new): Remove.
6283 (btpy_list_object): Use gdb.RecordInstruction type instead of
6284 gdb.BtraceInstruction type.
6285 (btrace_insn_from_recpy_insn): New function.
6286 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6287 btpy_new.
6288 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6289 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6290 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6291 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6292 instead of btpy_object.
6293 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6294 btpy_insn_data, btpy_insn_decode): Rename to ...
6295 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6296 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6297 recpy_bt_insn_decode): This. Also, use new helper functions.
6298 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6299 recpy_insn_type.
6300 (btpy_insn_getset): Remove.
6301 (gdbpy_initialize_btrace): Remove code to initialize
6302 gdb.BtraceInstruction. Use recpy_element_object.
6303 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6304 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6305 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6306 * python/py-record.c (recpy_insn_type): New static object.
6307 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6308 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6309 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6310 New function.
6311 (recpy_insn_getset): New static object.
6312 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6313 * python/py-record.h (recpy_element_object): New typedef.
6314 (recpy_insn_type, recpy_insn_new): New export.
6315
6316 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6317
6318 * py-record-btrace.c (btpy_insn_new): Removed.
6319 (btpy_insn_or_gap_new): New function.
6320 (btpy_insn_error): Removed.
6321 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6322 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6323 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6324 btpy_insn_or_gap_new instead of btpy_insn_new.
6325 (btpy_insn_getset): Remove btpy_insn_error.
6326 * py-record.c (recpy_gap_type): New static object.
6327 (recpy_gap_object): New typedef.
6328 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6329 recpy_gap_reason_string): New function.
6330 (recpy_gap_getset): New static object.
6331 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6332 * py-record.h (recpy_gap_new): New export.
6333
6334 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6335
6336 * python/py-record.c (recpy_ptid): Remove.
6337 (recpy_record_getset): Remove recpy_ptid.
6338
6339 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6340
6341 * btrace.c (btrace_fetch): Set inferior_ptid.
6342 * python/py-record-btrace.c: Add "py-record.h" include.
6343 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6344 recpy_bt_end, recpy_bt_instruction_history,
6345 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6346 in gdb.Record object instead of current ptid.
6347 * python/py-record.c: Include new "py-record.h" file.
6348 (recpy_record_object): Moved to py-record.h.
6349 * python/py-record.h: New file.
6350
6351 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6352
6353 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6354 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6355 indentation.
6356
6357 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6358
6359 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6360 the past maintainers section.
6361
6362 2017-04-28 Yao Qi <yao.qi@linaro.org>
6363
6364 * infcmd.c (get_return_value): Use regcache ctor, and remove
6365 cleanup.
6366
6367 2017-04-28 Yao Qi <yao.qi@linaro.org>
6368 Pedro Alves <palves@redhat.com>
6369
6370 * regcache.c (regcache::regcache): New tag dispatch ctor.
6371 (do_cooked_read): Moved above.
6372 (regcache_dup): Use the tag dispatch ctor..
6373 * regcache.h (regcache): Declare ctor, delete copy ctor and
6374 assignment operator, remove friend regcache_dup.
6375
6376 2017-04-28 Yao Qi <yao.qi@linaro.org>
6377
6378 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6379 call method save instead of regcache_cpy.
6380 * regcache.h (struct regcache): Make regcache_dup a friend.
6381
6382 2017-04-28 Yao Qi <yao.qi@linaro.org>
6383
6384 * regcache.c (struct regcache): Move to regcache.h
6385 (regcache::arch): New method.
6386 (regcache_get_ptid): Update.
6387 (get_regcache_arch): Call arch method.
6388 (get_regcache_aspace): Call method aspace.
6389 (register_buffer): Change it to method.
6390 (regcache_save): Change it to regcache::save.
6391 (regcache_restore): Likewise.
6392 (regcache_cpy_no_passthrough): Remove the declaration.
6393 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6394 (regcache_cpy_no_passthrough): Change it to method
6395 cpy_no_passthrough.
6396 (regcache_register_status): Change it to method
6397 get_register_status.
6398 (regcache_invalidate): Change it to method invalidate.
6399 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6400 (regcache_raw_update): Change it to method raw_update.
6401 (regcache_raw_read): Likewise.
6402 (regcache_raw_read_signed): Likewise.
6403 (regcache_raw_read_unsigned): Likewise.
6404 (regcache_raw_write_signed): Likewise.
6405 (regcache_raw_write_unsigned): Likewise.
6406 (regcache_cooked_read): Likewise.
6407 (regcache_cooked_read_value): Likewise.
6408 (regcache_cooked_read_signed): Likewise.
6409 (regcache_cooked_read_unsigned): Likewise.
6410 (regcache_cooked_write_signed): Likewise.
6411 (regcache_cooked_write_unsigned): Likewise.
6412 (regcache_raw_set_cached_value): Likewise.
6413 (regcache_raw_write): Likewise.
6414 (regcache_cooked_write): Likewise.
6415 (regcache_xfer_part): Likewise.
6416 (regcache_raw_read_part): Likewise.
6417 (regcache_raw_write_part): Likewise.
6418 (regcache_cooked_read_part): Likewise.
6419 (regcache_cooked_write_part): Likewise.
6420 (regcache_raw_supply): Likewise.
6421 (regcache_raw_collect): Likewise.
6422 (regcache_transfer_regset): Likewise.
6423 (regcache_supply_regset): Likewise.
6424 (regcache_collect_regset): Likewise.
6425 (regcache_debug_print_register): Likewise.
6426 (enum regcache_dump_what): Move it to regcache.h.
6427 (regcache_dump): Change it to method dump.
6428 * regcache.h (enum regcache_dump_what): New.
6429 (class regcache): New.
6430 * target.c (target_fetch_registers): Call method
6431 debug_print_register.
6432 (target_store_registers): Likewise.
6433
6434 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6435
6436 * windows-nat.c (struct lm_info_windows): Initialize field.
6437 (windows_make_so): Allocate lm_info_windows with new.
6438 (windows_free_so): Free lm_info_windows with delete.
6439
6440 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6441
6442 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6443 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6444 cleanup.
6445 (darwin_free_so): Free lm_info_darwin with delete.
6446
6447 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6448
6449 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6450 <l_addr_p>: Change type to bool.
6451 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6452 (svr4_free_so): Free lm_info_svr4 with delete.
6453 (svr4_copy_library_list): Replace memcpy with call to copy
6454 constructor.
6455 (library_list_start_library, svr4_default_sos): Allocate
6456 lm_info_svr4 with new.
6457
6458 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6459
6460 * solib-target.c (struct lm_info_target): Add destructor,
6461 initialize fields.
6462 <name>: Change type to std::string.
6463 (library_list_start_library): Allocate lm_info_target with new.
6464 (solib_target_free_library_list): Free lm_info_target with
6465 delete.
6466 (solib_target_current_sos): Adapt to std::string.
6467 (solib_target_free_so): Free lm_info_target with delete.
6468
6469 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6470
6471 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6472 fields.
6473 (frv_current_sos): Allocate lm_info_frv with new.
6474 (frv_relocate_main_executable): Free lm_info_frv with delete,
6475 allocate with new.
6476 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6477
6478 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6479
6480 * solib-frv.c (struct lm_info_frv): Fix indentation.
6481
6482 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6483
6484 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6485 map field.
6486 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6487 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6488 and allocate with new.
6489 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6490
6491 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6492
6493 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6494 <filename, member_name>: Change type to std::string.
6495 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6496 (library_list_start_library): Allocate lm_info_aix with new.
6497 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6498 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6499 with copy constructor.
6500
6501 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6502
6503 * solist.h (struct lm_info): Remove.
6504 (struct lm_info_base): New class.
6505 (struct so_list) <lm_info>: Change type to lm_info_base *.
6506 * nto-tdep.c (struct lm_info): Remove.
6507 (lm_addr): Adjust.
6508 * solib-aix.c (struct lm_info): Rename to ...
6509 (struct lm_info_aix): ... this. Extend lm_info_base.
6510 (lm_info_p): Rename to ...
6511 (lm_info_aix_p): ... this, and adjust.
6512 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6513 solib_aix_parse_libraries, library_list_start_library,
6514 solib_aix_free_library_list, solib_aix_parse_libraries,
6515 solib_aix_get_library_list,
6516 solib_aix_relocate_section_addresses, solib_aix_free_so,
6517 solib_aix_get_section_offsets,
6518 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6519 Adjust.
6520 (struct solib_aix_inferior_data) <library_list>: Adjust.
6521 * solib-darwin.c (struct lm_info): Rename to ...
6522 (struct lm_info_darwin): ... this. Extend lm_info_base.
6523 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6524 * solib-dsbt.c (struct lm_info): Rename to ...
6525 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6526 (struct dsbt_info) <main_executable_lm_info): Adjust.
6527 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6528 dsbt_relocate_section_addresses): Adjust.
6529 * solib-frv.c (struct lm_info): Rename to ...
6530 (struct lm_info_frv): ... this. Extend lm_info_base.
6531 (main_executable_lm_info): Adjust.
6532 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6533 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6534 find_canonical_descriptor_in_load_object,
6535 frv_fdpic_find_canonical_descriptor): Adjust.
6536 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6537 to lm_info_svr4.
6538 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6539 svr4_clear_so, svr4_copy_library_list,
6540 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6541 svr4_current_sos, svr4_fetch_objfile_link_map,
6542 solist_update_incremental): Adjust.
6543 * solib-svr4.h (struct lm_info_svr4): Move here from
6544 solib-svr4.c.
6545 * solib-target.c (struct lm_info): Rename to ...
6546 (struct lm_info_target): ... this. Extend lm_info_base.
6547 (lm_info_p): Rename to ...
6548 (lm_info_target_p): ... this.
6549 (solib_target_parse_libraries, library_list_start_segment,
6550 library_list_start_section, library_list_start_library,
6551 library_list_end_library, solib_target_free_library_list,
6552 solib_target_current_sos, solib_target_free_so,
6553 solib_target_relocate_section_addresses): Adjust.
6554 * windows-nat.c (struct lm_info): Rename to ...
6555 (struct lm_info_windows): ... this. Extend lm_info_base.
6556 (windows_make_so, handle_load_dll, handle_unload_dll,
6557 windows_xfer_shared_libraries): Adjust.
6558
6559 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6560
6561 * solib-darwin.c (struct darwin_so_list): Remove.
6562 (darwin_current_sos): Allocate an so_list object instead of a
6563 darwin_so_list, separately allocate an lm_info object.
6564 (darwin_free_so): Free lm_info.
6565
6566 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6567
6568 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6569 with fprintf_filtered.
6570
6571 2017-04-28 Yao Qi <yao.qi@linaro.org>
6572
6573 * regcache.c (regcache::regcache): New function.
6574 (regcache::~regcache): New function.
6575 (regcache_xmalloc_1): Remove.
6576 (regcache_xmalloc): Call new regcache.
6577 (regcache_xfree): Call delete regcache.
6578 (get_thread_arch_aspace_regcache): Call new regcache.
6579
6580 2017-04-28 Yao Qi <yao.qi@linaro.org>
6581
6582 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6583 lwp instead of ptid_get_lwp.
6584
6585 2017-04-28 Yao Qi <yao.qi@linaro.org>
6586
6587 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6588 lwp_info instead of getting from inferior_ptid.
6589
6590 2017-04-27 Keith Seitz <keiths@redhat.com>
6591
6592 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6593 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6594 (CV_CONVERSION_BADNESS): Define.
6595 (rank_one_type): Remove overly restrictive rvalue reference
6596 rank checks.
6597 Add cv-qualifier checks and subranks for type equality.
6598 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6599 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6600 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6601
6602 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6603
6604 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6605 count when creating the object.
6606
6607 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6608 Ulrich Weigand <uweigand@de.ibm.com>
6609
6610 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6611 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6612 is used in AIX.
6613 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6614 (process_xcoff_symbol): Likewise.
6615 (scan_xcoff_symtab): Likewise.
6616
6617 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6618
6619 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6620 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6621 (ia64_access_reg): Use get_frame_register_unsigned.
6622 (ia64_access_rse_reg): Likewise.
6623 (ia64_libunwind_frame_prev_register): Likewise.
6624
6625 2017-04-26 Jiong Wang <jiong.wang@arm.com>
6626
6627 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6628 * gdbarch.c: Regenerated.
6629 * gdbarch.h: Regenerated.
6630 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6631 visibility external.
6632 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6633 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6634 (enum cfa_how_kind): Move to ...
6635 (struct dwarf2_frame_state_reg_info): Likewise.
6636 (struct dwarf2_frame_state): Likewise.
6637 * dwarf2-frame.h: ... here.
6638 (dwarf2_frame_state_alloc_regs): New declaration.
6639 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6640 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6641
6642 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6643
6644 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6645 regcache_raw_read_unsigned.
6646 (xtensa_pseudo_register_write): Likewise.
6647
6648 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6649
6650 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6651 (nds32_pseudo_register_write): Likewise.
6652
6653 2017-04-25 Yao Qi <yao.qi@linaro.org>
6654
6655 * regcache.c (struct regcache) <readonly_p>: Change its type
6656 to bool.
6657 (regcache_xmalloc_1): Update parameter type and callers update.
6658
6659 2017-04-25 Yao Qi <yao.qi@linaro.org>
6660
6661 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6662 set_gdbarch_wchar_bit.
6663 * arm-tdep.c (arm_gdbarch_init): Likewise.
6664
6665 2017-04-25 Pedro Alves <palves@redhat.com>
6666
6667 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6668 (BothAreRelocatable, memcopy, memmove): Don't define.
6669 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6670 macros.
6671
6672 2017-04-25 Pedro Alves <palves@redhat.com>
6673
6674 * common/common-defs.h: Include "common/poison.h".
6675 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6676 and adjust.
6677 * common/poison.h: New file.
6678 * common/traits.h: Include <type_traits>.
6679 (Not, Or, Requires): New, moved from common/function-view.h.
6680
6681 2017-04-25 Pedro Alves <palves@redhat.com>
6682
6683 * breakpoint.h (struct breakpoint): In-class initialize all
6684 fields. Make boolean fields "bool".
6685 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6686 memset call and initializations no longer necessary.
6687
6688 2017-04-25 Pedro Alves <palves@redhat.com>
6689
6690 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6691 reference.
6692 (pt_btrace_insn): New function.
6693 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6694
6695 2017-04-25 Pedro Alves <palves@redhat.com>
6696
6697 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6698 "base" field and inherit from "bp_location" instead. Add
6699 non-default ctor.
6700 (allocate_location_exception): Use new non-default ctor.
6701 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6702 (init_bp_location): Convert to ...
6703 (bp_location::bp_location): ... this new ctor, and remove memset
6704 call.
6705 (base_breakpoint_allocate_location): Use the new non-default ctor.
6706 * breakpoint.h (bp_location): Now a class. Declare default and
6707 non-default ctors. In-class initialize all members.
6708 (init_bp_location): Remove declaration.
6709
6710 2017-04-25 Pedro Alves <palves@redhat.com>
6711
6712 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6713 assignment operator.
6714
6715 2017-04-24 Yao Qi <yao.qi@linaro.org>
6716
6717 * doublest.c (convert_doublest_to_floatformat): Call
6718 floatformat_totalsize_bytes.
6719
6720 2017-04-22 Tom Tromey <tom@tromey.com>
6721
6722 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6723 ui_out_emit_list.
6724 * stack.c (print_frame): Use ui_out_emit_list.
6725 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6726 ui_out_emit_list.
6727 * mi/mi-main.c (print_one_inferior)
6728 (mi_cmd_data_list_register_names)
6729 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6730 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6731 ui_out_emit_list.
6732 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6733 (mi_output_solib_attribs): Use ui_out_emit_list,
6734 ui_out_emit_tuple.
6735 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6736 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6737 (mi_cmd_stack_list_args, list_args_or_locals): Use
6738 ui_out_emit_list.
6739 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6740 * breakpoint.c (print_solib_event, output_thread_groups): Use
6741 ui_out_emit_list.
6742
6743 2017-04-22 Tom Tromey <tom@tromey.com>
6744
6745 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6746 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6747 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6748
6749 2017-04-22 Tom Tromey <tom@tromey.com>
6750
6751 * tracepoint.c (tvariables_info_1)
6752 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6753
6754 2017-04-22 Tom Tromey <tom@tromey.com>
6755
6756 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6757 annotate_arg_emitter.
6758 * breakpoint.c (print_mention_watchpoint)
6759 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6760 * annotate.h (struct annotate_arg_emitter): New.
6761
6762 2017-04-22 Tom Tromey <tom@tromey.com>
6763
6764 * record-btrace.c (record_btrace_insn_history)
6765 (record_btrace_insn_history_range, record_btrace_call_history)
6766 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6767 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6768 ui_out_emit_tuple.
6769 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6770 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6771 * skip.c (skip_info): Use ui_out_emit_tuple.
6772 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6773 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6774 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6775 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6776 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6777 ui_out_emit_tuple.
6778 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6779 (output_register, mi_cmd_data_read_memory)
6780 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6781 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6782 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6783 Use ui_out_emit_tuple.
6784 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6785 ui_out_emit_tuple.
6786 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6787 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6788 * linux-thread-db.c (info_auto_load_libthread_db): Use
6789 ui_out_emit_tuple.
6790 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6791 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6792 * disasm.c (do_mixed_source_and_assembly_deprecated)
6793 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6794 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6795 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6796 * breakpoint.c (print_one_breakpoint_location)
6797 (print_one_breakpoint): Use ui_out_emit_tuple.
6798 * auto-load.c (print_script, info_auto_load_cmd): Use
6799 ui_out_emit_tuple.
6800 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6801
6802 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6803
6804 * thread.c (print_thread_info_1): Remove dead code.
6805
6806 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6807
6808 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6809 GDB_SELF_TEST.
6810 * arm-tdep.c (selftests::arm_record_test): Likewise.
6811
6812 2017-04-21 Yao Qi <yao.qi@linaro.org>
6813
6814 * regcache.c (regcache_restore): Remove argument 2. Replace
6815 argument 3 with regcache. Get register status from
6816 src->register_status and get register contents from
6817 register_buffer (src, regnum).
6818 (regcache_cpy): Update.
6819
6820 2017-04-19 Pedro Alves <palves@redhat.com>
6821
6822 * gdbthread.h (thread): Add missing closing parenthesis in
6823 comment.
6824
6825 2017-04-19 Pedro Alves <palves@redhat.com>
6826
6827 * common/refcounted-object.h: New file.
6828 * gdbthread.h: Include "common/refcounted-object.h".
6829 (thread_info): Inherit from refcounted_object and add comments.
6830 (thread_info::incref, thread_info::decref)
6831 (thread_info::m_refcount): Delete.
6832 (thread_info::deletable): Use the refcounted_object::refcount()
6833 method.
6834 * inferior.c (current_inferior_): Add comment.
6835 (set_current_inferior): Increment/decrement refcounts.
6836 (prune_inferiors, remove_inferior_command): Skip inferiors marked
6837 not-deletable instead of comparing with the current inferior.
6838 (initialize_inferiors): Increment the initial inferior's refcount.
6839 * inferior.h (struct inferior): Forward declare.
6840 Include "common/refcounted-object.h".
6841 (current_inferior, set_current_inferior): Move declaration to
6842 before struct inferior's definition, and fix comment.
6843 (inferior): Inherit from refcounted_object. Add comments.
6844 * thread.c (switch_to_thread_no_regs): Reference the thread's
6845 inferior pointer directly instead of doing a ptid lookup.
6846 (switch_to_no_thread): New function.
6847 (switch_to_thread(thread_info *)): New function, factored out
6848 from ...
6849 (switch_to_thread(ptid_t)): ... this.
6850 (restore_current_thread): Delete.
6851 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
6852 fields, and add 'inf' field.
6853 (do_restore_current_thread_cleanup): Check whether old->inf is
6854 alive instead of looking up an inferior by ptid. Use
6855 switch_to_thread and switch_to_no_thread.
6856 (restore_current_thread_cleanup_dtor): Use old->inf directly
6857 instead of lookup up an inferior by id. Decref the inferior.
6858 Don't restore 'removable'.
6859 (make_cleanup_restore_current_thread): Same the inferior pointer
6860 in old, instead of the inferior number. Incref the inferior.
6861 Don't save/clear 'removable'.
6862
6863 2017-04-19 Pedro Alves <palves@redhat.com>
6864
6865 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6866 unittests/scoped_restore-selftests.c.
6867 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
6868 * common/scoped_restore.h (scoped_restore_base): Make "class".
6869 (scoped_restore_base::release): New public method.
6870 (scoped_restore_base::scoped_restore_base): New protected ctor.
6871 (scoped_restore_base::m_saved_var): New protected field.
6872 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
6873 scoped_restore_base base class instead of m_saved_var directly.
6874 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
6875 (scoped_restore_tmpl::scoped_restore_tmpl(const
6876 scoped_restore_tmpl<T>&)): Likewise.
6877 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
6878 method.
6879 (scoped_restore_tmpl::saved_var): New method.
6880 (scoped_restore_tmpl::m_saved_var): Delete.
6881 * inferior.h (inferior::detaching): Now a bool.
6882 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
6883 cleanup.
6884 * unittests/scoped_restore-selftests.c: New file.
6885
6886 2017-04-19 Pedro Alves <palves@redhat.com>
6887
6888 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
6889 Re-sort in alphabetic order.
6890
6891 2017-04-18 Pedro Alves <palves@redhat.com>
6892
6893 * xml-support.c (obstack_xml_printf): Delete.
6894 * xml-support.h (obstack_xml_printf): Delete.
6895
6896 2017-04-18 Pedro Alves <palves@redhat.com>
6897
6898 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
6899 vdebug, verror, body_text, start_element, end_element, name,
6900 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
6901 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
6902 is_xinclude>: Make private and add m_ prefix.
6903 (gdb_xml_parser::body_text): New method, based on ...
6904 (gdb_xml_body_text): ... this. Adjust.
6905 (gdb_xml_parser::vdebug): New method, based on ...
6906 (gdb_xml_debug): ... this. Adjust.
6907 (gdb_xml_parser::verror): New method, based on ...
6908 (gdb_xml_error): ... this. Adjust.
6909 (gdb_xml_parser::start_element): New method, based on ...
6910 (gdb_xml_start_element): ... this. Adjust.
6911 (gdb_xml_start_element_wrapper): Defer to
6912 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
6913 (gdb_xml_parser::end_element): New method, based on ...
6914 (gdb_xml_end_element_wrapper): ... this. Adjust.
6915 (gdb_xml_parser::~gdb_xml_parser): Adjust.
6916 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
6917 (gdb_xml_parser::use_dtd): New method, based on ...
6918 (gdb_xml_use_dtd): ... this. Adjust.
6919 (gdb_xml_parser::parse): New method, based on ...
6920 (gdb_xml_parse): ... this. Adjust.
6921 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
6922 (xinclude_start_include): Adjust to call the parser's name method.
6923 (xml_xinclude_default, xml_xinclude_start_doctype)
6924 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
6925 method.
6926 (xml_process_xincludes): Adjust to call parser methods.
6927 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
6928 declarations.
6929
6930 2017-04-18 Pedro Alves <palves@redhat.com>
6931
6932 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
6933 gdb::optional<std::string>.
6934 * xml-support.c: Include <string>.
6935 (scope_level::scope_level(scope_level &&))
6936 (scope_level::~scope_level): Delete.
6937 (scope_level::body): Now a std::string.
6938 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
6939 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
6940 parameter.
6941 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
6942 (xinclude_parsing_data::output): Now a std::string reference.
6943 (xinclude_start_include): Adjust.
6944 (xml_xinclude_default): Adjust.
6945 (xml_process_xincludes): Add 'output' parameter, and return bool.
6946 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
6947 and return bool.
6948 * xml-tdesc.c: Include <unordered_map> and <string>.
6949 (tdesc_xml_cache): Delete.
6950 (tdesc_xml_cache_s): Delete.
6951 (xml_cache): Now an std::unordered_map.
6952 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
6953 (target_fetch_description_xml): Change return type to
6954 gdb::optional<std::string>, and adjust.
6955 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
6956 (target_fetch_description_xml): Change return type to
6957 gdb::optional<std::string>.
6958
6959 2017-04-18 Pedro Alves <palves@redhat.com>
6960
6961 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6962 unittests/optional-selftests.c.
6963 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
6964 * unittests/optional-selftests.c: New file.
6965 * unittests/optional/assignment/1.cc: New file.
6966 * unittests/optional/assignment/2.cc: New file.
6967 * unittests/optional/assignment/3.cc: New file.
6968 * unittests/optional/assignment/4.cc: New file.
6969 * unittests/optional/assignment/5.cc: New file.
6970 * unittests/optional/assignment/6.cc: New file.
6971 * unittests/optional/assignment/7.cc: New file.
6972 * unittests/optional/cons/copy.cc: New file.
6973 * unittests/optional/cons/default.cc: New file.
6974 * unittests/optional/cons/move.cc: New file.
6975 * unittests/optional/cons/value.cc: New file.
6976 * unittests/optional/in_place.cc: New file.
6977 * unittests/optional/observers/1.cc: New file.
6978 * unittests/optional/observers/2.cc: New file.
6979
6980 2017-04-18 Pedro Alves <palves@redhat.com>
6981
6982 * common/gdb_optional.h: Include common/traits.h.
6983 (in_place_t): New type.
6984 (in_place): New constexpr variable.
6985 (optional::optional): Remove member initialization of
6986 m_instantiated.
6987 (optional::optional(in_place_t...)): New constructor.
6988 (optional::~optional): Use reset.
6989 (optional::optional(const optional&)): New.
6990 (optional::optional(const optional&&)): New.
6991 (optional::optional(T &)): New.
6992 (optional::optional(T &&)): New.
6993 (operator::operator=(const optional &)): New.
6994 (operator::operator=(optional &&)): New.
6995 (operator::operator= (const T &))
6996 (operator::operator= (T &&))
6997 (operator::emplace (Args &&... args)): Return a T&. Use reset.
6998 (operator::reset): New.
6999 (operator::m_instantiated):: Add in-class initializer.
7000 * common/traits.h: Include <type_traits>.
7001 (struct And): New types.
7002
7003 2017-04-18 Pedro Alves <palves@redhat.com>
7004
7005 * xml-support.c: Include <vector>.
7006 (scope_level::scope_level(const gdb_xml_element *))
7007 (scope_level::scope_level(scope_level&&)): New.
7008 (scope_level::~scope_level): New.
7009 (scope_level_s): Delete.
7010 (gdb_xml_parser::scopes): Now a std::vector.
7011 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7012 Use std::vector.
7013 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7014 scope cleanup code.
7015 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7016 of the scopes member. Use std::vector::emplace_back.
7017
7018 2017-04-18 Pedro Alves <palves@redhat.com>
7019
7020 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7021 a bool.
7022 (gdb_xml_end_element): Change type of first parameter.
7023 (gdb_xml_cleanup): Rename to ...
7024 (gdb_xml_parser::~gdb_xml_parser): ... this.
7025 (gdb_xml_create_parser_and_cleanup): Delete with ...
7026 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7027 to this new ctor.
7028 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7029 using gdb_xml_create_parser_and_cleanup.
7030 (xinclude_parsing_data): Add ctor/dtor.
7031 (xml_xinclude_cleanup): Delete.
7032 (xml_process_xincludes): Create a local xinclude_parsing_data
7033 instead of heap-allocating one. Create a local gdb_xml_parser
7034 instead of heap-allocating one with
7035 gdb_xml_create_parser_and_cleanup.
7036
7037 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7038
7039 PR threads/20743
7040 * fbsd-nat.c (resume_one_thread_cb): Remove.
7041 (resume_all_threads_cb): Remove.
7042 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7043 iterate_over_threads.
7044
7045 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7046
7047 * NEWS: Create a new section for the next release branch.
7048 Rename the section of the current branch, now that it has
7049 been cut.
7050
7051 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7052
7053 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7054 * version.in: Bump version to 8.0.50.DATE-git.
7055
7056 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7057
7058 PR gdb/21385
7059 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7060 independently of the host, and fix build breakage on Cygwin.
7061
7062 2017-04-13 Pedro Alves <palves@redhat.com>
7063
7064 * inferior.c (free_inferior): Convert to ...
7065 (inferior::~inferior): ... this dtor.
7066 (inferior::inferior): New ctor, factored out from ...
7067 (add_inferior_silent): ... here. Allocate the inferior with a new
7068 expression.
7069 (delete_inferior): Call delete instead of free_inferior.
7070 * inferior.h (gdb_environ, continuation): Forward declare.
7071 (inferior): Now a class. Add in-class initialization to all
7072 members. Make boolean fields bool, except 'detaching'.
7073 (inferior::inferior): New explicit ctor.
7074 (inferior::~inferior): New.
7075
7076 2017-04-13 Pedro Alves <palves@redhat.com>
7077
7078 * inferior.c (init_inferior_list): Delete.
7079 * inferior.h (init_inferior_list): Delete.
7080
7081 2017-04-13 Pedro Alves <palves@redhat.com>
7082
7083 PR threads/13217
7084 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7085 (top level): Call it twice, with different thread sets.
7086
7087 2017-04-13 Pedro Alves <palves@redhat.com>
7088
7089 * thread.c: Include <algorithm>.
7090 (thread_array_cleanup): Delete.
7091 (scoped_inc_dec_ref): New class.
7092 (live_threads_count): New function.
7093 (set_thread_refcount): Delete.
7094 (tp_array_compar_ascending): Now a bool.
7095 (tp_array_compar): Convert to a std::sort comparison function.
7096 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7097 and live_threads_count.
7098
7099 2017-04-13 Pedro Alves <palves@redhat.com>
7100
7101 * infrun.c (follow_fork_inferior): Also switch the current
7102 inferior.
7103
7104 2017-04-13 Pedro Alves <palves@redhat.com>
7105
7106 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7107 before calling create_internal_breakpoint.
7108
7109 2017-04-13 Pedro Alves <palves@redhat.com>
7110
7111 * fork-child.c (execv_argv): New class.
7112 (breakup_args): Refactored as ...
7113 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7114 Copy arguments to storage and replace separators with NULL
7115 terminators in place.
7116 (escape_bang_in_quoted_argument): Adjust to return bool.
7117 (execv_argv::execv_argv): New ctor.
7118 (execv_argv::init_for_shell): New method, factored out from
7119 fork_inferior. Don't strdup strings into the vector.
7120 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7121 Remove free_vector_argv call.
7122
7123 2017-04-13 Yao Qi <yao.qi@linaro.org>
7124
7125 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7126 tdep->rx_psw_type.
7127
7128 2017-04-13 Yao Qi <yao.qi@linaro.org>
7129
7130 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7131 * rx-tdep.c (rx_gdbarch_init): Likewise.
7132
7133 2017-04-13 Pedro Alves <palves@redhat.com>
7134
7135 * breakpoint.h (struct breakpoint): Reindent.
7136
7137 2017-04-13 Pedro Alves <palves@redhat.com>
7138
7139 * breakpoint.c (bp_location): Rename to ...
7140 (bp_locations): ... this. All references updated.
7141 (bp_location_count): Rename to ...
7142 (bp_locations_count): ... this. All references updated.
7143 (bp_location_placed_address_before_address_max): Rename to ...
7144 (bp_locations_placed_address_before_address_max): ... this. All
7145 references updated.
7146 (bp_location_shadow_len_after_address_max): Rename to ...
7147 (bp_locations_shadow_len_after_address_max): ... this. All
7148 references updated.
7149 (bp_location_compare_addrs): Rename to ...
7150 (bp_locations_compare_addrs): ... this. All references updated.
7151 (bp_location_compare):Rename to ...
7152 (bp_locations_compare): ... this. All references updated.
7153 (bp_location_target_extensions_update): Rename to ...
7154 (bp_locations_target_extensions_update): ... this. All references
7155 updated.
7156
7157 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7158
7159 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7160 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7161 'sgtty.h'.
7162 * common/gdb_termios.h: New file, with parts of "terminal.h".
7163 * inflow.c: Include "gdb_termios.h".
7164 * ser-unix.c: Include "gdb_termios.h".
7165 * terminal.h: Move terminal-related defines to
7166 "common/gdb_termios.h".
7167
7168 2017-04-12 Tom Tromey <tom@tromey.com>
7169
7170 * probe.c (parse_probes): Update.
7171 * location.h (delete_event_location): Don't declare.
7172 (event_location_deleter::operator()): Update.
7173 * location.c (event_location_deleter::operator()): Rename from
7174 delete_event_location.
7175 * linespec.h (linespec_result) <location>: Change type to
7176 event_location_up.
7177 * linespec.c (canonicalize_linespec, event_location_to_sals)
7178 (decode_objc): Update.
7179 (linespec_result): Don't call delete_event_location.
7180 * breakpoint.c (create_breakpoints_sal)
7181 (bkpt_probe_create_sals_from_location)
7182 (strace_marker_create_sals_from_location): Update.
7183
7184 2017-04-12 Tom Tromey <tom@tromey.com>
7185
7186 * linespec.h (struct linespec_result): Add constructor and
7187 destructor.
7188 (init_linespec_result, destroy_linespec_result)
7189 (make_cleanup_destroy_linespec_result): Don't declare.
7190 * linespec.c (init_linespec_result): Remove.
7191 (linespec_result::~linespec_result): Rename from
7192 destroy_linespec_result. Update.
7193 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7194 Remove.
7195 * breakpoint.c (create_breakpoint, break_range_command)
7196 (decode_location_default): Update.
7197 * ax-gdb.c (agent_command_1): Update.
7198
7199 2017-04-12 Tom Tromey <tom@tromey.com>
7200
7201 * remote.c (remote_download_tracepoint): Update.
7202 * python/py-breakpoint.c (bppy_get_location): Update.
7203 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7204 (gdbscm_breakpoint_location): Update.
7205 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7206 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7207 Change type to event_location_up.
7208 * breakpoint.c (create_overlay_event_breakpoint)
7209 (create_longjmp_master_breakpoint)
7210 (create_std_terminate_master_breakpoint)
7211 (create_exception_master_breakpoint)
7212 (breakpoint_event_location_empty_p, print_breakpoint_location)
7213 (print_one_breakpoint_location, create_thread_event_breakpoint)
7214 (init_breakpoint_sal, create_breakpoint)
7215 (print_recreate_ranged_breakpoint, break_range_command)
7216 (init_ada_exception_breakpoint, say_where): Update.
7217 (base_breakpoint_dtor): Don't call delete_event_location.
7218 (bkpt_print_recreate, tracepoint_print_recreate)
7219 (dprintf_print_recreate, update_static_tracepoint)
7220 (breakpoint_re_set_default): Update.
7221
7222 2017-04-12 Tom Tromey <tom@tromey.com>
7223
7224 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7225 type of "to_do". Update.
7226 (compute_stack_depth): Use std::vector.
7227
7228 2017-04-12 Tom Tromey <tom@tromey.com>
7229
7230 * printcmd.c (find_instruction_backward): Use std::vector.
7231
7232 2017-04-12 Tom Tromey <tom@tromey.com>
7233
7234 * symfile.c (objfilep): Remove typedef.
7235 (reread_symbols): Use a std::vector.
7236
7237 2017-04-12 Tom Tromey <tom@tromey.com>
7238
7239 * mi/mi-main.c (exec_direction_forward): Remove.
7240 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7241 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7242 scoped_restore.
7243 * guile/guile.c (guile_repl_command, guile_command)
7244 (gdbscm_execute_gdb_command): Use scoped_restore.
7245 * go-exp.y (go_parse): Use scoped_restore.
7246 * d-exp.y (d_parse): Use scoped_restore.
7247 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7248 * c-exp.y (c_parse): Use scoped_restore.
7249
7250 2017-04-12 Tom Tromey <tom@tromey.com>
7251
7252 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7253 (mi_parse): Update return type.
7254 (mi_parse_free): Remove.
7255 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7256 (mi_parse::~mi_parse): Rename from mi_parse_free.
7257 (mi_parse_cleanup): Remove.
7258 (mi_parse): Return a unique_ptr. Use new.
7259 * mi/mi-main.c (mi_execute_command): Update.
7260
7261 2017-04-12 Tom Tromey <tom@tromey.com>
7262
7263 * location.c (explicit_location_lex_one): Return a
7264 unique_xmalloc_ptr.
7265 (string_to_explicit_location): Update. Remove cleanups.
7266
7267 2017-04-12 Tom Tromey <tom@tromey.com>
7268
7269 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7270 (compare_value_and_voffset): Change type. Update.
7271 (compute_vtable_size): Change type of "offset_vec".
7272 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7273 (gnuv3_get_typeid): Remove extraneous declaration.
7274
7275 2017-04-12 Tom Tromey <tom@tromey.com>
7276
7277 * charset.h (wchar_iterator): Fix comment.
7278
7279 2017-04-12 Tom Tromey <tom@tromey.com>
7280
7281 * charset.c (iconv_wrapper): New class.
7282 (cleanup_iconv): Remove.
7283 (convert_between_encodings): Use it.
7284
7285 2017-04-12 Tom Tromey <tom@tromey.com>
7286
7287 * symfile.h (increment_reading_symtab): Update type.
7288 * symfile.c (decrement_reading_symtab): Remove.
7289 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7290 * psymtab.c (psymtab_to_symtab): Update.
7291 * dwarf2read.c (dw2_instantiate_symtab): Update.
7292
7293 2017-04-12 Tom Tromey <tom@tromey.com>
7294
7295 * jit.c (struct jit_reader): Declare separately. Add constructor
7296 and destructor. Change type of "handle".
7297 (loaded_jit_reader): Define separately.
7298 (jit_reader_load): Update. New "new".
7299 (jit_reader_unload_command): Use "delete".
7300 * gdb-dlfcn.h (struct dlclose_deleter): New.
7301 (gdb_dlhandle_up): New typedef.
7302 (gdb_dlopen, gdb_dlsym): Update types.
7303 (gdb_dlclose): Remove.
7304 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7305 (gdb_dlsym): Change type of "handle".
7306 (make_cleanup_dlclose): Remove.
7307 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7308 * compile/compile-c-support.c (load_libcc): Update.
7309
7310 2017-04-12 Tom Tromey <tom@tromey.com>
7311
7312 * symtab.h (find_pcs_for_symtab_line): Change return type.
7313 * symtab.c (find_pcs_for_symtab_line): Change return type.
7314 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7315 type of "vec". Update.
7316 (ltpy_get_pcs_for_line): Update.
7317 * linespec.c (decode_digits_ordinary): Update.
7318
7319 2017-04-12 Tom Tromey <tom@tromey.com>
7320
7321 * tracepoint.c (actions_command): Update.
7322 * python/python.c (python_command, python_interactive_command):
7323 Update.
7324 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7325 * guile/guile.c (guile_command): Update.
7326 * defs.h (read_command_lines, read_command_lines_1): Return
7327 command_line_up.
7328 (command_lines_deleter): New struct.
7329 (command_line_up): New typedef.
7330 * compile/compile.c (compile_code_command)
7331 (compile_print_command): Update.
7332 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7333 command_line_up.
7334 (make_cleanup_free_command_lines): Remove.
7335 * cli/cli-script.c (get_command_line, read_command_lines_1)
7336 (copy_command_lines): Return command_line_up.
7337 (while_command, if_command, read_command_lines, define_command)
7338 (document_command): Update.
7339 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7340 Remove.
7341 * breakpoint.h (breakpoint_set_commands): Change type of
7342 "commands".
7343 * breakpoint.c (breakpoint_set_commands): Change type of
7344 "commands". Update.
7345 (do_map_commands_command, update_dprintf_command_list)
7346 (create_tracepoint_from_upload): Update.
7347
7348 2017-04-12 Tom Tromey <tom@tromey.com>
7349
7350 * tracepoint.c (scope_info): Update.
7351 * spu-tdep.c (spu_catch_start): Update.
7352 * python/python.c (gdbpy_decode_line): Update.
7353 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7354 * python/py-breakpoint.c (bppy_init): Update.
7355 * probe.c (parse_probes): Update.
7356 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7357 * location.h (event_location_deleter): New struct.
7358 (event_location_up): New typedef.
7359 (new_linespec_location, new_address_location, new_probe_location)
7360 (new_explicit_location, copy_event_location)
7361 (string_to_event_location, string_to_event_location_basic)
7362 (string_to_explicit_location): Update return type.
7363 (make_cleanup_delete_event_location): Remove.
7364 * location.c (new_linespec_location, new_address_location)
7365 (new_probe_location, new_explicit_location, copy_event_location):
7366 Return event_location_up.
7367 (delete_event_location_cleanup)
7368 (make_cleanup_delete_event_location): Remove.
7369 (string_to_explicit_location, string_to_event_location_basic)
7370 (string_to_event_location): Return event_location_up.
7371 * linespec.c (canonicalize_linespec, event_location_to_sals)
7372 (decode_line_with_current_source)
7373 (decode_line_with_last_displayed, decode_objc): Update.
7374 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7375 * completer.c (location_completer): Update.
7376 * cli/cli-cmds.c (edit_command, list_command): Update.
7377 * breakpoint.c (create_overlay_event_breakpoint)
7378 (create_longjmp_master_breakpoint)
7379 (create_std_terminate_master_breakpoint)
7380 (create_exception_master_breakpoint)
7381 (create_thread_event_breakpoint): Update.
7382 (init_breakpoint_sal): Update. Remove some dead code.
7383 (create_breakpoint_sal): Change type of "location". Update.
7384 (create_breakpoints_sal, create_breakpoint, break_command_1)
7385 (dprintf_command, break_range_command, until_break_command)
7386 (init_ada_exception_breakpoint)
7387 (strace_marker_create_sals_from_location)
7388 (update_static_tracepoint, trace_command, ftrace_command)
7389 (strace_command, create_tracepoint_from_upload): Update.
7390 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7391 * ax-gdb.c (agent_command_1): Update.
7392
7393 2017-04-12 Pedro Alves <palves@redhat.com>
7394
7395 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7396 * configure.tgt: Handle i[34567]86-*-go32* and
7397 i[34567]86-*-msdosdjgpp*.
7398 * i386-tdep.c (i386_svr4_reg_to_regnum):
7399 Make extern.
7400 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7401 i386-go32-tdep.c.
7402 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7403 * i386-go32-tdep.c: New file.
7404 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7405 declarations.
7406
7407 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7408
7409 * aix-thread.c (pd_status2str): Change return type to const char *.
7410
7411 2017-04-12 Pedro Alves <palves@redhat.com>
7412
7413 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7414 calls to set_gdbarch_gnu_triplet_regexp.
7415
7416 2017-04-12 Pedro Alves <palves@redhat.com>
7417
7418 PR gdb/21323
7419 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7420 New enum value.
7421 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7422 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7423 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7424 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7425 * gdbarch.h, gdbarch.c: Regenerate.
7426 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7427 gdbarch_wchar_bit and gdbarch_wchar_signed.
7428 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7429 * arm-tdep.c (arm_gdbarch_init): Likewise.
7430 * avr-tdep.c (avr_gdbarch_init): Likewise.
7431 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7432 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7433 * i386-tdep.c (i386_go32_init_abi): Likewise.
7434 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7435 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7436 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7437 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7438 * sh-tdep.c (sh_gdbarch_init): Likewise.
7439 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7440 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7441 * windows-tdep.c (windows_init_abi): Likewise.
7442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7443
7444 2017-04-12 Pedro Alves <palves@redhat.com>
7445
7446 PR c++/21323
7447 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7448 cplus_primitive_type_char32_t>: New enum values.
7449 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7450 and cplus_primitive_type_char32_t.
7451 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7452 32, use the archtecture's built-in type for char16_t and char32_t,
7453 respectively. Otherwise, fallback to init_integer_type as before,
7454 but make the type unsigned, and issue a complaint.
7455 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7456
7457 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7458
7459 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7460 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7461
7462 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7463
7464 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7465 'const char *'.
7466
7467 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7468
7469 * common/common-utils.c (free_vector_argv): New function.
7470 * common/common-utils.h: Include <vector>.
7471 (free_vector_argv): New prototype.
7472 * darwin-nat.c (darwin_create_inferior): Rewrite function
7473 prototype in order to constify "exec_file" and accept a
7474 "std::string" for "allargs".
7475 * fork-child.c: Include <vector>.
7476 (breakup_args): Rewrite function, using C++.
7477 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7478 and accept "std::string" for "allargs". Update the code to
7479 calculate "argv" based on "allargs". Update calls to "exec_fun"
7480 and "execvp".
7481 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7482 order to constify "exec_file" and accept a "std::string" for
7483 "allargs".
7484 * go32-nat.c (go32_create_inferior): Likewise.
7485 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7486 * infcmd.c (run_command_1): Constify "exec_file". Use
7487 "std::string" for inferior arguments.
7488 * inferior.h (fork_inferior): Update prototype.
7489 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7490 prototype in order to constify "exec_file" and accept a
7491 "std::string" for "allargs".
7492 * nto-procfs.c (procfs_create_inferior): Likewise.
7493 * procfs.c (procfs_create_inferior): Likewise.
7494 * remote-sim.c (gdbsim_create_inferior): Likewise.
7495 * remote.c (extended_remote_run): Update code to accept
7496 "std::string" as argument.
7497 (extended_remote_create_inferior): Rewrite function prototype in
7498 order to constify "exec_file" and accept a "std::string" for
7499 "allargs".
7500 * rs6000-nat.c (super_create_inferior): Likewise.
7501 (rs6000_create_inferior): Likewise.
7502 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7503 * windows-nat.c (windows_create_inferior): Likewise.
7504
7505 2017-04-11 Pedro Alves <palves@redhat.com>
7506
7507 * thread.c: Fix whitespace throughout.
7508
7509 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7510
7511 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7512
7513 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7514
7515 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7516
7517 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7518
7519 PR gdb/21364
7520 * osdata.c (info_osdata): Check if 'type' is an empty string
7521 instead of NULL.
7522
7523 2017-04-10 Pedro Alves <palves@redhat.com>
7524
7525 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7526 (ptid_to_global_thread_id, in_thread_list)
7527 (do_captured_list_thread_ids, set_resumed, set_running)
7528 (set_executing, set_stop_requested, finish_thread_state)
7529 (validate_registers_access, can_access_registers_ptid)
7530 (print_thread_info_1, switch_to_thread)
7531 (do_restore_current_thread_cleanup)
7532 (make_cleanup_restore_current_thread, thread_command)
7533 (thread_name_command): Use operator== instead of ptid_equal.
7534
7535 2017-04-10 Pedro Alves <palves@redhat.com>
7536
7537 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7538 (current_thread_cleanup_chain): Delete.
7539 (restore_current_thread_cleanup_dtor)
7540 (make_cleanup_restore_current_thread): Remove references to
7541 current_thread_cleanup_chain.
7542
7543 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7544
7545 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7546 REG_UNKNOWN.
7547
7548 2017-04-10 Yao Qi <yao.qi@linaro.org>
7549
7550 PR gdb/19942
7551 * gdbthread.h (thread_info::deletable): New method.
7552 (thread_info::incref): New method.
7553 (thread_info::decref): New method.
7554 (thread_info::refcount): Move it to private.
7555 * infrun.c (save_stop_context): Call inc_refcount.
7556 (release_stop_context_cleanup): Likewise.
7557 * thread.c (set_thread_exited): New function.
7558 (init_thread_list): Delete "tp" only it is deletable, otherwise
7559 call set_thread_exited.
7560 (delete_thread_1): Call set_thread_exited.
7561 (current_thread_cleanup) <inferior_pid>: Remove.
7562 <thread>: New field.
7563 (restore_current_thread_ptid_changed): Removed.
7564 (do_restore_current_thread_cleanup): Adjust.
7565 (restore_current_thread_cleanup_dtor): Don't call
7566 find_thread_ptid.
7567 (set_thread_refcount): Use dec_refcount.
7568 (make_cleanup_restore_current_thread): Adjust.
7569 (thread_apply_all_command): Call inc_refcount.
7570 (_initialize_thread): Don't call
7571 observer_attach_thread_ptid_changed.
7572
7573 2017-04-10 Yao Qi <yao.qi@linaro.org>
7574
7575 * thread.c (delete_thread_1): Hoist code on marking thread as
7576 exited.
7577
7578 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7579
7580 * windows-nat.c (windows_detach): Initialize ptid with
7581 minus_one_ptid.
7582
7583 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7584
7585 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7586
7587 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7588
7589 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7590 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7591 (bfin_pseudo_register_write): Likewise
7592
7593 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7594
7595 * common/ptid.h (struct ptid): Change to...
7596 (class ptid_t): ... this.
7597 <ptid_t>: New constructors.
7598 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7599 matches>: New methods.
7600 <make_null, make_minus_one>: New static methods.
7601 <pid>: Rename to...
7602 <m_pid>: ...this.
7603 <lwp>: Rename to...
7604 <m_lwp>: ...this.
7605 <tid>: Rename to...
7606 <m_tid>: ...this.
7607 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7608 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7609 as references, move comment to class ptid_t.
7610 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7611 ptid_t static methods.
7612 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7613 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7614 Take ptid arguments as references, implement using ptid_t methods.
7615 * unittests/ptid-selftests.c: New file.
7616 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7617 unittests/ptid-selftests.c.
7618 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7619
7620 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7621
7622 * python/python.c (python_run_simple_file): Cast mode literal to
7623 non-const char pointer as expected by PyFile_FromString.
7624
7625 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7626
7627 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7628 minus_one_ptid and null_ptid.
7629
7630 2017-04-05 Pedro Alves <palves@redhat.com>
7631
7632 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7633 * configure: Regenerate.
7634
7635 2017-04-05 Pedro Alves <palves@redhat.com>
7636
7637 * ada-exp.y (yyerror): Constify.
7638 * ada-lang.c (bound_name, get_selections)
7639 (ada_variant_discrim_type)
7640 (ada_variant_discrim_name, ada_value_struct_elt)
7641 (ada_lookup_struct_elt_type, is_unchecked_variant)
7642 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7643 (catch_ada_exception_command_split)
7644 (catch_ada_assert_command_split, catch_assert_command)
7645 (ada_op_name): Constify.
7646 * ada-lang.h (ada_yyerror, get_selections)
7647 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7648 * arc-tdep.c (arc_print_frame_cache): Constify.
7649 * arm-tdep.c (arm_skip_stub): Constify.
7650 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7651 (gen_aggregate_elt_ref): Constify.
7652 * bcache.c (print_bcache_statistics): Constify.
7653 * bcache.h (print_bcache_statistics): Constify.
7654 * break-catch-throw.c (catch_exception_command_1):
7655 * breakpoint.c (struct ep_type_description::description):
7656 Constify.
7657 (add_solib_catchpoint): Constify.
7658 (catch_fork_command_1): Add cast.
7659 (add_catch_command): Constify.
7660 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7661 Constify.
7662 * bsd-uthread.c (bsd_uthread_state): Constify.
7663 * buildsym.c (patch_subfile_names): Constify.
7664 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7665 Constify.
7666 * c-exp.y (yyerror): Constify.
7667 (token::oper): Constify.
7668 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7669 * c-varobj.c (cplus_describe_child): Constify.
7670 * charset.c (find_charset_names): Add cast.
7671 (find_charset_names): Constify array and add const_cast.
7672 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7673 (edit_command): Constify.
7674 * cli/cli-decode.c (lookup_cmd): Constify.
7675 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7676 Constify.
7677 (struct dump_context): Constify.
7678 (add_dump_command, restore_command): Constify.
7679 * cli/cli-script.c (get_command_line): Constify.
7680 * cli/cli-script.h (get_command_line): Constify.
7681 * cli/cli-utils.c (check_for_argument): Constify.
7682 * cli/cli-utils.h (check_for_argument): Constify.
7683 * coff-pe-read.c (struct read_pe_section_data): Constify.
7684 * command.h (lookup_cmd): Constify.
7685 * common/print-utils.c (decimal2str): Constify.
7686 * completer.c (gdb_print_filename): Constify.
7687 * corefile.c (set_gnutarget): Constify.
7688 * cp-name-parser.y (yyerror): Constify.
7689 * cp-valprint.c (cp_print_class_member): Constify.
7690 * cris-tdep.c (cris_register_name, crisv32_register_name):
7691 Constify.
7692 * d-exp.y (yyerror): Constify.
7693 (struct token::oper): Constify.
7694 * d-lang.h (d_yyerror): Constify.
7695 * dbxread.c (struct header_file_location::name): Constify.
7696 (add_old_header_file, add_new_header_file, last_function_name)
7697 (dbx_next_symbol_text, add_bincl_to_list)
7698 (find_corresponding_bincl_psymtab, set_namestring)
7699 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7700 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7701 * defs.h (command_line_input, print_address_symbolic)
7702 (deprecated_readline_begin_hook): Constify.
7703 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7704 Constify.
7705 * event-top.c (handle_line_of_input): Constify and add cast.
7706 * exceptions.c (catch_errors): Constify.
7707 * exceptions.h (catch_errors): Constify.
7708 * expprint.c (print_subexp_standard, op_string, op_name)
7709 (op_name_standard, dump_raw_expression, dump_raw_expression):
7710 * expression.h (op_name, op_string, dump_raw_expression):
7711 Constify.
7712 * f-exp.y (yyerror): Constify.
7713 (struct token::oper): Constify.
7714 (struct f77_boolean_val::name): Constify.
7715 * f-lang.c (f_word_break_characters): Constify.
7716 * f-lang.h (f_yyerror): Constify.
7717 * fork-child.c (fork_inferior): Add cast.
7718 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7719 (new_variant): Constify.
7720 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7721 * gdbarch.c: Regenerate.
7722 * gdbcore.h (set_gnutarget): Constify.
7723 * go-exp.y (yyerror): Constify.
7724 (token::oper): Constify.
7725 * go-lang.h (go_yyerror): Constify.
7726 * go32-nat.c (go32_sysinfo): Constify.
7727 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7728 * guile/scm-cmd.c (cmdscm_function): Constify.
7729 * guile/scm-param.c (pascm_param_value): Constify.
7730 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7731 (h8300sx_register_name): Constify.
7732 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7733 Constify.
7734 * ia64-tdep.c (ia64_register_names): Constify.
7735 * infcmd.c (construct_inferior_arguments): Constify.
7736 (path_command, attach_post_wait): Constify.
7737 * language.c (show_range_command, show_case_command)
7738 (unk_lang_error): Constify.
7739 * language.h (language_defn::la_error)
7740 (language_defn::la_name_of_this): Constify.
7741 * linespec.c (decode_line_2): Constify.
7742 * linux-thread-db.c (thread_db_err_str): Constify.
7743 * lm32-tdep.c (lm32_register_name): Constify.
7744 * m2-exp.y (yyerror): Constify.
7745 * m2-lang.h (m2_yyerror): Constify.
7746 * m32r-tdep.c (m32r_register_names): Constify and make static.
7747 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7748 * m88k-tdep.c (m88k_register_name): Constify.
7749 * macroexp.c (appendmem): Constify.
7750 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7751 (upgrade_type, parse_external, parse_partial_symbols)
7752 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7753 (new_symbol): Constify.
7754 * memattr.c (mem_info_command): Constify.
7755 * mep-tdep.c (register_name_from_keyword): Constify.
7756 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7757 Constify.
7758 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7759 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7760 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7761 cast.
7762 (mi_execute_async_cli_command): Constify.
7763 * mips-tdep.c (mips_register_name): Constify.
7764 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7765 (am33_register_name, am33_2_register_name)
7766 * moxie-tdep.c (moxie_register_names): Constify.
7767 * nat/linux-osdata.c (osdata_type): Constify fields.
7768 * nto-tdep.c (nto_parse_redirection): Constify.
7769 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7770 (lookup_child_selector): Constify.
7771 (objc_methcall::name): Constify.
7772 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7773 (lookup_struct_typedef): Constify.
7774 * objfiles.c (pc_in_section): Constify.
7775 * objfiles.h (pc_in_section): Constify.
7776 * p-exp.y (struct token::oper): Constify.
7777 (yyerror): Constify.
7778 * p-lang.h (pascal_yyerror): Constify.
7779 * parser-defs.h (op_name_standard): Constify.
7780 (op_print::string): Constify.
7781 (exp_descriptor::op_name): Constify.
7782 * printcmd.c (print_address_symbolic): Constify.
7783 * psymtab.c (print_partial_symbols): Constify.
7784 * python/py-breakpoint.c (stop_func): Constify.
7785 (bppy_get_expression): Constify.
7786 * python/py-cmd.c (cmdpy_completer::name): Constify.
7787 (cmdpy_function): Constify.
7788 * python/py-event.c (evpy_add_attribute)
7789 (gdbpy_initialize_event_generic): Constify.
7790 * python/py-event.h (evpy_add_attribute)
7791 (gdbpy_initialize_event_generic): Constify.
7792 * python/py-evts.c (add_new_registry): Constify.
7793 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7794 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7795 * python/py-inferior.c (get_buffer): Add cast.
7796 * python/py-param.c (parm_constant::name): Constify.
7797 * python/py-unwind.c (fprint_frame_id): Constify.
7798 * python/python.c (gdbpy_parameter_value): Constify.
7799 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7800 * remote.c (memory_packet_config::name): Constify.
7801 (show_packet_config_cmd, remote_write_bytes)
7802 (remote_buffer_add_string):
7803 * reverse.c (exec_reverse_once): Constify.
7804 * rs6000-tdep.c (variant::name, variant::description): Constify.
7805 * rust-exp.y (rustyyerror): Constify.
7806 * rust-lang.c (rust_op_name): Constify.
7807 * rust-lang.h (rustyyerror): Constify.
7808 * serial.h (serial_ops::name): Constify.
7809 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7810 (sh_sh3e_register_name, sh_sh2e_register_name)
7811 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7812 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7813 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7814 (sh_sh4al_dsp_register_name): Constify.
7815 * sh64-tdep.c (sh64_register_name): Constify.
7816 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7817 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7818 * stabsread.c (patch_block_stabs, read_type_number)
7819 (ref_map::stabs, ref_add, process_reference)
7820 (symbol_reference_defined, define_symbol, define_symbol)
7821 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7822 (read_one_struct_field, read_struct_fields, read_baseclasses)
7823 (read_tilde_fields, read_struct_type, read_array_type)
7824 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7825 (read_huge_number, read_range_type, read_args, common_block_start)
7826 (find_name_end): Constify.
7827 * stabsread.h (common_block_start, define_symbol)
7828 (process_one_symbol, symbol_reference_defined, ref_add):
7829 * symfile.c (get_section_index, add_symbol_file_command):
7830 * symfile.h (get_section_index): Constify.
7831 * target-descriptions.c (tdesc_type::name): Constify.
7832 (tdesc_free_type): Add cast.
7833 * target.c (find_default_run_target):
7834 (add_deprecated_target_alias, find_default_run_target)
7835 (target_announce_detach): Constify.
7836 (do_option): Constify.
7837 * target.h (add_deprecated_target_alias): Constify.
7838 * thread.c (print_thread_info_1): Constify.
7839 * top.c (deprecated_readline_begin_hook, command_line_input):
7840 Constify.
7841 (init_main): Add casts.
7842 * top.h (handle_line_of_input): Constify.
7843 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
7844 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
7845 (tfind_command): Rename to ...
7846 (tfind_command_1): ... this and constify.
7847 (tfind_command): New function.
7848 (tfind_end_command, tfind_start_command): Adjust.
7849 (encode_source_string): Constify.
7850 * tracepoint.h (encode_source_string): Constify.
7851 * tui/tui-data.c (tui_partial_win_by_name): Constify.
7852 * tui/tui-data.h (tui_partial_win_by_name): Constify.
7853 * tui/tui-source.c (tui_set_source_content_nil): Constify.
7854 * tui/tui-source.h (tui_set_source_content_nil): Constify.
7855 * tui/tui-win.c (parse_scrolling_args): Constify.
7856 * tui/tui-windata.c (tui_erase_data_content): Constify.
7857 * tui/tui-windata.h (tui_erase_data_content): Constify.
7858 * tui/tui-winsource.c (tui_erase_source_content): Constify.
7859 * tui/tui.c (tui_enable): Add cast.
7860 * utils.c (defaulted_query): Constify.
7861 (init_page_info): Add cast.
7862 (puts_debug, subset_compare): Constify.
7863 * utils.h (subset_compare): Constify.
7864 * varobj.c (varobj_format_string): Constify.
7865 * varobj.h (varobj_format_string): Constify.
7866 * vax-tdep.c (vax_register_name): Constify.
7867 * windows-nat.c (windows_detach): Constify.
7868 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
7869 * xml-support.c (gdb_xml_end_element): Constify.
7870 * xml-tdesc.c (tdesc_start_reg): Constify.
7871 * xstormy16-tdep.c (xstormy16_register_name): Constify.
7872 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
7873 * xtensa-tdep.h (xtensa_register_t::name): Constify.
7874
7875 2017-04-05 Pedro Alves <palves@redhat.com>
7876
7877 * proc-api.c (struct trans): Constify.
7878 (procfs_note): Constify.
7879 * proc-events.c (struct trans, syscall_table):
7880 * proc-flags.c (struct trans): Constify.
7881 * proc-utils.h (procfs_note): Constify.
7882 * proc-why.c (struct trans): Constify.
7883 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
7884 (procfs_detach): Constify.
7885 * sol-thread.c (struct string_map): Constify.
7886 (td_err_string, td_state_string): Constify.
7887
7888 2017-04-05 Pedro Alves <palves@redhat.com>
7889
7890 * proc-api.c (procfs_filename): Don't initialize
7891 procfs_filename.
7892 (prepare_to_trace): Assume procfs_filename is non-NULL.
7893 (_initialize_proc_api): Give procfs_filename a default value here.
7894
7895 2017-04-05 Pedro Alves <palves@redhat.com>
7896
7897 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
7898 'cond_string' parameter.
7899 (extract_exception_regexp): Constify 'string' parameter.
7900 (catch_exception_command_1): Constify.
7901 * breakpoint.c (init_catchpoint)
7902 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
7903 parameter.
7904 (ep_parse_optional_if_clause, catch_fork_command_1)
7905 (catch_exec_command_1): Constify.
7906 * breakpoint.h (init_catchpoint): Constify 'cond_string'
7907 parameter.
7908 (ep_parse_optional_if_clause): Constify.
7909 * cli/cli-utils.c (remove_trailing_whitespace)
7910 (check_for_argument): Constify.
7911 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
7912 non-const overload.
7913 (check_for_argument): Likewise.
7914
7915 2017-04-05 Pedro Alves <palves@redhat.com>
7916
7917 * event-top.c (command_line_handler): Add cast to execute_command
7918 call.
7919 * record-btrace.c (cmd_record_btrace_bts_start)
7920 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
7921 (cmd_record_btrace_start): Add cast to execute_command call.
7922 * record-full.c (record_full_goto_insn):
7923 * record.c (record_start, record_stop): Add cast to
7924 execute_command_to_string calls.
7925 (cmd_record_start): Add cast to execute_command calls.
7926
7927 2017-04-05 Pedro Alves <palves@redhat.com>
7928
7929 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
7930 static inline function.
7931 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
7932 array and use gdb_PyArg_ParseTupleAndKeywords.
7933 * python/py-cmd.c (cmdpy_init): Likewise.
7934 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7935 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
7936 (infpy_search_memory): Likewise.
7937 * python/py-objfile.c (objfpy_add_separate_debug_file)
7938 (gdbpy_lookup_objfile): Likewise.
7939 * python/py-symbol.c (gdbpy_lookup_symbol)
7940 (gdbpy_lookup_global_symbol): Likewise.
7941 * python/py-type.c (gdbpy_lookup_type): Likewise.
7942 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
7943 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
7944 Likewise.
7945
7946 2017-04-05 Pedro Alves <palves@redhat.com>
7947
7948 * python/python-internal.h (gdb_PyGetSetDef): New type.
7949 * python/py-block.c (block_object_getset)
7950 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
7951 * python/py-event.c (event_object_getset)
7952 (finish_breakpoint_object_getset): Likewise.
7953 * python/py-inferior.c (inferior_object_getset): Likewise.
7954 * python/py-infthread.c (thread_object_getset): Likewise.
7955 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
7956 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
7957 * python/py-objfile.c (objfile_getset): Likewise.
7958 * python/py-progspace.c (pspace_getset): Likewise.
7959 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
7960 Likewise.
7961 * python/py-record.c (recpy_record_getset): Likewise.
7962 * python/py-symbol.c (symbol_object_getset): Likewise.
7963 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
7964 Likewise.
7965 * python/py-type.c (type_object_getset, field_object_getset):
7966 Likewise.
7967 * python/py-value.c (value_object_getset): Likewise.
7968
7969 2017-04-05 Pedro Alves <palves@redhat.com>
7970
7971 * python/python-internal.h (gdb_PyObject_CallMethod)
7972 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
7973 New functions.
7974 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
7975 (PySys_GetObject, PySys_SetPath): New macros.
7976
7977 2017-04-05 Pedro Alves <palves@redhat.com>
7978
7979 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
7980 info_osdata_command.
7981 * osdata.c (info_osdata_command): Rename to ...
7982 (info_osdata): ... this. Constify 'type' parameter, and remove
7983 the 'from_tty' parameter. Accept NULL TYPE.
7984 (info_osdata_command): New function.
7985 * osdata.h (info_osdata_command): Remove declaration.
7986 (info_osdata): New declaration.
7987
7988 2017-04-05 Pedro Alves <palves@redhat.com>
7989
7990 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
7991 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
7992 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
7993 parameter.
7994 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
7995 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
7996 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
7997 parameter.
7998 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
7999 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8000 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8001 (mi_cmd_file_list_exec_source_files)
8002 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8003 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8004 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8005 parameter.
8006 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8007 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8008 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8009 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8010 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8011 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8012 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8013 'command' parameter.
8014 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8015 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8016 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8017 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8018 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8019 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8020 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8021 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8022 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8023 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8024 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8025 parameter.
8026 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8027 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8028 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8029 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8030 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8031 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8032 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8033 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8034 (mi_cmd_data_list_changed_registers)
8035 (mi_cmd_data_write_register_values)
8036 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8037 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8038 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8039 (mi_cmd_list_features, mi_cmd_list_target_features)
8040 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8041 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8042 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8043 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8044 (mi_cmd_trace_frame_collected): Constify 'command'
8045 parameter.
8046 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8047 'command' parameter.
8048
8049 2017-04-05 Pedro Alves <palves@redhat.com>
8050
8051 * ada-lang.c (ada_completer_word_break_characters): Now a const
8052 array.
8053 (ada_get_gdb_completer_word_break_characters): Constify.
8054 * completer.c (gdb_completer_command_word_break_characters)
8055 (gdb_completer_file_name_break_characters)
8056 (gdb_completer_quote_characters): Now const arrays.
8057 (get_gdb_completer_quote_characters): Constify.
8058 (set_rl_completer_word_break_characters): New function.
8059 (set_gdb_completion_word_break_characters)
8060 (complete_line_internal): Use it.
8061 * completer.h (get_gdb_completer_quote_characters): Constify.
8062 (set_rl_completer_word_break_characters): Declare.
8063 * f-lang.c (f_word_break_characters): Constify.
8064 * language.c (default_word_break_characters): Constify.
8065 * language.h (language_defn::la_word_break_characters): Constify.
8066 (default_word_break_characters): Constify.
8067 * top.c (init_main): Use set_rl_completer_word_break_characters.
8068
8069 2017-04-05 Pedro Alves <palves@redhat.com>
8070
8071 * aix-thread.c (aix_thread_pid_to_str)
8072 (aix_thread_extra_thread_info): Constify.
8073 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8074 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8075 (bsd_uthread_pid_to_str): Constify.
8076 * corelow.c (core_pid_to_str): Constify.
8077 * darwin-nat.c (darwin_pid_to_str): Constify.
8078 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8079 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8080 Constify.
8081 * gnu-nat.c (gnu_pid_to_str): Constify.
8082 * go32-nat.c (go32_pid_to_str): Constify.
8083 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8084 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8085 * inferior.c (inferior_pid_to_str): Constify.
8086 * linux-nat.c (linux_nat_pid_to_str): Constify.
8087 * linux-tdep.c (linux_core_pid_to_str): Constify.
8088 * linux-thread-db.c (thread_db_pid_to_str)
8089 (thread_db_extra_thread_info): Constify.
8090 * nto-tdep.c (nto_extra_thread_info): Constify.
8091 * nto-tdep.h (nto_extra_thread_info): Constify.
8092 * obsd-nat.c (obsd_pid_to_str): Constify.
8093 * procfs.c (procfs_pid_to_str): Constify.
8094 * ravenscar-thread.c (ravenscar_extra_thread_info)
8095 (ravenscar_pid_to_str): Constify.
8096 * remote-sim.c (gdbsim_pid_to_str): Constify.
8097 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8098 Constify.
8099 * sol-thread.c (solaris_pid_to_str): Constify.
8100 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8101 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8102 * target.c (default_pid_to_str, target_pid_to_str)
8103 (normal_pid_to_str, default_pid_to_str): Constify.
8104 * target.h (target_ops::to_pid_to_str)
8105 (target_ops::to_extra_thread_info): Constify.
8106 (target_pid_to_str, normal_pid_to_str): Constify.
8107 * windows-nat.c (windows_pid_to_str): Constify.
8108 * gdbarch.sh (core_pid_to_str): Constify.
8109 * target-delegates.c: Regenerate.
8110 * gdbarch.h, gdbarch.c: Regenerate.
8111
8112 2017-04-05 Pedro Alves <palves@redhat.com>
8113
8114 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8115 the memory of the temporary warning_pre_print override.
8116 * utils.c (warning_pre_print): Constify.
8117 * utils.h (warning_pre_print): Constify.
8118
8119 2017-04-05 Pedro Alves <palves@redhat.com>
8120
8121 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8122 (shell_command): New function.
8123 (make_command): Use std::string.
8124 (init_cli_cmds): Register shell_command instead of shell_escape.
8125
8126 2017-04-05 Pedro Alves <palves@redhat.com>
8127
8128 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8129 * tracepoint.c (default_collect): Don't initialize.
8130
8131 2017-04-05 Pedro Alves <palves@redhat.com>
8132
8133 * macroexp.c (macro_buffer::shared): Now a bool.
8134 (init_buffer): Update.
8135 (init_shared_buffer): Constify 'addr' parameter.
8136 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8137 casts.
8138
8139 2017-04-05 Pedro Alves <palves@redhat.com>
8140
8141 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8142 * disasm.c (set_disassembler_options): Constify local.
8143 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8144
8145 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8146
8147 PR gdb/21352
8148 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8149 option.
8150
8151 2017-04-05 Yao Qi <yao.qi@linaro.org>
8152
8153 * frame.c (frame_unwind_register_unsigned): Call
8154 frame_unwind_register_value.
8155
8156 2017-04-05 Yao Qi <yao.qi@linaro.org>
8157
8158 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8159 Use gdb_test_multiple, and don't match anchor.
8160
8161 2017-04-05 Pedro Alves <palves@redhat.com>
8162
8163 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8164 (Write After Approval): Remove Simon Marchi.
8165
8166 2017-04-05 Pedro Alves <palves@redhat.com>
8167
8168 * common/gdb_optional.h (optional::optional): Make constexpr and
8169 initialize m_dummy.
8170
8171 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8172
8173 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8174 (amd64fbsd_jmp_buf_reg_offset): Remove.
8175 (amd64fbsd_supply_uthread): Remove function.
8176 (amd64fbsd_collect_uthread): Remove function.
8177 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8178 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8179 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8180 (fbsd-nat.c): Update comment.
8181 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8182 (i386fbsd_jmp_buf_reg_offset): Remove.
8183 (i386fbsd_supply_uthread): Remove function.
8184 (i386fbsd_collect_uthread): Remove function.
8185 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8186
8187 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8188
8189 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8190 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8191 * NEWS: Mention that support for FreeBSD/alpha was removed.
8192 * alpha-fbsd-tdep.c: Delete file.
8193 * config/alpha/fbsd.mh: Delete file.
8194 * configure.host: Delete alpha*-*-freebsd* and
8195 alpha*-*-kfreebsd*-gnu.
8196 * configure.tgt: Delete alpha*-*-freebsd* and
8197 alpha*-*-kfreebsd*-gnu.
8198
8199 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8200
8201 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8202 amd64bsd_store_inferior_registers): Use ptid from regcache.
8203
8204 2017-04-04 Pedro Alves <palves@redhat.com>
8205
8206 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8207 data fields, make them private and add "m_" prefixes.
8208 (lnp_state_machine::lnp_state_machine): New ctor.
8209 (record_line, check_line_address, handle_set_discriminator)
8210 (handle_set_address, handle_advance_pc, handle_special_opcode)
8211 (handle_advance_line, handle_set_file, handle_negate_stmt)
8212 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8213 (end_sequence, advance_line): New methods.
8214 (m_gdbarch, m_record_lines_p): New fields.
8215 (lnp_reader_state): Delete.
8216 (dwarf_record_line): Rename to ...
8217 (lnp_state_machine::record_line): ... adjust.
8218 (init_lnp_state_machine): Delete.
8219 (lnp_state_machine::lnp_state_machine): New.
8220 (check_line_address): Rename to ...
8221 (lnp_state_machine::check_line_address): This.
8222 (dwarf_decode_lines_1): Remove reference to "reader_state".
8223 Adjust lnp_state_machine having a non-default ctor. Use bool.
8224 State machine internal state manipulation moved to
8225 lnp_state_machine methods.
8226
8227 2017-04-04 Pedro Alves <palves@redhat.com>
8228
8229 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8230 unittests/offset-type-selftests.c.
8231 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8232 * common/offset-type.h: New file.
8233 * common/preprocessor.h: New file.
8234 * common/traits.h: New file.
8235 * common/valid-expr.h: New file.
8236 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8237 sect_offset and cu_offset strong typedefs throughout.
8238 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8239 typedefs throughout.
8240 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8241 sect_offset and cu_offset strong typedefs throughout.
8242 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8243 typedefs throughout.
8244 * gdbtypes.h: Include "common/offset-type.h".
8245 (cu_offset): Now an offset type (strong typedef) instead of a
8246 struct.
8247 (sect_offset): Likewise.
8248 (union call_site_parameter_u): Rename "param_offset" field to
8249 "param_cu_off".
8250 * unittests/offset-type-selftests.c: New file.
8251
8252 2017-04-04 Pedro Alves <palves@redhat.com>
8253
8254 * common/underlying.h: New file.
8255 * dwarf2read.c: Include "common/gdb_optional.h" and
8256 "common/underlying.h".
8257 (dir_index, file_name_index): New types.
8258 (file_entry): Use them.
8259 (file_entry::include): Use to_underlying.
8260 (line_header::add_file_name): Use dir_index.
8261 (read_formatted_entries): Use gdb::optional. Read form before
8262 writting to file_entry.
8263 (dwarf_decode_line_header): Use dir_index.
8264 (lnp_state_machine::current_file): Use to_underlying.
8265 (lnp_state_machine::file): Change type to file_name_index.
8266 (dwarf_record_line): Use to_underlying.
8267 (init_lnp_state_machine): Use file_name_index.
8268 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8269
8270 2017-04-04 Pedro Alves <palves@redhat.com>
8271
8272 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8273 operator bool, has_value and get methods.
8274
8275 2017-04-04 Pedro Alves <palves@redhat.com>
8276
8277 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8278 fields.
8279 (line_header): Initialize all data fields. Change type of
8280 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8281 Change type of include_dirs to std::vector<const char *>. Remove
8282 num_include_dirs, include_dirs_size. Change type of file_names to
8283 std::vector<file_entry>. Remove num_file_names, file_names_size.
8284 (line_header::line_header): New.
8285 (line_header::add_include_dir, line_header::add_file_name): New
8286 methods.
8287 (line_header::include_dir_at): Remove NULL check.
8288 (line_header::file_name_at): Add const overload.
8289 (line_header_up): New unique_ptr typedef.
8290 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8291 std::vector. Remove free_line_header call.
8292 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8293 free_line_header call.
8294 (free_cu_line_header): Delete.
8295 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8296 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8297 Adjust to use std::vector.
8298 (free_line_header): Delete.
8299 (free_line_header_voidp): Use delete.
8300 (add_include_dir): Replace with ...
8301 (line_header::add_include_dir): ... this method. Use std::vector.
8302 (add_file_name): Replace with ...
8303 (line_header::add_file_name): ... this method. Use std::vector.
8304 (add_include_dir_stub): Delete.
8305 (read_formatted_entries): Remove memset.
8306 (dwarf_decode_line_header): Return a line_header_up instead of a
8307 raw pointer. Remove cleanup handling. Pass lambdas to
8308 read_formatted_entries. Adjust to use line_header methods.
8309 (dwarf_decode_lines_1): Adjust to use line_header methods.
8310 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8311 use std::vector.
8312
8313 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8314
8315 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8316 instead of struct ptid.
8317
8318 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8319
8320 * frame.c (get_frame_register_bytes): Unwind using value.
8321 (put_frame_register_bytes): Likewise.
8322
8323 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8324
8325 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8326 aggregate-like.
8327
8328 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8329
8330 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8331
8332 2017-03-29 Yao Qi <yao.qi@linaro.org>
8333
8334 * gdbthread.h (struct thread_info): Declare constructor and
8335 destructor. Add some in-class member initializers.
8336 * thread.c (free_thread): Remove.
8337 (init_thread_list): Call delete instead of free_thread.
8338 (new_thread): Call thread_info constructor.
8339 (thread_info::thread_info): New function.
8340 (thread_info::~thread_info): New function.
8341 (delete_thread_1): Call delete instead of free_thread.
8342 (make_cleanup_restore_current_thread): Move tp and frame to
8343 inner block.
8344
8345 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8346
8347 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8348 (arc_skip_prologue): Likewise.
8349 (arc_make_frame_cache): Likewise.
8350 (arc_pv_get_operand): New function.
8351 (arc_is_in_prologue): Likewise.
8352 (arc_analyze_prologue): Likewise.
8353 (arc_print_frame_cache): Likewise.
8354 (MAX_PROLOGUE_LENGTH): New constant.
8355
8356 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8357
8358 * configure.tgt: Add arc-insn.o.
8359 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8360 (dump_arc_instruction_command): New function.
8361 (arc_fprintf_disasm): Likewise.
8362 (arc_disassemble_info): Likewise.
8363 (arc_insn_get_operand_value): Likewise.
8364 (arc_insn_get_operand_value_signed): Likewise.
8365 (arc_insn_get_memory_base_reg): Likewise.
8366 (arc_insn_get_memory_offset): Likewise.
8367 (arc_insn_get_branch_target): Likewise.
8368 (arc_insn_dump): Likewise.
8369 (arc_insn_get_linear_next_pc): Likewise.
8370 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8371 (arc_disassemble_info): Likewise.
8372 (arc_insn_get_branch_target): Likewise.
8373 (arc_insn_get_linear_next_pc): Likewise.
8374 * NEWS: Mention new "maint print arc arc-instruction".
8375
8376 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8377
8378 * arc-tdep (maintenance_print_arc_list): New variable.
8379 (maintenance_print_arc_command): New function.
8380
8381 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8382
8383 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8384 Add "limm" and "reserved".
8385 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8386 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8387 * arc-tdep.h (arc_regnum): Likewise.
8388
8389 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8390
8391 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8392 for THREADPTR register.
8393 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8394 register.
8395 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8396 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8397 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8398
8399 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8400
8401 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8402 registers above gdbarch_num_regs (gdbarch) as privileged in
8403 call0 ABI.
8404
8405 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8406
8407 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8408 for a single specified register or for all registers in
8409 a0_base..a0_base + C0_NREGS range.
8410 (supply_gregset_reg): Call regcache_raw_supply for a single
8411 specified register or for all registers in a0_base..a0_base +
8412 C0_NREGS range.
8413
8414 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8415
8416 * arch/xtensa.h (C0_NREGS): Add definition.
8417 * xtensa-tdep.c (C0_NREGS): Remove definition.
8418
8419 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8420
8421 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8422 Drop xtensa_default_isa initialization.
8423 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8424
8425 2017-03-27 Pedro Alves <palves@redhat.com>
8426
8427 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8428 (file_entry::include_dir): New method.
8429 (line_header::include_dir_at, line_header::file_name_at): New
8430 methods.
8431 (setup_type_unit_groups, setup_type_unit_groups)
8432 (psymtab_include_file_name): Simplify using the new methods.
8433 (lnp_state_machine) <the_line_header>: New field.
8434 <file>: Add comment.
8435 (lnp_state_machine::current_file): New method.
8436 (dwarf_record_line): Simplify using the new methods.
8437 (init_lnp_state_machine): Initialize the "the_line_header" field.
8438 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8439 Simplify using the new methods.
8440
8441 2017-03-27 Pedro Alves <palves@redhat.com>
8442
8443 * cp-name-parser.y (make_empty): Delete.
8444 (demangler_special, nested_name, ptr_operator, array_indicator)
8445 (direct_declarator, declarator_1): Use fill_comp instead of
8446 make_empty.
8447
8448 2017-03-27 Pedro Alves <palves@redhat.com>
8449
8450 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8451 to ATTRIBUTE_PRINTF.
8452 * solib-target.c (library_list_start_list): Print "string" not
8453 "version".
8454 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8455 gdb_xml_error call.
8456
8457 2017-03-27 Pedro Alves <palves@redhat.com>
8458
8459 * dwarf2read.c (struct file_and_directory): New.
8460 (dwarf2_get_dwz_file): Adjust to use std::string.
8461 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8462 (find_file_and_directory): Adjust to return a file_and_directory
8463 object.
8464 (read_file_scope): Adjust to use file_and_directory. Remove
8465 make_cleanup/do_cleanups calls.
8466 (open_and_init_dwp_file): Adjust to use std::string. Remove
8467 make_cleanup/do_cleanups calls.
8468 * python/python.c (do_start_initialization): Adjust to ldirname
8469 returning a std::string.
8470 * utils.c (ldirname): Now returns a std::string.
8471 * utils.h (ldirname): Change return type to std::string.
8472 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8473 returning a std::string.
8474 * xml-tdesc.c (file_read_description_xml): Likewise.
8475
8476 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8477
8478 * regcache.c (regcache_debug_print_register): New function.
8479 * regcache.h (regcache_debug_print_register): New declaration.
8480 * target.c (debug_print_register): Remove.
8481 (target_fetch_registers): Call regcache_debug_print_register.
8482 (target_store_registers): Likewise.
8483
8484 2017-03-24 Pádraig Brady <pbrady@fb.com>
8485
8486 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8487 reference beyond the 'lh->include_dirs' array before accessing to
8488 it.
8489 (psymtab_include_file_name): Likewise.
8490 (dwarf_decode_lines_1): Likewise.
8491 (dwarf_decode_lines): Likewise.
8492 (file_file_name): Likewise.
8493
8494 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8495
8496 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8497 inferior_ptid.
8498 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8499 ps_lsetfpregs): Likewise.
8500 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8501 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8502 ps_lsetfpregs): Likewise.
8503 * target.c (target_fetch_registers, target_store_registers):
8504 Remove asserts.
8505
8506 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8507
8508 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8509
8510 2017-03-23 Yao Qi <yao.qi@linaro.org>
8511
8512 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8513 (_initialize_aarch64_tdep): Register it.
8514 (aarch64_record_load_store): Handle PRFM instruction.
8515 (aarch64_process_record_test): New function.
8516
8517 2017-03-23 Yao Qi <yao.qi@linaro.org>
8518
8519 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8520 indentation.
8521
8522 2017-03-23 Yao Qi <yao.qi@linaro.org>
8523
8524 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8525
8526 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8527
8528 python/python.c (do_start_initialization): Fix memory leak.
8529
8530 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8531
8532 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8533 using get_ptrace_pid.
8534 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8535 inferior_ptid.
8536 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8537 inferior_ptid instead of pid.
8538
8539 2017-03-22 Yao Qi <yao.qi@linaro.org>
8540
8541 * aarch64-tdep.c: Wrap locally used classes in anonymous
8542 namespace.
8543 * arm-tdep.c: Likewise.
8544 * linespec.c: Likewise.
8545 * ui-out.c: Likewise.
8546
8547 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8548
8549 PR gdb/19637
8550 * python/lib/gdb/printer/bound_registers.py: Import sys.
8551
8552 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8553
8554 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8555 windows_thread_info parameter and use it instead of
8556 current_thread.
8557 (windows_fetch_inferior_registers): Don't set current_thread,
8558 pass the thread to do_windows_fetch_inferior_registers. Use
8559 ptid from regcache instead of inferior_ptid.
8560 (do_windows_store_inferior_registers): Add windows_thread_info
8561 parameter and use it instead of current_thread.
8562 (windows_store_inferior_registers): Don't set current_thread,
8563 pass the thread to do_windows_store_inferior_registers. Use
8564 ptid from regcache instead of inferior_ptid.
8565
8566 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8567
8568 * ser-mingw.c (ser_windows_raw): Remove reference to
8569 struct serial::current_timeout.
8570
8571 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8572
8573 PR tdep/20928
8574 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8575 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8576 (sparc64_fsr_type): Fix %fsr decoding.
8577
8578 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8579
8580 * python/py-record-btrace.c (btpy_insn_data): Change return type
8581 for Python 2.
8582
8583 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8584
8585 * spu-linux-nat.c (spu_fetch_inferior_registers,
8586 spu_store_inferior_registers): Use ptid from regcache, set and
8587 restore inferior_ptid.
8588 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8589 Likewise.
8590
8591 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8592
8593 * i386-linux-nat.c (fetch_register, store_register,
8594 i386_linux_fetch_inferior_registers,
8595 i386_linux_store_inferior_registers): Use ptid from regcache.
8596 * ia64-linux-nat.c (ia64_linux_fetch_register,
8597 ia64_linux_store_register): Likewise.
8598 * inf-ptrace.c (inf_ptrace_fetch_register,
8599 inf_ptrace_store_register): Likewise.
8600 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8601 m32r_linux_store_inferior_registers): Likewise.
8602 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8603 m68kbsd_store_inferior_registers): Likewise.
8604 * m68k-linux-nat.c (fetch_register, store_register,
8605 m68k_linux_fetch_inferior_registers,
8606 m68k_linux_store_inferior_registers): Likewise.
8607 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8608 m88kbsd_store_inferior_registers): Likewise.
8609 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8610 mips_fbsd_store_inferior_registers): Likewise.
8611 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8612 mips64_linux_regsets_store_registers): Likewise.
8613 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8614 mipsnbsd_store_inferior_registers): Likewise.
8615 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8616 mips64obsd_store_inferior_registers): Likewise.
8617 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8618 Likewise.
8619 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8620 ppcfbsd_store_inferior_registers): Likewise.
8621 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8622 ppc_linux_store_inferior_registers): Likewise.
8623 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8624 ppcnbsd_store_inferior_registers): Likewise.
8625 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8626 ppcobsd_store_registers): Likewise.
8627 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8628 Likewise.
8629 * ravenscar-thread.c (ravenscar_fetch_registers,
8630 ravenscar_store_registers, ravenscar_prepare_to_store):
8631 Likewise.
8632 * record-btrace.c (record_btrace_fetch_registers,
8633 record_btrace_store_registers, record_btrace_prepare_to_store):
8634 Likewise.
8635 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8636 Lookup inferior using ptid from regcache, instead of
8637 current_inferior.
8638 * remote.c (remote_fetch_registers, remote_store_registers): Use
8639 ptid from regcache.
8640 * rs6000-nat.c (fetch_register, store_register): Likewise.
8641 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8642 s390_linux_store_inferior_registers): Likewise.
8643 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8644 shnbsd_store_inferior_registers): Likewise.
8645 * sol-thread.c (sol_thread_fetch_registers,
8646 sol_thread_store_registers): Likewise.
8647 * sparc-nat.c (sparc_fetch_inferior_registers,
8648 sparc_store_inferior_registers): Likewise.
8649 * tilegx-linux-nat.c (fetch_inferior_registers,
8650 store_inferior_registers): Likewise.
8651 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8652 vaxbsd_store_inferior_registers): Likewise.
8653 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8654 store_xtregs): Likewise.
8655
8656 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8657
8658 PR gdb/14441
8659 * NEWS: Mention support for rvalue references in GDB and python.
8660 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8661 supports both lvalue and rvalue references.
8662
8663 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8664
8665 PR gdb/14441
8666 * gdbtypes.c (rank_one_type): Implement overloading
8667 resolution rules regarding rvalue references.
8668
8669 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8670
8671 PR gdb/14441
8672 * aarch64-tdep.c (aarch64_type_align)
8673 (aarch64_extract_return_value, aarch64_store_return_value): Change
8674 lvalue reference type checks to general reference type checks.
8675 * amd64-tdep.c (amd64_classify): Likewise.
8676 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8677 Likewise.
8678 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8679 (arm_store_return_value): Likewise.
8680 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8681 * c-typeprint.c (c_print_type): Likewise.
8682 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8683 (cplus_number_of_children, cplus_describe_child): Likewise.
8684 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8685 * completer.c (expression_completer): Likewise.
8686 * cp-support.c (make_symbol_overload_list_adl_namespace):
8687 Likewise.
8688 * darwin-nat-info.c (info_mach_region_command): Likewise.
8689 * dwarf2loc.c (entry_data_value_coerce_ref)
8690 (value_of_dwarf_reg_entry): Likewise.
8691 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8692 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8693 Likewise.
8694 * findvar.c (extract_typed_address, store_typed_address):
8695 Likewise.
8696 * gdbtypes.c (rank_one_type): Likewise.
8697 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8698 * infcall.c (value_arg_coerce): Likewise.
8699 * language.c (pointer_type): Likewise.
8700 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8701 Likewise.
8702 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8703 * mn10300-tdep.c (mn10300_type_align): Likewise.
8704 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8705 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8706 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8707 Likewise.
8708 * printcmd.c (print_formatted, x_command): Likewise.
8709 * python/py-type.c (typy_get_composite, typy_template_argument):
8710 Likewise.
8711 * python/py-value.c (valpy_referenced_value)
8712 (valpy_get_dynamic_type, value_has_field): Likewise.
8713 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8714 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8715 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8716 * spu-tdep.c (spu_scalar_value_p): Likewise.
8717 * symtab.c (lookup_symbol_aux): Likewise.
8718 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8719 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8720 Likewise.
8721 * valops.c (value_cast_pointers, value_cast)
8722 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8723 (value_struct_elt, value_struct_elt_bitpos)
8724 (value_find_oload_method_list, find_overload_match)
8725 (value_rtti_indirect_type): Likewise.
8726 * valprint.c (val_print_scalar_type_p, generic_val_print):
8727 Likewise.
8728 * value.c (value_actual_type, value_as_address, unpack_long)
8729 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8730 (coerce_ref): Likewise.
8731 * varobj.c (varobj_get_value_type): Likewise.
8732
8733 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8734
8735 PR gdb/14441
8736 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8737 table of constants.
8738 * python/lib/gdb/command/explore.py: Support exploring values
8739 of rvalue reference types.
8740 * python/lib/gdb/types.py: Implement get_basic_type() for
8741 rvalue reference types.
8742 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8743 constant.
8744 * python/py-value.c (valpy_getitem): Add an rvalue reference
8745 check.
8746 (valpy_reference_value): Add new parameter "refcode".
8747 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8748 New wrappers for valpy_reference_value().
8749 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8750 (gdbpy_invoke_xmethod): Likewise.
8751
8752 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8753
8754 PR gdb/14441
8755 * dwarf2read.c (process_die, read_type_die_1): Handle the
8756 DW_TAG_rvalue_reference_type DIE.
8757 (read_tag_reference_type): Add new parameter "refcode".
8758
8759 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8760
8761 PR gdb/14441
8762 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8763 (c_type_print_modifier, c_type_print_varspec_suffix)
8764 (c_type_print_base): Support printing rvalue reference types.
8765 * c-valprint.c (c_val_print, c_value_print): Support printing
8766 rvalue reference values.
8767
8768 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8769
8770 PR gdb/14441
8771 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8772 typename.
8773 * cp-support.c (replace_typedefs): Handle
8774 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8775 * python/py-type.c (typy_lookup_type): Likewise.
8776
8777 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8778
8779 PR gdb/14441
8780 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8781 * parse.c (insert_type): Change assert statement.
8782 (follow_types): Handle rvalue reference types.
8783 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8784 constant.
8785
8786 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8787
8788 PR gdb/14441
8789 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8790 value_ref() interface.
8791 * c-valprint.c (c_value_print): Likewise.
8792 * infcall.c (value_arg_coerce): Likewise.
8793 * python/py-value.c (valpy_reference_value): Likewise.
8794 * valops.c (value_cast, value_reinterpret_cast)
8795 (value_dynamic_cast, typecmp): Likewise.
8796 (value_ref): Parameterize by kind of return value reference type.
8797 * value.h (value_ref): Add new parameter "refcode".
8798
8799 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8800
8801 PR gdb/14441
8802 * dwarf2read.c (read_tag_reference_type): Use
8803 lookup_lvalue_reference_type() instead of lookup_reference_type().
8804 * eval.c (evaluate_subexp_standard): Likewise.
8805 * f-exp.y: Likewise.
8806 * gdbtypes.c (make_reference_type, lookup_reference_type):
8807 Generalize with rvalue reference types.
8808 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8809 convenience wrappers for lookup_reference_type().
8810 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8811 reference kind parameter.
8812 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8813 wrappers for lookup_reference_type().
8814 * guile/scm-type.c (gdbscm_type_reference): Use
8815 lookup_lvalue_reference_type() instead of lookup_reference_type().
8816 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8817 * parse.c (follow_types): Likewise.
8818 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8819 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8820 Likewise.
8821 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8822 (gdbpy_invoke_xmethod): Likewise.
8823 * stabsread.c: Provide extra argument to make_reference_type()
8824 call.
8825 * valops.c (value_ref, value_rtti_indirect_type): Use
8826 lookup_lvalue_reference_type() instead of lookup_reference_type().
8827
8828 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8829
8830 PR gdb/14441
8831 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8832 (TYPE_IS_REFERENCE): New macro.
8833 (struct type): Add rvalue_reference_type field.
8834 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
8835
8836 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8837
8838 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
8839 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
8840 New function definition.
8841 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
8842 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
8843 New function declaration.
8844 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
8845 * mi/mi-interp.h: New file.
8846 * solib.c (info_sharedlibrary_command): Replace for loop with
8847 ALL_SO_LIBS macro
8848 * solib.h (update_solib_list): New function declaration.
8849 (so_list_head): Move macro.
8850 * solist.h (ALL_SO_LIBS): New macro.
8851
8852 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8853
8854 * infcmd.c (post_create_inferior): Remove unused argument in
8855 call to solib_add.
8856 * remote.c (remote_start_remote): Likewise.
8857 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
8858 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
8859 (enable_break): Likewise.
8860 * solib.c (update_solib_list): Remove unused target argument
8861 and its documentation.
8862 (solib_add): Remove unused target argument. Remove unused
8863 argument in call to update_solib_list.
8864 (info_sharedlibrary_command): Remove unused argument in call
8865 to update_solib_list.
8866 (sharedlibrary_command): Remove unused argument in call to
8867 solib_add.
8868 (handle_solib_event): Likewise.
8869 (reload_shared_libraries): Likewise.
8870 * solib.h (solib_add): Remove unused target argument.
8871
8872 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
8873
8874 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
8875 (s390_displaced_step_fixup): Cover relative branches with the
8876 default fixup handling. This fixes lack of support for some
8877 relative branch instructions.
8878
8879 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8880
8881 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
8882 ptid from regcache.
8883
8884 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8885
8886 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
8887 i386_darwin_store_inferior_registers): Use ptid from regcache.
8888
8889 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8890
8891 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
8892 i386bsd_store_inferior_registers): Use ptid from regcache.
8893
8894 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8895
8896 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
8897 hppaobsd_store_registers): Use ptid from regcache.
8898
8899 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8900
8901 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
8902 hppanbsd_store_registers): Use ptid from regcache.
8903
8904 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8905
8906 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
8907 from regcache. Use get_ptrace_pid.
8908
8909 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8910
8911 * corelow.c (get_core_register_section): Use ptid from regcache,
8912 update doc.
8913
8914 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8915
8916 * bsd-uthread.c (bsd_uthread_fetch_registers,
8917 bsd_uthread_store_registers): Use ptid from regcache, set and
8918 restore inferior_ptid.
8919
8920 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8921
8922 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
8923 fetch_fp_regs, store_register, store_regs, store_fp_register,
8924 store_fp_regs): Use ptid from regcache.
8925
8926 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8927
8928 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
8929 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
8930 store_vfp_regs): Use ptid from regcache.
8931
8932 2017-03-17 Pedro Alves <palves@redhat.com>
8933
8934 PR remote/21188
8935 * ser-base.c (ser_base_wait_for): Add comment.
8936 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
8937 version.
8938 * ser-unix.c (hardwire_raw): Remove reference to
8939 scb->current_timeout.
8940 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
8941 (hardwire_ops): Install ser_base_readchar instead of
8942 hardwire_readchar.
8943 * serial.h (struct serial) <current_timeout, timeout_remaining>:
8944 Remove fields.
8945
8946 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
8947
8948 PR gdb/19637
8949 * python/lib/gdb/printer/bound_registers.py: Add support for
8950 Python 3.
8951
8952 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8953
8954 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
8955 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
8956 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
8957 byte_offset to subobj_byte_offset. Fix the handling of
8958 DWARF_VALUE_STACK on big-endian targets when coming via an
8959 implicit pointer.
8960 (dwarf2_evaluate_loc_desc): Adjust call to
8961 dwarf2_evaluate_loc_desc_full.
8962 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
8963 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
8964
8965 2017-03-16 Yao Qi <yao.qi@linaro.org>
8966
8967 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
8968 and REVSH instructions.
8969
8970 2017-03-16 Yao Qi <yao.qi@linaro.org>
8971
8972 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
8973 (arm_record_test): Declare.
8974 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
8975 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
8976 align with the manual.
8977 (thumb_record_misc): Adjust the code order to align with the
8978 manual.
8979 (thumb2_record_decode_insn_handler): Fix instruction matching.
8980 (instruction_reader_thumb): New class.
8981 (arm_record_test): New function.
8982
8983 2017-03-16 Yao Qi <yao.qi@linaro.org>
8984
8985 * arm-tdep.c (abstract_memory_reader): New class.
8986 (instruction_reader): New class.
8987 (extract_arm_insn): Add argument 'reader'. Callers updated.
8988 (decode_insn): Likewise.
8989
8990 2017-03-16 Doug Evans <dje@google.com>
8991
8992 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
8993 member. Change type of TYPE member to SCM. All uses updated.
8994 (lsscm_make_lazy_string_smob): Add assert.
8995 (lsscm_make_lazy_string): Flag bad length values.
8996 (lsscm_elt_type): New function.
8997 (gdbscm_lazy_string_to_value): Rewrite to use
8998 lsscm_safe_lazy_string_to_value.
8999 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9000 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9001 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9002 in incoming type.
9003 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9004 * guile/scm-type.c (tyscm_scm_to_type): New function.
9005
9006 2017-03-15 Doug Evans <dje@google.com>
9007
9008 PR python/17728, python/18439, python/18779
9009 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9010 member. Change type of TYPE member to PyObject *. All uses updated.
9011 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9012 (gdbpy_create_lazy_string_object): Flag bad length values.
9013 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9014 Handle typedefs in incoming type.
9015 (stpy_lazy_string_elt_type): New function.
9016 (gdbpy_extract_lazy_string): Call it.
9017 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9018 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9019 typedefs in incoming type.
9020
9021 2017-03-16 Doug Evans <dje@google.com>
9022
9023 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9024 * guile/scm-type.c (tyscm_scm_to_type): New function.
9025
9026 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9027
9028 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9029 "ULONGEST" for "skip".
9030
9031 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9032
9033 PR gdb/21220
9034 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9035 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9036 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9037 over ptrace peek/poke until end of buffer or error.
9038
9039 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9040
9041 * parse.c (length_of_subexp): Make static.
9042 * parser-defs.h (length_of_subexp): Remove.
9043
9044 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9045
9046 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9047 as well.
9048
9049 2017-03-14 Pedro Alves <palves@redhat.com>
9050
9051 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9052 (main): Use std::unique_ptr. Remove calls to
9053 cp_demangled_name_parse_free.
9054
9055 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9056
9057 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9058 alphabsd_store_inferior_registers): Use regcache->ptid instead
9059 of inferior_ptid.
9060
9061 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9062
9063 * aix-thread.c (aix_thread_fetch_registers,
9064 aix_thread_store_registers): Use regcache->ptid instead of
9065 inferior_ptid.
9066
9067 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9068
9069 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9070 store_gregs_to_thread, fetch_fpregs_from_thread,
9071 store_fpregs_to_thread): Use regcache->ptid instead of
9072 inferior_ptid.
9073
9074 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9075
9076 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9077 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9078 instead of inferior_ptid.
9079
9080 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9081
9082 * target.c (target_fetch_registers, target_store_registers): Add
9083 assert.
9084
9085 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9086
9087 * regcache.h (regcache_get_ptid): New function.
9088 * regcache.c (regcache_get_ptid): New function.
9089
9090 2017-03-13 Mark Wielaard <mark@klomp.org>
9091
9092 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9093
9094 2017-03-10 Keith Seitz <keiths@redhat.com>
9095
9096 PR c++/8218
9097 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9098
9099 2017-03-08 Pedro Alves <palves@redhat.com>
9100
9101 PR gdb/18360
9102 * infrun.c (start_step_over, do_target_resume, resume)
9103 (restart_threads): Assert we're not resuming a thread that is
9104 meant to be stopped.
9105 (infrun_thread_stop_requested_callback): Delete.
9106 (infrun_thread_stop_requested): If the thread is internally
9107 stopped, queue a pending stop event and clear the thread's
9108 inline-frame state.
9109 (handle_stop_requested): New function.
9110 (handle_syscall_event, handle_inferior_event_1): Use
9111 handle_stop_requested.
9112 (handle_stop_requested): New function.
9113 (handle_signal_stop): Set the thread's stop_signal here instead of
9114 at caller.
9115 (finish_step_over): Clear step over info unconditionally.
9116 (handle_signal_stop): If the user had interrupted the event
9117 thread, consider the stop a random signal.
9118 (handle_signal_stop) <signal arrived while stepping over
9119 breakpoint>: Don't restart threads here.
9120 (stop_waiting): Don't clear step-over info here.
9121
9122 2017-03-08 Pedro Alves <palves@redhat.com>
9123
9124 PR 21206
9125 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9126 goes to argument 2, not 1.
9127
9128 2017-03-08 Pedro Alves <palves@redhat.com>
9129
9130 PR cli/21218
9131 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9132 display_gdb_prompt.
9133 (command_line_input): Add comment.
9134
9135 2017-03-08 Pedro Alves <palves@redhat.com>
9136
9137 PR tui/21216
9138 * tui/tui-file.c (tui_file::write): New.
9139 * tui/tui-file.h (tui_file): Override "write".
9140 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9141 factored out from ...
9142 (tui_puts): ... here.
9143 (tui_putc): Use them.
9144 (tui_write): New function.
9145 * tui/tui-io.h (tui_write): Declare.
9146
9147 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9148
9149 * Makefile.in (SFILES): Replace "environ.c" with
9150 "common/environ.c".
9151 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9152 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9153 to...
9154 * common/environ.c: ... here.
9155 * environ.h: Moved to...
9156 * common/environ.h: ... here.
9157
9158 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9159
9160 * gdbarch.sh (pstring_ptr): New static function.
9161 (gdbarch_disassembler_options): Use it.
9162 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9163 not valid_disassembler_option->name.
9164 * gdbarch.c: Regenerate.
9165
9166 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9167
9168 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9169
9170 2017-03-07 Pedro Alves <palves@redhat.com>
9171
9172 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9173
9174 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9175
9176 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9177 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9178 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9179 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9180
9181 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9182
9183 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9184
9185 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9186
9187 * remote.c (remote_add_target_side_commands): Use range-based
9188 for loop.
9189
9190 2017-03-03 Yao Qi <yao.qi@linaro.org>
9191
9192 PR gdb/21165
9193 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9194 value is lazy.
9195 * valprint.c (common_val_print): Likewise.
9196
9197 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9198
9199 * NEWS: Mention new set/show disassembler-options commands.
9200 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9201 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9202 (prospective_options): New static variable.
9203 (gdb_disassembler::gdb_disassembler): Initialize
9204 m_di.disassembler_options.
9205 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9206 (get_disassembler_options): New function.
9207 (set_disassembler_options): Likewise.
9208 (set_disassembler_options_sfunc): Likewise.
9209 (show_disassembler_options_sfunc): Likewise.
9210 (disassembler_options_completer): Likewise.
9211 (_initialize_disasm): Likewise.
9212 * disasm.h (get_disassembler_options): New prototype.
9213 (set_disassembler_options): Likewise.
9214 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9215 (gdbarch_verify_disassembler_options): Likewise.
9216 * gdbarch.c: Regenerate.
9217 * gdbarch.h: Likewise.
9218 * arm-tdep.c (num_disassembly_options): Delete.
9219 (set_disassembly_style): Likewise.
9220 (arm_disassembler_options): New static variable.
9221 (set_disassembly_style_sfunc): Convert short style name into long
9222 option name. Call set_disassembler_options.
9223 (show_disassembly_style_sfunc): New function.
9224 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9225 set_gdbarch_verify_disassembler_options.
9226 (_initialize_arm_tdep): Delete regnames variable and update callers.
9227 (arm_disassembler_options): Initialize.
9228 (disasm_options): New variable.
9229 (num_disassembly_options): Rename from this...
9230 (num_disassembly_styles): ...to this. Compute by scanning through
9231 disasm_options.
9232 (valid_disassembly_styles): Initialize using disasm_options.
9233 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9234 set_arm_regname_option.
9235 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9236 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9237 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9238 set_gdbarch_verify_disassembler_options.
9239 * s390-tdep.c (s390_disassembler_options): New static variable.
9240 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9241 set_gdbarch_verify_disassembler_options.
9242
9243 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9244
9245 * remote.c (remote_add_target_side_condition): Remove "struct"
9246 keyword from range-based for loop.
9247
9248 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9249
9250 * remote.c (remote_add_target_side_condition): Use range-based
9251 for loop. Update comment.
9252
9253 2017-02-27 Yao Qi <yao.qi@linaro.org>
9254
9255 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9256
9257 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9258
9259 * regcache.c (regcache_raw_update): New function.
9260 (regcache_raw_read): Move code to regcache_raw_update.
9261 * regcache.h (regcache_raw_update): New declaration.
9262 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9263
9264 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 * dwarf2read.c (create_debug_type_hash_table): Initialize
9267 header.signature and header.type_offset_in_tu.
9268
9269 2017-02-24 Pedro Alves <palves@redhat.com>
9270
9271 * symtab.c (make_file_symbol_completion_list_1): Use
9272 add_symtab_completions.
9273
9274 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9275
9276 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9277
9278 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9279
9280 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9281 I386_MAX_REGISTER_SIZE.
9282 (i386_pseudo_register_write): Likewise.
9283 (i386_process_record): Likewise.
9284 * i387-tdep.c (i387_supply_xsave): Likewise.
9285 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9286 (store_register): Likewise.
9287
9288 2017-02-23 Pedro Alves <palves@redhat.com>
9289
9290 * ada-lang.c: Include "common/function-view.h".
9291 (ada_iterate_over_symbols): Adjust to use function_view as
9292 callback type.
9293 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9294 (ada_make_symbol_completion_list): Use a lambda.
9295 (ada_exc_search_name_matches): Delete.
9296 (name_matches_regex): New.
9297 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9298 * compile/compile-c-support.c: Include "common/function-view.h".
9299 (print_one_macro): Change prototype to accept a ui_file pointer.
9300 (write_macro_definitions): Use a lambda.
9301 * dwarf2read.c: Include "common/function-view.h".
9302 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9303 (dw2_expand_symtabs_matching): Adjust to use function_view as
9304 callback type.
9305 * language.h: Include "common/function-view.h".
9306 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9307 function_view as callback type.
9308 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9309 * linespec.c: Include "common/function-view.h".
9310 (collect_info::add_symbol): New method.
9311 (struct symbol_and_data_callback, iterate_inline_only, struct
9312 symbol_matcher_data, iterate_name_matcher): Delete.
9313 (iterate_over_all_matching_symtabs): Adjust to use function_view
9314 as callback type and lambdas.
9315 (iterate_over_file_blocks): Adjust to use function_view as
9316 callback type.
9317 (decode_compound_collector): Now a class with private fields.
9318 (decode_compound_collector::release_symbols): New method.
9319 (collect_one_symbol): Rename to...
9320 (decode_compound_collector::operator()): ... this and adjust.
9321 (lookup_prefix_sym): decode_compound_collector construction bits
9322 move to decode_compound_collector ctor. Pass the
9323 decode_compound_collector object directly as callback. Remove
9324 cleanups and use decode_compound_collector::release_symbols
9325 instead.
9326 (symtab_collector): Now a class with private fields.
9327 (symtab_collector::release_symtabs): New method.
9328 (add_symtabs_to_list): Rename to...
9329 (symtab_collector::operator()): ... this and adjust.
9330 (collect_symtabs_from_filename): symtab_collector construction
9331 bits move to symtab_collector ctor. Pass the symtab_collector
9332 object directly as callback. Remove cleanups and use
9333 symtab_collector::release_symtabs instead.
9334 (collect_symbols): Delete.
9335 (add_matching_symbols_to_info): Use lambdas.
9336 * macrocmd.c (print_macro_callback): Delete.
9337 (info_macro_command): Use a lambda.
9338 (info_macros_command): Pass print_macro_definition as callable
9339 directly.
9340 (print_one_macro): Remove 'ignore' parameter.
9341 (macro_list_command): Adjust.
9342 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9343 (macro_for_each_data::user_data): Delete field.
9344 (foreach_macro): Adjust to call the function_view.
9345 (macro_for_each): Adjust to use function_view as callback type.
9346 (foreach_macro_in_scope): Adjust to call the function_view.
9347 (macro_for_each_in_scope): Adjust to use function_view as callback
9348 type.
9349 * macrotab.h: Include "common/function-view.h".
9350 (macro_callback_fn): Declare a prototype instead of a pointer.
9351 Remove "user_data" parameter.
9352 (macro_for_each, macro_for_each_in_scope): Adjust to use
9353 function_view as callback type.
9354 * psymtab.c (partial_map_expand_apply)
9355 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9356 Adjust to use function_view as callback type and to return bool.
9357 (psym_expand_symtabs_matching): Adjust to use function_view as
9358 callback types.
9359 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9360 to use function_view as callback type and to return bool.
9361 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9362 callback types.
9363 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9364 as callback types.
9365 * symfile.h: Include "common/function-view.h".
9366 (expand_symtabs_file_matcher_ftype)
9367 (expand_symtabs_symbol_matcher_ftype)
9368 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9369 return bool.
9370 (quick_symbol_functions::map_symtabs_matching_filename)
9371 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9372 function_view as callback type and return bool.
9373 (expand_symtabs_matching): Adjust to use function_view as callback
9374 type.
9375 (maintenance_expand_name_matcher)
9376 (maintenance_expand_file_matcher): Delete.
9377 (maintenance_expand_symtabs): Use lambdas.
9378 * symtab.c (iterate_over_some_symtabs): Adjust to use
9379 function_view as callback types and return bool.
9380 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9381 of a cleanup.
9382 (lookup_symtab_callback): Delete.
9383 (lookup_symtab): Use a lambda.
9384 (iterate_over_symbols): Adjust to use function_view as callback
9385 type.
9386 (struct search_symbols_data, search_symbols_file_matches)
9387 (search_symbols_name_matches): Delete.
9388 (search_symbols): Use a pair of lambdas.
9389 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9390 (symtab_expansion_callback): Delete.
9391 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9392 * symtab.h: Include "common/function-view.h".
9393 (iterate_over_some_symtabs): Adjust to use function_view as
9394 callback type and return bool.
9395 (iterate_over_symtabs): Adjust to use function_view as callback
9396 type.
9397 (symbol_found_callback_ftype): Remove 'data' parameter and return
9398 bool.
9399 (iterate_over_symbols): Adjust to use function_view as callback
9400 type.
9401
9402 2017-02-23 Pedro Alves <palves@redhat.com>
9403
9404 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9405 (%.o) <unittests/%.c>: New pattern.
9406 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9407 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9408 * common/function-view.h: New file.
9409 * unittests/function-view-selftests.c: New file.
9410 * configure: Regenerate.
9411
9412 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9413
9414 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9415 inferior_ptid.
9416 * go32-nat.c (go32_thread_alive): Likewise.
9417
9418 2017-02-23 Yao Qi <yao.qi@linaro.org>
9419
9420 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9421 delete.
9422
9423 2017-02-23 Yao Qi <yao.qi@linaro.org>
9424
9425 * varobj.c (varobj_clear_saved_item): Use delete instead of
9426 xfree.
9427 (update_dynamic_varobj_children): Likewise.
9428
9429 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9430
9431 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9432
9433 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9434
9435 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9436 m_enum_value to 0 in default constructor.
9437
9438 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9439
9440 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9441 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9442 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9443 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9444 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9445 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9446 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9447 IS_STORE_CONDITIONAL_INSN.
9448
9449 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9450
9451 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9452
9453 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9454
9455 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9456
9457 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9458
9459 * dwarf2read.c (skip_one_die, read_attribute_value)
9460 (dwarf2_const_value_attr, dump_die_shallow)
9461 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9462 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9463
9464 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9467 (dwarf_parse_macro_header): Accept DWARF version 5.
9468 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9469
9470 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9471
9472 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9473 DW_AT_GNU_*.
9474 * common/common-exceptions.h (enum errors): Likewise.
9475 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9476 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9477 (dwarf_expr_context::execute_stack_op): Likewise.
9478 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9479 Likewise.
9480 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9481 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9482 (show_entry_values_debug, call_site_to_target_addr)
9483 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9484 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9485 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9486 (value_of_dwarf_block_entry, indirect_pieced_value)
9487 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9488 (disassemble_dwarf_expression): Likewise.
9489 * dwarf2read.c (process_die, inherit_abstract_dies)
9490 (read_call_site_scope): Likewise.
9491 * gdbtypes.h (struct func_type, struct call_site_parameter)
9492 (struct call_site): Likewise.
9493 * stack.c (read_frame_arg): Likewise.
9494 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9495
9496 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9497
9498 * defs.h (read_unsigned_leb128): New declaration.
9499 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9500 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9501 (dwarf2_find_location_expression): Call also
9502 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9503 * dwarf2loc.h (dwarf2_version): New declaration.
9504 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9505 rnglists.
9506 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9507 .debug_rnglists.
9508 (struct dwop_section_names): Add loclists_dwo.
9509 (dwop_section_names): Add .debug_loclists.dwo.
9510 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9511 (struct dwarf2_per_cu_data): Add dwarf_version.
9512 (struct dwo_sections): Add loclists.
9513 (struct attr_abbrev): Add implicit_const.
9514 (read_indirect_line_string): New declaration.
9515 (read_unsigned_leb128): Delete declaration.
9516 (rcuh_kind): New definition.
9517 (read_and_check_comp_unit_head): Change parameter
9518 is_debug_types_section to section_kind.
9519 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9520 (read_comp_unit_head): Change parameter abfd to section, add parameter
9521 section_kind. Handle DWARF-5.
9522 (error_check_comp_unit_head): Accept also DWARF version 5.
9523 (read_and_check_comp_unit_head): Change parameter
9524 is_debug_types_section to section_kind.
9525 (read_and_check_type_unit_head): Delete function.
9526 (read_abbrev_offset): Handle DWARF-5.
9527 (create_debug_type_hash_table): Add parameter section_kind. Process
9528 only DW_UT_type. Use signature and type_offset_in_tu from struct
9529 comp_unit_head.
9530 (create_debug_types_hash_table): Update create_debug_type_hash_table
9531 caller.
9532 (create_all_type_units): Call create_debug_type_hash_table.
9533 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9534 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9535 caller.
9536 (skip_one_die): Handle DW_FORM_implicit_const.
9537 (dwarf2_rnglists_process): New function.
9538 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9539 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9540 (read_attribute_value): Handle DW_FORM_implicit_const,
9541 DW_FORM_line_strp.
9542 (read_attribute): Handle DW_FORM_implicit_const.
9543 (read_indirect_string_at_offset_from): New function from
9544 read_indirect_string_at_offset.
9545 (read_indirect_string_at_offset): Call
9546 read_indirect_string_at_offset_from.
9547 (read_indirect_line_string_at_offset): New function.
9548 (read_indirect_string): New function comment.
9549 (read_indirect_line_string): New function.
9550 (read_unsigned_leb128): Make it global.
9551 (dwarf2_string_attr): Handle DWARF-5.
9552 (add_include_dir_stub, read_formatted_entries): New functions.
9553 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9554 Handle DWARF-5.
9555 (per_cu_header_read_in): Update read_comp_unit_head caller.
9556 (dwarf2_version): New function.
9557 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9558 rnglists.
9559 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9560 fields.
9561
9562 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9563
9564 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9565
9566 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9567
9568 * dwarf2read.c (dwarf2_ranges_process): New function from
9569 dwarf2_ranges_read.
9570 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9571 dwarf2_ranges_process.
9572
9573 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9574
9575 * dwarf2read.c (create_debug_type_hash_table): New function from
9576 create_debug_types_hash_table.
9577 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9578 (create_all_type_units, open_and_init_dwo_file): Update
9579 create_debug_types_hash_table callers.
9580
9581 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9582
9583 PR gdb/16188
9584 * fork-child.c (trace_start_error): Fix thinko. va_end should
9585 refer to 'ap', not 'args'.
9586
9587 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9588 Pedro Alves <palves@redhat.com>
9589
9590 PR gdb/16188
9591 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9592 calls succeeded.
9593 * fork-child.c (trace_start_error): New function.
9594 (trace_start_error_with_name): Likewise.
9595 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9596 * inf-ptrace.c (inf_ptrace_me): Likewise.
9597 * inferior.h (trace_start_error): New prototype.
9598 (trace_start_error_with_name): Likewise.
9599
9600 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9601
9602 PR gdb/21164
9603 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9604 NULL before using it.
9605 * symmisc.c (maintenance_print_symbols): Likewise.
9606 (maintenance_print_msymbols): Likewise.
9607
9608 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9609
9610 * NEWS: Add record Python bindings entry.
9611
9612 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9613
9614 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9615 py-record-full.o.
9616 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9617 * python/py-record-btrace.c, python/py-record-btrace.h,
9618 python/py-record-full.c, python/py-record-full.h: New file.
9619 * python/py-record.c: Add include for py-record-btrace.h and
9620 py-record-full.h.
9621 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9622 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9623 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9624 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9625 New definition.
9626 (gdbpy_initialize_btrace): New export.
9627 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9628
9629 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9630
9631 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9632 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9633 * python/py-record.c: New file.
9634 * python/python-internal.h (gdbpy_start_recording,
9635 gdbpy_current_recording, gdpy_stop_recording,
9636 gdbpy_initialize_record): New export.
9637 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9638 (python_GdbMethods): Add gdbpy_start_recording,
9639 gdbpy_current_recording and gdbpy_stop_recording.
9640
9641 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9642
9643 * record-btrace.c (record_btrace_record_method): New function.
9644 (init_record_btrace_ops): Initialize to_record_method.
9645 * record-full.c (record_full_record_method): New function.
9646 (init_record_full_ops, init_record_full_core_ops): Add
9647 record_full_record_method.
9648 * record.h (enum record_method): New enum.
9649 * target-debug.h (target_debug_print_enum_record_method: New define.
9650 * target-delegates.c: Regenerate.
9651 * target.c (target_record_method): New function.
9652 * target.h: Include record.h.
9653 (struct target_ops) <to_record_method>: New field.
9654 (target_record_method): New export.
9655
9656 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9657
9658 * record.h (record_start, record_stop): New export.
9659 * record.c (record_start, record_stop): New function.
9660
9661 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9662
9663 * btrace.c (btrace_fetch): Copy function call segments pointer
9664 into a vector.
9665 (btrace_clear): Clear the vector.
9666 (btrace_find_insn_by_number): Use binary search to find the correct
9667 function call segment.
9668 * btrace.h (brace_fun_p): New typedef.
9669 (struct btrace_thread_info) <functions>: New field.
9670
9671 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9672
9673 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9674 * btrace.c (btrace_decode_error): ... here. New function.
9675 * btrace.h (btrace_decode_error): New export.
9676
9677 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9678
9679 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9680 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9681 btrace_find_insn_by_number): Remove special case for gaps.
9682 * btrace.h (btrace_insn_get_error): New export.
9683 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9684 * record-btrace.c (btrace_insn_history): Print number for gaps.
9685 (record_btrace_info, record_btrace_goto): Handle gaps.
9686
9687 2017-02-14 Tom Tromey <tom@tromey.com>
9688
9689 PR python/13598:
9690 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9691 event.
9692 * python/py-evts.c (gdbpy_initialize_py_events): Add
9693 before_prompt registry.
9694 * python/py-events.h (events_object) <before_prompt>: New field.
9695
9696 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9697
9698 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9699
9700 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
9701
9702 * symfile (_initialize_symfile): Add usage text to the load command's
9703 help text.
9704
9705 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9706
9707 * utils.c (defaulted_query): Don't query on secondary UIs.
9708
9709 2017-02-10 Tom Tromey <tom@tromey.com>
9710
9711 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9712
9713 2017-02-10 Tom Tromey <tom@tromey.com>
9714
9715 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9716 "cleanup" local.
9717 * python/py-type.c (typy_legacy_template_argument): Remove
9718 unnecessary "cleanup" local.
9719
9720 2017-02-10 Tom Tromey <tom@tromey.com>
9721
9722 * python/python.c (do_start_initialization): New function, from
9723 _initialize_python.
9724 (_initialize_python): Call do_start_initialization.
9725 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9726 goto.
9727
9728 2017-02-10 Tom Tromey <tom@tromey.com>
9729
9730 * python/py-prettyprint.c (pretty_print_one_value): Use
9731 gdbpy_ref.
9732
9733 2017-02-10 Tom Tromey <tom@tromey.com>
9734
9735 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9736 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9737 gdbpy_ref.
9738 * python/py-type.c (field_new): Use gdbpy_ref.
9739 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9740 gdbpy_ref.
9741 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9742 (py_free_pspace): Likewise.
9743 (pspace_to_pspace_object): Likewise.
9744 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9745 (py_free_objfile): Likewise.
9746 (objfile_to_objfile_object): Likewise.
9747 * python/py-inferior.c (delete_thread_object): Use
9748 gdbpy_ref.
9749 (infpy_read_memory): Likewise.
9750 (py_free_inferior): Likewise.
9751 * python/py-evtregistry.c (create_eventregistry_object): Use
9752 gdbpy_ref.
9753 * python/py-event.c (create_event_object): Use gdbpy_ref.
9754
9755 2017-02-10 Tom Tromey <tom@tromey.com>
9756
9757 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9758 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9759 used.
9760 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9761 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9762 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9763 python/py-framefilter.c, python/py-function.c,
9764 python/py-inferior.c, python/py-infevents.c,
9765 python/py-linetable.c, python/py-newobjfileevent.c,
9766 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9767 python/py-signalevent.c, python/py-stopevent.c,
9768 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9769 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9770 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9771 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9772
9773 2017-02-10 Tom Tromey <tom@tromey.com>
9774
9775 * ui-out.h (ui_out_emit_type): New class.
9776 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9777 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9778 and ui_out_emit_tuple.
9779 (enumerate_locals): Likewise.
9780 (py_mi_print_variables, py_print_locals, py_print_args): Use
9781 ui_out_emit_list.
9782 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9783 ui_out_emit_list.
9784 * common/gdb_optional.h: New file.
9785
9786 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
9787
9788 * MAINTAINERS (Write After Approval): Update my e-mail address.
9789
9790 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
9791
9792 PR gdb/21122
9793 * breakpoint.c (_initialize_breakpoint): Update the help description
9794 of the 'commands' command to indicate that it takes a list argument.
9795
9796 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9797
9798 * interps.c (current_interp_set_logging): Remove "return".
9799
9800 2017-02-09 Gary Benson <gbenson@redhat.com>
9801
9802 * symtab.c (add_symtab_completions): Prevent NULL pointer
9803 dereference.
9804
9805 2017-02-08 Pedro Alves <palves@redhat.com>
9806
9807 * interps.c (interp::interp): Remove reference to quiet_p.
9808 (interp_set): Make static. Remove dead "Switching to" output
9809 code.
9810 (interp_quiet_p, interp_set_quiet): Delete.
9811 (interpreter_exec_cmd): Don't set the interpreter quiet.
9812 * interps.h (interp_quiet_p): Make static.
9813 (class interp) <quiet_p>: Remove field
9814
9815 2017-02-08 Jerome Guitton <guitton@adacore.com>
9816
9817 * cli/cli-decode.c (find_command_name_length): Make it extern.
9818 * cli/cli-decode.h (find_command_name_length): Declare.
9819 * cli/cli-script.c (command_name_equals, line_first_arg):
9820 New functions.
9821 (process_next_line): Use cli-decode to parse command names.
9822 (build_command_line): Make args a constant pointer.
9823
9824 2017-02-08 Jerome Guitton <guitton@adacore.com>
9825
9826 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9827 Remove case-insensitive search.
9828
9829 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9830
9831 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9832 at the end of the line. Avoids an ARI warning.
9833
9834 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
9835
9836 * NEWS: Mention support for record/replay of Intel 64 rdrand and
9837 rdseed instructions.
9838 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
9839
9840 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
9841
9842 PR tdep/20936
9843 Provide and use sparc32 and sparc64 target description XML files.
9844 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
9845 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
9846 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
9847 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
9848 * features/sparc/sparc32-solaris.xml: New file.
9849 * features/sparc/sparc64-solaris.xml: New file.
9850 * features/sparc/sparc32-solaris.c: Generated.
9851 * features/sparc/sparc64-solaris.c: Generated.
9852 * sparc-tdep.h: Account for differences in target descriptions.
9853 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
9854 (sparc32_register_type): Use target provided registers.
9855 (validate_tdesc_registers): New function.
9856 (sparc32_gdbarch_init): Use tdesc_has_registers.
9857 Set pseudoregister functions.
9858 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
9859 (sparc64_register_type): Use target provided registers.
9860 (sparc64_init_abi): Set pseudoregister functions.
9861
9862 2017-02-03 Tom Tromey <tom@tromey.com>
9863
9864 PR rust/21097:
9865 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
9866 with a single member.
9867
9868 2017-02-03 Pedro Alves <palves@redhat.com>
9869
9870 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
9871 (cli_interp_base::~cli_interp_base): New.
9872 (cli_interp): New struct.
9873 (as_cli_interp): Cast the interp itself to cli_interp.
9874 (cli_interpreter_pre_command_loop): Rename to ...
9875 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
9876 parameter.
9877 (cli_interpreter_init): Rename to ...
9878 (cli_interp::init): ... this. Remove 'self' parameter. Use
9879 boolean. Make extern.
9880 (cli_interpreter_resume): Rename to ...
9881 (cli_interp::resume): ... this. Remove 'data' parameter. Make
9882 extern.
9883 (cli_interpreter_suspend): Rename to ...
9884 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
9885 extern.
9886 (cli_interpreter_exec): Rename to ...
9887 (cli_interp::exec): ... this. Remove 'data' parameter. Make
9888 extern.
9889 (cli_interpreter_supports_command_editing): Rename to ...
9890 (cli_interp_base::supports_command_editing): ... this. Remove
9891 'interp' parameter. Make extern.
9892 (cli_ui_out): Rename to ...
9893 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
9894 Make extern.
9895 (cli_set_logging): Rename to ...
9896 (cli_interp_base::set_logging): ... this. Remove 'interp'
9897 parameter. Make extern.
9898 (cli_interp_procs): Delete.
9899 (cli_interp_factory): Adjust to use "new".
9900 * cli/cli-interp.h: Include "interps.h".
9901 (struct cli_interp_base): New struct.
9902 * interps.c (struct interp): Delete. Fields moved to interps.h.
9903 (interp_new): Delete.
9904 (interp::interp, interp::~interp): New.
9905 (interp_set): Use bool, and return void. Assume the interpreter
9906 has suspend, init and resume methods, and that the all return
9907 void.
9908 (set_top_level_interpreter): interp_set returns void.
9909 (interp_ui_out): Adapt.
9910 (current_interp_set_logging): Adapt.
9911 (interp_data): Delete.
9912 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
9913 (interp_exec): Adapt.
9914 (top_level_interpreter_data): Delete.
9915 * interps.h (interp_init_ftype, interp_resume_ftype)
9916 (interp_suspend_ftype, interp_exec_ftype)
9917 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
9918 (class interp): New.
9919 (interp_new): Delete.
9920 (interp_set): Now returns void. Use bool.
9921 (interp_data, top_level_interpreter_data): Delete.
9922 * mi/mi-common.h: Include interps.h.
9923 (class mi_interp): Inherit from interp. Define a ctor. Declare
9924 init, resume, suspect, exec, interp_ui_out, set_logging and
9925 pre_command_loop methods.
9926 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
9927 (mi_interpreter_init): Rename to ...
9928 (mi_interp::init): ... this. Remove the 'interp' parameter, use
9929 bool, return void and make extern. Adjust.
9930 (mi_interpreter_resume): ... Rename to ...
9931 (mi_interp::resume): ... this. Remove the 'data' parameter,
9932 return void and make extern. Adjust.
9933 (mi_interpreter_suspend): ... Rename to ...
9934 (mi_interp::suspend): ... this. Remove the 'data' parameter,
9935 return void and make extern. Adjust.
9936 (mi_interpreter_exec): ... Rename to ...
9937 (mi_interp::exec): ... this. Remove the 'data' parameter and make
9938 extern. Adjust.
9939 (mi_interpreter_pre_command_loop): ... Rename to ...
9940 (mi_interp::pre_command_loop): ... this. Remove the 'self'
9941 parameter and make extern.
9942 (mi_on_normal_stop_1): Adjust.
9943 (mi_ui_out): Rename to ...
9944 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
9945 parameter and make extern. Adjust.
9946 (mi_set_logging): Rename to ...
9947 (mi_interp::set_logging): ... this. Remove the 'interp'
9948 parameter and make extern. Adjust.
9949 (mi_interp_procs): Delete.
9950 (mi_interp_factory): Adjust to use 'new'.
9951 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
9952 (mi_print_exception, mi_execute_command, mi_load_progress):
9953 Adjust.
9954 * tui/tui-interp.c (tui_interp): New class.
9955 (as_tui_interp): Return a tui_interp pointer.
9956 (tui_on_normal_stop, tui_on_signal_received)
9957 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
9958 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
9959 to use interp::interp_ui_out.
9960 (tui_init): Rename to ...
9961 (tui_interp::init): ... this. Remove the 'self' parameter, use
9962 bool, return void and make extern. Adjust.
9963 (tui_resume): Rename to ...
9964 (tui_interp::resume): ... this. Remove the 'data' parameter,
9965 return void and make extern. Adjust.
9966 (tui_suspend): Rename to ...
9967 (tui_interp::suspend): ... this. Remove the 'data' parameter,
9968 return void and make extern. Adjust.
9969 (tui_ui_out): Rename to ...
9970 (tui_interp::interp_ui_out): ... this. Remove the 'self'
9971 parameter, and make extern. Adjust.
9972 (tui_exec): Rename to ...
9973 (tui_interp::exec): ... this. Remove the 'data' parameter and
9974 make extern.
9975 (tui_interp_procs): Delete.
9976 (tui_interp_factory): Use "new".
9977
9978 2017-02-02 Tom Tromey <tom@tromey.com>
9979
9980 * rust-exp.y (ends_raw_string, space_then_number)
9981 (rust_identifier_start_p): Return bool.
9982 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
9983 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
9984 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
9985 (rust_chartype_p): Return bool.
9986 (val_print_struct, rust_print_struct_def, rust_print_type):
9987 Update.
9988 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
9989 Return bool.
9990
9991 2017-02-02 Tom Tromey <tom@tromey.com>
9992
9993 * rust-lang.c: Reindent.
9994
9995 2017-02-02 Tom Tromey <tom@tromey.com>
9996
9997 * rust-lang.h (rust_crate_for_block): Update.
9998 * rust-lang.c (rust_crate_for_block): Return std::string.
9999 (rust_get_disr_info): Use std:;string, not
10000 gdb::unique_xmalloc_ptr.
10001 * rust-exp.y (crate_name): Update.
10002
10003 2017-02-02 Pedro Alves <palves@redhat.com>
10004
10005 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10006 field out of gdb_disassembler_test and make it static.
10007
10008 2017-02-02 Pedro Alves <palves@redhat.com>
10009
10010 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10011 mi1_interp and mi_interp fields.
10012
10013 2017-02-02 Pedro Alves <palves@redhat.com>
10014
10015 * cli/cli-interp.c (struct saved_output_files, saved_output):
10016 Moved from cli/cli-logging.c.
10017 (cli_set_logging): New function.
10018 (cli_interp_procs): Install cli_set_logging.
10019 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10020 Declare.
10021 * cli/cli-logging.c (struct saved_output_files, saved_output):
10022 Moved to cli/cli-interp.c.
10023 (pop_output_files): Don't save outputs here.
10024 (make_logging_output): New function.
10025 (handle_redirections): Don't build tee nor save previous outputs
10026 here.
10027 * interps.c (current_interp_set_logging): Change prototype.
10028 Assume there's always a set_logging_proc method installed.
10029 * interps.h (interp_set_logging_ftype): Change prototype.
10030 (current_interp_set_logging): Change prototype and adjust comment.
10031 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10032 use make_logging_output.
10033 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10034 2017-02-02 Pedro Alves <palves@redhat.com>
10035
10036 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10037 from ...
10038 (set_logging_overwrite): ... here.
10039 (logging_no_redirect_file): Delete.
10040 (set_logging_redirect): Don't handle redirection on the fly.
10041 Instead warn that "logging off" / "logging on" is necessary.
10042 (pop_output_files): Delete references to logging_no_redirect_file.
10043 (show_logging_command): Always speak in terms of what will happen
10044 once logging is reenabled.
10045
10046 2017-02-02 Pedro Alves <palves@redhat.com>
10047
10048 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10049
10050 2017-02-02 Pedro Alves <palves@redhat.com>
10051
10052 * disasm.c (gdb_pretty_print_insn): Rename to ...
10053 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10054 Remove gdbarch parameter. Adapt to clear the object's buffers
10055 instead of allocating new buffers, and to print using the object's
10056 gdb_disassembler instead of calling gdb_print_insn.
10057 (dump_insns): Use gdb_pretty_print_disassembler.
10058 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10059 (gdb_pretty_print_disassembler): New class.
10060 * record-btrace.c (btrace_insn_history): Use
10061 gdb_pretty_print_disassembler.
10062
10063 2017-02-02 Pedro Alves <palves@redhat.com>
10064
10065 * ada-lang.c (type_as_string): Use string_file.
10066 * ada-valprint.c (ada_print_floating): Use string_file.
10067 * ada-varobj.c (ada_varobj_scalar_image)
10068 (ada_varobj_get_value_image): Use string_file.
10069 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10070 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10071 * breakpoint.c (update_inserted_breakpoint_locations)
10072 (insert_breakpoint_locations, reattach_breakpoints)
10073 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10074 (print_it_watchpoint): Use string_file.
10075 (save_breakpoints): Use stdio_file.
10076 * c-exp.y (oper): Use string_file.
10077 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10078 tee_file.
10079 (pop_output_files): Use delete.
10080 (handle_redirections): Use stdio_file and tee_file.
10081 * cli/cli-setshow.c (do_show_command): Use string_file.
10082 * compile/compile-c-support.c (c_compute_program): Use
10083 string_file.
10084 * compile/compile-c-symbols.c (generate_vla_size): Take a
10085 'string_file &' instead of a 'ui_file *'.
10086 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10087 of a 'ui_file *'. Use string_file.
10088 (generate_c_for_variable_locations): Take a 'string_file &'
10089 instead of a 'ui_file *'.
10090 * compile/compile-internal.h (generate_c_for_for_one_variable):
10091 Take a 'string_file &' instead of a 'ui_file *'.
10092 * compile/compile-loc2c.c (push, pushf, unary, binary)
10093 (print_label, pushf_register_address, pushf_register)
10094 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10095 'ui_file *'. Adjust.
10096 * compile/compile.c (compile_to_object): Use string_file.
10097 * compile/compile.h (compile_dwarf_expr_to_c)
10098 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10099 'ui_file *'.
10100 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10101 (replace_typedefs_qualified_name): Use string_file and
10102 obstack_copy0.
10103 * disasm.c (gdb_pretty_print_insn): Use string_file.
10104 (gdb_disassembly): Adjust reference the null_stream global.
10105 (do_ui_file_delete): Delete.
10106 (gdb_insn_length): Use null_stream.
10107 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10108 * dwarf2loc.c (dwarf2_compile_property_to_c)
10109 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10110 'string_file &' instead of a 'ui_file *'.
10111 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10112 * dwarf2read.c (do_ui_file_peek_last): Delete.
10113 (dwarf2_compute_name): Use string_file.
10114 * event-top.c (gdb_setup_readline): Use stdio_file.
10115 * gdbarch.sh (verify_gdbarch): Use string_file.
10116 * gdbtypes.c (safe_parse_type): Use null_stream.
10117 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10118 string_file.
10119 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10120 'string_file *' instead of a 'ui_file *'.
10121 (gdbscm_arch_disassemble): Use string_file.
10122 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10123 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10124 inherits from ui_file.
10125 (ioscm_file_port_delete, ioscm_file_port_rewind)
10126 (ioscm_file_port_put): Delete.
10127 (ioscm_file_port_write): Rename to ...
10128 (ioscm_file_port::write): ... this. Remove file_port_magic
10129 checks.
10130 (ioscm_file_port_new): Delete.
10131 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10132 ui_file_up.
10133 * guile/scm-type.c (tyscm_type_name): Use string_file.
10134 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10135 Use string_file.
10136 * infcmd.c (print_return_value_1): Use string_file.
10137 * infrun.c (print_target_wait_results): Use string_file.
10138 * language.c (add_language): Use string_file.
10139 * location.c (explicit_to_string_internal): Use string_file.
10140 * main.c (captured_main_1): Use null_file.
10141 * maint.c (maintenance_print_architecture): Use stdio_file.
10142 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10143 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10144 event_channel>: Change type to mi_console_file pointer.
10145 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10146 (mi_console_file_delete): Delete.
10147 (struct mi_console_file): Delete.
10148 (mi_console_file_magic): Delete.
10149 (mi_console_file_new): Delete.
10150 (mi_console_file::mi_console_file): New.
10151 (mi_console_file_delete): Delete.
10152 (mi_console_file_fputs): Delete.
10153 (mi_console_file::write): New.
10154 (mi_console_raw_packet): Delete.
10155 (mi_console_file::flush): New.
10156 (mi_console_file_flush): Delete.
10157 (mi_console_set_raw): Rename to ...
10158 (mi_console_file::set_raw): ... this.
10159 * mi/mi-console.h (class mi_console_file): New class.
10160 (mi_console_file_new, mi_console_set_raw): Delete.
10161 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10162 (mi_set_logging): Use delete and tee_file. Adjust.
10163 * mi/mi-main.c (output_register): Use string_file.
10164 (mi_cmd_data_evaluate_expression): Use string_file.
10165 (mi_cmd_data_read_memory): Use string_file.
10166 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10167 * mi/mi-out.c (mi_ui_out::main_stream): New.
10168 (mi_ui_out::rewind): Use main_stream and
10169 string_file.
10170 (mi_ui_out::put): Use main_stream and string_file.
10171 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10172 Allocate a 'string_file' instead.
10173 (mi_out_new): Don't allocate a mem_fileopen stream here.
10174 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10175 (mi_ui_out::main_stream): Declare method.
10176 * printcmd.c (eval_command): Use string_file.
10177 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10178 * python/py-arch.c (archpy_disassemble): Use string_file.
10179 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10180 * python/py-frame.c (frapy_str): Use string_file.
10181 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10182 Use string_file.
10183 * python/py-type.c (typy_str): Use string_file.
10184 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10185 * python/py-value.c (valpy_str): Use string_file.
10186 * record-btrace.c (btrace_insn_history): Use string_file.
10187 * regcache.c (regcache_print): Use stdio_file.
10188 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10189 * remote.c (escape_buffer): Use string_file.
10190 * rust-lang.c (rust_get_disr_info): Use string_file.
10191 * serial.c (serial_open_ops_1): Use stdio_file.
10192 (do_serial_close): Use delete.
10193 * stack.c (print_frame_arg): Use string_file.
10194 (print_frame_args): Remove local mem_fileopen stream, not used.
10195 (print_frame): Use string_file.
10196 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10197 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10198 Take a 'string_file *' instead of a 'ui_file *'.
10199 * top.c (new_ui): Use stdio_file and stderr_file.
10200 (free_ui): Use delete.
10201 (execute_command_to_string): Use string_file.
10202 (quit_confirm): Use string_file.
10203 * tracepoint.c (collection_list::append_exp): Use string_file.
10204 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10205 * tui/tui-file.c: Don't include "ui-file.h".
10206 (enum streamtype, struct tui_stream): Delete.
10207 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10208 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10209 (tui_file::tui_file): New method.
10210 (tui_file_fputs): Delete.
10211 (tui_file_get_strbuf): Delete.
10212 (tui_file::puts): New method.
10213 (tui_file_adjust_strbuf): Delete.
10214 (tui_file_flush): Delete.
10215 (tui_file::flush): New method.
10216 * tui/tui-file.h: Tweak intro comment.
10217 Include ui-file.h.
10218 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10219 (tui_file_adjust_strbuf): Delete declarations.
10220 (class tui_file): New class.
10221 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10222 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10223 (tui_register_format): Use string_stream.
10224 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10225 (tui_get_function_from_frame): Use string_file.
10226 * typeprint.c (type_to_string): Use string_file.
10227 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10228 (null_stream): New global.
10229 (ui_file_delete): Delete.
10230 (ui_file::ui_file): New.
10231 (null_file_isatty): Delete.
10232 (ui_file::~ui_file): New.
10233 (null_file_rewind): Delete.
10234 (ui_file::printf): New.
10235 (null_file_put): Delete.
10236 (null_file_flush): Delete.
10237 (ui_file::putstr): New.
10238 (null_file_write): Delete.
10239 (ui_file::putstrn): New.
10240 (null_file_read): Delete.
10241 (ui_file::putc): New.
10242 (null_file_fputs): Delete.
10243 (null_file_write_async_safe): Delete.
10244 (ui_file::vprintf): New.
10245 (null_file_delete): Delete.
10246 (null_file::write): New.
10247 (null_file_fseek): Delete.
10248 (null_file::puts): New.
10249 (ui_file_data): Delete.
10250 (null_file::write_async_safe): New.
10251 (gdb_flush, ui_file_isatty): Adjust.
10252 (ui_file_put, ui_file_rewind): Delete.
10253 (ui_file_write): Adjust.
10254 (ui_file_write_for_put): Delete.
10255 (ui_file_write_async_safe, ui_file_read): Adjust.
10256 (ui_file_fseek): Delete.
10257 (fputs_unfiltered): Adjust.
10258 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10259 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10260 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10261 (set_ui_file_data): Delete.
10262 (string_file::~string_file, string_file::write)
10263 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10264 (do_ui_file_as_string, ui_file_as_string): Delete.
10265 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10266 (struct mem_file): Delete.
10267 (mem_file_new): Delete.
10268 (stdio_file::stdio_file): New.
10269 (mem_file_delete): Delete.
10270 (stdio_file::stdio_file): New.
10271 (mem_fileopen): Delete.
10272 (stdio_file::~stdio_file): New.
10273 (mem_file_rewind): Delete.
10274 (stdio_file::set_stream): New.
10275 (mem_file_put): Delete.
10276 (stdio_file::open): New.
10277 (mem_file_write): Delete.
10278 (stdio_file_magic, struct stdio_file): Delete.
10279 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10280 (stdio_file::flush): New.
10281 (stdio_file_read): Rename to ...
10282 (stdio_file::read): ... this. Adjust.
10283 (stdio_file_write): Rename to ...
10284 (stdio_file::write): ... this. Adjust.
10285 (stdio_file_write_async_safe): Rename to ...
10286 (stdio_file::write_async_safe) ... this. Adjust.
10287 (stdio_file_fputs): Rename to ...
10288 (stdio_file::puts) ... this. Adjust.
10289 (stdio_file_isatty): Delete.
10290 (stdio_file_fseek): Delete.
10291 (stdio_file::isatty): New.
10292 (stderr_file_write): Rename to ...
10293 (stderr_file::write) ... this. Adjust.
10294 (stderr_file_fputs): Rename to ...
10295 (stderr_file::puts) ... this. Adjust.
10296 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10297 (stderr_file::stderr_file): New.
10298 (tee_file_magic): Delete.
10299 (struct tee_file): Delete.
10300 (tee_file::tee_file): New.
10301 (tee_file_new): Delete.
10302 (tee_file::~tee_file): New.
10303 (tee_file_delete): Delete.
10304 (tee_file_flush): Rename to ...
10305 (tee_file::flush): ... this. Adjust.
10306 (tee_file_write): Rename to ...
10307 (tee_file::write): ... this. Adjust.
10308 (tee_file::write_async_safe): New.
10309 (tee_file_fputs): Rename to ...
10310 (tee_file::puts): ... this. Adjust.
10311 (tee_file_isatty): Rename to ...
10312 (tee_file::isatty): ... this. Adjust.
10313 * ui-file.h (struct obstack, struct ui_file): Don't
10314 forward-declare.
10315 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10316 (ui_file_write_ftype)
10317 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10318 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10319 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10320 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10321 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10322 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10323 (set_ui_file_fseek): Delete.
10324 (ui_file_data, ui_file_delete, ui_file_rewind)
10325 (struct ui_file): New.
10326 (ui_file_up): New.
10327 (class null_file): New.
10328 (null_stream): Declare.
10329 (ui_file_write_for_put, ui_file_put): Delete.
10330 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10331 Delete.
10332 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10333 (gdb_fopen, tee_file_new): Delete.
10334 (struct string_file): New.
10335 (struct stdio_file): New.
10336 (stdio_file_up): New.
10337 (struct stderr_file): New.
10338 (class tee_file): New.
10339 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10340 of a 'ui_file *'. Adjust.
10341 * ui-out.h (class ui_out) <field_stream>: Likewise.
10342 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10343 (null_stream): Delete.
10344 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10345 Adjust.
10346 * utils.h (struct ui_file): Delete forward declaration..
10347 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10348 (error_stream): Take a 'string_file &' instead of a
10349 'ui_file *'.
10350 * varobj.c (varobj_value_get_print_value): Use string_file.
10351 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10352 * gdbarch.c: Regenerate.
10353
10354 2017-02-02 Pedro Alves <palves@redhat.com>
10355
10356 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10357 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10358 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10359 Adjust to call gdb_print_insn instead of
10360 gdb_disassembler::print_insn.
10361 (dump_insns, do_mixed_source_and_assembly_deprecated)
10362 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10363 'gdbarch' parameter. Remove gdb_disassembler parameter.
10364 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10365 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10366 declaration.
10367 (gdb_pretty_print_insn): Re-add declaration.
10368 * record-btrace.c (btrace_insn_history): Don't allocate a
10369 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10370
10371 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10372
10373 * disasm.h (gdb_disassembly): Remove file_string parameter.
10374 * disasm.c (gdb_disassembly): Likewise.
10375 * cli/cli-cmds.c (print_disassembly): Adapt.
10376 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10377 * stack.c (do_gdb_disassembly): Likewise.
10378
10379 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10380
10381 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10382 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10383 targets. And if the implicit value is longer than needed, extract
10384 the first bytes instead of the "least significant" ones.
10385
10386 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10387
10388 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10389 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10390 (btrace_fetch): Assert can_access_registers_ptid.
10391 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10392 validate_registers_access.
10393
10394 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10395
10396 * gdbthread.h (can_access_registers_ptid): New.
10397 * thread.c (can_access_registers_ptid): New.
10398
10399 2017-02-01 Pedro Alves <palves@redhat.com>
10400
10401 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10402
10403 2017-01-31 Pedro Alves <palves@redhat.com>
10404
10405 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10406 Fix typos.
10407
10408 2017-01-31 Pedro Alves <palves@redhat.com>
10409
10410 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10411 not used.
10412
10413 2017-01-31 Pedro Alves <palves@redhat.com>
10414
10415 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10416
10417 2017-01-31 Pedro Alves <palves@redhat.com>
10418
10419 * common/scoped_restore.h
10420 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10421 change the value's parameter type to T2.
10422 (make_scoped_restore): Likewise.
10423
10424 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10425 Richard Henderson <rth@redhat.com>
10426
10427 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10428 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10429 GS_BASE for older kernels.
10430 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10431 GS_BASE for older kernels.
10432 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10433 and GS_BASE to the offset table.
10434 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10435 system register group.
10436 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10437 for older kernels.
10438 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10439 amd64 ABI.
10440 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10441 AMD64_GSBASE_REGNUM.
10442 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10443 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10444 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10445 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10446 i386/64bit-segments.xml in those rules.
10447 * features/i386/64bit-segments.xml: New file.
10448 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10449 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10450 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10451 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10452 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10453 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10454 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10455 * features/i386/amd64-avx-linux.c: Regenerated.
10456 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10457 * features/i386/amd64-avx-mpx.c: Regenerated.
10458 * features/i386/amd64-avx512-linux.c: Regenerated.
10459 * features/i386/amd64-linux.c: Regenerated.
10460 * features/i386/amd64-mpx-linux.c: Regenerated.
10461 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10462 * features/i386/i386-avx-mpx.c: Regenerated.
10463 * features/i386/x32-avx-linux.c: Regenerated.
10464 * features/i386/x32-avx512-linux.c: Regenerated.
10465 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10466 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10467 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10468 * regformats/i386/amd64-linux.dat: Regenerated.
10469 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10470 * regformats/i386/x32-avx-linux.dat: Regenerated.
10471 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10472 * regformats/i386/x32-linux.dat: Regenerated.
10473
10474 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10475
10476 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10477 Set to AMD64_NUM_REGS.
10478
10479 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10480
10481 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10482 that checks validity of a register number.
10483
10484 2017-01-27 Kees Cook <keescook@google.com>
10485
10486 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10487 fetch_fpregs if target has fpa registers.
10488 (arm_linux_store_inferior_registers): Call store_fpregs if target
10489 has fpa registers.
10490
10491 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10492
10493 * cris-tdep.c (cris_gdbarch_init): Remove check for
10494 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10495
10496 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10497
10498 * corelow.c (get_core_register_section): Check for regset
10499 existence before checking for REGSET_VARIABLE_SIZE.
10500
10501 2017-01-26 Yao Qi <yao.qi@linaro.org>
10502 Pedro Alves <palves@redhat.com>
10503
10504 PR gdb/20939
10505 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10506 call memory_error, save memaddr instead.
10507 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10508 negative, cal memory_error.
10509 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10510
10511 2017-01-26 Yao Qi <yao.qi@linaro.org>
10512
10513 * disasm-selftests.c (memory_error_test): New function.
10514 (_initialize_disasm_selftests): Register memory_error_test.
10515
10516 2017-01-26 Yao Qi <yao.qi@linaro.org>
10517
10518 * Makefile.in (SFILES): Add disasm-selftests.c and
10519 selftest-arch.c.
10520 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10521 * disasm-selftests.c: New file.
10522 * selftest-arch.c: New file.
10523 * selftest-arch.h: New file.
10524
10525 2017-01-26 Yao Qi <yao.qi@linaro.org>
10526
10527 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10528 to bfd_arch_mep. Don't return 0 if section is not
10529 found. Call print_insn_mep.
10530
10531 2017-01-26 Pedro Alves <palves@redhat.com>
10532 Yao Qi <yao.qi@linaro.org>
10533
10534 * arm-tdep.c: Include "disasm.h".
10535 (gdb_print_insn_arm): Update code to get gdbarch.
10536 * disasm.c (dis_asm_read_memory): Change it to
10537 gdb_disassembler::dis_asm_read_memory.
10538 (dis_asm_memory_error): Likewise.
10539 (dis_asm_print_address): Likewise.
10540 (gdb_pretty_print_insn): Change it to
10541 gdb_disassembler::pretty_print_insn.
10542 (dump_insns): Add one argument gdb_disassemlber. All
10543 callers updated.
10544 (do_mixed_source_and_assembly_deprecated): Likewise.
10545 (do_mixed_source_and_assembly): Likewise.
10546 (do_assembly_only): Likewise.
10547 (gdb_disassembler::gdb_disassembler): New.
10548 (gdb_disassembler::print_insn): New.
10549 * disasm.h (class gdb_disassembler): New.
10550 (gdb_pretty_print_insn): Remove declaration.
10551 (gdb_disassemble_info): Likewise.
10552 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10553 (gdbscm_disasm_read_memory_worker): Update.
10554 (gdbscm_disasm_read_memory): Update.
10555 (gdbscm_disasm_memory_error): Remove.
10556 (gdbscm_disasm_print_address): Remove.
10557 (gdbscm_disassembler::gdbscm_disassembler): New.
10558 (gdbscm_print_insn_from_port): Update.
10559 * mips-tdep.c: Include disasm.h.
10560 (gdb_print_insn_mips): Update code to get gdbarch.
10561 * record-btrace.c (btrace_insn_history): Update.
10562 * spu-tdep.c: Include disasm.h.
10563 (struct spu_dis_asm_data): Remove.
10564 (struct spu_dis_asm_info): New.
10565 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10566 SPU id.
10567 (gdb_print_insn_spu): Cast disassemble_info to
10568 spu_dis_asm_info.
10569
10570 2017-01-26 Yao Qi <yao.qi@linaro.org>
10571
10572 * disasm.c (do_ui_file_delete): Delete.
10573 (gdb_insn_length): Move code creating stream to ...
10574 * utils.c (null_stream): ... here. New function.
10575 * utils.h (null_stream): Declare.
10576
10577 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10578
10579 * python/py-inferior.c (find_thread_object): Return directly
10580 from the loop. Remove "found" variable.
10581
10582 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10583
10584 GDB 7.12.1 released.
10585
10586 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10587
10588 * python/py-function.c (fnpy_call): Reorder declarations to have
10589 the gdbpy_enter object declared first.
10590 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10591
10592 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10593
10594 PR python/21068
10595 * python/python-internal.h (PyMem_RawMalloc): Define for
10596 Python < 3.4.
10597 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10598 PyMem_RawMalloc instead of PyMem_Malloc.
10599
10600 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10601 Luis Machado <lgustavo@codesourcery.com>
10602
10603 * NEWS (New commands): Mention flash-erase.
10604 (New MI commands): Mention target-flash-erase.
10605 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10606 command.
10607 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10608 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10609 * target.c (flash_erase_command): New function.
10610 (initialize_targets): Add new flash-erase command.
10611 * target.h (flash_erase_command): New declaration.
10612
10613 2017-01-20 Joel Brobecker <brobecker@adacore.com>
10614
10615 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10616 HAVE_SYS_PROCFS_H is defined.
10617
10618 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10619
10620 * remote.c (struct cached_reg): Change data into a pointer.
10621 * (stop_reply_dtr): Free data pointers before deleting vector.
10622 (process_stop_reply): Likewise.
10623 (remote_parse_stop_reply): Allocate space for data
10624
10625 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10626
10627 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10628 MAX_REGISTER_SIZE.
10629 (amd64_pseudo_register_read_value): Likewise.
10630 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10631 (store_register_using_P): Likewise.
10632 * regcache.c (regcache_xfer_part): Likewise.
10633
10634 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10635
10636 Split real and pseudo registers.
10637 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10638 (sparc32_pseudo_regnum): New enum.
10639 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10640 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10641 (SPARC32_CP0_REGISTERS): New macro.
10642 (sparc32_pseudo_register_name): New function.
10643 (sparc32_register_name): Use sparc32_pseudo_register_name.
10644 (sparc32_pseudo_register_type): New function.
10645 (sparc32_register_type): Use sparc32_pseudo_register_type.
10646 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10647 pseudo register numbers.
10648 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10649 (SPARC64_CP0_REGISTERS): New macro.
10650 (sparc64_pseudo_register_name): New function.
10651 (sparc64_register_name): Use sparc64_pseudo_register_name.
10652 (sparc64_pseudo_register_type): New function.
10653 (sparc64_register_type): Use sparc64_pseudo_register_type.
10654 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10655 pseudo register numbers.
10656 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10657 sparc64_store_arguments): Handle pseudo register numbers.
10658
10659 2017-01-13 Yao Qi <yao.qi@linaro.org>
10660
10661 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10662 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10663 output.
10664 (getpkt_or_notif_sane_1): Likewise.
10665
10666 2017-01-13 Yao Qi <yao.qi@linaro.org>
10667
10668 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10669 of CC. Pass "-x c++-header" instead of "-x c".
10670
10671 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10672
10673 * remote.c (remote_can_async_p): Update comment.
10674
10675 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10676
10677 * linux-nat.c (linux_nat_can_async_p): Update comment.
10678
10679 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10680
10681 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10682
10683 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10684
10685 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10686
10687 2017-01-10 Tom Tromey <tom@tromey.com>
10688
10689 * python/py-type.c (typy_legacy_template_argument): Update.
10690 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10691 ~demangle_parse_info): Declare new members.
10692 (cp_demangled_name_to_comp): Return unique_ptr.
10693 (cp_demangled_name_parse_free)
10694 (make_cleanup_cp_demangled_name_parse_free)
10695 (cp_new_demangle_parse_info): Remove.
10696 * cp-support.c (do_demangled_name_parse_free_cleanup)
10697 (make_cleanup_cp_demangled_name_parse_free): Remove.
10698 (inspect_type, cp_canonicalize_string_full)
10699 (cp_canonicalize_string): Update.
10700 (mangled_name_to_comp): Change return type.
10701 (cp_class_name_from_physname, method_name_from_physname)
10702 (cp_func_name, cp_remove_params): Update.
10703 * cp-name-parser.y (demangle_parse_info): New constructor, from
10704 cp_new_demangle_parse_info.
10705 (~demangle_parse_info): New destructor, from
10706 cp_demangled_name_parse_free.
10707 (cp_merge_demangle_parse_infos): Update.
10708 (cp_demangled_name_to_comp): Change return type.
10709
10710 2017-01-10 Tom Tromey <tom@tromey.com>
10711
10712 * top.c (prevent_dont_repeat): Change return type.
10713 * python/python.c (execute_gdb_command): Use std::string.
10714 Update.
10715 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10716 * command.h (prevent_dont_repeat): Change return type.
10717 * breakpoint.c (bpstat_do_actions_1): Update.
10718
10719 2017-01-10 Tom Tromey <tom@tromey.com>
10720
10721 * value.h (scoped_value_mark::~scoped_value_mark): Call
10722 free_to_mark.
10723 (scoped_value_mark::free_to_mark): New method.
10724 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10725 scoped_value_mark.
10726
10727 2017-01-10 Tom Tromey <tom@tromey.com>
10728
10729 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10730 (valpy_reference_value, valpy_const_value, valpy_get_address)
10731 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10732 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10733 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10734 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10735 scoped_value_mark.
10736 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10737 * value.h (scoped_value_mark): New class.
10738
10739 2017-01-10 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10742 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10743 * psymtab.c (discard_psymtabs_upto): Remove.
10744 (make_cleanup_discard_psymtabs): Remove.
10745 (struct psymtab_state): Remove.
10746
10747 2017-01-10 Tom Tromey <tom@tromey.com>
10748
10749 * record-full.c (record_full_save_cleanups): Remove.
10750 (record_full_save): Use gdb::unlinker.
10751 * gcore.c (do_bfd_delete_cleanup): Remove.
10752 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10753 cleanups.
10754 * dwarf2read.c (unlink_if_set): Remove.
10755 (write_psymtabs_to_index): Use gdb::unlinker.
10756 * common/gdb_unlinker.h: New file.
10757
10758 2017-01-10 Tom Tromey <tom@tromey.com>
10759
10760 * windows-tdep.c (windows_xfer_shared_library): Update.
10761 * windows-nat.c (windows_make_so): Update.
10762 * utils.h (make_cleanup_bfd_unref): Remove.
10763 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10764 * symfile.h (symfile_bfd_open)
10765 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10766 * symfile.c (read_symbols, symbol_file_add)
10767 (separate_debug_file_exists): Update.
10768 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10769 (generic_load, reread_symbols): Update.
10770 * symfile-mem.c (symbol_file_add_from_memory): Update.
10771 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10772 (spu_symbol_file_add_from_memory): Update.
10773 * solist.h (struct target_so_ops) <bfd_open>: Return
10774 gdb_bfd_ref_ptr.
10775 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10776 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10777 gdb_bfd_ref_ptr.
10778 (solib_map_sections, reload_shared_libraries_1): Update.
10779 * solib-svr4.c (enable_break): Update.
10780 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10781 * solib-frv.c (enable_break2): Update.
10782 * solib-dsbt.c (enable_break): Update.
10783 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10784 gdb_bfd_ref_ptr.
10785 (darwin_solib_get_all_image_info_addr_at_init): Update.
10786 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10787 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10788 * record-full.c (record_full_save): Update.
10789 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10790 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10791 * minidebug.c (find_separate_debug_file_in_section): Return
10792 gdb_bfd_ref_ptr.
10793 * machoread.c (macho_add_oso_symfile): Change abfd to
10794 gdb_bfd_ref_ptr.
10795 (macho_symfile_read_all_oso): Update.
10796 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10797 (macho_symfile_read): Update.
10798 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10799 (jit_bfd_try_read_symtab): Update.
10800 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10801 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10802 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10803 gdb_bfd_ref_ptr.
10804 (gdb_bfd_ref_policy): New struct.
10805 (gdb_bfd_ref_ptr): New typedef.
10806 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10807 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10808 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10809 gdb_bfd_ref_ptr.
10810 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10811 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10812 (gcore_command): Update.
10813 * exec.c (exec_file_attach): Update.
10814 * elfread.c (elf_symfile_read): Update.
10815 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10816 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10817 (open_and_init_dwo_file): Update.
10818 (open_dwp_file): Return gdb_bfd_ref_ptr.
10819 (open_and_init_dwp_file): Update.
10820 * corelow.c (core_open): Update.
10821 * compile/compile-object-load.c (compile_object_load): Update.
10822 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10823 * coffread.c (coff_symfile_read): Update.
10824 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10825 gdb_bfd_ref_ptr. Rename.
10826 (dump_bfd_file, restore_command): Update.
10827 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10828 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10829 (find_separate_debug_file_by_buildid): Update.
10830
10831 2017-01-10 Tom Tromey <tom@tromey.com>
10832
10833 * common/gdb_ref_ptr.h: New file.
10834 * python/py-ref.h (struct gdbpy_ref_policy): New.
10835 (gdbpy_ref): Now a typedef.
10836
10837 2017-01-10 Tom Tromey <tom@tromey.com>
10838
10839 * utils.h (make_cleanup_htab_delete): Don't declare.
10840 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
10841 Remove.
10842 * linespec.c (decode_compound_collector): Add constructor,
10843 destructor.
10844 (lookup_prefix_sym): Remove cleanup.
10845 (symtab_collector): Add constructor, destructor.
10846 (collect_symtabs_from_filename): Remove cleanup.
10847 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
10848 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
10849 Use htab_up.
10850 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
10851 * dwarf2read.c (dw2_expand_symtabs_matching)
10852 (dw2_map_symbol_filenames, dwarf_decode_macros)
10853 (write_psymtabs_to_index): Use htab_up.
10854 * dwarf2loc.c (func_verify_no_selftailcall)
10855 (call_site_find_chain_1, func_verify_no_selftailcall)
10856 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
10857 std::vector, gdb::unique_xmalloc_ptr.
10858 (call_sitep): Remove typedef.
10859 (dwarf2_locexpr_baton_eval): Remove unused variable.
10860
10861 2017-01-10 Tom Tromey <tom@tromey.com>
10862
10863 * python/python-internal.h (make_cleanup_py_decref)
10864 (make_cleanup_py_xdecref): Don't declare.
10865 * python/py-utils.c (py_decref, make_cleanup_py_decref)
10866 (py_xdecref, make_cleanup_py_xdecref): Remove.
10867
10868 2017-01-10 Tom Tromey <tom@tromey.com>
10869
10870 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
10871 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
10872
10873 2017-01-10 Tom Tromey <tom@tromey.com>
10874
10875 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
10876
10877 2017-01-10 Tom Tromey <tom@tromey.com>
10878
10879 * python/py-utils.c (unicode_to_encoded_string)
10880 (python_string_to_target_string)
10881 (python_string_to_target_python_string)
10882 (python_string_to_host_string, gdbpy_obj_to_string)
10883 (get_addr_from_python): Use gdbpy_ref.
10884
10885 2017-01-10 Tom Tromey <tom@tromey.com>
10886
10887 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
10888 gdbpy_ref.
10889
10890 2017-01-10 Tom Tromey <tom@tromey.com>
10891
10892 * python/python.c (eval_python_command, gdbpy_decode_line)
10893 (gdbpy_run_events, gdbpy_start_type_printers)
10894 (gdbpy_apply_type_printers): Use gdbpy_ref.
10895
10896 2017-01-10 Tom Tromey <tom@tromey.com>
10897
10898 * python/py-param.c (get_doc_string, compute_enum_values): Use
10899 gdbpy_ref.
10900
10901 2017-01-10 Tom Tromey <tom@tromey.com>
10902
10903 * python/py-inferior.c (find_thread_object, build_inferior_list):
10904 Use gdbpy_ref.
10905
10906 2017-01-10 Tom Tromey <tom@tromey.com>
10907
10908 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10909
10910 2017-01-10 Tom Tromey <tom@tromey.com>
10911
10912 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
10913 gdbpy_ref.
10914
10915 2017-01-10 Tom Tromey <tom@tromey.com>
10916
10917 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
10918 extra incref.
10919 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
10920 Use gdbpy_ref.
10921
10922 2017-01-10 Tom Tromey <tom@tromey.com>
10923
10924 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10925 gdbpy_ref.
10926
10927 2017-01-10 Tom Tromey <tom@tromey.com>
10928
10929 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
10930 decref results of PyArg_ParseTupleAndKeywords.
10931
10932 2017-01-10 Tom Tromey <tom@tromey.com>
10933
10934 * python/python.c (python_run_simple_file): Use
10935 unique_xmalloc_ptr, gdbpy_ref.
10936
10937 2017-01-10 Tom Tromey <tom@tromey.com>
10938
10939 * python/py-prettyprint.c (print_stack_unless_memory_error)
10940 (print_string_repr, print_children): Use gdbpy_ref.
10941 (dummy_python_frame): New class.
10942 (dummy_python_frame::dummy_python_frame): Rename from
10943 push_dummy_python_frame.
10944 (py_restore_tstate): Remove.
10945
10946 2017-01-10 Tom Tromey <tom@tromey.com>
10947
10948 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10949
10950 2017-01-10 Tom Tromey <tom@tromey.com>
10951
10952 * python/python.c (ensure_python_env, restore_python_env):
10953 Remove.
10954 * python/python-internal.h (ensure_python_env): Don't declare.
10955 * varobj.h (varobj_ensure_python_env): Don't declare.
10956 * varobj.c (varobj_ensure_python_env): Remove.
10957
10958 2017-01-10 Tom Tromey <tom@tromey.com>
10959
10960 * varobj.c (varobj_value_get_print_value): Use
10961 gdbpy_enter_varobj.
10962
10963 2017-01-10 Tom Tromey <tom@tromey.com>
10964
10965 * python/py-prettyprint.c (print_string_repr, print_children):
10966 Update.
10967 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
10968 of "encoding".
10969 * varobj.c (varobj_value_get_print_value): Update.
10970 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
10971
10972 2017-01-10 Tom Tromey <tom@tromey.com>
10973
10974 * varobj.c (varobj_get_display_hint)
10975 (dynamic_varobj_has_child_method, install_new_value_visualizer)
10976 (varobj_set_visualizer, free_variable): Use
10977 gdbpy_enter_varobj.
10978
10979 2017-01-10 Tom Tromey <tom@tromey.com>
10980
10981 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
10982 (do_finish_initialization): New function. Use gdbpy_ref.
10983 (gdbpy_finish_initialization): Use gdbpy_enter. Call
10984 do_finish_initialization.
10985
10986 2017-01-10 Tom Tromey <tom@tromey.com>
10987
10988 * python/py-param.c (get_set_value, get_show_value): Use
10989 gdbpy_enter, gdbpy_ref.
10990
10991 2017-01-10 Tom Tromey <tom@tromey.com>
10992
10993 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
10994
10995 2017-01-10 Tom Tromey <tom@tromey.com>
10996
10997 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
10998
10999 2017-01-10 Tom Tromey <tom@tromey.com>
11000
11001 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11002 Use gdbpy_enter_varobj.
11003
11004 2017-01-10 Tom Tromey <tom@tromey.com>
11005
11006 * varobj.c (gdbpy_enter_varobj): New constructor.
11007 * python/python-internal.h (gdbpy_enter_varobj): New class.
11008 * python/py-varobj.c (py_varobj_get_iterator): Use
11009 gdbpy_enter_varobj.
11010
11011 2017-01-10 Tom Tromey <tom@tromey.com>
11012
11013 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11014 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11015 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11016 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11017 unique_xmalloc_ptr.
11018 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11019
11020 2017-01-10 Tom Tromey <tom@tromey.com>
11021
11022 * python/py-xmethods.c (invoke_match_method): Use
11023 gdbpy_ref.
11024
11025 2017-01-10 Tom Tromey <tom@tromey.com>
11026
11027 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11028 gdbpy_enter, gdbpy_ref.
11029
11030 2017-01-10 Tom Tromey <tom@tromey.com>
11031
11032 * python/python.c (python_interactive_command): Use gdbpy_enter.
11033
11034 2017-01-10 Tom Tromey <tom@tromey.com>
11035
11036 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11037 gdbpy_ref.
11038
11039 2017-01-10 Tom Tromey <tom@tromey.com>
11040
11041 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11042 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11043
11044 2017-01-10 Tom Tromey <tom@tromey.com>
11045
11046 * utils.h (htab_deleter): New struct.
11047 (htab_up): New typedef.
11048 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11049 gdbpy_enter, gdbpy_ref, htab_up.
11050
11051 2017-01-10 Tom Tromey <tom@tromey.com>
11052
11053 * python/py-unwind.c (pending_frame_invalidate): Remove.
11054 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11055
11056 2017-01-10 Tom Tromey <tom@tromey.com>
11057
11058 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11059 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11060
11061 2017-01-10 Tom Tromey <tom@tromey.com>
11062
11063 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11064
11065 2017-01-10 Tom Tromey <tom@tromey.com>
11066
11067 * python/python.c (gdbpy_eval_from_control_command)
11068 (gdbpy_source_script, gdbpy_run_events)
11069 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11070 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11071 gdbpy_enter.
11072
11073 2017-01-10 Tom Tromey <tom@tromey.com>
11074
11075 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11076
11077 2017-01-10 Tom Tromey <tom@tromey.com>
11078
11079 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11080
11081 2017-01-10 Tom Tromey <tom@tromey.com>
11082
11083 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11084 (python_on_inferior_call_pre, python_on_inferior_call_post)
11085 (python_on_memory_change, python_on_register_change)
11086 (python_inferior_exit, python_new_objfile, add_thread_object)
11087 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11088
11089 2017-01-10 Tom Tromey <tom@tromey.com>
11090
11091 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11092 (bpfinishpy_handle_exit): Use gdbpy_enter.
11093
11094 2017-01-10 Tom Tromey <tom@tromey.com>
11095
11096 * python/py-cmd.c (cmdpy_destroyer)
11097 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11098 gdbpy_enter.
11099
11100 2017-01-10 Tom Tromey <tom@tromey.com>
11101
11102 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11103 gdbpy_enter.
11104 (gdbpy_breakpoint_has_cond): Likewise.
11105
11106 2017-01-10 Tom Tromey <tom@tromey.com>
11107
11108 * python/python.c (gdbpy_enter): New constructor.
11109 (~gdbpy_enter): New destructor.
11110 (restore_python_env, ensure_python_env): Rewrite.
11111 * python/python-internal.h (gdbpy_enter): New class.
11112
11113 2017-01-10 Tom Tromey <tom@tromey.com>
11114
11115 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11116
11117 2017-01-10 Tom Tromey <tom@tromey.com>
11118
11119 * python/py-value.c (value_has_field, get_field_flag)
11120 (get_field_type, valpy_getitem, convert_value_from_python): Use
11121 gdbpy_ref.
11122
11123 2017-01-10 Tom Tromey <tom@tromey.com>
11124
11125 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11126 gdbpy_ref.
11127
11128 2017-01-10 Tom Tromey <tom@tromey.com>
11129
11130 * python/py-prettyprint.c (search_pp_list)
11131 (find_pretty_printer_from_objfiles)
11132 (find_pretty_printer_from_progspace)
11133 (find_pretty_printer_from_gdb, find_pretty_printer)
11134 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11135 gdbpy_ref.
11136
11137 2017-01-10 Tom Tromey <tom@tromey.com>
11138
11139 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11140
11141 2017-01-10 Tom Tromey <tom@tromey.com>
11142
11143 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11144 (ltpy_get_all_source_lines): Use gdbpy_ref.
11145
11146 2017-01-10 Tom Tromey <tom@tromey.com>
11147
11148 * python/py-framefilter.c (extract_sym, extract_value)
11149 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11150 gdbpy_ref.
11151
11152 2017-01-10 Tom Tromey <tom@tromey.com>
11153
11154 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11155
11156 2017-01-10 Tom Tromey <tom@tromey.com>
11157
11158 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11159
11160 2017-01-10 Tom Tromey <tom@tromey.com>
11161
11162 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11163 gdbpy_ref.
11164
11165 2017-01-10 Tom Tromey <tom@tromey.com>
11166
11167 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11168
11169 2017-01-10 Tom Tromey <tom@tromey.com>
11170
11171 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11172 (typy_range): Use gdbpy_ref.
11173
11174 2017-01-10 Tom Tromey <tom@tromey.com>
11175
11176 * python/py-threadevent.c (create_thread_event_object): Use
11177 gdbpy_ref.
11178 * python/py-stopevent.c (create_stop_event_object): Simplify.
11179 (emit_stop_event): Use gdbpy_ref.
11180 * python/py-signalevent.c (create_signal_event_object): Use
11181 gdbpy_ref.
11182 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11183 (emit_new_objfile_event, create_clear_objfiles_event_object)
11184 (emit_clear_objfiles_event): Use gdbpy_ref.
11185 * python/py-infevents.c (create_inferior_call_event_object)
11186 (create_register_changed_event_object)
11187 (create_memory_changed_event_object, emit_inferior_call_event)
11188 (emit_memory_changed_event, emit_register_changed_event): Use
11189 gdbpy_ref.
11190 * python/py-exitedevent.c (create_exited_event_object)
11191 (emit_exited_event): Use gdbpy_ref.
11192 * python/py-event.h (evpy_emit_event): Remove
11193 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11194 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11195 * python/py-continueevent.c (emit_continue_event): Use
11196 gdbpy_ref.
11197 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11198 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11199 gdbpy_ref.
11200 * python/py-bpevent.c (create_breakpoint_event_object): Use
11201 gdbpy_ref.
11202
11203 2017-01-10 Tom Tromey <tom@tromey.com>
11204
11205 * python/py-ref.h: New file.
11206
11207 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11208
11209 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11210 void.
11211 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11212 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11213 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11214 * ui-out.c (ui_out::redirect): Likewise.
11215 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11216 * cli/cli-logging.c (set_logging_redirect): Update call site of
11217 ui_out::redirect.
11218 (handle_redirections): Likewise.
11219 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11220 * top.c (execute_command_to_string): Likewise.
11221 * utils.c (do_ui_out_redirect_pop): Likewise.
11222
11223 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11224
11225 * stack.c (_initialize_stack): Update "frame" command help message.
11226
11227 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11228
11229 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11230
11231 2017-01-06 Yao Qi <yao.qi@linaro.org>
11232
11233 * x86-linux-nat.h: Include gdb_proc_service.h.
11234
11235 2017-01-06 Yao Qi <yao.qi@linaro.org>
11236
11237 * ser-base.h: Include serial.h.
11238
11239 2017-01-06 Yao Qi <yao.qi@linaro.org>
11240
11241 * ppc-linux-tdep.h: Include ppc-tdep.h.
11242
11243 2017-01-06 Yao Qi <yao.qi@linaro.org>
11244
11245 * nat/amd64-linux-siginfo.h: Include signal.h.
11246
11247 2017-01-06 Yao Qi <yao.qi@linaro.org>
11248
11249 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11250
11251 2017-01-06 Yao Qi <yao.qi@linaro.org>
11252
11253 * mi/mi-parse.h: Include mi-cmds.h.
11254
11255 2017-01-06 Yao Qi <yao.qi@linaro.org>
11256
11257 * inf-loop.c: Don't include "target.h".
11258 * inf-loop.h: Include it here.
11259
11260 2017-01-06 Yao Qi <yao.qi@linaro.org>
11261
11262 * dfp.h: Include "dboulest.h" and "expression.h".
11263
11264 2017-01-06 Yao Qi <yao.qi@linaro.org>
11265
11266 * ax-gdb.h: Include "ax.h".
11267
11268 2017-01-06 Yao Qi <yao.qi@linaro.org>
11269
11270 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11271 with nat/gdb_ptrace.h.
11272
11273 2017-01-05 Yao Qi <yao.qi@linaro.org>
11274
11275 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11276 new line.
11277 (mips64_fbsd_sigframe_init): Likewise.
11278
11279 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11280
11281 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11282 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11283
11284 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11285
11286 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11287 * NEWS: Mention new FreeBSD/mips native configuration.
11288 * config/mips/fbsd.mh: New file.
11289 * configure.host: Add mips*-*-freebsd*.
11290 * mips-fbsd-nat.c: New file.
11291
11292 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11293
11294 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11295 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11296 * NEWS: Mention new FreeBSD/mips target.
11297 * configure.tgt: Add mips*-*-freebsd*.
11298 * mips-fbsd-tdep.c: New file.
11299 * mips-fbsd-tdep.h: New file.
11300
11301 2017-01-04 Yao Qi <yao.qi@linaro.org>
11302
11303 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11304 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11305
11306 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11307
11308 Update copyright year range in all GDB files.
11309
11310 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11311
11312 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11313
11314 For older changes see ChangeLog-2016.
11315 \f
11316 Local Variables:
11317 mode: change-log
11318 left-margin: 8
11319 fill-column: 74
11320 version-control: never
11321 coding: utf-8
11322 End:
This page took 0.263377 seconds and 4 git commands to generate.