Fix x86 build failures
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-15 Yao Qi <yao.qi@linaro.org>
2
3 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4 gdb_target_obs.
5 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6 Likewise.
7 (i[34567]86-*-linux*): Likewise.
8
9 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
10
11 * dwarf2expr.h (dwarf_stack_value): Add constructor.
12 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
13 <stack>: Change type to std::vector.
14 <stack_len, stack_allocated>: Remove.
15 <grow_stack>: Remove.
16 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
17 (dwarf_expr_context::~dwarf_expr_context): Remove.
18 (dwarf_expr_context::grow_stack): Remove.
19 (dwarf_expr_context::push): Adjust.
20 (dwarf_expr_context::pop): Adjust.
21 (dwarf_expr_context::fetch): Adjust.
22 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
23 (dwarf_expr_context::stack_empty_p): Adjust.
24 (dwarf_expr_context::execute_stack_op): Adjust.
25
26 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
27
28 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
29 return type to bool.
30 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
31
32 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
33
34 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
35 Change type to bool.
36 (dwarf_stack_value) <in_stack_memory>: Likewise.
37 (dwarf_expr_context) <push_address>: Change parameter type to
38 bool.
39 <fetch_in_stack_memory>: Change return type to bool.
40 <push>: Change parameter type to bool.
41 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
42 to bool.
43 (dwarf_expr_context::push_address): Likewise.
44 (dwarf_expr_context::fetch_in_stack_memory): Change return type
45 to bool.
46 (dwarf_expr_context::execute_stack_op): Adjust.
47 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
48
49 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
50
51 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
52 (struct dwarf_expr_context) <n_pieces>: Remove.
53 <pieces>: Change type to std::vector.
54 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
55 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
56 pieces.
57 (dwarf_expr_context::add_piece): Adjust.
58 * dwarf2loc.c (struct piece_closure): Initialize fields.
59 <n_pieces>: Remove.
60 <pieces>: Change type to std::vector.
61 (allocate_piece_closure): Adjust, change parameter to
62 std::vector rvalue and std::move it to piece_closure.
63 (rw_pieced_value): Adjust.
64 (check_pieced_synthetic_pointer): Adjust.
65 (indirect_synthetic_pointer): Adjust.
66 (coerce_pieced_ref): Adjust.
67 (free_pieced_value_closure): Adjust. Use delete to free
68 piece_closure.
69 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
70 to allocate_piece_closure.
71 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
72
73 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
74
75 * probe.h (probe_ops_cp): Remove typedef.
76 (DEF_VEC_P (probe_ops_cp)): Remove.
77 (all_probe_ops): Change type to std::vector.
78 * probe.c (info_probes_for_ops): Adjust to vector change.
79 (probe_linespec_to_ops): Likewise.
80 (all_probe_ops): Change type to std::vector.
81 (_initialize_probe): Adjust to vector change.
82 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
83 * elfread.c (elf_get_probes): Likewise.
84 * stap-probe.c (_initialize_stap_probe): Likewise.
85
86 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
87
88 * probe.h (struct bound_probe): Define constructors.
89 * probe.c (bound_probe_s): Remove typedef.
90 (DEF_VEC_O (bound_probe_s)): Remove VEC.
91 (collect_probes): Change return type to std::vector, remove
92 cleanup.
93 (compare_probes): Return bool, change parameter type. Change
94 semantic to "less than".
95 (gen_ui_out_table_header_info): Change parameter to std::vector
96 and update.
97 (exists_probe_with_pops): Likewise.
98 (info_probes_for_ops): Update to std::vector change.
99 (enable_probes_command): Likewise.
100 (disable_probes_command): Likewise.
101
102 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
103
104 * probe.h (struct probe_ops) <get_probes>: Change parameter from
105 vec to std::vector.
106 * probe.c (parse_probes_in_pspace): Update.
107 (find_probes_in_objfile): Update.
108 (find_probe_by_pc): Update.
109 (collect_probes): Update.
110 (probe_any_get_probes): Update.
111 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
112 return type to reference to std::vector.
113 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
114 std::vector and update.
115 (dtrace_process_dof): Likewise.
116 (dtrace_get_probes): Likewise.
117 * elfread.c (elf_get_probes): Change return type to std::vector,
118 store an std::vector in bfd_data.
119 (probe_key_free): Update to std::vector.
120 * stap-probe.c (handle_stap_probe): Change parameter to
121 std::vector and update.
122 (stap_get_probes): Likewise.
123 * symfile-debug.c (debug_sym_get_probes): Change return type to
124 std::vector and update.
125
126 2017-09-11 Tom Tromey <tom@tromey.com>
127
128 * breakpoint.c (program_breakpoint_here_p): Update.
129 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
130 from make_show_memory_breakpoints_cleanup. Return a
131 scoped_restore_tmpl<int>.
132 (restore_show_memory_breakpoints): Remove.
133 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
134 * mem-break.c (memory_validate_breakpoint): Update.
135 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
136 (ia64_memory_remove_breakpoint): Update.
137 (ia64_breakpoint_from_pc): Update.
138 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
139 from make_show_memory_breakpoints_cleanup.
140
141 2017-09-11 Tom Tromey <tom@tromey.com>
142
143 * d-namespace.c (d_lookup_symbol): Use std::string.
144 (find_symbol_in_baseclass): Likewise.
145
146 2017-09-11 Tom Tromey <tom@tromey.com>
147
148 * ctf.c (ctf_start): Use std::string.
149
150 2017-09-11 Tom Tromey <tom@tromey.com>
151
152 * ada-lang.c (is_known_support_routine): Update.
153 (ada_unhandled_exception_name_addr_from_raise): Update.
154 * guile/scm-frame.c (gdbscm_frame_name): Update.
155 * python/py-frame.c (frapy_name): Update.
156 (frapy_function): Update.
157 * stack.h (find_frame_funname): Update.
158 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
159 (print_frame): Update.
160
161 2017-09-11 Tom Tromey <tom@tromey.com>
162
163 * findcmd.c (put_bits): Take a gdb::byte_vector.
164 (parse_find_args): Return gdb::byte_vector. "args" now const.
165 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
166 cleanups.
167 (find_command): Update.
168
169 2017-09-11 Tom Tromey <tom@tromey.com>
170
171 * cli/cli-script.c (class scoped_restore_hook_in): New.
172 (clear_hook_in_cleanup): Remove.
173 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
174 scoped_restore_hook_in.
175
176 2017-09-11 Tom Tromey <tom@tromey.com>
177
178 * cli/cli-script.c (restore_interp): Remove.
179 (read_command_lines): Use scoped_restore_interp.
180 * interps.c (scoped_restore_interp::set_temp): Rename from
181 interp_set_temp.
182 * interps.h (class scoped_restore_interp): New.
183 (interp_set_temp): Remove.
184
185 2017-09-11 Tom Tromey <tom@tromey.com>
186
187 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
188 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
189 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
190 scoped_restore.
191 (mi_cmd_break_insert_1): Update.
192 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
193 scoped_restore.
194
195 2017-09-11 Tom Tromey <tom@tromey.com>
196
197 * demangle.c (demangle_command): Update.
198 * breakpoint.c (disable_command): Update.
199 (enable_command): Update.
200 (find_location_by_number): Make "number" const. Use
201 get_number_trailer.
202 * cli/cli-utils.c (extract_arg): Return std::string.
203 * probe.c (parse_probe_linespec): Update. Change types.
204 (collect_probes): Take string arguments.
205 (parse_probe_linespec): Likewise.
206 (info_probes_for_ops): Update.
207 (enable_probes_command): Update.
208 (disable_probes_command): Update.
209 * break-catch-sig.c (catch_signal_split_args): Update.
210 * mi/mi-parse.c (mi_parse): Update.
211
212 2017-09-11 Tom Tromey <tom@tromey.com>
213
214 * language.h (language_enum): Make argument const.
215 * language.c (language_enum): Make argument const.
216
217 2017-09-11 Tom Tromey <tom@tromey.com>
218
219 * common/common-utils.h (skip_to_space): Remove macro, redeclare
220 as function.
221 (skip_to_space): Rename from skip_to_space_const.
222 * common/common-utils.c (skip_to_space): New function.
223 (skip_to_space): Rename from skip_to_space_const.
224 * cli/cli-utils.h (get_number): Rename from get_number_const.
225 (extract_arg): Rename from extract_arg_const.
226 * cli/cli-utils.c (get_number): Rename from get_number_const.
227 (extract_arg): Rename from extract_arg_const.
228 (number_or_range_parser::get_number): Use ::get_number.
229 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
230 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
231 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
232 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
233 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
234 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
235 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
236 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
237
238 2017-09-11 Tom Tromey <tom@tromey.com>
239
240 * python/python.c (do_start_initialization): Use
241 py-event-types.def to initialize types.
242 Define all object type structures.
243 * python/python-internal.h: Don't declare event initialization
244 functions.
245 * python/py-threadevent.c (thread_event_object_type): Don't
246 define.
247 * python/py-stopevent.c (stop_event_object_type): Don't define.
248 * python/py-signalevent.c (signal_event_object_type): Don't
249 declare or define.
250 * python/py-newobjfileevent.c (new_objfile_event_object_type)
251 (clear_objfiles_event_object_type): Don't declare or define.
252 * python/py-infevents.c (inferior_call_pre_event_object_type)
253 (inferior_call_post_event_object_type)
254 (register_changed_event_object_type)
255 (memory_changed_event_object_type): Don't declare or define.
256 * python/py-inferior.c (new_thread_event_object_type)
257 (new_inferior_event_object_type)
258 (inferior_deleted_event_object_type): Don't declare or define.
259 * python/py-exitedevent.c (exited_event_object_type): Don't
260 declare or define.
261 * python/py-evts.c (gdbpy_initialize_py_events): Use
262 py-all-events.def.
263 * python/py-events.h (thread_event_object_type): Don't declare.
264 (events_object): Use py-all-events.def.
265 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
266 py-event-types.def.
267 * python/py-event-types.def: New file.
268 * python/py-continueevent.c (create_continue_event_object): Don't
269 declare or define.
270 * python/py-bpevent.c (breakpoint_event_object_type): Don't
271 declare or define.
272 * python/py-all-events.def: New file.
273
274 2017-09-11 Tom Tromey <tom@tromey.com>
275
276 * python/py-threadevent.c (create_thread_event_object): Return
277 gdbpy_ref.
278 * python/py-stopevent.h (create_stop_event_object)
279 (create_breakpoint_event_object, create_signal_event_object):
280 Update.
281 * python/py-stopevent.c (create_stop_event_object): Return
282 gdbpy_ref.
283 (emit_stop_event): Update.
284 * python/py-signalevent.c (create_signal_event_object): Return
285 gdbpy_ref.
286 * python/py-infevents.c (create_inferior_call_event_object):
287 Update.
288 * python/py-event.h (create_event_object)
289 (create_thread_event_object): Update.
290 * python/py-event.c (create_event_object): Return gdbpy_ref.
291 * python/py-continueevent.c: Return gdbpy_ref.
292 * python/py-bpevent.c (create_breakpoint_event_object): Return
293 gdbpy_ref.
294
295 2017-09-11 Tom Tromey <tom@tromey.com>
296
297 PR python/15622:
298 * NEWS: Add entry.
299 * python/python.c (do_start_initialization): Initialize new event
300 types.
301 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
302 (gdbpy_initialize_inferior_deleted_event)
303 (gdbpy_initialize_new_thread_event): Declare.
304 * python/py-threadevent.c (create_thread_event_object): Add option
305 "thread" parameter.
306 * python/py-inferior.c (new_thread_event_object_type)
307 (new_inferior_event_object_type)
308 (inferior_deleted_event_object_type): Declare.
309 (python_new_inferior, python_inferior_deleted): New functions.
310 (add_thread_object): Emit new_thread event.
311 (gdbpy_initialize_inferior): Attach new functions to corresponding
312 observers.
313 (new_thread, new_inferior, inferior_deleted): Define new event
314 types.
315 * python/py-evts.c (gdbpy_initialize_py_events): Add new
316 registries.
317 * python/py-events.h (events_object) <new_inferior,
318 inferior_deleted, new_thread>: New fields.
319 * python/py-event.h (create_thread_event_breakpoint): Add optional
320 "thread" parameter.
321
322 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
325 check current_ui instead.
326 (internal_vproblem): Likewise.
327
328 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
329
330 * thread.c (print_thread_info_1): Remove unnecessary calls to
331 uiout->is_mi_like_p.
332
333 2017-09-09 Tom Tromey <tom@tromey.com>
334
335 * namespace.h (add_using_directive): Update.
336 * namespace.c (add_using_directive): Change type of excludes to
337 std::vector.
338 * dwarf2read.c (read_import_statement): Use std::vector.
339 (read_namespace): Update.
340 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
341
342 2017-09-09 Tom Tromey <tom@tromey.com>
343
344 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
345
346 2017-09-09 Tom Tromey <tom@tromey.com>
347
348 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
349
350 2017-09-09 Tom Tromey <tom@tromey.com>
351
352 * stack.c (func_command): Use gdb::def_vector.
353
354 2017-09-09 Tom Tromey <tom@tromey.com>
355
356 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
357 ui_out_emit_list, ui_out_emit_tuple.
358 (mi_cmd_var_update): Likewise.
359
360 2017-09-09 Tom Tromey <tom@tromey.com>
361
362 * mi/mi-interp.c (mi_user_selected_context_changed): Use
363 ui_out_redirect_pop.
364 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
365 ui_out_redirect_pop.
366 * utils.c (do_ui_out_redirect_pop)
367 (make_cleanup_ui_out_redirect_pop): Remove.
368 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
369 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
370 * ui-out.h (ui_out_redirect_pop): New class.
371
372 2017-09-09 Tom Tromey <tom@tromey.com>
373
374 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
375 (list_available_thread_groups, mi_cmd_list_thread_groups)
376 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
377 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
378 Likewise.
379
380 2017-09-09 Tom Tromey <tom@tromey.com>
381
382 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
383 ui_out_emit_tuple.
384
385 2017-09-09 Tom Tromey <tom@tromey.com>
386
387 * target.c (flash_erase_command): Use ui_out_emit_tuple.
388 * stack.c (print_frame): Use ui_out_emit_tuple.
389 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
390 (info_spu_mailbox_command, info_spu_dma_command)
391 (info_spu_proxydma_command): Likewise.
392 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
393 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
394 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
395 ui_out_emit_tuple.
396 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
397
398 2017-09-09 Tom Tromey <tom@tromey.com>
399
400 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
401 (class ui_out_emit_table): Update comment.
402 * ui-out.c (do_cleanup_table_end)
403 (make_cleanup_ui_out_table_begin_end): Remove.
404 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
405 (info_spu_dma_cmdlist): Likewise.
406 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
407 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
408 ui_out_emit_table.
409
410 2017-09-09 Tom Tromey <tom@tromey.com>
411
412 * thread.c (print_thread_info_1): Use ui_out_emit_table,
413 ui_out_emit_list, gdb::optional.
414
415 2017-09-09 John Baldwin <jhb@FreeBSD.org>
416
417 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
418 prototype.
419 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
420 prototype.
421 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
422 prototype.
423 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
424 * ada-exp.y: Remove _initialize_ada_exp prototype.
425 * ada-lang.c: Remove _initialize_ada_language prototype.
426 * ada-tasks.c: Remove _initialize_tasks prototype.
427 * addrmap.c: Remove _initialize_addrmap prototype.
428 * agent.c: Remove _initialize_agent prototype.
429 * aix-thread.c: Remove _initialize_aix_thread prototype.
430 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
431 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
432 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
433 prototype.
434 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
435 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
436 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
437 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
438 prototype.
439 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
440 prototype.
441 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
442 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
443 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
444 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
445 prototype.
446 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
447 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
448 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
449 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
450 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
451 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
452 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
453 prototype.
454 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
455 prototype.
456 * annotate.c: Remove _initialize_annotate prototype.
457 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
458 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
459 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
460 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
461 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
462 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
463 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
464 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
465 prototype.
466 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
467 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
468 * auto-load.c: Remove _initialize_auto_load prototype.
469 * auxv.c: Remove _initialize_auxv prototype.
470 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
471 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
472 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
473 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
474 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
475 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
476 prototype.
477 * break-catch-throw.c: Remove _initialize_break_catch_throw
478 prototype.
479 * breakpoint.c: Remove _initialize_breakpoint prototype.
480 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
481 * btrace.c: Remove _initialize_btrace prototype.
482 * charset.c: Remove _initialize_charset prototype.
483 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
484 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
485 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
486 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
487 * cli/cli-script.c: Remove _initialize_cli_script prototype.
488 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
489 * coffread.c: Remove _initialize_coffread prototype.
490 * compile/compile.c: Remove _initialize_compile prototype.
491 * complaints.c: Remove _initialize_complaints prototype.
492 * completer.c: Remove _initialize_completer prototype.
493 * copying.awk: Remove _initialize_copying prototype.
494 * copying.c: Regenerate.
495 * core-regset.c: Remove _initialize_core_regset prototype.
496 * corefile.c: Remove _initialize_core prototype.
497 * corelow.c: Remove _initialize_corelow prototype.
498 * cp-abi.c: Remove _initialize_cp_abi prototype.
499 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
500 * cp-support.c: Remove _initialize_cp_support prototype.
501 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
502 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
503 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
504 * ctf.c: Remove _initialize_ctf prototype.
505 * d-lang.c: Remove _initialize_d_language prototype.
506 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
507 prototype.
508 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
509 * dbxread.c: Remove _initialize_dbxread prototype.
510 * dcache.c: Remove _initialize_dcache prototype.
511 * demangle.c: Remove _initialize_demangler prototype.
512 * disasm-selftests.c: Remove _initialize_disasm_selftests
513 prototype.
514 * disasm.c: Remove _initialize_disasm prototype.
515 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
516 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
517 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
518 prototype.
519 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
520 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
521 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
522 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
523 * elfread.c: Remove _initialize_elfread prototype.
524 * exec.c: Remove _initialize_exec prototype.
525 * extension.c: Remove _initialize_extension prototype.
526 * f-lang.c: Remove _initialize_f_language prototype.
527 * f-valprint.c: Remove _initialize_f_valprint prototype.
528 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
529 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
530 * filesystem.c: Remove _initialize_filesystem prototype.
531 * findcmd.c: Remove _initialize_mem_search prototype.
532 * fork-child.c: Remove _initialize_fork_child prototype.
533 * frame-base.c: Remove _initialize_frame_base prototype.
534 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
535 * frame.c: Remove _initialize_frame prototype.
536 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
537 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
538 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
539 * gcore.c: Remove _initialize_gcore prototype.
540 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
541 * gdbarch.c: Regenerate.
542 * gdbarch.sh: Remove _initialize_gdbarch prototype.
543 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
544 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
545 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
546 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
547 * go-lang.c: Remove _initialize_go_language prototype.
548 * go32-nat.c: Remove _initialize_go32_nat prototype.
549 * guile/guile.c: Remove _initialize_guile prototype.
550 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
551 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
552 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
553 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
554 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
555 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
556 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
557 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
558 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
559 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
560 prototype.
561 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
562 prototype.
563 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
564 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
565 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
566 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
567 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
568 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
569 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
570 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
571 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
572 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
573 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
574 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
575 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
576 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
577 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
578 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
579 prototype.
580 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
581 prototype.
582 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
583 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
584 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
585 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
586 * infcall.c: Remove _initialize_infcall prototype.
587 * infcmd.c: Remove _initialize_infcmd prototype.
588 * inferior.c: Remove _initialize_inferiors prototype.
589 * inflow.c: Remove _initialize_inflow prototype.
590 * infrun.c: Remove _initialize_infrun prototype.
591 * interps.c: Remove _initialize_interpreter prototype.
592 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
593 * jit.c: Remove _initialize_jit prototype.
594 * language.c: Remove _initialize_language prototype.
595 * linux-fork.c: Remove _initialize_linux_fork prototype.
596 * linux-nat.c: Remove _initialize_linux_nat prototype.
597 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
598 * linux-thread-db.c: Remove _initialize_thread_db prototype.
599 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
600 * m2-lang.c: Remove _initialize_m2_language prototype.
601 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
602 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
603 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
604 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
605 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
606 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
607 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
608 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
609 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
610 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
611 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
612 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
613 * machoread.c: Remove _initialize_machoread prototype.
614 * macrocmd.c: Remove _initialize_macrocmd prototype.
615 * macroscope.c: Remove _initialize_macroscope prototype.
616 * maint.c: Remove _initialize_maint_cmds prototype.
617 * mdebugread.c: Remove _initialize_mdebugread prototype.
618 * memattr.c: Remove _initialize_mem prototype.
619 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
620 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
621 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
622 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
623 * mi/mi-main.c: Remove _initialize_mi_main prototype.
624 * microblaze-linux-tdep.c: Remove
625 _initialize_microblaze_linux_tdep prototype.
626 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
627 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
628 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
629 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
630 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
631 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
632 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
633 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
634 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
635 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
636 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
637 prototype.
638 * mipsread.c: Remove _initialize_mipsread prototype.
639 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
640 prototype.
641 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
642 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
643 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
644 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
645 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
646 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
647 prototype.
648 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
649 * nto-procfs.c: Remove _initialize_procfs prototype.
650 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
651 * objc-lang.c: Remove _initialize_objc_language prototype.
652 * objfiles.c: Remove _initialize_objfiles prototype.
653 * observer.c: Remove observer_test_first_notification_function,
654 observer_test_second_notification_function,
655 observer_test_third_notification_function, and
656 _initialize_observer prototypes.
657 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
658 * osabi.c: Remove _initialize_gdb_osabi prototype.
659 * osdata.c: Remove _initialize_osdata prototype.
660 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
661 * parse.c: Remove _initialize_parse prototype.
662 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
663 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
664 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
665 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
666 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
667 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
668 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
669 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
670 * printcmd.c: Remove _initialize_printcmd prototype.
671 * probe.c: Remove _initialize_probe prototype.
672 * proc-api.c: Remove _initialize_proc_api prototype.
673 * proc-events.c: Remove _initialize_proc_events prototype.
674 * proc-service.c: Remove _initialize_proc_service prototype.
675 * procfs.c: Remove _initialize_procfs prototype.
676 * psymtab.c: Remove _initialize_psymtab prototype.
677 * python/python.c: Remove _initialize_python prototype.
678 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
679 * record-btrace.c: Remove _initialize_record_btrace prototype.
680 * record-full.c: Remove _initialize_record_full prototype.
681 * record.c: Remove _initialize_record prototype.
682 * regcache.c: Remove _initialize_regcache prototype.
683 * reggroups.c: Remove _initialize_reggroup prototype.
684 * remote-notif.c: Remove _initialize_notif prototype.
685 * remote-sim.c: Remove _initialize_remote_sim prototype.
686 * remote.c: Remove _initialize_remote prototype.
687 * reverse.c: Remove _initialize_reverse prototype.
688 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
689 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
690 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
691 prototype.
692 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
693 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
694 * rust-exp.y: Remove _initialize_rust_exp prototype.
695 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
696 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
697 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
698 * score-tdep.c: Remove _initialize_score_tdep prototype.
699 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
700 prototype.
701 * ser-go32.c: Remove _initialize_ser_dos prototype.
702 * ser-mingw.c: Remove _initialize_ser_windows prototype.
703 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
704 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
705 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
706 * serial.c: Remove _initialize_serial prototype.
707 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
708 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
709 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
710 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
711 * skip.c: Remove _initialize_step_skip prototype.
712 * sol-thread.c: Remove _initialize_sol_thread prototype.
713 * solib-aix.c: Remove _initialize_solib_aix prototype.
714 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
715 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
716 * solib-frv.c: Remove _initialize_frv_solib prototype.
717 * solib-spu.c: Remove _initialize_spu_solib prototype.
718 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
719 * solib-target.c: Remove _initialize_solib_target prototype.
720 * solib.c: Remove _initialize_solib prototype.
721 * source.c: Remove _initialize_source prototype.
722 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
723 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
724 prototype.
725 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
726 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
727 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
728 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
729 prototype.
730 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
731 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
732 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
733 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
734 prototype.
735 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
736 prototype.
737 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
738 prototype.
739 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
740 prototype.
741 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
742 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
743 prototype.
744 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
745 prototype.
746 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
747 prototype.
748 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
749 prototype.
750 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
751 prototype.
752 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
753 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
754 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
755 * stabsread.c: Remove _initialize_stabsread prototype.
756 * stack.c: Remove _initialize_stack prototype.
757 * stap-probe.c: Remove _initialize_stap_probe prototype.
758 * std-regs.c: Remove _initialize_frame_reg prototype.
759 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
760 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
761 * symfile.c: Remove _initialize_symfile prototype.
762 * symmisc.c: Remove _initialize_symmisc prototype.
763 * symtab.c: Remove _initialize_symtab prototype.
764 * target-dcache.c: Remove _initialize_target_dcache prototype.
765 * target-descriptions.c: Remove _initialize_target_descriptions
766 prototype.
767 * thread.c: Remove _initialize_thread prototype.
768 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
769 prototype.
770 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
771 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
772 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
773 prototype.
774 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
775 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
776 * tracefile.c: Remove _initialize_tracefile prototype.
777 * tracepoint.c: Remove _initialize_tracepoint prototype.
778 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
779 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
780 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
781 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
782 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
783 * tui/tui-win.c: Remove _initialize_tui_win prototype.
784 * tui/tui.c: Remove _initialize_tui prototype.
785 * typeprint.c: Remove _initialize_typeprint prototype.
786 * user-regs.c: Remove _initialize_user_regs prototype.
787 * utils.c: Remove _initialize_utils prototype.
788 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
789 * valarith.c: Remove _initialize_valarith prototype.
790 * valops.c: Remove _initialize_valops prototype.
791 * valprint.c: Remove _initialize_valprint prototype.
792 * value.c: Remove _initialize_values prototype.
793 * varobj.c: Remove _initialize_varobj prototype.
794 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
795 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
796 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
797 * windows-nat.c: Remove _initialize_windows_nat,
798 _initialize_check_for_gdb_ini, and _initialize_loadable
799 prototypes.
800 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
801 * xcoffread.c: Remove _initialize_xcoffread prototype.
802 * xml-support.c: Remove _initialize_xml_support prototype.
803 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
804 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
805 prototype.
806 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
807 prototype.
808 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
809
810 2017-09-08 Keith Seitz <keiths@redhat.com>
811
812 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
813 field.
814
815 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
816
817 * f-valprint.c (f_val_print): Remove check for one byte
818 sized integers. Remove printing of character type.
819
820 2017-09-08 Frank Penczek <frank.penczek@intel.com>
821 Christoph Weinmann <christoph.t.weinmann@intel.com>
822 Bernhard Heckel <bernhard.heckel@intel.com>
823
824 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
825 to maintain proper indentation when printing pointers/refs.
826
827 2017-09-07 Joel Brobecker <brobecker@adacore.com>
828
829 GDB 8.0.1 released.
830
831 2017-09-07 Joel Brobecker <brobecker@adacore.com>
832
833 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
834
835 2017-09-05 Tom Tromey <tom@tromey.com>
836
837 * parse.c (funcall_chain): Now a std::vector.
838 (start_arglist, end_arglist): Simplify.
839 (free_funcalls): Remove.
840 (parse_exp_in_context_1): Remove cleanup.
841
842 2017-09-05 Tom Tromey <tom@tromey.com>
843
844 * go-exp.y (go_parse): Don't create a cleanup.
845
846 2017-09-05 Tom Tromey <tom@tromey.com>
847
848 * d-exp.y (PrimaryExpression): Use std::string.
849 (d_parse): Don't create a cleanup.
850
851 2017-09-05 Tom Tromey <tom@tromey.com>
852
853 * utils.c (do_clear_parser_state): Remove.
854 (make_cleanup_clear_parser_state): Remove.
855 * p-exp.y (pascal_parse): Use scoped_restore.
856 * m2-exp.y (m2_parse): Use scoped_restore.
857 * f-exp.y (f_parse): Use scoped_restore.
858 * d-exp.y (d_parse): Use scoped_restore.
859 * c-exp.y (c_parse): Use scoped_restore.
860 * ada-exp.y (ada_parse): Use scoped_restore.
861 * utils.h (make_cleanup_clear_parser_state): Remove.
862
863 2017-09-06 Keith Seitz <keiths@redhat.com>
864
865 * dwarf2read.c (dw2_linkage_name_attr): New function.
866 (dw2_linkage_name): New function.
867 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
868 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
869 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
870
871 2017-09-06 Kamil Rytarowski <n54@gmx.com>
872
873 * config/djgpp/djconfig.sh: Correct shell portability issue.
874
875 2017-09-06 Kamil Rytarowski <n54@gmx.com>
876
877 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
878
879 2017-09-06 John Baldwin <jhb@FreeBSD.org>
880
881 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
882 * NEWS: Mention new FreeBSD/mips native configuration.
883 * configure.host: Add aarch64*-*-freebsd*.
884 * configure.nat: Likewise.
885 * aarch64-fbsd-nat.c: New file.
886
887 2017-09-06 John Baldwin <jhb@FreeBSD.org>
888
889 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
890 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
891 * NEWS: Mention new FreeBSD/aarch64 target.
892 * configure.tgt: Add aarch64*-*-freebsd*.
893 * aarch64-fbsd-tdep.c: New file.
894 * aarch64-fbsd-tdep.h: New file.
895
896 2017-09-06 Kamil Rytarowski <n54@gmx.com>
897
898 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
899
900 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
901
902 * parse.c (find_minsym_type_and_address): Don't relocate addresses
903 of TLS symbols.
904
905 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
906
907 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
908 call.
909
910 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
911
912 * infrun.c (follow_exec): Call add_thread after
913 target_find_description.
914
915 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
916
917 * infrun.c (handle_inferior_event_1): When exec'ing, read
918 stop_pc after follow_exec.
919
920 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
921
922 * remote.c (process_g_packet): Update error message.
923
924 2017-09-05 Yao Qi <yao.qi@linaro.org>
925
926 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
927 targets.
928
929 2017-09-05 Pedro Alves <palves@redhat.com>
930
931 * eval.c (eval_call, evaluate_funcall): New functions, factored
932 out from ...
933 (evaluate_subexp_standard): ... this.
934
935 2017-09-05 Yao Qi <yao.qi@linaro.org>
936
937 * amd64-tdep.c (amd64_target_description): Create target
938 descriptions.
939 (_initialize_amd64_tdep): Don't call functions
940 initialize_tdesc_amd64_*. Add self tests.
941 * arch/amd64.c (amd64_create_target_description): Add parameter
942 is_linux. Call set_tdesc_osabi if is_linux is true.
943 * arch/amd64.h (amd64_create_target_description): Update the
944 declaration.
945 * arch/i386.c (i386_create_target_description): Add parameter
946 is_linux. Call set_tdesc_osabi if is_linux is true.
947 * arch/i386.h (i386_create_target_description): Update
948 declaration.
949 * configure.tgt: Add i386.o to gdb_target_obs.
950 * features/Makefile (XMLTOC): Remove i386/*.xml.
951 * features/i386/amd64-avx-avx512.c: Remove.
952 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
953 * features/i386/amd64-avx-mpx.c: Remove.
954 * features/i386/amd64-avx.c: Remove.
955 * features/i386/amd64-mpx.c: Remove.
956 * features/i386/amd64.c: Remove.
957 * features/i386/i386-avx-avx512.c: Remove.
958 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
959 * features/i386/i386-avx-mpx.c: Remove.
960 * features/i386/i386-avx.c: Remove.
961 * features/i386/i386-mmx.c: Remove.
962 * features/i386/i386-mpx.c: Remove.
963 * features/i386/i386.c: Remove.
964 * i386-tdep.c: Don't include features/i386/i386*.c., include
965 target-descriptions.h and arch/i386.h.
966 (i386_target_description): Create target descriptions.
967 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
968 functions. Do self tests.
969
970 2017-09-05 Yao Qi <yao.qi@linaro.org>
971
972 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
973 * features/i386/amd64-avx-avx512-linux.c: Removed.
974 * features/i386/amd64-avx-linux.c: Removed.
975 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
976 * features/i386/amd64-avx-mpx-linux.c: Removed.
977 * features/i386/amd64-linux.c: Removed.
978 * features/i386/amd64-mpx-linux.c: Removed.
979 * features/i386/x32-avx-avx512-linux.c: Removed.
980 * features/i386/x32-avx-linux.c: Removed.
981 * features/i386/x32-linux.c: Removed.
982
983 2017-09-05 Yao Qi <yao.qi@linaro.org>
984
985 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
986 features/i386/*.c.
987 (amd64_linux_read_description): Call
988 amd64_create_target_description.
989 * arch/amd64.c: New file.
990 * arch/amd64.h: New file.
991 * configure.tgt (x86_64-*-linux*): Append amd64.o.
992 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
993
994 2017-09-05 Yao Qi <yao.qi@linaro.org>
995
996 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
997 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
998 (amd64_linux_read_description): Create target descriptions.
999 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1000 functions. Add unit tests.
1001 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1002 x32-core.xml.
1003 * features/i386/64bit-avx.c: Generated.
1004 * features/i386/64bit-avx512.c: Generated.
1005 * features/i386/64bit-core.c: Generated.
1006 * features/i386/64bit-linux.c: Generated.
1007 * features/i386/64bit-mpx.c: Generated.
1008 * features/i386/64bit-pkeys.c: Generated.
1009 * features/i386/64bit-segments.c: Generated.
1010 * features/i386/64bit-sse.c: Generated.
1011 * features/i386/x32-core.c: Generated.
1012 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1013 c files for amd64-linux and x32-linux.
1014
1015 2017-09-05 Yao Qi <yao.qi@linaro.org>
1016
1017 * amd64-linux-tdep.c (amd64_linux_read_description): New
1018 function.
1019 (amd64_linux_core_read_description): Call
1020 amd64_linux_read_description.
1021 (amd64_linux_init_abi): Likewise.
1022 (amd64_x32_linux_init_abi): Likewise.
1023 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
1024 * x86-linux-nat.c (x86_linux_read_description): Call
1025 amd64_linux_read_description.
1026
1027 2017-09-05 Yao Qi <yao.qi@linaro.org>
1028
1029 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
1030 comments.
1031
1032 2017-09-05 Yao Qi <yao.qi@linaro.org>
1033
1034 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
1035 * features/i386/i386-avx-avx512-linux.c: Remove.
1036 * features/i386/i386-avx-linux.c: Remove.
1037 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
1038 * features/i386/i386-avx-mpx-linux.c: Remove.
1039 * features/i386/i386-linux.c: Remove.
1040 * features/i386/i386-mmx-linux.c: Remove.
1041 * features/i386/i386-mpx-linux.c: Remove.
1042
1043 2017-09-05 Yao Qi <yao.qi@linaro.org>
1044
1045 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
1046 (SFILES): Add arch/i386.c.
1047 (HFILES_NO_SRCDIR): Add arch/i386.h.
1048 * arch/i386.c: New file.
1049 * arch/i386.h: New file.
1050 * arch/tdesc.h (allocate_target_description): Declare.
1051 (set_tdesc_architecture): Declare.
1052 (set_tdesc_osabi): Declare.
1053 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
1054 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
1055 include arch/i386.h.
1056 (i386_linux_read_description): Remove code and call
1057 i386_create_target_description.
1058 (set_tdesc_architecture): New function.
1059 (set_tdesc_osabi): New function.
1060 * target-descriptions.h (allocate_target_description): Remove.
1061
1062 2017-09-05 Yao Qi <yao.qi@linaro.org>
1063
1064 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
1065 * target-descriptions.c (tdesc_create_feature): Likewise, and
1066 adjust code.
1067 * features/i386/32bit-avx.c: Re-generated.
1068 * features/i386/32bit-avx512.c: Re-generated.
1069 * features/i386/32bit-core.c: Re-generated.
1070 * features/i386/32bit-linux.c: Re-generated.
1071 * features/i386/32bit-mpx.c: Re-generated.
1072 * features/i386/32bit-pkeys.c: Re-generated.
1073 * features/i386/32bit-sse.c: Re-generated.
1074
1075 2017-09-05 Yao Qi <yao.qi@linaro.org>
1076
1077 * regformats/regdef.h (struct reg): Override operator == and !=.
1078
1079 2017-09-05 Yao Qi <yao.qi@linaro.org>
1080
1081 * arch/tdesc.h: New file.
1082 * regformats/regdat.sh: Generate code using tdesc_create_reg.
1083 * target-descriptions.c: Update comments.
1084 * target-descriptions.h: Include "arch/tdesc.h". Remove the
1085 declarations.
1086 * features/i386/32bit-avx.c: Re-generated.
1087 * features/i386/32bit-avx512.c: Re-generated.
1088 * features/i386/32bit-core.c: Re-generated.
1089 * features/i386/32bit-linux.c: Re-generated.
1090 * features/i386/32bit-mpx.c: Re-generated.
1091 * features/i386/32bit-pkeys.c: Re-generated.
1092 * features/i386/32bit-sse.c: Re-generated.
1093
1094 2017-09-05 Yao Qi <yao.qi@linaro.org>
1095
1096 * regformats/regdat.sh: Update generated code.
1097
1098 2017-09-05 Yao Qi <yao.qi@linaro.org>
1099
1100 * regformats/regdat.sh: Adjust code order.
1101
1102 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1103
1104 * expprint.c (dump_subexp_body_standard): Use constant format
1105 string in fprintf_filtered call.
1106
1107 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1108
1109 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
1110 NetBSD/i386.
1111 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
1112
1113 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1114
1115 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
1116
1117 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1118
1119 * bsd-kvm.o: Define _KMEMUSER.
1120 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
1121 * configure: Regenerate.
1122
1123 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1124
1125 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
1126 * i386-fbsd-nat.c: Likewise.
1127
1128 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1129
1130 * unittests/array-view-selftests.c: Add include of <array>.
1131
1132 2017-09-04 John Baldwin <jhb@FreeBSD.org>
1133
1134 * spu-tdep.c (flush_ea_cache): Add missing argument to
1135 call_function_by_hand.
1136
1137 2017-09-04 Pedro Alves <palves@redhat.com>
1138
1139 * NEWS (Safer support for debugging with no debug info): New.
1140
1141 2017-09-04 Pedro Alves <palves@redhat.com>
1142
1143 * c-exp.y (function_method, function_method_void): Add current
1144 instance flags to TYPE_INSTANCE.
1145 * dwarf2read.c (check_modifier): New.
1146 (compute_delayed_physnames): Assert that only C++ adds delayed
1147 physnames. Mark fn_fields as const/volatile depending on
1148 physname.
1149 * eval.c (make_params): New type_instance_flags parameter. Use
1150 it as the new type's instance flags.
1151 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
1152 flags element and pass it to make_params.
1153 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
1154 instance flags element.
1155 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
1156 * gdbtypes.h: Include "enum-flags.h".
1157 (type_instance_flags): New enum-flags type.
1158 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
1159 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
1160 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
1161 (follow_type_instance_flags): New function.
1162 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
1163 * parser-defs.h (follow_type_instance_flags): Declare.
1164 * valops.c (value_struct_elt_for_reference): const/volatile must
1165 match too.
1166
1167 2017-09-04 Pedro Alves <palves@redhat.com>
1168
1169 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
1170 function/method scopes; lookup the nested name as a function local
1171 static variable.
1172
1173 2017-09-04 Pedro Alves <palves@redhat.com>
1174
1175 (%type <voidval>): Add function_method.
1176 * c-exp.y (exp): New production for calls with no arguments.
1177 (function_method, function_method_void_or_typelist): New
1178 productions.
1179 (exp): New production for "method()::static_var".
1180 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
1181 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1182 Handle OP_FUNC_STATIC_VAR.
1183 * parse.c (operator_length_standard):
1184 Handle OP_FUNC_STATIC_VAR.
1185
1186 2017-09-04 Pedro Alves <palves@redhat.com>
1187
1188 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
1189 handling.
1190 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1191 Ditto.
1192 * parse.c (operator_length_standard, operator_check_standard):
1193 Ditto.
1194 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
1195
1196 2017-09-04 Pedro Alves <palves@redhat.com>
1197
1198 * ax-gdb.c: Include "typeprint.h".
1199 (gen_expr_for_cast): New function.
1200 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
1201 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
1202 type is unknown.
1203 * dwarf2read.c (new_symbol_full): Fallback to int instead of
1204 nodebug_data_symbol.
1205 * eval.c: Include "typeprint.h".
1206 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
1207 Error out if symbol has unknown type.
1208 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
1209 evaluate_subexp_for_cast.
1210 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
1211 OP_VAR_MSYM_VALUE.
1212 (evaluate_subexp_for_cast): New function.
1213 * gdbtypes.c (init_nodebug_var_type): New function.
1214 (objfile_type): Use it to initialize types of variables with no
1215 debug info.
1216 * typeprint.c (error_unknown_type): New.
1217 * typeprint.h (error_unknown_type): New declaration.
1218 * compile/compile-c-types.c (convert_type_basic): Handle
1219 TYPE_CODE_ERROR; warn and fallback to int for variables with
1220 unknown type.
1221
1222 2017-09-04 Pedro Alves <palves@redhat.com>
1223
1224 * eval.c (evaluate_var_value): New function, factored out from ...
1225 (evaluate_subexp_standard): ... here.
1226
1227 2017-09-04 Pedro Alves <palves@redhat.com>
1228
1229 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
1230 Remove useless assignments to 'op'.
1231
1232 2017-09-04 Pedro Alves <palves@redhat.com>
1233
1234 * eval.c (eval_skip_value): New function.
1235 (evaluate_subexp_standard): Use it.
1236
1237 2017-09-04 Pedro Alves <palves@redhat.com>
1238
1239 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
1240 function name from symbol/minsym and pass it to
1241 error_call_unknown_return_type.
1242
1243 2017-09-04 Pedro Alves <palves@redhat.com>
1244
1245 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
1246 * ax-gdb.c (gen_msym_var_ref): New function.
1247 (gen_expr): Handle OP_VAR_MSYM_VALUE.
1248 * eval.c (evaluate_var_msym_value): New function.
1249 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
1250 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
1251 to call_function_by_hand.
1252 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1253 Handle OP_VAR_MSYM_VALUE.
1254 (union exp_element) <msymbol>: New field.
1255 * minsyms.h (struct type): Forward declare.
1256 (find_minsym_type_and_address): Declare.
1257 * parse.c (write_exp_elt_msym): New function.
1258 (write_exp_msymbol): Delete, refactored as ...
1259 (find_minsym_type_and_address): ... this new function.
1260 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
1261 (operator_length_standard, operator_check_standard): Handle
1262 OP_VAR_MSYM_VALUE.
1263 * std-operator.def (OP_VAR_MSYM_VALUE): New.
1264
1265 2017-09-04 Pedro Alves <palves@redhat.com>
1266
1267 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
1268 TYPE_GNU_IFUNC specially here. Throw error if return type is
1269 unknown.
1270 * ada-typeprint.c (print_func_type): Handle functions with unknown
1271 return type.
1272 * c-typeprint.c (c_type_print_base): Handle functions and methods
1273 with unknown return type.
1274 * compile/compile-c-symbols.c (convert_symbol_bmsym)
1275 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
1276 * compile/compile-c-types.c: Include "objfiles.h".
1277 (convert_func): For functions with unknown return type, warn and
1278 default to int.
1279 * compile/compile-object-run.c (compile_object_run): Adjust call
1280 to call_function_by_hand_dummy.
1281 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
1282 call_function_by_hand.
1283 * eval.c (evaluate_subexp_standard): Adjust calls to
1284 call_function_by_hand. Handle functions and methods with unknown
1285 return type. Pass expect_type to call_function_by_hand.
1286 * f-typeprint.c (f_type_print_base): Handle functions with unknown
1287 return type.
1288 * gcore.c (call_target_sbrk): Adjust call to
1289 call_function_by_hand.
1290 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
1291 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
1292 an integer address type instead of nodebug.
1293 * guile/scm-value.c (gdbscm_value_call): Adjust call to
1294 call_function_by_hand.
1295 * infcall.c (error_call_unknown_return_type): New function.
1296 (call_function_by_hand): New "default_return_type" parameter.
1297 Pass it down.
1298 (call_function_by_hand_dummy): New "default_return_type"
1299 parameter. Use it instead of defaulting to int. If there's no
1300 default and the return type is unknown, throw an error. If
1301 there's a default return type, and the called function has no
1302 debug info, then assume the function is prototyped.
1303 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
1304 New "default_return_type" parameter.
1305 (error_call_unknown_return_type): New declaration.
1306 * linux-fork.c (call_lseek): Cast return type of lseek.
1307 (inferior_call_waitpid, checkpoint_command): Adjust calls to
1308 call_function_by_hand.
1309 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
1310 calls to call_function_by_hand.
1311 * m2-typeprint.c (m2_procedure): Handle functions with unknown
1312 return type.
1313 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1314 (value_nsstring, print_object_command): Adjust calls to
1315 call_function_by_hand.
1316 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
1317 functions with unknown return type.
1318 (pascal_type_print_func_varspec_suffix): New function.
1319 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
1320 TYPE_CODE_METHOD>: Use it.
1321 * python/py-value.c (valpy_call): Adjust call to
1322 call_function_by_hand.
1323 * rust-lang.c (rust_evaluate_funcall): Adjust call to
1324 call_function_by_hand.
1325 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
1326 call_function_by_hand.
1327 * valops.c (value_allocate_space_in_inferior): Adjust call to
1328 call_function_by_hand.
1329 * typeprint.c (type_print_unknown_return_type): New function.
1330 * typeprint.h (type_print_unknown_return_type): New declaration.
1331
1332 2017-09-04 Pedro Alves <palves@redhat.com>
1333
1334 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
1335 types with more than one parameter as prototyped.
1336
1337 2017-09-04 Pedro Alves <palves@redhat.com>
1338
1339 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
1340 (disassemble_command): Use gdb_disassembly_flags instead of bare
1341 int.
1342 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
1343 (dump_insns, do_mixed_source_and_assembly_deprecated)
1344 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
1345 Use gdb_disassembly_flags instead of bare int.
1346 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
1347 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
1348 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
1349 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
1350 (enum gdb_disassembly_flag): ... values of this new enumeration.
1351 (gdb_disassembly_flags): Define.
1352 (gdb_disassembly)
1353 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
1354 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
1355 gdb_disassembly_flags instead of bare int.
1356 * record-btrace.c (btrace_insn_history)
1357 (record_btrace_insn_history, record_btrace_insn_history_range)
1358 (record_btrace_insn_history_from): Use gdb_disassembly_flags
1359 instead of bare int.
1360 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
1361 Use gdb_disassembly_flags instead of bare int.
1362 * target-debug.h (target_debug_print_gdb_disassembly_flags):
1363 Define.
1364 * target-delegates.c: Regenerate.
1365 * target.c (target_insn_history, target_insn_history_from)
1366 (target_insn_history_range): Use gdb_disassembly_flags instead of
1367 bare int.
1368 * target.h: Include "disasm.h".
1369 (struct target_ops) <to_insn_history, to_insn_history_from,
1370 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
1371 int.
1372 (target_insn_history, target_insn_history_from)
1373 (target_insn_history_range): Use gdb_disassembly_flags instead of
1374 bare int.
1375
1376 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1377
1378 * cli/cli-script.c (build_command_line): For if/while commands,
1379 check whether args is empty.
1380
1381 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1382
1383 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
1384 (enum command_control_type): Likewise.
1385 (struct command_line): Likewise.
1386 (free_command_lines): Likewise.
1387 (struct command_lines_deleter): Likewise.
1388 (command_line_up): Likewise.
1389 (read_command_lines): Likewise.
1390 (read_command_lines_1): Likewise.
1391 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
1392 (enum command_control_type): Likewise.
1393 (struct command_line): Likewise.
1394 (free_command_lines): Likewise.
1395 (struct command_lines_deleter): Likewise.
1396 (command_line_up): Likewise.
1397 (read_command_lines): Likewise.
1398 (read_command_lines_1): Likewise.
1399 * breakpoint.h: Include cli/cli-script.h.
1400 * extension-priv.h: Likewise.
1401 * gdbcmd.h: Likewise.
1402
1403 2017-09-04 Pedro Alves <palves@redhat.com>
1404
1405 * ada-lang.c (is_known_support_routine): Move sal declaration to
1406 where it is initialized.
1407 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
1408 (parse_breakpoint_sals, decode_static_tracepoint_spec)
1409 (clear_command, update_static_tracepoint): Remove init_sal
1410 references. Move declarations closer to initializations.
1411 * cli/cli-cmds.c (list_command): Move sal declarations closer to
1412 initializations.
1413 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
1414 references. Move sal declarations closer to initializations.
1415 * frame.c (find_frame_sal): Return a symtab_and_line via function
1416 return instead of output parameter. Remove init_sal references.
1417 * frame.h (find_frame_sal): Return a symtab_and_line via function
1418 return instead of output parameter.
1419 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
1420 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
1421 instead of memset.
1422 (gdbscm_find_pc_line): Remove init_sal reference.
1423 * infcall.c (call_function_by_hand_dummy): Remove init_sal
1424 references. Move declarations closer to initializations.
1425 * infcmd.c (set_step_frame): Update. Move declarations closer to
1426 initializations.
1427 (finish_backward): Remove init_sal references. Move declarations
1428 closer to initializations.
1429 * infrun.c (process_event_stop_test, handle_step_into_function)
1430 (insert_hp_step_resume_breakpoint_at_frame)
1431 (insert_step_resume_breakpoint_at_caller): Likewise.
1432 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
1433 (symbol_to_sal): Likewise.
1434 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
1435 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
1436 to its initialization.
1437 * reverse.c (save_bookmark_command): Use new/delete. Remove
1438 init_sal references. Move declarations closer to initializations.
1439 * source.c (get_current_source_symtab_and_line): Remove brace
1440 initialization.
1441 (set_current_source_symtab_and_line): Now takes the sal by const
1442 reference. Remove brace initialization.
1443 (line_info): Remove init_sal reference.
1444 * source.h (set_current_source_symtab_and_line): Now takes a
1445 symtab_and_line via const reference.
1446 * stack.c (set_current_sal_from_frame): Adjust.
1447 (print_frame_info): Adjust.
1448 (get_last_displayed_sal): Return the sal via function return
1449 instead of via output parameter. Simplify.
1450 (frame_info): Adjust.
1451 * stack.h (get_last_displayed_sal): Return the sal via function
1452 return instead of via output parameter.
1453 * symtab.c (init_sal): Delete.
1454 (find_pc_sect_line): Remove init_sal references. Move
1455 declarations closer to initializations.
1456 (find_function_start_sal): Remove init_sal references. Move
1457 declarations closer to initializations.
1458 * symtab.h (struct symtab_and_line): In-class initialize all
1459 fields.
1460 * tracepoint.c (set_traceframe_context)
1461 (print_one_static_tracepoint_marker): Remove init_sal references.
1462 Move declarations closer to initializations.
1463 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
1464 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
1465 declarations closer to initializations.
1466 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
1467 init_sal references. Adjust.
1468
1469 2017-09-04 Pedro Alves <palves@redhat.com>
1470
1471 * ax-gdb.c (agent_command_1): Use range-for.
1472 * break-catch-throw.c (re_set_exception_catchpoint): Update.
1473 * breakpoint.c: Include "common/array-view.h".
1474 (init_breakpoint_sal, create_breakpoint_sal): Change sals
1475 parameter from struct symtabs_and_lines to
1476 array_view<symtab_and_line>. Adjust. Use range-for. Update.
1477 (breakpoint_sals_to_pc): Change sals parameter from struct
1478 symtabs_and_lines to std::vector reference.
1479 (check_fast_tracepoint_sals): Change sals parameter from struct
1480 symtabs_and_lines to std::array_view. Use range-for.
1481 (decode_static_tracepoint_spec): Return a std::vector instead of
1482 symtabs_and_lines. Update.
1483 (create_breakpoint): Update.
1484 (break_range_command, until_break_command, clear_command): Update.
1485 (base_breakpoint_decode_location, bkpt_decode_location)
1486 (bkpt_probe_create_sals_from_location)
1487 (bkpt_probe_decode_location, tracepoint_decode_location)
1488 (tracepoint_probe_decode_location)
1489 (strace_marker_create_sals_from_location): Return a std::vector
1490 instead of symtabs_and_lines.
1491 (strace_marker_create_breakpoints_sal): Update.
1492 (strace_marker_decode_location): Return a std::vector instead of
1493 symtabs_and_lines. Update.
1494 (update_breakpoint_locations): Change struct symtabs_and_lines
1495 parameters to gdb::array_view. Adjust.
1496 (location_to_sals): Return a std::vector instead of
1497 symtabs_and_lines. Update.
1498 (breakpoint_re_set_default): Use std::vector instead of struct
1499 symtabs_and_lines.
1500 (decode_location_default): Return a std::vector instead of
1501 symtabs_and_lines. Update.
1502 * breakpoint.h: Include "common/array-view.h".
1503 (struct breakpoint_ops) <decode_location>: Now returns a
1504 std::vector instead of returning a symtabs_and_lines via output
1505 parameter.
1506 (update_breakpoint_locations): Change sals parameters to use
1507 gdb::array_view.
1508 * cli/cli-cmds.c (edit_command, list_command): Update to use
1509 std::vector and gdb::array_view.
1510 (ambiguous_line_spec): Adjust to use gdb::array_view and
1511 range-for.
1512 (compare_symtabs): Rename to ...
1513 (cmp_symtabs): ... this. Change parameters to symtab_and_line
1514 const reference and adjust.
1515 (filter_sals): Rewrite using std::vector and standard algorithms.
1516 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
1517 (jump_command): Update to use std::vector.
1518 * linespec.c (struct linespec_state) <canonical_names>: Update
1519 comment.
1520 (add_sal_to_sals_basic): Delete.
1521 (add_sal_to_sals, filter_results, convert_results_to_lsals)
1522 (decode_line_2, create_sals_line_offset)
1523 (convert_address_location_to_sals, convert_linespec_to_sals)
1524 (convert_explicit_location_to_sals, parse_linespec)
1525 (event_location_to_sals, decode_line_full, decode_line_1)
1526 (decode_line_with_current_source)
1527 (decode_line_with_last_displayed, decode_objc)
1528 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
1529 (linespec_result::~linespec_result): Adjust to use std::vector
1530 instead of symtabs_and_lines.
1531 * linespec.h (linespec_sals::sals): Now a std::vector.
1532 (struct linespec_result): Use std::vector, bool, and in-class
1533 initialization.
1534 (decode_line_1, decode_line_with_current_source)
1535 (decode_line_with_last_displayed): Return std::vector.
1536 * macrocmd.c (info_macros_command): Use std::vector.
1537 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
1538 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
1539 std::vector.
1540 * probe.h (parse_probes): Return a std::vector.
1541 * python/python.c (gdbpy_decode_line): Use std::vector and
1542 gdb::array_view.
1543 * source.c (select_source_symtab, line_info): Use std::vector.
1544 * stack.c (func_command): Use std::vector.
1545 * symtab.h (struct symtabs_and_lines): Delete.
1546 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
1547
1548 2017-09-04 Pedro Alves <palves@redhat.com>
1549
1550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1551 unittests/array-view-selftests.c.
1552 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
1553 * common/array-view.h: New file.
1554 * unittests/array-view-selftests.c: New file.
1555
1556 2017-09-04 Pedro Alves <palves@redhat.com>
1557
1558 * cli/cli-cmds.c (edit_command): Pass message to
1559 ambiguous_line_spec.
1560 (list_command): Pass message to ambiguous_line_spec. Say
1561 "first"/"last" instead of "start" and "end" to be consistent with
1562 the manual.
1563 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
1564 them to print formatted message.
1565
1566 2017-09-04 Pedro Alves <palves@redhat.com>
1567
1568 * btrace.c (ftrace_add_pt): Pass btrace_insn to
1569 ftrace_update_insns by reference instead of pointer.
1570
1571 2017-09-04 Yao Qi <yao.qi@linaro.org>
1572
1573 * i386-go32-tdep.c: Include x86-xstate.h.
1574 (i386_go32_init_abi): Call i386_target_description.
1575 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
1576 if xcr0 is X86_XSTATE_X87_MASK.
1577 * i386-tdep.h (tdesc_i386): Remove the declaration.
1578 (tdesc_i386_mmx): Likewise.
1579
1580 2017-09-04 Yao Qi <yao.qi@linaro.org>
1581
1582 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
1583 X86_XSTATE_SSE_MASK instead of 0.
1584
1585 2017-09-04 Yao Qi <yao.qi@linaro.org>
1586
1587 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
1588 i386_target_description.
1589 * i386-fbsd-nat.c (i386fbsd_read_description): Call
1590 i386_target_description.
1591 * i386-tdep.c (i386_gdbarch_init): Likewise.
1592
1593 2017-09-04 Yao Qi <yao.qi@linaro.org>
1594
1595 * amd64-darwin-tdep.c: Include "x86-xstate.h".
1596 (x86_darwin_init_abi_64): Call amd64_target_description.
1597 * amd64-dicos-tdep.c: Likewise.
1598 * amd64-fbsd-nat.c: Likewise.
1599 * amd64-fbsd-tdep.c: Likewise.
1600 * amd64-nbsd-tdep.c: Likewise.
1601 * amd64-obsd-tdep.c: Likewise.
1602 * amd64-sol2-tdep.c: Likewise.
1603 * amd64-windows-tdep.c: Likewise.
1604 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
1605
1606 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1607
1608 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
1609 (btrace_function) <insn>: Change type to use std::vector.
1610 * btrace.c (ftrace_debug, ftrace_call_num_insn,
1611 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
1612 ftrace_update_insns, ftrace_compute_global_level_offset,
1613 btrace_stitch_bts, btrace_clear, btrace_insn_get,
1614 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
1615 change to std::vector.
1616 (ftrace_update_insns): Adjust to change to std::vector, change
1617 type of INSN parameter.
1618 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
1619 * record-btrace.c (btrace_call_history_insn_range,
1620 btrace_compute_src_line_range,
1621 record_btrace_frame_prev_register): Adjust to change to
1622 std::vector.
1623 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
1624 to change to std::vector.
1625
1626 2017-09-03 Tom Tromey <tom@tromey.com>
1627
1628 * corefile.c (reopen_exec_file): Use std::string.
1629
1630 2017-09-03 Tom Tromey <tom@tromey.com>
1631
1632 * compile/compile.c (compile_register_name_mangled): Return
1633 std::string.
1634 * compile/compile-loc2c.c (pushf_register_address): Update.
1635 (pushf_register): Update.
1636 * compile/compile-c-types.c (convert_array): Update.
1637 * compile/compile-c-symbols.c (generate_vla_size): Update.
1638 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
1639 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
1640 (convert_one_symbol): Update.
1641 (generate_c_for_for_one_variable): Update.
1642 * compile/compile-c-support.c (c_get_range_decl_name): Return a
1643 std::string.
1644 (generate_register_struct): Update.
1645 * compile/compile-internal.h (c_get_range_decl_name): Return a
1646 std::string.
1647 (compile_register_name_mangled): Return std::string.
1648
1649 2017-09-03 Tom Tromey <tom@tromey.com>
1650
1651 * utils.c (perror_string): Return a std::string.
1652 (throw_perror_with_name, perror_warning_with_name): Update.
1653
1654 2017-09-03 Tom Tromey <tom@tromey.com>
1655
1656 * demangle.c (demangle_command): Use std::string,
1657 unique_xmalloc_ptr.
1658
1659 2017-09-03 Tom Tromey <tom@tromey.com>
1660
1661 * cli/cli-setshow.c (do_set_command): Use std::string.
1662
1663 2017-09-03 Tom Tromey <tom@tromey.com>
1664
1665 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
1666
1667 2017-09-03 Tom Tromey <tom@tromey.com>
1668
1669 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
1670
1671 2017-09-03 Tom Tromey <tom@tromey.com>
1672
1673 * mi/mi-cmd-env.c (env_execute_cli_command): Use
1674 gdb::unique_xmalloc_ptr.
1675
1676 2017-09-03 Tom Tromey <tom@tromey.com>
1677
1678 * thread.c (print_thread_info_1): Use string_printf.
1679 (thread_apply_command, thread_apply_all_command): Use
1680 std::string.
1681
1682 2017-09-03 Tom Tromey <tom@tromey.com>
1683
1684 * valprint.c (val_print_string): Update.
1685 * gdbcore.h (memory_error_message): Return std::string.
1686 * corefile.c (memory_error_message): Return std::string.
1687 (memory_error): Update.
1688 * breakpoint.c (insert_bp_location): Update.
1689
1690 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
1691
1692 * target/waitstatus.h (target_waitstatus_to_string): Change
1693 return type to std::string.
1694 * target/waitstatus.c (target_waitstatus_to_string): Return
1695 std::string.
1696 * target.h (target_waitstatus_to_string): Remove declaration.
1697 * infrun.c (resume, clear_proceed_status_thread,
1698 print_target_wait_results, do_target_wait, save_waitstatus,
1699 stop_all_threads): Adjust.
1700 * record-btrace.c (record_btrace_wait): Adjust.
1701 * target-debug.h
1702 (target_debug_print_struct_target_waitstatus_p): Adjust.
1703
1704 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 PR gdb/22046
1707 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
1708 detection.
1709
1710 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1711
1712 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
1713 for setting/unsetting environment variables on the remote target.
1714 (New remote packets): Add entries for QEnvironmentHexEncoded,
1715 QEnvironmentUnset and QEnvironmentReset.
1716 * common/environ.c (gdb_environ::operator=): Extend method to
1717 handle m_user_set_env_list and m_user_unset_env_list.
1718 (gdb_environ::clear): Likewise.
1719 (match_var_in_string): Change type of first parameter from 'char
1720 *' to 'const char *'.
1721 (gdb_environ::set): Extend method to handle
1722 m_user_set_env_list and m_user_unset_env_list.
1723 (gdb_environ::unset): Likewise.
1724 (gdb_environ::clear_user_set_env): New method.
1725 (gdb_environ::user_set_envp): Likewise.
1726 (gdb_environ::user_unset_envp): Likewise.
1727 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
1728 m_user_unset_env_list on move constructor/assignment.
1729 (unset): Add new default parameter 'update_unset_list = true'.
1730 (clear_user_set_env): New method.
1731 (user_set_envp): Likewise.
1732 (user_unset_envp): Likewise.
1733 (m_user_set_env_list): New std::set.
1734 (m_user_unset_env_list): Likewise.
1735 * common/rsp-low.c (hex2str): New function.
1736 (bin2hex): New overload for bin2hex function.
1737 * common/rsp-low.c (hex2str): New prototype.
1738 (str2hex): New overload prototype.
1739 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
1740 QEnvironmentUnset and QEnvironmentReset.
1741 (remote_protocol_features): Add QEnvironmentHexEncoded,
1742 QEnvironmentUnset and QEnvironmentReset packets.
1743 (send_environment_packet): New function.
1744 (extended_remote_environment_support): Likewise.
1745 (extended_remote_create_inferior): Call
1746 extended_remote_environment_support.
1747 (_initialize_remote): Add QEnvironmentHexEncoded,
1748 QEnvironmentUnset and QEnvironmentReset packet configs.
1749 * unittests/environ-selftests.c (gdb_selftest_env_var):
1750 New variable.
1751 (test_vector_initialization): New function.
1752 (test_init_from_host_environ): Likewise.
1753 (test_reinit_from_host_environ): Likewise.
1754 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
1755 Likewise.
1756 (test_unset_set_empty_vector): Likewise.
1757 (test_vector_clear): Likewise.
1758 (test_std_move): Likewise.
1759 (test_move_constructor):
1760 (test_self_move): Likewise.
1761 (test_set_unset_reset): Likewise.
1762 (run_tests): Rewrite in terms of the functions above.
1763
1764 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
1765
1766 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
1767 (adi_available): Use a temp variable of type CORE_ADDR as argument
1768 3 when calling target_auxv_search.
1769 (adi_normalize_address): Use masks and xor operators to calculate
1770 normalized address.
1771 (adi_read_versions, adi_write_versions, adi_print_versions)
1772 (do_examine, do_assign): Use paddress.
1773
1774 2017-08-29 John Baldwin <jhb@FreeBSD.org>
1775
1776 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
1777 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
1778 out of loop and add supply of FIR.
1779 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
1780 add collect of FIR.
1781
1782 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
1783
1784 PR gdb/21827
1785 * cli/cli-script.c (define_command): Don't convert command name
1786 to lower case.
1787
1788 2017-08-25 Joel Brobecker <brobecker@adacore.com>
1789
1790 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
1791 Update all callers accordingly. Remove all code blocks handling
1792 the case where DISPP is not NULL.
1793
1794 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1795
1796 PR symtab/22003
1797 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
1798 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
1799 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
1800
1801 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1802
1803 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
1804 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
1805 (read_comp_units_from_section): New parameter abbrev_section, use
1806 read_and_check_comp_unit_head, allocate signatured_type if needed.
1807 (create_all_comp_units): Update read_comp_units_from_section caller.
1808
1809 2017-08-23 Pedro Alves <palves@redhat.com>
1810
1811 PR remote/21852
1812 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
1813 to null_ptid and switch to thread without reading the registers
1814 after adding the inferior.
1815
1816 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1817
1818 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
1819 compile-gcc.
1820 * compile/compile.c (compile_gcc, show_compile_gcc): New.
1821 (compile_to_object): Implement compile_gcc.
1822 (_initialize_compile): Install "set compile-gcc". Initialize
1823 compile_gcc.
1824
1825 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1826
1827 * compile/compile.c (compile_to_object): Conditionally call
1828 set_verbose. Conditionally call compile or compile_v0.
1829
1830 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
1831
1832 * sparc64-tdep.h: (adi_normalize_address): New export.
1833 * sparc-nat.h: (open_adi_tag_fd): New export.
1834 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
1835 * sparc64-linux-tdep.c:
1836 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
1837 (sparc64_linux_handle_segmentation_fault): New function.
1838 (sparc64_linux_init_abi): Register
1839 sparc64_linux_handle_segmentation_fault
1840 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
1841 (sparc64_addr_bits_remove): New function.
1842 (sparc64_init_abi): Register sparc64_addr_bits_remove.
1843 (MAX_PROC_NAME_SIZE): New macro.
1844 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
1845 (sparc64adilist): New variable.
1846 (adi_proc_list): New variable.
1847 (find_adi_info): New function.
1848 (add_adi_info): New function.
1849 (get_adi_info_proc): New function.
1850 (get_adi_info): New function.
1851 (info_adi_command): New function.
1852 (read_maps_entry): New function.
1853 (adi_available): New function.
1854 (adi_normalize_address): New function.
1855 (adi_align_address): New function.
1856 (adi_convert_byte_count): New function.
1857 (adi_tag_fd): New function.
1858 (adi_is_addr_mapped): New function.
1859 (adi_read_versions): New function.
1860 (adi_write_versions): New function.
1861 (adi_print_versions): New function.
1862 (do_examine): New function.
1863 (do_assign): New function.
1864 (adi_examine_command): New function.
1865 (adi_assign_command): New function.
1866 (_initialize_sparc64_adi_tdep): New function.
1867
1868 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
1869
1870 * breakpoint.c (breakpoints_info): Rename to ...
1871 (info_breakpoints_command): ... this.
1872 (watchpoints_info): Rename to ...
1873 (info_watchpoints_command): ... this.
1874 (tracepoints_info): Rename to ...
1875 (info_tracepoints_command): ... this.
1876 (_initialize_breakpoint): Adjust.
1877 * dcache.c (dcache_info): Rename to ...
1878 (info_display_command): ... this.
1879 (_initialize_dcache): Adjust.
1880 * frame.h (args_info): Rename to ...
1881 (info_args_command): ... this.
1882 (locals_info): Rename to ...
1883 (info_locals_command): ... this.
1884 * infcmd.c (nofp_registers_info): Rename to ...
1885 (info_registers_command): ... this.
1886 (float_info): Rename to ...
1887 (info_float_command): ... this.
1888 (program_info): Rename to ...
1889 (info_program_command): ... this.
1890 (all_registers_info): Rename to ...
1891 (info_all_registers_command): ... this.
1892 (vector_info): Rename to ...
1893 (info_vector_command): ... this.
1894 (float_info): Rename to ...
1895 (info_float_command): ... this.
1896 (_initialize_infcmd): Adjust.
1897 * inferior.h (term_info): Rename to ...
1898 (info_terminal_command): ... this.
1899 * inflow.c (term_info): Rename to ...
1900 (info_terminal_command): ... this.
1901 (_initialize_inflow): Adjust.
1902 * infrun.c (signals_info): Rename to ...
1903 (info_signals_command): ... this.
1904 (_initialize_infrun): Adjust.
1905 * objc-lang.c (classes_info): Rename to ...
1906 (info_classes_command): ... this.
1907 (selectors_info): Rename to ...
1908 (info_selectors_command): ... this.
1909 (_initialize_objc_language): Adjust.
1910 * printcmd.c (sym_info): Rename to ...
1911 (info_symbol_command): ... this.
1912 (address_info): Rename to ...
1913 (info_address_command): ... this.
1914 (display_info): Rename to ...
1915 (info_display_command): ... this.
1916 (_initialize_printcmd): Adjust.
1917 * reverse.c (bookmarks_info): Rename to ...
1918 (info_breakpoints_command): ... this.
1919 (_initialize_reverse): Adjust.
1920 * ser-go32.c (dos_info): Rename to ...
1921 (info_serial_command): ... this.
1922 (_initialize_ser_dos): Adjust.
1923 * skip.c (skip_info): Rename to ...
1924 (info_skip_command): ... this.
1925 (_initialize_step_skip): Adjust.
1926 * source.c (line_info): Rename to ...
1927 (info_line_command): ... this.
1928 (source_info): Rename to ...
1929 (info_source_command)
1930 * stack.c (frame_info): Rename to ...
1931 (info_frame_command): ... this.
1932 (locals_info): Rename to ...
1933 (info_locals_command): ... this.
1934 (args_info): Rename to ...
1935 (info_args_command): ... this.
1936 (_initialize_stack): Adjust.
1937 * symtab.c (sources_info): Rename to ...
1938 (info_sources_command): ... this.
1939 (variables_info): Rename to ...
1940 (info_variables_command): ... this.
1941 (functions_info): Rename to ...
1942 (info_functions_command): ... this.
1943 (types_info): Rename to ...
1944 (info_types_command): ... this.
1945 (_initialize_symtab): Adjust.
1946 * target.c (target_info): Rename to ...
1947 (info_target_command): ... this.
1948 (initialize_targets): Adjust.
1949 * tracepoint.c (tvariables_info): Rename to ...
1950 (info_tvariables_command): ... this.
1951 (scope_info): Rename to ...
1952 (info_scope_command): ... this.
1953 (trace_dump_actions): Adjust.
1954 (_initialize_tracepoint): Adjust.
1955
1956 2017-08-22 Tom Tromey <tom@tromey.com>
1957
1958 * breakpoint.h (install_breakpoint): Update.
1959 * breakpoint.c (add_solib_catchpoint): Update.
1960 (install_breakpoint): Change argument to a std::unique_ptr.
1961 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
1962 (create_breakpoint_sal, create_breakpoint): Update.
1963 (watch_command_1, catch_exec_command_1)
1964 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
1965 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
1966 Return the breakpoint.
1967 (set_raw_breakpoint_without_location, set_raw_breakpoint)
1968 (new_single_step_breakpoint): Update.
1969 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
1970 std::unique_ptr.
1971 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
1972 std::unique_ptr.
1973 * break-catch-sig.c (create_signal_catchpoint): Use
1974 std::unique_ptr.
1975 * ada-lang.c (create_ada_exception_catchpoint): Use
1976 std::unique_ptr.
1977
1978 2017-08-22 Tom Tromey <tom@tromey.com>
1979
1980 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
1981
1982 2017-08-22 Tom Tromey <tom@tromey.com>
1983
1984 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
1985 (lookup_partial_symbol): Update.
1986
1987 2017-08-22 Tom Tromey <tom@tromey.com>
1988
1989 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
1990 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
1991 (find_and_open_source, symtab_to_fullname): Update.
1992 * psymtab.c (psymtab_to_fullname): Update.
1993
1994 2017-08-22 Tom Tromey <tom@tromey.com>
1995
1996 * exec.c (exec_file_attach): Update.
1997 * linux-thread-db.c (try_thread_db_load): Update.
1998 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
1999 * utils.c (gdb_realpath): Change return type.
2000 (gdb_realpath_keepfile): Update.
2001 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2002 (_initialize_utils): Register the new self test.
2003 * source.c (openp): Update.
2004 (find_and_open_source): Update.
2005 * nto-tdep.c (nto_find_and_open_solib): Update.
2006 * main.c (set_gdb_data_directory): Update.
2007 (captured_main_1): Update.
2008 * dwarf2read.c (dwarf2_get_dwz_file): Update
2009 (dw2_map_symbol_filenames): Update.
2010 * auto-load.c (auto_load_safe_path_vec_update): Update.
2011 (filename_is_in_auto_load_safe_path_vec): Change type of
2012 "filename_realp".
2013 (auto_load_objfile_script): Update.
2014 (file_is_auto_load_safe): Update. Use std::string.
2015 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2016
2017 2017-08-22 Tom Tromey <tom@tromey.com>
2018
2019 * utils.c (gdb_realpath_keepfile): Return a
2020 gdb::unique_xmalloc_ptr.
2021 * exec.c (exec_file_attach): Update.
2022 * utils.h (gdb_realpath_keepfile): Return a
2023 gdb::unique_xmalloc_ptr.
2024
2025 2017-08-22 Tom Tromey <tom@tromey.com>
2026
2027 * compile/compile.c (compile_file_command): Use
2028 gdb::unique_xmalloc_ptr, std::string.
2029 * utils.c (gdb_abspath): Change return type.
2030 * source.c (openp): Update.
2031 * objfiles.c (allocate_objfile): Update.
2032 * main.c (set_gdb_data_directory): Update.
2033 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
2034
2035 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
2036
2037 * cli-cmds.c (list_commands): List actual code around more than
2038 one location.
2039
2040 2017-08-21 John Baldwin <jhb@FreeBSD.org>
2041
2042 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
2043
2044 2017-08-21 Pedro Alves <palves@redhat.com>
2045
2046 PR gdb/19487
2047 * c-exp.y (variable production): Handle function aliases.
2048 * minsyms.c (msymbol_is_text): New function.
2049 * minsyms.h (msymbol_is_text): Declare.
2050 * symtab.c (find_function_alias_target): New function.
2051 * symtab.h (find_function_alias_target): Declare.
2052
2053 2017-08-21 Pedro Alves <palves@redhat.com>
2054
2055 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
2056 typedefs.
2057 * typeprint.c (whatis_exp): If handling "whatis", and expression
2058 is OP_TYPE, strip one typedef level. Otherwise don't strip
2059 typedefs here.
2060 * valops.c (value_cast): Save "to" type before resolving
2061 stubs/typedefs. Use that type as resulting value's type.
2062
2063 2017-08-18 Tom Tromey <tom@tromey.com>
2064 Pedro Alves <palves@redhat.com>
2065
2066 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
2067 * sol-thread.c (sol_thread_resume, sol_thread_wait)
2068 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
2069 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
2070 * proc-service.c (ps_xfer_memory): Use scoped_restore.
2071 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
2072 (linux_get_siginfo_data): Add "thread" argument. Use
2073 scoped_restore.
2074 * linux-nat.c (linux_child_follow_fork)
2075 (check_stopped_by_watchpoint): Use scoped_restore.
2076 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
2077 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
2078 (restore_inferior_ptid, save_inferior_ptid): Remove.
2079 * btrace.c (btrace_fetch): Use scoped_restore.
2080 * bsd-uthread.c (bsd_uthread_fetch_registers)
2081 (bsd_uthread_store_registers): Use scoped_restore.
2082 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2083 scoped_restore.
2084 * aix-thread.c (aix_thread_resume, aix_thread_wait)
2085 (aix_thread_xfer_partial): Use scoped_restore.
2086 * inferior.h (save_inferior_ptid): Remove.
2087
2088 2017-08-18 Yao Qi <yao.qi@linaro.org>
2089
2090 PR tdep/21818
2091 * arm-tdep.c (gdb_print_insn_arm): Mark
2092 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
2093
2094 2017-08-18 Yao Qi <yao.qi@linaro.org>
2095
2096 * NEWS: Mention GDBserver's new option "--selftest".
2097 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
2098 * selftest.c: Move it to common/selftest.c.
2099 * selftest.h: Move it to common/selftest.h.
2100 * selftest-arch.c (reset): New function.
2101 (tests_with_arch): Call reset.
2102
2103 2017-08-18 Yao Qi <yao.qi@linaro.org>
2104
2105 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
2106 instead of exception_fprintf and printf_filtered.
2107
2108 2017-08-18 Yao Qi <yao.qi@linaro.org>
2109
2110 * selftest.c (register_self_test): Rename it to
2111 selftests::register_test.
2112 (run_self_tests): selftest::run_tests.
2113 * selftest.h: Update declarations.
2114 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
2115 selftests::register_test_foreach_arch.
2116 * selftest-arch.h: Update declaration.
2117 * aarch64-tdep.c: Update.
2118 * arm-tdep.c: Likewise.
2119 * disasm-selftests.c: Likewise.
2120 * dwarf2loc.c: Likewise.
2121 * dwarf2-frame.c: Likewise.
2122 * findvar.c: Likewise.
2123 * gdbarch-selftests.c: Likewise.
2124 * maint.c (maintenance_selftest): Likewise.
2125 * regcache.c: Likewise.
2126 * rust-exp.y: Likewise.
2127 * selftest-arch.c: Likewise.
2128 * unittests/environ-selftests.c: Likewise.
2129 * unittests/function-view-selftests.c: Likewise.
2130 * unittests/offset-type-selftests.c: Likewise.
2131 * unittests/optional-selftests.c: Likewise.
2132 * unittests/scoped_restore-selftests.c: Likewise.
2133 * utils-selftests.c: Likewise.
2134
2135 2017-08-17 Pedro Alves <palves@redhat.com>
2136
2137 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
2138 local.
2139
2140 2017-08-17 Pedro Alves <palves@redhat.com>
2141
2142 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
2143 field.
2144 (reset_die_in_process): Delete, replaced by ...
2145 (process_die_scope): ... this new class. Make it responsible for
2146 freeing cu->line_header too.
2147 (process_die): Use process_die_scope.
2148 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
2149 cu->line_header_die_owner. Don't release the line header if it's
2150 owned by the CU.
2151 (setup_type_unit_groups): Make the CU/DIE own the line header.
2152 Don't release the line header here.
2153
2154 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
2155
2156 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
2157
2158 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
2159
2160 * NEWS: Mention new shortcuts for nexti and stepi in TUI
2161 Single-Key mode
2162
2163 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
2164
2165 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
2166 mode command list.
2167
2168 2017-08-15 Stafford Horne <shorne@gmail.com>
2169
2170 * MAINTAINERS (Write After Approval): Add Stafford Horne.
2171
2172 2017-08-15 Stafford Horne <shorne@gmail.com>
2173
2174 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
2175
2176 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
2177
2178 PR gdb/21954
2179 * infcmd.c (unset_environment_command): Use the 'clear' method on
2180 the environment instead of resetting it.
2181
2182 2017-08-15 John Baldwin <jhb@FreeBSD.org>
2183
2184 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
2185 platforms.
2186
2187 2017-08-14 Tom Tromey <tom@tromey.com>
2188
2189 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
2190 (print_binary_chars): Likewise.
2191 (BITS_IN_BYTES): Remove.
2192
2193 2017-08-14 Tom Tromey <tom@tromey.com>
2194
2195 PR gdb/21675
2196 * valprint.c (LOW_ZERO): Change value to 034.
2197 (print_octal_chars): Add static_asserts for octal constants.
2198 * printcmd.c (print_scalar_formatted): Add 'd' case.
2199
2200 2017-08-11 Tom Tromey <tom@tromey.com>
2201
2202 * symfile.c (add_symbol_file_command): Use std::vector.
2203
2204 2017-08-14 Tom Tromey <tom@tromey.com>
2205
2206 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
2207 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2208 std::move.
2209 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
2210
2211 2017-08-11 Pedro Alves <palves@redhat.com>
2212
2213 * infrun.c (process_event_stop_test): Adjust
2214 function_name_is_marked_for_skip call.
2215 * skip.c: Include <list>.
2216 (skiplist_entry): Make it a class with private fields, and
2217 getters/setters.
2218 (skiplist_entry_chain): Delete.
2219 (skiplist_entries): New.
2220 (skiplist_entry_count): Delete.
2221 (highest_skiplist_entry_num): New.
2222 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
2223 (add_skiplist_entry): Delete.
2224 (skiplist_entry::skiplist_entry): New.
2225 (skiplist_entry::add_entry): New.
2226 (skip_file_command, skip_function): Adjust.
2227 (compile_skip_regexp): Delete.
2228 (skip_command): Don't compile regexp here. Adjust to use
2229 skiplist_entry::add_entry.
2230 (skip_info): Adjust to use range-for and getters.
2231 (skip_enable_command, skip_disable_command): Adjust to use
2232 range-for and setters.
2233 (skip_delete_command): Adjust to use std::list.
2234 (add_skiplist_entry): Delete.
2235 (skip_file_p): Delete, refactored as ...
2236 (skiplist_entry::do_skip_file_p): ... this new method.
2237 (skip_gfile_p): Delete, refactored as ...
2238 (skiplist_entry::do_gskip_file_p): ... this new method.
2239 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
2240 (skiplist_entry::skip_function_p): ... this new method.
2241 (function_name_is_marked_for_skip): Now returns bool, and takes
2242 the function sal by const reference. Adjust to use range-for and
2243 skiplist_entry methods.
2244 (_initialize_step_skip): Remove references to
2245 skiplist_entry_chain, skiplist_entry_count.
2246 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
2247 takes the function sal by const reference.
2248
2249 2017-08-11 Yao Qi <yao.qi@linaro.org>
2250
2251 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
2252 (dwarf2_frame_cache): Remove reset_cache_cleanup.
2253 (dwarf2_frame_cache):
2254 * frame-unwind.c (frame_unwind_try_unwinder): Catch
2255 RETURN_MASK_ALL and set *this_case to NULL.
2256 * frame-unwind.h: Update comments.
2257
2258 2017-08-11 Yao Qi <yao.qi@linaro.org>
2259
2260 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
2261 (dwarf2_frame_state_copy_regs): Remove.
2262 (dwarf2_frame_state_free_regs): Remove.
2263 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
2264 (dwarf2_restore_rule): Call method .alloc_regs instead of
2265 dwarf2_frame_state_alloc_regs.
2266 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
2267 constructor. Call std::move.
2268 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
2269 (dwarf2_frame_cache): Likewise.
2270
2271 [GDB_SELF_TEST]: Include selftest.h and
2272 selftest-arch.h.
2273 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
2274 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
2275 execute_cfa_program_test.
2276
2277 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
2278 copy ctor, assignment operator, move assignment.
2279 <alloc_regs>: New method.
2280 <swap>: New method.
2281 (struct dwarf2_frame_state): Delete dtor.
2282 (dwarf2_frame_state_alloc_regs): Remove declaration.
2283 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
2284 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
2285
2286 2017-08-11 Yao Qi <yao.qi@linaro.org>
2287
2288 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
2289 (dwarf2_frame_state::dwarf2_frame_state): New.
2290 (dwarf2_frame_state::~dwarf2_frame_state): New.
2291 (dwarf2_fetch_cfa_info): Update.
2292 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
2293 rather than a pointer. Update code.
2294 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
2295 dtor.
2296 <data_align, code_align, retaddr_column>: Change them to const.
2297 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
2298 to bool.
2299
2300 2017-08-11 Yao Qi <yao.qi@linaro.org>
2301
2302 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
2303 <loc.exp>: New field.
2304 * dwarf2-frame.c (execute_cfa_program): Update.
2305 (dwarf2_frame_prev_register): Update.
2306
2307 2017-08-10 Pedro Alves <palves@redhat.com>
2308
2309 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
2310
2311 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2312
2313 * fbsd-nat.c (struct fbsd_fork_info): Remove.
2314 (fbsd_pending_children): Use std::list.
2315 (fbsd_remember_child): Likewise.
2316 (fbsd_is_child_pending): Likewise.
2317 (fbsd_pending_vfork_done): Use std::forward_list.
2318 (fbsd_add_vfork_done): Likewise.
2319 (fbsd_is_vfork_done_pending): Likewise.
2320 (fbsd_next_vfork_done): Likewise.
2321
2322 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2323
2324 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
2325 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
2326 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
2327 for `mapfilename'.
2328 (fbsd_xfer_partial): Use gdb::byte_vector.
2329 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
2330
2331 2017-08-09 John Baldwin <jhb@FreeBSD.org>
2332
2333 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
2334 "filestuff.h".
2335 (fbsd_find_memory_regions): Fix `mapfile' initialization.
2336
2337 2017-08-09 Tom Tromey <tom@tromey.com>
2338
2339 * skip.c (skiplist_entry): New constructor.
2340 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
2341 (skiplist_entry::file_is_glob): Now bool.
2342 (skiplist_entry::file, skiplist_entry::function): Now
2343 std::string.
2344 (make_skip_entry): Return a unique_ptr. Use new.
2345 (free_skiplist_entry, free_skiplist_entry_cleanup)
2346 (make_free_skiplist_entry_cleanup): Remove.
2347 (skip_command, skip_disable_command, add_skiplist_entry)
2348 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
2349 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
2350 (function_name_is_marked_for_skip): Update.
2351 (skip_delete_command): Update. Use delete.
2352
2353 2017-08-09 Jiong Wang <jiong.wang@arm.com>
2354
2355 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
2356 (aarch64_linux_core_read_description): New function.
2357 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
2358
2359 2017-08-09 Pedro Alves <palves@redhat.com>
2360
2361 * cp-name-parser.y (cp_comp_to_string): Return a
2362 gdb::unique_xmalloc_ptr<char>.
2363 * cp-support.c (replace_typedefs_qualified_name)
2364 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
2365 (cp_canonicalize_string_full): Use op= instead of explicit
2366 convertion.
2367 (cp_class_name_from_physname, method_name_from_physname)
2368 (cp_func_name, cp_remove_params): Adjust to use
2369 gdb::unique_xmalloc_ptr<char>.
2370 * cp-support.h (cp_comp_to_string): Return a
2371 gdb::unique_xmalloc_ptr<char>.
2372 * python/py-type.c (typy_lookup_type): Adjust to use
2373 gdb::unique_xmalloc_ptr<char>.
2374
2375 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
2376
2377 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
2378
2379 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
2380 Yao Qi <yao.qi@linaro.org>
2381
2382 * cp-support.c (cp_canonicalize_string_full): Use
2383 gdb::unique_xmalloc_ptr<char>.
2384 (cp_canonicalize_string): Likewise.
2385
2386 2017-08-09 Yao Qi <yao.qi@linaro.org>
2387
2388 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
2389 * regformats/i386/amd64-avx-avx512.dat: Remove.
2390 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
2391 * regformats/i386/amd64-avx-mpx.dat:Remove.
2392 * regformats/i386/amd64-avx.dat: Remove.
2393 * regformats/i386/amd64-mpx.dat: Remove.
2394 * regformats/i386/i386-avx-avx512.dat: Remove.
2395 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
2396 * regformats/i386/i386-avx-mpx.dat: Remove.
2397 * regformats/i386/i386-mmx.dat: Remove.
2398 * regformats/i386/i386-mpx.dat: Remove.
2399
2400 2017-08-09 Yao Qi <yao.qi@linaro.org>
2401
2402 * amd64-tdep.h (tdesc_x32): Remove the declaration.
2403 * amd64-tdep.c: Don't include features/i386/x32*.c.
2404 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
2405 functions.
2406 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
2407 and i386/x32-avx-avx512.
2408 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
2409 and i386/x32.xml.
2410 * features/i386/x32-avx-avx512.c: Removed.
2411 * features/i386/x32-avx-avx512.xml: Removed.
2412 * features/i386/x32-avx.c: Removed.
2413 * features/i386/x32-avx.xml: Removed.
2414 * features/i386/x32.c: Removed.
2415 * features/i386/x32.xml: Removed.
2416 * regformats/i386/x32-avx-avx512.dat: Removed.
2417 * regformats/i386/x32-avx.dat: Removed.
2418 * regformats/i386/x32.dat: Removed.
2419
2420 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2421
2422 PR breakpoints/21886
2423 * mem-break.c (default_memory_insert_breakpoint): Use
2424 `->placed_address' rather than `->reqstd_address' for the
2425 breakpoint location.
2426
2427 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2428
2429 * arch-utils.c (default_print_insn): Remove arch/mach/endian
2430 assertions.
2431
2432 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
2433
2434 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
2435 a union of `tdep_info', `tdesc_data' and `id'.
2436 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
2437 rather than `info.tdep_info'.
2438 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2439 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2440 * i386-tdep.c (i386_gdbarch_init): Likewise.
2441 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2442 * mips-tdep.c (mips_gdbarch_init): Likewise.
2443 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2444 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2445 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
2446 `info.tdep_info'.
2447 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
2448 `info.tdep_info'.
2449 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2450 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
2451 `info.tdep_info'.
2452 * spu-tdep.c (spu_gdbarch_init): Likewise.
2453 * gdbarch.h: Regenerate.
2454
2455 2017-08-07 Leszek Swirski <leszeks@google.com>
2456
2457 PR symtab/20899
2458 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
2459
2460 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
2461
2462 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
2463 (gdbsim_open): Rename gdb_argv args object to argv.
2464
2465 2017-08-05 Tom Tromey <tom@tromey.com>
2466
2467 * compile/compile-object-load.c (compile_object_load): Use
2468 gdb::unique_xmalloc_ptr.
2469 * cli/cli-dump.c (scan_filename): Rename from
2470 scan_filename_with_cleanup. Change return type.
2471 (scan_expression): Rename from scan_expression_with_cleanup.
2472 Change return type.
2473 (dump_memory_to_file, dump_value_to_file, restore_command):
2474 Use gdb::unique_xmalloc_ptr. Update.
2475 * cli/cli-cmds.c (find_and_open_script): Use
2476 gdb::unique_xmalloc_ptr.
2477 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
2478 * symmisc.c (maintenance_print_symbols)
2479 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
2480 * symfile.c (symfile_bfd_open, generic_load)
2481 (add_symbol_file_command, remove_symbol_file_command): Use
2482 gdb::unique_xmalloc_ptr.
2483 * source.c (openp): Use gdb::unique_xmalloc_ptr.
2484 * psymtab.c (maintenance_print_psymbols): Use
2485 gdb::unique_xmalloc_ptr.
2486 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
2487 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
2488 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
2489 (reload_shared_libraries_1): Likewise.
2490
2491 2017-08-05 Tom Tromey <tom@tromey.com>
2492
2493 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
2494 (rust_op_vector, rust_set_vector): New typedefs.
2495 (current_parser): New global.
2496 (work_obstack): Change to pointer type. Update all users.
2497 (rust_ast, pstate): Remove globals.
2498 (struct rust_parser): New.
2499 (%union) <params, field_inits>: Change type.
2500 (start, tuple_expr, unit_expr, struct_expr_list, literal)
2501 (field_expr, expr_list, maybe_expr_list, type_list): Update.
2502 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
2503 (convert_params_to_types, convert_params_to_expression): Change
2504 type of "params".
2505 (ast_string): Change type of "fields".
2506 (rust_parse): Make a rust_parser. Remove cleanups.
2507 (rust_lex_tests): Make and install an auto_obstack.
2508
2509 2017-08-04 Yao Qi <yao.qi@linaro.org>
2510
2511 * configure.srv (ipa_x32_linux_regobj): New.
2512 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
2513 instead of X86_TDESC_AVX512.
2514 (initialize_low_tracepoint): Call
2515 init_registers_x32_avx_avx512_linux.
2516
2517 2017-08-04 Yao Qi <yao.qi@linaro.org>
2518
2519 * utils.h (gdb_argv): Add namespace std for nullptr_t.
2520
2521 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
2522
2523 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
2524
2525 2017-08-03 Tom Tromey <tom@tromey.com>
2526
2527 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
2528 Remove.
2529 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
2530
2531 2017-08-03 Tom Tromey <tom@tromey.com>
2532
2533 * python/py-param.c (compute_enum_values): Use gdb_argv.
2534
2535 2017-08-03 Tom Tromey <tom@tromey.com>
2536
2537 * utils.h (struct gdb_argv_deleter): New.
2538 (gdb_argv): New class.
2539 * utils.c (gdb_argv::reset): New method.
2540 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
2541 * tracefile.c (tsave_command): Use gdb_argv.
2542 * top.c (new_ui_command): Use gdb_argv.
2543 * symmisc.c (maintenance_print_symbols)
2544 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
2545 * symfile.c (symbol_file_command, generic_load)
2546 (remove_symbol_file_command): Use gdb_argv.
2547 * stack.c (backtrace_command): Use gdb_argv.
2548 * source.c (add_path, show_substitute_path_command)
2549 (unset_substitute_path_command, set_substitute_path_command):
2550 Use gdb_argv.
2551 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
2552 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
2553 * remote.c (extended_remote_run, remote_put_command)
2554 (remote_get_command, remote_delete_command): Use gdb_argv.
2555 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
2556 (gdbsim_open): Use gdb_argv.
2557 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
2558 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
2559 * procfs.c (procfs_info_proc): Use gdb_argv.
2560 * interps.c (interpreter_exec_cmd): Use gdb_argv.
2561 * infrun.c (handle_command): Use gdb_argv.
2562 * inferior.c (add_inferior_command, clone_inferior_command):
2563 Use gdb_argv.
2564 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
2565 * exec.c (exec_file_command): Use gdb_argv.
2566 * cli/cli-cmds.c (alias_command): Use gdb_argv.
2567 * compile/compile.c (build_argc_argv): Use gdb_argv.
2568
2569 2017-08-03 Tom Tromey <tom@tromey.com>
2570
2571 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
2572
2573 2017-08-03 Tom Tromey <tom@tromey.com>
2574
2575 * python/python.c (compute_python_string): Return std::string.
2576 (gdbpy_eval_from_control_command): Update.
2577 (do_start_initialization): Use std::string.
2578 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
2579 xstrprintf.
2580 * python/py-breakpoint.c (local_setattro): Use string_printf, not
2581 xstrprintf.
2582
2583 2017-08-03 Tom Tromey <tom@tromey.com>
2584
2585 * top.h (do_restore_instream_cleanup): Remove.
2586 * top.c (do_restore_instream_cleanup): Remove.
2587 (read_command_file): Use scoped_restore.
2588 * cli/cli-script.c (execute_user_command): Use scoped_restore.
2589
2590 2017-08-03 Tom Tromey <tom@tromey.com>
2591
2592 * cli/cli-script.c (execute_user_command)
2593 (execute_control_command): Use scoped_restore.
2594
2595 2017-08-03 Tom Tromey <tom@tromey.com>
2596
2597 * cli/cli-script.c (do_restore_user_call_depth): Remove.
2598 (execute_user_command): Remove user_call_depth; use
2599 user_args_stack's size instead.
2600
2601 2017-08-03 Tom Tromey <tom@tromey.com>
2602
2603 * top.h (in_user_command): Remove.
2604 * top.c (in_user_command): Remove.
2605 * cli/cli-script.c (do_restore_user_call_depth)
2606 (execute_user_command): Update.
2607
2608 2017-08-03 Tom Tromey <tom@tromey.com>
2609
2610 * valops.c (search_struct_method): Use gdb::byte_vector.
2611 * valarith.c (value_concat): Use std::vector.
2612 * target.c (memory_xfer_partial): Use gdb::byte_vector.
2613 (simple_search_memory): Likewise.
2614 * printcmd.c (find_string_backward): Use gdb::byte_vector.
2615 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
2616 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
2617 * elfread.c (elf_rel_plt_read): Use std::string.
2618 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
2619 * cli/cli-dump.c (restore_section_callback): Use
2620 gdb::byte_vector.
2621
2622 2017-08-03 Tom Tromey <tom@tromey.com>
2623
2624 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
2625
2626 2017-08-03 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-regs.c (tui_restore_gdbout): Remove.
2629 (tui_register_format): Use scoped_restore.
2630
2631 2017-08-03 Tom Tromey <tom@tromey.com>
2632
2633 * reverse.c (exec_direction_default): Remove.
2634 (exec_reverse_once): Use scoped_restore.
2635 * remote.c (restore_remote_timeout): Remove.
2636 (remote_flash_erase, remote_flash_write, remote_flash_done)
2637 (readchar, remote_serial_write): Use scoped_restore.
2638 * cli/cli-script.c (struct source_cleanup_lines_args)
2639 (source_cleanup_lines): Remove.
2640 (script_from_file): Use scoped_restore.
2641 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
2642 (source_command): Use scoped_restore.
2643
2644 2017-08-03 Tom Tromey <tom@tromey.com>
2645
2646 * utils.h (make_cleanup_free_so): Remove.
2647 * utils.c (do_free_so, make_cleanup_free_so): Remove.
2648 * solist.h (struct so_deleter): New.
2649 (so_list_up): New typedef.
2650 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
2651
2652 2017-08-03 Tom Tromey <tom@tromey.com>
2653
2654 * utils.h (make_cleanup_restore_current_language): Remove.
2655 * utils.c (do_restore_current_language)
2656 (make_cleanup_restore_current_language): Remove.
2657 * parse.c (parse_exp_in_context_1)
2658 (parse_expression_with_language): Use
2659 scoped_restore_current_language.
2660 * mi/mi-main.c (mi_cmd_execute): Use
2661 scoped_restore_current_language.
2662 * language.h (scoped_restore_current_language): New class.
2663
2664 2017-08-03 Tom Tromey <tom@tromey.com>
2665
2666 * compile/compile.c (cleanup_unlink_file): Remove.
2667 (compile_to_object): Use gdb::unlinker.
2668 (eval_compile_command): Likewise.
2669
2670 2017-08-03 Tom Tromey <tom@tromey.com>
2671
2672 * utils.h (make_cleanup_fclose): Remove.
2673 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
2674
2675 2017-08-03 Tom Tromey <tom@tromey.com>
2676
2677 * top.c (open_terminal_stream): Return gdb_file_up.
2678 (new_ui_command): Update.
2679
2680 2017-08-03 Tom Tromey <tom@tromey.com>
2681
2682 * source.c (print_source_lines_base, forward_search_command)
2683 (reverse_search_command): Use gdb_file_up.
2684
2685 2017-08-03 Tom Tromey <tom@tromey.com>
2686
2687 * fbsd-nat.c (fbsd_find_memory_regions): Update.
2688
2689 2017-08-03 Tom Tromey <tom@tromey.com>
2690
2691 * cli/cli-cmds.c (find_and_open_script): Change return type.
2692 Remove "streamp" and "full_path" parameters.
2693 (source_script_with_search): Update.
2694 * auto-load.c (source_script_file): Update.
2695 * cli/cli-cmds.h (find_and_open_script): Change type.
2696 (open_script): New struct.
2697
2698 2017-08-03 Tom Tromey <tom@tromey.com>
2699
2700 * xml-support.c (xml_fetch_content_from_file): Update.
2701 * ui-file.c (stdio_file::open): Update.
2702 * tracefile-tfile.c (tfile_start): Update.
2703 * remote.c (remote_file_put, remote_file_get): Update.
2704 * nat/linux-procfs.c (linux_proc_get_int)
2705 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
2706 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
2707 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
2708 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2709 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
2710 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
2711 * linux-nat.c (linux_proc_pending_signals): Update.
2712 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
2713 (file_closer): Remove.
2714 * compile/compile.c (compile_to_object): Update.
2715 * common/filestuff.h (struct gdb_file_deleter): New.
2716 (gdb_file_up): New typedef.
2717 (gdb_fopen_cloexec): Change return type.
2718 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
2719 * cli/cli-dump.c (fopen_with_cleanup): Remove.
2720 (dump_binary_file, restore_binary_file): Update.
2721 * auto-load.c (auto_load_objfile_script_1): Update.
2722
2723 2017-08-03 Tom Tromey <tom@tromey.com>
2724
2725 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
2726 (info_static_tracepoint_markers_command): Likewise.
2727 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
2728 * skip.c (skip_info): Use ui_out_emit_table.
2729 * progspace.c (print_program_space): Use ui_out_emit_table.
2730 * osdata.c (info_osdata): Use ui_out_emit_table.
2731 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
2732 ui_out_emit_table.
2733 * linux-thread-db.c (info_auto_load_libthread_db): Use
2734 ui_out_emit_table.
2735 * inferior.c (print_inferior): Use ui_out_emit_table.
2736 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
2737 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
2738 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
2739 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
2740 * ui-out.h (class ui_out_emit_table): New.
2741
2742 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
2743
2744 * mips-tdep.c (mips_fpu_type_str): New function.
2745 (mips_dump_tdep): Call it.
2746
2747 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
2748
2749 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
2750 `->mips_fpu_type'.
2751
2752 2017-07-31 Xavier Roirand <roirand@adacore.com>
2753
2754 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2755
2756 2017-07-27 Xavier Roirand <roirand@adacore.com>
2757
2758 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
2759
2760 2017-07-26 Yao Qi <yao.qi@linaro.org>
2761
2762 * cli/cli-cmds.c (maintenancechecklist): New variable.
2763 * gdbcmd.h (maintenancechecklist): Declare it.
2764 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
2765 Call i386_linux_read_description with different masks.
2766 * maint.c (maintenance_check_command): New function.
2767 (_initialize_maint_cmds): Call add_prefix_cmd.
2768 * target-descriptions.c (tdesc_reg): override operator != and ==.
2769 (tdesc_type): Likewise.
2770 (tdesc_feature): Likewise.
2771 (target_desc): Likewise.
2772 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
2773 (maintenance_check_xml_descriptions): New function.
2774 (_initialize_target_descriptions) Add command "xml-descriptions".
2775 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
2776
2777 2017-07-26 Yao Qi <yao.qi@linaro.org>
2778
2779 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
2780 Include features/i386/32bit-*.c.
2781 (i386_linux_read_description): Generate target description if it
2782 doesn't exist.
2783 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
2784 functions.
2785 * features/i386/32bit-linux.c: Re-generated.
2786 * features/i386/32bit-sse.c: Likewise.
2787 * target-descriptions.c (print_c_feature::visit): Print code to
2788 set register number if needed.
2789 (print_c_feature) <m_next_regnum>: New field.
2790
2791 2017-07-26 Yao Qi <yao.qi@linaro.org>
2792
2793 * features/Makefile (CFILES): Rename with TDESC_CFILES.
2794 (FEATURE_XMLFILES): New.
2795 (FEATURE_CFILES): New.
2796 New rules.
2797 (clean-cfiles): Remove generated c files.
2798 * features/i386/32bit-avx.c: Generated.
2799 * features/i386/32bit-avx512.c: Generated.
2800 * features/i386/32bit-core.c: Generated.
2801 * features/i386/32bit-linux.c: Generated.
2802 * features/i386/32bit-mpx.c: Generated.
2803 * features/i386/32bit-pkeys.c: Generated.
2804 * features/i386/32bit-sse.c: Generated.
2805 * target-descriptions.c: Include algorithm.
2806 (tdesc_element_visitor): Add method visit_end.
2807 (print_c_tdesc): Implement visit_end.
2808 (print_c_tdesc:: m_filename_after_features): Move it to
2809 protected.
2810 (print_c_feature): New class.
2811 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
2812 name starts with "i386/32bit-".
2813
2814 2017-07-26 Yao Qi <yao.qi@linaro.org>
2815
2816 * target-descriptions.c (tdesc_element_visitor): New class.
2817 (tdesc_element): New class.
2818 (tdesc_reg): Inherit from tdesc_element.
2819 (tdesc_reg::accept): New function.
2820 (tdesc_type): Inherit from tdesc_element.
2821 (tdesc_type::accept): New function.
2822 (tdesc_feature): Inherit from tdesc_element.
2823 (tdesc_feature::accept): New function.
2824 (target_desc): Inherit from tdesc_element.
2825 (target_desc::target_desc): New.
2826 (target_desc::~target_desc): New.
2827 (target_desc::accept): New.
2828 (allocate_target_description): Use new.
2829 (free_target_description): Use delete.
2830 (print_c_tdesc): New class.
2831 (maint_print_c_tdesc_cmd): Adjust.
2832
2833 * features/aarch64.c: Re-generated.
2834 * features/arc-arcompact.c: Re-generated.
2835 * features/arc-v2.c: Re-generated.
2836 * features/arm/arm-with-iwmmxt.c: Re-generated.
2837 * features/arm/arm-with-m.c: Re-generated.
2838 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
2839 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
2840 * features/arm/arm-with-neon.c: Re-generated.
2841 * features/arm/arm-with-vfpv2.c: Re-generated.
2842 * features/arm/arm-with-vfpv3.c: Re-generated.
2843 * features/i386/amd64-avx-avx512.c: Re-generated.
2844 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
2845 * features/i386/amd64-avx.c: Re-generated.
2846 * features/i386/amd64-avx-linux.c: Re-generated.
2847 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
2848 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
2849 * features/i386/amd64-avx-mpx.c: Re-generated.
2850 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
2851 * features/i386/amd64.c: Re-generated.
2852 * features/i386/amd64-linux.c: Re-generated.
2853 * features/i386/amd64-mpx.c: Re-generated.
2854 * features/i386/amd64-mpx-linux.c: Re-generated.
2855 * features/i386/i386-avx-avx512.c: Re-generated.
2856 * features/i386/i386-avx-avx512-linux.c: Re-generated.
2857 * features/i386/i386-avx.c: Re-generated.
2858 * features/i386/i386-avx-linux.c: Re-generated.
2859 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
2860 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
2861 * features/i386/i386-avx-mpx.c: Re-generated.
2862 * features/i386/i386-avx-mpx-linux.c: Re-generated.
2863 * features/i386/i386.c: Re-generated.
2864 * features/i386/i386-linux.c: Re-generated.
2865 * features/i386/i386-mmx.c: Re-generated.
2866 * features/i386/i386-mmx-linux.c: Re-generated.
2867 * features/i386/i386-mpx.c: Re-generated.
2868 * features/i386/i386-mpx-linux.c: Re-generated.
2869 * features/i386/x32-avx-avx512.c: Re-generated.
2870 * features/i386/x32-avx-avx512-linux.c: Re-generated.
2871 * features/i386/x32-avx.c: Re-generated.
2872 * features/i386/x32-avx-linux.c: Re-generated.
2873 * features/i386/x32.c: Re-generated.
2874 * features/i386/x32-linux.c: Re-generated.
2875 * features/microblaze.c: Re-generated.
2876 * features/microblaze-with-stack-protect.c: Re-generated.
2877 * features/mips64-dsp-linux.c: Re-generated.
2878 * features/mips64-linux.c: Re-generated.
2879 * features/mips-dsp-linux.c: Re-generated.
2880 * features/mips-linux.c: Re-generated.
2881 * features/nds32.c: Re-generated.
2882 * features/nios2.c: Re-generated.
2883 * features/nios2-linux.c: Re-generated.
2884 * features/rs6000/powerpc-32.c: Re-generated.
2885 * features/rs6000/powerpc-32l.c: Re-generated.
2886 * features/rs6000/powerpc-403.c: Re-generated.
2887 * features/rs6000/powerpc-403gc.c : Re-generated.
2888 * features/rs6000/powerpc-405.c: Re-generated.
2889 * features/rs6000/powerpc-505.c: Re-generated.
2890 * features/rs6000/powerpc-601.c: Re-generated.
2891 * features/rs6000/powerpc-602.c: Re-generated.
2892 * features/rs6000/powerpc-603.c: Re-generated.
2893 * features/rs6000/powerpc-604.c: Re-generated.
2894 * features/rs6000/powerpc-64.c: Re-generated.
2895 * features/rs6000/powerpc-64l.c: Re-generated.
2896 * features/rs6000/powerpc-7400.c: Re-generated.
2897 * features/rs6000/powerpc-750.c: Re-generated.
2898 * features/rs6000/powerpc-860.c: Re-generated.
2899 * features/rs6000/powerpc-altivec32.c: Re-generated.
2900 * features/rs6000/powerpc-altivec32l.c: Re-generated.
2901 * features/rs6000/powerpc-altivec64.c: Re-generated.
2902 * features/rs6000/powerpc-altivec64l.c: Re-generated.
2903 * features/rs6000/powerpc-cell32l.c: Re-generated.
2904 * features/rs6000/powerpc-cell64l.c: Re-generated.
2905 * features/rs6000/powerpc-e500.c: Re-generated.
2906 * features/rs6000/powerpc-e500l.c: Re-generated.
2907 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
2908 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
2909 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
2910 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
2911 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
2912 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
2913 * features/rs6000/powerpc-vsx32.c: Re-generated.
2914 * features/rs6000/powerpc-vsx32l.c: Re-generated.
2915 * features/rs6000/powerpc-vsx64.c: Re-generated.
2916 * features/rs6000/powerpc-vsx64l.c: Re-generated.
2917 * features/rs6000/rs6000.c: Re-generated.
2918 * features/s390-linux32.c: Re-generated.
2919 * features/s390-linux32v1.c: Re-generated.
2920 * features/s390-linux32v2.c: Re-generated.
2921 * features/s390-linux64.c: Re-generated.
2922 * features/s390-linux64v1.c: Re-generated.
2923 * features/s390-linux64v2.c: Re-generated.
2924 * features/s390-te-linux64.c: Re-generated.
2925 * features/s390-tevx-linux64.c: Re-generated.
2926 * features/s390-vx-linux64.c: Re-generated.
2927 * features/s390x-linux64.c: Re-generated.
2928 * features/s390x-linux64v1.c: Re-generated.
2929 * features/s390x-linux64v2.c: Re-generated.
2930 * features/s390x-te-linux64.c: Re-generated.
2931 * features/s390x-tevx-linux64.c: Re-generated.
2932 * features/s390x-vx-linux64.c: Re-generated.
2933 * features/sparc/sparc32-solaris.c: Re-generated.
2934 * features/sparc/sparc64-solaris.c: Re-generated.
2935 * features/tic6x-c62x.c: Re-generated.
2936 * features/tic6x-c62x-linux.c: Re-generated.
2937 * features/tic6x-c64x.c: Re-generated.
2938 * features/tic6x-c64x-linux.c: Re-generated.
2939 * features/tic6x-c64xp.c: Re-generated.
2940 * features/tic6x-c64xp-linux.c: Re-generated.
2941
2942 2017-07-26 Yao Qi <yao.qi@linaro.org>
2943
2944 * i386-linux-tdep.c (i386_linux_read_description): New function.
2945 (i386_linux_core_read_description): Call
2946 i386_linux_read_description.
2947 * i386-linux-tdep.h (i386_linux_read_description): Declare.
2948 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
2949 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
2950 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
2951 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
2952 * x86-linux-nat.c (x86_linux_read_description): Call
2953 i386_linux_read_description.
2954
2955 2017-07-26 Yao Qi <yao.qi@linaro.org>
2956
2957 * NEWS: Mention it.
2958 * features/Makefile (%.c: %.xml): Pass the xml file name to
2959 command "maint print c-tdesc".
2960 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
2961 name from 'arg'.
2962
2963 2017-07-26 Yao Qi <yao.qi@linaro.org>
2964
2965 * target-descriptions.c (target_desc): Add ctor and dtor. Do
2966 in-class initialization.
2967 (tdesc_create_feature): Call new instead of XCNEW.
2968 (free_target_description): Ue delete.
2969
2970 2017-07-25 John Baldwin <jhb@FreeBSD.org>
2971
2972 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
2973
2974 2017-07-25 Yao Qi <yao.qi@linaro.org>
2975
2976 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
2977 constant.
2978 (amd64_x32_init_abi): Likewise.
2979 * amd64-tdep.h (amd64_init_abi): Update declaration.
2980 (amd64_x32_init_abi): Likewise.
2981
2982 2017-07-25 Yao Qi <yao.qi@linaro.org>
2983
2984 PR tdep/21717
2985 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
2986 condition for FPSCR.
2987 (arm_linux_store_inferior_registers): Likewise.
2988
2989 2017-07-22 Tom Tromey <tom@tromey.com>
2990
2991 * break-catch-syscall.c (struct catch_syscall_inferior_data)
2992 <syscalls_counts>: Now a std::vector.
2993 (get_catch_syscall_inferior_data): Use "new".
2994 (catch_syscall_inferior_data_cleanup): Use "delete".
2995 (insert_catch_syscall, remove_catch_syscall)
2996 (clear_syscall_counts): Update.
2997
2998 2017-07-22 Tom Tromey <tom@tromey.com>
2999
3000 * break-catch-syscall.c (syscall_catchpoint)
3001 <syscalls_to_be_caught>: Now a std::vector<int>
3002 (~syscall_catchpoint): Remove.
3003 (insert_catch_syscall, remove_catch_syscall)
3004 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3005 (print_mention_catch_syscall, print_recreate_catch_syscall):
3006 Update.
3007 (create_syscall_event_catchpoint): Change type of "filter"
3008 parameter.
3009 (catch_syscall_split_args): Return a std::vector.
3010 (catch_syscall_command_1, catching_syscall_number_1): Update.
3011
3012 2017-07-22 Tom Tromey <tom@tromey.com>
3013
3014 * break-catch-throw.c (struct exception_catchpoint)
3015 <exception_rx>: Now a std::string.
3016 (~exception_catchpoint): Remove.
3017 (print_one_detail_exception_catchpoint): Update.
3018 (handle_gnu_v3_exceptions): Change type of except_rx.
3019 (extract_exception_regexp): Return a std::string.
3020 (catch_exception_command_1): Update.
3021
3022 2017-07-22 Tom Tromey <tom@tromey.com>
3023
3024 * break-catch-sig.c (gdb_signal_type): Remove typedef.
3025 (struct signal_catchpoint) <signals_to_be_caught>: Now a
3026 std::vector.
3027 <catch_all>: Now a bool.
3028 (~signal_catchpoint): Remove.
3029 (signal_catchpoint_insert_location)
3030 (signal_catchpoint_remove_location)
3031 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
3032 (signal_catchpoint_print_mention)
3033 (signal_catchpoint_print_recreate)
3034 (signal_catchpoint_explains_signal): Update.
3035 (create_signal_catchpoint): Change type of "filter" and
3036 "catch_all".
3037 (catch_signal_split_args): Return a std::vector. Change type of
3038 "catch_all".
3039 (catch_signal_command): Update.
3040
3041 2017-07-20 Pedro Alves <palves@redhat.com>
3042
3043 * ada-lang.c (ada_language_defn): Make extern.
3044 (_initialize_ada_language): Remove add_language call.
3045 * c-lang.c (c_language_defn, cplus_language_defn)
3046 (asm_language_defn, minimal_language_defn): Make extern.
3047 (_initialize_c_language): Delete.
3048 * completer.c (compare_cstrings): Delete, moved to utils.h.
3049 * d-lang.c (d_language_defn): Make extern.
3050 (_initialize_d_language): Remove add_language calls.
3051 * defs.h (enum language): Add comment.
3052 * f-lang.c (f_language_defn): Make extern.
3053 (_initialize_f_language): Remove add_language call.
3054 * go-lang.c (go_language_defn): Make extern.
3055 (_initialize_go_language): Remove add_language call.
3056 * language.c: Include <algorithm>.
3057 (languages): Redefine as const array.
3058 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
3059 (set_language_command): Handle "local". Use for-range loop.
3060 (set_language): Remove loop.
3061 (language_enum): Rewrite.
3062 (language_def, language_str): Remove loops.
3063 (add_language): Delete.
3064 (add_set_language_command): New, based on add_languages.
3065 (skip_language_trampoline): Adjust.
3066 (local_language_defn): Delete.
3067 (language_gdbarch_post_init): Adjust.
3068 (_initialize_language): Remove add_language calls. Call
3069 add_set_language_command.
3070 * language.h (add_language): Delete.
3071 (auto_language_defn)
3072 (unknown_language_defn, minimal_language_defn, ada_language_defn)
3073 (asm_language_defn, c_language_defn, cplus_language_defn)
3074 (d_language_defn, f_language_defn, go_language_defn)
3075 (m2_language_defn, objc_language_defn, opencl_language_defn)
3076 (pascal_language_defn, rust_language_defn): Declare.
3077 * m2-lang.c (m2_language_defn): Make extern.
3078 (_initialize_m2_language): Remove add_language call.
3079 * objc-lang.c (objc_language_defn): Make extern.
3080 (_initialize_objc_language): Remove add_language call.
3081 * opencl-lang.c (opencl_language_defn): Make extern.
3082 (_initialize_opencl_language): Remove add_language call.
3083 * p-lang.c (pascal_language_defn): Make extern.
3084 (_initialize_pascal_language): Delete.
3085 * rust-lang.c (rust_language_defn): Make extern.
3086 (_initialize_rust_language): Delete.
3087 * utils.h (compare_cstrings): New static inline function.
3088
3089 2017-07-20 Pedro Alves <palves@redhat.com>
3090
3091 * ada-lang.c (ada_to_fixed_type_1): Adjust.
3092 (get_var_value): Constify parameters.
3093 (get_int_var_value): Change prototype.
3094 (to_fixed_range_type): Adjust.
3095 * ada-lang.h (get_int_var_value): Change prototype.
3096
3097 2017-07-20 Pedro Alves <palves@redhat.com>
3098
3099 * dwarf2read.c (dw2_lookup_symbol): Use
3100 SYMBOL_MATCHES_SEARCH_NAME.
3101 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
3102
3103 2017-07-20 Pedro Alves <palves@redhat.com>
3104
3105 * block.c (block_iter_name_step, block_iter_name_first)
3106 (block_iter_name_next): Delete.
3107 (block_lookup_symbol_primary): Adjust to use
3108 dict_iter_match_first/dict_iter_match_next.
3109 * block.h (block_iter_name_first, block_iter_name_next): Delete
3110 declarations.
3111 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
3112 dict_iter_match_first/dict_iter_match_next.
3113
3114 2017-07-20 Pedro Alves <palves@redhat.com>
3115
3116 * cp-support.c (cp_find_first_component_aux): Add missing case for
3117 end of string.
3118
3119 2017-07-18 David Blaikie <dblaikie@gmail.com>
3120
3121 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
3122 of dwo_cu's dwo_file.
3123
3124 2017-07-18 Yao Qi <yao.qi@linaro.org>
3125
3126 * remote.c (store_registers_using_G): Remove one line comment.
3127
3128 2017-07-18 Yao Qi <yao.qi@linaro.org>
3129
3130 * regcache.c (regcache_cpy): Simplify it.
3131 (regcache::cpy_no_passthrough): Remove it.
3132 * regcache.h (cpy_no_passthrough): Remove it.
3133 (regcache_dup, regcache_cpy): Update comments.
3134
3135 2017-07-18 Pedro Alves <palves@redhat.com>
3136
3137 * remote-sim.c (sim_command_completer): Adjust to work with a
3138 completion_tracker instead of a VEC.
3139
3140 2017-07-17 Pedro Alves <palves@redhat.com>
3141
3142 * completer.c (complete_source_filenames): New function.
3143 (complete_address_and_linespec_locations): New function.
3144 (location_completer): Use complete_address_and_linespec_locations.
3145 (completion_tracker::build_completion_result): Honor the tracker's
3146 request to suppress append.
3147 * completer.h (completion_tracker::suppress_append_ws)
3148 (completion_tracker::set_suppress_append_ws): New methods.
3149 (completion_tracker::m_suppress_append_ws): New field.
3150 (complete_source_filenames): New declaration.
3151 * linespec.c (linespec_complete_what): New.
3152 (struct ls_parser) <complete_what, completion_word,
3153 completion_quote_char, completion_quote_end, completion_tracker>:
3154 New fields.
3155 (string_find_incomplete_keyword_at_end): New.
3156 (linespec_lexer_lex_string): Record quote char. If in completion
3157 mode, don't throw.
3158 (linespec_lexer_consume_token): Advance the completion word point.
3159 (linespec_lexer_peek_token): Save/restore completion info.
3160 (save_stream_and_consume_token): New.
3161 (set_completion_after_number): New.
3162 (linespec_parse_basic): Set what to complete next depending on
3163 token. Handle function and label completions specially.
3164 (parse_linespec): Disable objc shortcut in completion mode. Set
3165 what to complete next depending on token type. Skip keyword if in
3166 completion mode.
3167 (complete_linespec_component, linespec_complete): New.
3168 * linespec.h (linespec_complete): Declare.
3169
3170 2017-07-17 Pedro Alves <palves@redhat.com>
3171
3172 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
3173 Handle 'operator<' / 'operator<<'.
3174
3175 2017-07-17 Pedro Alves <palves@redhat.com>
3176
3177 * completer.c (collect_explicit_location_matches): Handle
3178 MATCH_LABEL.
3179 (convert_explicit_location_to_linespec): New, factored out from
3180 ...
3181 (convert_explicit_location_to_sals): ... this.
3182 (complete_label): New.
3183 (linespec_complete_label, find_label_symbols_in_block): New.
3184 (find_label_symbols): Add completion_mode parameter and adjust to
3185 call find_label_symbols_in_block.
3186 * linespec.h (linespec_complete_label): Declare.
3187
3188 2017-07-17 Pedro Alves <palves@redhat.com>
3189
3190 * ada-lang.c (ada_collect_symbol_completion_matches): Add
3191 complete_symbol_mode parameter.
3192 * cli/cli-cmds.c (complete_command): Get the completion result out
3193 of the handle_brkchars tracker if used a custom word point.
3194 * completer.c: Include "linespec.h".
3195 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
3196 (advance_to_expression_complete_word_point): New.
3197 (completion_tracker::completes_to_completion_word): New.
3198 (complete_files_symbols): Pass down
3199 complete_symbol_mode::EXPRESSION.
3200 (explicit_options, probe_options): New.
3201 (collect_explicit_location_matches): Complete on the
3202 explictit_loc->foo instead of word. Use
3203 linespec_complete_function. Handle MATCH_LINE. Handle offering
3204 keyword and options completions.
3205 (backup_text_ptr): Delete.
3206 (skip_keyword): New.
3207 (complete_explicit_location): Remove 'word' parameter. Add
3208 language, quoted_arg_start and quoted_arg_end parameters.
3209 Rewrite, parsing left to right.
3210 (location_completer): Rewrite.
3211 (location_completer_handle_brkchars): New function.
3212 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
3213 (enum complete_line_internal_reason): Adjust comments.
3214 (completion_tracker::discard_completions): New.
3215 (completer_handle_brkchars_func_for_completer): Handle
3216 location_completer.
3217 (gdb_custom_word_point_brkchars)
3218 (gdb_org_rl_basic_quote_characters): New.
3219 (gdb_completion_word_break_characters_throw)
3220 (completion_find_completion_word): Handle trackers that use a
3221 custom word point.
3222 (completion_tracker::advance_custom_word_point_by): New.
3223 (completion_tracker::build_completion_result): Don't rely on
3224 readline appending the quote char.
3225 (gdb_rl_attempted_completion_function_throw): Handle trackers that
3226 use a custom word point.
3227 (gdb_rl_attempted_completion_function): Restore
3228 rl_basic_quote_characters.
3229 * completer.h (class completion_tracker): Extend intro comment.
3230 (completion_tracker::set_quote_char)
3231 (completion_tracker::quote_char)
3232 (completion_tracker::set_use_custom_word_point)
3233 (completion_tracker::use_custom_word_point)
3234 (completion_tracker::custom_word_point)
3235 (completion_tracker::set_custom_word_point)
3236 (completion_tracker::advance_custom_word_point_by)
3237 (completion_tracker::completes_to_completion_word)
3238 (completion_tracker::discard_completions): New methods.
3239 (completion_tracker::m_quote_char)
3240 (completion_tracker::m_use_custom_word_point)
3241 (completion_tracker::m_custom_word_point): New fields.
3242 (advance_to_expression_complete_word_point): Declare.
3243 * f-lang.c (f_collect_symbol_completion_matches): Add
3244 complete_symbol_mode parameter.
3245 * language.h (struct language_defn)
3246 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
3247 parameter.
3248 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
3249 (linespec_complete_function): New function.
3250 (linespec_lexer_lex_keyword): Adjust.
3251 * linespec.h (linespec_keywords, linespec_complete_function): New
3252 declarations.
3253 * location.c (find_end_quote): New function.
3254 (explicit_location_lex_one): Add explicit_completion_info
3255 parameter. Save quoting info. Don't throw if being called for
3256 completion. Don't handle Ada operators here.
3257 (is_cp_operator, skip_op_false_positives, first_of)
3258 (explicit_location_lex_one_function): New function.
3259 (string_to_explicit_location): Replace 'dont_throw' parameter with
3260 an explicit_completion_info pointer parameter. Handle it. Don't
3261 use explicit_location_lex_one to lex function names. Use
3262 explicit_location_lex_one_function instead.
3263 * location.h (struct explicit_completion_info): New.
3264 (string_to_explicit_location): Replace 'dont_throw' parameter with
3265 an explicit_completion_info pointer parameter.
3266 * symtab.c (default_collect_symbol_completion_matches_break_on):
3267 Add complete_symbol_mode parameter. Handle LINESPEC mode.
3268 (default_collect_symbol_completion_matches)
3269 (collect_symbol_completion_matches): Add complete_symbol_mode
3270 parameter.
3271 (collect_symbol_completion_matches_type): Pass down
3272 complete_symbol_mode::EXPRESSION.
3273 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3274 parameter. Handle LINESPEC mode.
3275 * symtab.h (complete_symbol_mode): New.
3276 (default_collect_symbol_completion_matches_break_on)
3277 (default_collect_symbol_completion_matches)
3278 (collect_symbol_completion_matches)
3279 (collect_file_symbol_completion_matches): Add complete_symbol_mode
3280 parameter.
3281
3282 2017-07-17 Pedro Alves <palves@redhat.com>
3283
3284 * utils.c (enum class strncmp_iw_mode): New.
3285 (strcmp_iw): Rename to ...
3286 (strncmp_iw_with_mode): ... this. Add string2_len and mode
3287 parameters. Handle them.
3288 (strncmp_iw): New.
3289 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
3290 * utils.h (strncmp_iw): Declare.
3291 (strcmp_iw): Move describing comments here.
3292
3293 2017-07-17 Pedro Alves <palves@redhat.com>
3294
3295 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
3296 CP_OPERATOR_STR.
3297 * c-typeprint.c (is_type_conversion_operator): Use
3298 CP_OPERATOR_STR.
3299 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
3300 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
3301 CP_OPERATOR_LEN.
3302 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
3303 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
3304 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
3305 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
3306 CP_OPERATOR_STR.
3307 * location.c: Include "cp-support.h".
3308 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
3309 CP_OPERATOR_STR.
3310 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
3311 CP_OPERATOR_LEN.
3312
3313 2017-07-17 Pedro Alves <palves@redhat.com>
3314
3315 * cli/cli-cmds.c (complete_command): Use a completion tracker
3316 along with completion_find_completion_word for handle_brkchars
3317 phase.
3318 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
3319 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
3320 (struct gdb_rl_completion_word_info): New.
3321 (gdb_rl_find_completion_word): New.
3322 (completion_find_completion_word): New.
3323 * completer.h (completion_find_completion_word): Declare.
3324
3325 2017-07-17 Pedro Alves <palves@redhat.com>
3326
3327 * ada-lang.c (symbol_completion_match): Adjust comments.
3328 (symbol_completion_add): Replace vector parameter with
3329 completion_tracker parameter. Use it.
3330 (ada_make_symbol_completion_list): Rename to...
3331 (ada_collect_symbol_completion_matches): ... this. Add
3332 completion_tracker parameter and use it.
3333 (ada_language_defn): Adjust.
3334 * break-catch-syscall.c (catch_syscall_completer): Adjust
3335 prototype and work with completion_tracker instead of VEC.
3336 * breakpoint.c (condition_completer): Adjust prototype and work
3337 with completion_tracker instead of VEC.
3338 * c-lang.c (c_language_defn, cplus_language_defn)
3339 (asm_language_defn, minimal_language_defn): Adjust to renames.
3340 * cli/cli-cmds.c (complete_command): Rework using
3341 completion_tracker. Catch exceptions when completing.
3342 * cli/cli-decode.c (integer_unlimited_completer)
3343 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
3344 with completion_tracker instead of VEC.
3345 * command.h (struct completion_tracker): Forward declare.
3346 (completer_ftype, completer_handle_brkchars_ftype): Change
3347 types.
3348 (complete_on_cmdlist, complete_on_enum): Adjust.
3349 * completer.c: Include <algorithm>.
3350 (struct gdb_completer_state): New.
3351 (current_completion): New global.
3352 (readline_line_completion_function): Delete.
3353 (noop_completer, filename_completer)
3354 (filename_completer_handle_brkchars, complete_files_symbols)
3355 (linespec_location_completer): Adjust to work with a
3356 completion_tracker instead of a VEC.
3357 (string_or_empty): New.
3358 (collect_explicit_location_matches): Adjust to work with a
3359 completion_tracker instead of a VEC.
3360 (explicit_location_completer): Rename to ...
3361 (complete_explicit_location): ... this and adjust to work with a
3362 completion_tracker instead of a VEC.
3363 (location_completer): Adjust to work with a completion_tracker
3364 instead of a VEC.
3365 (add_struct_fields): Adjust to work with a completion_list instead
3366 of VEC.
3367 (expression_completer): Rename to ...
3368 (complete_expression): ... this and adjust to work with a
3369 completion_tracker instead of a VEC. Use complete_files_symbols.
3370 (expression_completer): Reimplement on top of complete_expression.
3371 (symbol_completer): Adjust to work with a completion_tracker
3372 instead of a VEC.
3373 (enum complete_line_internal_reason): Add describing comments.
3374 (complete_line_internal_normal_command): Adjust to work with a
3375 completion_tracker instead of a VEC.
3376 (complete_line_internal): Rename to ...
3377 (complete_line_internal_1): ... this and adjust to work with a
3378 completion_tracker instead of a VEC. Assert TEXT is NULL in the
3379 handle_brkchars phase.
3380 (new_completion_tracker): Delete.
3381 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
3382 complete_line_internal_1.
3383 (free_completion_tracker): Delete.
3384 (INITIAL_COMPLETION_HTAB_SIZE): New.
3385 (completion_tracker::completion_tracker)
3386 (completion_tracker::~completion_tracker): New.
3387 (maybe_add_completion): Delete.
3388 (completion_tracker::maybe_add_completion)
3389 (completion_tracker::add_completion)
3390 (completion_tracker::add_completions): New.
3391 (throw_max_completions_reached_error): Delete.
3392 (complete_line): Adjust to work with a completion_tracker instead
3393 of a VEC. Don't create a completion_tracker_t or check for max
3394 completions here.
3395 (command_completer, command_completer_handle_brkchars)
3396 (signal_completer, reg_or_group_completer_1)
3397 (reg_or_group_completer, default_completer_handle_brkchars):
3398 Adjust to work with a completion_tracker.
3399 (gdb_completion_word_break_characters_throw): New.
3400 (gdb_completion_word_break_characters): Reimplement.
3401 (line_completion_function): Delete.
3402 (completion_tracker::recompute_lowest_common_denominator)
3403 (expand_preserving_ws)
3404 (completion_tracker::build_completion_result)
3405 (completion_result::completion_result)
3406 (completion_result::completion_result)
3407 (completion_result::~completion_result)
3408 (completion_result::completion_result)
3409 (completion_result::release_match_list, compare_cstrings)
3410 (completion_result::sort_match_list)
3411 (completion_result::reset_match_list)
3412 (gdb_rl_attempted_completion_function_throw)
3413 (gdb_rl_attempted_completion_function): New.
3414 * completer.h (completion_list, struct completion_result)
3415 (class completion_tracker): New.
3416 (complete_line): Add completion_tracker parameter.
3417 (readline_line_completion_function): Delete.
3418 (gdb_rl_attempted_completion_function): New.
3419 (noop_completer, filename_completer, expression_completer)
3420 (location_completer, symbol_completer, command_completer)
3421 (signal_completer, reg_or_group_completer): Update prototypes.
3422 (completion_tracker_t, new_completion_tracker)
3423 (make_cleanup_free_completion_tracker): Delete.
3424 (enum maybe_add_completion_enum): Delete.
3425 (maybe_add_completion): Delete.
3426 (throw_max_completions_reached_error): Delete.
3427 * corefile.c (complete_set_gnutarget): Adjust to work with a
3428 completion_tracker instead of a VEC.
3429 * cp-abi.c (cp_abi_completer): Adjust to work with a
3430 completion_tracker instead of a VEC.
3431 * d-lang.c (d_language_defn): Adjust.
3432 * disasm.c (disassembler_options_completer): Adjust to work with a
3433 completion_tracker instead of a VEC.
3434 * f-lang.c (f_make_symbol_completion_list): Rename to ...
3435 (f_collect_symbol_completion_matches): ... this. Adjust to work
3436 with a completion_tracker instead of a VEC.
3437 (f_language_defn): Adjust.
3438 * go-lang.c (go_language_defn): Adjust.
3439 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
3440 Adjust to work with a completion_tracker instead of a VEC.
3441 * infrun.c (handle_completer): Likewise.
3442 * interps.c (interpreter_completer): Likewise.
3443 * interps.h (interpreter_completer): Likewise.
3444 * language.c (unknown_language_defn, auto_language_defn)
3445 (local_language_defn): Adjust.
3446 * language.h (language_defn::la_make_symbol_completion_list):
3447 Rename to ...
3448 (language_defn::la_collect_symbol_completion_matches): ... this
3449 and adjust to work with a completion_tracker instead of a VEC.
3450 * m2-lang.c (m2_language_defn): Adjust.
3451 * objc-lang.c (objc_language_defn): Adjust.
3452 * opencl-lang.c (opencl_language_defn): Adjust.
3453 * p-lang.c (pascal_language_defn): Adjust.
3454 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
3455 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
3456 with a completion_tracker.
3457 * rust-lang.c (rust_language_defn): Adjust.
3458 * symtab.c (free_completion_list, do_free_completion_list)
3459 (return_val, completion_tracker): Delete.
3460 (completion_list_add_name, completion_list_add_symbol)
3461 (completion_list_add_msymbol, completion_list_objc_symbol)
3462 (completion_list_add_fields, add_symtab_completions): Add
3463 completion_tracker parameter and use it.
3464 (default_make_symbol_completion_list_break_on_1): Rename to...
3465 (default_collect_symbol_completion_matches_break_on): ... this.
3466 Add completion_tracker parameter and use it instead of allocating
3467 a completion tracker here.
3468 (default_make_symbol_completion_list_break_on): Delete old
3469 implementation.
3470 (default_make_symbol_completion_list): Delete.
3471 (default_collect_symbol_completion_matches): New.
3472 (make_symbol_completion_list): Delete.
3473 (collect_symbol_completion_matches): New.
3474 (make_symbol_completion_type): Rename to ...
3475 (collect_symbol_completion_matches_type): ... this. Add
3476 completion_tracker parameter and use it instead of VEC.
3477 (make_file_symbol_completion_list_1): Rename to...
3478 (collect_file_symbol_completion_matches): ... this. Add
3479 completion_tracker parameter and use it instead of VEC.
3480 (make_file_symbol_completion_list): Delete.
3481 (add_filename_to_list): Use completion_list instead of a VEC.
3482 (add_partial_filename_data::list): Now a completion_list.
3483 (make_source_files_completion_list): Work with a completion_list
3484 instead of a VEC.
3485 * symtab.h: Include "completer.h".
3486 (default_make_symbol_completion_list_break_on)
3487 (default_make_symbol_completion_list, make_symbol_completion_list)
3488 (make_symbol_completion_type, make_file_symbol_completion_list)
3489 (make_source_files_completion_list): Delete.
3490 (default_collect_symbol_completion_matches_break_on)
3491 (default_collect_symbol_completion_matches)
3492 (collect_symbol_completion_matches)
3493 (collect_symbol_completion_matches_type)
3494 (collect_file_symbol_completion_matches)
3495 (make_source_files_completion_list): New.
3496 * top.c (init_main): Don't install a rl_completion_entry_function
3497 hook. Install a rl_attempted_completion_function hook instead.
3498 * tui/tui-layout.c (layout_completer): Adjust to work with a
3499 completion_tracker.
3500 * tui/tui-regs.c (tui_reggroup_completer):
3501 * tui/tui-win.c (window_name_completer, focus_completer)
3502 (winheight_completer): Adjust to work with a completion_tracker.
3503 * value.c: Include "completer.h".
3504 (complete_internalvar): Adjust to work with a completion_tracker.
3505 * value.h (complete_internalvar): Likewise.
3506
3507 2017-07-17 Pedro Alves <palves@redhat.com>
3508
3509 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
3510 renames.
3511 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
3512 comments to completer_ftype's declaration.
3513 <completer_handle_brkchars>: Change type to
3514 completer_handle_brkchars_ftype.
3515 * command.h (completer_ftype): Add describing comment and give
3516 names to parameters.
3517 (completer_ftype_void): Rename to ...
3518 (completer_handle_brkchars_ftype) ... this. Add describing comment.
3519 (set_cmd_completer_handle_brkchars): Adjust.
3520 * completer.c (filename_completer_handle_brkchars): New function.
3521 (complete_line_internal_normal_command): New function, factored
3522 out from ...
3523 (complete_line_internal): ... here.
3524 (command_completer_handle_brkchars)
3525 (default_completer_handle_brkchars)
3526 (completer_handle_brkchars_func_for_completer): New functions.
3527 * completer.h (set_gdb_completion_word_break_characters): Delete
3528 declaration.
3529 (completer_handle_brkchars_func_for_completer): New declaration.
3530 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
3531 completer_handle_brkchars_func_for_completer.
3532
3533 2017-07-17 Pedro Alves <palves@redhat.com>
3534
3535 * completer.c (symbol_completer): New function, based on
3536 make_symbol_completion_list_fn.
3537 * completer.h (symbol_completer): New declaration.
3538 * guile/scm-cmd.c (cmdscm_completers): Adjust.
3539 * python/py-cmd.c (completers): Adjust.
3540 * symtab.c (make_symbol_completion_list_fn): Delete.
3541 * symtab.h (make_symbol_completion_list_fn): Delete.
3542 * cli/cli-decode.c (add_cmd): Adjust.
3543
3544 2017-07-17 Pedro Alves <palves@redhat.com>
3545
3546 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
3547 * dwarf2read.c: Include "filename-seen-cache.h".
3548 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
3549 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
3550 * filename-seen-cache.c: New file.
3551 * filename-seen-cache.h: New file.
3552 * symtab.c: Include "filename-seen-cache.h".
3553 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
3554 (create_filename_seen_cache, clear_filename_seen_cache)
3555 (delete_filename_seen_cache, filename_seen): Delete, parts moved
3556 to filename-seen-cache.h/filename-seen-cache.c.
3557 (output_source_filename, sources_info)
3558 (maybe_add_partial_symtab_filename)
3559 (make_source_files_completion_list): Adjust to use
3560 filename_seen_cache.
3561
3562 2017-07-17 Pedro Alves <palves@redhat.com>
3563
3564 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
3565 fields.
3566 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
3567 dwarf2_debug_sections*)): New.
3568 (dwarf2_per_objfile::dwarf2_per_objfile(const
3569 dwarf2_per_objfile&)): Declare as deleted.
3570 (dwarf2_per_objfile::operator=): Declare as deleted.
3571 (dwarf2_per_objfile::dwarf2_per_objfile)
3572 (dwarf2_per_objfile::~dwarf2_per_objfile)
3573 (dwarf2_per_objfile::free_cached_comp_units): New.
3574 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
3575 ctor. Call dwarf2_per_objfile's ctor manually.
3576 (dwarf2_locate_sections): Deleted/refactored as ...
3577 (dwarf2_per_objfile::locate_sections): ... this new method.
3578 (free_cached_comp_units): Defer to
3579 dwarf2_per_objfile::free_cached_comp_units.
3580 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
3581
3582 2017-07-14 Tom Tromey <tom@tromey.com>
3583
3584 PR rust/21764:
3585 * rust-exp.y (convert_ast_to_expression): Add "want_type"
3586 parameter.
3587 <UNOP_SIZEOF>: Split into separate case.
3588 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
3589
3590 2017-07-14 Tom Tromey <tom@tromey.com>
3591
3592 PR rust/21763:
3593 * symtab.c (symbol_matches_domain): Add language_rust to special
3594 case.
3595 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
3596 treat LOC_TYPEDEF symbols as variables.
3597
3598 2017-07-14 Pedro Alves <palves@redhat.com>
3599
3600 * symtab.c (make_file_symbol_completion_list_1): Iterate over
3601 symtabs matching all symtabs with SRCFILE as file name instead of
3602 only considering the first hit, with lookup_symtab.
3603
3604 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3605
3606 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
3607 operator_name parameters.
3608 (gen_expr): Update function call.
3609
3610 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3611
3612 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
3613 parameter.
3614 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
3615 Likewise.
3616 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
3617 parameter, use agent_expr::gdbarch instead, update function
3618 calls.
3619 (locexpr_tracepoint_var_ref): Likewise.
3620 (loclist_tracepoint_var_ref): Likewise.
3621 * ax-gdb.c (gen_trace_static_fields): Likewise.
3622 (gen_traced_pop): Likewise.
3623 (gen_frame_args_address): Likewise.
3624 (gen_frame_locals_address): Likewise.
3625 (gen_var_ref): Likewise.
3626 (gen_struct_ref_recursive): Likewise.
3627 (gen_static_field): Likewise.
3628 (gen_maybe_namespace_elt): Likewise.
3629 (gen_expr): Likewise.
3630 (gen_trace_for_var): Likewise.
3631 (gen_trace_for_expr): Likewise.
3632 (gen_trace_for_return_address): Likewise.
3633
3634 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3635
3636 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
3637 parameter.
3638 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
3639
3640 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
3641
3642 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
3643 from ax, update calls.
3644 (gen_usual_arithmetic): Likewise.
3645 (gen_integral_promotions): Likewise.
3646 (gen_bitfield_ref): Likewise.
3647 (gen_primitive_field): Likewise.
3648 (gen_struct_ref_recursive): Likewise.
3649 (gen_struct_ref): Likewise.
3650 (gen_maybe_namespace_elt): Likewise.
3651 (gen_struct_elt_for_reference): Likewise.
3652 (gen_namespace_elt): Likewise.
3653 (gen_aggregate_elt_ref): Likewise.
3654 (gen_expr): Get gdbarch from ax, update calls.
3655 (gen_expr_binop_rest): Likewise.
3656
3657 2017-07-13 Pedro Alves <palves@redhat.com>
3658
3659 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
3660 as default tdesc.
3661 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
3662 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
3663 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
3664 tdesc_amd64_linux as default tdesc. Get final tdesc from the
3665 tdep.
3666 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
3667 Get final tdesc from the tdep.
3668 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
3669 default tdesc.
3670 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3671 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3672 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
3673 Use it as default tdesc.
3674 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
3675 down to amd_init_abi. No longer handle fallback tdesc here.
3676 * amd64-tdep.h (tdesc_x32): Declare.
3677 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
3678 parameter.
3679 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
3680 as default tdesc.
3681
3682 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3683
3684 * s390-linux-tdep.c (s390_process_record): Add support for
3685 instructions new in arch12.
3686
3687 2017-07-11 John Baldwin <jhb@FreeBSD.org>
3688
3689 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3690 PT_GETFSBASE and PT_GETGSBASE.
3691 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
3692 PT_SETGSBASE.
3693
3694 2017-07-11 John Baldwin <jhb@FreeBSD.org>
3695
3696 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
3697 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
3698 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
3699 those rules.
3700 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
3701 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
3702 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
3703 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
3704 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
3705 * features/i386/amd64.xml: Add 64bit-segments.xml.
3706 * features/i386/amd64-avx-avx512.c: Regenerated.
3707 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
3708 * features/i386/amd64-avx-mpx.c: Regenerated.
3709 * features/i386/amd64-avx.c: Regenerated.
3710 * features/i386/amd64-mpx.c: Regenerated.
3711 * features/i386/amd64.c: Regenerated.
3712 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
3713 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
3714 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
3715 * regformats/i386/amd64-avx.dat: Regenerated.
3716 * regformats/i386/amd64-mpx.dat: Regenerated.
3717 * regformats/i386/amd64.dat: Regenerated.
3718
3719 2017-07-10 Yao Qi <yao.qi@linaro.org>
3720
3721 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3722 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3723
3724 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
3725
3726 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
3727 unsetenv.
3728 * gnulib/aclocal.m4: Regenerate.
3729 * gnulib/config.in: Regenerate.
3730 * gnulib/configure: Regenerate.
3731 * gnulib/import/Makefile.am: Regenerate.
3732 * gnulib/import/Makefile.in: Regenerate.
3733 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3734 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3735 * gnulib/import/m4/environ.m4: New file.
3736 * gnulib/import/m4/setenv.m4: New file.
3737 * gnulib/import/setenv.c: New file.
3738 * gnulib/import/unsetenv.c: New file.
3739
3740 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
3741
3742 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
3743 address when op is DW_OP_addr.
3744
3745 2017-07-09 Tom Tromey <tom@tromey.com>
3746
3747 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
3748 check and apply to outer type.
3749
3750 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3751
3752 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
3753 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
3754 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
3755 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
3756
3757 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3758
3759 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
3760
3761 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3762
3763 * corelow.c (get_core_siginfo): Remove.
3764 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
3765 instead of get_core_siginfo.
3766 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
3767 * gdbarch.h: Re-generate.
3768 * gdbarch.c: Re-generate.
3769 * linux-tdep.c (linux_core_xfer_siginfo): New.
3770 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
3771
3772 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3773
3774 * corelow.c (thread_section_name): Move to ...
3775 * gdbcore.h (thread_section_name): ... here.
3776
3777 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3778
3779 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
3780 (struct siginfo32): New.
3781 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
3782 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
3783 via ptrace(PT_LWPINFO).
3784
3785 2017-07-07 John Baldwin <jhb@FreeBSD.org>
3786
3787 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
3788 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
3789 (fbsd_get_siginfo_type): New.
3790 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3791 (_initialize_fbsd_tdep): New.
3792
3793 2017-07-06 David Blaikie <dblaikie@gmail.com>
3794
3795 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
3796 a singular dwo_unit*) to support multiple CUs in the same way that
3797 multiple TUs are supported.
3798 (create_cus_hash_table): Replace create_dwo_cu with a function for
3799 parsing multiple CUs from a DWO file.
3800 (open_and_init_dwo_file): Use create_cus_hash_table rather than
3801 create_dwo_cu.
3802 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
3803 htab_find, rather than comparing the signature to a singleton CU in
3804 the dwo_file.
3805
3806 2017-07-06 Pedro Alves <palves@redhat.com>
3807
3808 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
3809
3810 2017-07-04 Pedro Alves <palves@redhat.com>
3811
3812 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
3813 * gdbtypes.h (TYPE_STATIC): Delete.
3814 (struct fn_field) <is_public, is_abstract, is_static, is_final,
3815 is_synchronized, is_native>: Delete.
3816 <dummy>: Bump.
3817 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
3818 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
3819 (TYPE_FN_FIELD_ABSTRACT): Delete.
3820
3821 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
3822
3823 * buffer.h (buffer_finish): Fix spelling mistakes.
3824
3825 2017-07-01 Eli Zaretskii <eliz@gnu.org>
3826
3827 * .dir-locals.el: Automatically switch to C-style comments in
3828 versions of Emacs that support the feature.
3829
3830 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
3831 Pedro Alves <palves@redhat.com>
3832
3833 PR cli/21688
3834 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
3835 (process_next_line): New variable 'inline_cmd'.
3836 Adjust 'if' clauses for "python", "compile" and "guile" to use
3837 'command_name_equals' and check for '!inline_cmd'.
3838
3839 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
3840
3841 PR cli/21688
3842 * cli/cli-script.c (command_name_equals_not_inline): New function.
3843 (process_next_line): Adjust 'if' clauses for "python", "compile"
3844 and "guile" to use command_name_equals_not_inline.
3845
3846 2017-06-29 Pedro Alves <palves@redhat.com>
3847
3848 * completer.c (expression_completer): Call
3849 linespec_location_completer instead of location_completer.
3850
3851 2017-06-29 Pedro Alves <palves@redhat.com>
3852
3853 * completer.c (expression_completer): Remove code that recomputes
3854 'text' from 'word'.
3855
3856 2017-06-29 Yao Qi <yao.qi@linaro.org>
3857
3858 * regformats/regdat.sh: Generate code with
3859 "ifndef IN_PROCESS_AGENT".
3860
3861 2017-06-28 Pedro Alves <palves@redhat.com>
3862
3863 * command.h: Include "common/scoped_restore.h".
3864
3865 2017-06-28 Yao Qi <yao.qi@linaro.org>
3866
3867 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
3868 instead of obstack_grow.
3869
3870 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
3871
3872 PR gdb/21337
3873 * symfile.c (reread_symbols): Call objfiles_changed just before
3874 read_symbols.
3875
3876 2017-06-27 Pedro Alves <palves@redhat.com>
3877
3878 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
3879 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
3880 (completion_list_add_symbol, completion_list_add_msymbol):
3881 ... these new functions.
3882 (add_symtab_completions)
3883 (default_make_symbol_completion_list_break_on_1): Adjust.
3884
3885 2017-06-27 Pedro Alves <palves@redhat.com>
3886
3887 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
3888 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
3889 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
3890 dtor.
3891 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
3892 'storage_obstack' field an auto_obstack. In-class initialize all
3893 non-bitfield fields. Make minsyms_read bool.
3894 * symfile.c (read_symbols): Adjust.
3895
3896 2017-06-27 Alan Hayward <alan.hayward@arm.com>
3897
3898 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
3899 (gdbsim_store_register): Likewise.
3900
3901 2017-06-27 Pedro Alves <palves@redhat.com>
3902
3903 * c-exp.y (name_obstack): Now an auto_obstack.
3904 (yylex): Use auto_obstack::clear.
3905 (c_parse): Use auto_obstack::clear instead of reinitializing and
3906 freeing the obstack.
3907 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
3908 * d-exp.y (name_obstack): Now an auto_obstack.
3909 (yylex): Use auto_obstack::clear.
3910 (d_parse): Use auto_obstack::clear instead of reinitializing and
3911 freeing the obstack.
3912 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
3913 auto_obstack.
3914 * dwarf2read.c (create_addrmap_from_index)
3915 (dwarf2_build_psymtabs_hard)
3916 (update_enumeration_type_from_children): Likewise.
3917 * gdb_obstack.h (auto_obstack): New type.
3918 * go-exp.y (name_obstack): Now an auto_obstack.
3919 (build_packaged_name): Use auto_obstack::clear.
3920 (go_parse): Use auto_obstack::clear instead of reinitializing and
3921 freeing the obstack.
3922 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
3923 auto_obstack.
3924 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
3925 * rust-exp.y (work_obstack): Now an auto_obstack.
3926 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
3927 reinitializing and freeing the obstack.
3928 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
3929 (host_char_to_target): Use auto_obstack.
3930 * utils.h (make_cleanup_obstack_free): Delete declaration.
3931 * valprint.c (generic_emit_char, generic_printstr): Use
3932 auto_obstack.
3933
3934 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
3935
3936 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
3937 thread.
3938 (darwin_init_thread_list): Don't update dummy thread.
3939 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
3940
3941 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
3942
3943 * record-full.c (netorder16): Remove.
3944
3945 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
3946
3947 * common/diagnostics.h: Define macros for GCC.
3948 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
3949 * common/vec.h: Include diagnostics.h.
3950 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
3951 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
3952 warning.
3953
3954 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
3955
3956 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
3957 New macro.
3958 * ada-lex.l: Ignore deprecated register warnings.
3959
3960 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
3961
3962 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
3963 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
3964
3965 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
3966
3967 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
3968 its own line.
3969
3970 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
3971
3972 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
3973
3974 2017-06-23 Alan Hayward <alan.hayward@arm.com>
3975
3976 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
3977 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
3978 (xtensa_register_read_masked): Likewise.
3979
3980 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
3981
3982 * common/environ.c (gdb_environ::unset): Update comment.
3983
3984 2017-06-22 Alan Hayward <alan.hayward@arm.com>
3985
3986 * python/py-unwind.c (pyuw_sniffer): Allocate space for
3987 registers.
3988
3989 2017-06-22 Alan Hayward <alan.hayward@arm.com>
3990
3991 * record-full.c (record_full_exec_insn): Use byte_vector.
3992
3993 2017-06-22 Yao Qi <yao.qi@linaro.org>
3994
3995 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
3996 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
3997
3998 2017-06-22 Alan Hayward <alan.hayward@arm.com>
3999
4000 * remote.c (cached_reg): Move from here...
4001 * regcache.h (cached_reg): ...to here.
4002 * python/py-unwind.c (struct reg_info): Remove.
4003 (cached_frame_info): Use cached_reg_t.
4004 (pyuw_prev_register): Likewise.
4005 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4006 (pyuw_dealloc_cache): Free all registers.
4007
4008 2017-06-22 Pedro Alves <palves@redhat.com>
4009 Simon Marchi <simon.marchi@ericsson.com>
4010
4011 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4012 warning.
4013 * common/diagnostics.h: New file.
4014
4015 2017-06-22 Pedro Alves <palves@redhat.com>
4016
4017 * common/agent.h: Add include guards.
4018
4019 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
4020
4021 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
4022 talk about addressable units instead of bytes.
4023
4024 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4025
4026 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
4027 of '::const_iterator'.
4028
4029 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4030
4031 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4032 'unittests/environ-selftests.c'.
4033 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
4034 * charset.c (find_charset_names): Declare object 'iconv_env'.
4035 Update code to use 'iconv_env' object. Remove call to
4036 'free_environ'.
4037 * common/environ.c: Include <utility>.
4038 (make_environ): Delete function.
4039 (free_environ): Delete function.
4040 (gdb_environ::clear): New function.
4041 (gdb_environ::operator=): New function.
4042 (gdb_environ::get): Likewise.
4043 (environ_vector): Delete function.
4044 (set_in_environ): Delete function.
4045 (gdb_environ::set): New function.
4046 (unset_in_environ): Delete function.
4047 (gdb_environ::unset): New function.
4048 (gdb_environ::envp): Likewise.
4049 * common/environ.h: Include <vector>.
4050 (struct gdb_environ): Delete; transform into...
4051 (class gdb_environ): ... this class.
4052 (free_environ): Delete prototype.
4053 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
4054 environ_vector): Likewise.
4055 * infcmd.c (run_command_1): Update code to call
4056 'envp' from 'gdb_environ' class.
4057 (environment_info): Update code to call methods from 'gdb_environ'
4058 class.
4059 (unset_environment_command): Likewise.
4060 (path_info): Likewise.
4061 (path_command): Likewise.
4062 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
4063 (inferior::inferior): Initialize 'environment' using the host's
4064 information.
4065 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
4066 Include "environ.h".
4067 (class inferior) <environment>: Change type from 'struct
4068 gdb_environ' to 'gdb_environ'.
4069 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
4070 methods from 'gdb_environ' class.
4071 * solib.c (solib_find_1): Likewise
4072 * unittests/environ-selftests.c: New file.
4073
4074 2017-06-20 Yao Qi <yao.qi@linaro.org>
4075
4076 * features/i386/i386-linux.xml: Exchange the order of including
4077 32bit-linux.xml and 32bit-sse.xml.
4078 * features/i386/i386-linux.c: Regenerated.
4079
4080 2017-06-20 Yao Qi <yao.qi@linaro.org>
4081
4082 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
4083 Delete copy ctor and assignment operator.
4084 (tdesc_type): Likewise.
4085 (tdesc_feature): Likewise.
4086 (tdesc_free_reg): Remove.
4087 (tdesc_create_reg): Use new.
4088 (tdesc_free_type): Remove.
4089 (tdesc_create_vector): Use new.
4090 (tdesc_create_union): Likewise.
4091 (tdesc_create_flags): Likewise.
4092 (tdesc_create_enum): Likewise.
4093 (tdesc_free_feature): Delete.
4094 (free_target_description): Use delete.
4095
4096 2017-06-19 John Baldwin <jhb@FreeBSD.org>
4097
4098 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
4099 registers.
4100
4101 2017-06-19 Pedro Alves <palves@redhat.com>
4102
4103 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
4104 after gdb::unlinker.
4105
4106 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
4107
4108 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
4109 gdb_environ to access an environment variable.
4110
4111 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4112
4113 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
4114 gdb_byte*.
4115
4116 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4117
4118 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
4119
4120 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4121
4122 * configure: Re-generate.
4123 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
4124
4125 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4126
4127 * configure: Re-generate.
4128 * warning.m4: Pass -Werror to compiler when checking for
4129 supported warning flags.
4130
4131 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4132
4133 * Makefile.in (COMPILE.pre): Add "-x c++".
4134
4135 2017-06-16 Alan Hayward <alan.hayward@arm.com>
4136 Pedro Alves <palves@redhat.com>
4137 Yao Qi <yao.qi@linaro.org>
4138
4139 * defs.h (RequireLongest): New.
4140 (extract_integer): Declare function template.
4141 (extract_signed_integer): Remove the declaration, but define it
4142 static inline.
4143 (extract_unsigned_integer): Likewise.
4144 (store_integer): Declare function template.
4145 (store_signed_integer): Remove the declaration, but define it
4146 static inline.
4147 (store_unsigned_integer): Likewise.
4148 * findvar.c (extract_integer): New function template.
4149 (extract_signed_integer): Remove.
4150 (extract_unsigned_integer): Remove.
4151 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
4152 instantiations.
4153 (store_integer): New function template.
4154 (store_signed_integer): Remove.
4155 (store_unsigned_integer): Remove.
4156 (store_integer): Explicit instantiations.
4157 * regcache.c (regcache_raw_read_signed): Update.
4158 (regcache::raw_read): New function.
4159 (regcache::raw_read_signed): Remove.
4160 (regcache::raw_read_unsigned): Remove.
4161 (regcache_raw_read_unsigned): Update.
4162 (regcache_raw_write_unsigned): Update.
4163 (regcache::raw_write_signed): Remove.
4164 (regcache::raw_write): New function.
4165 (regcache_cooked_read_signed): Update.
4166 (regcache::raw_write_unsigned): Remove.
4167 (regcache::cooked_read_signed): Remove.
4168 (regcache_cooked_read_unsigned): Update.
4169 (regcache::cooked_read_unsigned): Remove.
4170 (regcache_cooked_write_signed): Update.
4171 (regcache_cooked_write_unsigned): Update.
4172 * regcache.h (regcache) <raw_read_signed>: Remove.
4173 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
4174 <raw_read, raw_write>: New.
4175 <cooked_read_signed, cooked_write_signed>: Remove.
4176 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
4177 <cooked_read, cooked_write>: New.
4178 * sh64-tdep.c (sh64_pseudo_register_read): Update.
4179 (sh64_pseudo_register_write): Update.
4180
4181 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
4182
4183 * arc-tdep.c (arc_disassembler_options): New variable.
4184 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
4185 of default_print_insn.
4186 (arc_delayed_print_insn): Set info->section when needed,
4187 use default_print_insn to retrieve a disassembler.
4188
4189 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
4190
4191 PR gdb/21574
4192 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
4193 to mention $SHELL and startup-with-shell.
4194
4195 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
4196
4197 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
4198
4199 2017-06-14 Yao Qi <yao.qi@linaro.org>
4200
4201 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
4202 default_print_insn instead of print_insn_aarch64.
4203 * arm-tdep.c (gdb_print_insn_arm): Call
4204 default_print_insn instead of print_insn_big_arm
4205 and print_insn_little_arm.
4206 * i386-tdep.c (i386_print_insn): Call default_print_insn
4207 instead of print_insn_i386.
4208 * ia64-tdep.c (ia64_print_insn): Call
4209 default_print_insn instead of print_insn_ia64.
4210 * mips-tdep.c (gdb_print_insn_mips): Call
4211 default_print_insn instead of print_insn_big_mips
4212 and print_insn_little_mips.
4213 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
4214 instead of print_insn_spu.
4215
4216 2017-06-14 Pedro Alves <palves@redhat.com>
4217
4218 * ada-lang.c: Include "common/byte-vector.h".
4219 (ada_value_primitive_packed_val): Use gdb::byte_vector.
4220 * charset.c (wchar_iterator::iterate): Resize the vector instead
4221 of reserving it.
4222 * common/byte-vector.h: Include "common/def-vector.h".
4223 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
4224 * cli/cli-dump.c: Include "common/byte-vector.h".
4225 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
4226 * common/byte-vector.h: New file.
4227 * common/def-vector.h: New file.
4228 * common/default-init-alloc.h: New file.
4229 * dwarf2loc.c: Include "common/byte-vector.h".
4230 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
4231 instead of reserving it.
4232 * dwarf2read.c: Include "common/byte-vector.h".
4233 (data_buf::m_vec): Now a gdb::byte_vector.
4234 * gdb_regex.c: Include "common/def-vector.h".
4235 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
4236 * mi/mi-main.c: Include "common/byte-vector.h".
4237 (mi_cmd_data_read_memory): Use gdb::byte_vector.
4238 * printcmd.c: Include "common/byte-vector.h".
4239 (print_scalar_formatted): Use gdb::byte_vector.
4240 * valprint.c: Include "common/byte-vector.h".
4241 (maybe_negate_by_bytes, print_decimal_chars): Use
4242 gdb::byte_vector.
4243
4244 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4245
4246 * darwin-nat.c: Include "nat/fork-inferior.h".
4247
4248 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4249
4250 * configure.nat: Factor out Darwin bits that are not
4251 architecture-specific. Add fork-inferior.o.
4252
4253 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
4254
4255 * configure.nat: Factor out AIX bits that are not
4256 architecture-specific. Add fork-inferior.o.
4257
4258 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259
4260 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
4261 (read_pieced_value, write_pieced_value): ...here. Reduce to
4262 wrappers that just call rw_pieced_value.
4263
4264 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4265
4266 * dwarf2loc.c (write_pieced_value): When writing the data for a
4267 memory piece, use write_memory_with_notification instead of
4268 write_memory.
4269
4270 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4271
4272 * valops.c (read_value_memory): Change embedded_offset to
4273 represent a bit offset instead of a byte offset.
4274 * value.h (read_value_memory): Adjust comment.
4275
4276 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4277
4278 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
4279 dest_offset_bits and source_offset_bits.
4280 (write_pieced_value): Likewise.
4281
4282 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4283
4284 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
4285 given by DW_OP_bit_piece.
4286 (write_pieced_value): Likewise.
4287
4288 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4289
4290 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
4291 some other preparations to the places where sufficient information
4292 is available.
4293 (write_pieced_value): Likewise.
4294
4295 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4296
4297 * dwarf2loc.c (bits_to_bytes): New function.
4298 (read_pieced_value): Fix offset calculations for register pieces
4299 on big-endian targets.
4300 (write_pieced_value): Likewise.
4301
4302 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4303
4304 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
4305 (write_pieced_value): Likewise.
4306
4307 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4308
4309 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
4310 transfer the source value's least significant bits, instead of its
4311 lowest-addressed ones. Rename type_len to max_offset.
4312 (read_pieced_value): Mirror above changes to write_pieced_value as
4313 applicable.
4314
4315 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4316
4317 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
4318 truncate full bytes from dest_offset_bits before using it as an
4319 offset into the buffer.
4320
4321 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4322
4323 * dwarf2loc.c (write_pieced_value): Include transfer size in
4324 byte-wise check.
4325
4326 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4327
4328 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
4329 calculation of this_size.
4330
4331 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4332
4333 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
4334 when targeting a bit-field.
4335 (write_pieced_value): Likewise.
4336
4337 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4338
4339 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
4340 (allocate_piece_closure): Drop addr_size parameter.
4341 (dwarf2_evaluate_loc_desc_full): Adjust call to
4342 allocate_piece_closure.
4343
4344 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4345
4346 PR gdb/21226
4347 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
4348 the LSB end, independent of endianness.
4349
4350 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4351
4352 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
4353 size capping.
4354
4355 2017-06-13 Yao Qi <yao.qi@linaro.org>
4356
4357 * mips-linux-nat.c: Move include features/mips*-linux.c to
4358 mips-linux-tdep.c.
4359 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
4360 to mips-linux-tdep.c.
4361 * mips-linux-tdep.c: Include features/mips*-linux.c
4362 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
4363 functions.
4364 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
4365 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
4366 (tdesc_mips64_dsp_linux): Declare.
4367
4368 2017-06-12 Tom Tromey <tom@tromey.com>
4369
4370 * valprint.h (val_print_type_code_int): Remove.
4371 * valprint.c (generic_val_print_int): Always call
4372 val_print_scalar_formatted.
4373 (val_print_type_code_int): Remove.
4374 * printcmd.c (print_scalar_formatted): Handle options->format==0.
4375 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
4376 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
4377 * ada-valprint.c (ada_val_print_num): Use
4378 val_print_scalar_formatted.
4379
4380 2017-06-12 Tom Tromey <tom@tromey.com>
4381
4382 * printcmd.c (print_scalar_formatted): Unify the two switches.
4383 Don't convert scalars to LONGEST.
4384
4385 2017-06-12 Tom Tromey <tom@tromey.com>
4386
4387 PR exp/16225:
4388 * valprint.h (print_decimal_chars): Update.
4389 * valprint.c (maybe_negate_by_bytes): New function.
4390 (print_decimal_chars): Add "is_signed" argument.
4391 * printcmd.c (print_scalar_formatted): Update.
4392
4393 2017-06-12 Tom Tromey <tom@tromey.com>
4394
4395 PR exp/16225:
4396 * valprint.h (print_binary_chars, print_hex_chars): Update.
4397 * valprint.c (val_print_type_code_int): Update.
4398 (print_binary_chars): Add "zero_pad" argument.
4399 (emit_octal_digit): New function.
4400 (print_octal_chars): Don't zero-pad.
4401 (print_decimal_chars): Likewise.
4402 (print_hex_chars): Add "zero_pad" argument.
4403 * sh64-tdep.c (sh64_do_fp_register): Update.
4404 * regcache.c (regcache::dump): Update.
4405 * printcmd.c (print_scalar_formatted): Update.
4406 * infcmd.c (default_print_one_register_info): Update.
4407
4408 2017-06-12 Pedro Alves <palves@redhat.com>
4409 Alan Hayward <alan.hayward@arm.com>
4410
4411 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
4412 (mips_eabi_push_dummy_call): Rename local 'regsize' to
4413 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
4414 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
4415 Assert that abi_regsize bytes fit in 'ref_valbuf'.
4416
4417 2017-06-12 Pedro Alves <palves@redhat.com>
4418
4419 * dwarf2read.c (mapped_symtab::data): Now a vector of
4420 symtab_index_entry instead of vector of
4421 std::unique_ptr<symtab_index_entry>. All users adjusted to check
4422 whether an element's name is NULL instead of checking whether the
4423 element itself is NULL.
4424 (find_slot): Change return type. Adjust.
4425 (hash_expand, , add_index_entry, uniquify_cu_indices)
4426 (write_hash_table): Adjust.
4427
4428 2017-06-12 Pedro Alves <palves@redhat.com>
4429
4430 * dwarf2read.c (recursively_count_psymbols): New function.
4431 (write_psymtabs_to_index): Call it to compute number of psyms and
4432 pass estimate size of psyms_seen to unordered_set's ctor.
4433
4434 2017-06-12 Pedro Alves <palves@redhat.com>
4435
4436 * dwarf2read.c (write_hash_table): Check if key already exists
4437 before emplacing.
4438
4439 2017-06-12 Pedro Alves <palves@redhat.com>
4440
4441 * dwarf2read.c (data_buf::append_space): Rename to...
4442 (data_buf::grow): ... this, and make private. Adjust all callers.
4443 (data_buf::append_uint): New method.
4444 (add_address_entry, write_one_signatured_type)
4445 (write_psymtabs_to_index): Use it.
4446
4447 2017-06-12 Pedro Alves <palves@redhat.com>
4448
4449 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
4450 (file_write (FILE *, const std::vector<Elem>&)): Delete.
4451 (data_buf::file_write): Call ::fwrite directly.
4452
4453 2017-06-12 Pedro Alves <palves@redhat.com>
4454
4455 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
4456 std::vector::erase.
4457
4458 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4459
4460 Code cleanup: C++ify .gdb_index producer.
4461 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
4462 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
4463 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
4464 (create_strtab, add_string): Remove.
4465 (file_write, data_buf): New.
4466 (struct symtab_index_entry): Use std::vector for cu_indices.
4467 (struct mapped_symtab): Use std::vector for data.
4468 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
4469 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
4470 Remove.
4471 (find_slot): Change return type. Update it to the new data structures.
4472 (hash_expand, add_index_entry): Update it to the new data structures.
4473 (offset_type_compare): Remove.
4474 (uniquify_cu_indices): Update it to the new data structures.
4475 (c_str_view, c_str_view_hasher, vector_hasher): New.
4476 (add_indices_to_cpool): Remove.
4477 (write_hash_table): Update it to the new data structures.
4478 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
4479 (eq_psymtab_cu_index): Remove.
4480 (psym_index_map): New typedef.
4481 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
4482 reference and std::unordered_map for cu_index_htab.
4483 (add_address_entry, add_address_entry_worker, write_address_map)
4484 (write_psymbols): Update it to the new data structures.
4485 (write_obstack): Remove.
4486 (struct signatured_type_index_data): Change types_list to a data_buf
4487 reference and psyms_seen to a std::unordered_set reference.
4488 (write_one_signatured_type, recursively_write_psymbols)
4489 (write_psymtabs_to_index): Update it to the new data structures.
4490
4491 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
4492
4493 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
4494 separate-debug-file commands.
4495 * symfile.h (separate_debug_file_debug): New global.
4496 * symfile.c (separate_debug_file_debug): New global.
4497 (separate_debug_file_exists, find_separate_debug_file): Add
4498 debug output.
4499 (_initialize_symfile): Add "set debug separate-debug-file"
4500 command.
4501 * build-id.c (build_id_to_debug_bfd,
4502 find_separate_debug_file_by_buildid): Add debug output.
4503
4504 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4505
4506 * gdbarch.sh (displaced_step_free_closure): Remove.
4507 * gdbarch.h, gdbarch.c: Re-generate.
4508 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
4509 displaced_step_free_closure.
4510 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4511 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4512 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4513 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
4514 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4515 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4516 * arch-utils.h (simple_displaced_step_free_closure): Remove.
4517 * arch-utils.c (simple_displaced_step_free_closure): Remove.
4518 * infrun.c (displaced_step_clear): Call xfree instead of
4519 gdbarch_displaced_step_free_closure.
4520
4521 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
4522
4523 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
4524 NULL".
4525
4526 2017-06-08 Alan Hayward <alan.hayward@arm.com>
4527
4528 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
4529 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
4530 (mn10300_push_dummy_call): Likewise.
4531
4532 2017-06-08 Alan Hayward <alan.hayward@arm.com>
4533
4534 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
4535
4536 2017-06-08 Alan Hayward <alan.hayward@arm.com>
4537
4538 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
4539
4540 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4541
4542 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
4543 able to start inferiors using a shell.
4544 (New remote packets): Announce new packet "QStartupWithShell".
4545 * remote.c: Add PACKET_QStartupWithShell.
4546 (extended_remote_create_inferior): Handle new
4547 PACKET_QStartupWithShell.
4548 (remote_protocol_features) <QStartupWithShell>: New entry for
4549 PACKET_QStartupWithShell.
4550 (_initialize_remote): Call "add_packet_config_cmd" for
4551 QStartupShell.
4552
4553 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4554 Pedro Alves <palves@redhat.com>
4555
4556 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
4557 and "nat/fork-inferior.h".
4558 * common/common-inferior.h: New file, with contents from
4559 "gdb/inferior.h".
4560 * commom/common-utils.c: Include "common-utils.h".
4561 (stringify_argv): New function.
4562 * common/common-utils.h (stringify_argv): New prototype.
4563 * configure.nat: Add "fork-inferior.o" as a dependency for
4564 "*linux*", "fbsd*" and "nbsd*" hosts.
4565 * corefile.c (get_exec_file): Update comment.
4566 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
4567 instead of "startup_inferior".
4568 (darwin_create_inferior): Call "add_thread_silent" after
4569 "fork_inferior".
4570 * fork-child.c: Cleanup unnecessary includes.
4571 (SHELL_FILE): Move to "common/common-fork-child.c".
4572 (environ): Likewise.
4573 (exec_wrapper): Initialize.
4574 (get_exec_wrapper): New function.
4575 (breakup_args): Move to "common/common-fork-child.c"; rename to
4576 "breakup_args_for_exec".
4577 (escape_bang_in_quoted_argument): Move to
4578 "common/common-fork-child.c".
4579 (saved_ui): New variable.
4580 (prefork_hook): New function.
4581 (postfork_hook): Likewise.
4582 (postfork_child_hook): Likewise.
4583 (gdb_startup_inferior): Likewise.
4584 (fork_inferior): Move to "common/common-fork-child.c". Update
4585 function to support gdbserver.
4586 (startup_inferior): Likewise.
4587 * gdbcore.h (get_exec_file): Remove declaration.
4588 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
4589 instead of "startup_inferior". Call "add_thread_silent" after
4590 "fork_inferior".
4591 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
4592 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
4593 instead of "startup_inferior". Call "add_thread_silent" after
4594 "fork_inferior".
4595 * inferior.h: Include "common-inferior.h".
4596 (trace_start_error): Move to "common/common-utils.h".
4597 (trace_start_error_with_name): Likewise.
4598 (fork_inferior): Move prototype to "nat/fork-inferior.h".
4599 (startup_inferior): Likewise.
4600 (gdb_startup_inferior): New prototype.
4601 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
4602 * nat/fork-inferior.h: New file.
4603 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
4604 instead of "startup_inferior". Call "add_thread_silent" after
4605 "fork_inferior".
4606 * target.h (target_terminal_init): Move prototype to
4607 "target/target.h".
4608 (target_terminal_inferior): Likewise.
4609 (target_terminal_ours): Likewise.
4610 * target/target.h (target_terminal_init): New prototype, moved
4611 from "target.h".
4612 (target_terminal_inferior): Likewise.
4613 (target_terminal_ours): Likewise.
4614 * utils.c (gdb_flush_out_err): New function.
4615
4616 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4617
4618 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
4619 * common/common-gdbthread.h: New file, with parts from
4620 "gdb/gdbthread.h".
4621 * gdbthread.h: Include "common-gdbthread.h".
4622 (switch_to_thread): Moved to "common/common-gdbthread.h".
4623
4624 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4625
4626 * Makefile.in (SFILES): Add "common/job-control.c".
4627 (HFILES_NO_SRCDIR): Add "common/job-control.h".
4628 (COMMON_OBS): Add "job-control.o".
4629 * common/job-control.c: New file, with contents from
4630 "gdb/inflow.c".
4631 * common/job-control.h: New file, with contents from "terminal.h".
4632 * fork-child.c: Include "job-control.h".
4633 * inflow.c: Include "job-control.h".
4634 (gdb_setpgid): Move to "common/common-inflow.c".
4635 (_initialize_inflow): Move setting of "job_control" to
4636 "handle_job_control".
4637 * terminal.h (job_control): Moved to "common/common-terminal.h".
4638 (gdb_setpgid): Likewise.
4639 * top.c: Include "job_control.h".
4640 * utils.c: Likewise.
4641 (job_control): Moved to "job-control.c".
4642
4643 2017-06-07 Pedro Alves <palves@redhat.com>
4644
4645 * Makefile.in (SFILES): Add gdb_regex.c.
4646 (COMMON_OBS): Add gdb_regex.o.
4647 * ada-lang.c (ada_add_standard_exceptions)
4648 (ada_add_exceptions_from_frame, name_matches_regex)
4649 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
4650 parameter type to compiled_regex. Adjust.
4651 (ada_exceptions_list): Use compiled_regex.
4652 * break-catch-throw.c (exception_catchpoint::pattern): Now a
4653 std::unique_ptr<compiled_regex>.
4654 (exception_catchpoint::~exception_catchpoint): Remove regfree
4655 call.
4656 (check_status_exception_catchpoint): Adjust to use compiled_regex.
4657 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
4658 * breakpoint.c (solib_catchpoint::compiled): Now a
4659 std::unique_ptr<compiled_regex>.
4660 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
4661 (check_status_catch_solib): Adjust to use compiled_regex.
4662 (add_solib_catchpoint): Adjust to use compiled_regex.
4663 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
4664 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
4665 compiled_regex reference. Adjust to use it.
4666 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
4667 declaration. Include "gdb_regex.h".
4668 (apropos_cmd): Change regex parameter to compiled_regex reference.
4669 * gdb_regex.c: New file.
4670 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
4671 declarations.
4672 (class compiled_regex): New.
4673 * linux-tdep.c: Include "common/gdb_optional.h".
4674 (struct mapping_regexes): New, factored out from
4675 mapping_is_anonymous_p, and adjusted to use compiled_regex.
4676 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
4677 gdb::optional and remove cleanups. Adjust to compiled_regex.
4678 * probe.c: Include "common/gdb_optional.h".
4679 (collect_probes): Use compiled_regex and gdb::optional and remove
4680 cleanups.
4681 * skip.c: Include "common/gdb_optional.h".
4682 (skiplist_entry::compiled_function_regexp): Now a
4683 gdb::optional<compiled_regex>.
4684 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
4685 (free_skiplist_entry): Remove regfree call.
4686 (compile_skip_regexp, skip_rfunction_p): Adjust to use
4687 compiled_regex and gdb::optional.
4688 * symtab.c: Include "common/gdb_optional.h".
4689 (search_symbols): Use compiled_regex and gdb::optional.
4690 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
4691 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
4692 to gdb_regex.c.
4693
4694 2017-06-07 Alan Hayward <alan.hayward@arm.com>
4695
4696 * regcache.c (regcache::save): Avoid buffer use.
4697 (regcache::dump): Likewise.
4698
4699 2017-06-07 Alan Hayward <alan.hayward@arm.com>
4700
4701 * sh-tdep.c (sh_pseudo_register_read): Remove
4702 MAX_REGISTER_SIZE.
4703 (sh_pseudo_register_write): Likewise.
4704 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
4705 (sh64_pseudo_register_write): Likewise
4706
4707 2017-06-07 Alan Hayward <alan.hayward@arm.com>
4708
4709 * aarch64-tdep.c (aarch64_store_return_value): Use
4710 V_REGISTER_SIZE.
4711 (aarch64_pseudo_read_value): Likewise.
4712 (aarch64_pseudo_write): Likewise.
4713
4714 2017-06-06 Yao Qi <yao.qi@linaro.org>
4715
4716 * regformats/regdef.h (set_register_cache): Remove the
4717 declaration.
4718
4719 2017-06-06 Alan Hayward <alan.hayward@arm.com>
4720
4721 * frame.c (frame_unwind_register_signed): Use
4722 frame_unwind_register_value.
4723
4724 2017-06-06 Pedro Alves <palves@redhat.com>
4725
4726 PR breakpoints/21553
4727 * breakpoint.c (create_breakpoints_sal_default)
4728 (init_breakpoint_sal, create_breakpoint_sal): Use
4729 gdb::unique_xmalloc_ptr for string parameters.
4730 (create_breakpoint): Constify 'extra_string' and 'cond_string'
4731 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
4732 (base_breakpoint_create_breakpoints_sal)
4733 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
4734 (strace_marker_create_breakpoints_sal)
4735 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
4736 string parameters.
4737 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
4738 gdb::unique_xmalloc_ptr for string parameters.
4739 (create_breakpoint): Constify 'extra_string' and 'cond_string'
4740 parameters.
4741
4742 2017-06-06 Alan Hayward <alan.hayward@arm.com>
4743
4744 * alpha-tdep.c (alpha_register_to_value): Use
4745 get_frame_register_value.
4746 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
4747
4748 2017-06-06 Alan Hayward <alan.hayward@arm.com>
4749
4750 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
4751 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
4752 (ia64_value_to_register): Likewise.
4753 (ia64_extract_return_value): Likewise.
4754 (ia64_store_return_value): Likewise.
4755 (ia64_push_dummy_call): Likewise.
4756
4757 2017-06-04 Joel Brobecker <brobecker@adacore.com>
4758
4759 GDB 8.0 released.
4760
4761 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
4762
4763 * x86-linux-nat.c (struct arch_lwp_info): Remove.
4764
4765 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
4768 parameter.
4769 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
4770
4771 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
4772
4773 * event-loop.c (poll_timers): Unallocate timer using delete
4774 instead of xfree.
4775
4776 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
4777
4778 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
4779 (struct breakpoint) <~breakpoint>: New.
4780 (struct watchpoint): Inherit from breakpoint.
4781 <~watchpoint>: New.
4782 <base>: Remove.
4783 (struct tracepoint): Inherit from breakpoint.
4784 <base>: Remove.
4785 * breakpoint.c (longjmp_breakpoint_ops): Remove.
4786 (struct longjmp_breakpoint): Inherit from breakpoint.
4787 <~longjmp_breakpoint>: New.
4788 <base>: Remove.
4789 (new_breakpoint_from_type): Remove casts.
4790 (watchpoint_in_thread_scope): Remove reference to base field.
4791 (watchpoint_del_at_next_stop): Likewise.
4792 (update_watchpoint): Likewise.
4793 (watchpoint_check): Likewise.
4794 (bpstat_check_watchpoint): Likewise.
4795 (set_longjmp_breakpoint): Likewise.
4796 (struct fork_catchpoint): Inherit from breakpoint.
4797 <base>: Remove.
4798 (struct solib_catchpoint): Inherit from breakpoint.
4799 <~solib_catchpoint>: New.
4800 <base>: Remove.
4801 (dtor_catch_solib): Change to ...
4802 (solib_catchpoint::~solib_catchpoint): ... this.
4803 (breakpoint_hit_catch_solib): Remove reference to base field.
4804 (add_solib_catchpoint): Likewise.
4805 (create_fork_vfork_event_catchpoint): Likewise.
4806 (struct exec_catchpoint): Inherit from breakpoint.
4807 <~exec_catchpoint>: New.
4808 <base>: Remove.
4809 (dtor_catch_exec): Change to ...
4810 (exec_catchpoint::~exec_catchpoint): ... this.
4811 (dtor_watchpoint): Change to ...
4812 (watchpoint::~watchpoint): ... this.
4813 (watch_command_1): Remove reference to base field.
4814 (catch_exec_command_1): Likewise.
4815 (base_breakpoint_dtor): Change to ...
4816 (breakpoint::~breakpoint): ... this.
4817 (base_breakpoint_ops): Remove dtor field value.
4818 (longjmp_bkpt_dtor): Change to ...
4819 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
4820 (strace_marker_create_breakpoints_sal): Remove reference to base
4821 field.
4822 (delete_breakpoint): Don't manually call breakpoint destructor.
4823 (create_tracepoint_from_upload): Remove reference to base field.
4824 (trace_pass_set_count): Likewise.
4825 (initialize_breakpoint_ops): Don't initialize
4826 momentary_breakpoint_ops, don't set dtors.
4827 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
4828 <~ada_catchpoint>: New.
4829 <base>: Remove.
4830 (create_excep_cond_exprs): Remove reference to base field.
4831 (dtor_exception): Change to ...
4832 (ada_catchpoint::~ada_catchpoint): ... this.
4833 (dtor_catch_exception): Remove.
4834 (dtor_catch_exception_unhandled): Remove.
4835 (dtor_catch_assert): Remove.
4836 (create_ada_exception_catchpoint): Remove reference to base
4837 field.
4838 (initialize_ada_catchpoint_ops): Don't set dtors.
4839 * break-catch-sig.c (struct signal_catchpoint): Inherit from
4840 breakpoint.
4841 <~signal_catchpoint>: New.
4842 <base>: Remove.
4843 (signal_catchpoint_dtor): Change to ...
4844 (signal_catchpoint::~signal_catchpoint): ... this.
4845 (create_signal_catchpoint): Remove reference to base field.
4846 (initialize_signal_catchpoint_ops): Don't set dtor.
4847 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
4848 from breakpoint.
4849 <~syscall_catchpoint>: New.
4850 <base>: Remove.
4851 (dtor_catch_syscall): Change to ...
4852 (syscall_catchpoint::~syscall_catchpoint): ... this.
4853 (create_syscall_event_catchpoint): Remove reference to base
4854 field.
4855 (initialize_syscall_catchpoint_ops): Don't set dtor.
4856 * break-catch-throw.c (struct exception_catchpoint): Inherit
4857 from breakpoint.
4858 <~exception_catchpoint>: New.
4859 <base>: Remove.
4860 (dtor_exception_catchpoint): Change to ...
4861 (exception_catchpoint::~exception_catchpoint): ... this.
4862 (handle_gnu_v3_exceptions): Remove reference to base field.
4863 (initialize_throw_catchpoint_ops): Don't set dtor.
4864 * ctf.c (ctf_get_traceframe_address): Remove reference to base
4865 field.
4866 * remote.c (remote_get_tracepoint_status): Likewise.
4867 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
4868 * tracefile.c (tracefile_fetch_registers): Likewise.
4869 * tracepoint.c (actions_command): Likewise.
4870 (validate_actionline): Likewise.
4871 (tfind_1): Likewise.
4872 (get_traceframe_location): Likewise.
4873 (find_matching_tracepoint_location): Likewise.
4874 (parse_tracepoint_status): Likewise.
4875 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
4876
4877 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
4878
4879 * breakpoint.c (struct longjmp_breakpoint): New struct.
4880 (is_tracepoint_type): Change return type to bool.
4881 (is_longjmp_type): New function.
4882 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
4883 (set_raw_breakpoint_without_location): Use
4884 new_breakpoint_from_type.
4885 (set_raw_breakpoint): Likewise.
4886
4887 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
4888
4889 * breakpoint.c (new_breakpoint_from_type): New function.
4890 (create_breakpoint_sal): Use new_breakpoint_from_type and
4891 unique_ptr.
4892 (create_breakpoint): Likewise.
4893
4894 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
4895
4896 * memattr.c (mem_info_command): Rename to ...
4897 (info_mem_command): ... this.
4898 (mem_enable_command): Rename to ...
4899 (enable_mem_command): ... this.
4900 (mem_disable_command): Rename to ...
4901 (disable_mem_command): ... this.
4902 (mem_delete_command): Rename to ...
4903 (delete_mem_command): ... this.
4904 (_initialize_mem): Adjust function names.
4905
4906 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
4907
4908 * btrace.c (handle_pt_insn_events): New.
4909 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
4910 STATUS. Split into this and ...
4911 (handle_pt_insn_event_flags): ... this.
4912
4913 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
4914
4915 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
4916 and struct pt_insn.resynced.
4917 * configure: Regenerated.
4918 * config.in: Regenerated.
4919
4920 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
4921
4922 * btrace.c (ftrace_find_call_by_number): New function.
4923 (ftrace_new_function): Store objects, not pointers.
4924 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
4925 ftrace_new_gap, ftrace_update_function,
4926 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
4927 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
4928 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
4929 btrace_ends_with_single_insn, btrace_call_get): Account for
4930 btrace_thread_info::functions now storing objects.
4931 * btrace.h (struct btrace_thread_info): Add constructor.
4932 (struct btrace_thread_info) <functions>: Make std::vector.
4933 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
4934 Initialize with default values.
4935 * record-btrace.c (record_btrace_frame_sniffer): Account for
4936 btrace_thread_info::functions now storing objects.
4937
4938 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
4939
4940 * btrace.c: Remove typedef bfun_s.
4941 (ftrace_new_gap): Directly add gaps to the list of gaps.
4942 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
4943 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
4944 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
4945 instead of gdb VEC.
4946
4947 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
4948
4949 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
4950 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
4951 with btrace_thread_info::next_segment and
4952 btrace_thread_info::prev_segment.
4953 * btrace.h: Remove struct btrace_func_link.
4954 (struct btrace_function): Replace pair of function segment pointers
4955 with pair of indices.
4956 * python/py-record-btrace.c (btpy_call_prev_sibling,
4957 btpy_call_next_sibling): Replace references to
4958 btrace_thread_info::segment with btrace_thread_info::next_segment and
4959 btrace_thread_info::prev_segment.
4960 * record-btrace.c (record_btrace_frame_this_id): Use
4961 btrace_find_call_by_number.
4962
4963 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
4964
4965 * btrace.c (ftrace_new_function, ftrace_fixup_level,
4966 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
4967 btrace_insn_next, btrace_insn_prev): Remove references to
4968 btrace_thread_info::flow.
4969 * btrace.h (struct btrace_function): Remove FLOW.
4970
4971 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
4972
4973 * btrace.c (ftrace_find_call_by_number): New function.
4974 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
4975 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
4976 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
4977 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
4978 index.
4979 * btrace.h (struct btrace_function): Turn UP into an index.
4980 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
4981 as an index.
4982 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
4983 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
4984 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
4985
4986 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
4987
4988 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
4989 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
4990 ftrace_update_function, ftrace_compute_global_level_offset,
4991 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
4992 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
4993 btrace_insn_end, btrace_is_empty): Remove references to
4994 btrace_thread_info::begin and btrace_thread_info::end.
4995 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
4996 (struct btrace_thread_info) <functions>: Adjust comment.
4997 * record-btrace.c (record_btrace_start_replaying): Remove reference to
4998 btrace_thread_info::begin.
4999
5000 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5001
5002 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5003 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5004 ftrace_update_function): Remove arguments that implicitly were always
5005 BTINFO->END.
5006 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5007 Don't pass BTINFO->END.
5008
5009 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5010
5011 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5012 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5013 btrace_find_insn_by_number): Replace function segment pointer with
5014 index.
5015 (btrace_insn_cmp): Simplify.
5016 * btrace.h: (struct btrace_insn_iterator) Rename index to
5017 insn_index. Replace function segment pointer with index into function
5018 segment vector.
5019 * record-btrace.c (record_btrace_call_history): Replace function
5020 segment pointer use with index.
5021 (record_btrace_frame_sniffer): Retrieve function call segment through
5022 vector.
5023 (record_btrace_set_replay): Remove defunc't safety check.
5024
5025 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5026
5027 * btrace.c (btrace_ends_with_single_insn): New function.
5028 (btrace_call_get, btrace_call_number, btrace_call_begin,
5029 btrace_call_end, btrace_call_next, btrace_call_prev,
5030 btrace_find_call_by_number): Use index into call segment vector
5031 instead of pointer.
5032 (btrace_call_cmp): Simplify.
5033 * btrace.h (struct btrace_call_iterator): Replace function call segment
5034 pointer with index into vector.
5035 * record-btrace.c (record_btrace_call_history): Use index instead of
5036 pointer.
5037
5038 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5039
5040 * btrace.c (btrace_insn_begin, btrace_insn_end,
5041 btrace_find_insn_by_number): Add btinfo to iterator.
5042 * btrace.h (struct btrace_insn_iterator): Add btinfo.
5043
5044 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5045
5046 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
5047 and save pointers directly.
5048 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
5049 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
5050 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
5051 changed signature of functions.
5052 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
5053 (btrace_fetch): Remove code that adds btrace_function pointers to
5054 vector of btrace_functions.
5055 (btrace_clear): Simplify freeing vector of btrace_functions.
5056
5057 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5058
5059 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
5060 Replace VEC_* with std::vector functions.
5061 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
5062 (struct btrace_thread_info)<functions>: Change type to std::vector.
5063
5064 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
5065
5066 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
5067 "Removed targets and native configurations" up. Merge duplicate
5068 "New commands" sub-sections. Add "New options" sub-sections.
5069
5070 2017-05-26 Alan Hayward <alan.hayward@arm.com>
5071
5072 * defs.h (copy_integer_to_size): New declaration.
5073 * findvar.c (copy_integer_to_size): New function.
5074 (do_cint_test): New selftest function.
5075 (copy_integer_to_size_test): Likewise.
5076 (_initialize_findvar): Likewise.
5077 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
5078 (mips_fbsd_collect_reg): Use raw_collect_integer.
5079 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
5080 (mips64_fill_gregset): Use raw_collect_integer
5081 (mips64_fill_fpregset): Use raw_supply_integer.
5082 * regcache.c (regcache::raw_supply_integer): New function.
5083 (regcache::raw_collect_integer): Likewise.
5084 * regcache.h: (regcache::raw_supply_integer): New declaration.
5085 (regcache::raw_collect_integer): Likewise.
5086
5087 2017-05-24 Yao Qi <yao.qi@linaro.org>
5088
5089 * Makefile.in (SFILES): Add gdbarch-selftests.c.
5090 (COMMON_OBS): Add gdbarch-selftests.o.
5091 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
5092 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
5093 * gdbarch-selftests.c: New file.
5094 * regcache.h (regcache) <~regcache>: Mark it virtual if
5095 GDB_SELF_TEST.
5096 <raw_write>: Likewise.
5097
5098 2017-05-24 Yao Qi <yao.qi@linaro.org>
5099
5100 * regcache.c (current_regcache): Change it to
5101 regcache::current_regcache.
5102 (regcache_observer_target_changed): Update.
5103 (regcache_thread_ptid_changed): Make it a regcache static
5104 method.
5105 (regcache_thread_ptid_changed): Update.
5106 (class regcache_access): New.
5107 (current_regcache_test): Update.
5108 (_initialize_regcache): Update.
5109 * regcache.h: Include forward_list.
5110 (regcache): Declare regcache_thread_ptid_changed and declare
5111 registers_changed_ptid as friend.
5112
5113 2017-05-24 Yao Qi <yao.qi@linaro.org>
5114
5115 * i387-tdep.c (i387_register_to_value): Use register_size
5116 instead of TYPE_LENGTH.
5117 * m68k-tdep.c (m68k_register_to_value): Likewise.
5118
5119 2017-05-24 Yao Qi <yao.qi@linaro.org>
5120
5121 * i387-tdep.c (i387_convert_register_p): Return false if type
5122 code isn't TYPE_CODE_FLT.
5123
5124 2017-05-24 Yao Qi <yao.qi@linaro.org>
5125
5126 * alpha-tdep.c (alpha_convert_register_p): Return true if type
5127 length is 4.
5128 (alpha_register_to_value): Remove type length check.
5129 (alpha_value_to_register): Likewise.
5130
5131 2017-05-24 Yao Qi <yao.qi@linaro.org>
5132
5133 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
5134 TYPE_CODE_FLT.
5135
5136 2017-05-24 Yao Qi <yao.qi@linaro.org>
5137
5138 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
5139 TYPE_CODE_FLT or not.
5140
5141 2017-05-24 Yao Qi <yao.qi@linaro.org>
5142
5143 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
5144 * avr-tdep.c (avr_gdbarch_init): Likewise.
5145 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5146 * cris-tdep.c (cris_gdbarch_init): Likewise.
5147 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5148 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5149 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5151 * mep-tdep.c (mep_gdbarch_init): Likewise.
5152 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5153 * mips-tdep.c (mips_gdbarch_init): Likewise.
5154 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5155 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5156 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5157 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5158 * v850-tdep.c (v850_gdbarch_init): Likewise.
5159
5160 2017-05-24 Yao Qi <yao.qi@linaro.org>
5161
5162 * selftest-arch.c (tests_with_arch): Call registers_changed
5163 and reinit_frame_cache.
5164 * selftest.c (run_self_tests): Likewise.
5165
5166 2017-05-24 Yao Qi <yao.qi@linaro.org>
5167
5168 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
5169 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
5170
5171 2017-05-24 Yao Qi <yao.qi@linaro.org>
5172
5173 * rl78-tdep.c (rl78_gdbarch_init): Don't call
5174 set_gdbarch_print_insn.
5175
5176 2017-05-24 Yao Qi <yao.qi@linaro.org>
5177
5178 * h8300-tdep.c (h8300_gdbarch_init): Don't call
5179 set_gdbarch_print_insn.
5180
5181 2017-05-24 Yao Qi <yao.qi@linaro.org>
5182
5183 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5184 set_gdbarch_print_insn.
5185 * arc-tdep.c (arc_gdbarch_init): Likewise.
5186 * arch-utils.c: include dis-asm.h.
5187 (default_print_insn): New function.
5188 * arch-utils.h (default_print_insn): Declare.
5189 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
5190 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5191 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
5192 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
5193 * frv-tdep.c (frv_gdbarch_init): Likewise.
5194 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5195 * gdbarch.sh (print_insn): Use default_print_insn.
5196 * gdbarch.c: Regenerated.
5197 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5198 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
5199 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5200 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
5201 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5202 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
5203 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
5204 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5205 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
5206 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5207 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5208 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5209 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
5210 * mt-tdep.c (mt_gdbarch_init): Likewise.
5211 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5212 * nios2-tdep.c (nios2_print_insn): Remove.
5213 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
5214 * rx-tdep.c (rx_gdbarch_init): Likewise.
5215 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5216 * score-tdep.c (score_print_insn): Remove.
5217 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
5218 * sh-tdep.c (sh_gdbarch_init): Likewise.
5219 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5220 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5221 * tic6x-tdep.c (tic6x_print_insn): Remove.
5222 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
5223 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
5224 * v850-tdep.c (v850_gdbarch_init): Likewise.
5225 * vax-tdep.c (vax_gdbarch_init): Likewise.
5226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5227 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
5228
5229 2017-05-23 John Baldwin <jhb@FreeBSD.org>
5230
5231 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
5232 (MIPS_FP0_REGNUM): Remove.
5233 (MIPS_FSR_REGNUM): Remove.
5234 (mips_fbsd_supply_fpregs): Use mips_regnum.
5235 (mips_fbsd_supply_gregs): Likewise.
5236 (mips_fbsd_collect_fpregs): Likewise.
5237 (mips_fbsd_collect_gregs): Likewise.
5238
5239 2017-05-23 John Baldwin <jhb@FreeBSD.org>
5240
5241 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
5242 (getpfpregs_supplies): New function.
5243 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
5244 getfpregs_supplies.
5245 (mips_fbsd_store_inferior_registers): Likewise.
5246
5247 2017-05-22 Pedro Alves <palves@redhat.com>
5248
5249 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
5250 maintainer.
5251
5252 2017-05-22 Alan Hayward <alan.hayward@arm.com>
5253
5254 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
5255 (store_register): Likewise.
5256 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
5257 (get_decimal_float_return_value): Likewise.
5258 (do_ppc_sysv_return_value): Likewise.
5259 (ppc64_sysv_abi_push_integer): Likewise.
5260 (ppc64_sysv_abi_push_freg): Likewise.
5261 (ppc64_sysv_abi_return_value_base): Likewise.
5262 (ppc64_sysv_abi_return_value): Likewise.
5263 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5264 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5265 * rs6000-nat.c: Likewise.
5266 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
5267 (rs6000_value_to_register): Likewise.
5268 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
5269
5270 2017-05-21 Tom Tromey <tom@tromey.com>
5271
5272 PR rust/21466:
5273 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
5274 arrays as "[T]", not "[T; ]".
5275
5276 2017-05-19 Tom Tromey <tom@tromey.com>
5277
5278 PR rust/21484:
5279 * rust-lang.c (exp_descriptor_rust): New function.
5280 (rust_language_defn): Use it.
5281 * p-lang.c (pascal_language_defn): Update.
5282 * opencl-lang.c (opencl_language_defn): Update.
5283 * objc-lang.c (objc_language_defn): Update.
5284 * m2-lang.c (m2_language_defn): Update.
5285 * language.h (struct language_defn)
5286 <la_watch_location_expression>: New member.
5287 * language.c (unknown_language_defn, auto_language_defn)
5288 (local_language_defn): Update.
5289 * go-lang.c (go_language_defn): Update.
5290 * f-lang.c (f_language_defn): Update.
5291 * d-lang.c (d_language_defn): Update.
5292 * c-lang.h (c_watch_location_expression): Declare.
5293 * c-lang.c (c_watch_location_expression): New function.
5294 (c_language_defn, cplus_language_defn, asm_language_defn)
5295 (minimal_language_defn): Use it.
5296 * breakpoint.c (watch_command_1): Call
5297 la_watch_location_expression.
5298 * ada-lang.c (ada_language_defn): Update.
5299
5300 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5301
5302 PR tui/21482
5303 * gdb_curses.h (NOMACROS): Define.
5304 (NCURSES_NOMACROS): Define.
5305
5306 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5307
5308 PR tui/21482
5309 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
5310 arg to char *.
5311 * tui/tui-wingeneral.c (box_win): Likewise.
5312 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
5313 (tui_show_source_line): Likewise.
5314 (tui_show_exec_info_content): Likewise.
5315
5316 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
5317
5318 * sparc-tdep.c (sparc_structure_return_p)
5319 (sparc_arg_on_registers_p): New functions.
5320 (sparc32_store_arguments): Use them.
5321 * sparc64-tdep.c (sparc64_16_byte_align_p)
5322 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
5323 Handle TYPE_CODE_ARRAY.
5324
5325 2017-05-17 Yao Qi <yao.qi@linaro.org>
5326
5327 * cli/cli-decode.c (add_alias_cmd): New function.
5328 * command.h (add_alias_cmd): Declare.
5329 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
5330 instead call add_alias_cmd.
5331
5332 2017-05-17 Pedro Alves <palves@redhat.com>
5333
5334 * Makefile.in (nat_extra_makefile_frag): Rename to ...
5335 (nat_makefile_frag): ... this. All references updated.
5336 * configure.ac: Likewise.
5337 * configure.nat: Likewise. Enhance comments.
5338 * configure: Regenerate.
5339
5340 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5341
5342 * procfs.c (procfs_create_inferior): Change prototype to match
5343 definition.
5344
5345 2017-05-13 Eli Zaretskii <eliz@gnu.org>
5346
5347 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
5348 C++ compiler warning.
5349
5350 2017-05-12 Tom Tromey <tom@tromey.com>
5351
5352 PR rust/21483:
5353 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
5354 recurse, just call value_struct_elt directly.
5355
5356 2017-05-12 Tom Tromey <tom@tromey.com>
5357
5358 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
5359 OP_RUST_ARRAY>: Fix.
5360
5361 2017-05-12 Tom Tromey <tom@tromey.com>
5362
5363 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
5364
5365 2017-05-09 Yao Qi <yao.qi@linaro.org>
5366
5367 * regcache.c: Include <forward_list>.
5368 (struct regcache_list): Remove.
5369 (current_regcache): Update.
5370 (get_thread_arch_aspace_regcache): Update for std::forward_list.
5371 (regcache_thread_ptid_changed): Likewise.
5372 (registers_changed_ptid): Likewise.
5373 (current_regcache_size): Likewise.
5374
5375 2017-05-09 Yao Qi <yao.qi@linaro.org>
5376
5377 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
5378 (current_regcache_size): New function.
5379 (current_regcache_test): New function.
5380 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
5381
5382 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5383
5384 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
5385 (print_gp_register_row): Use get_frame_register_value.
5386
5387 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5388
5389 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
5390 (mips_supply_fpregset): Likewise.
5391 (mips64_supply_gregset): Likewise.
5392
5393 2017-05-08 Alan Hayward <alan.hayward@arm.com>
5394
5395 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
5396 regcache->raw_supply_zeroed.
5397
5398 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5399
5400 * configure.nat: Rearrange 'case' statements to match
5401 host before cpu.
5402
5403 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5404
5405 * Makefile.in: Remove "@host_makefile_frag@". Add variables
5406 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
5407 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
5408 "@nat_extra_makefile_frag@".
5409 (Makefile): Remove dependency on "@frags@".
5410 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
5411 (data-directory/Makefile): Likewise.
5412 * config/aarch64/linux.mh: Deleted; moved contents to
5413 "gdb/configure.nat".
5414 * config/alpha/alpha-linux.mh: Likewise.
5415 * config/alpha/nbsd.mh: Likewise.
5416 * config/arm/linux.mh: Likewise.
5417 * config/arm/nbsdelf.mh: Likewise.
5418 * config/i386/cygwin.mh: Likewise.
5419 * config/i386/cygwin64.mh: Likewise.
5420 * config/i386/darwin.mh: Likewise.
5421 * config/i386/fbsd.mh: Likewise.
5422 * config/i386/fbsd64.mh: Likewise.
5423 * config/i386/go32.mh: Likewise.
5424 * config/i386/i386gnu.mh: Likewise.
5425 * config/i386/i386sol2.mh: Likewise.
5426 * config/i386/linux.mh: Likewise.
5427 * config/i386/linux64.mh: Likewise.
5428 * config/i386/mingw.mh: Likewise.
5429 * config/i386/mingw64.mh: Likewise.
5430 * config/i386/nbsd64.mh: Likewise.
5431 * config/i386/nbsdelf.mh: Likewise.
5432 * config/i386/nto.mh: Likewise.
5433 * config/i386/obsd.mh: Likewise.
5434 * config/i386/obsd64.mh: Likewise.
5435 * config/i386/sol2-64.mh: Likewise.
5436 * config/ia64/linux.mh: Likewise.
5437 * config/m32r/linux.mh: Likewise.
5438 * config/m68k/linux.mh: Likewise.
5439 * config/m68k/nbsdelf.mh: Likewise.
5440 * config/m68k/obsd.mh: Likewise.
5441 * config/m88k/obsd.mh: Likewise.
5442 * config/mips/fbsd.mh: Likewise.
5443 * config/mips/linux.mh: Likewise.
5444 * config/mips/nbsd.mh: Likewise.
5445 * config/mips/obsd64.mh: Likewise.
5446 * config/pa/linux.mh: Likewise.
5447 * config/pa/nbsd.mh: Likewise.
5448 * config/pa/obsd.mh: Likewise.
5449 * config/powerpc/aix.mh: Likewise.
5450 * config/powerpc/fbsd.mh: Likewise.
5451 * config/powerpc/linux.mh: Likewise.
5452 * config/powerpc/nbsd.mh: Likewise.
5453 * config/powerpc/obsd.mh: Likewise.
5454 * config/powerpc/ppc64-linux.mh: Likewise.
5455 * config/powerpc/spu-linux.mh: Likewise.
5456 * config/s390/linux.mh: Likewise.
5457 * config/sh/nbsd.mh: Likewise.
5458 * config/sparc/fbsd.mh: Likewise.
5459 * config/sparc/linux.mh: Likewise.
5460 * config/sparc/linux64.mh: Likewise.
5461 * config/sparc/nbsd64.mh: Likewise.
5462 * config/sparc/nbsdelf.mh: Likewise.
5463 * config/sparc/obsd64.mh: Likewise.
5464 * config/sparc/sol2.mh: Likewise.
5465 * config/tilegx/linux.mh: Likewise.
5466 * config/vax/nbsdelf.mh: Likewise.
5467 * config/vax/obsd.mh: Likewise.
5468 * config/xtensa/linux.mh: Likewise.
5469 * config/i386/i386gnu.mn: New file, with excerpts from
5470 "config/i386/i386gnu.mh".
5471 * configure: Regenerate.
5472 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
5473 *.mh files under "gdb/config".
5474 * configure.nat: New file, with contents from the
5475 "gdb/config/*/*.mh" files.
5476
5477 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
5478
5479 * btrace.c (btrace_clear): Free insn vector.
5480
5481 2017-05-05 Pedro Alves <palves@redhat.com>
5482
5483 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
5484 * configure: Regenerate.
5485
5486 2017-05-04 Pedro Alves <palves@redhat.com>
5487
5488 * Makefile.in (SFILES): Add progspace-and-thread.c.
5489 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
5490 (COMMON_OBS): Add progspace-and-thread.o.
5491 * breakpoint.c: Include "progspace-and-thread.h".
5492 (update_inserted_breakpoint_locations)
5493 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
5494 Use scoped_restore_current_pspace_and_thread.
5495 (create_std_terminate_master_breakpoint): Use
5496 scoped_restore_current_program_space.
5497 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
5498 (print_breakpoint_location): Use
5499 scoped_restore_current_program_space.
5500 (bp_loc_is_permanent): Use
5501 scoped_restore_current_pspace_and_thread.
5502 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
5503 (download_tracepoint_locations): Use
5504 scoped_restore_current_pspace_and_thread.
5505 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
5506 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
5507 (enum step_over_calls_kind): Moved from inferior.h.
5508 (class scoped_restore_current_thread): New class.
5509 * gdbthread.h (make_cleanup_restore_current_thread): Delete
5510 declaration.
5511 (scoped_restore_current_thread): New class.
5512 * infcmd.c: Include "common/gdb_optional.h".
5513 (continue_1, proceed_after_attach): Use
5514 scoped_restore_current_thread.
5515 (notice_new_inferior): Use scoped_restore_current_thread.
5516 * inferior.c: Include "progspace-and-thread.h".
5517 (restore_inferior, save_current_inferior): Delete.
5518 (add_inferior_command, clone_inferior_command): Use
5519 scoped_restore_current_pspace_and_thread.
5520 * inferior.h (scoped_restore_current_inferior): New class.
5521 * infrun.c: Include "progspace-and-thread.h" and
5522 "common/gdb_optional.h".
5523 (follow_fork_inferior): Use
5524 scoped_restore_current_pspace_and_thread.
5525 (scoped_restore_exited_inferior): New class.
5526 (handle_vfork_child_exec_or_exit): Use
5527 scoped_restore_exited_inferior,
5528 scoped_restore_current_pspace_and_thread,
5529 scoped_restore_current_thread and scoped_restore.
5530 (fetch_inferior_event): Use scoped_restore_current_thread.
5531 * linespec.c (decode_line_full, decode_line_1): Use
5532 scoped_restore_current_program_space.
5533 * mi/mi-main.c: Include "progspace-and-thread.h".
5534 (exec_continue): Use scoped_restore_current_thread.
5535 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
5536 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
5537 * proc-service.c (ps_pglobal_lookup): Use
5538 scoped_restore_current_program_space.
5539 * progspace-and-thread.c: New file.
5540 * progspace-and-thread.h: New file.
5541 * progspace.c (release_program_space, clone_program_space): Use
5542 scoped_restore_current_program_space.
5543 (restore_program_space, save_current_program_space)
5544 (save_current_space_and_thread): Delete.
5545 (switch_to_program_space_and_thread): Moved to
5546 progspace-and-thread.c.
5547 * progspace.h (save_current_program_space)
5548 (save_current_space_and_thread): Delete declarations.
5549 (scoped_restore_current_program_space): New class.
5550 * remote.c (remote_btrace_maybe_reopen): Use
5551 scoped_restore_current_thread.
5552 * symtab.c: Include "progspace-and-thread.h".
5553 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
5554 * thread.c (print_thread_info_1): Use
5555 scoped_restore_current_thread.
5556 (struct current_thread_cleanup): Delete.
5557 (do_restore_current_thread_cleanup)
5558 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
5559 (scoped_restore_current_thread::~scoped_restore_current_thread):
5560 ... this new dtor.
5561 (make_cleanup_restore_current_thread): Rename/convert to ...
5562 (scoped_restore_current_thread::scoped_restore_current_thread):
5563 ... this new ctor.
5564 (thread_apply_all_command): Use scoped_restore_current_thread.
5565 (thread_apply_command): Use scoped_restore_current_thread.
5566 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
5567 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
5568
5569 2017-05-04 Pedro Alves <palves@redhat.com>
5570
5571 * thread.c (make_cleanup_restore_current_thread): Move
5572 find_thread_ptid call before the is_stopped call. Assert that the
5573 thread is found. Replace is_stopped call by checking the thread's
5574 state directly. Remove unnecessary NULL-thread check.
5575
5576 2017-05-04 Pedro Alves <palves@redhat.com>
5577
5578 * corelow.c (thread_section_name): New class.
5579 (get_core_register_section, get_core_siginfo): Use it.
5580
5581 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5582
5583 * corelow.c (sniff_core_bfd): Remove extra semicolon.
5584 (get_core_register_section): Remove xfree of NULL pointer.
5585
5586 2017-05-03 Alan Hayward <alan.hayward@arm.com>
5587
5588 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
5589 * regcache.c (regcache::raw_supply_zeroed): New function.
5590 * regcache.h (regcache::raw_supply_zeroed): New declaration.
5591
5592 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
5593
5594 * gdbarch.sh: Remove commented out definition of
5595 TARGET_CHAR_BIT.
5596 * gdbarch.h: Re-generate.
5597
5598 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5599
5600 * configure: Regenerate.
5601
5602 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
5603
5604 * solib-target.c (solib_target_relocate_section_addresses):
5605 Remove num_section_bases, num_bases, segment_bases variables.
5606
5607 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5608
5609 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
5610
5611 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 * solib-target.c: Include <vector>
5614 (struct lm_info_target) <~lm_info_target>: Remove.
5615 <segment_bases, section_bases>: Change type to
5616 std::vector<CORE_ADDR>.
5617 (library_list_start_segment, library_list_start_section,
5618 library_list_end_library,
5619 solib_target_relocate_section_addresses): Adjust.
5620
5621 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5622
5623 * gdbarch.sh (software_single_step): Change return type to
5624 std::vector<CORE_ADDR>.
5625 * gdbarch.c, gdbarch.h: Re-generate.
5626 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5627 Adjust.
5628 (arm_deal_with_atomic_sequence_raw): Adjust.
5629 (thumb_get_next_pcs_raw): Adjust.
5630 (arm_get_next_pcs_raw): Adjust.
5631 (arm_get_next_pcs): Adjust.
5632 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
5633 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
5634 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
5635 (alpha_software_single_step): Adjust.
5636 * alpha-tdep.h (alpha_software_single_step): Adjust.
5637 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
5638 * arm-tdep.c (arm_software_single_step): Adjust.
5639 (arm_breakpoint_kind_from_current_state): Adjust.
5640 * arm-tdep.h (arm_software_single_step): Adjust.
5641 * breakpoint.c (insert_single_step_breakpoint): Adjust.
5642 * cris-tdep.c (cris_software_single_step): Adjust.
5643 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
5644 (micromips_deal_with_atomic_sequence): Adjust.
5645 (deal_with_atomic_sequence): Adjust.
5646 (mips_software_single_step): Adjust.
5647 * mips-tdep.h (mips_software_single_step): Adjust.
5648 * moxie-tdep.c (moxie_software_single_step): Adjust.
5649 * nios2-tdep.c (nios2_software_single_step): Adjust.
5650 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
5651 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
5652 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
5653 * s390-linux-tdep.c (s390_software_single_step): Adjust.
5654 * sparc-tdep.c (sparc_software_single_step): Adjust.
5655 * spu-tdep.c (spu_software_single_step): Adjust.
5656 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
5657
5658 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5659
5660 * gdbarch.sh: Use semi-colon as field separator instead of colon.
5661 * gdbarch.h: Re-generate.
5662
5663 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5664
5665 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
5666 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
5667 * python/py-instruction.c, python/py-instruction.h: New file.
5668 * python/py-record.c: Add py-instruction.h include.
5669 (gdbpy_initialize_record): Make gdb.Instruction a super class of
5670 gdb.RecordInstruction.
5671 * python/python-internal.h: Add gdbpy_initialize_instruction
5672 declaration.
5673 * python/python.c (do_start_initialization): Add
5674 gdbpy_initialize_instruction.
5675
5676 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5677
5678 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
5679 Remove.
5680 (btrace_func_from_recpy_func): New function.
5681 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
5682 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
5683 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
5684 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
5685 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
5686 Also, use new helper functions.
5687 (btpy_list_item): Use new helper functions.
5688 (recpy_bt_function_call_history): Use new type name.
5689 (btpy_call_getset): Remove.
5690 (gdbpy_initialize_btrace): Remove code to initialize
5691 gdb.BtraceFunctionCall.
5692 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
5693 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
5694 recpy_bt_func_prev, recpy_bt_func_next): New export.
5695 * python/py-record.c (recpy_func_type): New static object.
5696 (recpy_func_new, recpy_func_level, recpy_func_symbol,
5697 recpy_func_instructions, recpy_func_up, recpy_func_prev,
5698 recpy_func_next): New function.
5699 (recpy_element_hash, recpy_element_richcompare): Updated comment.
5700 (recpy_func_getset): New static object.
5701 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
5702 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
5703
5704 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5705
5706 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
5707 (btpy_object, btpy_insn_type, btpy_new): Remove.
5708 (btpy_list_object): Use gdb.RecordInstruction type instead of
5709 gdb.BtraceInstruction type.
5710 (btrace_insn_from_recpy_insn): New function.
5711 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
5712 btpy_new.
5713 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
5714 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
5715 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
5716 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
5717 instead of btpy_object.
5718 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
5719 btpy_insn_data, btpy_insn_decode): Rename to ...
5720 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
5721 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
5722 recpy_bt_insn_decode): This. Also, use new helper functions.
5723 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
5724 recpy_insn_type.
5725 (btpy_insn_getset): Remove.
5726 (gdbpy_initialize_btrace): Remove code to initialize
5727 gdb.BtraceInstruction. Use recpy_element_object.
5728 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
5729 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
5730 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
5731 * python/py-record.c (recpy_insn_type): New static object.
5732 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
5733 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
5734 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
5735 New function.
5736 (recpy_insn_getset): New static object.
5737 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
5738 * python/py-record.h (recpy_element_object): New typedef.
5739 (recpy_insn_type, recpy_insn_new): New export.
5740
5741 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5742
5743 * py-record-btrace.c (btpy_insn_new): Removed.
5744 (btpy_insn_or_gap_new): New function.
5745 (btpy_insn_error): Removed.
5746 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
5747 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
5748 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
5749 btpy_insn_or_gap_new instead of btpy_insn_new.
5750 (btpy_insn_getset): Remove btpy_insn_error.
5751 * py-record.c (recpy_gap_type): New static object.
5752 (recpy_gap_object): New typedef.
5753 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
5754 recpy_gap_reason_string): New function.
5755 (recpy_gap_getset): New static object.
5756 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
5757 * py-record.h (recpy_gap_new): New export.
5758
5759 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5760
5761 * python/py-record.c (recpy_ptid): Remove.
5762 (recpy_record_getset): Remove recpy_ptid.
5763
5764 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5765
5766 * btrace.c (btrace_fetch): Set inferior_ptid.
5767 * python/py-record-btrace.c: Add "py-record.h" include.
5768 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
5769 recpy_bt_end, recpy_bt_instruction_history,
5770 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
5771 in gdb.Record object instead of current ptid.
5772 * python/py-record.c: Include new "py-record.h" file.
5773 (recpy_record_object): Moved to py-record.h.
5774 * python/py-record.h: New file.
5775
5776 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
5777
5778 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
5779 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
5780 indentation.
5781
5782 2017-05-01 Joel Brobecker <brobecker@adacore.com>
5783
5784 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
5785 the past maintainers section.
5786
5787 2017-04-28 Yao Qi <yao.qi@linaro.org>
5788
5789 * infcmd.c (get_return_value): Use regcache ctor, and remove
5790 cleanup.
5791
5792 2017-04-28 Yao Qi <yao.qi@linaro.org>
5793 Pedro Alves <palves@redhat.com>
5794
5795 * regcache.c (regcache::regcache): New tag dispatch ctor.
5796 (do_cooked_read): Moved above.
5797 (regcache_dup): Use the tag dispatch ctor..
5798 * regcache.h (regcache): Declare ctor, delete copy ctor and
5799 assignment operator, remove friend regcache_dup.
5800
5801 2017-04-28 Yao Qi <yao.qi@linaro.org>
5802
5803 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
5804 call method save instead of regcache_cpy.
5805 * regcache.h (struct regcache): Make regcache_dup a friend.
5806
5807 2017-04-28 Yao Qi <yao.qi@linaro.org>
5808
5809 * regcache.c (struct regcache): Move to regcache.h
5810 (regcache::arch): New method.
5811 (regcache_get_ptid): Update.
5812 (get_regcache_arch): Call arch method.
5813 (get_regcache_aspace): Call method aspace.
5814 (register_buffer): Change it to method.
5815 (regcache_save): Change it to regcache::save.
5816 (regcache_restore): Likewise.
5817 (regcache_cpy_no_passthrough): Remove the declaration.
5818 (regcache_cpy): Call methods restore and cpy_no_passthrough.
5819 (regcache_cpy_no_passthrough): Change it to method
5820 cpy_no_passthrough.
5821 (regcache_register_status): Change it to method
5822 get_register_status.
5823 (regcache_invalidate): Change it to method invalidate.
5824 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
5825 (regcache_raw_update): Change it to method raw_update.
5826 (regcache_raw_read): Likewise.
5827 (regcache_raw_read_signed): Likewise.
5828 (regcache_raw_read_unsigned): Likewise.
5829 (regcache_raw_write_signed): Likewise.
5830 (regcache_raw_write_unsigned): Likewise.
5831 (regcache_cooked_read): Likewise.
5832 (regcache_cooked_read_value): Likewise.
5833 (regcache_cooked_read_signed): Likewise.
5834 (regcache_cooked_read_unsigned): Likewise.
5835 (regcache_cooked_write_signed): Likewise.
5836 (regcache_cooked_write_unsigned): Likewise.
5837 (regcache_raw_set_cached_value): Likewise.
5838 (regcache_raw_write): Likewise.
5839 (regcache_cooked_write): Likewise.
5840 (regcache_xfer_part): Likewise.
5841 (regcache_raw_read_part): Likewise.
5842 (regcache_raw_write_part): Likewise.
5843 (regcache_cooked_read_part): Likewise.
5844 (regcache_cooked_write_part): Likewise.
5845 (regcache_raw_supply): Likewise.
5846 (regcache_raw_collect): Likewise.
5847 (regcache_transfer_regset): Likewise.
5848 (regcache_supply_regset): Likewise.
5849 (regcache_collect_regset): Likewise.
5850 (regcache_debug_print_register): Likewise.
5851 (enum regcache_dump_what): Move it to regcache.h.
5852 (regcache_dump): Change it to method dump.
5853 * regcache.h (enum regcache_dump_what): New.
5854 (class regcache): New.
5855 * target.c (target_fetch_registers): Call method
5856 debug_print_register.
5857 (target_store_registers): Likewise.
5858
5859 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5860
5861 * windows-nat.c (struct lm_info_windows): Initialize field.
5862 (windows_make_so): Allocate lm_info_windows with new.
5863 (windows_free_so): Free lm_info_windows with delete.
5864
5865 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5866
5867 * solib-darwin.c (struct lm_info_darwin): Initialize field.
5868 (darwin_current_sos): Allocate lm_info_darwin with new, remove
5869 cleanup.
5870 (darwin_free_so): Free lm_info_darwin with delete.
5871
5872 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5873
5874 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
5875 <l_addr_p>: Change type to bool.
5876 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
5877 (svr4_free_so): Free lm_info_svr4 with delete.
5878 (svr4_copy_library_list): Replace memcpy with call to copy
5879 constructor.
5880 (library_list_start_library, svr4_default_sos): Allocate
5881 lm_info_svr4 with new.
5882
5883 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5884
5885 * solib-target.c (struct lm_info_target): Add destructor,
5886 initialize fields.
5887 <name>: Change type to std::string.
5888 (library_list_start_library): Allocate lm_info_target with new.
5889 (solib_target_free_library_list): Free lm_info_target with
5890 delete.
5891 (solib_target_current_sos): Adapt to std::string.
5892 (solib_target_free_so): Free lm_info_target with delete.
5893
5894 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5895
5896 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
5897 fields.
5898 (frv_current_sos): Allocate lm_info_frv with new.
5899 (frv_relocate_main_executable): Free lm_info_frv with delete,
5900 allocate with new.
5901 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
5902
5903 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5904
5905 * solib-frv.c (struct lm_info_frv): Fix indentation.
5906
5907 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5908
5909 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
5910 map field.
5911 (dsbt_current_sos): Allocate lm_info_dsbt with new.
5912 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
5913 and allocate with new.
5914 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
5915
5916 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5917
5918 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
5919 <filename, member_name>: Change type to std::string.
5920 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
5921 (library_list_start_library): Allocate lm_info_aix with new.
5922 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
5923 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
5924 with copy constructor.
5925
5926 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5927
5928 * solist.h (struct lm_info): Remove.
5929 (struct lm_info_base): New class.
5930 (struct so_list) <lm_info>: Change type to lm_info_base *.
5931 * nto-tdep.c (struct lm_info): Remove.
5932 (lm_addr): Adjust.
5933 * solib-aix.c (struct lm_info): Rename to ...
5934 (struct lm_info_aix): ... this. Extend lm_info_base.
5935 (lm_info_p): Rename to ...
5936 (lm_info_aix_p): ... this, and adjust.
5937 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
5938 solib_aix_parse_libraries, library_list_start_library,
5939 solib_aix_free_library_list, solib_aix_parse_libraries,
5940 solib_aix_get_library_list,
5941 solib_aix_relocate_section_addresses, solib_aix_free_so,
5942 solib_aix_get_section_offsets,
5943 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
5944 Adjust.
5945 (struct solib_aix_inferior_data) <library_list>: Adjust.
5946 * solib-darwin.c (struct lm_info): Rename to ...
5947 (struct lm_info_darwin): ... this. Extend lm_info_base.
5948 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
5949 * solib-dsbt.c (struct lm_info): Rename to ...
5950 (struct lm_info_dsbt): ... this. Extend lm_info_base.
5951 (struct dsbt_info) <main_executable_lm_info): Adjust.
5952 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
5953 dsbt_relocate_section_addresses): Adjust.
5954 * solib-frv.c (struct lm_info): Rename to ...
5955 (struct lm_info_frv): ... this. Extend lm_info_base.
5956 (main_executable_lm_info): Adjust.
5957 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
5958 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
5959 find_canonical_descriptor_in_load_object,
5960 frv_fdpic_find_canonical_descriptor): Adjust.
5961 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
5962 to lm_info_svr4.
5963 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
5964 svr4_clear_so, svr4_copy_library_list,
5965 library_list_start_library, svr4_default_sos, svr4_read_so_list,
5966 svr4_current_sos, svr4_fetch_objfile_link_map,
5967 solist_update_incremental): Adjust.
5968 * solib-svr4.h (struct lm_info_svr4): Move here from
5969 solib-svr4.c.
5970 * solib-target.c (struct lm_info): Rename to ...
5971 (struct lm_info_target): ... this. Extend lm_info_base.
5972 (lm_info_p): Rename to ...
5973 (lm_info_target_p): ... this.
5974 (solib_target_parse_libraries, library_list_start_segment,
5975 library_list_start_section, library_list_start_library,
5976 library_list_end_library, solib_target_free_library_list,
5977 solib_target_current_sos, solib_target_free_so,
5978 solib_target_relocate_section_addresses): Adjust.
5979 * windows-nat.c (struct lm_info): Rename to ...
5980 (struct lm_info_windows): ... this. Extend lm_info_base.
5981 (windows_make_so, handle_load_dll, handle_unload_dll,
5982 windows_xfer_shared_libraries): Adjust.
5983
5984 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
5985
5986 * solib-darwin.c (struct darwin_so_list): Remove.
5987 (darwin_current_sos): Allocate an so_list object instead of a
5988 darwin_so_list, separately allocate an lm_info object.
5989 (darwin_free_so): Free lm_info.
5990
5991 2017-04-28 John Baldwin <jhb@FreeBSD.org>
5992
5993 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
5994 with fprintf_filtered.
5995
5996 2017-04-28 Yao Qi <yao.qi@linaro.org>
5997
5998 * regcache.c (regcache::regcache): New function.
5999 (regcache::~regcache): New function.
6000 (regcache_xmalloc_1): Remove.
6001 (regcache_xmalloc): Call new regcache.
6002 (regcache_xfree): Call delete regcache.
6003 (get_thread_arch_aspace_regcache): Call new regcache.
6004
6005 2017-04-28 Yao Qi <yao.qi@linaro.org>
6006
6007 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6008 lwp instead of ptid_get_lwp.
6009
6010 2017-04-28 Yao Qi <yao.qi@linaro.org>
6011
6012 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6013 lwp_info instead of getting from inferior_ptid.
6014
6015 2017-04-27 Keith Seitz <keiths@redhat.com>
6016
6017 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
6018 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
6019 (CV_CONVERSION_BADNESS): Define.
6020 (rank_one_type): Remove overly restrictive rvalue reference
6021 rank checks.
6022 Add cv-qualifier checks and subranks for type equality.
6023 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
6024 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
6025 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
6026
6027 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
6028
6029 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
6030 count when creating the object.
6031
6032 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
6033 Ulrich Weigand <uweigand@de.ibm.com>
6034
6035 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
6036 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
6037 is used in AIX.
6038 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
6039 (process_xcoff_symbol): Likewise.
6040 (scan_xcoff_symtab): Likewise.
6041
6042 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6043
6044 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
6045 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
6046 (ia64_access_reg): Use get_frame_register_unsigned.
6047 (ia64_access_rse_reg): Likewise.
6048 (ia64_libunwind_frame_prev_register): Likewise.
6049
6050 2017-04-26 Jiong Wang <jiong.wang@arm.com>
6051
6052 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
6053 * gdbarch.c: Regenerated.
6054 * gdbarch.h: Regenerated.
6055 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
6056 visibility external.
6057 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
6058 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
6059 (enum cfa_how_kind): Move to ...
6060 (struct dwarf2_frame_state_reg_info): Likewise.
6061 (struct dwarf2_frame_state): Likewise.
6062 * dwarf2-frame.h: ... here.
6063 (dwarf2_frame_state_alloc_regs): New declaration.
6064 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
6065 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
6066
6067 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6068
6069 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
6070 regcache_raw_read_unsigned.
6071 (xtensa_pseudo_register_write): Likewise.
6072
6073 2017-04-26 Alan Hayward <alan.hayward@arm.com>
6074
6075 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
6076 (nds32_pseudo_register_write): Likewise.
6077
6078 2017-04-25 Yao Qi <yao.qi@linaro.org>
6079
6080 * regcache.c (struct regcache) <readonly_p>: Change its type
6081 to bool.
6082 (regcache_xmalloc_1): Update parameter type and callers update.
6083
6084 2017-04-25 Yao Qi <yao.qi@linaro.org>
6085
6086 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6087 set_gdbarch_wchar_bit.
6088 * arm-tdep.c (arm_gdbarch_init): Likewise.
6089
6090 2017-04-25 Pedro Alves <palves@redhat.com>
6091
6092 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
6093 (BothAreRelocatable, memcopy, memmove): Don't define.
6094 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
6095 macros.
6096
6097 2017-04-25 Pedro Alves <palves@redhat.com>
6098
6099 * common/common-defs.h: Include "common/poison.h".
6100 * common/function-view.h: (Not, Or, Requires): Move to traits.h
6101 and adjust.
6102 * common/poison.h: New file.
6103 * common/traits.h: Include <type_traits>.
6104 (Not, Or, Requires): New, moved from common/function-view.h.
6105
6106 2017-04-25 Pedro Alves <palves@redhat.com>
6107
6108 * breakpoint.h (struct breakpoint): In-class initialize all
6109 fields. Make boolean fields "bool".
6110 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6111 memset call and initializations no longer necessary.
6112
6113 2017-04-25 Pedro Alves <palves@redhat.com>
6114
6115 * btrace.c (pt_btrace_insn_flags): Change parameter type to
6116 reference.
6117 (pt_btrace_insn): New function.
6118 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
6119
6120 2017-04-25 Pedro Alves <palves@redhat.com>
6121
6122 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
6123 "base" field and inherit from "bp_location" instead. Add
6124 non-default ctor.
6125 (allocate_location_exception): Use new non-default ctor.
6126 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
6127 (init_bp_location): Convert to ...
6128 (bp_location::bp_location): ... this new ctor, and remove memset
6129 call.
6130 (base_breakpoint_allocate_location): Use the new non-default ctor.
6131 * breakpoint.h (bp_location): Now a class. Declare default and
6132 non-default ctors. In-class initialize all members.
6133 (init_bp_location): Remove declaration.
6134
6135 2017-04-25 Pedro Alves <palves@redhat.com>
6136
6137 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
6138 assignment operator.
6139
6140 2017-04-24 Yao Qi <yao.qi@linaro.org>
6141
6142 * doublest.c (convert_doublest_to_floatformat): Call
6143 floatformat_totalsize_bytes.
6144
6145 2017-04-22 Tom Tromey <tom@tromey.com>
6146
6147 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6148 ui_out_emit_list.
6149 * stack.c (print_frame): Use ui_out_emit_list.
6150 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6151 ui_out_emit_list.
6152 * mi/mi-main.c (print_one_inferior)
6153 (mi_cmd_data_list_register_names)
6154 (mi_cmd_data_list_register_values, mi_cmd_list_features)
6155 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
6156 ui_out_emit_list.
6157 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
6158 (mi_output_solib_attribs): Use ui_out_emit_list,
6159 ui_out_emit_tuple.
6160 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
6161 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6162 (mi_cmd_stack_list_args, list_args_or_locals): Use
6163 ui_out_emit_list.
6164 * disasm.c (do_assembly_only): Use ui_out_emit_list.
6165 * breakpoint.c (print_solib_event, output_thread_groups): Use
6166 ui_out_emit_list.
6167
6168 2017-04-22 Tom Tromey <tom@tromey.com>
6169
6170 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
6171 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
6172 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
6173
6174 2017-04-22 Tom Tromey <tom@tromey.com>
6175
6176 * tracepoint.c (tvariables_info_1)
6177 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
6178
6179 2017-04-22 Tom Tromey <tom@tromey.com>
6180
6181 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
6182 annotate_arg_emitter.
6183 * breakpoint.c (print_mention_watchpoint)
6184 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
6185 * annotate.h (struct annotate_arg_emitter): New.
6186
6187 2017-04-22 Tom Tromey <tom@tromey.com>
6188
6189 * record-btrace.c (record_btrace_insn_history)
6190 (record_btrace_insn_history_range, record_btrace_call_history)
6191 (record_btrace_call_history_range): Use ui_out_emit_tuple.
6192 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
6193 ui_out_emit_tuple.
6194 * stack.c (print_frame_info): Use ui_out_emit_tuple.
6195 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
6196 * skip.c (skip_info): Use ui_out_emit_tuple.
6197 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
6198 * progspace.c (print_program_space): Use ui_out_emit_tuple.
6199 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
6200 * osdata.c (info_osdata): Use ui_out_emit_tuple.
6201 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
6202 ui_out_emit_tuple.
6203 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
6204 (output_register, mi_cmd_data_read_memory)
6205 (mi_cmd_data_read_memory_bytes, mi_load_progress)
6206 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
6207 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
6208 Use ui_out_emit_tuple.
6209 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
6210 ui_out_emit_tuple.
6211 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
6212 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
6213 * linux-thread-db.c (info_auto_load_libthread_db): Use
6214 ui_out_emit_tuple.
6215 * inferior.c (print_inferior): Use ui_out_emit_tuple.
6216 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
6217 * disasm.c (do_mixed_source_and_assembly_deprecated)
6218 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
6219 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
6220 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
6221 * breakpoint.c (print_one_breakpoint_location)
6222 (print_one_breakpoint): Use ui_out_emit_tuple.
6223 * auto-load.c (print_script, info_auto_load_cmd): Use
6224 ui_out_emit_tuple.
6225 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
6226
6227 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * thread.c (print_thread_info_1): Remove dead code.
6230
6231 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6232
6233 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
6234 GDB_SELF_TEST.
6235 * arm-tdep.c (selftests::arm_record_test): Likewise.
6236
6237 2017-04-21 Yao Qi <yao.qi@linaro.org>
6238
6239 * regcache.c (regcache_restore): Remove argument 2. Replace
6240 argument 3 with regcache. Get register status from
6241 src->register_status and get register contents from
6242 register_buffer (src, regnum).
6243 (regcache_cpy): Update.
6244
6245 2017-04-19 Pedro Alves <palves@redhat.com>
6246
6247 * gdbthread.h (thread): Add missing closing parenthesis in
6248 comment.
6249
6250 2017-04-19 Pedro Alves <palves@redhat.com>
6251
6252 * common/refcounted-object.h: New file.
6253 * gdbthread.h: Include "common/refcounted-object.h".
6254 (thread_info): Inherit from refcounted_object and add comments.
6255 (thread_info::incref, thread_info::decref)
6256 (thread_info::m_refcount): Delete.
6257 (thread_info::deletable): Use the refcounted_object::refcount()
6258 method.
6259 * inferior.c (current_inferior_): Add comment.
6260 (set_current_inferior): Increment/decrement refcounts.
6261 (prune_inferiors, remove_inferior_command): Skip inferiors marked
6262 not-deletable instead of comparing with the current inferior.
6263 (initialize_inferiors): Increment the initial inferior's refcount.
6264 * inferior.h (struct inferior): Forward declare.
6265 Include "common/refcounted-object.h".
6266 (current_inferior, set_current_inferior): Move declaration to
6267 before struct inferior's definition, and fix comment.
6268 (inferior): Inherit from refcounted_object. Add comments.
6269 * thread.c (switch_to_thread_no_regs): Reference the thread's
6270 inferior pointer directly instead of doing a ptid lookup.
6271 (switch_to_no_thread): New function.
6272 (switch_to_thread(thread_info *)): New function, factored out
6273 from ...
6274 (switch_to_thread(ptid_t)): ... this.
6275 (restore_current_thread): Delete.
6276 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
6277 fields, and add 'inf' field.
6278 (do_restore_current_thread_cleanup): Check whether old->inf is
6279 alive instead of looking up an inferior by ptid. Use
6280 switch_to_thread and switch_to_no_thread.
6281 (restore_current_thread_cleanup_dtor): Use old->inf directly
6282 instead of lookup up an inferior by id. Decref the inferior.
6283 Don't restore 'removable'.
6284 (make_cleanup_restore_current_thread): Same the inferior pointer
6285 in old, instead of the inferior number. Incref the inferior.
6286 Don't save/clear 'removable'.
6287
6288 2017-04-19 Pedro Alves <palves@redhat.com>
6289
6290 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6291 unittests/scoped_restore-selftests.c.
6292 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
6293 * common/scoped_restore.h (scoped_restore_base): Make "class".
6294 (scoped_restore_base::release): New public method.
6295 (scoped_restore_base::scoped_restore_base): New protected ctor.
6296 (scoped_restore_base::m_saved_var): New protected field.
6297 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
6298 scoped_restore_base base class instead of m_saved_var directly.
6299 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
6300 (scoped_restore_tmpl::scoped_restore_tmpl(const
6301 scoped_restore_tmpl<T>&)): Likewise.
6302 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
6303 method.
6304 (scoped_restore_tmpl::saved_var): New method.
6305 (scoped_restore_tmpl::m_saved_var): Delete.
6306 * inferior.h (inferior::detaching): Now a bool.
6307 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
6308 cleanup.
6309 * unittests/scoped_restore-selftests.c: New file.
6310
6311 2017-04-19 Pedro Alves <palves@redhat.com>
6312
6313 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
6314 Re-sort in alphabetic order.
6315
6316 2017-04-18 Pedro Alves <palves@redhat.com>
6317
6318 * xml-support.c (obstack_xml_printf): Delete.
6319 * xml-support.h (obstack_xml_printf): Delete.
6320
6321 2017-04-18 Pedro Alves <palves@redhat.com>
6322
6323 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
6324 vdebug, verror, body_text, start_element, end_element, name,
6325 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
6326 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
6327 is_xinclude>: Make private and add m_ prefix.
6328 (gdb_xml_parser::body_text): New method, based on ...
6329 (gdb_xml_body_text): ... this. Adjust.
6330 (gdb_xml_parser::vdebug): New method, based on ...
6331 (gdb_xml_debug): ... this. Adjust.
6332 (gdb_xml_parser::verror): New method, based on ...
6333 (gdb_xml_error): ... this. Adjust.
6334 (gdb_xml_parser::start_element): New method, based on ...
6335 (gdb_xml_start_element): ... this. Adjust.
6336 (gdb_xml_start_element_wrapper): Defer to
6337 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
6338 (gdb_xml_parser::end_element): New method, based on ...
6339 (gdb_xml_end_element_wrapper): ... this. Adjust.
6340 (gdb_xml_parser::~gdb_xml_parser): Adjust.
6341 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
6342 (gdb_xml_parser::use_dtd): New method, based on ...
6343 (gdb_xml_use_dtd): ... this. Adjust.
6344 (gdb_xml_parser::parse): New method, based on ...
6345 (gdb_xml_parse): ... this. Adjust.
6346 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
6347 (xinclude_start_include): Adjust to call the parser's name method.
6348 (xml_xinclude_default, xml_xinclude_start_doctype)
6349 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
6350 method.
6351 (xml_process_xincludes): Adjust to call parser methods.
6352 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
6353 declarations.
6354
6355 2017-04-18 Pedro Alves <palves@redhat.com>
6356
6357 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
6358 gdb::optional<std::string>.
6359 * xml-support.c: Include <string>.
6360 (scope_level::scope_level(scope_level &&))
6361 (scope_level::~scope_level): Delete.
6362 (scope_level::body): Now a std::string.
6363 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
6364 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
6365 parameter.
6366 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
6367 (xinclude_parsing_data::output): Now a std::string reference.
6368 (xinclude_start_include): Adjust.
6369 (xml_xinclude_default): Adjust.
6370 (xml_process_xincludes): Add 'output' parameter, and return bool.
6371 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
6372 and return bool.
6373 * xml-tdesc.c: Include <unordered_map> and <string>.
6374 (tdesc_xml_cache): Delete.
6375 (tdesc_xml_cache_s): Delete.
6376 (xml_cache): Now an std::unordered_map.
6377 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
6378 (target_fetch_description_xml): Change return type to
6379 gdb::optional<std::string>, and adjust.
6380 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
6381 (target_fetch_description_xml): Change return type to
6382 gdb::optional<std::string>.
6383
6384 2017-04-18 Pedro Alves <palves@redhat.com>
6385
6386 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6387 unittests/optional-selftests.c.
6388 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
6389 * unittests/optional-selftests.c: New file.
6390 * unittests/optional/assignment/1.cc: New file.
6391 * unittests/optional/assignment/2.cc: New file.
6392 * unittests/optional/assignment/3.cc: New file.
6393 * unittests/optional/assignment/4.cc: New file.
6394 * unittests/optional/assignment/5.cc: New file.
6395 * unittests/optional/assignment/6.cc: New file.
6396 * unittests/optional/assignment/7.cc: New file.
6397 * unittests/optional/cons/copy.cc: New file.
6398 * unittests/optional/cons/default.cc: New file.
6399 * unittests/optional/cons/move.cc: New file.
6400 * unittests/optional/cons/value.cc: New file.
6401 * unittests/optional/in_place.cc: New file.
6402 * unittests/optional/observers/1.cc: New file.
6403 * unittests/optional/observers/2.cc: New file.
6404
6405 2017-04-18 Pedro Alves <palves@redhat.com>
6406
6407 * common/gdb_optional.h: Include common/traits.h.
6408 (in_place_t): New type.
6409 (in_place): New constexpr variable.
6410 (optional::optional): Remove member initialization of
6411 m_instantiated.
6412 (optional::optional(in_place_t...)): New constructor.
6413 (optional::~optional): Use reset.
6414 (optional::optional(const optional&)): New.
6415 (optional::optional(const optional&&)): New.
6416 (optional::optional(T &)): New.
6417 (optional::optional(T &&)): New.
6418 (operator::operator=(const optional &)): New.
6419 (operator::operator=(optional &&)): New.
6420 (operator::operator= (const T &))
6421 (operator::operator= (T &&))
6422 (operator::emplace (Args &&... args)): Return a T&. Use reset.
6423 (operator::reset): New.
6424 (operator::m_instantiated):: Add in-class initializer.
6425 * common/traits.h: Include <type_traits>.
6426 (struct And): New types.
6427
6428 2017-04-18 Pedro Alves <palves@redhat.com>
6429
6430 * xml-support.c: Include <vector>.
6431 (scope_level::scope_level(const gdb_xml_element *))
6432 (scope_level::scope_level(scope_level&&)): New.
6433 (scope_level::~scope_level): New.
6434 (scope_level_s): Delete.
6435 (gdb_xml_parser::scopes): Now a std::vector.
6436 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
6437 Use std::vector.
6438 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
6439 scope cleanup code.
6440 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
6441 of the scopes member. Use std::vector::emplace_back.
6442
6443 2017-04-18 Pedro Alves <palves@redhat.com>
6444
6445 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
6446 a bool.
6447 (gdb_xml_end_element): Change type of first parameter.
6448 (gdb_xml_cleanup): Rename to ...
6449 (gdb_xml_parser::~gdb_xml_parser): ... this.
6450 (gdb_xml_create_parser_and_cleanup): Delete with ...
6451 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
6452 to this new ctor.
6453 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
6454 using gdb_xml_create_parser_and_cleanup.
6455 (xinclude_parsing_data): Add ctor/dtor.
6456 (xml_xinclude_cleanup): Delete.
6457 (xml_process_xincludes): Create a local xinclude_parsing_data
6458 instead of heap-allocating one. Create a local gdb_xml_parser
6459 instead of heap-allocating one with
6460 gdb_xml_create_parser_and_cleanup.
6461
6462 2017-04-18 John Baldwin <jhb@FreeBSD.org>
6463
6464 PR threads/20743
6465 * fbsd-nat.c (resume_one_thread_cb): Remove.
6466 (resume_all_threads_cb): Remove.
6467 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
6468 iterate_over_threads.
6469
6470 2017-04-17 Joel Brobecker <brobecker@adacore.com>
6471
6472 * NEWS: Create a new section for the next release branch.
6473 Rename the section of the current branch, now that it has
6474 been cut.
6475
6476 2017-04-17 Joel Brobecker <brobecker@adacore.com>
6477
6478 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
6479 * version.in: Bump version to 8.0.50.DATE-git.
6480
6481 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
6482
6483 PR gdb/21385
6484 * windows-nat.c (windows_create_inferior): Declare 'allargs'
6485 independently of the host, and fix build breakage on Cygwin.
6486
6487 2017-04-13 Pedro Alves <palves@redhat.com>
6488
6489 * inferior.c (free_inferior): Convert to ...
6490 (inferior::~inferior): ... this dtor.
6491 (inferior::inferior): New ctor, factored out from ...
6492 (add_inferior_silent): ... here. Allocate the inferior with a new
6493 expression.
6494 (delete_inferior): Call delete instead of free_inferior.
6495 * inferior.h (gdb_environ, continuation): Forward declare.
6496 (inferior): Now a class. Add in-class initialization to all
6497 members. Make boolean fields bool, except 'detaching'.
6498 (inferior::inferior): New explicit ctor.
6499 (inferior::~inferior): New.
6500
6501 2017-04-13 Pedro Alves <palves@redhat.com>
6502
6503 * inferior.c (init_inferior_list): Delete.
6504 * inferior.h (init_inferior_list): Delete.
6505
6506 2017-04-13 Pedro Alves <palves@redhat.com>
6507
6508 PR threads/13217
6509 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
6510 (top level): Call it twice, with different thread sets.
6511
6512 2017-04-13 Pedro Alves <palves@redhat.com>
6513
6514 * thread.c: Include <algorithm>.
6515 (thread_array_cleanup): Delete.
6516 (scoped_inc_dec_ref): New class.
6517 (live_threads_count): New function.
6518 (set_thread_refcount): Delete.
6519 (tp_array_compar_ascending): Now a bool.
6520 (tp_array_compar): Convert to a std::sort comparison function.
6521 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
6522 and live_threads_count.
6523
6524 2017-04-13 Pedro Alves <palves@redhat.com>
6525
6526 * infrun.c (follow_fork_inferior): Also switch the current
6527 inferior.
6528
6529 2017-04-13 Pedro Alves <palves@redhat.com>
6530
6531 * breakpoint.c (watch_command_1): Save watchpoint-frame info
6532 before calling create_internal_breakpoint.
6533
6534 2017-04-13 Pedro Alves <palves@redhat.com>
6535
6536 * fork-child.c (execv_argv): New class.
6537 (breakup_args): Refactored as ...
6538 (execv_argv::init_for_no_shell): .. this method of execv_argv.
6539 Copy arguments to storage and replace separators with NULL
6540 terminators in place.
6541 (escape_bang_in_quoted_argument): Adjust to return bool.
6542 (execv_argv::execv_argv): New ctor.
6543 (execv_argv::init_for_shell): New method, factored out from
6544 fork_inferior. Don't strdup strings into the vector.
6545 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
6546 Remove free_vector_argv call.
6547
6548 2017-04-13 Yao Qi <yao.qi@linaro.org>
6549
6550 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
6551 tdep->rx_psw_type.
6552
6553 2017-04-13 Yao Qi <yao.qi@linaro.org>
6554
6555 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
6556 * rx-tdep.c (rx_gdbarch_init): Likewise.
6557
6558 2017-04-13 Pedro Alves <palves@redhat.com>
6559
6560 * breakpoint.h (struct breakpoint): Reindent.
6561
6562 2017-04-13 Pedro Alves <palves@redhat.com>
6563
6564 * breakpoint.c (bp_location): Rename to ...
6565 (bp_locations): ... this. All references updated.
6566 (bp_location_count): Rename to ...
6567 (bp_locations_count): ... this. All references updated.
6568 (bp_location_placed_address_before_address_max): Rename to ...
6569 (bp_locations_placed_address_before_address_max): ... this. All
6570 references updated.
6571 (bp_location_shadow_len_after_address_max): Rename to ...
6572 (bp_locations_shadow_len_after_address_max): ... this. All
6573 references updated.
6574 (bp_location_compare_addrs): Rename to ...
6575 (bp_locations_compare_addrs): ... this. All references updated.
6576 (bp_location_compare):Rename to ...
6577 (bp_locations_compare): ... this. All references updated.
6578 (bp_location_target_extensions_update): Rename to ...
6579 (bp_locations_target_extensions_update): ... this. All references
6580 updated.
6581
6582 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6583
6584 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
6585 * common/common.m4: Check headers 'termios.h', 'termio.h' and
6586 'sgtty.h'.
6587 * common/gdb_termios.h: New file, with parts of "terminal.h".
6588 * inflow.c: Include "gdb_termios.h".
6589 * ser-unix.c: Include "gdb_termios.h".
6590 * terminal.h: Move terminal-related defines to
6591 "common/gdb_termios.h".
6592
6593 2017-04-12 Tom Tromey <tom@tromey.com>
6594
6595 * probe.c (parse_probes): Update.
6596 * location.h (delete_event_location): Don't declare.
6597 (event_location_deleter::operator()): Update.
6598 * location.c (event_location_deleter::operator()): Rename from
6599 delete_event_location.
6600 * linespec.h (linespec_result) <location>: Change type to
6601 event_location_up.
6602 * linespec.c (canonicalize_linespec, event_location_to_sals)
6603 (decode_objc): Update.
6604 (linespec_result): Don't call delete_event_location.
6605 * breakpoint.c (create_breakpoints_sal)
6606 (bkpt_probe_create_sals_from_location)
6607 (strace_marker_create_sals_from_location): Update.
6608
6609 2017-04-12 Tom Tromey <tom@tromey.com>
6610
6611 * linespec.h (struct linespec_result): Add constructor and
6612 destructor.
6613 (init_linespec_result, destroy_linespec_result)
6614 (make_cleanup_destroy_linespec_result): Don't declare.
6615 * linespec.c (init_linespec_result): Remove.
6616 (linespec_result::~linespec_result): Rename from
6617 destroy_linespec_result. Update.
6618 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
6619 Remove.
6620 * breakpoint.c (create_breakpoint, break_range_command)
6621 (decode_location_default): Update.
6622 * ax-gdb.c (agent_command_1): Update.
6623
6624 2017-04-12 Tom Tromey <tom@tromey.com>
6625
6626 * remote.c (remote_download_tracepoint): Update.
6627 * python/py-breakpoint.c (bppy_get_location): Update.
6628 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
6629 (gdbscm_breakpoint_location): Update.
6630 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
6631 * breakpoint.h (struct breakpoint) <location, location_range_end>:
6632 Change type to event_location_up.
6633 * breakpoint.c (create_overlay_event_breakpoint)
6634 (create_longjmp_master_breakpoint)
6635 (create_std_terminate_master_breakpoint)
6636 (create_exception_master_breakpoint)
6637 (breakpoint_event_location_empty_p, print_breakpoint_location)
6638 (print_one_breakpoint_location, create_thread_event_breakpoint)
6639 (init_breakpoint_sal, create_breakpoint)
6640 (print_recreate_ranged_breakpoint, break_range_command)
6641 (init_ada_exception_breakpoint, say_where): Update.
6642 (base_breakpoint_dtor): Don't call delete_event_location.
6643 (bkpt_print_recreate, tracepoint_print_recreate)
6644 (dprintf_print_recreate, update_static_tracepoint)
6645 (breakpoint_re_set_default): Update.
6646
6647 2017-04-12 Tom Tromey <tom@tromey.com>
6648
6649 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
6650 type of "to_do". Update.
6651 (compute_stack_depth): Use std::vector.
6652
6653 2017-04-12 Tom Tromey <tom@tromey.com>
6654
6655 * printcmd.c (find_instruction_backward): Use std::vector.
6656
6657 2017-04-12 Tom Tromey <tom@tromey.com>
6658
6659 * symfile.c (objfilep): Remove typedef.
6660 (reread_symbols): Use a std::vector.
6661
6662 2017-04-12 Tom Tromey <tom@tromey.com>
6663
6664 * mi/mi-main.c (exec_direction_forward): Remove.
6665 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
6666 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6667 scoped_restore.
6668 * guile/guile.c (guile_repl_command, guile_command)
6669 (gdbscm_execute_gdb_command): Use scoped_restore.
6670 * go-exp.y (go_parse): Use scoped_restore.
6671 * d-exp.y (d_parse): Use scoped_restore.
6672 * cli/cli-decode.c (cmd_func): Use scoped_restore.
6673 * c-exp.y (c_parse): Use scoped_restore.
6674
6675 2017-04-12 Tom Tromey <tom@tromey.com>
6676
6677 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
6678 (mi_parse): Update return type.
6679 (mi_parse_free): Remove.
6680 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
6681 (mi_parse::~mi_parse): Rename from mi_parse_free.
6682 (mi_parse_cleanup): Remove.
6683 (mi_parse): Return a unique_ptr. Use new.
6684 * mi/mi-main.c (mi_execute_command): Update.
6685
6686 2017-04-12 Tom Tromey <tom@tromey.com>
6687
6688 * location.c (explicit_location_lex_one): Return a
6689 unique_xmalloc_ptr.
6690 (string_to_explicit_location): Update. Remove cleanups.
6691
6692 2017-04-12 Tom Tromey <tom@tromey.com>
6693
6694 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
6695 (compare_value_and_voffset): Change type. Update.
6696 (compute_vtable_size): Change type of "offset_vec".
6697 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
6698 (gnuv3_get_typeid): Remove extraneous declaration.
6699
6700 2017-04-12 Tom Tromey <tom@tromey.com>
6701
6702 * charset.h (wchar_iterator): Fix comment.
6703
6704 2017-04-12 Tom Tromey <tom@tromey.com>
6705
6706 * charset.c (iconv_wrapper): New class.
6707 (cleanup_iconv): Remove.
6708 (convert_between_encodings): Use it.
6709
6710 2017-04-12 Tom Tromey <tom@tromey.com>
6711
6712 * symfile.h (increment_reading_symtab): Update type.
6713 * symfile.c (decrement_reading_symtab): Remove.
6714 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
6715 * psymtab.c (psymtab_to_symtab): Update.
6716 * dwarf2read.c (dw2_instantiate_symtab): Update.
6717
6718 2017-04-12 Tom Tromey <tom@tromey.com>
6719
6720 * jit.c (struct jit_reader): Declare separately. Add constructor
6721 and destructor. Change type of "handle".
6722 (loaded_jit_reader): Define separately.
6723 (jit_reader_load): Update. New "new".
6724 (jit_reader_unload_command): Use "delete".
6725 * gdb-dlfcn.h (struct dlclose_deleter): New.
6726 (gdb_dlhandle_up): New typedef.
6727 (gdb_dlopen, gdb_dlsym): Update types.
6728 (gdb_dlclose): Remove.
6729 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
6730 (gdb_dlsym): Change type of "handle".
6731 (make_cleanup_dlclose): Remove.
6732 (dlclose_deleter::operator()): Rename from gdb_dlclose.
6733 * compile/compile-c-support.c (load_libcc): Update.
6734
6735 2017-04-12 Tom Tromey <tom@tromey.com>
6736
6737 * symtab.h (find_pcs_for_symtab_line): Change return type.
6738 * symtab.c (find_pcs_for_symtab_line): Change return type.
6739 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
6740 type of "vec". Update.
6741 (ltpy_get_pcs_for_line): Update.
6742 * linespec.c (decode_digits_ordinary): Update.
6743
6744 2017-04-12 Tom Tromey <tom@tromey.com>
6745
6746 * tracepoint.c (actions_command): Update.
6747 * python/python.c (python_command, python_interactive_command):
6748 Update.
6749 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6750 * guile/guile.c (guile_command): Update.
6751 * defs.h (read_command_lines, read_command_lines_1): Return
6752 command_line_up.
6753 (command_lines_deleter): New struct.
6754 (command_line_up): New typedef.
6755 * compile/compile.c (compile_code_command)
6756 (compile_print_command): Update.
6757 * cli/cli-script.h (get_command_line, copy_command_lines): Return
6758 command_line_up.
6759 (make_cleanup_free_command_lines): Remove.
6760 * cli/cli-script.c (get_command_line, read_command_lines_1)
6761 (copy_command_lines): Return command_line_up.
6762 (while_command, if_command, read_command_lines, define_command)
6763 (document_command): Update.
6764 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
6765 Remove.
6766 * breakpoint.h (breakpoint_set_commands): Change type of
6767 "commands".
6768 * breakpoint.c (breakpoint_set_commands): Change type of
6769 "commands". Update.
6770 (do_map_commands_command, update_dprintf_command_list)
6771 (create_tracepoint_from_upload): Update.
6772
6773 2017-04-12 Tom Tromey <tom@tromey.com>
6774
6775 * tracepoint.c (scope_info): Update.
6776 * spu-tdep.c (spu_catch_start): Update.
6777 * python/python.c (gdbpy_decode_line): Update.
6778 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
6779 * python/py-breakpoint.c (bppy_init): Update.
6780 * probe.c (parse_probes): Update.
6781 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
6782 * location.h (event_location_deleter): New struct.
6783 (event_location_up): New typedef.
6784 (new_linespec_location, new_address_location, new_probe_location)
6785 (new_explicit_location, copy_event_location)
6786 (string_to_event_location, string_to_event_location_basic)
6787 (string_to_explicit_location): Update return type.
6788 (make_cleanup_delete_event_location): Remove.
6789 * location.c (new_linespec_location, new_address_location)
6790 (new_probe_location, new_explicit_location, copy_event_location):
6791 Return event_location_up.
6792 (delete_event_location_cleanup)
6793 (make_cleanup_delete_event_location): Remove.
6794 (string_to_explicit_location, string_to_event_location_basic)
6795 (string_to_event_location): Return event_location_up.
6796 * linespec.c (canonicalize_linespec, event_location_to_sals)
6797 (decode_line_with_current_source)
6798 (decode_line_with_last_displayed, decode_objc): Update.
6799 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6800 * completer.c (location_completer): Update.
6801 * cli/cli-cmds.c (edit_command, list_command): Update.
6802 * breakpoint.c (create_overlay_event_breakpoint)
6803 (create_longjmp_master_breakpoint)
6804 (create_std_terminate_master_breakpoint)
6805 (create_exception_master_breakpoint)
6806 (create_thread_event_breakpoint): Update.
6807 (init_breakpoint_sal): Update. Remove some dead code.
6808 (create_breakpoint_sal): Change type of "location". Update.
6809 (create_breakpoints_sal, create_breakpoint, break_command_1)
6810 (dprintf_command, break_range_command, until_break_command)
6811 (init_ada_exception_breakpoint)
6812 (strace_marker_create_sals_from_location)
6813 (update_static_tracepoint, trace_command, ftrace_command)
6814 (strace_command, create_tracepoint_from_upload): Update.
6815 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6816 * ax-gdb.c (agent_command_1): Update.
6817
6818 2017-04-12 Pedro Alves <palves@redhat.com>
6819
6820 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
6821 * configure.tgt: Handle i[34567]86-*-go32* and
6822 i[34567]86-*-msdosdjgpp*.
6823 * i386-tdep.c (i386_svr4_reg_to_regnum):
6824 Make extern.
6825 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
6826 i386-go32-tdep.c.
6827 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
6828 * i386-go32-tdep.c: New file.
6829 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
6830 declarations.
6831
6832 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
6833
6834 * aix-thread.c (pd_status2str): Change return type to const char *.
6835
6836 2017-04-12 Pedro Alves <palves@redhat.com>
6837
6838 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
6839 calls to set_gdbarch_gnu_triplet_regexp.
6840
6841 2017-04-12 Pedro Alves <palves@redhat.com>
6842
6843 PR gdb/21323
6844 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
6845 New enum value.
6846 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
6847 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
6848 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
6849 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
6850 * gdbarch.h, gdbarch.c: Regenerate.
6851 * aarch64-tdep.c (aarch64_gdbarch_init): Override
6852 gdbarch_wchar_bit and gdbarch_wchar_signed.
6853 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
6854 * arm-tdep.c (arm_gdbarch_init): Likewise.
6855 * avr-tdep.c (avr_gdbarch_init): Likewise.
6856 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6857 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
6858 * i386-tdep.c (i386_go32_init_abi): Likewise.
6859 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6860 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6861 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6862 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6863 * sh-tdep.c (sh_gdbarch_init): Likewise.
6864 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6865 * sparc64-tdep.c (sparc64_init_abi): Likewise.
6866 * windows-tdep.c (windows_init_abi): Likewise.
6867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6868
6869 2017-04-12 Pedro Alves <palves@redhat.com>
6870
6871 PR c++/21323
6872 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
6873 cplus_primitive_type_char32_t>: New enum values.
6874 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
6875 and cplus_primitive_type_char32_t.
6876 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
6877 32, use the archtecture's built-in type for char16_t and char32_t,
6878 respectively. Otherwise, fallback to init_integer_type as before,
6879 but make the type unsigned, and issue a complaint.
6880 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
6881
6882 2017-04-12 Alan Hayward <alan.hayward@arm.com>
6883
6884 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
6885 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
6886
6887 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6888
6889 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
6890 'const char *'.
6891
6892 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6893
6894 * common/common-utils.c (free_vector_argv): New function.
6895 * common/common-utils.h: Include <vector>.
6896 (free_vector_argv): New prototype.
6897 * darwin-nat.c (darwin_create_inferior): Rewrite function
6898 prototype in order to constify "exec_file" and accept a
6899 "std::string" for "allargs".
6900 * fork-child.c: Include <vector>.
6901 (breakup_args): Rewrite function, using C++.
6902 (fork_inferior): Rewrite function header, constify "exec_file_arg"
6903 and accept "std::string" for "allargs". Update the code to
6904 calculate "argv" based on "allargs". Update calls to "exec_fun"
6905 and "execvp".
6906 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
6907 order to constify "exec_file" and accept a "std::string" for
6908 "allargs".
6909 * go32-nat.c (go32_create_inferior): Likewise.
6910 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
6911 * infcmd.c (run_command_1): Constify "exec_file". Use
6912 "std::string" for inferior arguments.
6913 * inferior.h (fork_inferior): Update prototype.
6914 * linux-nat.c (linux_nat_create_inferior): Rewrite function
6915 prototype in order to constify "exec_file" and accept a
6916 "std::string" for "allargs".
6917 * nto-procfs.c (procfs_create_inferior): Likewise.
6918 * procfs.c (procfs_create_inferior): Likewise.
6919 * remote-sim.c (gdbsim_create_inferior): Likewise.
6920 * remote.c (extended_remote_run): Update code to accept
6921 "std::string" as argument.
6922 (extended_remote_create_inferior): Rewrite function prototype in
6923 order to constify "exec_file" and accept a "std::string" for
6924 "allargs".
6925 * rs6000-nat.c (super_create_inferior): Likewise.
6926 (rs6000_create_inferior): Likewise.
6927 * target.h (struct target_ops) <to_create_inferior>: Likewise.
6928 * windows-nat.c (windows_create_inferior): Likewise.
6929
6930 2017-04-11 Pedro Alves <palves@redhat.com>
6931
6932 * thread.c: Fix whitespace throughout.
6933
6934 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
6935
6936 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
6937
6938 2017-04-11 Alan Hayward <alan.hayward@arm.com>
6939
6940 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
6941
6942 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
6943
6944 PR gdb/21364
6945 * osdata.c (info_osdata): Check if 'type' is an empty string
6946 instead of NULL.
6947
6948 2017-04-10 Pedro Alves <palves@redhat.com>
6949
6950 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
6951 (ptid_to_global_thread_id, in_thread_list)
6952 (do_captured_list_thread_ids, set_resumed, set_running)
6953 (set_executing, set_stop_requested, finish_thread_state)
6954 (validate_registers_access, can_access_registers_ptid)
6955 (print_thread_info_1, switch_to_thread)
6956 (do_restore_current_thread_cleanup)
6957 (make_cleanup_restore_current_thread, thread_command)
6958 (thread_name_command): Use operator== instead of ptid_equal.
6959
6960 2017-04-10 Pedro Alves <palves@redhat.com>
6961
6962 * thread.c (struct current_thread_cleanup) <next>: Delete field.
6963 (current_thread_cleanup_chain): Delete.
6964 (restore_current_thread_cleanup_dtor)
6965 (make_cleanup_restore_current_thread): Remove references to
6966 current_thread_cleanup_chain.
6967
6968 2017-04-10 Alan Hayward <alan.hayward@arm.com>
6969
6970 * msp430-tdep.c (msp430_pseudo_register_read): Never return
6971 REG_UNKNOWN.
6972
6973 2017-04-10 Yao Qi <yao.qi@linaro.org>
6974
6975 PR gdb/19942
6976 * gdbthread.h (thread_info::deletable): New method.
6977 (thread_info::incref): New method.
6978 (thread_info::decref): New method.
6979 (thread_info::refcount): Move it to private.
6980 * infrun.c (save_stop_context): Call inc_refcount.
6981 (release_stop_context_cleanup): Likewise.
6982 * thread.c (set_thread_exited): New function.
6983 (init_thread_list): Delete "tp" only it is deletable, otherwise
6984 call set_thread_exited.
6985 (delete_thread_1): Call set_thread_exited.
6986 (current_thread_cleanup) <inferior_pid>: Remove.
6987 <thread>: New field.
6988 (restore_current_thread_ptid_changed): Removed.
6989 (do_restore_current_thread_cleanup): Adjust.
6990 (restore_current_thread_cleanup_dtor): Don't call
6991 find_thread_ptid.
6992 (set_thread_refcount): Use dec_refcount.
6993 (make_cleanup_restore_current_thread): Adjust.
6994 (thread_apply_all_command): Call inc_refcount.
6995 (_initialize_thread): Don't call
6996 observer_attach_thread_ptid_changed.
6997
6998 2017-04-10 Yao Qi <yao.qi@linaro.org>
6999
7000 * thread.c (delete_thread_1): Hoist code on marking thread as
7001 exited.
7002
7003 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7004
7005 * windows-nat.c (windows_detach): Initialize ptid with
7006 minus_one_ptid.
7007
7008 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7009
7010 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7011
7012 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7013
7014 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7015 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7016 (bfin_pseudo_register_write): Likewise
7017
7018 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7019
7020 * common/ptid.h (struct ptid): Change to...
7021 (class ptid_t): ... this.
7022 <ptid_t>: New constructors.
7023 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
7024 matches>: New methods.
7025 <make_null, make_minus_one>: New static methods.
7026 <pid>: Rename to...
7027 <m_pid>: ...this.
7028 <lwp>: Rename to...
7029 <m_lwp>: ...this.
7030 <tid>: Rename to...
7031 <m_tid>: ...this.
7032 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
7033 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
7034 as references, move comment to class ptid_t.
7035 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
7036 ptid_t static methods.
7037 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
7038 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
7039 Take ptid arguments as references, implement using ptid_t methods.
7040 * unittests/ptid-selftests.c: New file.
7041 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7042 unittests/ptid-selftests.c.
7043 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
7044
7045 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7046
7047 * python/python.c (python_run_simple_file): Cast mode literal to
7048 non-const char pointer as expected by PyFile_FromString.
7049
7050 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
7051
7052 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
7053 minus_one_ptid and null_ptid.
7054
7055 2017-04-05 Pedro Alves <palves@redhat.com>
7056
7057 * warning.m4 (build_warnings): Remove -Wno-write-strings.
7058 * configure: Regenerate.
7059
7060 2017-04-05 Pedro Alves <palves@redhat.com>
7061
7062 * ada-exp.y (yyerror): Constify.
7063 * ada-lang.c (bound_name, get_selections)
7064 (ada_variant_discrim_type)
7065 (ada_variant_discrim_name, ada_value_struct_elt)
7066 (ada_lookup_struct_elt_type, is_unchecked_variant)
7067 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
7068 (catch_ada_exception_command_split)
7069 (catch_ada_assert_command_split, catch_assert_command)
7070 (ada_op_name): Constify.
7071 * ada-lang.h (ada_yyerror, get_selections)
7072 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
7073 * arc-tdep.c (arc_print_frame_cache): Constify.
7074 * arm-tdep.c (arm_skip_stub): Constify.
7075 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
7076 (gen_aggregate_elt_ref): Constify.
7077 * bcache.c (print_bcache_statistics): Constify.
7078 * bcache.h (print_bcache_statistics): Constify.
7079 * break-catch-throw.c (catch_exception_command_1):
7080 * breakpoint.c (struct ep_type_description::description):
7081 Constify.
7082 (add_solib_catchpoint): Constify.
7083 (catch_fork_command_1): Add cast.
7084 (add_catch_command): Constify.
7085 * breakpoint.h (add_catch_command, add_solib_catchpoint):
7086 Constify.
7087 * bsd-uthread.c (bsd_uthread_state): Constify.
7088 * buildsym.c (patch_subfile_names): Constify.
7089 * buildsym.h (next_symbol_text_func, patch_subfile_names):
7090 Constify.
7091 * c-exp.y (yyerror): Constify.
7092 (token::oper): Constify.
7093 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
7094 * c-varobj.c (cplus_describe_child): Constify.
7095 * charset.c (find_charset_names): Add cast.
7096 (find_charset_names): Constify array and add const_cast.
7097 * cli/cli-cmds.c (complete_command, cd_command): Constify.
7098 (edit_command): Constify.
7099 * cli/cli-decode.c (lookup_cmd): Constify.
7100 * cli/cli-dump.c (dump_memory_command, dump_value_command):
7101 Constify.
7102 (struct dump_context): Constify.
7103 (add_dump_command, restore_command): Constify.
7104 * cli/cli-script.c (get_command_line): Constify.
7105 * cli/cli-script.h (get_command_line): Constify.
7106 * cli/cli-utils.c (check_for_argument): Constify.
7107 * cli/cli-utils.h (check_for_argument): Constify.
7108 * coff-pe-read.c (struct read_pe_section_data): Constify.
7109 * command.h (lookup_cmd): Constify.
7110 * common/print-utils.c (decimal2str): Constify.
7111 * completer.c (gdb_print_filename): Constify.
7112 * corefile.c (set_gnutarget): Constify.
7113 * cp-name-parser.y (yyerror): Constify.
7114 * cp-valprint.c (cp_print_class_member): Constify.
7115 * cris-tdep.c (cris_register_name, crisv32_register_name):
7116 Constify.
7117 * d-exp.y (yyerror): Constify.
7118 (struct token::oper): Constify.
7119 * d-lang.h (d_yyerror): Constify.
7120 * dbxread.c (struct header_file_location::name): Constify.
7121 (add_old_header_file, add_new_header_file, last_function_name)
7122 (dbx_next_symbol_text, add_bincl_to_list)
7123 (find_corresponding_bincl_psymtab, set_namestring)
7124 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
7125 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
7126 * defs.h (command_line_input, print_address_symbolic)
7127 (deprecated_readline_begin_hook): Constify.
7128 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
7129 Constify.
7130 * event-top.c (handle_line_of_input): Constify and add cast.
7131 * exceptions.c (catch_errors): Constify.
7132 * exceptions.h (catch_errors): Constify.
7133 * expprint.c (print_subexp_standard, op_string, op_name)
7134 (op_name_standard, dump_raw_expression, dump_raw_expression):
7135 * expression.h (op_name, op_string, dump_raw_expression):
7136 Constify.
7137 * f-exp.y (yyerror): Constify.
7138 (struct token::oper): Constify.
7139 (struct f77_boolean_val::name): Constify.
7140 * f-lang.c (f_word_break_characters): Constify.
7141 * f-lang.h (f_yyerror): Constify.
7142 * fork-child.c (fork_inferior): Add cast.
7143 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
7144 (new_variant): Constify.
7145 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
7146 * gdbarch.c: Regenerate.
7147 * gdbcore.h (set_gnutarget): Constify.
7148 * go-exp.y (yyerror): Constify.
7149 (token::oper): Constify.
7150 * go-lang.h (go_yyerror): Constify.
7151 * go32-nat.c (go32_sysinfo): Constify.
7152 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
7153 * guile/scm-cmd.c (cmdscm_function): Constify.
7154 * guile/scm-param.c (pascm_param_value): Constify.
7155 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
7156 (h8300sx_register_name): Constify.
7157 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
7158 Constify.
7159 * ia64-tdep.c (ia64_register_names): Constify.
7160 * infcmd.c (construct_inferior_arguments): Constify.
7161 (path_command, attach_post_wait): Constify.
7162 * language.c (show_range_command, show_case_command)
7163 (unk_lang_error): Constify.
7164 * language.h (language_defn::la_error)
7165 (language_defn::la_name_of_this): Constify.
7166 * linespec.c (decode_line_2): Constify.
7167 * linux-thread-db.c (thread_db_err_str): Constify.
7168 * lm32-tdep.c (lm32_register_name): Constify.
7169 * m2-exp.y (yyerror): Constify.
7170 * m2-lang.h (m2_yyerror): Constify.
7171 * m32r-tdep.c (m32r_register_names): Constify and make static.
7172 * m68hc11-tdep.c (m68hc11_register_names): Constify.
7173 * m88k-tdep.c (m88k_register_name): Constify.
7174 * macroexp.c (appendmem): Constify.
7175 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
7176 (upgrade_type, parse_external, parse_partial_symbols)
7177 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
7178 (new_symbol): Constify.
7179 * memattr.c (mem_info_command): Constify.
7180 * mep-tdep.c (register_name_from_keyword): Constify.
7181 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
7182 Constify.
7183 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
7184 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
7185 * mi/mi-main.c (captured_mi_execute_command): Constify and add
7186 cast.
7187 (mi_execute_async_cli_command): Constify.
7188 * mips-tdep.c (mips_register_name): Constify.
7189 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
7190 (am33_register_name, am33_2_register_name)
7191 * moxie-tdep.c (moxie_register_names): Constify.
7192 * nat/linux-osdata.c (osdata_type): Constify fields.
7193 * nto-tdep.c (nto_parse_redirection): Constify.
7194 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
7195 (lookup_child_selector): Constify.
7196 (objc_methcall::name): Constify.
7197 * objc-lang.h (lookup_objc_class, lookup_child_selector)
7198 (lookup_struct_typedef): Constify.
7199 * objfiles.c (pc_in_section): Constify.
7200 * objfiles.h (pc_in_section): Constify.
7201 * p-exp.y (struct token::oper): Constify.
7202 (yyerror): Constify.
7203 * p-lang.h (pascal_yyerror): Constify.
7204 * parser-defs.h (op_name_standard): Constify.
7205 (op_print::string): Constify.
7206 (exp_descriptor::op_name): Constify.
7207 * printcmd.c (print_address_symbolic): Constify.
7208 * psymtab.c (print_partial_symbols): Constify.
7209 * python/py-breakpoint.c (stop_func): Constify.
7210 (bppy_get_expression): Constify.
7211 * python/py-cmd.c (cmdpy_completer::name): Constify.
7212 (cmdpy_function): Constify.
7213 * python/py-event.c (evpy_add_attribute)
7214 (gdbpy_initialize_event_generic): Constify.
7215 * python/py-event.h (evpy_add_attribute)
7216 (gdbpy_initialize_event_generic): Constify.
7217 * python/py-evts.c (add_new_registry): Constify.
7218 * python/py-finishbreakpoint.c (outofscope_func): Constify.
7219 * python/py-framefilter.c (get_py_iter_from_func): Constify.
7220 * python/py-inferior.c (get_buffer): Add cast.
7221 * python/py-param.c (parm_constant::name): Constify.
7222 * python/py-unwind.c (fprint_frame_id): Constify.
7223 * python/python.c (gdbpy_parameter_value): Constify.
7224 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
7225 * remote.c (memory_packet_config::name): Constify.
7226 (show_packet_config_cmd, remote_write_bytes)
7227 (remote_buffer_add_string):
7228 * reverse.c (exec_reverse_once): Constify.
7229 * rs6000-tdep.c (variant::name, variant::description): Constify.
7230 * rust-exp.y (rustyyerror): Constify.
7231 * rust-lang.c (rust_op_name): Constify.
7232 * rust-lang.h (rustyyerror): Constify.
7233 * serial.h (serial_ops::name): Constify.
7234 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
7235 (sh_sh3e_register_name, sh_sh2e_register_name)
7236 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
7237 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
7238 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
7239 (sh_sh4al_dsp_register_name): Constify.
7240 * sh64-tdep.c (sh64_register_name): Constify.
7241 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
7242 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
7243 * stabsread.c (patch_block_stabs, read_type_number)
7244 (ref_map::stabs, ref_add, process_reference)
7245 (symbol_reference_defined, define_symbol, define_symbol)
7246 (error_type, read_type, read_member_functions, read_cpp_abbrev)
7247 (read_one_struct_field, read_struct_fields, read_baseclasses)
7248 (read_tilde_fields, read_struct_type, read_array_type)
7249 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
7250 (read_huge_number, read_range_type, read_args, common_block_start)
7251 (find_name_end): Constify.
7252 * stabsread.h (common_block_start, define_symbol)
7253 (process_one_symbol, symbol_reference_defined, ref_add):
7254 * symfile.c (get_section_index, add_symbol_file_command):
7255 * symfile.h (get_section_index): Constify.
7256 * target-descriptions.c (tdesc_type::name): Constify.
7257 (tdesc_free_type): Add cast.
7258 * target.c (find_default_run_target):
7259 (add_deprecated_target_alias, find_default_run_target)
7260 (target_announce_detach): Constify.
7261 (do_option): Constify.
7262 * target.h (add_deprecated_target_alias): Constify.
7263 * thread.c (print_thread_info_1): Constify.
7264 * top.c (deprecated_readline_begin_hook, command_line_input):
7265 Constify.
7266 (init_main): Add casts.
7267 * top.h (handle_line_of_input): Constify.
7268 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
7269 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
7270 (tfind_command): Rename to ...
7271 (tfind_command_1): ... this and constify.
7272 (tfind_command): New function.
7273 (tfind_end_command, tfind_start_command): Adjust.
7274 (encode_source_string): Constify.
7275 * tracepoint.h (encode_source_string): Constify.
7276 * tui/tui-data.c (tui_partial_win_by_name): Constify.
7277 * tui/tui-data.h (tui_partial_win_by_name): Constify.
7278 * tui/tui-source.c (tui_set_source_content_nil): Constify.
7279 * tui/tui-source.h (tui_set_source_content_nil): Constify.
7280 * tui/tui-win.c (parse_scrolling_args): Constify.
7281 * tui/tui-windata.c (tui_erase_data_content): Constify.
7282 * tui/tui-windata.h (tui_erase_data_content): Constify.
7283 * tui/tui-winsource.c (tui_erase_source_content): Constify.
7284 * tui/tui.c (tui_enable): Add cast.
7285 * utils.c (defaulted_query): Constify.
7286 (init_page_info): Add cast.
7287 (puts_debug, subset_compare): Constify.
7288 * utils.h (subset_compare): Constify.
7289 * varobj.c (varobj_format_string): Constify.
7290 * varobj.h (varobj_format_string): Constify.
7291 * vax-tdep.c (vax_register_name): Constify.
7292 * windows-nat.c (windows_detach): Constify.
7293 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
7294 * xml-support.c (gdb_xml_end_element): Constify.
7295 * xml-tdesc.c (tdesc_start_reg): Constify.
7296 * xstormy16-tdep.c (xstormy16_register_name): Constify.
7297 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
7298 * xtensa-tdep.h (xtensa_register_t::name): Constify.
7299
7300 2017-04-05 Pedro Alves <palves@redhat.com>
7301
7302 * proc-api.c (struct trans): Constify.
7303 (procfs_note): Constify.
7304 * proc-events.c (struct trans, syscall_table):
7305 * proc-flags.c (struct trans): Constify.
7306 * proc-utils.h (procfs_note): Constify.
7307 * proc-why.c (struct trans): Constify.
7308 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
7309 (procfs_detach): Constify.
7310 * sol-thread.c (struct string_map): Constify.
7311 (td_err_string, td_state_string): Constify.
7312
7313 2017-04-05 Pedro Alves <palves@redhat.com>
7314
7315 * proc-api.c (procfs_filename): Don't initialize
7316 procfs_filename.
7317 (prepare_to_trace): Assume procfs_filename is non-NULL.
7318 (_initialize_proc_api): Give procfs_filename a default value here.
7319
7320 2017-04-05 Pedro Alves <palves@redhat.com>
7321
7322 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
7323 'cond_string' parameter.
7324 (extract_exception_regexp): Constify 'string' parameter.
7325 (catch_exception_command_1): Constify.
7326 * breakpoint.c (init_catchpoint)
7327 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
7328 parameter.
7329 (ep_parse_optional_if_clause, catch_fork_command_1)
7330 (catch_exec_command_1): Constify.
7331 * breakpoint.h (init_catchpoint): Constify 'cond_string'
7332 parameter.
7333 (ep_parse_optional_if_clause): Constify.
7334 * cli/cli-utils.c (remove_trailing_whitespace)
7335 (check_for_argument): Constify.
7336 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
7337 non-const overload.
7338 (check_for_argument): Likewise.
7339
7340 2017-04-05 Pedro Alves <palves@redhat.com>
7341
7342 * event-top.c (command_line_handler): Add cast to execute_command
7343 call.
7344 * record-btrace.c (cmd_record_btrace_bts_start)
7345 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
7346 (cmd_record_btrace_start): Add cast to execute_command call.
7347 * record-full.c (record_full_goto_insn):
7348 * record.c (record_start, record_stop): Add cast to
7349 execute_command_to_string calls.
7350 (cmd_record_start): Add cast to execute_command calls.
7351
7352 2017-04-05 Pedro Alves <palves@redhat.com>
7353
7354 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
7355 static inline function.
7356 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
7357 array and use gdb_PyArg_ParseTupleAndKeywords.
7358 * python/py-cmd.c (cmdpy_init): Likewise.
7359 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7360 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
7361 (infpy_search_memory): Likewise.
7362 * python/py-objfile.c (objfpy_add_separate_debug_file)
7363 (gdbpy_lookup_objfile): Likewise.
7364 * python/py-symbol.c (gdbpy_lookup_symbol)
7365 (gdbpy_lookup_global_symbol): Likewise.
7366 * python/py-type.c (gdbpy_lookup_type): Likewise.
7367 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
7368 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
7369 Likewise.
7370
7371 2017-04-05 Pedro Alves <palves@redhat.com>
7372
7373 * python/python-internal.h (gdb_PyGetSetDef): New type.
7374 * python/py-block.c (block_object_getset)
7375 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
7376 * python/py-event.c (event_object_getset)
7377 (finish_breakpoint_object_getset): Likewise.
7378 * python/py-inferior.c (inferior_object_getset): Likewise.
7379 * python/py-infthread.c (thread_object_getset): Likewise.
7380 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
7381 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
7382 * python/py-objfile.c (objfile_getset): Likewise.
7383 * python/py-progspace.c (pspace_getset): Likewise.
7384 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
7385 Likewise.
7386 * python/py-record.c (recpy_record_getset): Likewise.
7387 * python/py-symbol.c (symbol_object_getset): Likewise.
7388 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
7389 Likewise.
7390 * python/py-type.c (type_object_getset, field_object_getset):
7391 Likewise.
7392 * python/py-value.c (value_object_getset): Likewise.
7393
7394 2017-04-05 Pedro Alves <palves@redhat.com>
7395
7396 * python/python-internal.h (gdb_PyObject_CallMethod)
7397 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
7398 New functions.
7399 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
7400 (PySys_GetObject, PySys_SetPath): New macros.
7401
7402 2017-04-05 Pedro Alves <palves@redhat.com>
7403
7404 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
7405 info_osdata_command.
7406 * osdata.c (info_osdata_command): Rename to ...
7407 (info_osdata): ... this. Constify 'type' parameter, and remove
7408 the 'from_tty' parameter. Accept NULL TYPE.
7409 (info_osdata_command): New function.
7410 * osdata.h (info_osdata_command): Remove declaration.
7411 (info_osdata): New declaration.
7412
7413 2017-04-05 Pedro Alves <palves@redhat.com>
7414
7415 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
7416 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
7417 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
7418 parameter.
7419 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
7420 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
7421 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
7422 parameter.
7423 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
7424 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
7425 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7426 (mi_cmd_file_list_exec_source_files)
7427 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
7428 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7429 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
7430 parameter.
7431 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
7432 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
7433 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7434 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
7435 (mi_cmd_stack_info_frame): Constify 'command' parameter.
7436 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
7437 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
7438 'command' parameter.
7439 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
7440 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
7441 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
7442 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
7443 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
7444 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
7445 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
7446 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
7447 (mi_cmd_var_set_update_range): Constify 'command' parameter.
7448 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
7449 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
7450 parameter.
7451 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
7452 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
7453 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
7454 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
7455 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
7456 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
7457 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
7458 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
7459 (mi_cmd_data_list_changed_registers)
7460 (mi_cmd_data_write_register_values)
7461 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
7462 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
7463 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
7464 (mi_cmd_list_features, mi_cmd_list_target_features)
7465 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
7466 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
7467 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
7468 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
7469 (mi_cmd_trace_frame_collected): Constify 'command'
7470 parameter.
7471 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
7472 'command' parameter.
7473
7474 2017-04-05 Pedro Alves <palves@redhat.com>
7475
7476 * ada-lang.c (ada_completer_word_break_characters): Now a const
7477 array.
7478 (ada_get_gdb_completer_word_break_characters): Constify.
7479 * completer.c (gdb_completer_command_word_break_characters)
7480 (gdb_completer_file_name_break_characters)
7481 (gdb_completer_quote_characters): Now const arrays.
7482 (get_gdb_completer_quote_characters): Constify.
7483 (set_rl_completer_word_break_characters): New function.
7484 (set_gdb_completion_word_break_characters)
7485 (complete_line_internal): Use it.
7486 * completer.h (get_gdb_completer_quote_characters): Constify.
7487 (set_rl_completer_word_break_characters): Declare.
7488 * f-lang.c (f_word_break_characters): Constify.
7489 * language.c (default_word_break_characters): Constify.
7490 * language.h (language_defn::la_word_break_characters): Constify.
7491 (default_word_break_characters): Constify.
7492 * top.c (init_main): Use set_rl_completer_word_break_characters.
7493
7494 2017-04-05 Pedro Alves <palves@redhat.com>
7495
7496 * aix-thread.c (aix_thread_pid_to_str)
7497 (aix_thread_extra_thread_info): Constify.
7498 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
7499 * bsd-uthread.c (bsd_uthread_extra_thread_info)
7500 (bsd_uthread_pid_to_str): Constify.
7501 * corelow.c (core_pid_to_str): Constify.
7502 * darwin-nat.c (darwin_pid_to_str): Constify.
7503 * fbsd-nat.c (fbsd_pid_to_str): Constify.
7504 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
7505 Constify.
7506 * gnu-nat.c (gnu_pid_to_str): Constify.
7507 * go32-nat.c (go32_pid_to_str): Constify.
7508 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
7509 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
7510 * inferior.c (inferior_pid_to_str): Constify.
7511 * linux-nat.c (linux_nat_pid_to_str): Constify.
7512 * linux-tdep.c (linux_core_pid_to_str): Constify.
7513 * linux-thread-db.c (thread_db_pid_to_str)
7514 (thread_db_extra_thread_info): Constify.
7515 * nto-tdep.c (nto_extra_thread_info): Constify.
7516 * nto-tdep.h (nto_extra_thread_info): Constify.
7517 * obsd-nat.c (obsd_pid_to_str): Constify.
7518 * procfs.c (procfs_pid_to_str): Constify.
7519 * ravenscar-thread.c (ravenscar_extra_thread_info)
7520 (ravenscar_pid_to_str): Constify.
7521 * remote-sim.c (gdbsim_pid_to_str): Constify.
7522 * remote.c (remote_threads_extra_info, remote_pid_to_str):
7523 Constify.
7524 * sol-thread.c (solaris_pid_to_str): Constify.
7525 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
7526 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
7527 * target.c (default_pid_to_str, target_pid_to_str)
7528 (normal_pid_to_str, default_pid_to_str): Constify.
7529 * target.h (target_ops::to_pid_to_str)
7530 (target_ops::to_extra_thread_info): Constify.
7531 (target_pid_to_str, normal_pid_to_str): Constify.
7532 * windows-nat.c (windows_pid_to_str): Constify.
7533 * gdbarch.sh (core_pid_to_str): Constify.
7534 * target-delegates.c: Regenerate.
7535 * gdbarch.h, gdbarch.c: Regenerate.
7536
7537 2017-04-05 Pedro Alves <palves@redhat.com>
7538
7539 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
7540 the memory of the temporary warning_pre_print override.
7541 * utils.c (warning_pre_print): Constify.
7542 * utils.h (warning_pre_print): Constify.
7543
7544 2017-04-05 Pedro Alves <palves@redhat.com>
7545
7546 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
7547 (shell_command): New function.
7548 (make_command): Use std::string.
7549 (init_cli_cmds): Register shell_command instead of shell_escape.
7550
7551 2017-04-05 Pedro Alves <palves@redhat.com>
7552
7553 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
7554 * tracepoint.c (default_collect): Don't initialize.
7555
7556 2017-04-05 Pedro Alves <palves@redhat.com>
7557
7558 * macroexp.c (macro_buffer::shared): Now a bool.
7559 (init_buffer): Update.
7560 (init_shared_buffer): Constify 'addr' parameter.
7561 (substitute_args, expand, macro_expand, macro_expand_next): Remove
7562 casts.
7563
7564 2017-04-05 Pedro Alves <palves@redhat.com>
7565
7566 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
7567 * disasm.c (set_disassembler_options): Constify local.
7568 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
7569
7570 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7571
7572 PR gdb/21352
7573 * tracefile.c (tsave_command): Fix argument parsing for '-r'
7574 option.
7575
7576 2017-04-05 Yao Qi <yao.qi@linaro.org>
7577
7578 * frame.c (frame_unwind_register_unsigned): Call
7579 frame_unwind_register_value.
7580
7581 2017-04-05 Yao Qi <yao.qi@linaro.org>
7582
7583 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
7584 Use gdb_test_multiple, and don't match anchor.
7585
7586 2017-04-05 Pedro Alves <palves@redhat.com>
7587
7588 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
7589 (Write After Approval): Remove Simon Marchi.
7590
7591 2017-04-05 Pedro Alves <palves@redhat.com>
7592
7593 * common/gdb_optional.h (optional::optional): Make constexpr and
7594 initialize m_dummy.
7595
7596 2017-04-04 John Baldwin <jhb@FreeBSD.org>
7597
7598 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7599 (amd64fbsd_jmp_buf_reg_offset): Remove.
7600 (amd64fbsd_supply_uthread): Remove function.
7601 (amd64fbsd_collect_uthread): Remove function.
7602 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
7603 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
7604 (x86_64-*-freebsd*): Remove bsd-uthread.o.
7605 (fbsd-nat.c): Update comment.
7606 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
7607 (i386fbsd_jmp_buf_reg_offset): Remove.
7608 (i386fbsd_supply_uthread): Remove function.
7609 (i386fbsd_collect_uthread): Remove function.
7610 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
7611
7612 2017-04-04 John Baldwin <jhb@FreeBSD.org>
7613
7614 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
7615 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
7616 * NEWS: Mention that support for FreeBSD/alpha was removed.
7617 * alpha-fbsd-tdep.c: Delete file.
7618 * config/alpha/fbsd.mh: Delete file.
7619 * configure.host: Delete alpha*-*-freebsd* and
7620 alpha*-*-kfreebsd*-gnu.
7621 * configure.tgt: Delete alpha*-*-freebsd* and
7622 alpha*-*-kfreebsd*-gnu.
7623
7624 2017-04-04 John Baldwin <jhb@FreeBSD.org>
7625
7626 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
7627 amd64bsd_store_inferior_registers): Use ptid from regcache.
7628
7629 2017-04-04 Pedro Alves <palves@redhat.com>
7630
7631 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
7632 data fields, make them private and add "m_" prefixes.
7633 (lnp_state_machine::lnp_state_machine): New ctor.
7634 (record_line, check_line_address, handle_set_discriminator)
7635 (handle_set_address, handle_advance_pc, handle_special_opcode)
7636 (handle_advance_line, handle_set_file, handle_negate_stmt)
7637 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
7638 (end_sequence, advance_line): New methods.
7639 (m_gdbarch, m_record_lines_p): New fields.
7640 (lnp_reader_state): Delete.
7641 (dwarf_record_line): Rename to ...
7642 (lnp_state_machine::record_line): ... adjust.
7643 (init_lnp_state_machine): Delete.
7644 (lnp_state_machine::lnp_state_machine): New.
7645 (check_line_address): Rename to ...
7646 (lnp_state_machine::check_line_address): This.
7647 (dwarf_decode_lines_1): Remove reference to "reader_state".
7648 Adjust lnp_state_machine having a non-default ctor. Use bool.
7649 State machine internal state manipulation moved to
7650 lnp_state_machine methods.
7651
7652 2017-04-04 Pedro Alves <palves@redhat.com>
7653
7654 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7655 unittests/offset-type-selftests.c.
7656 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
7657 * common/offset-type.h: New file.
7658 * common/preprocessor.h: New file.
7659 * common/traits.h: New file.
7660 * common/valid-expr.h: New file.
7661 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
7662 sect_offset and cu_offset strong typedefs throughout.
7663 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
7664 typedefs throughout.
7665 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
7666 sect_offset and cu_offset strong typedefs throughout.
7667 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
7668 typedefs throughout.
7669 * gdbtypes.h: Include "common/offset-type.h".
7670 (cu_offset): Now an offset type (strong typedef) instead of a
7671 struct.
7672 (sect_offset): Likewise.
7673 (union call_site_parameter_u): Rename "param_offset" field to
7674 "param_cu_off".
7675 * unittests/offset-type-selftests.c: New file.
7676
7677 2017-04-04 Pedro Alves <palves@redhat.com>
7678
7679 * common/underlying.h: New file.
7680 * dwarf2read.c: Include "common/gdb_optional.h" and
7681 "common/underlying.h".
7682 (dir_index, file_name_index): New types.
7683 (file_entry): Use them.
7684 (file_entry::include): Use to_underlying.
7685 (line_header::add_file_name): Use dir_index.
7686 (read_formatted_entries): Use gdb::optional. Read form before
7687 writting to file_entry.
7688 (dwarf_decode_line_header): Use dir_index.
7689 (lnp_state_machine::current_file): Use to_underlying.
7690 (lnp_state_machine::file): Change type to file_name_index.
7691 (dwarf_record_line): Use to_underlying.
7692 (init_lnp_state_machine): Use file_name_index.
7693 (dwarf_decode_lines_1): Use dir_index and file_name_index.
7694
7695 2017-04-04 Pedro Alves <palves@redhat.com>
7696
7697 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
7698 operator bool, has_value and get methods.
7699
7700 2017-04-04 Pedro Alves <palves@redhat.com>
7701
7702 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
7703 fields.
7704 (line_header): Initialize all data fields. Change type of
7705 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
7706 Change type of include_dirs to std::vector<const char *>. Remove
7707 num_include_dirs, include_dirs_size. Change type of file_names to
7708 std::vector<file_entry>. Remove num_file_names, file_names_size.
7709 (line_header::line_header): New.
7710 (line_header::add_include_dir, line_header::add_file_name): New
7711 methods.
7712 (line_header::include_dir_at): Remove NULL check.
7713 (line_header::file_name_at): Add const overload.
7714 (line_header_up): New unique_ptr typedef.
7715 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
7716 std::vector. Remove free_line_header call.
7717 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
7718 free_line_header call.
7719 (free_cu_line_header): Delete.
7720 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
7721 (setup_type_unit_groups): Use line_header_up instead of cleanups.
7722 Adjust to use std::vector.
7723 (free_line_header): Delete.
7724 (free_line_header_voidp): Use delete.
7725 (add_include_dir): Replace with ...
7726 (line_header::add_include_dir): ... this method. Use std::vector.
7727 (add_file_name): Replace with ...
7728 (line_header::add_file_name): ... this method. Use std::vector.
7729 (add_include_dir_stub): Delete.
7730 (read_formatted_entries): Remove memset.
7731 (dwarf_decode_line_header): Return a line_header_up instead of a
7732 raw pointer. Remove cleanup handling. Pass lambdas to
7733 read_formatted_entries. Adjust to use line_header methods.
7734 (dwarf_decode_lines_1): Adjust to use line_header methods.
7735 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
7736 use std::vector.
7737
7738 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
7739
7740 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
7741 instead of struct ptid.
7742
7743 2017-05-04 Alan Hayward <alan.hayward@arm.com>
7744
7745 * frame.c (get_frame_register_bytes): Unwind using value.
7746 (put_frame_register_bytes): Likewise.
7747
7748 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
7749
7750 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
7751 aggregate-like.
7752
7753 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7754
7755 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
7756
7757 2017-03-29 Yao Qi <yao.qi@linaro.org>
7758
7759 * gdbthread.h (struct thread_info): Declare constructor and
7760 destructor. Add some in-class member initializers.
7761 * thread.c (free_thread): Remove.
7762 (init_thread_list): Call delete instead of free_thread.
7763 (new_thread): Call thread_info constructor.
7764 (thread_info::thread_info): New function.
7765 (thread_info::~thread_info): New function.
7766 (delete_thread_1): Call delete instead of free_thread.
7767 (make_cleanup_restore_current_thread): Move tp and frame to
7768 inner block.
7769
7770 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7771
7772 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
7773 (arc_skip_prologue): Likewise.
7774 (arc_make_frame_cache): Likewise.
7775 (arc_pv_get_operand): New function.
7776 (arc_is_in_prologue): Likewise.
7777 (arc_analyze_prologue): Likewise.
7778 (arc_print_frame_cache): Likewise.
7779 (MAX_PROLOGUE_LENGTH): New constant.
7780
7781 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7782
7783 * configure.tgt: Add arc-insn.o.
7784 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
7785 (dump_arc_instruction_command): New function.
7786 (arc_fprintf_disasm): Likewise.
7787 (arc_disassemble_info): Likewise.
7788 (arc_insn_get_operand_value): Likewise.
7789 (arc_insn_get_operand_value_signed): Likewise.
7790 (arc_insn_get_memory_base_reg): Likewise.
7791 (arc_insn_get_memory_offset): Likewise.
7792 (arc_insn_get_branch_target): Likewise.
7793 (arc_insn_dump): Likewise.
7794 (arc_insn_get_linear_next_pc): Likewise.
7795 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
7796 (arc_disassemble_info): Likewise.
7797 (arc_insn_get_branch_target): Likewise.
7798 (arc_insn_get_linear_next_pc): Likewise.
7799 * NEWS: Mention new "maint print arc arc-instruction".
7800
7801 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7802
7803 * arc-tdep (maintenance_print_arc_list): New variable.
7804 (maintenance_print_arc_command): New function.
7805
7806 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
7807
7808 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
7809 Add "limm" and "reserved".
7810 (arc_cannot_fetch_register, arc_cannot_store_register): Add
7811 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
7812 * arc-tdep.h (arc_regnum): Likewise.
7813
7814 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7815
7816 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
7817 for THREADPTR register.
7818 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
7819 register.
7820 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
7821 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
7822 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
7823
7824 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7825
7826 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
7827 registers above gdbarch_num_regs (gdbarch) as privileged in
7828 call0 ABI.
7829
7830 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7831
7832 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
7833 for a single specified register or for all registers in
7834 a0_base..a0_base + C0_NREGS range.
7835 (supply_gregset_reg): Call regcache_raw_supply for a single
7836 specified register or for all registers in a0_base..a0_base +
7837 C0_NREGS range.
7838
7839 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7840
7841 * arch/xtensa.h (C0_NREGS): Add definition.
7842 * xtensa-tdep.c (C0_NREGS): Remove definition.
7843
7844 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7845
7846 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
7847 Drop xtensa_default_isa initialization.
7848 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
7849
7850 2017-03-27 Pedro Alves <palves@redhat.com>
7851
7852 * dwarf2read.c (file_entry) <dir_index>: Add comment.
7853 (file_entry::include_dir): New method.
7854 (line_header::include_dir_at, line_header::file_name_at): New
7855 methods.
7856 (setup_type_unit_groups, setup_type_unit_groups)
7857 (psymtab_include_file_name): Simplify using the new methods.
7858 (lnp_state_machine) <the_line_header>: New field.
7859 <file>: Add comment.
7860 (lnp_state_machine::current_file): New method.
7861 (dwarf_record_line): Simplify using the new methods.
7862 (init_lnp_state_machine): Initialize the "the_line_header" field.
7863 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
7864 Simplify using the new methods.
7865
7866 2017-03-27 Pedro Alves <palves@redhat.com>
7867
7868 * cp-name-parser.y (make_empty): Delete.
7869 (demangler_special, nested_name, ptr_operator, array_indicator)
7870 (direct_declarator, declarator_1): Use fill_comp instead of
7871 make_empty.
7872
7873 2017-03-27 Pedro Alves <palves@redhat.com>
7874
7875 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
7876 to ATTRIBUTE_PRINTF.
7877 * solib-target.c (library_list_start_list): Print "string" not
7878 "version".
7879 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
7880 gdb_xml_error call.
7881
7882 2017-03-27 Pedro Alves <palves@redhat.com>
7883
7884 * dwarf2read.c (struct file_and_directory): New.
7885 (dwarf2_get_dwz_file): Adjust to use std::string.
7886 (dw2_get_file_names_reader): Adjust to use file_and_directory.
7887 (find_file_and_directory): Adjust to return a file_and_directory
7888 object.
7889 (read_file_scope): Adjust to use file_and_directory. Remove
7890 make_cleanup/do_cleanups calls.
7891 (open_and_init_dwp_file): Adjust to use std::string. Remove
7892 make_cleanup/do_cleanups calls.
7893 * python/python.c (do_start_initialization): Adjust to ldirname
7894 returning a std::string.
7895 * utils.c (ldirname): Now returns a std::string.
7896 * utils.h (ldirname): Change return type to std::string.
7897 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
7898 returning a std::string.
7899 * xml-tdesc.c (file_read_description_xml): Likewise.
7900
7901 2017-03-24 Alan Hayward <alan.hayward@arm.com>
7902
7903 * regcache.c (regcache_debug_print_register): New function.
7904 * regcache.h (regcache_debug_print_register): New declaration.
7905 * target.c (debug_print_register): Remove.
7906 (target_fetch_registers): Call regcache_debug_print_register.
7907 (target_store_registers): Likewise.
7908
7909 2017-03-24 Pádraig Brady <pbrady@fb.com>
7910
7911 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
7912 reference beyond the 'lh->include_dirs' array before accessing to
7913 it.
7914 (psymtab_include_file_name): Likewise.
7915 (dwarf_decode_lines_1): Likewise.
7916 (dwarf_decode_lines): Likewise.
7917 (file_file_name): Likewise.
7918
7919 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
7920
7921 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
7922 inferior_ptid.
7923 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7924 ps_lsetfpregs): Likewise.
7925 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
7926 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7927 ps_lsetfpregs): Likewise.
7928 * target.c (target_fetch_registers, target_store_registers):
7929 Remove asserts.
7930
7931 2017-03-23 Alan Hayward <alan.hayward@arm.com>
7932
7933 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
7934
7935 2017-03-23 Yao Qi <yao.qi@linaro.org>
7936
7937 * aarch64-tdep.c (aarch64_process_record_test): Declare.
7938 (_initialize_aarch64_tdep): Register it.
7939 (aarch64_record_load_store): Handle PRFM instruction.
7940 (aarch64_process_record_test): New function.
7941
7942 2017-03-23 Yao Qi <yao.qi@linaro.org>
7943
7944 * aarch64-tdep.c (aarch64_record_load_store): Fix code
7945 indentation.
7946
7947 2017-03-23 Yao Qi <yao.qi@linaro.org>
7948
7949 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
7950
7951 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7952
7953 python/python.c (do_start_initialization): Fix memory leak.
7954
7955 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7956
7957 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
7958 using get_ptrace_pid.
7959 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
7960 inferior_ptid.
7961 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
7962 inferior_ptid instead of pid.
7963
7964 2017-03-22 Yao Qi <yao.qi@linaro.org>
7965
7966 * aarch64-tdep.c: Wrap locally used classes in anonymous
7967 namespace.
7968 * arm-tdep.c: Likewise.
7969 * linespec.c: Likewise.
7970 * ui-out.c: Likewise.
7971
7972 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
7973
7974 PR gdb/19637
7975 * python/lib/gdb/printer/bound_registers.py: Import sys.
7976
7977 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
7978
7979 * windows-nat.c (do_windows_fetch_inferior_registers): Add
7980 windows_thread_info parameter and use it instead of
7981 current_thread.
7982 (windows_fetch_inferior_registers): Don't set current_thread,
7983 pass the thread to do_windows_fetch_inferior_registers. Use
7984 ptid from regcache instead of inferior_ptid.
7985 (do_windows_store_inferior_registers): Add windows_thread_info
7986 parameter and use it instead of current_thread.
7987 (windows_store_inferior_registers): Don't set current_thread,
7988 pass the thread to do_windows_store_inferior_registers. Use
7989 ptid from regcache instead of inferior_ptid.
7990
7991 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
7992
7993 * ser-mingw.c (ser_windows_raw): Remove reference to
7994 struct serial::current_timeout.
7995
7996 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
7997
7998 PR tdep/20928
7999 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8000 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8001 (sparc64_fsr_type): Fix %fsr decoding.
8002
8003 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8004
8005 * python/py-record-btrace.c (btpy_insn_data): Change return type
8006 for Python 2.
8007
8008 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8009
8010 * spu-linux-nat.c (spu_fetch_inferior_registers,
8011 spu_store_inferior_registers): Use ptid from regcache, set and
8012 restore inferior_ptid.
8013 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8014 Likewise.
8015
8016 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8017
8018 * i386-linux-nat.c (fetch_register, store_register,
8019 i386_linux_fetch_inferior_registers,
8020 i386_linux_store_inferior_registers): Use ptid from regcache.
8021 * ia64-linux-nat.c (ia64_linux_fetch_register,
8022 ia64_linux_store_register): Likewise.
8023 * inf-ptrace.c (inf_ptrace_fetch_register,
8024 inf_ptrace_store_register): Likewise.
8025 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
8026 m32r_linux_store_inferior_registers): Likewise.
8027 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
8028 m68kbsd_store_inferior_registers): Likewise.
8029 * m68k-linux-nat.c (fetch_register, store_register,
8030 m68k_linux_fetch_inferior_registers,
8031 m68k_linux_store_inferior_registers): Likewise.
8032 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
8033 m88kbsd_store_inferior_registers): Likewise.
8034 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
8035 mips_fbsd_store_inferior_registers): Likewise.
8036 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
8037 mips64_linux_regsets_store_registers): Likewise.
8038 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
8039 mipsnbsd_store_inferior_registers): Likewise.
8040 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
8041 mips64obsd_store_inferior_registers): Likewise.
8042 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
8043 Likewise.
8044 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
8045 ppcfbsd_store_inferior_registers): Likewise.
8046 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
8047 ppc_linux_store_inferior_registers): Likewise.
8048 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
8049 ppcnbsd_store_inferior_registers): Likewise.
8050 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
8051 ppcobsd_store_registers): Likewise.
8052 * procfs.c (procfs_fetch_registers, procfs_store_registers):
8053 Likewise.
8054 * ravenscar-thread.c (ravenscar_fetch_registers,
8055 ravenscar_store_registers, ravenscar_prepare_to_store):
8056 Likewise.
8057 * record-btrace.c (record_btrace_fetch_registers,
8058 record_btrace_store_registers, record_btrace_prepare_to_store):
8059 Likewise.
8060 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
8061 Lookup inferior using ptid from regcache, instead of
8062 current_inferior.
8063 * remote.c (remote_fetch_registers, remote_store_registers): Use
8064 ptid from regcache.
8065 * rs6000-nat.c (fetch_register, store_register): Likewise.
8066 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
8067 s390_linux_store_inferior_registers): Likewise.
8068 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
8069 shnbsd_store_inferior_registers): Likewise.
8070 * sol-thread.c (sol_thread_fetch_registers,
8071 sol_thread_store_registers): Likewise.
8072 * sparc-nat.c (sparc_fetch_inferior_registers,
8073 sparc_store_inferior_registers): Likewise.
8074 * tilegx-linux-nat.c (fetch_inferior_registers,
8075 store_inferior_registers): Likewise.
8076 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
8077 vaxbsd_store_inferior_registers): Likewise.
8078 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
8079 store_xtregs): Likewise.
8080
8081 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8082
8083 PR gdb/14441
8084 * NEWS: Mention support for rvalue references in GDB and python.
8085 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
8086 supports both lvalue and rvalue references.
8087
8088 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8089
8090 PR gdb/14441
8091 * gdbtypes.c (rank_one_type): Implement overloading
8092 resolution rules regarding rvalue references.
8093
8094 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8095
8096 PR gdb/14441
8097 * aarch64-tdep.c (aarch64_type_align)
8098 (aarch64_extract_return_value, aarch64_store_return_value): Change
8099 lvalue reference type checks to general reference type checks.
8100 * amd64-tdep.c (amd64_classify): Likewise.
8101 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
8102 Likewise.
8103 * arm-tdep.c (arm_type_align, arm_extract_return_value)
8104 (arm_store_return_value): Likewise.
8105 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
8106 * c-typeprint.c (c_print_type): Likewise.
8107 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
8108 (cplus_number_of_children, cplus_describe_child): Likewise.
8109 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
8110 * completer.c (expression_completer): Likewise.
8111 * cp-support.c (make_symbol_overload_list_adl_namespace):
8112 Likewise.
8113 * darwin-nat-info.c (info_mach_region_command): Likewise.
8114 * dwarf2loc.c (entry_data_value_coerce_ref)
8115 (value_of_dwarf_reg_entry): Likewise.
8116 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
8117 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
8118 Likewise.
8119 * findvar.c (extract_typed_address, store_typed_address):
8120 Likewise.
8121 * gdbtypes.c (rank_one_type): Likewise.
8122 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
8123 * infcall.c (value_arg_coerce): Likewise.
8124 * language.c (pointer_type): Likewise.
8125 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
8126 Likewise.
8127 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
8128 * mn10300-tdep.c (mn10300_type_align): Likewise.
8129 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
8130 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
8131 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
8132 Likewise.
8133 * printcmd.c (print_formatted, x_command): Likewise.
8134 * python/py-type.c (typy_get_composite, typy_template_argument):
8135 Likewise.
8136 * python/py-value.c (valpy_referenced_value)
8137 (valpy_get_dynamic_type, value_has_field): Likewise.
8138 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
8139 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
8140 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
8141 * spu-tdep.c (spu_scalar_value_p): Likewise.
8142 * symtab.c (lookup_symbol_aux): Likewise.
8143 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
8144 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
8145 Likewise.
8146 * valops.c (value_cast_pointers, value_cast)
8147 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
8148 (value_struct_elt, value_struct_elt_bitpos)
8149 (value_find_oload_method_list, find_overload_match)
8150 (value_rtti_indirect_type): Likewise.
8151 * valprint.c (val_print_scalar_type_p, generic_val_print):
8152 Likewise.
8153 * value.c (value_actual_type, value_as_address, unpack_long)
8154 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
8155 (coerce_ref): Likewise.
8156 * varobj.c (varobj_get_value_type): Likewise.
8157
8158 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8159
8160 PR gdb/14441
8161 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
8162 table of constants.
8163 * python/lib/gdb/command/explore.py: Support exploring values
8164 of rvalue reference types.
8165 * python/lib/gdb/types.py: Implement get_basic_type() for
8166 rvalue reference types.
8167 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
8168 constant.
8169 * python/py-value.c (valpy_getitem): Add an rvalue reference
8170 check.
8171 (valpy_reference_value): Add new parameter "refcode".
8172 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
8173 New wrappers for valpy_reference_value().
8174 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8175 (gdbpy_invoke_xmethod): Likewise.
8176
8177 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8178
8179 PR gdb/14441
8180 * dwarf2read.c (process_die, read_type_die_1): Handle the
8181 DW_TAG_rvalue_reference_type DIE.
8182 (read_tag_reference_type): Add new parameter "refcode".
8183
8184 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8185
8186 PR gdb/14441
8187 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
8188 (c_type_print_modifier, c_type_print_varspec_suffix)
8189 (c_type_print_base): Support printing rvalue reference types.
8190 * c-valprint.c (c_val_print, c_value_print): Support printing
8191 rvalue reference values.
8192
8193 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8194
8195 PR gdb/14441
8196 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
8197 typename.
8198 * cp-support.c (replace_typedefs): Handle
8199 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8200 * python/py-type.c (typy_lookup_type): Likewise.
8201
8202 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8203
8204 PR gdb/14441
8205 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
8206 * parse.c (insert_type): Change assert statement.
8207 (follow_types): Handle rvalue reference types.
8208 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
8209 constant.
8210
8211 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8212
8213 PR gdb/14441
8214 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
8215 value_ref() interface.
8216 * c-valprint.c (c_value_print): Likewise.
8217 * infcall.c (value_arg_coerce): Likewise.
8218 * python/py-value.c (valpy_reference_value): Likewise.
8219 * valops.c (value_cast, value_reinterpret_cast)
8220 (value_dynamic_cast, typecmp): Likewise.
8221 (value_ref): Parameterize by kind of return value reference type.
8222 * value.h (value_ref): Add new parameter "refcode".
8223
8224 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8225
8226 PR gdb/14441
8227 * dwarf2read.c (read_tag_reference_type): Use
8228 lookup_lvalue_reference_type() instead of lookup_reference_type().
8229 * eval.c (evaluate_subexp_standard): Likewise.
8230 * f-exp.y: Likewise.
8231 * gdbtypes.c (make_reference_type, lookup_reference_type):
8232 Generalize with rvalue reference types.
8233 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
8234 convenience wrappers for lookup_reference_type().
8235 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
8236 reference kind parameter.
8237 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
8238 wrappers for lookup_reference_type().
8239 * guile/scm-type.c (gdbscm_type_reference): Use
8240 lookup_lvalue_reference_type() instead of lookup_reference_type().
8241 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
8242 * parse.c (follow_types): Likewise.
8243 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
8244 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
8245 Likewise.
8246 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
8247 (gdbpy_invoke_xmethod): Likewise.
8248 * stabsread.c: Provide extra argument to make_reference_type()
8249 call.
8250 * valops.c (value_ref, value_rtti_indirect_type): Use
8251 lookup_lvalue_reference_type() instead of lookup_reference_type().
8252
8253 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
8254
8255 PR gdb/14441
8256 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
8257 (TYPE_IS_REFERENCE): New macro.
8258 (struct type): Add rvalue_reference_type field.
8259 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
8260
8261 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8262
8263 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
8264 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
8265 New function definition.
8266 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
8267 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
8268 New function declaration.
8269 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
8270 * mi/mi-interp.h: New file.
8271 * solib.c (info_sharedlibrary_command): Replace for loop with
8272 ALL_SO_LIBS macro
8273 * solib.h (update_solib_list): New function declaration.
8274 (so_list_head): Move macro.
8275 * solist.h (ALL_SO_LIBS): New macro.
8276
8277 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8278
8279 * infcmd.c (post_create_inferior): Remove unused argument in
8280 call to solib_add.
8281 * remote.c (remote_start_remote): Likewise.
8282 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
8283 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
8284 (enable_break): Likewise.
8285 * solib.c (update_solib_list): Remove unused target argument
8286 and its documentation.
8287 (solib_add): Remove unused target argument. Remove unused
8288 argument in call to update_solib_list.
8289 (info_sharedlibrary_command): Remove unused argument in call
8290 to update_solib_list.
8291 (sharedlibrary_command): Remove unused argument in call to
8292 solib_add.
8293 (handle_solib_event): Likewise.
8294 (reload_shared_libraries): Likewise.
8295 * solib.h (solib_add): Remove unused target argument.
8296
8297 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
8298
8299 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
8300 (s390_displaced_step_fixup): Cover relative branches with the
8301 default fixup handling. This fixes lack of support for some
8302 relative branch instructions.
8303
8304 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8305
8306 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
8307 ptid from regcache.
8308
8309 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8310
8311 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
8312 i386_darwin_store_inferior_registers): Use ptid from regcache.
8313
8314 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8315
8316 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
8317 i386bsd_store_inferior_registers): Use ptid from regcache.
8318
8319 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8320
8321 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
8322 hppaobsd_store_registers): Use ptid from regcache.
8323
8324 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8325
8326 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
8327 hppanbsd_store_registers): Use ptid from regcache.
8328
8329 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8330
8331 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
8332 from regcache. Use get_ptrace_pid.
8333
8334 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8335
8336 * corelow.c (get_core_register_section): Use ptid from regcache,
8337 update doc.
8338
8339 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8340
8341 * bsd-uthread.c (bsd_uthread_fetch_registers,
8342 bsd_uthread_store_registers): Use ptid from regcache, set and
8343 restore inferior_ptid.
8344
8345 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8346
8347 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
8348 fetch_fp_regs, store_register, store_regs, store_fp_register,
8349 store_fp_regs): Use ptid from regcache.
8350
8351 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
8352
8353 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
8354 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
8355 store_vfp_regs): Use ptid from regcache.
8356
8357 2017-03-17 Pedro Alves <palves@redhat.com>
8358
8359 PR remote/21188
8360 * ser-base.c (ser_base_wait_for): Add comment.
8361 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
8362 version.
8363 * ser-unix.c (hardwire_raw): Remove reference to
8364 scb->current_timeout.
8365 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
8366 (hardwire_ops): Install ser_base_readchar instead of
8367 hardwire_readchar.
8368 * serial.h (struct serial) <current_timeout, timeout_remaining>:
8369 Remove fields.
8370
8371 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
8372
8373 PR gdb/19637
8374 * python/lib/gdb/printer/bound_registers.py: Add support for
8375 Python 3.
8376
8377 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8378
8379 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
8380 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
8381 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
8382 byte_offset to subobj_byte_offset. Fix the handling of
8383 DWARF_VALUE_STACK on big-endian targets when coming via an
8384 implicit pointer.
8385 (dwarf2_evaluate_loc_desc): Adjust call to
8386 dwarf2_evaluate_loc_desc_full.
8387 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
8388 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
8389
8390 2017-03-16 Yao Qi <yao.qi@linaro.org>
8391
8392 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
8393 and REVSH instructions.
8394
8395 2017-03-16 Yao Qi <yao.qi@linaro.org>
8396
8397 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
8398 (arm_record_test): Declare.
8399 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
8400 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
8401 align with the manual.
8402 (thumb_record_misc): Adjust the code order to align with the
8403 manual.
8404 (thumb2_record_decode_insn_handler): Fix instruction matching.
8405 (instruction_reader_thumb): New class.
8406 (arm_record_test): New function.
8407
8408 2017-03-16 Yao Qi <yao.qi@linaro.org>
8409
8410 * arm-tdep.c (abstract_memory_reader): New class.
8411 (instruction_reader): New class.
8412 (extract_arm_insn): Add argument 'reader'. Callers updated.
8413 (decode_insn): Likewise.
8414
8415 2017-03-16 Doug Evans <dje@google.com>
8416
8417 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
8418 member. Change type of TYPE member to SCM. All uses updated.
8419 (lsscm_make_lazy_string_smob): Add assert.
8420 (lsscm_make_lazy_string): Flag bad length values.
8421 (lsscm_elt_type): New function.
8422 (gdbscm_lazy_string_to_value): Rewrite to use
8423 lsscm_safe_lazy_string_to_value.
8424 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
8425 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
8426 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
8427 in incoming type.
8428 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8429 * guile/scm-type.c (tyscm_scm_to_type): New function.
8430
8431 2017-03-15 Doug Evans <dje@google.com>
8432
8433 PR python/17728, python/18439, python/18779
8434 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
8435 member. Change type of TYPE member to PyObject *. All uses updated.
8436 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
8437 (gdbpy_create_lazy_string_object): Flag bad length values.
8438 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
8439 Handle typedefs in incoming type.
8440 (stpy_lazy_string_elt_type): New function.
8441 (gdbpy_extract_lazy_string): Call it.
8442 * python/py-value.c (valpy_lazy_string): Flag bad length values.
8443 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
8444 typedefs in incoming type.
8445
8446 2017-03-16 Doug Evans <dje@google.com>
8447
8448 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
8449 * guile/scm-type.c (tyscm_scm_to_type): New function.
8450
8451 2017-03-16 Jiong Wang <jiong.wang@arm.com>
8452
8453 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
8454 "ULONGEST" for "skip".
8455
8456 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8457
8458 PR gdb/21220
8459 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
8460 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
8461 (inf_ptrace_peek_poke): ...here. New function. Now also loop
8462 over ptrace peek/poke until end of buffer or error.
8463
8464 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
8465
8466 * parse.c (length_of_subexp): Make static.
8467 * parser-defs.h (length_of_subexp): Remove.
8468
8469 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
8470
8471 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
8472 as well.
8473
8474 2017-03-14 Pedro Alves <palves@redhat.com>
8475
8476 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
8477 (main): Use std::unique_ptr. Remove calls to
8478 cp_demangled_name_parse_free.
8479
8480 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
8483 alphabsd_store_inferior_registers): Use regcache->ptid instead
8484 of inferior_ptid.
8485
8486 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8487
8488 * aix-thread.c (aix_thread_fetch_registers,
8489 aix_thread_store_registers): Use regcache->ptid instead of
8490 inferior_ptid.
8491
8492 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8493
8494 * aarch64-linux-nat.c (fetch_gregs_from_thread,
8495 store_gregs_to_thread, fetch_fpregs_from_thread,
8496 store_fpregs_to_thread): Use regcache->ptid instead of
8497 inferior_ptid.
8498
8499 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8500
8501 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
8502 amd64_linux_fetch_inferior_registers): Use regcache->ptid
8503 instead of inferior_ptid.
8504
8505 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8506
8507 * target.c (target_fetch_registers, target_store_registers): Add
8508 assert.
8509
8510 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8511
8512 * regcache.h (regcache_get_ptid): New function.
8513 * regcache.c (regcache_get_ptid): New function.
8514
8515 2017-03-13 Mark Wielaard <mark@klomp.org>
8516
8517 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
8518
8519 2017-03-10 Keith Seitz <keiths@redhat.com>
8520
8521 PR c++/8218
8522 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
8523
8524 2017-03-08 Pedro Alves <palves@redhat.com>
8525
8526 PR gdb/18360
8527 * infrun.c (start_step_over, do_target_resume, resume)
8528 (restart_threads): Assert we're not resuming a thread that is
8529 meant to be stopped.
8530 (infrun_thread_stop_requested_callback): Delete.
8531 (infrun_thread_stop_requested): If the thread is internally
8532 stopped, queue a pending stop event and clear the thread's
8533 inline-frame state.
8534 (handle_stop_requested): New function.
8535 (handle_syscall_event, handle_inferior_event_1): Use
8536 handle_stop_requested.
8537 (handle_stop_requested): New function.
8538 (handle_signal_stop): Set the thread's stop_signal here instead of
8539 at caller.
8540 (finish_step_over): Clear step over info unconditionally.
8541 (handle_signal_stop): If the user had interrupted the event
8542 thread, consider the stop a random signal.
8543 (handle_signal_stop) <signal arrived while stepping over
8544 breakpoint>: Don't restart threads here.
8545 (stop_waiting): Don't clear step-over info here.
8546
8547 2017-03-08 Pedro Alves <palves@redhat.com>
8548
8549 PR 21206
8550 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
8551 goes to argument 2, not 1.
8552
8553 2017-03-08 Pedro Alves <palves@redhat.com>
8554
8555 PR cli/21218
8556 * top.c (gdb_readline_wrapper): Avoid passing NULL to
8557 display_gdb_prompt.
8558 (command_line_input): Add comment.
8559
8560 2017-03-08 Pedro Alves <palves@redhat.com>
8561
8562 PR tui/21216
8563 * tui/tui-file.c (tui_file::write): New.
8564 * tui/tui-file.h (tui_file): Override "write".
8565 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
8566 factored out from ...
8567 (tui_puts): ... here.
8568 (tui_putc): Use them.
8569 (tui_write): New function.
8570 * tui/tui-io.h (tui_write): Declare.
8571
8572 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8573
8574 * Makefile.in (SFILES): Replace "environ.c" with
8575 "common/environ.c".
8576 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
8577 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
8578 to...
8579 * common/environ.c: ... here.
8580 * environ.h: Moved to...
8581 * common/environ.h: ... here.
8582
8583 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8584
8585 * gdbarch.sh (pstring_ptr): New static function.
8586 (gdbarch_disassembler_options): Use it.
8587 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
8588 not valid_disassembler_option->name.
8589 * gdbarch.c: Regenerate.
8590
8591 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
8592
8593 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
8594
8595 2017-03-07 Pedro Alves <palves@redhat.com>
8596
8597 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
8598
8599 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
8600
8601 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
8602 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
8603 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
8604 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
8605
8606 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
8607
8608 * xtensa-linux-nat.c (fetch_gregs): Remove const.
8609
8610 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
8611
8612 * remote.c (remote_add_target_side_commands): Use range-based
8613 for loop.
8614
8615 2017-03-03 Yao Qi <yao.qi@linaro.org>
8616
8617 PR gdb/21165
8618 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
8619 value is lazy.
8620 * valprint.c (common_val_print): Likewise.
8621
8622 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
8623
8624 * NEWS: Mention new set/show disassembler-options commands.
8625 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
8626 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
8627 (prospective_options): New static variable.
8628 (gdb_disassembler::gdb_disassembler): Initialize
8629 m_di.disassembler_options.
8630 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
8631 (get_disassembler_options): New function.
8632 (set_disassembler_options): Likewise.
8633 (set_disassembler_options_sfunc): Likewise.
8634 (show_disassembler_options_sfunc): Likewise.
8635 (disassembler_options_completer): Likewise.
8636 (_initialize_disasm): Likewise.
8637 * disasm.h (get_disassembler_options): New prototype.
8638 (set_disassembler_options): Likewise.
8639 * gdbarch.sh (gdbarch_disassembler_options): New variable.
8640 (gdbarch_verify_disassembler_options): Likewise.
8641 * gdbarch.c: Regenerate.
8642 * gdbarch.h: Likewise.
8643 * arm-tdep.c (num_disassembly_options): Delete.
8644 (set_disassembly_style): Likewise.
8645 (arm_disassembler_options): New static variable.
8646 (set_disassembly_style_sfunc): Convert short style name into long
8647 option name. Call set_disassembler_options.
8648 (show_disassembly_style_sfunc): New function.
8649 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
8650 set_gdbarch_verify_disassembler_options.
8651 (_initialize_arm_tdep): Delete regnames variable and update callers.
8652 (arm_disassembler_options): Initialize.
8653 (disasm_options): New variable.
8654 (num_disassembly_options): Rename from this...
8655 (num_disassembly_styles): ...to this. Compute by scanning through
8656 disasm_options.
8657 (valid_disassembly_styles): Initialize using disasm_options.
8658 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
8659 set_arm_regname_option.
8660 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
8661 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
8662 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
8663 set_gdbarch_verify_disassembler_options.
8664 * s390-tdep.c (s390_disassembler_options): New static variable.
8665 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
8666 set_gdbarch_verify_disassembler_options.
8667
8668 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
8669
8670 * remote.c (remote_add_target_side_condition): Remove "struct"
8671 keyword from range-based for loop.
8672
8673 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
8674
8675 * remote.c (remote_add_target_side_condition): Use range-based
8676 for loop. Update comment.
8677
8678 2017-02-27 Yao Qi <yao.qi@linaro.org>
8679
8680 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
8681
8682 2017-02-26 Alan Hayward <alan.hayward@arm.com>
8683
8684 * regcache.c (regcache_raw_update): New function.
8685 (regcache_raw_read): Move code to regcache_raw_update.
8686 * regcache.h (regcache_raw_update): New declaration.
8687 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
8688
8689 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8690
8691 * dwarf2read.c (create_debug_type_hash_table): Initialize
8692 header.signature and header.type_offset_in_tu.
8693
8694 2017-02-24 Pedro Alves <palves@redhat.com>
8695
8696 * symtab.c (make_file_symbol_completion_list_1): Use
8697 add_symtab_completions.
8698
8699 2017-02-24 Alan Hayward <alan.hayward@arm.com>
8700
8701 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
8702
8703 2017-02-24 Alan Hayward <alan.hayward@arm.com>
8704
8705 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
8706 I386_MAX_REGISTER_SIZE.
8707 (i386_pseudo_register_write): Likewise.
8708 (i386_process_record): Likewise.
8709 * i387-tdep.c (i387_supply_xsave): Likewise.
8710 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
8711 (store_register): Likewise.
8712
8713 2017-02-23 Pedro Alves <palves@redhat.com>
8714
8715 * ada-lang.c: Include "common/function-view.h".
8716 (ada_iterate_over_symbols): Adjust to use function_view as
8717 callback type.
8718 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
8719 (ada_make_symbol_completion_list): Use a lambda.
8720 (ada_exc_search_name_matches): Delete.
8721 (name_matches_regex): New.
8722 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
8723 * compile/compile-c-support.c: Include "common/function-view.h".
8724 (print_one_macro): Change prototype to accept a ui_file pointer.
8725 (write_macro_definitions): Use a lambda.
8726 * dwarf2read.c: Include "common/function-view.h".
8727 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8728 (dw2_expand_symtabs_matching): Adjust to use function_view as
8729 callback type.
8730 * language.h: Include "common/function-view.h".
8731 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
8732 function_view as callback type.
8733 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
8734 * linespec.c: Include "common/function-view.h".
8735 (collect_info::add_symbol): New method.
8736 (struct symbol_and_data_callback, iterate_inline_only, struct
8737 symbol_matcher_data, iterate_name_matcher): Delete.
8738 (iterate_over_all_matching_symtabs): Adjust to use function_view
8739 as callback type and lambdas.
8740 (iterate_over_file_blocks): Adjust to use function_view as
8741 callback type.
8742 (decode_compound_collector): Now a class with private fields.
8743 (decode_compound_collector::release_symbols): New method.
8744 (collect_one_symbol): Rename to...
8745 (decode_compound_collector::operator()): ... this and adjust.
8746 (lookup_prefix_sym): decode_compound_collector construction bits
8747 move to decode_compound_collector ctor. Pass the
8748 decode_compound_collector object directly as callback. Remove
8749 cleanups and use decode_compound_collector::release_symbols
8750 instead.
8751 (symtab_collector): Now a class with private fields.
8752 (symtab_collector::release_symtabs): New method.
8753 (add_symtabs_to_list): Rename to...
8754 (symtab_collector::operator()): ... this and adjust.
8755 (collect_symtabs_from_filename): symtab_collector construction
8756 bits move to symtab_collector ctor. Pass the symtab_collector
8757 object directly as callback. Remove cleanups and use
8758 symtab_collector::release_symtabs instead.
8759 (collect_symbols): Delete.
8760 (add_matching_symbols_to_info): Use lambdas.
8761 * macrocmd.c (print_macro_callback): Delete.
8762 (info_macro_command): Use a lambda.
8763 (info_macros_command): Pass print_macro_definition as callable
8764 directly.
8765 (print_one_macro): Remove 'ignore' parameter.
8766 (macro_list_command): Adjust.
8767 * macrotab.c (macro_for_each_data::fn): Now a function_view.
8768 (macro_for_each_data::user_data): Delete field.
8769 (foreach_macro): Adjust to call the function_view.
8770 (macro_for_each): Adjust to use function_view as callback type.
8771 (foreach_macro_in_scope): Adjust to call the function_view.
8772 (macro_for_each_in_scope): Adjust to use function_view as callback
8773 type.
8774 * macrotab.h: Include "common/function-view.h".
8775 (macro_callback_fn): Declare a prototype instead of a pointer.
8776 Remove "user_data" parameter.
8777 (macro_for_each, macro_for_each_in_scope): Adjust to use
8778 function_view as callback type.
8779 * psymtab.c (partial_map_expand_apply)
8780 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
8781 Adjust to use function_view as callback type and to return bool.
8782 (psym_expand_symtabs_matching): Adjust to use function_view as
8783 callback types.
8784 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
8785 to use function_view as callback type and to return bool.
8786 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
8787 callback types.
8788 * symfile.c (expand_symtabs_matching): Adjust to use function_view
8789 as callback types.
8790 * symfile.h: Include "common/function-view.h".
8791 (expand_symtabs_file_matcher_ftype)
8792 (expand_symtabs_symbol_matcher_ftype)
8793 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
8794 return bool.
8795 (quick_symbol_functions::map_symtabs_matching_filename)
8796 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
8797 function_view as callback type and return bool.
8798 (expand_symtabs_matching): Adjust to use function_view as callback
8799 type.
8800 (maintenance_expand_name_matcher)
8801 (maintenance_expand_file_matcher): Delete.
8802 (maintenance_expand_symtabs): Use lambdas.
8803 * symtab.c (iterate_over_some_symtabs): Adjust to use
8804 function_view as callback types and return bool.
8805 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
8806 of a cleanup.
8807 (lookup_symtab_callback): Delete.
8808 (lookup_symtab): Use a lambda.
8809 (iterate_over_symbols): Adjust to use function_view as callback
8810 type.
8811 (struct search_symbols_data, search_symbols_file_matches)
8812 (search_symbols_name_matches): Delete.
8813 (search_symbols): Use a pair of lambdas.
8814 (struct add_name_data, add_macro_name, symbol_completion_matcher)
8815 (symtab_expansion_callback): Delete.
8816 (default_make_symbol_completion_list_break_on_1): Use lambdas.
8817 * symtab.h: Include "common/function-view.h".
8818 (iterate_over_some_symtabs): Adjust to use function_view as
8819 callback type and return bool.
8820 (iterate_over_symtabs): Adjust to use function_view as callback
8821 type.
8822 (symbol_found_callback_ftype): Remove 'data' parameter and return
8823 bool.
8824 (iterate_over_symbols): Adjust to use function_view as callback
8825 type.
8826
8827 2017-02-23 Pedro Alves <palves@redhat.com>
8828
8829 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
8830 (%.o) <unittests/%.c>: New pattern.
8831 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
8832 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
8833 * common/function-view.h: New file.
8834 * unittests/function-view-selftests.c: New file.
8835 * configure: Regenerate.
8836
8837 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
8838
8839 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
8840 inferior_ptid.
8841 * go32-nat.c (go32_thread_alive): Likewise.
8842
8843 2017-02-23 Yao Qi <yao.qi@linaro.org>
8844
8845 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
8846 delete.
8847
8848 2017-02-23 Yao Qi <yao.qi@linaro.org>
8849
8850 * varobj.c (varobj_clear_saved_item): Use delete instead of
8851 xfree.
8852 (update_dynamic_varobj_children): Likewise.
8853
8854 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8855
8856 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
8857
8858 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
8859
8860 * common/enum-flags.h (enum_flags::enum_flags): Initialize
8861 m_enum_value to 0 in default constructor.
8862
8863 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8864
8865 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
8866 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
8867 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
8868 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
8869 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
8870 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
8871 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
8872 IS_STORE_CONDITIONAL_INSN.
8873
8874 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8875
8876 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
8877
8878 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8879
8880 * NEWS (Changes since GDB 7.12): Add DWARF-5.
8881
8882 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8883
8884 * dwarf2read.c (skip_one_die, read_attribute_value)
8885 (dwarf2_const_value_attr, dump_die_shallow)
8886 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8887 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
8888
8889 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8890
8891 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
8892 (dwarf_parse_macro_header): Accept DWARF version 5.
8893 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
8894
8895 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
8898 DW_AT_GNU_*.
8899 * common/common-exceptions.h (enum errors): Likewise.
8900 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
8901 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
8902 (dwarf_expr_context::execute_stack_op): Likewise.
8903 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
8904 Likewise.
8905 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
8906 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8907 (show_entry_values_debug, call_site_to_target_addr)
8908 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
8909 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
8910 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
8911 (value_of_dwarf_block_entry, indirect_pieced_value)
8912 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
8913 (disassemble_dwarf_expression): Likewise.
8914 * dwarf2read.c (process_die, inherit_abstract_dies)
8915 (read_call_site_scope): Likewise.
8916 * gdbtypes.h (struct func_type, struct call_site_parameter)
8917 (struct call_site): Likewise.
8918 * stack.c (read_frame_arg): Likewise.
8919 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
8920
8921 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8922
8923 * defs.h (read_unsigned_leb128): New declaration.
8924 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
8925 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
8926 (dwarf2_find_location_expression): Call also
8927 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
8928 * dwarf2loc.h (dwarf2_version): New declaration.
8929 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
8930 rnglists.
8931 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
8932 .debug_rnglists.
8933 (struct dwop_section_names): Add loclists_dwo.
8934 (dwop_section_names): Add .debug_loclists.dwo.
8935 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
8936 (struct dwarf2_per_cu_data): Add dwarf_version.
8937 (struct dwo_sections): Add loclists.
8938 (struct attr_abbrev): Add implicit_const.
8939 (read_indirect_line_string): New declaration.
8940 (read_unsigned_leb128): Delete declaration.
8941 (rcuh_kind): New definition.
8942 (read_and_check_comp_unit_head): Change parameter
8943 is_debug_types_section to section_kind.
8944 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
8945 (read_comp_unit_head): Change parameter abfd to section, add parameter
8946 section_kind. Handle DWARF-5.
8947 (error_check_comp_unit_head): Accept also DWARF version 5.
8948 (read_and_check_comp_unit_head): Change parameter
8949 is_debug_types_section to section_kind.
8950 (read_and_check_type_unit_head): Delete function.
8951 (read_abbrev_offset): Handle DWARF-5.
8952 (create_debug_type_hash_table): Add parameter section_kind. Process
8953 only DW_UT_type. Use signature and type_offset_in_tu from struct
8954 comp_unit_head.
8955 (create_debug_types_hash_table): Update create_debug_type_hash_table
8956 caller.
8957 (create_all_type_units): Call create_debug_type_hash_table.
8958 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
8959 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
8960 caller.
8961 (skip_one_die): Handle DW_FORM_implicit_const.
8962 (dwarf2_rnglists_process): New function.
8963 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
8964 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
8965 (read_attribute_value): Handle DW_FORM_implicit_const,
8966 DW_FORM_line_strp.
8967 (read_attribute): Handle DW_FORM_implicit_const.
8968 (read_indirect_string_at_offset_from): New function from
8969 read_indirect_string_at_offset.
8970 (read_indirect_string_at_offset): Call
8971 read_indirect_string_at_offset_from.
8972 (read_indirect_line_string_at_offset): New function.
8973 (read_indirect_string): New function comment.
8974 (read_indirect_line_string): New function.
8975 (read_unsigned_leb128): Make it global.
8976 (dwarf2_string_attr): Handle DWARF-5.
8977 (add_include_dir_stub, read_formatted_entries): New functions.
8978 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
8979 Handle DWARF-5.
8980 (per_cu_header_read_in): Update read_comp_unit_head caller.
8981 (dwarf2_version): New function.
8982 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
8983 rnglists.
8984 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
8985 fields.
8986
8987 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8988
8989 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
8990
8991 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8992
8993 * dwarf2read.c (dwarf2_ranges_process): New function from
8994 dwarf2_ranges_read.
8995 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
8996 dwarf2_ranges_process.
8997
8998 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8999
9000 * dwarf2read.c (create_debug_type_hash_table): New function from
9001 create_debug_types_hash_table.
9002 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9003 (create_all_type_units, open_and_init_dwo_file): Update
9004 create_debug_types_hash_table callers.
9005
9006 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9007
9008 PR gdb/16188
9009 * fork-child.c (trace_start_error): Fix thinko. va_end should
9010 refer to 'ap', not 'args'.
9011
9012 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9013 Pedro Alves <palves@redhat.com>
9014
9015 PR gdb/16188
9016 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
9017 calls succeeded.
9018 * fork-child.c (trace_start_error): New function.
9019 (trace_start_error_with_name): Likewise.
9020 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
9021 * inf-ptrace.c (inf_ptrace_me): Likewise.
9022 * inferior.h (trace_start_error): New prototype.
9023 (trace_start_error_with_name): Likewise.
9024
9025 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
9026
9027 PR gdb/21164
9028 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
9029 NULL before using it.
9030 * symmisc.c (maintenance_print_symbols): Likewise.
9031 (maintenance_print_msymbols): Likewise.
9032
9033 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9034
9035 * NEWS: Add record Python bindings entry.
9036
9037 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9038
9039 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
9040 py-record-full.o.
9041 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
9042 * python/py-record-btrace.c, python/py-record-btrace.h,
9043 python/py-record-full.c, python/py-record-full.h: New file.
9044 * python/py-record.c: Add include for py-record-btrace.h and
9045 py-record-full.h.
9046 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
9047 recpy_instruction_history, recpy_function_call_history, recpy_begin,
9048 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
9049 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
9050 New definition.
9051 (gdbpy_initialize_btrace): New export.
9052 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
9053
9054 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9055
9056 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
9057 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
9058 * python/py-record.c: New file.
9059 * python/python-internal.h (gdbpy_start_recording,
9060 gdbpy_current_recording, gdpy_stop_recording,
9061 gdbpy_initialize_record): New export.
9062 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
9063 (python_GdbMethods): Add gdbpy_start_recording,
9064 gdbpy_current_recording and gdbpy_stop_recording.
9065
9066 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9067
9068 * record-btrace.c (record_btrace_record_method): New function.
9069 (init_record_btrace_ops): Initialize to_record_method.
9070 * record-full.c (record_full_record_method): New function.
9071 (init_record_full_ops, init_record_full_core_ops): Add
9072 record_full_record_method.
9073 * record.h (enum record_method): New enum.
9074 * target-debug.h (target_debug_print_enum_record_method: New define.
9075 * target-delegates.c: Regenerate.
9076 * target.c (target_record_method): New function.
9077 * target.h: Include record.h.
9078 (struct target_ops) <to_record_method>: New field.
9079 (target_record_method): New export.
9080
9081 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9082
9083 * record.h (record_start, record_stop): New export.
9084 * record.c (record_start, record_stop): New function.
9085
9086 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9087
9088 * btrace.c (btrace_fetch): Copy function call segments pointer
9089 into a vector.
9090 (btrace_clear): Clear the vector.
9091 (btrace_find_insn_by_number): Use binary search to find the correct
9092 function call segment.
9093 * btrace.h (brace_fun_p): New typedef.
9094 (struct btrace_thread_info) <functions>: New field.
9095
9096 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9097
9098 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
9099 * btrace.c (btrace_decode_error): ... here. New function.
9100 * btrace.h (btrace_decode_error): New export.
9101
9102 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
9103
9104 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
9105 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
9106 btrace_find_insn_by_number): Remove special case for gaps.
9107 * btrace.h (btrace_insn_get_error): New export.
9108 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
9109 * record-btrace.c (btrace_insn_history): Print number for gaps.
9110 (record_btrace_info, record_btrace_goto): Handle gaps.
9111
9112 2017-02-14 Tom Tromey <tom@tromey.com>
9113
9114 PR python/13598:
9115 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
9116 event.
9117 * python/py-evts.c (gdbpy_initialize_py_events): Add
9118 before_prompt registry.
9119 * python/py-events.h (events_object) <before_prompt>: New field.
9120
9121 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
9122
9123 * btrace.c (ftrace_new_switch): Preserve up link and flags.
9124
9125 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
9126
9127 * symfile (_initialize_symfile): Add usage text to the load command's
9128 help text.
9129
9130 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
9131
9132 * utils.c (defaulted_query): Don't query on secondary UIs.
9133
9134 2017-02-10 Tom Tromey <tom@tromey.com>
9135
9136 * rust-lang.c (rust_get_disr_info): Remove unused variable.
9137
9138 2017-02-10 Tom Tromey <tom@tromey.com>
9139
9140 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
9141 "cleanup" local.
9142 * python/py-type.c (typy_legacy_template_argument): Remove
9143 unnecessary "cleanup" local.
9144
9145 2017-02-10 Tom Tromey <tom@tromey.com>
9146
9147 * python/python.c (do_start_initialization): New function, from
9148 _initialize_python.
9149 (_initialize_python): Call do_start_initialization.
9150 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
9151 goto.
9152
9153 2017-02-10 Tom Tromey <tom@tromey.com>
9154
9155 * python/py-prettyprint.c (pretty_print_one_value): Use
9156 gdbpy_ref.
9157
9158 2017-02-10 Tom Tromey <tom@tromey.com>
9159
9160 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
9161 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
9162 gdbpy_ref.
9163 * python/py-type.c (field_new): Use gdbpy_ref.
9164 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
9165 gdbpy_ref.
9166 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
9167 (py_free_pspace): Likewise.
9168 (pspace_to_pspace_object): Likewise.
9169 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
9170 (py_free_objfile): Likewise.
9171 (objfile_to_objfile_object): Likewise.
9172 * python/py-inferior.c (delete_thread_object): Use
9173 gdbpy_ref.
9174 (infpy_read_memory): Likewise.
9175 (py_free_inferior): Likewise.
9176 * python/py-evtregistry.c (create_eventregistry_object): Use
9177 gdbpy_ref.
9178 * python/py-event.c (create_event_object): Use gdbpy_ref.
9179
9180 2017-02-10 Tom Tromey <tom@tromey.com>
9181
9182 * python/py-ref.h (gdbpy_ref_policy): Now a template.
9183 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
9184 used.
9185 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
9186 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
9187 python/py-exitedevent.c, python/py-finishbreakpoint.c,
9188 python/py-framefilter.c, python/py-function.c,
9189 python/py-inferior.c, python/py-infevents.c,
9190 python/py-linetable.c, python/py-newobjfileevent.c,
9191 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
9192 python/py-signalevent.c, python/py-stopevent.c,
9193 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
9194 python/py-unwind.c, python/py-utils.c, python/py-value.c,
9195 python/py-varobj.c, python/py-xmethods.c, python/python.c,
9196 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
9197
9198 2017-02-10 Tom Tromey <tom@tromey.com>
9199
9200 * ui-out.h (ui_out_emit_type): New class.
9201 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
9202 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
9203 and ui_out_emit_tuple.
9204 (enumerate_locals): Likewise.
9205 (py_mi_print_variables, py_print_locals, py_print_args): Use
9206 ui_out_emit_list.
9207 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
9208 ui_out_emit_list.
9209 * common/gdb_optional.h: New file.
9210
9211 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
9212
9213 * MAINTAINERS (Write After Approval): Update my e-mail address.
9214
9215 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
9216
9217 PR gdb/21122
9218 * breakpoint.c (_initialize_breakpoint): Update the help description
9219 of the 'commands' command to indicate that it takes a list argument.
9220
9221 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
9222
9223 * interps.c (current_interp_set_logging): Remove "return".
9224
9225 2017-02-09 Gary Benson <gbenson@redhat.com>
9226
9227 * symtab.c (add_symtab_completions): Prevent NULL pointer
9228 dereference.
9229
9230 2017-02-08 Pedro Alves <palves@redhat.com>
9231
9232 * interps.c (interp::interp): Remove reference to quiet_p.
9233 (interp_set): Make static. Remove dead "Switching to" output
9234 code.
9235 (interp_quiet_p, interp_set_quiet): Delete.
9236 (interpreter_exec_cmd): Don't set the interpreter quiet.
9237 * interps.h (interp_quiet_p): Make static.
9238 (class interp) <quiet_p>: Remove field
9239
9240 2017-02-08 Jerome Guitton <guitton@adacore.com>
9241
9242 * cli/cli-decode.c (find_command_name_length): Make it extern.
9243 * cli/cli-decode.h (find_command_name_length): Declare.
9244 * cli/cli-script.c (command_name_equals, line_first_arg):
9245 New functions.
9246 (process_next_line): Use cli-decode to parse command names.
9247 (build_command_line): Make args a constant pointer.
9248
9249 2017-02-08 Jerome Guitton <guitton@adacore.com>
9250
9251 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
9252 Remove case-insensitive search.
9253
9254 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9255
9256 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
9257 at the end of the line. Avoids an ARI warning.
9258
9259 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
9260
9261 * NEWS: Mention support for record/replay of Intel 64 rdrand and
9262 rdseed instructions.
9263 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
9264
9265 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
9266
9267 PR tdep/20936
9268 Provide and use sparc32 and sparc64 target description XML files.
9269 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
9270 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
9271 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
9272 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
9273 * features/sparc/sparc32-solaris.xml: New file.
9274 * features/sparc/sparc64-solaris.xml: New file.
9275 * features/sparc/sparc32-solaris.c: Generated.
9276 * features/sparc/sparc64-solaris.c: Generated.
9277 * sparc-tdep.h: Account for differences in target descriptions.
9278 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
9279 (sparc32_register_type): Use target provided registers.
9280 (validate_tdesc_registers): New function.
9281 (sparc32_gdbarch_init): Use tdesc_has_registers.
9282 Set pseudoregister functions.
9283 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
9284 (sparc64_register_type): Use target provided registers.
9285 (sparc64_init_abi): Set pseudoregister functions.
9286
9287 2017-02-03 Tom Tromey <tom@tromey.com>
9288
9289 PR rust/21097:
9290 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
9291 with a single member.
9292
9293 2017-02-03 Pedro Alves <palves@redhat.com>
9294
9295 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
9296 (cli_interp_base::~cli_interp_base): New.
9297 (cli_interp): New struct.
9298 (as_cli_interp): Cast the interp itself to cli_interp.
9299 (cli_interpreter_pre_command_loop): Rename to ...
9300 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
9301 parameter.
9302 (cli_interpreter_init): Rename to ...
9303 (cli_interp::init): ... this. Remove 'self' parameter. Use
9304 boolean. Make extern.
9305 (cli_interpreter_resume): Rename to ...
9306 (cli_interp::resume): ... this. Remove 'data' parameter. Make
9307 extern.
9308 (cli_interpreter_suspend): Rename to ...
9309 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
9310 extern.
9311 (cli_interpreter_exec): Rename to ...
9312 (cli_interp::exec): ... this. Remove 'data' parameter. Make
9313 extern.
9314 (cli_interpreter_supports_command_editing): Rename to ...
9315 (cli_interp_base::supports_command_editing): ... this. Remove
9316 'interp' parameter. Make extern.
9317 (cli_ui_out): Rename to ...
9318 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
9319 Make extern.
9320 (cli_set_logging): Rename to ...
9321 (cli_interp_base::set_logging): ... this. Remove 'interp'
9322 parameter. Make extern.
9323 (cli_interp_procs): Delete.
9324 (cli_interp_factory): Adjust to use "new".
9325 * cli/cli-interp.h: Include "interps.h".
9326 (struct cli_interp_base): New struct.
9327 * interps.c (struct interp): Delete. Fields moved to interps.h.
9328 (interp_new): Delete.
9329 (interp::interp, interp::~interp): New.
9330 (interp_set): Use bool, and return void. Assume the interpreter
9331 has suspend, init and resume methods, and that the all return
9332 void.
9333 (set_top_level_interpreter): interp_set returns void.
9334 (interp_ui_out): Adapt.
9335 (current_interp_set_logging): Adapt.
9336 (interp_data): Delete.
9337 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
9338 (interp_exec): Adapt.
9339 (top_level_interpreter_data): Delete.
9340 * interps.h (interp_init_ftype, interp_resume_ftype)
9341 (interp_suspend_ftype, interp_exec_ftype)
9342 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
9343 (class interp): New.
9344 (interp_new): Delete.
9345 (interp_set): Now returns void. Use bool.
9346 (interp_data, top_level_interpreter_data): Delete.
9347 * mi/mi-common.h: Include interps.h.
9348 (class mi_interp): Inherit from interp. Define a ctor. Declare
9349 init, resume, suspect, exec, interp_ui_out, set_logging and
9350 pre_command_loop methods.
9351 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
9352 (mi_interpreter_init): Rename to ...
9353 (mi_interp::init): ... this. Remove the 'interp' parameter, use
9354 bool, return void and make extern. Adjust.
9355 (mi_interpreter_resume): ... Rename to ...
9356 (mi_interp::resume): ... this. Remove the 'data' parameter,
9357 return void and make extern. Adjust.
9358 (mi_interpreter_suspend): ... Rename to ...
9359 (mi_interp::suspend): ... this. Remove the 'data' parameter,
9360 return void and make extern. Adjust.
9361 (mi_interpreter_exec): ... Rename to ...
9362 (mi_interp::exec): ... this. Remove the 'data' parameter and make
9363 extern. Adjust.
9364 (mi_interpreter_pre_command_loop): ... Rename to ...
9365 (mi_interp::pre_command_loop): ... this. Remove the 'self'
9366 parameter and make extern.
9367 (mi_on_normal_stop_1): Adjust.
9368 (mi_ui_out): Rename to ...
9369 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
9370 parameter and make extern. Adjust.
9371 (mi_set_logging): Rename to ...
9372 (mi_interp::set_logging): ... this. Remove the 'interp'
9373 parameter and make extern. Adjust.
9374 (mi_interp_procs): Delete.
9375 (mi_interp_factory): Adjust to use 'new'.
9376 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
9377 (mi_print_exception, mi_execute_command, mi_load_progress):
9378 Adjust.
9379 * tui/tui-interp.c (tui_interp): New class.
9380 (as_tui_interp): Return a tui_interp pointer.
9381 (tui_on_normal_stop, tui_on_signal_received)
9382 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
9383 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
9384 to use interp::interp_ui_out.
9385 (tui_init): Rename to ...
9386 (tui_interp::init): ... this. Remove the 'self' parameter, use
9387 bool, return void and make extern. Adjust.
9388 (tui_resume): Rename to ...
9389 (tui_interp::resume): ... this. Remove the 'data' parameter,
9390 return void and make extern. Adjust.
9391 (tui_suspend): Rename to ...
9392 (tui_interp::suspend): ... this. Remove the 'data' parameter,
9393 return void and make extern. Adjust.
9394 (tui_ui_out): Rename to ...
9395 (tui_interp::interp_ui_out): ... this. Remove the 'self'
9396 parameter, and make extern. Adjust.
9397 (tui_exec): Rename to ...
9398 (tui_interp::exec): ... this. Remove the 'data' parameter and
9399 make extern.
9400 (tui_interp_procs): Delete.
9401 (tui_interp_factory): Use "new".
9402
9403 2017-02-02 Tom Tromey <tom@tromey.com>
9404
9405 * rust-exp.y (ends_raw_string, space_then_number)
9406 (rust_identifier_start_p): Return bool.
9407 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
9408 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
9409 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
9410 (rust_chartype_p): Return bool.
9411 (val_print_struct, rust_print_struct_def, rust_print_type):
9412 Update.
9413 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
9414 Return bool.
9415
9416 2017-02-02 Tom Tromey <tom@tromey.com>
9417
9418 * rust-lang.c: Reindent.
9419
9420 2017-02-02 Tom Tromey <tom@tromey.com>
9421
9422 * rust-lang.h (rust_crate_for_block): Update.
9423 * rust-lang.c (rust_crate_for_block): Return std::string.
9424 (rust_get_disr_info): Use std:;string, not
9425 gdb::unique_xmalloc_ptr.
9426 * rust-exp.y (crate_name): Update.
9427
9428 2017-02-02 Pedro Alves <palves@redhat.com>
9429
9430 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
9431 field out of gdb_disassembler_test and make it static.
9432
9433 2017-02-02 Pedro Alves <palves@redhat.com>
9434
9435 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
9436 mi1_interp and mi_interp fields.
9437
9438 2017-02-02 Pedro Alves <palves@redhat.com>
9439
9440 * cli/cli-interp.c (struct saved_output_files, saved_output):
9441 Moved from cli/cli-logging.c.
9442 (cli_set_logging): New function.
9443 (cli_interp_procs): Install cli_set_logging.
9444 * cli/cli-interp.h (make_logging_output, cli_set_logging):
9445 Declare.
9446 * cli/cli-logging.c (struct saved_output_files, saved_output):
9447 Moved to cli/cli-interp.c.
9448 (pop_output_files): Don't save outputs here.
9449 (make_logging_output): New function.
9450 (handle_redirections): Don't build tee nor save previous outputs
9451 here.
9452 * interps.c (current_interp_set_logging): Change prototype.
9453 Assume there's always a set_logging_proc method installed.
9454 * interps.h (interp_set_logging_ftype): Change prototype.
9455 (current_interp_set_logging): Change prototype and adjust comment.
9456 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
9457 use make_logging_output.
9458 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
9459 2017-02-02 Pedro Alves <palves@redhat.com>
9460
9461 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
9462 from ...
9463 (set_logging_overwrite): ... here.
9464 (logging_no_redirect_file): Delete.
9465 (set_logging_redirect): Don't handle redirection on the fly.
9466 Instead warn that "logging off" / "logging on" is necessary.
9467 (pop_output_files): Delete references to logging_no_redirect_file.
9468 (show_logging_command): Always speak in terms of what will happen
9469 once logging is reenabled.
9470
9471 2017-02-02 Pedro Alves <palves@redhat.com>
9472
9473 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
9474
9475 2017-02-02 Pedro Alves <palves@redhat.com>
9476
9477 * disasm.c (gdb_pretty_print_insn): Rename to ...
9478 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
9479 Remove gdbarch parameter. Adapt to clear the object's buffers
9480 instead of allocating new buffers, and to print using the object's
9481 gdb_disassembler instead of calling gdb_print_insn.
9482 (dump_insns): Use gdb_pretty_print_disassembler.
9483 * disasm.h (gdb_pretty_print_insn): Delete declaration.
9484 (gdb_pretty_print_disassembler): New class.
9485 * record-btrace.c (btrace_insn_history): Use
9486 gdb_pretty_print_disassembler.
9487
9488 2017-02-02 Pedro Alves <palves@redhat.com>
9489
9490 * ada-lang.c (type_as_string): Use string_file.
9491 * ada-valprint.c (ada_print_floating): Use string_file.
9492 * ada-varobj.c (ada_varobj_scalar_image)
9493 (ada_varobj_get_value_image): Use string_file.
9494 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
9495 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
9496 * breakpoint.c (update_inserted_breakpoint_locations)
9497 (insert_breakpoint_locations, reattach_breakpoints)
9498 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
9499 (print_it_watchpoint): Use string_file.
9500 (save_breakpoints): Use stdio_file.
9501 * c-exp.y (oper): Use string_file.
9502 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
9503 tee_file.
9504 (pop_output_files): Use delete.
9505 (handle_redirections): Use stdio_file and tee_file.
9506 * cli/cli-setshow.c (do_show_command): Use string_file.
9507 * compile/compile-c-support.c (c_compute_program): Use
9508 string_file.
9509 * compile/compile-c-symbols.c (generate_vla_size): Take a
9510 'string_file &' instead of a 'ui_file *'.
9511 (generate_c_for_for_one_variable): Take a 'string_file &' instead
9512 of a 'ui_file *'. Use string_file.
9513 (generate_c_for_variable_locations): Take a 'string_file &'
9514 instead of a 'ui_file *'.
9515 * compile/compile-internal.h (generate_c_for_for_one_variable):
9516 Take a 'string_file &' instead of a 'ui_file *'.
9517 * compile/compile-loc2c.c (push, pushf, unary, binary)
9518 (print_label, pushf_register_address, pushf_register)
9519 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
9520 'ui_file *'. Adjust.
9521 * compile/compile.c (compile_to_object): Use string_file.
9522 * compile/compile.h (compile_dwarf_expr_to_c)
9523 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
9524 'ui_file *'.
9525 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
9526 (replace_typedefs_qualified_name): Use string_file and
9527 obstack_copy0.
9528 * disasm.c (gdb_pretty_print_insn): Use string_file.
9529 (gdb_disassembly): Adjust reference the null_stream global.
9530 (do_ui_file_delete): Delete.
9531 (gdb_insn_length): Use null_stream.
9532 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
9533 * dwarf2loc.c (dwarf2_compile_property_to_c)
9534 (locexpr_generate_c_location, loclist_generate_c_location): Take a
9535 'string_file &' instead of a 'ui_file *'.
9536 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
9537 * dwarf2read.c (do_ui_file_peek_last): Delete.
9538 (dwarf2_compute_name): Use string_file.
9539 * event-top.c (gdb_setup_readline): Use stdio_file.
9540 * gdbarch.sh (verify_gdbarch): Use string_file.
9541 * gdbtypes.c (safe_parse_type): Use null_stream.
9542 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
9543 string_file.
9544 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
9545 'string_file *' instead of a 'ui_file *'.
9546 (gdbscm_arch_disassemble): Use string_file.
9547 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
9548 * guile/scm-ports.c (class ioscm_file_port): Now a class that
9549 inherits from ui_file.
9550 (ioscm_file_port_delete, ioscm_file_port_rewind)
9551 (ioscm_file_port_put): Delete.
9552 (ioscm_file_port_write): Rename to ...
9553 (ioscm_file_port::write): ... this. Remove file_port_magic
9554 checks.
9555 (ioscm_file_port_new): Delete.
9556 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
9557 ui_file_up.
9558 * guile/scm-type.c (tyscm_type_name): Use string_file.
9559 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
9560 Use string_file.
9561 * infcmd.c (print_return_value_1): Use string_file.
9562 * infrun.c (print_target_wait_results): Use string_file.
9563 * language.c (add_language): Use string_file.
9564 * location.c (explicit_to_string_internal): Use string_file.
9565 * main.c (captured_main_1): Use null_file.
9566 * maint.c (maintenance_print_architecture): Use stdio_file.
9567 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
9568 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
9569 event_channel>: Change type to mi_console_file pointer.
9570 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
9571 (mi_console_file_delete): Delete.
9572 (struct mi_console_file): Delete.
9573 (mi_console_file_magic): Delete.
9574 (mi_console_file_new): Delete.
9575 (mi_console_file::mi_console_file): New.
9576 (mi_console_file_delete): Delete.
9577 (mi_console_file_fputs): Delete.
9578 (mi_console_file::write): New.
9579 (mi_console_raw_packet): Delete.
9580 (mi_console_file::flush): New.
9581 (mi_console_file_flush): Delete.
9582 (mi_console_set_raw): Rename to ...
9583 (mi_console_file::set_raw): ... this.
9584 * mi/mi-console.h (class mi_console_file): New class.
9585 (mi_console_file_new, mi_console_set_raw): Delete.
9586 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
9587 (mi_set_logging): Use delete and tee_file. Adjust.
9588 * mi/mi-main.c (output_register): Use string_file.
9589 (mi_cmd_data_evaluate_expression): Use string_file.
9590 (mi_cmd_data_read_memory): Use string_file.
9591 (mi_cmd_execute, print_variable_or_computed): Use string_file.
9592 * mi/mi-out.c (mi_ui_out::main_stream): New.
9593 (mi_ui_out::rewind): Use main_stream and
9594 string_file.
9595 (mi_ui_out::put): Use main_stream and string_file.
9596 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9597 Allocate a 'string_file' instead.
9598 (mi_out_new): Don't allocate a mem_fileopen stream here.
9599 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
9600 (mi_ui_out::main_stream): Declare method.
9601 * printcmd.c (eval_command): Use string_file.
9602 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
9603 * python/py-arch.c (archpy_disassemble): Use string_file.
9604 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
9605 * python/py-frame.c (frapy_str): Use string_file.
9606 * python/py-framefilter.c (py_print_type, py_print_single_arg):
9607 Use string_file.
9608 * python/py-type.c (typy_str): Use string_file.
9609 * python/py-unwind.c (unwind_infopy_str): Use string_file.
9610 * python/py-value.c (valpy_str): Use string_file.
9611 * record-btrace.c (btrace_insn_history): Use string_file.
9612 * regcache.c (regcache_print): Use stdio_file.
9613 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
9614 * remote.c (escape_buffer): Use string_file.
9615 * rust-lang.c (rust_get_disr_info): Use string_file.
9616 * serial.c (serial_open_ops_1): Use stdio_file.
9617 (do_serial_close): Use delete.
9618 * stack.c (print_frame_arg): Use string_file.
9619 (print_frame_args): Remove local mem_fileopen stream, not used.
9620 (print_frame): Use string_file.
9621 * symmisc.c (maintenance_print_symbols): Use stdio_file.
9622 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
9623 Take a 'string_file *' instead of a 'ui_file *'.
9624 * top.c (new_ui): Use stdio_file and stderr_file.
9625 (free_ui): Use delete.
9626 (execute_command_to_string): Use string_file.
9627 (quit_confirm): Use string_file.
9628 * tracepoint.c (collection_list::append_exp): Use string_file.
9629 * tui/tui-disasm.c (tui_disassemble): Use string_file.
9630 * tui/tui-file.c: Don't include "ui-file.h".
9631 (enum streamtype, struct tui_stream): Delete.
9632 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
9633 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
9634 (tui_file::tui_file): New method.
9635 (tui_file_fputs): Delete.
9636 (tui_file_get_strbuf): Delete.
9637 (tui_file::puts): New method.
9638 (tui_file_adjust_strbuf): Delete.
9639 (tui_file_flush): Delete.
9640 (tui_file::flush): New method.
9641 * tui/tui-file.h: Tweak intro comment.
9642 Include ui-file.h.
9643 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
9644 (tui_file_adjust_strbuf): Delete declarations.
9645 (class tui_file): New class.
9646 * tui/tui-io.c (tui_initialize_io): Use tui_file.
9647 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
9648 (tui_register_format): Use string_stream.
9649 * tui/tui-stack.c (tui_make_status_line): Use string_file.
9650 (tui_get_function_from_frame): Use string_file.
9651 * typeprint.c (type_to_string): Use string_file.
9652 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
9653 (null_stream): New global.
9654 (ui_file_delete): Delete.
9655 (ui_file::ui_file): New.
9656 (null_file_isatty): Delete.
9657 (ui_file::~ui_file): New.
9658 (null_file_rewind): Delete.
9659 (ui_file::printf): New.
9660 (null_file_put): Delete.
9661 (null_file_flush): Delete.
9662 (ui_file::putstr): New.
9663 (null_file_write): Delete.
9664 (ui_file::putstrn): New.
9665 (null_file_read): Delete.
9666 (ui_file::putc): New.
9667 (null_file_fputs): Delete.
9668 (null_file_write_async_safe): Delete.
9669 (ui_file::vprintf): New.
9670 (null_file_delete): Delete.
9671 (null_file::write): New.
9672 (null_file_fseek): Delete.
9673 (null_file::puts): New.
9674 (ui_file_data): Delete.
9675 (null_file::write_async_safe): New.
9676 (gdb_flush, ui_file_isatty): Adjust.
9677 (ui_file_put, ui_file_rewind): Delete.
9678 (ui_file_write): Adjust.
9679 (ui_file_write_for_put): Delete.
9680 (ui_file_write_async_safe, ui_file_read): Adjust.
9681 (ui_file_fseek): Delete.
9682 (fputs_unfiltered): Adjust.
9683 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
9684 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
9685 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
9686 (set_ui_file_data): Delete.
9687 (string_file::~string_file, string_file::write)
9688 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
9689 (do_ui_file_as_string, ui_file_as_string): Delete.
9690 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
9691 (struct mem_file): Delete.
9692 (mem_file_new): Delete.
9693 (stdio_file::stdio_file): New.
9694 (mem_file_delete): Delete.
9695 (stdio_file::stdio_file): New.
9696 (mem_fileopen): Delete.
9697 (stdio_file::~stdio_file): New.
9698 (mem_file_rewind): Delete.
9699 (stdio_file::set_stream): New.
9700 (mem_file_put): Delete.
9701 (stdio_file::open): New.
9702 (mem_file_write): Delete.
9703 (stdio_file_magic, struct stdio_file): Delete.
9704 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
9705 (stdio_file::flush): New.
9706 (stdio_file_read): Rename to ...
9707 (stdio_file::read): ... this. Adjust.
9708 (stdio_file_write): Rename to ...
9709 (stdio_file::write): ... this. Adjust.
9710 (stdio_file_write_async_safe): Rename to ...
9711 (stdio_file::write_async_safe) ... this. Adjust.
9712 (stdio_file_fputs): Rename to ...
9713 (stdio_file::puts) ... this. Adjust.
9714 (stdio_file_isatty): Delete.
9715 (stdio_file_fseek): Delete.
9716 (stdio_file::isatty): New.
9717 (stderr_file_write): Rename to ...
9718 (stderr_file::write) ... this. Adjust.
9719 (stderr_file_fputs): Rename to ...
9720 (stderr_file::puts) ... this. Adjust.
9721 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
9722 (stderr_file::stderr_file): New.
9723 (tee_file_magic): Delete.
9724 (struct tee_file): Delete.
9725 (tee_file::tee_file): New.
9726 (tee_file_new): Delete.
9727 (tee_file::~tee_file): New.
9728 (tee_file_delete): Delete.
9729 (tee_file_flush): Rename to ...
9730 (tee_file::flush): ... this. Adjust.
9731 (tee_file_write): Rename to ...
9732 (tee_file::write): ... this. Adjust.
9733 (tee_file::write_async_safe): New.
9734 (tee_file_fputs): Rename to ...
9735 (tee_file::puts): ... this. Adjust.
9736 (tee_file_isatty): Rename to ...
9737 (tee_file::isatty): ... this. Adjust.
9738 * ui-file.h (struct obstack, struct ui_file): Don't
9739 forward-declare.
9740 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
9741 (ui_file_write_ftype)
9742 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
9743 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
9744 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
9745 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
9746 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
9747 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
9748 (set_ui_file_fseek): Delete.
9749 (ui_file_data, ui_file_delete, ui_file_rewind)
9750 (struct ui_file): New.
9751 (ui_file_up): New.
9752 (class null_file): New.
9753 (null_stream): Declare.
9754 (ui_file_write_for_put, ui_file_put): Delete.
9755 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
9756 Delete.
9757 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
9758 (gdb_fopen, tee_file_new): Delete.
9759 (struct string_file): New.
9760 (struct stdio_file): New.
9761 (stdio_file_up): New.
9762 (struct stderr_file): New.
9763 (class tee_file): New.
9764 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
9765 of a 'ui_file *'. Adjust.
9766 * ui-out.h (class ui_out) <field_stream>: Likewise.
9767 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
9768 (null_stream): Delete.
9769 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
9770 Adjust.
9771 * utils.h (struct ui_file): Delete forward declaration..
9772 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
9773 (error_stream): Take a 'string_file &' instead of a
9774 'ui_file *'.
9775 * varobj.c (varobj_value_get_print_value): Use string_file.
9776 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
9777 * gdbarch.c: Regenerate.
9778
9779 2017-02-02 Pedro Alves <palves@redhat.com>
9780
9781 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
9782 (gdb_pretty_print_insn): ... this. Now a free function. Add back
9783 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
9784 Adjust to call gdb_print_insn instead of
9785 gdb_disassembler::print_insn.
9786 (dump_insns, do_mixed_source_and_assembly_deprecated)
9787 (do_mixed_source_and_assembly, do_assembly_only): Add back a
9788 'gdbarch' parameter. Remove gdb_disassembler parameter.
9789 (gdb_disassembly): Don't allocate a gdb_disassembler here.
9790 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
9791 declaration.
9792 (gdb_pretty_print_insn): Re-add declaration.
9793 * record-btrace.c (btrace_insn_history): Don't allocate a
9794 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
9795
9796 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
9797
9798 * disasm.h (gdb_disassembly): Remove file_string parameter.
9799 * disasm.c (gdb_disassembly): Likewise.
9800 * cli/cli-cmds.c (print_disassembly): Adapt.
9801 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9802 * stack.c (do_gdb_disassembly): Likewise.
9803
9804 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
9805
9806 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
9807 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
9808 targets. And if the implicit value is longer than needed, extract
9809 the first bytes instead of the "least significant" ones.
9810
9811 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
9812
9813 * btrace.c (btrace_enable): Do not call btrace_add_pc for
9814 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
9815 (btrace_fetch): Assert can_access_registers_ptid.
9816 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
9817 validate_registers_access.
9818
9819 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
9820
9821 * gdbthread.h (can_access_registers_ptid): New.
9822 * thread.c (can_access_registers_ptid): New.
9823
9824 2017-02-01 Pedro Alves <palves@redhat.com>
9825
9826 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
9827
9828 2017-01-31 Pedro Alves <palves@redhat.com>
9829
9830 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
9831 Fix typos.
9832
9833 2017-01-31 Pedro Alves <palves@redhat.com>
9834
9835 * stack.c (print_frame_args): Remove local mem_fileopen stream,
9836 not used.
9837
9838 2017-01-31 Pedro Alves <palves@redhat.com>
9839
9840 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
9841
9842 2017-01-31 Pedro Alves <palves@redhat.com>
9843
9844 * common/scoped_restore.h
9845 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
9846 change the value's parameter type to T2.
9847 (make_scoped_restore): Likewise.
9848
9849 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
9850 Richard Henderson <rth@redhat.com>
9851
9852 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
9853 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
9854 GS_BASE for older kernels.
9855 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
9856 GS_BASE for older kernels.
9857 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
9858 and GS_BASE to the offset table.
9859 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
9860 system register group.
9861 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
9862 for older kernels.
9863 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
9864 amd64 ABI.
9865 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
9866 AMD64_GSBASE_REGNUM.
9867 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
9868 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
9869 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
9870 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
9871 i386/64bit-segments.xml in those rules.
9872 * features/i386/64bit-segments.xml: New file.
9873 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
9874 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
9875 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
9876 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
9877 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
9878 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
9879 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
9880 * features/i386/amd64-avx-linux.c: Regenerated.
9881 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
9882 * features/i386/amd64-avx-mpx.c: Regenerated.
9883 * features/i386/amd64-avx512-linux.c: Regenerated.
9884 * features/i386/amd64-linux.c: Regenerated.
9885 * features/i386/amd64-mpx-linux.c: Regenerated.
9886 * features/i386/i386-avx-mpx-linux.c: Regenerated.
9887 * features/i386/i386-avx-mpx.c: Regenerated.
9888 * features/i386/x32-avx-linux.c: Regenerated.
9889 * features/i386/x32-avx512-linux.c: Regenerated.
9890 * regformats/i386/amd64-avx-linux.dat: Regenerated.
9891 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
9892 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
9893 * regformats/i386/amd64-linux.dat: Regenerated.
9894 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
9895 * regformats/i386/x32-avx-linux.dat: Regenerated.
9896 * regformats/i386/x32-avx512-linux.dat: Regenerated.
9897 * regformats/i386/x32-linux.dat: Regenerated.
9898
9899 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
9900
9901 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
9902 Set to AMD64_NUM_REGS.
9903
9904 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
9905
9906 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
9907 that checks validity of a register number.
9908
9909 2017-01-27 Kees Cook <keescook@google.com>
9910
9911 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
9912 fetch_fpregs if target has fpa registers.
9913 (arm_linux_store_inferior_registers): Call store_fpregs if target
9914 has fpa registers.
9915
9916 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
9917
9918 * cris-tdep.c (cris_gdbarch_init): Remove check for
9919 info.byte_order and force it to BFD_ENDIAN_LITTLE.
9920
9921 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
9922
9923 * corelow.c (get_core_register_section): Check for regset
9924 existence before checking for REGSET_VARIABLE_SIZE.
9925
9926 2017-01-26 Yao Qi <yao.qi@linaro.org>
9927 Pedro Alves <palves@redhat.com>
9928
9929 PR gdb/20939
9930 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
9931 call memory_error, save memaddr instead.
9932 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
9933 negative, cal memory_error.
9934 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
9935
9936 2017-01-26 Yao Qi <yao.qi@linaro.org>
9937
9938 * disasm-selftests.c (memory_error_test): New function.
9939 (_initialize_disasm_selftests): Register memory_error_test.
9940
9941 2017-01-26 Yao Qi <yao.qi@linaro.org>
9942
9943 * Makefile.in (SFILES): Add disasm-selftests.c and
9944 selftest-arch.c.
9945 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
9946 * disasm-selftests.c: New file.
9947 * selftest-arch.c: New file.
9948 * selftest-arch.h: New file.
9949
9950 2017-01-26 Yao Qi <yao.qi@linaro.org>
9951
9952 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
9953 to bfd_arch_mep. Don't return 0 if section is not
9954 found. Call print_insn_mep.
9955
9956 2017-01-26 Pedro Alves <palves@redhat.com>
9957 Yao Qi <yao.qi@linaro.org>
9958
9959 * arm-tdep.c: Include "disasm.h".
9960 (gdb_print_insn_arm): Update code to get gdbarch.
9961 * disasm.c (dis_asm_read_memory): Change it to
9962 gdb_disassembler::dis_asm_read_memory.
9963 (dis_asm_memory_error): Likewise.
9964 (dis_asm_print_address): Likewise.
9965 (gdb_pretty_print_insn): Change it to
9966 gdb_disassembler::pretty_print_insn.
9967 (dump_insns): Add one argument gdb_disassemlber. All
9968 callers updated.
9969 (do_mixed_source_and_assembly_deprecated): Likewise.
9970 (do_mixed_source_and_assembly): Likewise.
9971 (do_assembly_only): Likewise.
9972 (gdb_disassembler::gdb_disassembler): New.
9973 (gdb_disassembler::print_insn): New.
9974 * disasm.h (class gdb_disassembler): New.
9975 (gdb_pretty_print_insn): Remove declaration.
9976 (gdb_disassemble_info): Likewise.
9977 * guile/scm-disasm.c (class gdbscm_disassembler): New.
9978 (gdbscm_disasm_read_memory_worker): Update.
9979 (gdbscm_disasm_read_memory): Update.
9980 (gdbscm_disasm_memory_error): Remove.
9981 (gdbscm_disasm_print_address): Remove.
9982 (gdbscm_disassembler::gdbscm_disassembler): New.
9983 (gdbscm_print_insn_from_port): Update.
9984 * mips-tdep.c: Include disasm.h.
9985 (gdb_print_insn_mips): Update code to get gdbarch.
9986 * record-btrace.c (btrace_insn_history): Update.
9987 * spu-tdep.c: Include disasm.h.
9988 (struct spu_dis_asm_data): Remove.
9989 (struct spu_dis_asm_info): New.
9990 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
9991 SPU id.
9992 (gdb_print_insn_spu): Cast disassemble_info to
9993 spu_dis_asm_info.
9994
9995 2017-01-26 Yao Qi <yao.qi@linaro.org>
9996
9997 * disasm.c (do_ui_file_delete): Delete.
9998 (gdb_insn_length): Move code creating stream to ...
9999 * utils.c (null_stream): ... here. New function.
10000 * utils.h (null_stream): Declare.
10001
10002 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10003
10004 * python/py-inferior.c (find_thread_object): Return directly
10005 from the loop. Remove "found" variable.
10006
10007 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10008
10009 GDB 7.12.1 released.
10010
10011 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10012
10013 * python/py-function.c (fnpy_call): Reorder declarations to have
10014 the gdbpy_enter object declared first.
10015 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10016
10017 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10018
10019 PR python/21068
10020 * python/python-internal.h (PyMem_RawMalloc): Define for
10021 Python < 3.4.
10022 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
10023 PyMem_RawMalloc instead of PyMem_Malloc.
10024
10025 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
10026 Luis Machado <lgustavo@codesourcery.com>
10027
10028 * NEWS (New commands): Mention flash-erase.
10029 (New MI commands): Mention target-flash-erase.
10030 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
10031 command.
10032 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
10033 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
10034 * target.c (flash_erase_command): New function.
10035 (initialize_targets): Add new flash-erase command.
10036 * target.h (flash_erase_command): New declaration.
10037
10038 2017-01-20 Joel Brobecker <brobecker@adacore.com>
10039
10040 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
10041 HAVE_SYS_PROCFS_H is defined.
10042
10043 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10044
10045 * remote.c (struct cached_reg): Change data into a pointer.
10046 * (stop_reply_dtr): Free data pointers before deleting vector.
10047 (process_stop_reply): Likewise.
10048 (remote_parse_stop_reply): Allocate space for data
10049
10050 2017-01-18 Alan Hayward <alan.hayward@arm.com>
10051
10052 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
10053 MAX_REGISTER_SIZE.
10054 (amd64_pseudo_register_read_value): Likewise.
10055 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
10056 (store_register_using_P): Likewise.
10057 * regcache.c (regcache_xfer_part): Likewise.
10058
10059 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
10060
10061 Split real and pseudo registers.
10062 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
10063 (sparc32_pseudo_regnum): New enum.
10064 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
10065 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
10066 (SPARC32_CP0_REGISTERS): New macro.
10067 (sparc32_pseudo_register_name): New function.
10068 (sparc32_register_name): Use sparc32_pseudo_register_name.
10069 (sparc32_pseudo_register_type): New function.
10070 (sparc32_register_type): Use sparc32_pseudo_register_type.
10071 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
10072 pseudo register numbers.
10073 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
10074 (SPARC64_CP0_REGISTERS): New macro.
10075 (sparc64_pseudo_register_name): New function.
10076 (sparc64_register_name): Use sparc64_pseudo_register_name.
10077 (sparc64_pseudo_register_type): New function.
10078 (sparc64_register_type): Use sparc64_pseudo_register_type.
10079 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
10080 pseudo register numbers.
10081 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
10082 sparc64_store_arguments): Handle pseudo register numbers.
10083
10084 2017-01-13 Yao Qi <yao.qi@linaro.org>
10085
10086 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
10087 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
10088 output.
10089 (getpkt_or_notif_sane_1): Likewise.
10090
10091 2017-01-13 Yao Qi <yao.qi@linaro.org>
10092
10093 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
10094 of CC. Pass "-x c++-header" instead of "-x c".
10095
10096 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10097
10098 * remote.c (remote_can_async_p): Update comment.
10099
10100 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10101
10102 * linux-nat.c (linux_nat_can_async_p): Update comment.
10103
10104 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
10105
10106 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
10107
10108 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
10109
10110 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
10111
10112 2017-01-10 Tom Tromey <tom@tromey.com>
10113
10114 * python/py-type.c (typy_legacy_template_argument): Update.
10115 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
10116 ~demangle_parse_info): Declare new members.
10117 (cp_demangled_name_to_comp): Return unique_ptr.
10118 (cp_demangled_name_parse_free)
10119 (make_cleanup_cp_demangled_name_parse_free)
10120 (cp_new_demangle_parse_info): Remove.
10121 * cp-support.c (do_demangled_name_parse_free_cleanup)
10122 (make_cleanup_cp_demangled_name_parse_free): Remove.
10123 (inspect_type, cp_canonicalize_string_full)
10124 (cp_canonicalize_string): Update.
10125 (mangled_name_to_comp): Change return type.
10126 (cp_class_name_from_physname, method_name_from_physname)
10127 (cp_func_name, cp_remove_params): Update.
10128 * cp-name-parser.y (demangle_parse_info): New constructor, from
10129 cp_new_demangle_parse_info.
10130 (~demangle_parse_info): New destructor, from
10131 cp_demangled_name_parse_free.
10132 (cp_merge_demangle_parse_infos): Update.
10133 (cp_demangled_name_to_comp): Change return type.
10134
10135 2017-01-10 Tom Tromey <tom@tromey.com>
10136
10137 * top.c (prevent_dont_repeat): Change return type.
10138 * python/python.c (execute_gdb_command): Use std::string.
10139 Update.
10140 * guile/guile.c (gdbscm_execute_gdb_command): Update.
10141 * command.h (prevent_dont_repeat): Change return type.
10142 * breakpoint.c (bpstat_do_actions_1): Update.
10143
10144 2017-01-10 Tom Tromey <tom@tromey.com>
10145
10146 * value.h (scoped_value_mark::~scoped_value_mark): Call
10147 free_to_mark.
10148 (scoped_value_mark::free_to_mark): New method.
10149 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
10150 scoped_value_mark.
10151
10152 2017-01-10 Tom Tromey <tom@tromey.com>
10153
10154 * python/py-value.c (valpy_dereference, valpy_referenced_value)
10155 (valpy_reference_value, valpy_const_value, valpy_get_address)
10156 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10157 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
10158 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
10159 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
10160 scoped_value_mark.
10161 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
10162 * value.h (scoped_value_mark): New class.
10163
10164 2017-01-10 Tom Tromey <tom@tromey.com>
10165
10166 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
10167 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
10168 * psymtab.c (discard_psymtabs_upto): Remove.
10169 (make_cleanup_discard_psymtabs): Remove.
10170 (struct psymtab_state): Remove.
10171
10172 2017-01-10 Tom Tromey <tom@tromey.com>
10173
10174 * record-full.c (record_full_save_cleanups): Remove.
10175 (record_full_save): Use gdb::unlinker.
10176 * gcore.c (do_bfd_delete_cleanup): Remove.
10177 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
10178 cleanups.
10179 * dwarf2read.c (unlink_if_set): Remove.
10180 (write_psymtabs_to_index): Use gdb::unlinker.
10181 * common/gdb_unlinker.h: New file.
10182
10183 2017-01-10 Tom Tromey <tom@tromey.com>
10184
10185 * windows-tdep.c (windows_xfer_shared_library): Update.
10186 * windows-nat.c (windows_make_so): Update.
10187 * utils.h (make_cleanup_bfd_unref): Remove.
10188 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
10189 * symfile.h (symfile_bfd_open)
10190 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
10191 * symfile.c (read_symbols, symbol_file_add)
10192 (separate_debug_file_exists): Update.
10193 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
10194 (generic_load, reread_symbols): Update.
10195 * symfile-mem.c (symbol_file_add_from_memory): Update.
10196 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
10197 (spu_symbol_file_add_from_memory): Update.
10198 * solist.h (struct target_so_ops) <bfd_open>: Return
10199 gdb_bfd_ref_ptr.
10200 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
10201 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
10202 gdb_bfd_ref_ptr.
10203 (solib_map_sections, reload_shared_libraries_1): Update.
10204 * solib-svr4.c (enable_break): Update.
10205 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
10206 * solib-frv.c (enable_break2): Update.
10207 * solib-dsbt.c (enable_break): Update.
10208 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
10209 gdb_bfd_ref_ptr.
10210 (darwin_solib_get_all_image_info_addr_at_init): Update.
10211 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
10212 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
10213 * record-full.c (record_full_save): Update.
10214 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
10215 * procfs.c (insert_dbx_link_bpt_in_file): Update.
10216 * minidebug.c (find_separate_debug_file_in_section): Return
10217 gdb_bfd_ref_ptr.
10218 * machoread.c (macho_add_oso_symfile): Change abfd to
10219 gdb_bfd_ref_ptr.
10220 (macho_symfile_read_all_oso): Update.
10221 (macho_check_dsym): Return gdb_bfd_ref_ptr.
10222 (macho_symfile_read): Update.
10223 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
10224 (jit_bfd_try_read_symtab): Update.
10225 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10226 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10227 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10228 gdb_bfd_ref_ptr.
10229 (gdb_bfd_ref_policy): New struct.
10230 (gdb_bfd_ref_ptr): New typedef.
10231 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10232 (gdb_bfd_openw, gdb_bfd_openr_iovec)
10233 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
10234 gdb_bfd_ref_ptr.
10235 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10236 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
10237 (gcore_command): Update.
10238 * exec.c (exec_file_attach): Update.
10239 * elfread.c (elf_symfile_read): Update.
10240 * dwarf2read.c (dwarf2_get_dwz_file): Update.
10241 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
10242 (open_and_init_dwo_file): Update.
10243 (open_dwp_file): Return gdb_bfd_ref_ptr.
10244 (open_and_init_dwp_file): Update.
10245 * corelow.c (core_open): Update.
10246 * compile/compile-object-load.c (compile_object_load): Update.
10247 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
10248 * coffread.c (coff_symfile_read): Update.
10249 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
10250 gdb_bfd_ref_ptr. Rename.
10251 (dump_bfd_file, restore_command): Update.
10252 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10253 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
10254 (find_separate_debug_file_by_buildid): Update.
10255
10256 2017-01-10 Tom Tromey <tom@tromey.com>
10257
10258 * common/gdb_ref_ptr.h: New file.
10259 * python/py-ref.h (struct gdbpy_ref_policy): New.
10260 (gdbpy_ref): Now a typedef.
10261
10262 2017-01-10 Tom Tromey <tom@tromey.com>
10263
10264 * utils.h (make_cleanup_htab_delete): Don't declare.
10265 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
10266 Remove.
10267 * linespec.c (decode_compound_collector): Add constructor,
10268 destructor.
10269 (lookup_prefix_sym): Remove cleanup.
10270 (symtab_collector): Add constructor, destructor.
10271 (collect_symtabs_from_filename): Remove cleanup.
10272 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
10273 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
10274 Use htab_up.
10275 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
10276 * dwarf2read.c (dw2_expand_symtabs_matching)
10277 (dw2_map_symbol_filenames, dwarf_decode_macros)
10278 (write_psymtabs_to_index): Use htab_up.
10279 * dwarf2loc.c (func_verify_no_selftailcall)
10280 (call_site_find_chain_1, func_verify_no_selftailcall)
10281 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
10282 std::vector, gdb::unique_xmalloc_ptr.
10283 (call_sitep): Remove typedef.
10284 (dwarf2_locexpr_baton_eval): Remove unused variable.
10285
10286 2017-01-10 Tom Tromey <tom@tromey.com>
10287
10288 * python/python-internal.h (make_cleanup_py_decref)
10289 (make_cleanup_py_xdecref): Don't declare.
10290 * python/py-utils.c (py_decref, make_cleanup_py_decref)
10291 (py_xdecref, make_cleanup_py_xdecref): Remove.
10292
10293 2017-01-10 Tom Tromey <tom@tromey.com>
10294
10295 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
10296 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
10297
10298 2017-01-10 Tom Tromey <tom@tromey.com>
10299
10300 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
10301
10302 2017-01-10 Tom Tromey <tom@tromey.com>
10303
10304 * python/py-utils.c (unicode_to_encoded_string)
10305 (python_string_to_target_string)
10306 (python_string_to_target_python_string)
10307 (python_string_to_host_string, gdbpy_obj_to_string)
10308 (get_addr_from_python): Use gdbpy_ref.
10309
10310 2017-01-10 Tom Tromey <tom@tromey.com>
10311
10312 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
10313 gdbpy_ref.
10314
10315 2017-01-10 Tom Tromey <tom@tromey.com>
10316
10317 * python/python.c (eval_python_command, gdbpy_decode_line)
10318 (gdbpy_run_events, gdbpy_start_type_printers)
10319 (gdbpy_apply_type_printers): Use gdbpy_ref.
10320
10321 2017-01-10 Tom Tromey <tom@tromey.com>
10322
10323 * python/py-param.c (get_doc_string, compute_enum_values): Use
10324 gdbpy_ref.
10325
10326 2017-01-10 Tom Tromey <tom@tromey.com>
10327
10328 * python/py-inferior.c (find_thread_object, build_inferior_list):
10329 Use gdbpy_ref.
10330
10331 2017-01-10 Tom Tromey <tom@tromey.com>
10332
10333 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10334
10335 2017-01-10 Tom Tromey <tom@tromey.com>
10336
10337 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
10338 gdbpy_ref.
10339
10340 2017-01-10 Tom Tromey <tom@tromey.com>
10341
10342 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
10343 extra incref.
10344 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
10345 Use gdbpy_ref.
10346
10347 2017-01-10 Tom Tromey <tom@tromey.com>
10348
10349 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10350 gdbpy_ref.
10351
10352 2017-01-10 Tom Tromey <tom@tromey.com>
10353
10354 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
10355 decref results of PyArg_ParseTupleAndKeywords.
10356
10357 2017-01-10 Tom Tromey <tom@tromey.com>
10358
10359 * python/python.c (python_run_simple_file): Use
10360 unique_xmalloc_ptr, gdbpy_ref.
10361
10362 2017-01-10 Tom Tromey <tom@tromey.com>
10363
10364 * python/py-prettyprint.c (print_stack_unless_memory_error)
10365 (print_string_repr, print_children): Use gdbpy_ref.
10366 (dummy_python_frame): New class.
10367 (dummy_python_frame::dummy_python_frame): Rename from
10368 push_dummy_python_frame.
10369 (py_restore_tstate): Remove.
10370
10371 2017-01-10 Tom Tromey <tom@tromey.com>
10372
10373 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
10374
10375 2017-01-10 Tom Tromey <tom@tromey.com>
10376
10377 * python/python.c (ensure_python_env, restore_python_env):
10378 Remove.
10379 * python/python-internal.h (ensure_python_env): Don't declare.
10380 * varobj.h (varobj_ensure_python_env): Don't declare.
10381 * varobj.c (varobj_ensure_python_env): Remove.
10382
10383 2017-01-10 Tom Tromey <tom@tromey.com>
10384
10385 * varobj.c (varobj_value_get_print_value): Use
10386 gdbpy_enter_varobj.
10387
10388 2017-01-10 Tom Tromey <tom@tromey.com>
10389
10390 * python/py-prettyprint.c (print_string_repr, print_children):
10391 Update.
10392 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
10393 of "encoding".
10394 * varobj.c (varobj_value_get_print_value): Update.
10395 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
10396
10397 2017-01-10 Tom Tromey <tom@tromey.com>
10398
10399 * varobj.c (varobj_get_display_hint)
10400 (dynamic_varobj_has_child_method, install_new_value_visualizer)
10401 (varobj_set_visualizer, free_variable): Use
10402 gdbpy_enter_varobj.
10403
10404 2017-01-10 Tom Tromey <tom@tromey.com>
10405
10406 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
10407 (do_finish_initialization): New function. Use gdbpy_ref.
10408 (gdbpy_finish_initialization): Use gdbpy_enter. Call
10409 do_finish_initialization.
10410
10411 2017-01-10 Tom Tromey <tom@tromey.com>
10412
10413 * python/py-param.c (get_set_value, get_show_value): Use
10414 gdbpy_enter, gdbpy_ref.
10415
10416 2017-01-10 Tom Tromey <tom@tromey.com>
10417
10418 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
10419
10420 2017-01-10 Tom Tromey <tom@tromey.com>
10421
10422 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
10423
10424 2017-01-10 Tom Tromey <tom@tromey.com>
10425
10426 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
10427 Use gdbpy_enter_varobj.
10428
10429 2017-01-10 Tom Tromey <tom@tromey.com>
10430
10431 * varobj.c (gdbpy_enter_varobj): New constructor.
10432 * python/python-internal.h (gdbpy_enter_varobj): New class.
10433 * python/py-varobj.c (py_varobj_get_iterator): Use
10434 gdbpy_enter_varobj.
10435
10436 2017-01-10 Tom Tromey <tom@tromey.com>
10437
10438 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
10439 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10440 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
10441 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
10442 unique_xmalloc_ptr.
10443 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
10444
10445 2017-01-10 Tom Tromey <tom@tromey.com>
10446
10447 * python/py-xmethods.c (invoke_match_method): Use
10448 gdbpy_ref.
10449
10450 2017-01-10 Tom Tromey <tom@tromey.com>
10451
10452 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
10453 gdbpy_enter, gdbpy_ref.
10454
10455 2017-01-10 Tom Tromey <tom@tromey.com>
10456
10457 * python/python.c (python_interactive_command): Use gdbpy_enter.
10458
10459 2017-01-10 Tom Tromey <tom@tromey.com>
10460
10461 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
10462 gdbpy_ref.
10463
10464 2017-01-10 Tom Tromey <tom@tromey.com>
10465
10466 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
10467 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
10468
10469 2017-01-10 Tom Tromey <tom@tromey.com>
10470
10471 * utils.h (htab_deleter): New struct.
10472 (htab_up): New typedef.
10473 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
10474 gdbpy_enter, gdbpy_ref, htab_up.
10475
10476 2017-01-10 Tom Tromey <tom@tromey.com>
10477
10478 * python/py-unwind.c (pending_frame_invalidate): Remove.
10479 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
10480
10481 2017-01-10 Tom Tromey <tom@tromey.com>
10482
10483 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
10484 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
10485
10486 2017-01-10 Tom Tromey <tom@tromey.com>
10487
10488 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
10489
10490 2017-01-10 Tom Tromey <tom@tromey.com>
10491
10492 * python/python.c (gdbpy_eval_from_control_command)
10493 (gdbpy_source_script, gdbpy_run_events)
10494 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
10495 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
10496 gdbpy_enter.
10497
10498 2017-01-10 Tom Tromey <tom@tromey.com>
10499
10500 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
10501
10502 2017-01-10 Tom Tromey <tom@tromey.com>
10503
10504 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
10505
10506 2017-01-10 Tom Tromey <tom@tromey.com>
10507
10508 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
10509 (python_on_inferior_call_pre, python_on_inferior_call_post)
10510 (python_on_memory_change, python_on_register_change)
10511 (python_inferior_exit, python_new_objfile, add_thread_object)
10512 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
10513
10514 2017-01-10 Tom Tromey <tom@tromey.com>
10515
10516 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
10517 (bpfinishpy_handle_exit): Use gdbpy_enter.
10518
10519 2017-01-10 Tom Tromey <tom@tromey.com>
10520
10521 * python/py-cmd.c (cmdpy_destroyer)
10522 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
10523 gdbpy_enter.
10524
10525 2017-01-10 Tom Tromey <tom@tromey.com>
10526
10527 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
10528 gdbpy_enter.
10529 (gdbpy_breakpoint_has_cond): Likewise.
10530
10531 2017-01-10 Tom Tromey <tom@tromey.com>
10532
10533 * python/python.c (gdbpy_enter): New constructor.
10534 (~gdbpy_enter): New destructor.
10535 (restore_python_env, ensure_python_env): Rewrite.
10536 * python/python-internal.h (gdbpy_enter): New class.
10537
10538 2017-01-10 Tom Tromey <tom@tromey.com>
10539
10540 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
10541
10542 2017-01-10 Tom Tromey <tom@tromey.com>
10543
10544 * python/py-value.c (value_has_field, get_field_flag)
10545 (get_field_type, valpy_getitem, convert_value_from_python): Use
10546 gdbpy_ref.
10547
10548 2017-01-10 Tom Tromey <tom@tromey.com>
10549
10550 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
10551 gdbpy_ref.
10552
10553 2017-01-10 Tom Tromey <tom@tromey.com>
10554
10555 * python/py-prettyprint.c (search_pp_list)
10556 (find_pretty_printer_from_objfiles)
10557 (find_pretty_printer_from_progspace)
10558 (find_pretty_printer_from_gdb, find_pretty_printer)
10559 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
10560 gdbpy_ref.
10561
10562 2017-01-10 Tom Tromey <tom@tromey.com>
10563
10564 * python/py-param.c (call_doc_function): Use gdbpy_ref.
10565
10566 2017-01-10 Tom Tromey <tom@tromey.com>
10567
10568 * python/py-linetable.c (build_line_table_tuple_from_pcs)
10569 (ltpy_get_all_source_lines): Use gdbpy_ref.
10570
10571 2017-01-10 Tom Tromey <tom@tromey.com>
10572
10573 * python/py-framefilter.c (extract_sym, extract_value)
10574 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
10575 gdbpy_ref.
10576
10577 2017-01-10 Tom Tromey <tom@tromey.com>
10578
10579 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
10580
10581 2017-01-10 Tom Tromey <tom@tromey.com>
10582
10583 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
10584
10585 2017-01-10 Tom Tromey <tom@tromey.com>
10586
10587 * python/py-function.c (convert_values_to_python, fnpy_init): Use
10588 gdbpy_ref.
10589
10590 2017-01-10 Tom Tromey <tom@tromey.com>
10591
10592 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
10593
10594 2017-01-10 Tom Tromey <tom@tromey.com>
10595
10596 * python/py-type.c (convert_field, make_fielditem, typy_fields)
10597 (typy_range): Use gdbpy_ref.
10598
10599 2017-01-10 Tom Tromey <tom@tromey.com>
10600
10601 * python/py-threadevent.c (create_thread_event_object): Use
10602 gdbpy_ref.
10603 * python/py-stopevent.c (create_stop_event_object): Simplify.
10604 (emit_stop_event): Use gdbpy_ref.
10605 * python/py-signalevent.c (create_signal_event_object): Use
10606 gdbpy_ref.
10607 * python/py-newobjfileevent.c (create_new_objfile_event_object)
10608 (emit_new_objfile_event, create_clear_objfiles_event_object)
10609 (emit_clear_objfiles_event): Use gdbpy_ref.
10610 * python/py-infevents.c (create_inferior_call_event_object)
10611 (create_register_changed_event_object)
10612 (create_memory_changed_event_object, emit_inferior_call_event)
10613 (emit_memory_changed_event, emit_register_changed_event): Use
10614 gdbpy_ref.
10615 * python/py-exitedevent.c (create_exited_event_object)
10616 (emit_exited_event): Use gdbpy_ref.
10617 * python/py-event.h (evpy_emit_event): Remove
10618 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
10619 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
10620 * python/py-continueevent.c (emit_continue_event): Use
10621 gdbpy_ref.
10622 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10623 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10624 gdbpy_ref.
10625 * python/py-bpevent.c (create_breakpoint_event_object): Use
10626 gdbpy_ref.
10627
10628 2017-01-10 Tom Tromey <tom@tromey.com>
10629
10630 * python/py-ref.h: New file.
10631
10632 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10633
10634 * cli-out.c (cli_ui_out::do_redirect): Change return type to
10635 void.
10636 * cli-out.h (cli_ui_out::do_redirect): Likewise.
10637 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
10638 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
10639 * ui-out.c (ui_out::redirect): Likewise.
10640 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
10641 * cli/cli-logging.c (set_logging_redirect): Update call site of
10642 ui_out::redirect.
10643 (handle_redirections): Likewise.
10644 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
10645 * top.c (execute_command_to_string): Likewise.
10646 * utils.c (do_ui_out_redirect_pop): Likewise.
10647
10648 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
10649
10650 * stack.c (_initialize_stack): Update "frame" command help message.
10651
10652 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
10653
10654 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
10655
10656 2017-01-06 Yao Qi <yao.qi@linaro.org>
10657
10658 * x86-linux-nat.h: Include gdb_proc_service.h.
10659
10660 2017-01-06 Yao Qi <yao.qi@linaro.org>
10661
10662 * ser-base.h: Include serial.h.
10663
10664 2017-01-06 Yao Qi <yao.qi@linaro.org>
10665
10666 * ppc-linux-tdep.h: Include ppc-tdep.h.
10667
10668 2017-01-06 Yao Qi <yao.qi@linaro.org>
10669
10670 * nat/amd64-linux-siginfo.h: Include signal.h.
10671
10672 2017-01-06 Yao Qi <yao.qi@linaro.org>
10673
10674 * nat/aarch64-linux-hw-point.h: Include break-common.h.
10675
10676 2017-01-06 Yao Qi <yao.qi@linaro.org>
10677
10678 * mi/mi-parse.h: Include mi-cmds.h.
10679
10680 2017-01-06 Yao Qi <yao.qi@linaro.org>
10681
10682 * inf-loop.c: Don't include "target.h".
10683 * inf-loop.h: Include it here.
10684
10685 2017-01-06 Yao Qi <yao.qi@linaro.org>
10686
10687 * dfp.h: Include "dboulest.h" and "expression.h".
10688
10689 2017-01-06 Yao Qi <yao.qi@linaro.org>
10690
10691 * ax-gdb.h: Include "ax.h".
10692
10693 2017-01-06 Yao Qi <yao.qi@linaro.org>
10694
10695 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
10696 with nat/gdb_ptrace.h.
10697
10698 2017-01-05 Yao Qi <yao.qi@linaro.org>
10699
10700 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
10701 new line.
10702 (mips64_fbsd_sigframe_init): Likewise.
10703
10704 2017-01-04 John Baldwin <jhb@FreeBSD.org>
10705
10706 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
10707 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
10708
10709 2017-01-04 John Baldwin <jhb@FreeBSD.org>
10710
10711 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
10712 * NEWS: Mention new FreeBSD/mips native configuration.
10713 * config/mips/fbsd.mh: New file.
10714 * configure.host: Add mips*-*-freebsd*.
10715 * mips-fbsd-nat.c: New file.
10716
10717 2017-01-04 John Baldwin <jhb@FreeBSD.org>
10718
10719 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
10720 (ALLDEPFILES): Add mips-fbsd-tdep.c.
10721 * NEWS: Mention new FreeBSD/mips target.
10722 * configure.tgt: Add mips*-*-freebsd*.
10723 * mips-fbsd-tdep.c: New file.
10724 * mips-fbsd-tdep.h: New file.
10725
10726 2017-01-04 Yao Qi <yao.qi@linaro.org>
10727
10728 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
10729 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
10730
10731 2017-01-01 Joel Brobecker <brobecker@adacore.com>
10732
10733 Update copyright year range in all GDB files.
10734
10735 2017-01-01 Joel Brobecker <brobecker@adacore.com>
10736
10737 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
10738
10739 For older changes see ChangeLog-2016.
10740 \f
10741 Local Variables:
10742 mode: change-log
10743 left-margin: 8
10744 fill-column: 74
10745 version-control: never
10746 coding: utf-8
10747 End:
This page took 0.245747 seconds and 5 git commands to generate.