Constify maintenance_print_reggroups
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * reggroups.c (maintenance_print_reggroups): Constify.
4
5 2017-09-27 Tom Tromey <tom@tromey.com>
6
7 * dwarf2read.c (save_gdb_index_command): Constify.
8
9 2017-09-27 Tom Tromey <tom@tromey.com>
10
11 * stap-probe.c (info_probes_stap_command): Constify.
12
13 2017-09-27 Tom Tromey <tom@tromey.com>
14
15 * fork-child.c (unset_exec_wrapper_command): Constify.
16
17 2017-09-27 Tom Tromey <tom@tromey.com>
18
19 * btrace.c (get_uint, get_context_size, no_chunk)
20 (maint_btrace_packet_history_cmd)
21 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
22 (maint_info_btrace_cmd): Constify.
23
24 2017-09-27 Tom Tromey <tom@tromey.com>
25
26 * reverse.c (delete_bookmark_command): Constify.
27
28 2017-09-27 Tom Tromey <tom@tromey.com>
29
30 * remote.c (set_memory_packet_size)
31 (set_memory_write_packet_size, show_memory_write_packet_size)
32 (set_memory_read_packet_size, show_memory_read_packet_size)
33 (compare_sections_command, packet_command, remote_put_command)
34 (remote_get_command, remote_delete_command): Constify.
35
36 2017-09-27 Tom Tromey <tom@tromey.com>
37
38 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
39 (set_mipsfpu_double_command, set_mipsfpu_none_command)
40 (set_mipsfpu_auto_command): Constify.
41
42 2017-09-27 Tom Tromey <tom@tromey.com>
43
44 * cli/cli-cmds.h (cd_command): Constify.
45 * cli/cli-cmds.c (cd_command): Constify.
46
47 2017-09-27 Tom Tromey <tom@tromey.com>
48
49 * thread.c (thread_name_command, thread_find_command): Constify.
50
51 2017-09-27 Tom Tromey <tom@tromey.com>
52
53 * probe.c (enable_probes_command, disable_probes_command):
54 Constify.
55
56 2017-09-27 Tom Tromey <tom@tromey.com>
57
58 * symfile.c (symbol_file_command): Constify.
59 * gdbcore.h (deprecated_file_changed_hook): Constify.
60 * exec.c (deprecated_file_changed_hook, exec_file_command)
61 (file_command): Constify.
62 * defs.h (symbol_file_command): Constify.
63
64 2017-09-27 Tom Tromey <tom@tromey.com>
65
66 * remote-fileio.c (set_system_call_allowed)
67 (show_system_call_allowed): Constify.
68
69 2017-09-27 Tom Tromey <tom@tromey.com>
70
71 * tracepoint.c (delete_trace_variable_command)
72 (tfind_end_command, tfind_start_command, tfind_pc_command)
73 (tfind_tracepoint_command, tfind_line_command)
74 (tfind_range_command, tfind_outside_command): Constify.
75
76 2017-09-27 Tom Tromey <tom@tromey.com>
77
78 * ax-gdb.c (maint_agent_printf_command, agent_command)
79 (agent_eval_command): Constify.
80
81 2017-09-27 Tom Tromey <tom@tromey.com>
82
83 * tracepoint.c (info_scope_command): Constify.
84 * python/python.c (gdbpy_decode_line): Constify.
85 * python/py-breakpoint.c (bppy_init): Constify.
86 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
87 * location.h: (new_linespec_location)
88 (string_to_event_location_basic, string_to_event_location):
89 Constify.
90 * location.c (new_linespec_location)
91 (string_to_event_location_basic, string_to_event_location):
92 Constify.
93 * linespec.h (decode_line_with_current_source)
94 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
95 * linespec.c (linespec_lex_to_end)
96 (decode_line_with_current_source)
97 (decode_line_with_last_displayed): Constify.
98 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
99 Constify.
100 * cli/cli-cmds.c (edit_command, list_command): Constify.
101 * breakpoint.h (until_break_command, watch_command_wrapper)
102 (awatch_command_wrapper, rwatch_command_wrapper)
103 (init_ada_exception_breakpoint): Constify.
104 * breakpoint.c (break_command_1, dprintf_command)
105 (break_range_command, watch_command_wrapper)
106 (rwatch_command_wrapper, awatch_command_wrapper)
107 (until_break_command, init_ada_exception_breakpoint)
108 (strace_marker_create_sals_from_location, trace_command)
109 (ftrace_command, strace_command, struct tracepoint): Constify.
110 * ax-gdb.c (agent_command_1): Constify.
111 * ada-lang.c (ada_exception_sal): Constify.
112
113 2017-09-27 Tom Tromey <tom@tromey.com>
114
115 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
116 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
117 (get_context_size, no_chunk, get_insn_history_modifiers)
118 (cmd_record_insn_history, get_call_history_modifiers)
119 (cmd_record_call_history): Constify.
120
121 2017-09-27 Tom Tromey <tom@tromey.com>
122
123 * source.c (show_substitute_path_command)
124 (unset_substitute_path_command, set_substitute_path_command):
125 Constify.
126
127 2017-09-27 Tom Tromey <tom@tromey.com>
128
129 * typeprint.c (maintenance_print_type): Constify.
130 * maint.c (maintenance_dump_me, maintenance_demangle)
131 (maintenance_time_display, maintenance_info_sections)
132 (maintenance_print_statistics, maintenance_deprecate)
133 (maintenance_undeprecate): Constify.
134 (maintenance_do_deprecate): Constify. Use std::string.
135 (maintenance_selftest): Constify.
136 * gdbtypes.h (maintenance_print_type): Constify.
137
138 2017-09-27 Tom Tromey <tom@tromey.com>
139
140 * hppa-tdep.c (unwind_command): Constify.
141
142 2017-09-27 Tom Tromey <tom@tromey.com>
143
144 * target-descriptions.c (unset_tdesc_filename_cmd)
145 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
146 Constify.
147
148 2017-09-27 Tom Tromey <tom@tromey.com>
149
150 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
151
152 2017-09-27 Tom Tromey <tom@tromey.com>
153
154 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
155
156 2017-09-27 Tom Tromey <tom@tromey.com>
157
158 * tui/tui-regs.c (tui_reg_command): Constify.
159
160 2017-09-27 Tom Tromey <tom@tromey.com>
161
162 * skip.c (skip_file_command, skip_function_command)
163 (skip_enable_command, skip_disable_command, skip_delete_command):
164 Constify.
165
166 2017-09-27 Tom Tromey <tom@tromey.com>
167
168 * record-btrace.c (cmd_record_btrace_bts_start)
169 (cmd_record_btrace_pt_start): Constify.
170
171 2017-09-27 Tom Tromey <tom@tromey.com>
172
173 * symmisc.c (maintenance_print_symbols)
174 (maintenance_print_msymbols, maintenance_print_objfiles)
175 (maintenance_info_symtabs, maintenance_check_symtabs)
176 (maintenance_expand_symtabs, maintenance_info_line_tables):
177 Constify.
178
179 2017-09-27 Tom Tromey <tom@tromey.com>
180
181 * top.c (new_ui_command): Constify.
182
183 2017-09-27 Tom Tromey <tom@tromey.com>
184
185 * symfile.c (add_symbol_file_command)
186 (remove_symbol_file_command, list_overlays_command)
187 (map_overlay_command, unmap_overlay_command)
188 (overlay_auto_command, overlay_manual_command)
189 (overlay_off_command, overlay_load_command): Constify.
190
191 2017-09-27 Tom Tromey <tom@tromey.com>
192
193 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
194 (info_spu_mailbox_command, info_spu_dma_command)
195 (info_spu_proxydma_command): Constify.
196
197 2017-09-27 Tom Tromey <tom@tromey.com>
198
199 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
200
201 2017-09-27 Tom Tromey <tom@tromey.com>
202
203 * cli/cli-script.c (user_defined_command): Constify.
204
205 2017-09-27 Tom Tromey <tom@tromey.com>
206
207 * cli/cli-dump.c (dump_memory_command, dump_value_command)
208 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
209 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
210 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
211 (dump_binary_value, append_binary_memory, append_binary_value):
212 Constify.
213 (struct dump_context) <func>: Constify.
214 (add_dump_command): Update.
215
216 2017-09-27 Tom Tromey <tom@tromey.com>
217
218 * cli/cli-cmds.c (show_version, show_configuration)
219 (source_command, show_user): Constify.
220
221 2017-09-27 Tom Tromey <tom@tromey.com>
222
223 * target.c (maintenance_print_target_stack): Constify.
224
225 2017-09-27 Tom Tromey <tom@tromey.com>
226
227 * interps.c (interpreter_exec_cmd): Constify.
228
229 2017-09-27 Tom Tromey <tom@tromey.com>
230
231 * record-full.c (cmd_record_full_restore): Constify.
232
233 2017-09-27 Tom Tromey <tom@tromey.com>
234
235 * memattr.c (enable_mem_command, disable_mem_command)
236 (delete_mem_command): Constify.
237
238 2017-09-27 Tom Tromey <tom@tromey.com>
239
240 * value.c (show_convenience): Constify.
241
242 2017-09-27 Tom Tromey <tom@tromey.com>
243
244 * gdbcore.h (core_file_command): Update.
245 * corefile.c (core_file_command): Constify.
246
247 2017-09-27 Tom Tromey <tom@tromey.com>
248
249 * user-regs.c (maintenance_print_user_registers): Constify.
250
251 2017-09-27 Tom Tromey <tom@tromey.com>
252
253 * cp-namespace.c (maintenance_cplus_namespace): Constify.
254
255 2017-09-27 Tom Tromey <tom@tromey.com>
256
257 * cp-support.c (first_component_command): Constify.
258
259 2017-09-27 Tom Tromey <tom@tromey.com>
260
261 * psymtab.c (maintenance_print_psymbols)
262 (maintenance_info_psymtabs, maintenance_check_psymtabs):
263 Constify.
264
265 2017-09-27 Tom Tromey <tom@tromey.com>
266
267 * windows-tdep.c (display_tib): Constify.
268
269 2017-09-27 Tom Tromey <tom@tromey.com>
270
271 * linux-fork.c (delete_checkpoint_command)
272 (detach_checkpoint_command): Constify.
273
274 2017-09-27 Tom Tromey <tom@tromey.com>
275
276 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
277
278 2017-09-27 Tom Tromey <tom@tromey.com>
279
280 * arc-tdep.c (dump_arc_instruction_command): Constify.
281
282 2017-09-27 Tom Tromey <tom@tromey.com>
283
284 * valprint.c (set_radix, show_radix): Constify.
285
286 2017-09-27 Tom Tromey <tom@tromey.com>
287
288 * dtrace-probe.c (info_probes_dtrace_command): Constify.
289
290 2017-09-27 Tom Tromey <tom@tromey.com>
291
292 * command.h (not_just_help_class_command): Update.
293 * cli/cli-decode.h (not_just_help_class_command): Update.
294 * cli/cli-decode.c (not_just_help_class_command): Constify.
295
296 2017-09-27 Tom Tromey <tom@tromey.com>
297
298 * gdb_bfd.c (maintenance_info_bfds): Constify.
299
300 2017-09-27 Tom Tromey <tom@tromey.com>
301
302 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
303 overloads.
304 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
305 (do_const_cfunc): New function.
306 (cmd_cfunc_eq): New overload.
307 (cli_user_command_p): Check do_const_cfunc.
308 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
309 const_cfunc.
310 * command.h (add_cmd): Add const overload and no-function
311 overload.
312 (set_cmd_cfunc): Add const overload.
313 (cmd_const_cfunc_ftype): Declare.
314 (cmd_cfunc_eq): Add const overload.
315 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
316 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
317 overload.
318
319 2017-09-27 Tom Tromey <tom@tromey.com>
320
321 * macroexp.c (get_next_token_for_substitution): New function.
322 (substitute_args): Call it. Check for __VA_OPT__.
323
324 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
325 Pedro Alves <palves@redhat.com>
326
327 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
328 producer_is_icc_lt_14.
329 (producer_is_icc_lt_14): New function.
330 (check_producer): Add code for checking version of ICC.
331 (producer_is_icc): Move to producer.c.
332 (read_structure_type): Restrict ICC workaround to ICC<14.
333 * producer.c: Include selftest.h.
334 (producer_is_icc, producer_parsing_tests, _initialize_producer):
335 New functions.
336 * producer.h (producer_is_icc): New declaration.
337
338 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
339
340 * Makefile.in (SFILES): Add producer.c.
341 (COMMON_OBS): Add producer.o
342 * amd64-tdep.c (producer.h): Add new include.
343 * dwarf2read.c (producer.h): Add new include.
344 * producer.c: New file.
345 * producer.h: New file.
346 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
347 producer.c.
348 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
349 producer.h.
350
351 2017-09-26 Matthias Klose <doko@ubuntu.com>
352
353 * configure.ac: Search ncursesw before ncurses.
354 Check ncursesw/ncurses.h before ncurses/ncurses.h.
355 * gdb_curses.h: Include <ncursesw/ncurses.h>
356 * config.in, configure: Regenerate.
357
358 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
359
360 PR gdb/22185
361 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
362 obsolete.
363 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
364 Remove i386sol2 support.
365 * configure.nat <i386sol2>: Remove.
366 <sol2-64>: Fold into ...
367 <sol2>: ... this.
368 Move common settings to default section.
369 Add sol-thread.o.
370 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
371 x86_64-*-solaris2.1[0-9]*>: Rename to ...
372 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
373 <i[34567]86-*-solaris*>: Remove.
374 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
375
376 * configure.ac: Remove wctype in libw check.
377 (_MSE_INT_H): Don't define on Solaris 7-9.
378 <solaris*>: Remove libthread_db.so.1 check.
379 * configure: Regenerate.
380 * config.in: Regenerate.
381
382 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
383 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
384 (gdb_ps_size_t): Remove.
385 Use base types in users.
386 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
387
388 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
389
390 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
391
392 PR build/22206
393 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
394 (adi_is_addr_mapped): Likewise.
395 (PSR_ICC): Don't redefine.
396 (PSR_IMPL): Likewise.
397
398 2017-09-25 Tom Tromey <tom@tromey.com>
399
400 * regcache.c (regcache::dump): Use string_printf.
401
402 2017-09-25 Tom Tromey <tom@tromey.com>
403
404 * regcache.c (class regcache_invalidator): New.
405 (struct register_to_invalidate): Remove.
406 (make_cleanup_regcache_invalidate): Remove.
407 (regcache::raw_write): Use regcache_invalidator.
408
409 2017-09-25 Tom Tromey <tom@tromey.com>
410
411 * spu-tdep.c (spu2ppu_sniffer): Update.
412 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
413 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
414 Remove.
415 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
416 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
417 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
418 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
419 (frame_pop): Update.
420
421 2017-09-25 Tom Tromey <tom@tromey.com>
422
423 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
424 * regcache.h (regcache_xfree): Don't declare.
425 * regcache.c (regcache_xfree): Remove.
426 (do_regcache_xfree): Use delete.
427 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
428 * linux-fork.c (free_fork): Use delete.
429 (fork_save_infrun_state): Likewise.
430 * jit.c (jit_dealloc_cache): Use delete.
431 * infrun.c (discard_infcall_suspend_state): Use delete.
432
433 2017-09-25 Tom Tromey <tom@tromey.com>
434
435 * regcache.h (regcache_xmalloc): Don't declare.
436 (regcache_raw_set_cached_value): Update comment.
437 * regcache.c (regcache_xmalloc): Remove.
438 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
439 * jit.c (jit_frame_sniffer): Use new.
440 * frame.c (frame_save_as_regcache): Use new.
441
442 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
443
444 * NEWS: Advertise support for guarded-storage registers on IBM z.
445
446 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
447
448 * s390-linux-nat.c (have_regset_gs): New static variable.
449 (s390_linux_fetch_inferior_registers): Handle guarded-storage
450 control block and guarded-storage broadcast control regsets.
451 (s390_read_description): Detect whether the target has
452 guarded-storage support, return appropriate tdesc.
453 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
454 (features/s390x-gs-linux64.c): Likewise.
455 (struct gdbarch_tdep) <have_gs>: New field.
456 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
457 (s390_gsbc_regset): New variables.
458 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
459 and s390_gsbc_regset, if applicable.
460 (s390_core_read_description): Check whether core file was from a
461 target with guarded-storage support; include appropriate regsets.
462 (s390_gdbarch_init): Add registers for guarded-storage support.
463 (_initialize_s390_tdep): Initialize new target descriptions that
464 include registers for guarded-storage support.
465 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
466 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
467 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
468 (S390_NUM_REGS): Adjust macro definition.
469 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
470 (tdesc_s390x_gs_linux64): New declarations.
471
472 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
473
474 * features/s390-gs-linux64.xml: New file.
475 * features/s390-gs.xml: New file.
476 * features/s390-gsbc.xml: New file.
477 * features/s390x-gs-linux64.xml: New file.
478 * features/Makefile (WHICH): Add s390-gs-linux64 and
479 s390x-gs-linux64.
480 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
481 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
482 * features/s390-gs-linux64.c: New generated file.
483 * features/s390x-gs-linux64.c: New file.
484 * regformats/s390-gs-linux64.dat: New file.
485 * regformats/s390x-gs-linux64.dat: New file.
486
487 2017-09-23 Tom Tromey <tom@tromey.com>
488
489 * defs.h (make_cleanup_override_quit_handler): Don't declare.
490
491 2017-09-22 Tom Tromey <tom@tromey.com>
492
493 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
494 type to scoped_restore_tmpl.
495 <scoped_input_handler>: Initialize m_quit_handler directly.
496
497 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
498
499 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
500 (cd_command): Likewise. Free "current_directory" before
501 assigning to it.
502 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
503 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
504 * top.c (gdb_dirbuf): Remove global declaration.
505 * top.h (gdb_dirbuf): Likewise.
506
507 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
508
509 * gnulib/aclocal.m4: Regenerate.
510 * gnulib/config.in: Regenerate.
511 * gnulib/configure: Regenerate.
512 * gnulib/import/Makefile.am: Regenerate.
513 * gnulib/import/Makefile.in: Regenerate.
514 * gnulib/import/assure.h: New file.
515 * gnulib/import/at-func.c: Likewise
516 * gnulib/import/chdir-long.c: New file.
517 * gnulib/import/chdir-long.h: New file.
518 * gnulib/import/cloexec.c: New file.
519 * gnulib/import/cloexec.h: New file.
520 * gnulib/import/close.c: New file.
521 * gnulib/import/closedir.c: New file.
522 * gnulib/import/dirent-private.h: New file.
523 * gnulib/import/dup-safer.c: New file.
524 * gnulib/import/dup.c: New file.
525 * gnulib/import/dup2.c: New file.
526 * gnulib/import/error.c: New file.
527 * gnulib/import/error.h: New file.
528 * gnulib/import/exitfail.c: New file.
529 * gnulib/import/exitfail.h: New file.
530 * gnulib/import/fchdir.c: New file.
531 * gnulib/import/fcntl.c: New file.
532 * gnulib/import/fcntl.in.h: New file.
533 * gnulib/import/fd-hook.c: New file.
534 * gnulib/import/fd-hook.h: New file.
535 * gnulib/import/fd-safer.c: New file.
536 * gnulib/import/fdopendir.c: New file.
537 * gnulib/import/filename.h: New file.
538 * gnulib/import/filenamecat-lgpl.c: New file.
539 * gnulib/import/filenamecat.h: New file.
540 * gnulib/import/fstat.c: New file.
541 * gnulib/import/fstatat.c: New file.
542 * gnulib/import/getcwd-lgpl.c: New file.
543 * gnulib/import/getcwd.c: New file.
544 * gnulib/import/getdtablesize.c: New file.
545 * gnulib/import/getlogin_r.c: New file.
546 * gnulib/import/getprogname.c: New file.
547 * gnulib/import/getprogname.h: New file.
548 * gnulib/import/gettext.h: New file.
549 * gnulib/import/glob-libc.h: New file.
550 * gnulib/import/glob.c: New file.
551 * gnulib/import/glob.in.h: New file.
552 * gnulib/import/intprops.h: New file.
553 * gnulib/import/m4/chdir-long.m4: New file.
554 * gnulib/import/m4/close.m4: New file.
555 * gnulib/import/m4/closedir.m4: New file.
556 * gnulib/import/m4/d-ino.m4: New file.
557 * gnulib/import/m4/d-type.m4: New file.
558 * gnulib/import/m4/dup.m4: New file.
559 * gnulib/import/m4/dup2.m4: New file.
560 * gnulib/import/m4/error.m4: New file.
561 * gnulib/import/m4/fchdir.m4: New file.
562 * gnulib/import/m4/fcntl.m4: New file.
563 * gnulib/import/m4/fcntl_h.m4: New file.
564 * gnulib/import/m4/fdopendir.m4: New file.
565 * gnulib/import/m4/filenamecat.m4: New file.
566 * gnulib/import/m4/fstat.m4: New file.
567 * gnulib/import/m4/fstatat.m4: New file.
568 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
569 * gnulib/import/m4/getcwd-path-max.m4: New file.
570 * gnulib/import/m4/getcwd.m4: New file.
571 * gnulib/import/m4/getdtablesize.m4: New file.
572 * gnulib/import/m4/getlogin_r.m4: New file.
573 * gnulib/import/m4/getprogname.m4: New file.
574 * gnulib/import/m4/glob.m4: New file.
575 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
576 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
577 * gnulib/import/m4/mempcpy.m4: New file.
578 * gnulib/import/m4/memrchr.m4: New file.
579 * gnulib/import/m4/mode_t.m4: New file.
580 * gnulib/import/m4/msvc-inval.m4: New file.
581 * gnulib/import/m4/msvc-nothrow.m4: New file.
582 * gnulib/import/m4/open.m4: New file.
583 * gnulib/import/m4/openat.m4: New file.
584 * gnulib/import/m4/opendir.m4: New file.
585 * gnulib/import/m4/readdir.m4: New file.
586 * gnulib/import/m4/realloc.m4: New file.
587 * gnulib/import/m4/rewinddir.m4: New file.
588 * gnulib/import/m4/save-cwd.m4: New file.
589 * gnulib/import/m4/strdup.m4: New file.
590 * gnulib/import/m4/strerror.m4: New file.
591 * gnulib/import/m4/unistd-safer.m4: New file.
592 * gnulib/import/mempcpy.c: New file.
593 * gnulib/import/memrchr.c: New file.
594 * gnulib/import/msvc-inval.c: New file.
595 * gnulib/import/msvc-inval.h: New file.
596 * gnulib/import/msvc-nothrow.c: New file.
597 * gnulib/import/msvc-nothrow.h: New file.
598 * gnulib/import/open.c: New file.
599 * gnulib/import/openat-die.c: New file.
600 * gnulib/import/openat-priv.h: New file.
601 * gnulib/import/openat-proc.c: New file.
602 * gnulib/import/openat.c: New file.
603 * gnulib/import/openat.h: New file.
604 * gnulib/import/opendir.c: New file.
605 * gnulib/import/pipe-safer.c: New file.
606 * gnulib/import/readdir.c: New file.
607 * gnulib/import/realloc.c: New file.
608 * gnulib/import/rewinddir.c: New file.
609 * gnulib/import/save-cwd.c: New file.
610 * gnulib/import/save-cwd.h: New file.
611 * gnulib/import/strdup.c: New file.
612 * gnulib/import/strerror-override.c: New file.
613 * gnulib/import/strerror-override.h: New file.
614 * gnulib/import/strerror.c: New file.
615 * gnulib/import/unistd--.h: New file.
616 * gnulib/import/unistd-safer.h: New file.
617 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
618 "getcwd" and "glob".
619 * ser-tcp.c: Undefine "close" before redefining it.
620
621 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
622
623 * guile/scm-value.c (gdbscm_value_address): Initialize address,
624 get rid of res_val.
625
626 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627
628 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
629 <sol2,sparc>: Likewise.
630 <sol2-64,i386>: Likewise.
631
632 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
633 -Wdeprecated-declarations on *-*-solaris*.
634 * configure: Regenerate.
635
636 * procfs.c: Include "nat/inferior.h".
637 (procfs_info_proc): Fix typo.
638
639 2017-09-21 Kevin Buettner <kevinb@redhat.com>
640
641 * remote.c (vector): Include.
642 (struct private_thread_info): Add field, thread_handle.
643 (free_private_thread_info): Deallocate storage associated with
644 thread handle.
645 (get_private_info_thread): Initialize `thread_handle' field.
646 (struct thread_item): Add field, thread_handle.
647 (clear_threads_listing_context): Deallocate storage associated
648 with thread handle.
649 (start_thread): Add support for "handle" attribute.
650 (thread_attributes): Add "handle".
651 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
652 field.
653 (remote_update_thread_list): Update thread_handle.
654 (remote_thread_handle_to_thread_info): New function.
655 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
656
657 2017-09-21 Kevin Buettner <kevinb@redhat.com>
658
659 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
660 function.
661 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
662 * python/python-internal.h (thread_object_type): Declare.
663
664 2017-09-21 Kevin Buettner <kevinb@redhat.com>
665
666 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
667 (target_thread_handle_to_thread_info): Declare.
668 * target.c (target_thread_handle_to_thread_info): New function.
669 * target-delegates.c: Regenerate.
670 * gdbthread.h (find_thread_by_handle): Declare.
671 * thread.c (find_thread_by_handle): New function.
672 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
673 function.
674 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
675
676 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
677
678 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
679
680 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
681
682 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
683
684 2017-09-21 Yao Qi <yao.qi@linaro.org>
685
686 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
687 to gdb_target_obs.
688
689 2017-09-20 Tom Tromey <tom@tromey.com>
690
691 * breakpoint.c (struct counted_command_line): Remove.
692 (breakpoint_commands): Update.
693 (alloc_counted_command_line, incref_counted_command_line)
694 (decref_counted_command_line, do_cleanup_counted_command_line)
695 (make_cleanup_decref_counted_command_line): Remove.
696 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
697 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
698 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
699 (save_breakpoints): Update.
700 * breakpoint.h (counted_command_line): Now a typedef to
701 shared_ptr.
702 (struct breakpoint) <commands>: Now a counted_command_line.
703 (struct bpstats) <command>: Likewise.
704
705 2017-09-20 Tom Tromey <tom@tromey.com>
706
707 * breakpoint.c (struct commands_info, do_map_commands_command):
708 Remove.
709 (commands_command_1): Update.
710 (iterate_over_related_breakpoints): Take a function_view.
711 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
712 (delete_command): Update.
713 (map_breakpoint_numbers): Take a function_view.
714 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
715 (disable_command): Update.
716 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
717 (enable_command): Update.
718 (struct disp_data, do_enable_breakpoint_disp)
719 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
720 (do_map_enable_delete_breakpoint): Remove.
721 (enable_once_command, enable_count_command, enable_delete_command)
722 (delete_trace_variable_command): Update.
723
724 2017-09-20 Tom Tromey <tom@tromey.com>
725
726 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
727 (bpstat_clear): Use delete.
728 (bpstats): New constructors.
729 (bpstat_copy, bpstat_stop_status): Use new.
730 (dprintf_after_condition_true): Update.
731 * breakpoint.h (bpstats::bpstats): Add constructors.
732 (bpstats::~bpstats): Add destructor.
733
734 2017-09-20 Pedro Alves <palves@redhat.com>
735
736 * eval.c (make_params): Delete, refactored as ...
737 (class fake_method): ... this new type's ctor.
738 (fake_method::~fake_method): New.
739 (evaluate_subexp_standard): Use 'fake_method'.
740
741 2017-09-20 Tom Tromey <tom@tromey.com>
742
743 * windows-nat.c (get_windows_debug_event, windows_wait)
744 (do_initial_windows_stuff, windows_attach): Update.
745 * utils.c (vwarning, internal_vproblem): Update.
746 (ui_unregister_input_event_handler_cleanup)
747 (prepare_to_handle_input): Remove.
748 (class scoped_input_handler): New.
749 (defaulted_query, prompt_for_continue): Update.
750 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
751 Update.
752 * top.c (undo_terminal_modifications_before_exit): Update.
753 * target/target.h (target_terminal_init, target_terminal_inferior)
754 (target_terminal_ours): Don't declare.
755 (class target_terminal): New.
756 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
757 (target_terminal_ours_for_output)
758 (make_cleanup_restore_target_terminal): Don't declare.
759 (target_terminal_info): Remove.
760 * target.c (enum terminal_state, terminal_state): Remove.
761 (target_terminal::terminal_state): Define.
762 (target_terminal::init): Rename from target_terminal_init.
763 (target_terminal::inferior): Rename from
764 target_terminal_inferior.
765 (target_terminal::ours): Rename from target_terminal_ours.
766 (target_terminal::ours_for_output): Rename from
767 target_terminal_ours_for_output.
768 (target_terminal::info): New method.
769 (cleanup_restore_target_terminal)
770 (make_cleanup_restore_target_terminal): Remove.
771 * solib.c (handle_solib_event): Update.
772 * remote.c (remote_serial_quit_handler): Update.
773 (remote_terminal_inferior, remote_wait_as): Update.
774 * record-full.c (record_full_wait_1): Update.
775 * nto-procfs.c (procfs_create_inferior): Update.
776 * nat/fork-inferior.c (startup_inferior): Update.
777 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
778 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
779 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
780 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
781 (mi_breakpoint_created, mi_breakpoint_deleted)
782 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
783 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
784 (mi_user_selected_context_changed, report_initial_inferior):
785 Update.
786 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
787 (linux_nat_terminal_inferior): Update.
788 * infrun.c (follow_fork_inferior)
789 (handle_vfork_child_exec_or_exit, do_target_resume)
790 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
791 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
792 Update.
793 * inflow.c (child_terminal_init, info_terminal_command): Update.
794 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
795 (attach_command): Update.
796 * infcall.c (call_thread_fsm_should_stop): Update.
797 * gnu-nat.c (gnu_attach): Update.
798 * extension.c (struct active_ext_lang_state)
799 (restore_active_ext_lang): Update.
800 * exceptions.c (print_flush): Update.
801 * event-top.c (async_enable_stdin, default_quit_handler): Update.
802 (struct quit_handler_cleanup_data, restore_quit_handler)
803 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
804 Remove.
805 * cp-support.c (gdb_demangle): Update.
806 * breakpoint.c (update_inserted_breakpoint_locations)
807 (insert_breakpoint_locations, handle_jit_event)
808 (disable_breakpoints_in_unloaded_shlib): Update.
809 * annotate.c (annotate_breakpoints_invalid)
810 (annotate_frames_invalid): Update.
811
812 2017-09-20 Tom Tromey <tom@tromey.com>
813
814 * main.c (catch_command_errors): Rename from
815 catch_command_errors_const.
816 (captured_main_1): Update.
817
818 2017-09-20 Pedro Alves <palves@redhat.com>
819
820 * cli/cli-cmds.c (list_command): Use print_sal_location.
821 (print_sal_location): New function.
822 (ambiguous_line_spec): Use print_sal_location.
823 * linespec.c (symbol_to_sal): Record the symbol in the sal.
824 * symtab.c (find_function_start_sal): Likewise.
825 * symtab.h (symtab_and_line::symbol): New field.
826
827 2017-09-20 Pedro Alves <palves@redhat.com>
828
829 * linespec.c (minsym_found): Handle non-text minsyms.
830 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
831
832 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
833
834 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
835 backslash.
836
837 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
838
839 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
840 vmovups instead vmovaps.
841 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
842
843 2017-09-19 John Baldwin <jhb@FreeBSD.org>
844
845 * NEWS (Changes since GDB 8.0): Add starti.
846 * infcmd.c (enum run_break): New.
847 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
848 case.
849 (run_command): Use enum run_how.
850 (start_command): Likewise.
851 (starti_command): New function.
852 (RUN_ARGS_HELP): New macro.
853 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
854 commands. Add starti command.
855
856 2017-09-19 Yao Qi <yao.qi@linaro.org>
857
858 * Makefile.in (monitor.o): Remove the rule.
859
860 2017-09-19 Yao Qi <yao.qi@linaro.org>
861
862 * annotate.h (struct annotate_arg_emitter): Use
863 DISABLE_COPY_AND_ASSIGN.
864 * common/refcounted-object.h (refcounted_object): Likewise.
865 * completer.h (struct completion_result): Likewise.
866 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
867 * filename-seen-cache.h (filename_seen_cache): Likewise.
868 * gdbcore.h (thread_section_name): Likewise.
869 * gdb_regex.h (compiled_regex): Likewise.
870 * gdbthread.h (scoped_restore_current_thread): Likewise.
871 * inferior.h (scoped_restore_current_inferior): Likewise.
872 * jit.c (jit_reader): Likewise.
873 * linespec.h (struct linespec_result): Likewise.
874 * mi/mi-parse.h (struct mi_parse): Likewise.
875 * nat/fork-inferior.c (execv_argv): Likewise.
876 * progspace.h (scoped_restore_current_program_space): Likewise.
877 * python/python-internal.h (class gdbpy_enter): Likewise.
878 * regcache.h (regcache): Likewise.
879 * target-descriptions.c (struct tdesc_reg): Likewise.
880 (struct tdesc_type): Likewise.
881 (struct tdesc_feature): Likewise.
882 * ui-out.h (ui_out_emit_type): Likewise.
883
884 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
885
886 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
887 label abort_expression.
888
889 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
890
891 * common/buffer.c (buffer_xml_printf): Adjust.
892 * common/xml-utils.c (xml_escape_text): Change return type to
893 std::string, update code accordingly.
894 * common/xml-utils.h (xml_escape_text): Change return type to
895 std::string.
896 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
897 * windows-tdep.c (windows_xfer_shared_library): Adjust.
898 * unittests/xml-utils-selftests.c (test_xml_escape_text):
899 Adjust.
900
901 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
902
903 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
904 (SUBDIR_UNITTESTS_OBS): Add new object file.
905 * unittests/xml-utils-selftests.c: New file.
906
907 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
908
909 * common/selftest.h (selftest): New struct/interface.
910 (register_test): Add name parameter, add new overload.
911 (run_tests): Add filter parameter.
912 (for_each_selftest_ftype): New typedef.
913 (for_each_selftest): New declaration.
914 * common/selftest.c (tests): Change type to
915 map<string, unique_ptr<selftest>>.
916 (simple_selftest): New struct.
917 (register_test): New function.
918 (register_test): Add name parameter and use it.
919 (run_tests): Add filter parameter and use it. Add prints.
920 Adjust to vector -> map change.
921 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
922 registering selftests.
923 * arm-tdep.c (_initialize_arm_tdep): Likewise.
924 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
925 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
926 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
927 * findvar.c (_initialize_findvar): Likewise.
928 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
929 * maint.c (maintenance_selftest): Update call to run_tests.
930 (maintenance_info_selftests): New function.
931 (_initialize_maint_cmds): Register "maintenance info selftests"
932 command. Update "maintenance selftest" doc.
933 * regcache.c (_initialize_regcache): Add names when registering
934 selftests.
935 * rust-exp.y (_initialize_rust_exp): Likewise.
936 * selftest-arch.c (gdbarch_selftest): New struct.
937 (gdbarch_tests): Remove.
938 (register_test_foreach_arch): Add name parameter. Call
939 register_test.
940 (tests_with_arch): Remove, move most content to
941 gdbarch_selftest::operator().
942 (_initialize_selftests_foreach_arch): Remove.
943 * selftest-arch.h (register_test_foreach_arch): Add name
944 parameter.
945 (run_tests_with_arch): New declaration.
946 * utils-selftests.c (_initialize_utils_selftests): Add names
947 when registering selftests.
948 * utils.c (_initialize_utils): Likewise.
949 * unittests/array-view-selftests.c
950 (_initialize_array_view_selftests): Likewise.
951 * unittests/environ-selftests.c (_initialize_environ_selftests):
952 Likewise.
953 * unittests/function-view-selftests.c
954 (_initialize_function_view_selftests): Likewise.
955 * unittests/offset-type-selftests.c
956 (_initialize_offset_type_selftests): Likewise.
957 * unittests/optional-selftests.c
958 (_initialize_optional_selftests): Likewise.
959 * unittests/scoped_restore-selftests.c
960 (_initialize_scoped_restore_selftests): Likewise.
961 * NEWS: Document "maintenance selftest" and "maint info
962 selftests".
963
964 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
965
966 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
967 scoped_restore.
968
969 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
970
971 * mi/mi-main.c (mi_load_progress): Make uiout variable
972 a unique_ptr.
973
974 2017-09-15 Pedro Alves <palves@redhat.com>
975
976 * compile/compile-c-types.c (convert_enum, convert_int)
977 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
978
979 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
980
981 * dwarf2read.c (copy_string): Remove.
982 (parse_macro_definition): Replace copy_string with savestring.
983
984 2017-09-15 Yao Qi <yao.qi@linaro.org>
985
986 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
987 gdb_target_obs.
988 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
989 Likewise.
990 (i[34567]86-*-linux*): Likewise.
991
992 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
993
994 * dwarf2expr.h (dwarf_stack_value): Add constructor.
995 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
996 <stack>: Change type to std::vector.
997 <stack_len, stack_allocated>: Remove.
998 <grow_stack>: Remove.
999 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1000 (dwarf_expr_context::~dwarf_expr_context): Remove.
1001 (dwarf_expr_context::grow_stack): Remove.
1002 (dwarf_expr_context::push): Adjust.
1003 (dwarf_expr_context::pop): Adjust.
1004 (dwarf_expr_context::fetch): Adjust.
1005 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1006 (dwarf_expr_context::stack_empty_p): Adjust.
1007 (dwarf_expr_context::execute_stack_op): Adjust.
1008
1009 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1010
1011 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1012 return type to bool.
1013 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1014
1015 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1016
1017 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1018 Change type to bool.
1019 (dwarf_stack_value) <in_stack_memory>: Likewise.
1020 (dwarf_expr_context) <push_address>: Change parameter type to
1021 bool.
1022 <fetch_in_stack_memory>: Change return type to bool.
1023 <push>: Change parameter type to bool.
1024 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1025 to bool.
1026 (dwarf_expr_context::push_address): Likewise.
1027 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1028 to bool.
1029 (dwarf_expr_context::execute_stack_op): Adjust.
1030 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1031
1032 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1033
1034 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1035 (struct dwarf_expr_context) <n_pieces>: Remove.
1036 <pieces>: Change type to std::vector.
1037 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1038 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1039 pieces.
1040 (dwarf_expr_context::add_piece): Adjust.
1041 * dwarf2loc.c (struct piece_closure): Initialize fields.
1042 <n_pieces>: Remove.
1043 <pieces>: Change type to std::vector.
1044 (allocate_piece_closure): Adjust, change parameter to
1045 std::vector rvalue and std::move it to piece_closure.
1046 (rw_pieced_value): Adjust.
1047 (check_pieced_synthetic_pointer): Adjust.
1048 (indirect_synthetic_pointer): Adjust.
1049 (coerce_pieced_ref): Adjust.
1050 (free_pieced_value_closure): Adjust. Use delete to free
1051 piece_closure.
1052 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1053 to allocate_piece_closure.
1054 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1055
1056 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1057
1058 * probe.h (probe_ops_cp): Remove typedef.
1059 (DEF_VEC_P (probe_ops_cp)): Remove.
1060 (all_probe_ops): Change type to std::vector.
1061 * probe.c (info_probes_for_ops): Adjust to vector change.
1062 (probe_linespec_to_ops): Likewise.
1063 (all_probe_ops): Change type to std::vector.
1064 (_initialize_probe): Adjust to vector change.
1065 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1066 * elfread.c (elf_get_probes): Likewise.
1067 * stap-probe.c (_initialize_stap_probe): Likewise.
1068
1069 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1070
1071 * probe.h (struct bound_probe): Define constructors.
1072 * probe.c (bound_probe_s): Remove typedef.
1073 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1074 (collect_probes): Change return type to std::vector, remove
1075 cleanup.
1076 (compare_probes): Return bool, change parameter type. Change
1077 semantic to "less than".
1078 (gen_ui_out_table_header_info): Change parameter to std::vector
1079 and update.
1080 (exists_probe_with_pops): Likewise.
1081 (info_probes_for_ops): Update to std::vector change.
1082 (enable_probes_command): Likewise.
1083 (disable_probes_command): Likewise.
1084
1085 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1086
1087 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1088 vec to std::vector.
1089 * probe.c (parse_probes_in_pspace): Update.
1090 (find_probes_in_objfile): Update.
1091 (find_probe_by_pc): Update.
1092 (collect_probes): Update.
1093 (probe_any_get_probes): Update.
1094 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1095 return type to reference to std::vector.
1096 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1097 std::vector and update.
1098 (dtrace_process_dof): Likewise.
1099 (dtrace_get_probes): Likewise.
1100 * elfread.c (elf_get_probes): Change return type to std::vector,
1101 store an std::vector in bfd_data.
1102 (probe_key_free): Update to std::vector.
1103 * stap-probe.c (handle_stap_probe): Change parameter to
1104 std::vector and update.
1105 (stap_get_probes): Likewise.
1106 * symfile-debug.c (debug_sym_get_probes): Change return type to
1107 std::vector and update.
1108
1109 2017-09-11 Tom Tromey <tom@tromey.com>
1110
1111 * breakpoint.c (program_breakpoint_here_p): Update.
1112 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1113 from make_show_memory_breakpoints_cleanup. Return a
1114 scoped_restore_tmpl<int>.
1115 (restore_show_memory_breakpoints): Remove.
1116 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1117 * mem-break.c (memory_validate_breakpoint): Update.
1118 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1119 (ia64_memory_remove_breakpoint): Update.
1120 (ia64_breakpoint_from_pc): Update.
1121 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1122 from make_show_memory_breakpoints_cleanup.
1123
1124 2017-09-11 Tom Tromey <tom@tromey.com>
1125
1126 * d-namespace.c (d_lookup_symbol): Use std::string.
1127 (find_symbol_in_baseclass): Likewise.
1128
1129 2017-09-11 Tom Tromey <tom@tromey.com>
1130
1131 * ctf.c (ctf_start): Use std::string.
1132
1133 2017-09-11 Tom Tromey <tom@tromey.com>
1134
1135 * ada-lang.c (is_known_support_routine): Update.
1136 (ada_unhandled_exception_name_addr_from_raise): Update.
1137 * guile/scm-frame.c (gdbscm_frame_name): Update.
1138 * python/py-frame.c (frapy_name): Update.
1139 (frapy_function): Update.
1140 * stack.h (find_frame_funname): Update.
1141 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1142 (print_frame): Update.
1143
1144 2017-09-11 Tom Tromey <tom@tromey.com>
1145
1146 * findcmd.c (put_bits): Take a gdb::byte_vector.
1147 (parse_find_args): Return gdb::byte_vector. "args" now const.
1148 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1149 cleanups.
1150 (find_command): Update.
1151
1152 2017-09-11 Tom Tromey <tom@tromey.com>
1153
1154 * cli/cli-script.c (class scoped_restore_hook_in): New.
1155 (clear_hook_in_cleanup): Remove.
1156 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1157 scoped_restore_hook_in.
1158
1159 2017-09-11 Tom Tromey <tom@tromey.com>
1160
1161 * cli/cli-script.c (restore_interp): Remove.
1162 (read_command_lines): Use scoped_restore_interp.
1163 * interps.c (scoped_restore_interp::set_temp): Rename from
1164 interp_set_temp.
1165 * interps.h (class scoped_restore_interp): New.
1166 (interp_set_temp): Remove.
1167
1168 2017-09-11 Tom Tromey <tom@tromey.com>
1169
1170 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1171 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1172 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1173 scoped_restore.
1174 (mi_cmd_break_insert_1): Update.
1175 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1176 scoped_restore.
1177
1178 2017-09-11 Tom Tromey <tom@tromey.com>
1179
1180 * demangle.c (demangle_command): Update.
1181 * breakpoint.c (disable_command): Update.
1182 (enable_command): Update.
1183 (find_location_by_number): Make "number" const. Use
1184 get_number_trailer.
1185 * cli/cli-utils.c (extract_arg): Return std::string.
1186 * probe.c (parse_probe_linespec): Update. Change types.
1187 (collect_probes): Take string arguments.
1188 (parse_probe_linespec): Likewise.
1189 (info_probes_for_ops): Update.
1190 (enable_probes_command): Update.
1191 (disable_probes_command): Update.
1192 * break-catch-sig.c (catch_signal_split_args): Update.
1193 * mi/mi-parse.c (mi_parse): Update.
1194
1195 2017-09-11 Tom Tromey <tom@tromey.com>
1196
1197 * language.h (language_enum): Make argument const.
1198 * language.c (language_enum): Make argument const.
1199
1200 2017-09-11 Tom Tromey <tom@tromey.com>
1201
1202 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1203 as function.
1204 (skip_to_space): Rename from skip_to_space_const.
1205 * common/common-utils.c (skip_to_space): New function.
1206 (skip_to_space): Rename from skip_to_space_const.
1207 * cli/cli-utils.h (get_number): Rename from get_number_const.
1208 (extract_arg): Rename from extract_arg_const.
1209 * cli/cli-utils.c (get_number): Rename from get_number_const.
1210 (extract_arg): Rename from extract_arg_const.
1211 (number_or_range_parser::get_number): Use ::get_number.
1212 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1213 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1214 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1215 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1216 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1217 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1218 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1219 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1220
1221 2017-09-11 Tom Tromey <tom@tromey.com>
1222
1223 * python/python.c (do_start_initialization): Use
1224 py-event-types.def to initialize types.
1225 Define all object type structures.
1226 * python/python-internal.h: Don't declare event initialization
1227 functions.
1228 * python/py-threadevent.c (thread_event_object_type): Don't
1229 define.
1230 * python/py-stopevent.c (stop_event_object_type): Don't define.
1231 * python/py-signalevent.c (signal_event_object_type): Don't
1232 declare or define.
1233 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1234 (clear_objfiles_event_object_type): Don't declare or define.
1235 * python/py-infevents.c (inferior_call_pre_event_object_type)
1236 (inferior_call_post_event_object_type)
1237 (register_changed_event_object_type)
1238 (memory_changed_event_object_type): Don't declare or define.
1239 * python/py-inferior.c (new_thread_event_object_type)
1240 (new_inferior_event_object_type)
1241 (inferior_deleted_event_object_type): Don't declare or define.
1242 * python/py-exitedevent.c (exited_event_object_type): Don't
1243 declare or define.
1244 * python/py-evts.c (gdbpy_initialize_py_events): Use
1245 py-all-events.def.
1246 * python/py-events.h (thread_event_object_type): Don't declare.
1247 (events_object): Use py-all-events.def.
1248 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1249 py-event-types.def.
1250 * python/py-event-types.def: New file.
1251 * python/py-continueevent.c (create_continue_event_object): Don't
1252 declare or define.
1253 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1254 declare or define.
1255 * python/py-all-events.def: New file.
1256
1257 2017-09-11 Tom Tromey <tom@tromey.com>
1258
1259 * python/py-threadevent.c (create_thread_event_object): Return
1260 gdbpy_ref.
1261 * python/py-stopevent.h (create_stop_event_object)
1262 (create_breakpoint_event_object, create_signal_event_object):
1263 Update.
1264 * python/py-stopevent.c (create_stop_event_object): Return
1265 gdbpy_ref.
1266 (emit_stop_event): Update.
1267 * python/py-signalevent.c (create_signal_event_object): Return
1268 gdbpy_ref.
1269 * python/py-infevents.c (create_inferior_call_event_object):
1270 Update.
1271 * python/py-event.h (create_event_object)
1272 (create_thread_event_object): Update.
1273 * python/py-event.c (create_event_object): Return gdbpy_ref.
1274 * python/py-continueevent.c: Return gdbpy_ref.
1275 * python/py-bpevent.c (create_breakpoint_event_object): Return
1276 gdbpy_ref.
1277
1278 2017-09-11 Tom Tromey <tom@tromey.com>
1279
1280 PR python/15622:
1281 * NEWS: Add entry.
1282 * python/python.c (do_start_initialization): Initialize new event
1283 types.
1284 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1285 (gdbpy_initialize_inferior_deleted_event)
1286 (gdbpy_initialize_new_thread_event): Declare.
1287 * python/py-threadevent.c (create_thread_event_object): Add option
1288 "thread" parameter.
1289 * python/py-inferior.c (new_thread_event_object_type)
1290 (new_inferior_event_object_type)
1291 (inferior_deleted_event_object_type): Declare.
1292 (python_new_inferior, python_inferior_deleted): New functions.
1293 (add_thread_object): Emit new_thread event.
1294 (gdbpy_initialize_inferior): Attach new functions to corresponding
1295 observers.
1296 (new_thread, new_inferior, inferior_deleted): Define new event
1297 types.
1298 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1299 registries.
1300 * python/py-events.h (events_object) <new_inferior,
1301 inferior_deleted, new_thread>: New fields.
1302 * python/py-event.h (create_thread_event_breakpoint): Add optional
1303 "thread" parameter.
1304
1305 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1308 check current_ui instead.
1309 (internal_vproblem): Likewise.
1310
1311 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1312
1313 * thread.c (print_thread_info_1): Remove unnecessary calls to
1314 uiout->is_mi_like_p.
1315
1316 2017-09-09 Tom Tromey <tom@tromey.com>
1317
1318 * namespace.h (add_using_directive): Update.
1319 * namespace.c (add_using_directive): Change type of excludes to
1320 std::vector.
1321 * dwarf2read.c (read_import_statement): Use std::vector.
1322 (read_namespace): Update.
1323 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1324
1325 2017-09-09 Tom Tromey <tom@tromey.com>
1326
1327 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1328
1329 2017-09-09 Tom Tromey <tom@tromey.com>
1330
1331 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1332
1333 2017-09-09 Tom Tromey <tom@tromey.com>
1334
1335 * stack.c (func_command): Use gdb::def_vector.
1336
1337 2017-09-09 Tom Tromey <tom@tromey.com>
1338
1339 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1340 ui_out_emit_list, ui_out_emit_tuple.
1341 (mi_cmd_var_update): Likewise.
1342
1343 2017-09-09 Tom Tromey <tom@tromey.com>
1344
1345 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1346 ui_out_redirect_pop.
1347 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1348 ui_out_redirect_pop.
1349 * utils.c (do_ui_out_redirect_pop)
1350 (make_cleanup_ui_out_redirect_pop): Remove.
1351 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1352 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1353 * ui-out.h (ui_out_redirect_pop): New class.
1354
1355 2017-09-09 Tom Tromey <tom@tromey.com>
1356
1357 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1358 (list_available_thread_groups, mi_cmd_list_thread_groups)
1359 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1360 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1361 Likewise.
1362
1363 2017-09-09 Tom Tromey <tom@tromey.com>
1364
1365 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1366 ui_out_emit_tuple.
1367
1368 2017-09-09 Tom Tromey <tom@tromey.com>
1369
1370 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1371 * stack.c (print_frame): Use ui_out_emit_tuple.
1372 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1373 (info_spu_mailbox_command, info_spu_dma_command)
1374 (info_spu_proxydma_command): Likewise.
1375 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1376 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1377 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1378 ui_out_emit_tuple.
1379 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1380
1381 2017-09-09 Tom Tromey <tom@tromey.com>
1382
1383 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1384 (class ui_out_emit_table): Update comment.
1385 * ui-out.c (do_cleanup_table_end)
1386 (make_cleanup_ui_out_table_begin_end): Remove.
1387 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1388 (info_spu_dma_cmdlist): Likewise.
1389 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1390 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1391 ui_out_emit_table.
1392
1393 2017-09-09 Tom Tromey <tom@tromey.com>
1394
1395 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1396 ui_out_emit_list, gdb::optional.
1397
1398 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1399
1400 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1401 prototype.
1402 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1403 prototype.
1404 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1405 prototype.
1406 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1407 * ada-exp.y: Remove _initialize_ada_exp prototype.
1408 * ada-lang.c: Remove _initialize_ada_language prototype.
1409 * ada-tasks.c: Remove _initialize_tasks prototype.
1410 * addrmap.c: Remove _initialize_addrmap prototype.
1411 * agent.c: Remove _initialize_agent prototype.
1412 * aix-thread.c: Remove _initialize_aix_thread prototype.
1413 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1414 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1415 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1416 prototype.
1417 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1418 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1419 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1420 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1421 prototype.
1422 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1423 prototype.
1424 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1425 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1426 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1427 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1428 prototype.
1429 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1430 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1431 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1432 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1433 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1434 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1435 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1436 prototype.
1437 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1438 prototype.
1439 * annotate.c: Remove _initialize_annotate prototype.
1440 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1441 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1442 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1443 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1444 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1445 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1446 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1447 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1448 prototype.
1449 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1450 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1451 * auto-load.c: Remove _initialize_auto_load prototype.
1452 * auxv.c: Remove _initialize_auxv prototype.
1453 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1454 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1455 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1456 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1457 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1458 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1459 prototype.
1460 * break-catch-throw.c: Remove _initialize_break_catch_throw
1461 prototype.
1462 * breakpoint.c: Remove _initialize_breakpoint prototype.
1463 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1464 * btrace.c: Remove _initialize_btrace prototype.
1465 * charset.c: Remove _initialize_charset prototype.
1466 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1467 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1468 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1469 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1470 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1471 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1472 * coffread.c: Remove _initialize_coffread prototype.
1473 * compile/compile.c: Remove _initialize_compile prototype.
1474 * complaints.c: Remove _initialize_complaints prototype.
1475 * completer.c: Remove _initialize_completer prototype.
1476 * copying.awk: Remove _initialize_copying prototype.
1477 * copying.c: Regenerate.
1478 * core-regset.c: Remove _initialize_core_regset prototype.
1479 * corefile.c: Remove _initialize_core prototype.
1480 * corelow.c: Remove _initialize_corelow prototype.
1481 * cp-abi.c: Remove _initialize_cp_abi prototype.
1482 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1483 * cp-support.c: Remove _initialize_cp_support prototype.
1484 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1485 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1486 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1487 * ctf.c: Remove _initialize_ctf prototype.
1488 * d-lang.c: Remove _initialize_d_language prototype.
1489 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1490 prototype.
1491 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1492 * dbxread.c: Remove _initialize_dbxread prototype.
1493 * dcache.c: Remove _initialize_dcache prototype.
1494 * demangle.c: Remove _initialize_demangler prototype.
1495 * disasm-selftests.c: Remove _initialize_disasm_selftests
1496 prototype.
1497 * disasm.c: Remove _initialize_disasm prototype.
1498 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1499 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1500 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1501 prototype.
1502 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1503 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1504 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1505 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1506 * elfread.c: Remove _initialize_elfread prototype.
1507 * exec.c: Remove _initialize_exec prototype.
1508 * extension.c: Remove _initialize_extension prototype.
1509 * f-lang.c: Remove _initialize_f_language prototype.
1510 * f-valprint.c: Remove _initialize_f_valprint prototype.
1511 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1512 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1513 * filesystem.c: Remove _initialize_filesystem prototype.
1514 * findcmd.c: Remove _initialize_mem_search prototype.
1515 * fork-child.c: Remove _initialize_fork_child prototype.
1516 * frame-base.c: Remove _initialize_frame_base prototype.
1517 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1518 * frame.c: Remove _initialize_frame prototype.
1519 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1520 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1521 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1522 * gcore.c: Remove _initialize_gcore prototype.
1523 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1524 * gdbarch.c: Regenerate.
1525 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1526 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1527 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1528 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1529 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1530 * go-lang.c: Remove _initialize_go_language prototype.
1531 * go32-nat.c: Remove _initialize_go32_nat prototype.
1532 * guile/guile.c: Remove _initialize_guile prototype.
1533 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1534 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1535 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1536 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1537 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1538 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1539 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1540 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1541 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1542 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1543 prototype.
1544 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1545 prototype.
1546 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1547 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1548 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1549 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1550 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1551 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1552 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1553 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1554 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1555 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1556 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1557 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1558 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1559 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1560 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1561 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1562 prototype.
1563 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1564 prototype.
1565 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1566 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1567 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1568 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1569 * infcall.c: Remove _initialize_infcall prototype.
1570 * infcmd.c: Remove _initialize_infcmd prototype.
1571 * inferior.c: Remove _initialize_inferiors prototype.
1572 * inflow.c: Remove _initialize_inflow prototype.
1573 * infrun.c: Remove _initialize_infrun prototype.
1574 * interps.c: Remove _initialize_interpreter prototype.
1575 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1576 * jit.c: Remove _initialize_jit prototype.
1577 * language.c: Remove _initialize_language prototype.
1578 * linux-fork.c: Remove _initialize_linux_fork prototype.
1579 * linux-nat.c: Remove _initialize_linux_nat prototype.
1580 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1581 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1582 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1583 * m2-lang.c: Remove _initialize_m2_language prototype.
1584 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1585 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1586 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1587 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1588 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1589 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1590 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1591 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1592 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1593 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1594 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1595 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1596 * machoread.c: Remove _initialize_machoread prototype.
1597 * macrocmd.c: Remove _initialize_macrocmd prototype.
1598 * macroscope.c: Remove _initialize_macroscope prototype.
1599 * maint.c: Remove _initialize_maint_cmds prototype.
1600 * mdebugread.c: Remove _initialize_mdebugread prototype.
1601 * memattr.c: Remove _initialize_mem prototype.
1602 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1603 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1604 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1605 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1606 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1607 * microblaze-linux-tdep.c: Remove
1608 _initialize_microblaze_linux_tdep prototype.
1609 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1610 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1611 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1612 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1613 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1614 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1615 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1616 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1617 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1618 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1619 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1620 prototype.
1621 * mipsread.c: Remove _initialize_mipsread prototype.
1622 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1623 prototype.
1624 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1625 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1626 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1627 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1628 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1629 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1630 prototype.
1631 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1632 * nto-procfs.c: Remove _initialize_procfs prototype.
1633 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1634 * objc-lang.c: Remove _initialize_objc_language prototype.
1635 * objfiles.c: Remove _initialize_objfiles prototype.
1636 * observer.c: Remove observer_test_first_notification_function,
1637 observer_test_second_notification_function,
1638 observer_test_third_notification_function, and
1639 _initialize_observer prototypes.
1640 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1641 * osabi.c: Remove _initialize_gdb_osabi prototype.
1642 * osdata.c: Remove _initialize_osdata prototype.
1643 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1644 * parse.c: Remove _initialize_parse prototype.
1645 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1646 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1647 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1648 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1649 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1650 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1651 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1652 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1653 * printcmd.c: Remove _initialize_printcmd prototype.
1654 * probe.c: Remove _initialize_probe prototype.
1655 * proc-api.c: Remove _initialize_proc_api prototype.
1656 * proc-events.c: Remove _initialize_proc_events prototype.
1657 * proc-service.c: Remove _initialize_proc_service prototype.
1658 * procfs.c: Remove _initialize_procfs prototype.
1659 * psymtab.c: Remove _initialize_psymtab prototype.
1660 * python/python.c: Remove _initialize_python prototype.
1661 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1662 * record-btrace.c: Remove _initialize_record_btrace prototype.
1663 * record-full.c: Remove _initialize_record_full prototype.
1664 * record.c: Remove _initialize_record prototype.
1665 * regcache.c: Remove _initialize_regcache prototype.
1666 * reggroups.c: Remove _initialize_reggroup prototype.
1667 * remote-notif.c: Remove _initialize_notif prototype.
1668 * remote-sim.c: Remove _initialize_remote_sim prototype.
1669 * remote.c: Remove _initialize_remote prototype.
1670 * reverse.c: Remove _initialize_reverse prototype.
1671 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1672 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1673 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1674 prototype.
1675 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1676 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1677 * rust-exp.y: Remove _initialize_rust_exp prototype.
1678 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1679 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1680 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1681 * score-tdep.c: Remove _initialize_score_tdep prototype.
1682 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1683 prototype.
1684 * ser-go32.c: Remove _initialize_ser_dos prototype.
1685 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1686 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1687 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1688 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1689 * serial.c: Remove _initialize_serial prototype.
1690 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1691 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1692 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1693 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1694 * skip.c: Remove _initialize_step_skip prototype.
1695 * sol-thread.c: Remove _initialize_sol_thread prototype.
1696 * solib-aix.c: Remove _initialize_solib_aix prototype.
1697 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1698 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1699 * solib-frv.c: Remove _initialize_frv_solib prototype.
1700 * solib-spu.c: Remove _initialize_spu_solib prototype.
1701 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1702 * solib-target.c: Remove _initialize_solib_target prototype.
1703 * solib.c: Remove _initialize_solib prototype.
1704 * source.c: Remove _initialize_source prototype.
1705 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1706 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1707 prototype.
1708 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1709 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1710 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1711 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1712 prototype.
1713 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1714 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1715 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1716 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1717 prototype.
1718 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1719 prototype.
1720 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1721 prototype.
1722 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1723 prototype.
1724 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1725 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1726 prototype.
1727 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1728 prototype.
1729 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1730 prototype.
1731 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1732 prototype.
1733 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1734 prototype.
1735 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1736 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1737 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1738 * stabsread.c: Remove _initialize_stabsread prototype.
1739 * stack.c: Remove _initialize_stack prototype.
1740 * stap-probe.c: Remove _initialize_stap_probe prototype.
1741 * std-regs.c: Remove _initialize_frame_reg prototype.
1742 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1743 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1744 * symfile.c: Remove _initialize_symfile prototype.
1745 * symmisc.c: Remove _initialize_symmisc prototype.
1746 * symtab.c: Remove _initialize_symtab prototype.
1747 * target-dcache.c: Remove _initialize_target_dcache prototype.
1748 * target-descriptions.c: Remove _initialize_target_descriptions
1749 prototype.
1750 * thread.c: Remove _initialize_thread prototype.
1751 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1752 prototype.
1753 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1754 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1755 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1756 prototype.
1757 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1758 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1759 * tracefile.c: Remove _initialize_tracefile prototype.
1760 * tracepoint.c: Remove _initialize_tracepoint prototype.
1761 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1762 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1763 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1764 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1765 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1766 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1767 * tui/tui.c: Remove _initialize_tui prototype.
1768 * typeprint.c: Remove _initialize_typeprint prototype.
1769 * user-regs.c: Remove _initialize_user_regs prototype.
1770 * utils.c: Remove _initialize_utils prototype.
1771 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1772 * valarith.c: Remove _initialize_valarith prototype.
1773 * valops.c: Remove _initialize_valops prototype.
1774 * valprint.c: Remove _initialize_valprint prototype.
1775 * value.c: Remove _initialize_values prototype.
1776 * varobj.c: Remove _initialize_varobj prototype.
1777 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1778 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1779 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1780 * windows-nat.c: Remove _initialize_windows_nat,
1781 _initialize_check_for_gdb_ini, and _initialize_loadable
1782 prototypes.
1783 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1784 * xcoffread.c: Remove _initialize_xcoffread prototype.
1785 * xml-support.c: Remove _initialize_xml_support prototype.
1786 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1787 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1788 prototype.
1789 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1790 prototype.
1791 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1792
1793 2017-09-08 Keith Seitz <keiths@redhat.com>
1794
1795 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1796 field.
1797
1798 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1799
1800 * f-valprint.c (f_val_print): Remove check for one byte
1801 sized integers. Remove printing of character type.
1802
1803 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1804 Christoph Weinmann <christoph.t.weinmann@intel.com>
1805 Bernhard Heckel <bernhard.heckel@intel.com>
1806
1807 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1808 to maintain proper indentation when printing pointers/refs.
1809
1810 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1811
1812 GDB 8.0.1 released.
1813
1814 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1815
1816 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1817
1818 2017-09-05 Tom Tromey <tom@tromey.com>
1819
1820 * parse.c (funcall_chain): Now a std::vector.
1821 (start_arglist, end_arglist): Simplify.
1822 (free_funcalls): Remove.
1823 (parse_exp_in_context_1): Remove cleanup.
1824
1825 2017-09-05 Tom Tromey <tom@tromey.com>
1826
1827 * go-exp.y (go_parse): Don't create a cleanup.
1828
1829 2017-09-05 Tom Tromey <tom@tromey.com>
1830
1831 * d-exp.y (PrimaryExpression): Use std::string.
1832 (d_parse): Don't create a cleanup.
1833
1834 2017-09-05 Tom Tromey <tom@tromey.com>
1835
1836 * utils.c (do_clear_parser_state): Remove.
1837 (make_cleanup_clear_parser_state): Remove.
1838 * p-exp.y (pascal_parse): Use scoped_restore.
1839 * m2-exp.y (m2_parse): Use scoped_restore.
1840 * f-exp.y (f_parse): Use scoped_restore.
1841 * d-exp.y (d_parse): Use scoped_restore.
1842 * c-exp.y (c_parse): Use scoped_restore.
1843 * ada-exp.y (ada_parse): Use scoped_restore.
1844 * utils.h (make_cleanup_clear_parser_state): Remove.
1845
1846 2017-09-06 Keith Seitz <keiths@redhat.com>
1847
1848 * dwarf2read.c (dw2_linkage_name_attr): New function.
1849 (dw2_linkage_name): New function.
1850 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1851 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1852 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1853
1854 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1855
1856 * config/djgpp/djconfig.sh: Correct shell portability issue.
1857
1858 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1859
1860 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1861
1862 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1863
1864 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1865 * NEWS: Mention new FreeBSD/mips native configuration.
1866 * configure.host: Add aarch64*-*-freebsd*.
1867 * configure.nat: Likewise.
1868 * aarch64-fbsd-nat.c: New file.
1869
1870 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1871
1872 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1873 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1874 * NEWS: Mention new FreeBSD/aarch64 target.
1875 * configure.tgt: Add aarch64*-*-freebsd*.
1876 * aarch64-fbsd-tdep.c: New file.
1877 * aarch64-fbsd-tdep.h: New file.
1878
1879 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1880
1881 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1882
1883 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1884
1885 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1886 of TLS symbols.
1887
1888 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1889
1890 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1891 call.
1892
1893 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1894
1895 * infrun.c (follow_exec): Call add_thread after
1896 target_find_description.
1897
1898 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1899
1900 * infrun.c (handle_inferior_event_1): When exec'ing, read
1901 stop_pc after follow_exec.
1902
1903 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1904
1905 * remote.c (process_g_packet): Update error message.
1906
1907 2017-09-05 Yao Qi <yao.qi@linaro.org>
1908
1909 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1910 targets.
1911
1912 2017-09-05 Pedro Alves <palves@redhat.com>
1913
1914 * eval.c (eval_call, evaluate_funcall): New functions, factored
1915 out from ...
1916 (evaluate_subexp_standard): ... this.
1917
1918 2017-09-05 Yao Qi <yao.qi@linaro.org>
1919
1920 * amd64-tdep.c (amd64_target_description): Create target
1921 descriptions.
1922 (_initialize_amd64_tdep): Don't call functions
1923 initialize_tdesc_amd64_*. Add self tests.
1924 * arch/amd64.c (amd64_create_target_description): Add parameter
1925 is_linux. Call set_tdesc_osabi if is_linux is true.
1926 * arch/amd64.h (amd64_create_target_description): Update the
1927 declaration.
1928 * arch/i386.c (i386_create_target_description): Add parameter
1929 is_linux. Call set_tdesc_osabi if is_linux is true.
1930 * arch/i386.h (i386_create_target_description): Update
1931 declaration.
1932 * configure.tgt: Add i386.o to gdb_target_obs.
1933 * features/Makefile (XMLTOC): Remove i386/*.xml.
1934 * features/i386/amd64-avx-avx512.c: Remove.
1935 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1936 * features/i386/amd64-avx-mpx.c: Remove.
1937 * features/i386/amd64-avx.c: Remove.
1938 * features/i386/amd64-mpx.c: Remove.
1939 * features/i386/amd64.c: Remove.
1940 * features/i386/i386-avx-avx512.c: Remove.
1941 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1942 * features/i386/i386-avx-mpx.c: Remove.
1943 * features/i386/i386-avx.c: Remove.
1944 * features/i386/i386-mmx.c: Remove.
1945 * features/i386/i386-mpx.c: Remove.
1946 * features/i386/i386.c: Remove.
1947 * i386-tdep.c: Don't include features/i386/i386*.c., include
1948 target-descriptions.h and arch/i386.h.
1949 (i386_target_description): Create target descriptions.
1950 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1951 functions. Do self tests.
1952
1953 2017-09-05 Yao Qi <yao.qi@linaro.org>
1954
1955 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1956 * features/i386/amd64-avx-avx512-linux.c: Removed.
1957 * features/i386/amd64-avx-linux.c: Removed.
1958 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1959 * features/i386/amd64-avx-mpx-linux.c: Removed.
1960 * features/i386/amd64-linux.c: Removed.
1961 * features/i386/amd64-mpx-linux.c: Removed.
1962 * features/i386/x32-avx-avx512-linux.c: Removed.
1963 * features/i386/x32-avx-linux.c: Removed.
1964 * features/i386/x32-linux.c: Removed.
1965
1966 2017-09-05 Yao Qi <yao.qi@linaro.org>
1967
1968 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1969 features/i386/*.c.
1970 (amd64_linux_read_description): Call
1971 amd64_create_target_description.
1972 * arch/amd64.c: New file.
1973 * arch/amd64.h: New file.
1974 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1975 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1976
1977 2017-09-05 Yao Qi <yao.qi@linaro.org>
1978
1979 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1980 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1981 (amd64_linux_read_description): Create target descriptions.
1982 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1983 functions. Add unit tests.
1984 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1985 x32-core.xml.
1986 * features/i386/64bit-avx.c: Generated.
1987 * features/i386/64bit-avx512.c: Generated.
1988 * features/i386/64bit-core.c: Generated.
1989 * features/i386/64bit-linux.c: Generated.
1990 * features/i386/64bit-mpx.c: Generated.
1991 * features/i386/64bit-pkeys.c: Generated.
1992 * features/i386/64bit-segments.c: Generated.
1993 * features/i386/64bit-sse.c: Generated.
1994 * features/i386/x32-core.c: Generated.
1995 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
1996 c files for amd64-linux and x32-linux.
1997
1998 2017-09-05 Yao Qi <yao.qi@linaro.org>
1999
2000 * amd64-linux-tdep.c (amd64_linux_read_description): New
2001 function.
2002 (amd64_linux_core_read_description): Call
2003 amd64_linux_read_description.
2004 (amd64_linux_init_abi): Likewise.
2005 (amd64_x32_linux_init_abi): Likewise.
2006 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2007 * x86-linux-nat.c (x86_linux_read_description): Call
2008 amd64_linux_read_description.
2009
2010 2017-09-05 Yao Qi <yao.qi@linaro.org>
2011
2012 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2013 comments.
2014
2015 2017-09-05 Yao Qi <yao.qi@linaro.org>
2016
2017 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2018 * features/i386/i386-avx-avx512-linux.c: Remove.
2019 * features/i386/i386-avx-linux.c: Remove.
2020 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2021 * features/i386/i386-avx-mpx-linux.c: Remove.
2022 * features/i386/i386-linux.c: Remove.
2023 * features/i386/i386-mmx-linux.c: Remove.
2024 * features/i386/i386-mpx-linux.c: Remove.
2025
2026 2017-09-05 Yao Qi <yao.qi@linaro.org>
2027
2028 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2029 (SFILES): Add arch/i386.c.
2030 (HFILES_NO_SRCDIR): Add arch/i386.h.
2031 * arch/i386.c: New file.
2032 * arch/i386.h: New file.
2033 * arch/tdesc.h (allocate_target_description): Declare.
2034 (set_tdesc_architecture): Declare.
2035 (set_tdesc_osabi): Declare.
2036 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2037 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2038 include arch/i386.h.
2039 (i386_linux_read_description): Remove code and call
2040 i386_create_target_description.
2041 (set_tdesc_architecture): New function.
2042 (set_tdesc_osabi): New function.
2043 * target-descriptions.h (allocate_target_description): Remove.
2044
2045 2017-09-05 Yao Qi <yao.qi@linaro.org>
2046
2047 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2048 * target-descriptions.c (tdesc_create_feature): Likewise, and
2049 adjust code.
2050 * features/i386/32bit-avx.c: Re-generated.
2051 * features/i386/32bit-avx512.c: Re-generated.
2052 * features/i386/32bit-core.c: Re-generated.
2053 * features/i386/32bit-linux.c: Re-generated.
2054 * features/i386/32bit-mpx.c: Re-generated.
2055 * features/i386/32bit-pkeys.c: Re-generated.
2056 * features/i386/32bit-sse.c: Re-generated.
2057
2058 2017-09-05 Yao Qi <yao.qi@linaro.org>
2059
2060 * regformats/regdef.h (struct reg): Override operator == and !=.
2061
2062 2017-09-05 Yao Qi <yao.qi@linaro.org>
2063
2064 * arch/tdesc.h: New file.
2065 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2066 * target-descriptions.c: Update comments.
2067 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2068 declarations.
2069 * features/i386/32bit-avx.c: Re-generated.
2070 * features/i386/32bit-avx512.c: Re-generated.
2071 * features/i386/32bit-core.c: Re-generated.
2072 * features/i386/32bit-linux.c: Re-generated.
2073 * features/i386/32bit-mpx.c: Re-generated.
2074 * features/i386/32bit-pkeys.c: Re-generated.
2075 * features/i386/32bit-sse.c: Re-generated.
2076
2077 2017-09-05 Yao Qi <yao.qi@linaro.org>
2078
2079 * regformats/regdat.sh: Update generated code.
2080
2081 2017-09-05 Yao Qi <yao.qi@linaro.org>
2082
2083 * regformats/regdat.sh: Adjust code order.
2084
2085 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2086
2087 * expprint.c (dump_subexp_body_standard): Use constant format
2088 string in fprintf_filtered call.
2089
2090 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2091
2092 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2093 NetBSD/i386.
2094 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2095
2096 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2097
2098 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2099
2100 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2101
2102 * bsd-kvm.o: Define _KMEMUSER.
2103 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2104 * configure: Regenerate.
2105
2106 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2107
2108 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2109 * i386-fbsd-nat.c: Likewise.
2110
2111 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2112
2113 * unittests/array-view-selftests.c: Add include of <array>.
2114
2115 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2116
2117 * spu-tdep.c (flush_ea_cache): Add missing argument to
2118 call_function_by_hand.
2119
2120 2017-09-04 Pedro Alves <palves@redhat.com>
2121
2122 * NEWS (Safer support for debugging with no debug info): New.
2123
2124 2017-09-04 Pedro Alves <palves@redhat.com>
2125
2126 * c-exp.y (function_method, function_method_void): Add current
2127 instance flags to TYPE_INSTANCE.
2128 * dwarf2read.c (check_modifier): New.
2129 (compute_delayed_physnames): Assert that only C++ adds delayed
2130 physnames. Mark fn_fields as const/volatile depending on
2131 physname.
2132 * eval.c (make_params): New type_instance_flags parameter. Use
2133 it as the new type's instance flags.
2134 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2135 flags element and pass it to make_params.
2136 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2137 instance flags element.
2138 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2139 * gdbtypes.h: Include "enum-flags.h".
2140 (type_instance_flags): New enum-flags type.
2141 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2142 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2143 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2144 (follow_type_instance_flags): New function.
2145 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2146 * parser-defs.h (follow_type_instance_flags): Declare.
2147 * valops.c (value_struct_elt_for_reference): const/volatile must
2148 match too.
2149
2150 2017-09-04 Pedro Alves <palves@redhat.com>
2151
2152 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2153 function/method scopes; lookup the nested name as a function local
2154 static variable.
2155
2156 2017-09-04 Pedro Alves <palves@redhat.com>
2157
2158 (%type <voidval>): Add function_method.
2159 * c-exp.y (exp): New production for calls with no arguments.
2160 (function_method, function_method_void_or_typelist): New
2161 productions.
2162 (exp): New production for "method()::static_var".
2163 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2164 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2165 Handle OP_FUNC_STATIC_VAR.
2166 * parse.c (operator_length_standard):
2167 Handle OP_FUNC_STATIC_VAR.
2168
2169 2017-09-04 Pedro Alves <palves@redhat.com>
2170
2171 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2172 handling.
2173 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2174 Ditto.
2175 * parse.c (operator_length_standard, operator_check_standard):
2176 Ditto.
2177 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2178
2179 2017-09-04 Pedro Alves <palves@redhat.com>
2180
2181 * ax-gdb.c: Include "typeprint.h".
2182 (gen_expr_for_cast): New function.
2183 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2184 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2185 type is unknown.
2186 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2187 nodebug_data_symbol.
2188 * eval.c: Include "typeprint.h".
2189 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2190 Error out if symbol has unknown type.
2191 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2192 evaluate_subexp_for_cast.
2193 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2194 OP_VAR_MSYM_VALUE.
2195 (evaluate_subexp_for_cast): New function.
2196 * gdbtypes.c (init_nodebug_var_type): New function.
2197 (objfile_type): Use it to initialize types of variables with no
2198 debug info.
2199 * typeprint.c (error_unknown_type): New.
2200 * typeprint.h (error_unknown_type): New declaration.
2201 * compile/compile-c-types.c (convert_type_basic): Handle
2202 TYPE_CODE_ERROR; warn and fallback to int for variables with
2203 unknown type.
2204
2205 2017-09-04 Pedro Alves <palves@redhat.com>
2206
2207 * eval.c (evaluate_var_value): New function, factored out from ...
2208 (evaluate_subexp_standard): ... here.
2209
2210 2017-09-04 Pedro Alves <palves@redhat.com>
2211
2212 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2213 Remove useless assignments to 'op'.
2214
2215 2017-09-04 Pedro Alves <palves@redhat.com>
2216
2217 * eval.c (eval_skip_value): New function.
2218 (evaluate_subexp_standard): Use it.
2219
2220 2017-09-04 Pedro Alves <palves@redhat.com>
2221
2222 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2223 function name from symbol/minsym and pass it to
2224 error_call_unknown_return_type.
2225
2226 2017-09-04 Pedro Alves <palves@redhat.com>
2227
2228 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2229 * ax-gdb.c (gen_msym_var_ref): New function.
2230 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2231 * eval.c (evaluate_var_msym_value): New function.
2232 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2233 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2234 to call_function_by_hand.
2235 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2236 Handle OP_VAR_MSYM_VALUE.
2237 (union exp_element) <msymbol>: New field.
2238 * minsyms.h (struct type): Forward declare.
2239 (find_minsym_type_and_address): Declare.
2240 * parse.c (write_exp_elt_msym): New function.
2241 (write_exp_msymbol): Delete, refactored as ...
2242 (find_minsym_type_and_address): ... this new function.
2243 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2244 (operator_length_standard, operator_check_standard): Handle
2245 OP_VAR_MSYM_VALUE.
2246 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2247
2248 2017-09-04 Pedro Alves <palves@redhat.com>
2249
2250 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2251 TYPE_GNU_IFUNC specially here. Throw error if return type is
2252 unknown.
2253 * ada-typeprint.c (print_func_type): Handle functions with unknown
2254 return type.
2255 * c-typeprint.c (c_type_print_base): Handle functions and methods
2256 with unknown return type.
2257 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2258 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2259 * compile/compile-c-types.c: Include "objfiles.h".
2260 (convert_func): For functions with unknown return type, warn and
2261 default to int.
2262 * compile/compile-object-run.c (compile_object_run): Adjust call
2263 to call_function_by_hand_dummy.
2264 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2265 call_function_by_hand.
2266 * eval.c (evaluate_subexp_standard): Adjust calls to
2267 call_function_by_hand. Handle functions and methods with unknown
2268 return type. Pass expect_type to call_function_by_hand.
2269 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2270 return type.
2271 * gcore.c (call_target_sbrk): Adjust call to
2272 call_function_by_hand.
2273 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2274 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2275 an integer address type instead of nodebug.
2276 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2277 call_function_by_hand.
2278 * infcall.c (error_call_unknown_return_type): New function.
2279 (call_function_by_hand): New "default_return_type" parameter.
2280 Pass it down.
2281 (call_function_by_hand_dummy): New "default_return_type"
2282 parameter. Use it instead of defaulting to int. If there's no
2283 default and the return type is unknown, throw an error. If
2284 there's a default return type, and the called function has no
2285 debug info, then assume the function is prototyped.
2286 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2287 New "default_return_type" parameter.
2288 (error_call_unknown_return_type): New declaration.
2289 * linux-fork.c (call_lseek): Cast return type of lseek.
2290 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2291 call_function_by_hand.
2292 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2293 calls to call_function_by_hand.
2294 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2295 return type.
2296 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2297 (value_nsstring, print_object_command): Adjust calls to
2298 call_function_by_hand.
2299 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2300 functions with unknown return type.
2301 (pascal_type_print_func_varspec_suffix): New function.
2302 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2303 TYPE_CODE_METHOD>: Use it.
2304 * python/py-value.c (valpy_call): Adjust call to
2305 call_function_by_hand.
2306 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2307 call_function_by_hand.
2308 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2309 call_function_by_hand.
2310 * valops.c (value_allocate_space_in_inferior): Adjust call to
2311 call_function_by_hand.
2312 * typeprint.c (type_print_unknown_return_type): New function.
2313 * typeprint.h (type_print_unknown_return_type): New declaration.
2314
2315 2017-09-04 Pedro Alves <palves@redhat.com>
2316
2317 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2318 types with more than one parameter as prototyped.
2319
2320 2017-09-04 Pedro Alves <palves@redhat.com>
2321
2322 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2323 (disassemble_command): Use gdb_disassembly_flags instead of bare
2324 int.
2325 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2326 (dump_insns, do_mixed_source_and_assembly_deprecated)
2327 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2328 Use gdb_disassembly_flags instead of bare int.
2329 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2330 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2331 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2332 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2333 (enum gdb_disassembly_flag): ... values of this new enumeration.
2334 (gdb_disassembly_flags): Define.
2335 (gdb_disassembly)
2336 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2337 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2338 gdb_disassembly_flags instead of bare int.
2339 * record-btrace.c (btrace_insn_history)
2340 (record_btrace_insn_history, record_btrace_insn_history_range)
2341 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2342 instead of bare int.
2343 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2344 Use gdb_disassembly_flags instead of bare int.
2345 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2346 Define.
2347 * target-delegates.c: Regenerate.
2348 * target.c (target_insn_history, target_insn_history_from)
2349 (target_insn_history_range): Use gdb_disassembly_flags instead of
2350 bare int.
2351 * target.h: Include "disasm.h".
2352 (struct target_ops) <to_insn_history, to_insn_history_from,
2353 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2354 int.
2355 (target_insn_history, target_insn_history_from)
2356 (target_insn_history_range): Use gdb_disassembly_flags instead of
2357 bare int.
2358
2359 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2360
2361 * cli/cli-script.c (build_command_line): For if/while commands,
2362 check whether args is empty.
2363
2364 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2365
2366 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2367 (enum command_control_type): Likewise.
2368 (struct command_line): Likewise.
2369 (free_command_lines): Likewise.
2370 (struct command_lines_deleter): Likewise.
2371 (command_line_up): Likewise.
2372 (read_command_lines): Likewise.
2373 (read_command_lines_1): Likewise.
2374 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2375 (enum command_control_type): Likewise.
2376 (struct command_line): Likewise.
2377 (free_command_lines): Likewise.
2378 (struct command_lines_deleter): Likewise.
2379 (command_line_up): Likewise.
2380 (read_command_lines): Likewise.
2381 (read_command_lines_1): Likewise.
2382 * breakpoint.h: Include cli/cli-script.h.
2383 * extension-priv.h: Likewise.
2384 * gdbcmd.h: Likewise.
2385
2386 2017-09-04 Pedro Alves <palves@redhat.com>
2387
2388 * ada-lang.c (is_known_support_routine): Move sal declaration to
2389 where it is initialized.
2390 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2391 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2392 (clear_command, update_static_tracepoint): Remove init_sal
2393 references. Move declarations closer to initializations.
2394 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2395 initializations.
2396 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2397 references. Move sal declarations closer to initializations.
2398 * frame.c (find_frame_sal): Return a symtab_and_line via function
2399 return instead of output parameter. Remove init_sal references.
2400 * frame.h (find_frame_sal): Return a symtab_and_line via function
2401 return instead of output parameter.
2402 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2403 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2404 instead of memset.
2405 (gdbscm_find_pc_line): Remove init_sal reference.
2406 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2407 references. Move declarations closer to initializations.
2408 * infcmd.c (set_step_frame): Update. Move declarations closer to
2409 initializations.
2410 (finish_backward): Remove init_sal references. Move declarations
2411 closer to initializations.
2412 * infrun.c (process_event_stop_test, handle_step_into_function)
2413 (insert_hp_step_resume_breakpoint_at_frame)
2414 (insert_step_resume_breakpoint_at_caller): Likewise.
2415 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2416 (symbol_to_sal): Likewise.
2417 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2418 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2419 to its initialization.
2420 * reverse.c (save_bookmark_command): Use new/delete. Remove
2421 init_sal references. Move declarations closer to initializations.
2422 * source.c (get_current_source_symtab_and_line): Remove brace
2423 initialization.
2424 (set_current_source_symtab_and_line): Now takes the sal by const
2425 reference. Remove brace initialization.
2426 (line_info): Remove init_sal reference.
2427 * source.h (set_current_source_symtab_and_line): Now takes a
2428 symtab_and_line via const reference.
2429 * stack.c (set_current_sal_from_frame): Adjust.
2430 (print_frame_info): Adjust.
2431 (get_last_displayed_sal): Return the sal via function return
2432 instead of via output parameter. Simplify.
2433 (frame_info): Adjust.
2434 * stack.h (get_last_displayed_sal): Return the sal via function
2435 return instead of via output parameter.
2436 * symtab.c (init_sal): Delete.
2437 (find_pc_sect_line): Remove init_sal references. Move
2438 declarations closer to initializations.
2439 (find_function_start_sal): Remove init_sal references. Move
2440 declarations closer to initializations.
2441 * symtab.h (struct symtab_and_line): In-class initialize all
2442 fields.
2443 * tracepoint.c (set_traceframe_context)
2444 (print_one_static_tracepoint_marker): Remove init_sal references.
2445 Move declarations closer to initializations.
2446 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2447 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2448 declarations closer to initializations.
2449 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2450 init_sal references. Adjust.
2451
2452 2017-09-04 Pedro Alves <palves@redhat.com>
2453
2454 * ax-gdb.c (agent_command_1): Use range-for.
2455 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2456 * breakpoint.c: Include "common/array-view.h".
2457 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2458 parameter from struct symtabs_and_lines to
2459 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2460 (breakpoint_sals_to_pc): Change sals parameter from struct
2461 symtabs_and_lines to std::vector reference.
2462 (check_fast_tracepoint_sals): Change sals parameter from struct
2463 symtabs_and_lines to std::array_view. Use range-for.
2464 (decode_static_tracepoint_spec): Return a std::vector instead of
2465 symtabs_and_lines. Update.
2466 (create_breakpoint): Update.
2467 (break_range_command, until_break_command, clear_command): Update.
2468 (base_breakpoint_decode_location, bkpt_decode_location)
2469 (bkpt_probe_create_sals_from_location)
2470 (bkpt_probe_decode_location, tracepoint_decode_location)
2471 (tracepoint_probe_decode_location)
2472 (strace_marker_create_sals_from_location): Return a std::vector
2473 instead of symtabs_and_lines.
2474 (strace_marker_create_breakpoints_sal): Update.
2475 (strace_marker_decode_location): Return a std::vector instead of
2476 symtabs_and_lines. Update.
2477 (update_breakpoint_locations): Change struct symtabs_and_lines
2478 parameters to gdb::array_view. Adjust.
2479 (location_to_sals): Return a std::vector instead of
2480 symtabs_and_lines. Update.
2481 (breakpoint_re_set_default): Use std::vector instead of struct
2482 symtabs_and_lines.
2483 (decode_location_default): Return a std::vector instead of
2484 symtabs_and_lines. Update.
2485 * breakpoint.h: Include "common/array-view.h".
2486 (struct breakpoint_ops) <decode_location>: Now returns a
2487 std::vector instead of returning a symtabs_and_lines via output
2488 parameter.
2489 (update_breakpoint_locations): Change sals parameters to use
2490 gdb::array_view.
2491 * cli/cli-cmds.c (edit_command, list_command): Update to use
2492 std::vector and gdb::array_view.
2493 (ambiguous_line_spec): Adjust to use gdb::array_view and
2494 range-for.
2495 (compare_symtabs): Rename to ...
2496 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2497 const reference and adjust.
2498 (filter_sals): Rewrite using std::vector and standard algorithms.
2499 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2500 (jump_command): Update to use std::vector.
2501 * linespec.c (struct linespec_state) <canonical_names>: Update
2502 comment.
2503 (add_sal_to_sals_basic): Delete.
2504 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2505 (decode_line_2, create_sals_line_offset)
2506 (convert_address_location_to_sals, convert_linespec_to_sals)
2507 (convert_explicit_location_to_sals, parse_linespec)
2508 (event_location_to_sals, decode_line_full, decode_line_1)
2509 (decode_line_with_current_source)
2510 (decode_line_with_last_displayed, decode_objc)
2511 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2512 (linespec_result::~linespec_result): Adjust to use std::vector
2513 instead of symtabs_and_lines.
2514 * linespec.h (linespec_sals::sals): Now a std::vector.
2515 (struct linespec_result): Use std::vector, bool, and in-class
2516 initialization.
2517 (decode_line_1, decode_line_with_current_source)
2518 (decode_line_with_last_displayed): Return std::vector.
2519 * macrocmd.c (info_macros_command): Use std::vector.
2520 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2521 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2522 std::vector.
2523 * probe.h (parse_probes): Return a std::vector.
2524 * python/python.c (gdbpy_decode_line): Use std::vector and
2525 gdb::array_view.
2526 * source.c (select_source_symtab, line_info): Use std::vector.
2527 * stack.c (func_command): Use std::vector.
2528 * symtab.h (struct symtabs_and_lines): Delete.
2529 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2530
2531 2017-09-04 Pedro Alves <palves@redhat.com>
2532
2533 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2534 unittests/array-view-selftests.c.
2535 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2536 * common/array-view.h: New file.
2537 * unittests/array-view-selftests.c: New file.
2538
2539 2017-09-04 Pedro Alves <palves@redhat.com>
2540
2541 * cli/cli-cmds.c (edit_command): Pass message to
2542 ambiguous_line_spec.
2543 (list_command): Pass message to ambiguous_line_spec. Say
2544 "first"/"last" instead of "start" and "end" to be consistent with
2545 the manual.
2546 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2547 them to print formatted message.
2548
2549 2017-09-04 Pedro Alves <palves@redhat.com>
2550
2551 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2552 ftrace_update_insns by reference instead of pointer.
2553
2554 2017-09-04 Yao Qi <yao.qi@linaro.org>
2555
2556 * i386-go32-tdep.c: Include x86-xstate.h.
2557 (i386_go32_init_abi): Call i386_target_description.
2558 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2559 if xcr0 is X86_XSTATE_X87_MASK.
2560 * i386-tdep.h (tdesc_i386): Remove the declaration.
2561 (tdesc_i386_mmx): Likewise.
2562
2563 2017-09-04 Yao Qi <yao.qi@linaro.org>
2564
2565 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2566 X86_XSTATE_SSE_MASK instead of 0.
2567
2568 2017-09-04 Yao Qi <yao.qi@linaro.org>
2569
2570 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2571 i386_target_description.
2572 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2573 i386_target_description.
2574 * i386-tdep.c (i386_gdbarch_init): Likewise.
2575
2576 2017-09-04 Yao Qi <yao.qi@linaro.org>
2577
2578 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2579 (x86_darwin_init_abi_64): Call amd64_target_description.
2580 * amd64-dicos-tdep.c: Likewise.
2581 * amd64-fbsd-nat.c: Likewise.
2582 * amd64-fbsd-tdep.c: Likewise.
2583 * amd64-nbsd-tdep.c: Likewise.
2584 * amd64-obsd-tdep.c: Likewise.
2585 * amd64-sol2-tdep.c: Likewise.
2586 * amd64-windows-tdep.c: Likewise.
2587 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2588
2589 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2590
2591 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2592 (btrace_function) <insn>: Change type to use std::vector.
2593 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2594 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2595 ftrace_update_insns, ftrace_compute_global_level_offset,
2596 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2597 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2598 change to std::vector.
2599 (ftrace_update_insns): Adjust to change to std::vector, change
2600 type of INSN parameter.
2601 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2602 * record-btrace.c (btrace_call_history_insn_range,
2603 btrace_compute_src_line_range,
2604 record_btrace_frame_prev_register): Adjust to change to
2605 std::vector.
2606 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2607 to change to std::vector.
2608
2609 2017-09-03 Tom Tromey <tom@tromey.com>
2610
2611 * corefile.c (reopen_exec_file): Use std::string.
2612
2613 2017-09-03 Tom Tromey <tom@tromey.com>
2614
2615 * compile/compile.c (compile_register_name_mangled): Return
2616 std::string.
2617 * compile/compile-loc2c.c (pushf_register_address): Update.
2618 (pushf_register): Update.
2619 * compile/compile-c-types.c (convert_array): Update.
2620 * compile/compile-c-symbols.c (generate_vla_size): Update.
2621 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2622 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2623 (convert_one_symbol): Update.
2624 (generate_c_for_for_one_variable): Update.
2625 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2626 std::string.
2627 (generate_register_struct): Update.
2628 * compile/compile-internal.h (c_get_range_decl_name): Return a
2629 std::string.
2630 (compile_register_name_mangled): Return std::string.
2631
2632 2017-09-03 Tom Tromey <tom@tromey.com>
2633
2634 * utils.c (perror_string): Return a std::string.
2635 (throw_perror_with_name, perror_warning_with_name): Update.
2636
2637 2017-09-03 Tom Tromey <tom@tromey.com>
2638
2639 * demangle.c (demangle_command): Use std::string,
2640 unique_xmalloc_ptr.
2641
2642 2017-09-03 Tom Tromey <tom@tromey.com>
2643
2644 * cli/cli-setshow.c (do_set_command): Use std::string.
2645
2646 2017-09-03 Tom Tromey <tom@tromey.com>
2647
2648 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2649
2650 2017-09-03 Tom Tromey <tom@tromey.com>
2651
2652 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2653
2654 2017-09-03 Tom Tromey <tom@tromey.com>
2655
2656 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2657 gdb::unique_xmalloc_ptr.
2658
2659 2017-09-03 Tom Tromey <tom@tromey.com>
2660
2661 * thread.c (print_thread_info_1): Use string_printf.
2662 (thread_apply_command, thread_apply_all_command): Use
2663 std::string.
2664
2665 2017-09-03 Tom Tromey <tom@tromey.com>
2666
2667 * valprint.c (val_print_string): Update.
2668 * gdbcore.h (memory_error_message): Return std::string.
2669 * corefile.c (memory_error_message): Return std::string.
2670 (memory_error): Update.
2671 * breakpoint.c (insert_bp_location): Update.
2672
2673 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2674
2675 * target/waitstatus.h (target_waitstatus_to_string): Change
2676 return type to std::string.
2677 * target/waitstatus.c (target_waitstatus_to_string): Return
2678 std::string.
2679 * target.h (target_waitstatus_to_string): Remove declaration.
2680 * infrun.c (resume, clear_proceed_status_thread,
2681 print_target_wait_results, do_target_wait, save_waitstatus,
2682 stop_all_threads): Adjust.
2683 * record-btrace.c (record_btrace_wait): Adjust.
2684 * target-debug.h
2685 (target_debug_print_struct_target_waitstatus_p): Adjust.
2686
2687 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2688
2689 PR gdb/22046
2690 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2691 detection.
2692
2693 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2694
2695 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2696 for setting/unsetting environment variables on the remote target.
2697 (New remote packets): Add entries for QEnvironmentHexEncoded,
2698 QEnvironmentUnset and QEnvironmentReset.
2699 * common/environ.c (gdb_environ::operator=): Extend method to
2700 handle m_user_set_env_list and m_user_unset_env_list.
2701 (gdb_environ::clear): Likewise.
2702 (match_var_in_string): Change type of first parameter from 'char
2703 *' to 'const char *'.
2704 (gdb_environ::set): Extend method to handle
2705 m_user_set_env_list and m_user_unset_env_list.
2706 (gdb_environ::unset): Likewise.
2707 (gdb_environ::clear_user_set_env): New method.
2708 (gdb_environ::user_set_envp): Likewise.
2709 (gdb_environ::user_unset_envp): Likewise.
2710 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2711 m_user_unset_env_list on move constructor/assignment.
2712 (unset): Add new default parameter 'update_unset_list = true'.
2713 (clear_user_set_env): New method.
2714 (user_set_envp): Likewise.
2715 (user_unset_envp): Likewise.
2716 (m_user_set_env_list): New std::set.
2717 (m_user_unset_env_list): Likewise.
2718 * common/rsp-low.c (hex2str): New function.
2719 (bin2hex): New overload for bin2hex function.
2720 * common/rsp-low.c (hex2str): New prototype.
2721 (str2hex): New overload prototype.
2722 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2723 QEnvironmentUnset and QEnvironmentReset.
2724 (remote_protocol_features): Add QEnvironmentHexEncoded,
2725 QEnvironmentUnset and QEnvironmentReset packets.
2726 (send_environment_packet): New function.
2727 (extended_remote_environment_support): Likewise.
2728 (extended_remote_create_inferior): Call
2729 extended_remote_environment_support.
2730 (_initialize_remote): Add QEnvironmentHexEncoded,
2731 QEnvironmentUnset and QEnvironmentReset packet configs.
2732 * unittests/environ-selftests.c (gdb_selftest_env_var):
2733 New variable.
2734 (test_vector_initialization): New function.
2735 (test_init_from_host_environ): Likewise.
2736 (test_reinit_from_host_environ): Likewise.
2737 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2738 Likewise.
2739 (test_unset_set_empty_vector): Likewise.
2740 (test_vector_clear): Likewise.
2741 (test_std_move): Likewise.
2742 (test_move_constructor):
2743 (test_self_move): Likewise.
2744 (test_set_unset_reset): Likewise.
2745 (run_tests): Rewrite in terms of the functions above.
2746
2747 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2748
2749 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2750 (adi_available): Use a temp variable of type CORE_ADDR as argument
2751 3 when calling target_auxv_search.
2752 (adi_normalize_address): Use masks and xor operators to calculate
2753 normalized address.
2754 (adi_read_versions, adi_write_versions, adi_print_versions)
2755 (do_examine, do_assign): Use paddress.
2756
2757 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2758
2759 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2760 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2761 out of loop and add supply of FIR.
2762 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2763 add collect of FIR.
2764
2765 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2766
2767 PR gdb/21827
2768 * cli/cli-script.c (define_command): Don't convert command name
2769 to lower case.
2770
2771 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2772
2773 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2774 Update all callers accordingly. Remove all code blocks handling
2775 the case where DISPP is not NULL.
2776
2777 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 PR symtab/22003
2780 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2781 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2782 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2783
2784 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2785
2786 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2787 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2788 (read_comp_units_from_section): New parameter abbrev_section, use
2789 read_and_check_comp_unit_head, allocate signatured_type if needed.
2790 (create_all_comp_units): Update read_comp_units_from_section caller.
2791
2792 2017-08-23 Pedro Alves <palves@redhat.com>
2793
2794 PR remote/21852
2795 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2796 to null_ptid and switch to thread without reading the registers
2797 after adding the inferior.
2798
2799 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2802 compile-gcc.
2803 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2804 (compile_to_object): Implement compile_gcc.
2805 (_initialize_compile): Install "set compile-gcc". Initialize
2806 compile_gcc.
2807
2808 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2809
2810 * compile/compile.c (compile_to_object): Conditionally call
2811 set_verbose. Conditionally call compile or compile_v0.
2812
2813 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2814
2815 * sparc64-tdep.h: (adi_normalize_address): New export.
2816 * sparc-nat.h: (open_adi_tag_fd): New export.
2817 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2818 * sparc64-linux-tdep.c:
2819 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2820 (sparc64_linux_handle_segmentation_fault): New function.
2821 (sparc64_linux_init_abi): Register
2822 sparc64_linux_handle_segmentation_fault
2823 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2824 (sparc64_addr_bits_remove): New function.
2825 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2826 (MAX_PROC_NAME_SIZE): New macro.
2827 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2828 (sparc64adilist): New variable.
2829 (adi_proc_list): New variable.
2830 (find_adi_info): New function.
2831 (add_adi_info): New function.
2832 (get_adi_info_proc): New function.
2833 (get_adi_info): New function.
2834 (info_adi_command): New function.
2835 (read_maps_entry): New function.
2836 (adi_available): New function.
2837 (adi_normalize_address): New function.
2838 (adi_align_address): New function.
2839 (adi_convert_byte_count): New function.
2840 (adi_tag_fd): New function.
2841 (adi_is_addr_mapped): New function.
2842 (adi_read_versions): New function.
2843 (adi_write_versions): New function.
2844 (adi_print_versions): New function.
2845 (do_examine): New function.
2846 (do_assign): New function.
2847 (adi_examine_command): New function.
2848 (adi_assign_command): New function.
2849 (_initialize_sparc64_adi_tdep): New function.
2850
2851 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2852
2853 * breakpoint.c (breakpoints_info): Rename to ...
2854 (info_breakpoints_command): ... this.
2855 (watchpoints_info): Rename to ...
2856 (info_watchpoints_command): ... this.
2857 (tracepoints_info): Rename to ...
2858 (info_tracepoints_command): ... this.
2859 (_initialize_breakpoint): Adjust.
2860 * dcache.c (dcache_info): Rename to ...
2861 (info_display_command): ... this.
2862 (_initialize_dcache): Adjust.
2863 * frame.h (args_info): Rename to ...
2864 (info_args_command): ... this.
2865 (locals_info): Rename to ...
2866 (info_locals_command): ... this.
2867 * infcmd.c (nofp_registers_info): Rename to ...
2868 (info_registers_command): ... this.
2869 (float_info): Rename to ...
2870 (info_float_command): ... this.
2871 (program_info): Rename to ...
2872 (info_program_command): ... this.
2873 (all_registers_info): Rename to ...
2874 (info_all_registers_command): ... this.
2875 (vector_info): Rename to ...
2876 (info_vector_command): ... this.
2877 (float_info): Rename to ...
2878 (info_float_command): ... this.
2879 (_initialize_infcmd): Adjust.
2880 * inferior.h (term_info): Rename to ...
2881 (info_terminal_command): ... this.
2882 * inflow.c (term_info): Rename to ...
2883 (info_terminal_command): ... this.
2884 (_initialize_inflow): Adjust.
2885 * infrun.c (signals_info): Rename to ...
2886 (info_signals_command): ... this.
2887 (_initialize_infrun): Adjust.
2888 * objc-lang.c (classes_info): Rename to ...
2889 (info_classes_command): ... this.
2890 (selectors_info): Rename to ...
2891 (info_selectors_command): ... this.
2892 (_initialize_objc_language): Adjust.
2893 * printcmd.c (sym_info): Rename to ...
2894 (info_symbol_command): ... this.
2895 (address_info): Rename to ...
2896 (info_address_command): ... this.
2897 (display_info): Rename to ...
2898 (info_display_command): ... this.
2899 (_initialize_printcmd): Adjust.
2900 * reverse.c (bookmarks_info): Rename to ...
2901 (info_breakpoints_command): ... this.
2902 (_initialize_reverse): Adjust.
2903 * ser-go32.c (dos_info): Rename to ...
2904 (info_serial_command): ... this.
2905 (_initialize_ser_dos): Adjust.
2906 * skip.c (skip_info): Rename to ...
2907 (info_skip_command): ... this.
2908 (_initialize_step_skip): Adjust.
2909 * source.c (line_info): Rename to ...
2910 (info_line_command): ... this.
2911 (source_info): Rename to ...
2912 (info_source_command)
2913 * stack.c (frame_info): Rename to ...
2914 (info_frame_command): ... this.
2915 (locals_info): Rename to ...
2916 (info_locals_command): ... this.
2917 (args_info): Rename to ...
2918 (info_args_command): ... this.
2919 (_initialize_stack): Adjust.
2920 * symtab.c (sources_info): Rename to ...
2921 (info_sources_command): ... this.
2922 (variables_info): Rename to ...
2923 (info_variables_command): ... this.
2924 (functions_info): Rename to ...
2925 (info_functions_command): ... this.
2926 (types_info): Rename to ...
2927 (info_types_command): ... this.
2928 (_initialize_symtab): Adjust.
2929 * target.c (target_info): Rename to ...
2930 (info_target_command): ... this.
2931 (initialize_targets): Adjust.
2932 * tracepoint.c (tvariables_info): Rename to ...
2933 (info_tvariables_command): ... this.
2934 (scope_info): Rename to ...
2935 (info_scope_command): ... this.
2936 (trace_dump_actions): Adjust.
2937 (_initialize_tracepoint): Adjust.
2938
2939 2017-08-22 Tom Tromey <tom@tromey.com>
2940
2941 * breakpoint.h (install_breakpoint): Update.
2942 * breakpoint.c (add_solib_catchpoint): Update.
2943 (install_breakpoint): Change argument to a std::unique_ptr.
2944 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2945 (create_breakpoint_sal, create_breakpoint): Update.
2946 (watch_command_1, catch_exec_command_1)
2947 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2948 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2949 Return the breakpoint.
2950 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2951 (new_single_step_breakpoint): Update.
2952 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2953 std::unique_ptr.
2954 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2955 std::unique_ptr.
2956 * break-catch-sig.c (create_signal_catchpoint): Use
2957 std::unique_ptr.
2958 * ada-lang.c (create_ada_exception_catchpoint): Use
2959 std::unique_ptr.
2960
2961 2017-08-22 Tom Tromey <tom@tromey.com>
2962
2963 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2964
2965 2017-08-22 Tom Tromey <tom@tromey.com>
2966
2967 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2968 (lookup_partial_symbol): Update.
2969
2970 2017-08-22 Tom Tromey <tom@tromey.com>
2971
2972 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2973 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2974 (find_and_open_source, symtab_to_fullname): Update.
2975 * psymtab.c (psymtab_to_fullname): Update.
2976
2977 2017-08-22 Tom Tromey <tom@tromey.com>
2978
2979 * exec.c (exec_file_attach): Update.
2980 * linux-thread-db.c (try_thread_db_load): Update.
2981 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2982 * utils.c (gdb_realpath): Change return type.
2983 (gdb_realpath_keepfile): Update.
2984 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2985 (_initialize_utils): Register the new self test.
2986 * source.c (openp): Update.
2987 (find_and_open_source): Update.
2988 * nto-tdep.c (nto_find_and_open_solib): Update.
2989 * main.c (set_gdb_data_directory): Update.
2990 (captured_main_1): Update.
2991 * dwarf2read.c (dwarf2_get_dwz_file): Update
2992 (dw2_map_symbol_filenames): Update.
2993 * auto-load.c (auto_load_safe_path_vec_update): Update.
2994 (filename_is_in_auto_load_safe_path_vec): Change type of
2995 "filename_realp".
2996 (auto_load_objfile_script): Update.
2997 (file_is_auto_load_safe): Update. Use std::string.
2998 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
2999
3000 2017-08-22 Tom Tromey <tom@tromey.com>
3001
3002 * utils.c (gdb_realpath_keepfile): Return a
3003 gdb::unique_xmalloc_ptr.
3004 * exec.c (exec_file_attach): Update.
3005 * utils.h (gdb_realpath_keepfile): Return a
3006 gdb::unique_xmalloc_ptr.
3007
3008 2017-08-22 Tom Tromey <tom@tromey.com>
3009
3010 * compile/compile.c (compile_file_command): Use
3011 gdb::unique_xmalloc_ptr, std::string.
3012 * utils.c (gdb_abspath): Change return type.
3013 * source.c (openp): Update.
3014 * objfiles.c (allocate_objfile): Update.
3015 * main.c (set_gdb_data_directory): Update.
3016 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3017
3018 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3019
3020 * cli-cmds.c (list_commands): List actual code around more than
3021 one location.
3022
3023 2017-08-21 John Baldwin <jhb@FreeBSD.org>
3024
3025 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3026
3027 2017-08-21 Pedro Alves <palves@redhat.com>
3028
3029 PR gdb/19487
3030 * c-exp.y (variable production): Handle function aliases.
3031 * minsyms.c (msymbol_is_text): New function.
3032 * minsyms.h (msymbol_is_text): Declare.
3033 * symtab.c (find_function_alias_target): New function.
3034 * symtab.h (find_function_alias_target): Declare.
3035
3036 2017-08-21 Pedro Alves <palves@redhat.com>
3037
3038 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3039 typedefs.
3040 * typeprint.c (whatis_exp): If handling "whatis", and expression
3041 is OP_TYPE, strip one typedef level. Otherwise don't strip
3042 typedefs here.
3043 * valops.c (value_cast): Save "to" type before resolving
3044 stubs/typedefs. Use that type as resulting value's type.
3045
3046 2017-08-18 Tom Tromey <tom@tromey.com>
3047 Pedro Alves <palves@redhat.com>
3048
3049 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3050 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3051 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3052 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3053 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3054 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3055 (linux_get_siginfo_data): Add "thread" argument. Use
3056 scoped_restore.
3057 * linux-nat.c (linux_child_follow_fork)
3058 (check_stopped_by_watchpoint): Use scoped_restore.
3059 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3060 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3061 (restore_inferior_ptid, save_inferior_ptid): Remove.
3062 * btrace.c (btrace_fetch): Use scoped_restore.
3063 * bsd-uthread.c (bsd_uthread_fetch_registers)
3064 (bsd_uthread_store_registers): Use scoped_restore.
3065 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3066 scoped_restore.
3067 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3068 (aix_thread_xfer_partial): Use scoped_restore.
3069 * inferior.h (save_inferior_ptid): Remove.
3070
3071 2017-08-18 Yao Qi <yao.qi@linaro.org>
3072
3073 PR tdep/21818
3074 * arm-tdep.c (gdb_print_insn_arm): Mark
3075 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3076
3077 2017-08-18 Yao Qi <yao.qi@linaro.org>
3078
3079 * NEWS: Mention GDBserver's new option "--selftest".
3080 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3081 * selftest.c: Move it to common/selftest.c.
3082 * selftest.h: Move it to common/selftest.h.
3083 * selftest-arch.c (reset): New function.
3084 (tests_with_arch): Call reset.
3085
3086 2017-08-18 Yao Qi <yao.qi@linaro.org>
3087
3088 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3089 instead of exception_fprintf and printf_filtered.
3090
3091 2017-08-18 Yao Qi <yao.qi@linaro.org>
3092
3093 * selftest.c (register_self_test): Rename it to
3094 selftests::register_test.
3095 (run_self_tests): selftest::run_tests.
3096 * selftest.h: Update declarations.
3097 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3098 selftests::register_test_foreach_arch.
3099 * selftest-arch.h: Update declaration.
3100 * aarch64-tdep.c: Update.
3101 * arm-tdep.c: Likewise.
3102 * disasm-selftests.c: Likewise.
3103 * dwarf2loc.c: Likewise.
3104 * dwarf2-frame.c: Likewise.
3105 * findvar.c: Likewise.
3106 * gdbarch-selftests.c: Likewise.
3107 * maint.c (maintenance_selftest): Likewise.
3108 * regcache.c: Likewise.
3109 * rust-exp.y: Likewise.
3110 * selftest-arch.c: Likewise.
3111 * unittests/environ-selftests.c: Likewise.
3112 * unittests/function-view-selftests.c: Likewise.
3113 * unittests/offset-type-selftests.c: Likewise.
3114 * unittests/optional-selftests.c: Likewise.
3115 * unittests/scoped_restore-selftests.c: Likewise.
3116 * utils-selftests.c: Likewise.
3117
3118 2017-08-17 Pedro Alves <palves@redhat.com>
3119
3120 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3121 local.
3122
3123 2017-08-17 Pedro Alves <palves@redhat.com>
3124
3125 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3126 field.
3127 (reset_die_in_process): Delete, replaced by ...
3128 (process_die_scope): ... this new class. Make it responsible for
3129 freeing cu->line_header too.
3130 (process_die): Use process_die_scope.
3131 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3132 cu->line_header_die_owner. Don't release the line header if it's
3133 owned by the CU.
3134 (setup_type_unit_groups): Make the CU/DIE own the line header.
3135 Don't release the line header here.
3136
3137 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3138
3139 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3140
3141 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3142
3143 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3144 Single-Key mode
3145
3146 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3147
3148 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3149 mode command list.
3150
3151 2017-08-15 Stafford Horne <shorne@gmail.com>
3152
3153 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3154
3155 2017-08-15 Stafford Horne <shorne@gmail.com>
3156
3157 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3158
3159 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3160
3161 PR gdb/21954
3162 * infcmd.c (unset_environment_command): Use the 'clear' method on
3163 the environment instead of resetting it.
3164
3165 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3166
3167 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3168 platforms.
3169
3170 2017-08-14 Tom Tromey <tom@tromey.com>
3171
3172 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3173 (print_binary_chars): Likewise.
3174 (BITS_IN_BYTES): Remove.
3175
3176 2017-08-14 Tom Tromey <tom@tromey.com>
3177
3178 PR gdb/21675
3179 * valprint.c (LOW_ZERO): Change value to 034.
3180 (print_octal_chars): Add static_asserts for octal constants.
3181 * printcmd.c (print_scalar_formatted): Add 'd' case.
3182
3183 2017-08-11 Tom Tromey <tom@tromey.com>
3184
3185 * symfile.c (add_symbol_file_command): Use std::vector.
3186
3187 2017-08-14 Tom Tromey <tom@tromey.com>
3188
3189 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3190 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3191 std::move.
3192 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3193
3194 2017-08-11 Pedro Alves <palves@redhat.com>
3195
3196 * infrun.c (process_event_stop_test): Adjust
3197 function_name_is_marked_for_skip call.
3198 * skip.c: Include <list>.
3199 (skiplist_entry): Make it a class with private fields, and
3200 getters/setters.
3201 (skiplist_entry_chain): Delete.
3202 (skiplist_entries): New.
3203 (skiplist_entry_count): Delete.
3204 (highest_skiplist_entry_num): New.
3205 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3206 (add_skiplist_entry): Delete.
3207 (skiplist_entry::skiplist_entry): New.
3208 (skiplist_entry::add_entry): New.
3209 (skip_file_command, skip_function): Adjust.
3210 (compile_skip_regexp): Delete.
3211 (skip_command): Don't compile regexp here. Adjust to use
3212 skiplist_entry::add_entry.
3213 (skip_info): Adjust to use range-for and getters.
3214 (skip_enable_command, skip_disable_command): Adjust to use
3215 range-for and setters.
3216 (skip_delete_command): Adjust to use std::list.
3217 (add_skiplist_entry): Delete.
3218 (skip_file_p): Delete, refactored as ...
3219 (skiplist_entry::do_skip_file_p): ... this new method.
3220 (skip_gfile_p): Delete, refactored as ...
3221 (skiplist_entry::do_gskip_file_p): ... this new method.
3222 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3223 (skiplist_entry::skip_function_p): ... this new method.
3224 (function_name_is_marked_for_skip): Now returns bool, and takes
3225 the function sal by const reference. Adjust to use range-for and
3226 skiplist_entry methods.
3227 (_initialize_step_skip): Remove references to
3228 skiplist_entry_chain, skiplist_entry_count.
3229 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3230 takes the function sal by const reference.
3231
3232 2017-08-11 Yao Qi <yao.qi@linaro.org>
3233
3234 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3235 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3236 (dwarf2_frame_cache):
3237 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3238 RETURN_MASK_ALL and set *this_case to NULL.
3239 * frame-unwind.h: Update comments.
3240
3241 2017-08-11 Yao Qi <yao.qi@linaro.org>
3242
3243 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3244 (dwarf2_frame_state_copy_regs): Remove.
3245 (dwarf2_frame_state_free_regs): Remove.
3246 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3247 (dwarf2_restore_rule): Call method .alloc_regs instead of
3248 dwarf2_frame_state_alloc_regs.
3249 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3250 constructor. Call std::move.
3251 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3252 (dwarf2_frame_cache): Likewise.
3253
3254 [GDB_SELF_TEST]: Include selftest.h and
3255 selftest-arch.h.
3256 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3257 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3258 execute_cfa_program_test.
3259
3260 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3261 copy ctor, assignment operator, move assignment.
3262 <alloc_regs>: New method.
3263 <swap>: New method.
3264 (struct dwarf2_frame_state): Delete dtor.
3265 (dwarf2_frame_state_alloc_regs): Remove declaration.
3266 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3267 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3268
3269 2017-08-11 Yao Qi <yao.qi@linaro.org>
3270
3271 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3272 (dwarf2_frame_state::dwarf2_frame_state): New.
3273 (dwarf2_frame_state::~dwarf2_frame_state): New.
3274 (dwarf2_fetch_cfa_info): Update.
3275 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3276 rather than a pointer. Update code.
3277 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3278 dtor.
3279 <data_align, code_align, retaddr_column>: Change them to const.
3280 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3281 to bool.
3282
3283 2017-08-11 Yao Qi <yao.qi@linaro.org>
3284
3285 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3286 <loc.exp>: New field.
3287 * dwarf2-frame.c (execute_cfa_program): Update.
3288 (dwarf2_frame_prev_register): Update.
3289
3290 2017-08-10 Pedro Alves <palves@redhat.com>
3291
3292 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3293
3294 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3295
3296 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3297 (fbsd_pending_children): Use std::list.
3298 (fbsd_remember_child): Likewise.
3299 (fbsd_is_child_pending): Likewise.
3300 (fbsd_pending_vfork_done): Use std::forward_list.
3301 (fbsd_add_vfork_done): Likewise.
3302 (fbsd_is_vfork_done_pending): Likewise.
3303 (fbsd_next_vfork_done): Likewise.
3304
3305 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3306
3307 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3308 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3309 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3310 for `mapfilename'.
3311 (fbsd_xfer_partial): Use gdb::byte_vector.
3312 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3313
3314 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3315
3316 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3317 "filestuff.h".
3318 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3319
3320 2017-08-09 Tom Tromey <tom@tromey.com>
3321
3322 * skip.c (skiplist_entry): New constructor.
3323 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3324 (skiplist_entry::file_is_glob): Now bool.
3325 (skiplist_entry::file, skiplist_entry::function): Now
3326 std::string.
3327 (make_skip_entry): Return a unique_ptr. Use new.
3328 (free_skiplist_entry, free_skiplist_entry_cleanup)
3329 (make_free_skiplist_entry_cleanup): Remove.
3330 (skip_command, skip_disable_command, add_skiplist_entry)
3331 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3332 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3333 (function_name_is_marked_for_skip): Update.
3334 (skip_delete_command): Update. Use delete.
3335
3336 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3337
3338 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3339 (aarch64_linux_core_read_description): New function.
3340 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3341
3342 2017-08-09 Pedro Alves <palves@redhat.com>
3343
3344 * cp-name-parser.y (cp_comp_to_string): Return a
3345 gdb::unique_xmalloc_ptr<char>.
3346 * cp-support.c (replace_typedefs_qualified_name)
3347 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3348 (cp_canonicalize_string_full): Use op= instead of explicit
3349 convertion.
3350 (cp_class_name_from_physname, method_name_from_physname)
3351 (cp_func_name, cp_remove_params): Adjust to use
3352 gdb::unique_xmalloc_ptr<char>.
3353 * cp-support.h (cp_comp_to_string): Return a
3354 gdb::unique_xmalloc_ptr<char>.
3355 * python/py-type.c (typy_lookup_type): Adjust to use
3356 gdb::unique_xmalloc_ptr<char>.
3357
3358 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3359
3360 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3361
3362 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3363 Yao Qi <yao.qi@linaro.org>
3364
3365 * cp-support.c (cp_canonicalize_string_full): Use
3366 gdb::unique_xmalloc_ptr<char>.
3367 (cp_canonicalize_string): Likewise.
3368
3369 2017-08-09 Yao Qi <yao.qi@linaro.org>
3370
3371 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3372 * regformats/i386/amd64-avx-avx512.dat: Remove.
3373 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3374 * regformats/i386/amd64-avx-mpx.dat:Remove.
3375 * regformats/i386/amd64-avx.dat: Remove.
3376 * regformats/i386/amd64-mpx.dat: Remove.
3377 * regformats/i386/i386-avx-avx512.dat: Remove.
3378 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3379 * regformats/i386/i386-avx-mpx.dat: Remove.
3380 * regformats/i386/i386-mmx.dat: Remove.
3381 * regformats/i386/i386-mpx.dat: Remove.
3382
3383 2017-08-09 Yao Qi <yao.qi@linaro.org>
3384
3385 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3386 * amd64-tdep.c: Don't include features/i386/x32*.c.
3387 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3388 functions.
3389 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3390 and i386/x32-avx-avx512.
3391 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3392 and i386/x32.xml.
3393 * features/i386/x32-avx-avx512.c: Removed.
3394 * features/i386/x32-avx-avx512.xml: Removed.
3395 * features/i386/x32-avx.c: Removed.
3396 * features/i386/x32-avx.xml: Removed.
3397 * features/i386/x32.c: Removed.
3398 * features/i386/x32.xml: Removed.
3399 * regformats/i386/x32-avx-avx512.dat: Removed.
3400 * regformats/i386/x32-avx.dat: Removed.
3401 * regformats/i386/x32.dat: Removed.
3402
3403 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3404
3405 PR breakpoints/21886
3406 * mem-break.c (default_memory_insert_breakpoint): Use
3407 `->placed_address' rather than `->reqstd_address' for the
3408 breakpoint location.
3409
3410 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3411
3412 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3413 assertions.
3414
3415 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3416
3417 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3418 a union of `tdep_info', `tdesc_data' and `id'.
3419 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3420 rather than `info.tdep_info'.
3421 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3422 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3423 * i386-tdep.c (i386_gdbarch_init): Likewise.
3424 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3425 * mips-tdep.c (mips_gdbarch_init): Likewise.
3426 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3427 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3428 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3429 `info.tdep_info'.
3430 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3431 `info.tdep_info'.
3432 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3433 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3434 `info.tdep_info'.
3435 * spu-tdep.c (spu_gdbarch_init): Likewise.
3436 * gdbarch.h: Regenerate.
3437
3438 2017-08-07 Leszek Swirski <leszeks@google.com>
3439
3440 PR symtab/20899
3441 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3442
3443 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3444
3445 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3446 (gdbsim_open): Rename gdb_argv args object to argv.
3447
3448 2017-08-05 Tom Tromey <tom@tromey.com>
3449
3450 * compile/compile-object-load.c (compile_object_load): Use
3451 gdb::unique_xmalloc_ptr.
3452 * cli/cli-dump.c (scan_filename): Rename from
3453 scan_filename_with_cleanup. Change return type.
3454 (scan_expression): Rename from scan_expression_with_cleanup.
3455 Change return type.
3456 (dump_memory_to_file, dump_value_to_file, restore_command):
3457 Use gdb::unique_xmalloc_ptr. Update.
3458 * cli/cli-cmds.c (find_and_open_script): Use
3459 gdb::unique_xmalloc_ptr.
3460 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3461 * symmisc.c (maintenance_print_symbols)
3462 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3463 * symfile.c (symfile_bfd_open, generic_load)
3464 (add_symbol_file_command, remove_symbol_file_command): Use
3465 gdb::unique_xmalloc_ptr.
3466 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3467 * psymtab.c (maintenance_print_psymbols): Use
3468 gdb::unique_xmalloc_ptr.
3469 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3470 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3471 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3472 (reload_shared_libraries_1): Likewise.
3473
3474 2017-08-05 Tom Tromey <tom@tromey.com>
3475
3476 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3477 (rust_op_vector, rust_set_vector): New typedefs.
3478 (current_parser): New global.
3479 (work_obstack): Change to pointer type. Update all users.
3480 (rust_ast, pstate): Remove globals.
3481 (struct rust_parser): New.
3482 (%union) <params, field_inits>: Change type.
3483 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3484 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3485 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3486 (convert_params_to_types, convert_params_to_expression): Change
3487 type of "params".
3488 (ast_string): Change type of "fields".
3489 (rust_parse): Make a rust_parser. Remove cleanups.
3490 (rust_lex_tests): Make and install an auto_obstack.
3491
3492 2017-08-04 Yao Qi <yao.qi@linaro.org>
3493
3494 * configure.srv (ipa_x32_linux_regobj): New.
3495 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3496 instead of X86_TDESC_AVX512.
3497 (initialize_low_tracepoint): Call
3498 init_registers_x32_avx_avx512_linux.
3499
3500 2017-08-04 Yao Qi <yao.qi@linaro.org>
3501
3502 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3503
3504 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3505
3506 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3507
3508 2017-08-03 Tom Tromey <tom@tromey.com>
3509
3510 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3511 Remove.
3512 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3513
3514 2017-08-03 Tom Tromey <tom@tromey.com>
3515
3516 * python/py-param.c (compute_enum_values): Use gdb_argv.
3517
3518 2017-08-03 Tom Tromey <tom@tromey.com>
3519
3520 * utils.h (struct gdb_argv_deleter): New.
3521 (gdb_argv): New class.
3522 * utils.c (gdb_argv::reset): New method.
3523 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3524 * tracefile.c (tsave_command): Use gdb_argv.
3525 * top.c (new_ui_command): Use gdb_argv.
3526 * symmisc.c (maintenance_print_symbols)
3527 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3528 * symfile.c (symbol_file_command, generic_load)
3529 (remove_symbol_file_command): Use gdb_argv.
3530 * stack.c (backtrace_command): Use gdb_argv.
3531 * source.c (add_path, show_substitute_path_command)
3532 (unset_substitute_path_command, set_substitute_path_command):
3533 Use gdb_argv.
3534 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3535 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3536 * remote.c (extended_remote_run, remote_put_command)
3537 (remote_get_command, remote_delete_command): Use gdb_argv.
3538 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3539 (gdbsim_open): Use gdb_argv.
3540 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3541 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3542 * procfs.c (procfs_info_proc): Use gdb_argv.
3543 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3544 * infrun.c (handle_command): Use gdb_argv.
3545 * inferior.c (add_inferior_command, clone_inferior_command):
3546 Use gdb_argv.
3547 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3548 * exec.c (exec_file_command): Use gdb_argv.
3549 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3550 * compile/compile.c (build_argc_argv): Use gdb_argv.
3551
3552 2017-08-03 Tom Tromey <tom@tromey.com>
3553
3554 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3555
3556 2017-08-03 Tom Tromey <tom@tromey.com>
3557
3558 * python/python.c (compute_python_string): Return std::string.
3559 (gdbpy_eval_from_control_command): Update.
3560 (do_start_initialization): Use std::string.
3561 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3562 xstrprintf.
3563 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3564 xstrprintf.
3565
3566 2017-08-03 Tom Tromey <tom@tromey.com>
3567
3568 * top.h (do_restore_instream_cleanup): Remove.
3569 * top.c (do_restore_instream_cleanup): Remove.
3570 (read_command_file): Use scoped_restore.
3571 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3572
3573 2017-08-03 Tom Tromey <tom@tromey.com>
3574
3575 * cli/cli-script.c (execute_user_command)
3576 (execute_control_command): Use scoped_restore.
3577
3578 2017-08-03 Tom Tromey <tom@tromey.com>
3579
3580 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3581 (execute_user_command): Remove user_call_depth; use
3582 user_args_stack's size instead.
3583
3584 2017-08-03 Tom Tromey <tom@tromey.com>
3585
3586 * top.h (in_user_command): Remove.
3587 * top.c (in_user_command): Remove.
3588 * cli/cli-script.c (do_restore_user_call_depth)
3589 (execute_user_command): Update.
3590
3591 2017-08-03 Tom Tromey <tom@tromey.com>
3592
3593 * valops.c (search_struct_method): Use gdb::byte_vector.
3594 * valarith.c (value_concat): Use std::vector.
3595 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3596 (simple_search_memory): Likewise.
3597 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3598 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3599 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3600 * elfread.c (elf_rel_plt_read): Use std::string.
3601 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3602 * cli/cli-dump.c (restore_section_callback): Use
3603 gdb::byte_vector.
3604
3605 2017-08-03 Tom Tromey <tom@tromey.com>
3606
3607 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3608
3609 2017-08-03 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3612 (tui_register_format): Use scoped_restore.
3613
3614 2017-08-03 Tom Tromey <tom@tromey.com>
3615
3616 * reverse.c (exec_direction_default): Remove.
3617 (exec_reverse_once): Use scoped_restore.
3618 * remote.c (restore_remote_timeout): Remove.
3619 (remote_flash_erase, remote_flash_write, remote_flash_done)
3620 (readchar, remote_serial_write): Use scoped_restore.
3621 * cli/cli-script.c (struct source_cleanup_lines_args)
3622 (source_cleanup_lines): Remove.
3623 (script_from_file): Use scoped_restore.
3624 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3625 (source_command): Use scoped_restore.
3626
3627 2017-08-03 Tom Tromey <tom@tromey.com>
3628
3629 * utils.h (make_cleanup_free_so): Remove.
3630 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3631 * solist.h (struct so_deleter): New.
3632 (so_list_up): New typedef.
3633 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3634
3635 2017-08-03 Tom Tromey <tom@tromey.com>
3636
3637 * utils.h (make_cleanup_restore_current_language): Remove.
3638 * utils.c (do_restore_current_language)
3639 (make_cleanup_restore_current_language): Remove.
3640 * parse.c (parse_exp_in_context_1)
3641 (parse_expression_with_language): Use
3642 scoped_restore_current_language.
3643 * mi/mi-main.c (mi_cmd_execute): Use
3644 scoped_restore_current_language.
3645 * language.h (scoped_restore_current_language): New class.
3646
3647 2017-08-03 Tom Tromey <tom@tromey.com>
3648
3649 * compile/compile.c (cleanup_unlink_file): Remove.
3650 (compile_to_object): Use gdb::unlinker.
3651 (eval_compile_command): Likewise.
3652
3653 2017-08-03 Tom Tromey <tom@tromey.com>
3654
3655 * utils.h (make_cleanup_fclose): Remove.
3656 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3657
3658 2017-08-03 Tom Tromey <tom@tromey.com>
3659
3660 * top.c (open_terminal_stream): Return gdb_file_up.
3661 (new_ui_command): Update.
3662
3663 2017-08-03 Tom Tromey <tom@tromey.com>
3664
3665 * source.c (print_source_lines_base, forward_search_command)
3666 (reverse_search_command): Use gdb_file_up.
3667
3668 2017-08-03 Tom Tromey <tom@tromey.com>
3669
3670 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3671
3672 2017-08-03 Tom Tromey <tom@tromey.com>
3673
3674 * cli/cli-cmds.c (find_and_open_script): Change return type.
3675 Remove "streamp" and "full_path" parameters.
3676 (source_script_with_search): Update.
3677 * auto-load.c (source_script_file): Update.
3678 * cli/cli-cmds.h (find_and_open_script): Change type.
3679 (open_script): New struct.
3680
3681 2017-08-03 Tom Tromey <tom@tromey.com>
3682
3683 * xml-support.c (xml_fetch_content_from_file): Update.
3684 * ui-file.c (stdio_file::open): Update.
3685 * tracefile-tfile.c (tfile_start): Update.
3686 * remote.c (remote_file_put, remote_file_get): Update.
3687 * nat/linux-procfs.c (linux_proc_get_int)
3688 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3689 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3690 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3691 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3692 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3693 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3694 * linux-nat.c (linux_proc_pending_signals): Update.
3695 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3696 (file_closer): Remove.
3697 * compile/compile.c (compile_to_object): Update.
3698 * common/filestuff.h (struct gdb_file_deleter): New.
3699 (gdb_file_up): New typedef.
3700 (gdb_fopen_cloexec): Change return type.
3701 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3702 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3703 (dump_binary_file, restore_binary_file): Update.
3704 * auto-load.c (auto_load_objfile_script_1): Update.
3705
3706 2017-08-03 Tom Tromey <tom@tromey.com>
3707
3708 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3709 (info_static_tracepoint_markers_command): Likewise.
3710 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3711 * skip.c (skip_info): Use ui_out_emit_table.
3712 * progspace.c (print_program_space): Use ui_out_emit_table.
3713 * osdata.c (info_osdata): Use ui_out_emit_table.
3714 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3715 ui_out_emit_table.
3716 * linux-thread-db.c (info_auto_load_libthread_db): Use
3717 ui_out_emit_table.
3718 * inferior.c (print_inferior): Use ui_out_emit_table.
3719 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3720 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3721 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3722 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3723 * ui-out.h (class ui_out_emit_table): New.
3724
3725 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3726
3727 * mips-tdep.c (mips_fpu_type_str): New function.
3728 (mips_dump_tdep): Call it.
3729
3730 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3731
3732 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3733 `->mips_fpu_type'.
3734
3735 2017-07-31 Xavier Roirand <roirand@adacore.com>
3736
3737 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3738
3739 2017-07-27 Xavier Roirand <roirand@adacore.com>
3740
3741 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3742
3743 2017-07-26 Yao Qi <yao.qi@linaro.org>
3744
3745 * cli/cli-cmds.c (maintenancechecklist): New variable.
3746 * gdbcmd.h (maintenancechecklist): Declare it.
3747 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3748 Call i386_linux_read_description with different masks.
3749 * maint.c (maintenance_check_command): New function.
3750 (_initialize_maint_cmds): Call add_prefix_cmd.
3751 * target-descriptions.c (tdesc_reg): override operator != and ==.
3752 (tdesc_type): Likewise.
3753 (tdesc_feature): Likewise.
3754 (target_desc): Likewise.
3755 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3756 (maintenance_check_xml_descriptions): New function.
3757 (_initialize_target_descriptions) Add command "xml-descriptions".
3758 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3759
3760 2017-07-26 Yao Qi <yao.qi@linaro.org>
3761
3762 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3763 Include features/i386/32bit-*.c.
3764 (i386_linux_read_description): Generate target description if it
3765 doesn't exist.
3766 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3767 functions.
3768 * features/i386/32bit-linux.c: Re-generated.
3769 * features/i386/32bit-sse.c: Likewise.
3770 * target-descriptions.c (print_c_feature::visit): Print code to
3771 set register number if needed.
3772 (print_c_feature) <m_next_regnum>: New field.
3773
3774 2017-07-26 Yao Qi <yao.qi@linaro.org>
3775
3776 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3777 (FEATURE_XMLFILES): New.
3778 (FEATURE_CFILES): New.
3779 New rules.
3780 (clean-cfiles): Remove generated c files.
3781 * features/i386/32bit-avx.c: Generated.
3782 * features/i386/32bit-avx512.c: Generated.
3783 * features/i386/32bit-core.c: Generated.
3784 * features/i386/32bit-linux.c: Generated.
3785 * features/i386/32bit-mpx.c: Generated.
3786 * features/i386/32bit-pkeys.c: Generated.
3787 * features/i386/32bit-sse.c: Generated.
3788 * target-descriptions.c: Include algorithm.
3789 (tdesc_element_visitor): Add method visit_end.
3790 (print_c_tdesc): Implement visit_end.
3791 (print_c_tdesc:: m_filename_after_features): Move it to
3792 protected.
3793 (print_c_feature): New class.
3794 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3795 name starts with "i386/32bit-".
3796
3797 2017-07-26 Yao Qi <yao.qi@linaro.org>
3798
3799 * target-descriptions.c (tdesc_element_visitor): New class.
3800 (tdesc_element): New class.
3801 (tdesc_reg): Inherit from tdesc_element.
3802 (tdesc_reg::accept): New function.
3803 (tdesc_type): Inherit from tdesc_element.
3804 (tdesc_type::accept): New function.
3805 (tdesc_feature): Inherit from tdesc_element.
3806 (tdesc_feature::accept): New function.
3807 (target_desc): Inherit from tdesc_element.
3808 (target_desc::target_desc): New.
3809 (target_desc::~target_desc): New.
3810 (target_desc::accept): New.
3811 (allocate_target_description): Use new.
3812 (free_target_description): Use delete.
3813 (print_c_tdesc): New class.
3814 (maint_print_c_tdesc_cmd): Adjust.
3815
3816 * features/aarch64.c: Re-generated.
3817 * features/arc-arcompact.c: Re-generated.
3818 * features/arc-v2.c: Re-generated.
3819 * features/arm/arm-with-iwmmxt.c: Re-generated.
3820 * features/arm/arm-with-m.c: Re-generated.
3821 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3822 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3823 * features/arm/arm-with-neon.c: Re-generated.
3824 * features/arm/arm-with-vfpv2.c: Re-generated.
3825 * features/arm/arm-with-vfpv3.c: Re-generated.
3826 * features/i386/amd64-avx-avx512.c: Re-generated.
3827 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3828 * features/i386/amd64-avx.c: Re-generated.
3829 * features/i386/amd64-avx-linux.c: Re-generated.
3830 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3831 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3832 * features/i386/amd64-avx-mpx.c: Re-generated.
3833 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3834 * features/i386/amd64.c: Re-generated.
3835 * features/i386/amd64-linux.c: Re-generated.
3836 * features/i386/amd64-mpx.c: Re-generated.
3837 * features/i386/amd64-mpx-linux.c: Re-generated.
3838 * features/i386/i386-avx-avx512.c: Re-generated.
3839 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3840 * features/i386/i386-avx.c: Re-generated.
3841 * features/i386/i386-avx-linux.c: Re-generated.
3842 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3843 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3844 * features/i386/i386-avx-mpx.c: Re-generated.
3845 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3846 * features/i386/i386.c: Re-generated.
3847 * features/i386/i386-linux.c: Re-generated.
3848 * features/i386/i386-mmx.c: Re-generated.
3849 * features/i386/i386-mmx-linux.c: Re-generated.
3850 * features/i386/i386-mpx.c: Re-generated.
3851 * features/i386/i386-mpx-linux.c: Re-generated.
3852 * features/i386/x32-avx-avx512.c: Re-generated.
3853 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3854 * features/i386/x32-avx.c: Re-generated.
3855 * features/i386/x32-avx-linux.c: Re-generated.
3856 * features/i386/x32.c: Re-generated.
3857 * features/i386/x32-linux.c: Re-generated.
3858 * features/microblaze.c: Re-generated.
3859 * features/microblaze-with-stack-protect.c: Re-generated.
3860 * features/mips64-dsp-linux.c: Re-generated.
3861 * features/mips64-linux.c: Re-generated.
3862 * features/mips-dsp-linux.c: Re-generated.
3863 * features/mips-linux.c: Re-generated.
3864 * features/nds32.c: Re-generated.
3865 * features/nios2.c: Re-generated.
3866 * features/nios2-linux.c: Re-generated.
3867 * features/rs6000/powerpc-32.c: Re-generated.
3868 * features/rs6000/powerpc-32l.c: Re-generated.
3869 * features/rs6000/powerpc-403.c: Re-generated.
3870 * features/rs6000/powerpc-403gc.c : Re-generated.
3871 * features/rs6000/powerpc-405.c: Re-generated.
3872 * features/rs6000/powerpc-505.c: Re-generated.
3873 * features/rs6000/powerpc-601.c: Re-generated.
3874 * features/rs6000/powerpc-602.c: Re-generated.
3875 * features/rs6000/powerpc-603.c: Re-generated.
3876 * features/rs6000/powerpc-604.c: Re-generated.
3877 * features/rs6000/powerpc-64.c: Re-generated.
3878 * features/rs6000/powerpc-64l.c: Re-generated.
3879 * features/rs6000/powerpc-7400.c: Re-generated.
3880 * features/rs6000/powerpc-750.c: Re-generated.
3881 * features/rs6000/powerpc-860.c: Re-generated.
3882 * features/rs6000/powerpc-altivec32.c: Re-generated.
3883 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3884 * features/rs6000/powerpc-altivec64.c: Re-generated.
3885 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3886 * features/rs6000/powerpc-cell32l.c: Re-generated.
3887 * features/rs6000/powerpc-cell64l.c: Re-generated.
3888 * features/rs6000/powerpc-e500.c: Re-generated.
3889 * features/rs6000/powerpc-e500l.c: Re-generated.
3890 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3891 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3892 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3893 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3894 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3895 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3896 * features/rs6000/powerpc-vsx32.c: Re-generated.
3897 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3898 * features/rs6000/powerpc-vsx64.c: Re-generated.
3899 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3900 * features/rs6000/rs6000.c: Re-generated.
3901 * features/s390-linux32.c: Re-generated.
3902 * features/s390-linux32v1.c: Re-generated.
3903 * features/s390-linux32v2.c: Re-generated.
3904 * features/s390-linux64.c: Re-generated.
3905 * features/s390-linux64v1.c: Re-generated.
3906 * features/s390-linux64v2.c: Re-generated.
3907 * features/s390-te-linux64.c: Re-generated.
3908 * features/s390-tevx-linux64.c: Re-generated.
3909 * features/s390-vx-linux64.c: Re-generated.
3910 * features/s390x-linux64.c: Re-generated.
3911 * features/s390x-linux64v1.c: Re-generated.
3912 * features/s390x-linux64v2.c: Re-generated.
3913 * features/s390x-te-linux64.c: Re-generated.
3914 * features/s390x-tevx-linux64.c: Re-generated.
3915 * features/s390x-vx-linux64.c: Re-generated.
3916 * features/sparc/sparc32-solaris.c: Re-generated.
3917 * features/sparc/sparc64-solaris.c: Re-generated.
3918 * features/tic6x-c62x.c: Re-generated.
3919 * features/tic6x-c62x-linux.c: Re-generated.
3920 * features/tic6x-c64x.c: Re-generated.
3921 * features/tic6x-c64x-linux.c: Re-generated.
3922 * features/tic6x-c64xp.c: Re-generated.
3923 * features/tic6x-c64xp-linux.c: Re-generated.
3924
3925 2017-07-26 Yao Qi <yao.qi@linaro.org>
3926
3927 * i386-linux-tdep.c (i386_linux_read_description): New function.
3928 (i386_linux_core_read_description): Call
3929 i386_linux_read_description.
3930 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3931 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3932 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3933 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3934 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3935 * x86-linux-nat.c (x86_linux_read_description): Call
3936 i386_linux_read_description.
3937
3938 2017-07-26 Yao Qi <yao.qi@linaro.org>
3939
3940 * NEWS: Mention it.
3941 * features/Makefile (%.c: %.xml): Pass the xml file name to
3942 command "maint print c-tdesc".
3943 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3944 name from 'arg'.
3945
3946 2017-07-26 Yao Qi <yao.qi@linaro.org>
3947
3948 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3949 in-class initialization.
3950 (tdesc_create_feature): Call new instead of XCNEW.
3951 (free_target_description): Ue delete.
3952
3953 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3954
3955 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3956
3957 2017-07-25 Yao Qi <yao.qi@linaro.org>
3958
3959 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3960 constant.
3961 (amd64_x32_init_abi): Likewise.
3962 * amd64-tdep.h (amd64_init_abi): Update declaration.
3963 (amd64_x32_init_abi): Likewise.
3964
3965 2017-07-25 Yao Qi <yao.qi@linaro.org>
3966
3967 PR tdep/21717
3968 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3969 condition for FPSCR.
3970 (arm_linux_store_inferior_registers): Likewise.
3971
3972 2017-07-22 Tom Tromey <tom@tromey.com>
3973
3974 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3975 <syscalls_counts>: Now a std::vector.
3976 (get_catch_syscall_inferior_data): Use "new".
3977 (catch_syscall_inferior_data_cleanup): Use "delete".
3978 (insert_catch_syscall, remove_catch_syscall)
3979 (clear_syscall_counts): Update.
3980
3981 2017-07-22 Tom Tromey <tom@tromey.com>
3982
3983 * break-catch-syscall.c (syscall_catchpoint)
3984 <syscalls_to_be_caught>: Now a std::vector<int>
3985 (~syscall_catchpoint): Remove.
3986 (insert_catch_syscall, remove_catch_syscall)
3987 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3988 (print_mention_catch_syscall, print_recreate_catch_syscall):
3989 Update.
3990 (create_syscall_event_catchpoint): Change type of "filter"
3991 parameter.
3992 (catch_syscall_split_args): Return a std::vector.
3993 (catch_syscall_command_1, catching_syscall_number_1): Update.
3994
3995 2017-07-22 Tom Tromey <tom@tromey.com>
3996
3997 * break-catch-throw.c (struct exception_catchpoint)
3998 <exception_rx>: Now a std::string.
3999 (~exception_catchpoint): Remove.
4000 (print_one_detail_exception_catchpoint): Update.
4001 (handle_gnu_v3_exceptions): Change type of except_rx.
4002 (extract_exception_regexp): Return a std::string.
4003 (catch_exception_command_1): Update.
4004
4005 2017-07-22 Tom Tromey <tom@tromey.com>
4006
4007 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4008 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4009 std::vector.
4010 <catch_all>: Now a bool.
4011 (~signal_catchpoint): Remove.
4012 (signal_catchpoint_insert_location)
4013 (signal_catchpoint_remove_location)
4014 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4015 (signal_catchpoint_print_mention)
4016 (signal_catchpoint_print_recreate)
4017 (signal_catchpoint_explains_signal): Update.
4018 (create_signal_catchpoint): Change type of "filter" and
4019 "catch_all".
4020 (catch_signal_split_args): Return a std::vector. Change type of
4021 "catch_all".
4022 (catch_signal_command): Update.
4023
4024 2017-07-20 Pedro Alves <palves@redhat.com>
4025
4026 * ada-lang.c (ada_language_defn): Make extern.
4027 (_initialize_ada_language): Remove add_language call.
4028 * c-lang.c (c_language_defn, cplus_language_defn)
4029 (asm_language_defn, minimal_language_defn): Make extern.
4030 (_initialize_c_language): Delete.
4031 * completer.c (compare_cstrings): Delete, moved to utils.h.
4032 * d-lang.c (d_language_defn): Make extern.
4033 (_initialize_d_language): Remove add_language calls.
4034 * defs.h (enum language): Add comment.
4035 * f-lang.c (f_language_defn): Make extern.
4036 (_initialize_f_language): Remove add_language call.
4037 * go-lang.c (go_language_defn): Make extern.
4038 (_initialize_go_language): Remove add_language call.
4039 * language.c: Include <algorithm>.
4040 (languages): Redefine as const array.
4041 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4042 (set_language_command): Handle "local". Use for-range loop.
4043 (set_language): Remove loop.
4044 (language_enum): Rewrite.
4045 (language_def, language_str): Remove loops.
4046 (add_language): Delete.
4047 (add_set_language_command): New, based on add_languages.
4048 (skip_language_trampoline): Adjust.
4049 (local_language_defn): Delete.
4050 (language_gdbarch_post_init): Adjust.
4051 (_initialize_language): Remove add_language calls. Call
4052 add_set_language_command.
4053 * language.h (add_language): Delete.
4054 (auto_language_defn)
4055 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4056 (asm_language_defn, c_language_defn, cplus_language_defn)
4057 (d_language_defn, f_language_defn, go_language_defn)
4058 (m2_language_defn, objc_language_defn, opencl_language_defn)
4059 (pascal_language_defn, rust_language_defn): Declare.
4060 * m2-lang.c (m2_language_defn): Make extern.
4061 (_initialize_m2_language): Remove add_language call.
4062 * objc-lang.c (objc_language_defn): Make extern.
4063 (_initialize_objc_language): Remove add_language call.
4064 * opencl-lang.c (opencl_language_defn): Make extern.
4065 (_initialize_opencl_language): Remove add_language call.
4066 * p-lang.c (pascal_language_defn): Make extern.
4067 (_initialize_pascal_language): Delete.
4068 * rust-lang.c (rust_language_defn): Make extern.
4069 (_initialize_rust_language): Delete.
4070 * utils.h (compare_cstrings): New static inline function.
4071
4072 2017-07-20 Pedro Alves <palves@redhat.com>
4073
4074 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4075 (get_var_value): Constify parameters.
4076 (get_int_var_value): Change prototype.
4077 (to_fixed_range_type): Adjust.
4078 * ada-lang.h (get_int_var_value): Change prototype.
4079
4080 2017-07-20 Pedro Alves <palves@redhat.com>
4081
4082 * dwarf2read.c (dw2_lookup_symbol): Use
4083 SYMBOL_MATCHES_SEARCH_NAME.
4084 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4085
4086 2017-07-20 Pedro Alves <palves@redhat.com>
4087
4088 * block.c (block_iter_name_step, block_iter_name_first)
4089 (block_iter_name_next): Delete.
4090 (block_lookup_symbol_primary): Adjust to use
4091 dict_iter_match_first/dict_iter_match_next.
4092 * block.h (block_iter_name_first, block_iter_name_next): Delete
4093 declarations.
4094 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4095 dict_iter_match_first/dict_iter_match_next.
4096
4097 2017-07-20 Pedro Alves <palves@redhat.com>
4098
4099 * cp-support.c (cp_find_first_component_aux): Add missing case for
4100 end of string.
4101
4102 2017-07-18 David Blaikie <dblaikie@gmail.com>
4103
4104 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4105 of dwo_cu's dwo_file.
4106
4107 2017-07-18 Yao Qi <yao.qi@linaro.org>
4108
4109 * remote.c (store_registers_using_G): Remove one line comment.
4110
4111 2017-07-18 Yao Qi <yao.qi@linaro.org>
4112
4113 * regcache.c (regcache_cpy): Simplify it.
4114 (regcache::cpy_no_passthrough): Remove it.
4115 * regcache.h (cpy_no_passthrough): Remove it.
4116 (regcache_dup, regcache_cpy): Update comments.
4117
4118 2017-07-18 Pedro Alves <palves@redhat.com>
4119
4120 * remote-sim.c (sim_command_completer): Adjust to work with a
4121 completion_tracker instead of a VEC.
4122
4123 2017-07-17 Pedro Alves <palves@redhat.com>
4124
4125 * completer.c (complete_source_filenames): New function.
4126 (complete_address_and_linespec_locations): New function.
4127 (location_completer): Use complete_address_and_linespec_locations.
4128 (completion_tracker::build_completion_result): Honor the tracker's
4129 request to suppress append.
4130 * completer.h (completion_tracker::suppress_append_ws)
4131 (completion_tracker::set_suppress_append_ws): New methods.
4132 (completion_tracker::m_suppress_append_ws): New field.
4133 (complete_source_filenames): New declaration.
4134 * linespec.c (linespec_complete_what): New.
4135 (struct ls_parser) <complete_what, completion_word,
4136 completion_quote_char, completion_quote_end, completion_tracker>:
4137 New fields.
4138 (string_find_incomplete_keyword_at_end): New.
4139 (linespec_lexer_lex_string): Record quote char. If in completion
4140 mode, don't throw.
4141 (linespec_lexer_consume_token): Advance the completion word point.
4142 (linespec_lexer_peek_token): Save/restore completion info.
4143 (save_stream_and_consume_token): New.
4144 (set_completion_after_number): New.
4145 (linespec_parse_basic): Set what to complete next depending on
4146 token. Handle function and label completions specially.
4147 (parse_linespec): Disable objc shortcut in completion mode. Set
4148 what to complete next depending on token type. Skip keyword if in
4149 completion mode.
4150 (complete_linespec_component, linespec_complete): New.
4151 * linespec.h (linespec_complete): Declare.
4152
4153 2017-07-17 Pedro Alves <palves@redhat.com>
4154
4155 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4156 Handle 'operator<' / 'operator<<'.
4157
4158 2017-07-17 Pedro Alves <palves@redhat.com>
4159
4160 * completer.c (collect_explicit_location_matches): Handle
4161 MATCH_LABEL.
4162 (convert_explicit_location_to_linespec): New, factored out from
4163 ...
4164 (convert_explicit_location_to_sals): ... this.
4165 (complete_label): New.
4166 (linespec_complete_label, find_label_symbols_in_block): New.
4167 (find_label_symbols): Add completion_mode parameter and adjust to
4168 call find_label_symbols_in_block.
4169 * linespec.h (linespec_complete_label): Declare.
4170
4171 2017-07-17 Pedro Alves <palves@redhat.com>
4172
4173 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4174 complete_symbol_mode parameter.
4175 * cli/cli-cmds.c (complete_command): Get the completion result out
4176 of the handle_brkchars tracker if used a custom word point.
4177 * completer.c: Include "linespec.h".
4178 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4179 (advance_to_expression_complete_word_point): New.
4180 (completion_tracker::completes_to_completion_word): New.
4181 (complete_files_symbols): Pass down
4182 complete_symbol_mode::EXPRESSION.
4183 (explicit_options, probe_options): New.
4184 (collect_explicit_location_matches): Complete on the
4185 explictit_loc->foo instead of word. Use
4186 linespec_complete_function. Handle MATCH_LINE. Handle offering
4187 keyword and options completions.
4188 (backup_text_ptr): Delete.
4189 (skip_keyword): New.
4190 (complete_explicit_location): Remove 'word' parameter. Add
4191 language, quoted_arg_start and quoted_arg_end parameters.
4192 Rewrite, parsing left to right.
4193 (location_completer): Rewrite.
4194 (location_completer_handle_brkchars): New function.
4195 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4196 (enum complete_line_internal_reason): Adjust comments.
4197 (completion_tracker::discard_completions): New.
4198 (completer_handle_brkchars_func_for_completer): Handle
4199 location_completer.
4200 (gdb_custom_word_point_brkchars)
4201 (gdb_org_rl_basic_quote_characters): New.
4202 (gdb_completion_word_break_characters_throw)
4203 (completion_find_completion_word): Handle trackers that use a
4204 custom word point.
4205 (completion_tracker::advance_custom_word_point_by): New.
4206 (completion_tracker::build_completion_result): Don't rely on
4207 readline appending the quote char.
4208 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4209 use a custom word point.
4210 (gdb_rl_attempted_completion_function): Restore
4211 rl_basic_quote_characters.
4212 * completer.h (class completion_tracker): Extend intro comment.
4213 (completion_tracker::set_quote_char)
4214 (completion_tracker::quote_char)
4215 (completion_tracker::set_use_custom_word_point)
4216 (completion_tracker::use_custom_word_point)
4217 (completion_tracker::custom_word_point)
4218 (completion_tracker::set_custom_word_point)
4219 (completion_tracker::advance_custom_word_point_by)
4220 (completion_tracker::completes_to_completion_word)
4221 (completion_tracker::discard_completions): New methods.
4222 (completion_tracker::m_quote_char)
4223 (completion_tracker::m_use_custom_word_point)
4224 (completion_tracker::m_custom_word_point): New fields.
4225 (advance_to_expression_complete_word_point): Declare.
4226 * f-lang.c (f_collect_symbol_completion_matches): Add
4227 complete_symbol_mode parameter.
4228 * language.h (struct language_defn)
4229 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4230 parameter.
4231 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4232 (linespec_complete_function): New function.
4233 (linespec_lexer_lex_keyword): Adjust.
4234 * linespec.h (linespec_keywords, linespec_complete_function): New
4235 declarations.
4236 * location.c (find_end_quote): New function.
4237 (explicit_location_lex_one): Add explicit_completion_info
4238 parameter. Save quoting info. Don't throw if being called for
4239 completion. Don't handle Ada operators here.
4240 (is_cp_operator, skip_op_false_positives, first_of)
4241 (explicit_location_lex_one_function): New function.
4242 (string_to_explicit_location): Replace 'dont_throw' parameter with
4243 an explicit_completion_info pointer parameter. Handle it. Don't
4244 use explicit_location_lex_one to lex function names. Use
4245 explicit_location_lex_one_function instead.
4246 * location.h (struct explicit_completion_info): New.
4247 (string_to_explicit_location): Replace 'dont_throw' parameter with
4248 an explicit_completion_info pointer parameter.
4249 * symtab.c (default_collect_symbol_completion_matches_break_on):
4250 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4251 (default_collect_symbol_completion_matches)
4252 (collect_symbol_completion_matches): Add complete_symbol_mode
4253 parameter.
4254 (collect_symbol_completion_matches_type): Pass down
4255 complete_symbol_mode::EXPRESSION.
4256 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4257 parameter. Handle LINESPEC mode.
4258 * symtab.h (complete_symbol_mode): New.
4259 (default_collect_symbol_completion_matches_break_on)
4260 (default_collect_symbol_completion_matches)
4261 (collect_symbol_completion_matches)
4262 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4263 parameter.
4264
4265 2017-07-17 Pedro Alves <palves@redhat.com>
4266
4267 * utils.c (enum class strncmp_iw_mode): New.
4268 (strcmp_iw): Rename to ...
4269 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4270 parameters. Handle them.
4271 (strncmp_iw): New.
4272 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4273 * utils.h (strncmp_iw): Declare.
4274 (strcmp_iw): Move describing comments here.
4275
4276 2017-07-17 Pedro Alves <palves@redhat.com>
4277
4278 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4279 CP_OPERATOR_STR.
4280 * c-typeprint.c (is_type_conversion_operator): Use
4281 CP_OPERATOR_STR.
4282 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4283 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4284 CP_OPERATOR_LEN.
4285 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4286 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4287 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4288 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4289 CP_OPERATOR_STR.
4290 * location.c: Include "cp-support.h".
4291 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4292 CP_OPERATOR_STR.
4293 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4294 CP_OPERATOR_LEN.
4295
4296 2017-07-17 Pedro Alves <palves@redhat.com>
4297
4298 * cli/cli-cmds.c (complete_command): Use a completion tracker
4299 along with completion_find_completion_word for handle_brkchars
4300 phase.
4301 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4302 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4303 (struct gdb_rl_completion_word_info): New.
4304 (gdb_rl_find_completion_word): New.
4305 (completion_find_completion_word): New.
4306 * completer.h (completion_find_completion_word): Declare.
4307
4308 2017-07-17 Pedro Alves <palves@redhat.com>
4309
4310 * ada-lang.c (symbol_completion_match): Adjust comments.
4311 (symbol_completion_add): Replace vector parameter with
4312 completion_tracker parameter. Use it.
4313 (ada_make_symbol_completion_list): Rename to...
4314 (ada_collect_symbol_completion_matches): ... this. Add
4315 completion_tracker parameter and use it.
4316 (ada_language_defn): Adjust.
4317 * break-catch-syscall.c (catch_syscall_completer): Adjust
4318 prototype and work with completion_tracker instead of VEC.
4319 * breakpoint.c (condition_completer): Adjust prototype and work
4320 with completion_tracker instead of VEC.
4321 * c-lang.c (c_language_defn, cplus_language_defn)
4322 (asm_language_defn, minimal_language_defn): Adjust to renames.
4323 * cli/cli-cmds.c (complete_command): Rework using
4324 completion_tracker. Catch exceptions when completing.
4325 * cli/cli-decode.c (integer_unlimited_completer)
4326 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4327 with completion_tracker instead of VEC.
4328 * command.h (struct completion_tracker): Forward declare.
4329 (completer_ftype, completer_handle_brkchars_ftype): Change
4330 types.
4331 (complete_on_cmdlist, complete_on_enum): Adjust.
4332 * completer.c: Include <algorithm>.
4333 (struct gdb_completer_state): New.
4334 (current_completion): New global.
4335 (readline_line_completion_function): Delete.
4336 (noop_completer, filename_completer)
4337 (filename_completer_handle_brkchars, complete_files_symbols)
4338 (linespec_location_completer): Adjust to work with a
4339 completion_tracker instead of a VEC.
4340 (string_or_empty): New.
4341 (collect_explicit_location_matches): Adjust to work with a
4342 completion_tracker instead of a VEC.
4343 (explicit_location_completer): Rename to ...
4344 (complete_explicit_location): ... this and adjust to work with a
4345 completion_tracker instead of a VEC.
4346 (location_completer): Adjust to work with a completion_tracker
4347 instead of a VEC.
4348 (add_struct_fields): Adjust to work with a completion_list instead
4349 of VEC.
4350 (expression_completer): Rename to ...
4351 (complete_expression): ... this and adjust to work with a
4352 completion_tracker instead of a VEC. Use complete_files_symbols.
4353 (expression_completer): Reimplement on top of complete_expression.
4354 (symbol_completer): Adjust to work with a completion_tracker
4355 instead of a VEC.
4356 (enum complete_line_internal_reason): Add describing comments.
4357 (complete_line_internal_normal_command): Adjust to work with a
4358 completion_tracker instead of a VEC.
4359 (complete_line_internal): Rename to ...
4360 (complete_line_internal_1): ... this and adjust to work with a
4361 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4362 handle_brkchars phase.
4363 (new_completion_tracker): Delete.
4364 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4365 complete_line_internal_1.
4366 (free_completion_tracker): Delete.
4367 (INITIAL_COMPLETION_HTAB_SIZE): New.
4368 (completion_tracker::completion_tracker)
4369 (completion_tracker::~completion_tracker): New.
4370 (maybe_add_completion): Delete.
4371 (completion_tracker::maybe_add_completion)
4372 (completion_tracker::add_completion)
4373 (completion_tracker::add_completions): New.
4374 (throw_max_completions_reached_error): Delete.
4375 (complete_line): Adjust to work with a completion_tracker instead
4376 of a VEC. Don't create a completion_tracker_t or check for max
4377 completions here.
4378 (command_completer, command_completer_handle_brkchars)
4379 (signal_completer, reg_or_group_completer_1)
4380 (reg_or_group_completer, default_completer_handle_brkchars):
4381 Adjust to work with a completion_tracker.
4382 (gdb_completion_word_break_characters_throw): New.
4383 (gdb_completion_word_break_characters): Reimplement.
4384 (line_completion_function): Delete.
4385 (completion_tracker::recompute_lowest_common_denominator)
4386 (expand_preserving_ws)
4387 (completion_tracker::build_completion_result)
4388 (completion_result::completion_result)
4389 (completion_result::completion_result)
4390 (completion_result::~completion_result)
4391 (completion_result::completion_result)
4392 (completion_result::release_match_list, compare_cstrings)
4393 (completion_result::sort_match_list)
4394 (completion_result::reset_match_list)
4395 (gdb_rl_attempted_completion_function_throw)
4396 (gdb_rl_attempted_completion_function): New.
4397 * completer.h (completion_list, struct completion_result)
4398 (class completion_tracker): New.
4399 (complete_line): Add completion_tracker parameter.
4400 (readline_line_completion_function): Delete.
4401 (gdb_rl_attempted_completion_function): New.
4402 (noop_completer, filename_completer, expression_completer)
4403 (location_completer, symbol_completer, command_completer)
4404 (signal_completer, reg_or_group_completer): Update prototypes.
4405 (completion_tracker_t, new_completion_tracker)
4406 (make_cleanup_free_completion_tracker): Delete.
4407 (enum maybe_add_completion_enum): Delete.
4408 (maybe_add_completion): Delete.
4409 (throw_max_completions_reached_error): Delete.
4410 * corefile.c (complete_set_gnutarget): Adjust to work with a
4411 completion_tracker instead of a VEC.
4412 * cp-abi.c (cp_abi_completer): Adjust to work with a
4413 completion_tracker instead of a VEC.
4414 * d-lang.c (d_language_defn): Adjust.
4415 * disasm.c (disassembler_options_completer): Adjust to work with a
4416 completion_tracker instead of a VEC.
4417 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4418 (f_collect_symbol_completion_matches): ... this. Adjust to work
4419 with a completion_tracker instead of a VEC.
4420 (f_language_defn): Adjust.
4421 * go-lang.c (go_language_defn): Adjust.
4422 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4423 Adjust to work with a completion_tracker instead of a VEC.
4424 * infrun.c (handle_completer): Likewise.
4425 * interps.c (interpreter_completer): Likewise.
4426 * interps.h (interpreter_completer): Likewise.
4427 * language.c (unknown_language_defn, auto_language_defn)
4428 (local_language_defn): Adjust.
4429 * language.h (language_defn::la_make_symbol_completion_list):
4430 Rename to ...
4431 (language_defn::la_collect_symbol_completion_matches): ... this
4432 and adjust to work with a completion_tracker instead of a VEC.
4433 * m2-lang.c (m2_language_defn): Adjust.
4434 * objc-lang.c (objc_language_defn): Adjust.
4435 * opencl-lang.c (opencl_language_defn): Adjust.
4436 * p-lang.c (pascal_language_defn): Adjust.
4437 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4438 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4439 with a completion_tracker.
4440 * rust-lang.c (rust_language_defn): Adjust.
4441 * symtab.c (free_completion_list, do_free_completion_list)
4442 (return_val, completion_tracker): Delete.
4443 (completion_list_add_name, completion_list_add_symbol)
4444 (completion_list_add_msymbol, completion_list_objc_symbol)
4445 (completion_list_add_fields, add_symtab_completions): Add
4446 completion_tracker parameter and use it.
4447 (default_make_symbol_completion_list_break_on_1): Rename to...
4448 (default_collect_symbol_completion_matches_break_on): ... this.
4449 Add completion_tracker parameter and use it instead of allocating
4450 a completion tracker here.
4451 (default_make_symbol_completion_list_break_on): Delete old
4452 implementation.
4453 (default_make_symbol_completion_list): Delete.
4454 (default_collect_symbol_completion_matches): New.
4455 (make_symbol_completion_list): Delete.
4456 (collect_symbol_completion_matches): New.
4457 (make_symbol_completion_type): Rename to ...
4458 (collect_symbol_completion_matches_type): ... this. Add
4459 completion_tracker parameter and use it instead of VEC.
4460 (make_file_symbol_completion_list_1): Rename to...
4461 (collect_file_symbol_completion_matches): ... this. Add
4462 completion_tracker parameter and use it instead of VEC.
4463 (make_file_symbol_completion_list): Delete.
4464 (add_filename_to_list): Use completion_list instead of a VEC.
4465 (add_partial_filename_data::list): Now a completion_list.
4466 (make_source_files_completion_list): Work with a completion_list
4467 instead of a VEC.
4468 * symtab.h: Include "completer.h".
4469 (default_make_symbol_completion_list_break_on)
4470 (default_make_symbol_completion_list, make_symbol_completion_list)
4471 (make_symbol_completion_type, make_file_symbol_completion_list)
4472 (make_source_files_completion_list): Delete.
4473 (default_collect_symbol_completion_matches_break_on)
4474 (default_collect_symbol_completion_matches)
4475 (collect_symbol_completion_matches)
4476 (collect_symbol_completion_matches_type)
4477 (collect_file_symbol_completion_matches)
4478 (make_source_files_completion_list): New.
4479 * top.c (init_main): Don't install a rl_completion_entry_function
4480 hook. Install a rl_attempted_completion_function hook instead.
4481 * tui/tui-layout.c (layout_completer): Adjust to work with a
4482 completion_tracker.
4483 * tui/tui-regs.c (tui_reggroup_completer):
4484 * tui/tui-win.c (window_name_completer, focus_completer)
4485 (winheight_completer): Adjust to work with a completion_tracker.
4486 * value.c: Include "completer.h".
4487 (complete_internalvar): Adjust to work with a completion_tracker.
4488 * value.h (complete_internalvar): Likewise.
4489
4490 2017-07-17 Pedro Alves <palves@redhat.com>
4491
4492 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4493 renames.
4494 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4495 comments to completer_ftype's declaration.
4496 <completer_handle_brkchars>: Change type to
4497 completer_handle_brkchars_ftype.
4498 * command.h (completer_ftype): Add describing comment and give
4499 names to parameters.
4500 (completer_ftype_void): Rename to ...
4501 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4502 (set_cmd_completer_handle_brkchars): Adjust.
4503 * completer.c (filename_completer_handle_brkchars): New function.
4504 (complete_line_internal_normal_command): New function, factored
4505 out from ...
4506 (complete_line_internal): ... here.
4507 (command_completer_handle_brkchars)
4508 (default_completer_handle_brkchars)
4509 (completer_handle_brkchars_func_for_completer): New functions.
4510 * completer.h (set_gdb_completion_word_break_characters): Delete
4511 declaration.
4512 (completer_handle_brkchars_func_for_completer): New declaration.
4513 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4514 completer_handle_brkchars_func_for_completer.
4515
4516 2017-07-17 Pedro Alves <palves@redhat.com>
4517
4518 * completer.c (symbol_completer): New function, based on
4519 make_symbol_completion_list_fn.
4520 * completer.h (symbol_completer): New declaration.
4521 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4522 * python/py-cmd.c (completers): Adjust.
4523 * symtab.c (make_symbol_completion_list_fn): Delete.
4524 * symtab.h (make_symbol_completion_list_fn): Delete.
4525 * cli/cli-decode.c (add_cmd): Adjust.
4526
4527 2017-07-17 Pedro Alves <palves@redhat.com>
4528
4529 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4530 * dwarf2read.c: Include "filename-seen-cache.h".
4531 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4532 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4533 * filename-seen-cache.c: New file.
4534 * filename-seen-cache.h: New file.
4535 * symtab.c: Include "filename-seen-cache.h".
4536 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4537 (create_filename_seen_cache, clear_filename_seen_cache)
4538 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4539 to filename-seen-cache.h/filename-seen-cache.c.
4540 (output_source_filename, sources_info)
4541 (maybe_add_partial_symtab_filename)
4542 (make_source_files_completion_list): Adjust to use
4543 filename_seen_cache.
4544
4545 2017-07-17 Pedro Alves <palves@redhat.com>
4546
4547 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4548 fields.
4549 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4550 dwarf2_debug_sections*)): New.
4551 (dwarf2_per_objfile::dwarf2_per_objfile(const
4552 dwarf2_per_objfile&)): Declare as deleted.
4553 (dwarf2_per_objfile::operator=): Declare as deleted.
4554 (dwarf2_per_objfile::dwarf2_per_objfile)
4555 (dwarf2_per_objfile::~dwarf2_per_objfile)
4556 (dwarf2_per_objfile::free_cached_comp_units): New.
4557 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4558 ctor. Call dwarf2_per_objfile's ctor manually.
4559 (dwarf2_locate_sections): Deleted/refactored as ...
4560 (dwarf2_per_objfile::locate_sections): ... this new method.
4561 (free_cached_comp_units): Defer to
4562 dwarf2_per_objfile::free_cached_comp_units.
4563 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4564
4565 2017-07-14 Tom Tromey <tom@tromey.com>
4566
4567 PR rust/21764:
4568 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4569 parameter.
4570 <UNOP_SIZEOF>: Split into separate case.
4571 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4572
4573 2017-07-14 Tom Tromey <tom@tromey.com>
4574
4575 PR rust/21763:
4576 * symtab.c (symbol_matches_domain): Add language_rust to special
4577 case.
4578 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4579 treat LOC_TYPEDEF symbols as variables.
4580
4581 2017-07-14 Pedro Alves <palves@redhat.com>
4582
4583 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4584 symtabs matching all symtabs with SRCFILE as file name instead of
4585 only considering the first hit, with lookup_symtab.
4586
4587 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4588
4589 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4590 operator_name parameters.
4591 (gen_expr): Update function call.
4592
4593 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4594
4595 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4596 parameter.
4597 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4598 Likewise.
4599 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4600 parameter, use agent_expr::gdbarch instead, update function
4601 calls.
4602 (locexpr_tracepoint_var_ref): Likewise.
4603 (loclist_tracepoint_var_ref): Likewise.
4604 * ax-gdb.c (gen_trace_static_fields): Likewise.
4605 (gen_traced_pop): Likewise.
4606 (gen_frame_args_address): Likewise.
4607 (gen_frame_locals_address): Likewise.
4608 (gen_var_ref): Likewise.
4609 (gen_struct_ref_recursive): Likewise.
4610 (gen_static_field): Likewise.
4611 (gen_maybe_namespace_elt): Likewise.
4612 (gen_expr): Likewise.
4613 (gen_trace_for_var): Likewise.
4614 (gen_trace_for_expr): Likewise.
4615 (gen_trace_for_return_address): Likewise.
4616
4617 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4618
4619 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4620 parameter.
4621 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4622
4623 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4624
4625 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4626 from ax, update calls.
4627 (gen_usual_arithmetic): Likewise.
4628 (gen_integral_promotions): Likewise.
4629 (gen_bitfield_ref): Likewise.
4630 (gen_primitive_field): Likewise.
4631 (gen_struct_ref_recursive): Likewise.
4632 (gen_struct_ref): Likewise.
4633 (gen_maybe_namespace_elt): Likewise.
4634 (gen_struct_elt_for_reference): Likewise.
4635 (gen_namespace_elt): Likewise.
4636 (gen_aggregate_elt_ref): Likewise.
4637 (gen_expr): Get gdbarch from ax, update calls.
4638 (gen_expr_binop_rest): Likewise.
4639
4640 2017-07-13 Pedro Alves <palves@redhat.com>
4641
4642 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4643 as default tdesc.
4644 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4645 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4646 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4647 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4648 tdep.
4649 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4650 Get final tdesc from the tdep.
4651 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4652 default tdesc.
4653 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4654 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4655 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4656 Use it as default tdesc.
4657 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4658 down to amd_init_abi. No longer handle fallback tdesc here.
4659 * amd64-tdep.h (tdesc_x32): Declare.
4660 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4661 parameter.
4662 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4663 as default tdesc.
4664
4665 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4666
4667 * s390-linux-tdep.c (s390_process_record): Add support for
4668 instructions new in arch12.
4669
4670 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4671
4672 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4673 PT_GETFSBASE and PT_GETGSBASE.
4674 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4675 PT_SETGSBASE.
4676
4677 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4678
4679 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4680 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4681 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4682 those rules.
4683 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4684 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4685 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4686 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4687 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4688 * features/i386/amd64.xml: Add 64bit-segments.xml.
4689 * features/i386/amd64-avx-avx512.c: Regenerated.
4690 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4691 * features/i386/amd64-avx-mpx.c: Regenerated.
4692 * features/i386/amd64-avx.c: Regenerated.
4693 * features/i386/amd64-mpx.c: Regenerated.
4694 * features/i386/amd64.c: Regenerated.
4695 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4696 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4697 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4698 * regformats/i386/amd64-avx.dat: Regenerated.
4699 * regformats/i386/amd64-mpx.dat: Regenerated.
4700 * regformats/i386/amd64.dat: Regenerated.
4701
4702 2017-07-10 Yao Qi <yao.qi@linaro.org>
4703
4704 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4705 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4706
4707 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4708
4709 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4710 unsetenv.
4711 * gnulib/aclocal.m4: Regenerate.
4712 * gnulib/config.in: Regenerate.
4713 * gnulib/configure: Regenerate.
4714 * gnulib/import/Makefile.am: Regenerate.
4715 * gnulib/import/Makefile.in: Regenerate.
4716 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4717 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4718 * gnulib/import/m4/environ.m4: New file.
4719 * gnulib/import/m4/setenv.m4: New file.
4720 * gnulib/import/setenv.c: New file.
4721 * gnulib/import/unsetenv.c: New file.
4722
4723 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4724
4725 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4726 address when op is DW_OP_addr.
4727
4728 2017-07-09 Tom Tromey <tom@tromey.com>
4729
4730 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4731 check and apply to outer type.
4732
4733 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4734
4735 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4736 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4737 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4738 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4739
4740 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4741
4742 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4743
4744 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4745
4746 * corelow.c (get_core_siginfo): Remove.
4747 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4748 instead of get_core_siginfo.
4749 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4750 * gdbarch.h: Re-generate.
4751 * gdbarch.c: Re-generate.
4752 * linux-tdep.c (linux_core_xfer_siginfo): New.
4753 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4754
4755 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4756
4757 * corelow.c (thread_section_name): Move to ...
4758 * gdbcore.h (thread_section_name): ... here.
4759
4760 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4761
4762 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4763 (struct siginfo32): New.
4764 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4765 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4766 via ptrace(PT_LWPINFO).
4767
4768 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4769
4770 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4771 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4772 (fbsd_get_siginfo_type): New.
4773 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4774 (_initialize_fbsd_tdep): New.
4775
4776 2017-07-06 David Blaikie <dblaikie@gmail.com>
4777
4778 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4779 a singular dwo_unit*) to support multiple CUs in the same way that
4780 multiple TUs are supported.
4781 (create_cus_hash_table): Replace create_dwo_cu with a function for
4782 parsing multiple CUs from a DWO file.
4783 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4784 create_dwo_cu.
4785 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4786 htab_find, rather than comparing the signature to a singleton CU in
4787 the dwo_file.
4788
4789 2017-07-06 Pedro Alves <palves@redhat.com>
4790
4791 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4792
4793 2017-07-04 Pedro Alves <palves@redhat.com>
4794
4795 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4796 * gdbtypes.h (TYPE_STATIC): Delete.
4797 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4798 is_synchronized, is_native>: Delete.
4799 <dummy>: Bump.
4800 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4801 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4802 (TYPE_FN_FIELD_ABSTRACT): Delete.
4803
4804 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4805
4806 * buffer.h (buffer_finish): Fix spelling mistakes.
4807
4808 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4809
4810 * .dir-locals.el: Automatically switch to C-style comments in
4811 versions of Emacs that support the feature.
4812
4813 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4814 Pedro Alves <palves@redhat.com>
4815
4816 PR cli/21688
4817 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4818 (process_next_line): New variable 'inline_cmd'.
4819 Adjust 'if' clauses for "python", "compile" and "guile" to use
4820 'command_name_equals' and check for '!inline_cmd'.
4821
4822 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4823
4824 PR cli/21688
4825 * cli/cli-script.c (command_name_equals_not_inline): New function.
4826 (process_next_line): Adjust 'if' clauses for "python", "compile"
4827 and "guile" to use command_name_equals_not_inline.
4828
4829 2017-06-29 Pedro Alves <palves@redhat.com>
4830
4831 * completer.c (expression_completer): Call
4832 linespec_location_completer instead of location_completer.
4833
4834 2017-06-29 Pedro Alves <palves@redhat.com>
4835
4836 * completer.c (expression_completer): Remove code that recomputes
4837 'text' from 'word'.
4838
4839 2017-06-29 Yao Qi <yao.qi@linaro.org>
4840
4841 * regformats/regdat.sh: Generate code with
4842 "ifndef IN_PROCESS_AGENT".
4843
4844 2017-06-28 Pedro Alves <palves@redhat.com>
4845
4846 * command.h: Include "common/scoped_restore.h".
4847
4848 2017-06-28 Yao Qi <yao.qi@linaro.org>
4849
4850 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4851 instead of obstack_grow.
4852
4853 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4854
4855 PR gdb/21337
4856 * symfile.c (reread_symbols): Call objfiles_changed just before
4857 read_symbols.
4858
4859 2017-06-27 Pedro Alves <palves@redhat.com>
4860
4861 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4862 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4863 (completion_list_add_symbol, completion_list_add_msymbol):
4864 ... these new functions.
4865 (add_symtab_completions)
4866 (default_make_symbol_completion_list_break_on_1): Adjust.
4867
4868 2017-06-27 Pedro Alves <palves@redhat.com>
4869
4870 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4871 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4872 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4873 dtor.
4874 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4875 'storage_obstack' field an auto_obstack. In-class initialize all
4876 non-bitfield fields. Make minsyms_read bool.
4877 * symfile.c (read_symbols): Adjust.
4878
4879 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4880
4881 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4882 (gdbsim_store_register): Likewise.
4883
4884 2017-06-27 Pedro Alves <palves@redhat.com>
4885
4886 * c-exp.y (name_obstack): Now an auto_obstack.
4887 (yylex): Use auto_obstack::clear.
4888 (c_parse): Use auto_obstack::clear instead of reinitializing and
4889 freeing the obstack.
4890 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4891 * d-exp.y (name_obstack): Now an auto_obstack.
4892 (yylex): Use auto_obstack::clear.
4893 (d_parse): Use auto_obstack::clear instead of reinitializing and
4894 freeing the obstack.
4895 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4896 auto_obstack.
4897 * dwarf2read.c (create_addrmap_from_index)
4898 (dwarf2_build_psymtabs_hard)
4899 (update_enumeration_type_from_children): Likewise.
4900 * gdb_obstack.h (auto_obstack): New type.
4901 * go-exp.y (name_obstack): Now an auto_obstack.
4902 (build_packaged_name): Use auto_obstack::clear.
4903 (go_parse): Use auto_obstack::clear instead of reinitializing and
4904 freeing the obstack.
4905 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4906 auto_obstack.
4907 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4908 * rust-exp.y (work_obstack): Now an auto_obstack.
4909 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4910 reinitializing and freeing the obstack.
4911 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4912 (host_char_to_target): Use auto_obstack.
4913 * utils.h (make_cleanup_obstack_free): Delete declaration.
4914 * valprint.c (generic_emit_char, generic_printstr): Use
4915 auto_obstack.
4916
4917 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4918
4919 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4920 thread.
4921 (darwin_init_thread_list): Don't update dummy thread.
4922 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4923
4924 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4925
4926 * record-full.c (netorder16): Remove.
4927
4928 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4929
4930 * common/diagnostics.h: Define macros for GCC.
4931 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4932 * common/vec.h: Include diagnostics.h.
4933 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4934 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4935 warning.
4936
4937 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4938
4939 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4940 New macro.
4941 * ada-lex.l: Ignore deprecated register warnings.
4942
4943 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4944
4945 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4946 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4947
4948 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4949
4950 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4951 its own line.
4952
4953 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4954
4955 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4956
4957 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4958
4959 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4960 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4961 (xtensa_register_read_masked): Likewise.
4962
4963 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4964
4965 * common/environ.c (gdb_environ::unset): Update comment.
4966
4967 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4968
4969 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4970 registers.
4971
4972 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4973
4974 * record-full.c (record_full_exec_insn): Use byte_vector.
4975
4976 2017-06-22 Yao Qi <yao.qi@linaro.org>
4977
4978 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4979 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4980
4981 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4982
4983 * remote.c (cached_reg): Move from here...
4984 * regcache.h (cached_reg): ...to here.
4985 * python/py-unwind.c (struct reg_info): Remove.
4986 (cached_frame_info): Use cached_reg_t.
4987 (pyuw_prev_register): Likewise.
4988 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4989 (pyuw_dealloc_cache): Free all registers.
4990
4991 2017-06-22 Pedro Alves <palves@redhat.com>
4992 Simon Marchi <simon.marchi@ericsson.com>
4993
4994 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
4995 warning.
4996 * common/diagnostics.h: New file.
4997
4998 2017-06-22 Pedro Alves <palves@redhat.com>
4999
5000 * common/agent.h: Add include guards.
5001
5002 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5003
5004 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5005 talk about addressable units instead of bytes.
5006
5007 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5008
5009 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5010 of '::const_iterator'.
5011
5012 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5013
5014 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5015 'unittests/environ-selftests.c'.
5016 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5017 * charset.c (find_charset_names): Declare object 'iconv_env'.
5018 Update code to use 'iconv_env' object. Remove call to
5019 'free_environ'.
5020 * common/environ.c: Include <utility>.
5021 (make_environ): Delete function.
5022 (free_environ): Delete function.
5023 (gdb_environ::clear): New function.
5024 (gdb_environ::operator=): New function.
5025 (gdb_environ::get): Likewise.
5026 (environ_vector): Delete function.
5027 (set_in_environ): Delete function.
5028 (gdb_environ::set): New function.
5029 (unset_in_environ): Delete function.
5030 (gdb_environ::unset): New function.
5031 (gdb_environ::envp): Likewise.
5032 * common/environ.h: Include <vector>.
5033 (struct gdb_environ): Delete; transform into...
5034 (class gdb_environ): ... this class.
5035 (free_environ): Delete prototype.
5036 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5037 environ_vector): Likewise.
5038 * infcmd.c (run_command_1): Update code to call
5039 'envp' from 'gdb_environ' class.
5040 (environment_info): Update code to call methods from 'gdb_environ'
5041 class.
5042 (unset_environment_command): Likewise.
5043 (path_info): Likewise.
5044 (path_command): Likewise.
5045 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5046 (inferior::inferior): Initialize 'environment' using the host's
5047 information.
5048 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5049 Include "environ.h".
5050 (class inferior) <environment>: Change type from 'struct
5051 gdb_environ' to 'gdb_environ'.
5052 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5053 methods from 'gdb_environ' class.
5054 * solib.c (solib_find_1): Likewise
5055 * unittests/environ-selftests.c: New file.
5056
5057 2017-06-20 Yao Qi <yao.qi@linaro.org>
5058
5059 * features/i386/i386-linux.xml: Exchange the order of including
5060 32bit-linux.xml and 32bit-sse.xml.
5061 * features/i386/i386-linux.c: Regenerated.
5062
5063 2017-06-20 Yao Qi <yao.qi@linaro.org>
5064
5065 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5066 Delete copy ctor and assignment operator.
5067 (tdesc_type): Likewise.
5068 (tdesc_feature): Likewise.
5069 (tdesc_free_reg): Remove.
5070 (tdesc_create_reg): Use new.
5071 (tdesc_free_type): Remove.
5072 (tdesc_create_vector): Use new.
5073 (tdesc_create_union): Likewise.
5074 (tdesc_create_flags): Likewise.
5075 (tdesc_create_enum): Likewise.
5076 (tdesc_free_feature): Delete.
5077 (free_target_description): Use delete.
5078
5079 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5080
5081 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5082 registers.
5083
5084 2017-06-19 Pedro Alves <palves@redhat.com>
5085
5086 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5087 after gdb::unlinker.
5088
5089 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5090
5091 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5092 gdb_environ to access an environment variable.
5093
5094 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5095
5096 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5097 gdb_byte*.
5098
5099 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5100
5101 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5102
5103 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5104
5105 * configure: Re-generate.
5106 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5107
5108 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5109
5110 * configure: Re-generate.
5111 * warning.m4: Pass -Werror to compiler when checking for
5112 supported warning flags.
5113
5114 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5115
5116 * Makefile.in (COMPILE.pre): Add "-x c++".
5117
5118 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5119 Pedro Alves <palves@redhat.com>
5120 Yao Qi <yao.qi@linaro.org>
5121
5122 * defs.h (RequireLongest): New.
5123 (extract_integer): Declare function template.
5124 (extract_signed_integer): Remove the declaration, but define it
5125 static inline.
5126 (extract_unsigned_integer): Likewise.
5127 (store_integer): Declare function template.
5128 (store_signed_integer): Remove the declaration, but define it
5129 static inline.
5130 (store_unsigned_integer): Likewise.
5131 * findvar.c (extract_integer): New function template.
5132 (extract_signed_integer): Remove.
5133 (extract_unsigned_integer): Remove.
5134 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5135 instantiations.
5136 (store_integer): New function template.
5137 (store_signed_integer): Remove.
5138 (store_unsigned_integer): Remove.
5139 (store_integer): Explicit instantiations.
5140 * regcache.c (regcache_raw_read_signed): Update.
5141 (regcache::raw_read): New function.
5142 (regcache::raw_read_signed): Remove.
5143 (regcache::raw_read_unsigned): Remove.
5144 (regcache_raw_read_unsigned): Update.
5145 (regcache_raw_write_unsigned): Update.
5146 (regcache::raw_write_signed): Remove.
5147 (regcache::raw_write): New function.
5148 (regcache_cooked_read_signed): Update.
5149 (regcache::raw_write_unsigned): Remove.
5150 (regcache::cooked_read_signed): Remove.
5151 (regcache_cooked_read_unsigned): Update.
5152 (regcache::cooked_read_unsigned): Remove.
5153 (regcache_cooked_write_signed): Update.
5154 (regcache_cooked_write_unsigned): Update.
5155 * regcache.h (regcache) <raw_read_signed>: Remove.
5156 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5157 <raw_read, raw_write>: New.
5158 <cooked_read_signed, cooked_write_signed>: Remove.
5159 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5160 <cooked_read, cooked_write>: New.
5161 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5162 (sh64_pseudo_register_write): Update.
5163
5164 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5165
5166 * arc-tdep.c (arc_disassembler_options): New variable.
5167 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5168 of default_print_insn.
5169 (arc_delayed_print_insn): Set info->section when needed,
5170 use default_print_insn to retrieve a disassembler.
5171
5172 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5173
5174 PR gdb/21574
5175 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5176 to mention $SHELL and startup-with-shell.
5177
5178 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5179
5180 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5181
5182 2017-06-14 Yao Qi <yao.qi@linaro.org>
5183
5184 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5185 default_print_insn instead of print_insn_aarch64.
5186 * arm-tdep.c (gdb_print_insn_arm): Call
5187 default_print_insn instead of print_insn_big_arm
5188 and print_insn_little_arm.
5189 * i386-tdep.c (i386_print_insn): Call default_print_insn
5190 instead of print_insn_i386.
5191 * ia64-tdep.c (ia64_print_insn): Call
5192 default_print_insn instead of print_insn_ia64.
5193 * mips-tdep.c (gdb_print_insn_mips): Call
5194 default_print_insn instead of print_insn_big_mips
5195 and print_insn_little_mips.
5196 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5197 instead of print_insn_spu.
5198
5199 2017-06-14 Pedro Alves <palves@redhat.com>
5200
5201 * ada-lang.c: Include "common/byte-vector.h".
5202 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5203 * charset.c (wchar_iterator::iterate): Resize the vector instead
5204 of reserving it.
5205 * common/byte-vector.h: Include "common/def-vector.h".
5206 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5207 * cli/cli-dump.c: Include "common/byte-vector.h".
5208 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5209 * common/byte-vector.h: New file.
5210 * common/def-vector.h: New file.
5211 * common/default-init-alloc.h: New file.
5212 * dwarf2loc.c: Include "common/byte-vector.h".
5213 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5214 instead of reserving it.
5215 * dwarf2read.c: Include "common/byte-vector.h".
5216 (data_buf::m_vec): Now a gdb::byte_vector.
5217 * gdb_regex.c: Include "common/def-vector.h".
5218 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5219 * mi/mi-main.c: Include "common/byte-vector.h".
5220 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5221 * printcmd.c: Include "common/byte-vector.h".
5222 (print_scalar_formatted): Use gdb::byte_vector.
5223 * valprint.c: Include "common/byte-vector.h".
5224 (maybe_negate_by_bytes, print_decimal_chars): Use
5225 gdb::byte_vector.
5226
5227 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5228
5229 * darwin-nat.c: Include "nat/fork-inferior.h".
5230
5231 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5232
5233 * configure.nat: Factor out Darwin bits that are not
5234 architecture-specific. Add fork-inferior.o.
5235
5236 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5237
5238 * configure.nat: Factor out AIX bits that are not
5239 architecture-specific. Add fork-inferior.o.
5240
5241 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5242
5243 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5244 (read_pieced_value, write_pieced_value): ...here. Reduce to
5245 wrappers that just call rw_pieced_value.
5246
5247 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5248
5249 * dwarf2loc.c (write_pieced_value): When writing the data for a
5250 memory piece, use write_memory_with_notification instead of
5251 write_memory.
5252
5253 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5254
5255 * valops.c (read_value_memory): Change embedded_offset to
5256 represent a bit offset instead of a byte offset.
5257 * value.h (read_value_memory): Adjust comment.
5258
5259 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5260
5261 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5262 dest_offset_bits and source_offset_bits.
5263 (write_pieced_value): Likewise.
5264
5265 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5266
5267 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5268 given by DW_OP_bit_piece.
5269 (write_pieced_value): Likewise.
5270
5271 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5272
5273 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5274 some other preparations to the places where sufficient information
5275 is available.
5276 (write_pieced_value): Likewise.
5277
5278 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5279
5280 * dwarf2loc.c (bits_to_bytes): New function.
5281 (read_pieced_value): Fix offset calculations for register pieces
5282 on big-endian targets.
5283 (write_pieced_value): Likewise.
5284
5285 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5286
5287 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5288 (write_pieced_value): Likewise.
5289
5290 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5291
5292 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5293 transfer the source value's least significant bits, instead of its
5294 lowest-addressed ones. Rename type_len to max_offset.
5295 (read_pieced_value): Mirror above changes to write_pieced_value as
5296 applicable.
5297
5298 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5299
5300 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5301 truncate full bytes from dest_offset_bits before using it as an
5302 offset into the buffer.
5303
5304 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5305
5306 * dwarf2loc.c (write_pieced_value): Include transfer size in
5307 byte-wise check.
5308
5309 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5310
5311 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5312 calculation of this_size.
5313
5314 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5315
5316 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5317 when targeting a bit-field.
5318 (write_pieced_value): Likewise.
5319
5320 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5321
5322 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5323 (allocate_piece_closure): Drop addr_size parameter.
5324 (dwarf2_evaluate_loc_desc_full): Adjust call to
5325 allocate_piece_closure.
5326
5327 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5328
5329 PR gdb/21226
5330 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5331 the LSB end, independent of endianness.
5332
5333 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5334
5335 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5336 size capping.
5337
5338 2017-06-13 Yao Qi <yao.qi@linaro.org>
5339
5340 * mips-linux-nat.c: Move include features/mips*-linux.c to
5341 mips-linux-tdep.c.
5342 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5343 to mips-linux-tdep.c.
5344 * mips-linux-tdep.c: Include features/mips*-linux.c
5345 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5346 functions.
5347 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5348 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5349 (tdesc_mips64_dsp_linux): Declare.
5350
5351 2017-06-12 Tom Tromey <tom@tromey.com>
5352
5353 * valprint.h (val_print_type_code_int): Remove.
5354 * valprint.c (generic_val_print_int): Always call
5355 val_print_scalar_formatted.
5356 (val_print_type_code_int): Remove.
5357 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5358 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5359 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5360 * ada-valprint.c (ada_val_print_num): Use
5361 val_print_scalar_formatted.
5362
5363 2017-06-12 Tom Tromey <tom@tromey.com>
5364
5365 * printcmd.c (print_scalar_formatted): Unify the two switches.
5366 Don't convert scalars to LONGEST.
5367
5368 2017-06-12 Tom Tromey <tom@tromey.com>
5369
5370 PR exp/16225:
5371 * valprint.h (print_decimal_chars): Update.
5372 * valprint.c (maybe_negate_by_bytes): New function.
5373 (print_decimal_chars): Add "is_signed" argument.
5374 * printcmd.c (print_scalar_formatted): Update.
5375
5376 2017-06-12 Tom Tromey <tom@tromey.com>
5377
5378 PR exp/16225:
5379 * valprint.h (print_binary_chars, print_hex_chars): Update.
5380 * valprint.c (val_print_type_code_int): Update.
5381 (print_binary_chars): Add "zero_pad" argument.
5382 (emit_octal_digit): New function.
5383 (print_octal_chars): Don't zero-pad.
5384 (print_decimal_chars): Likewise.
5385 (print_hex_chars): Add "zero_pad" argument.
5386 * sh64-tdep.c (sh64_do_fp_register): Update.
5387 * regcache.c (regcache::dump): Update.
5388 * printcmd.c (print_scalar_formatted): Update.
5389 * infcmd.c (default_print_one_register_info): Update.
5390
5391 2017-06-12 Pedro Alves <palves@redhat.com>
5392 Alan Hayward <alan.hayward@arm.com>
5393
5394 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5395 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5396 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5397 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5398 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5399
5400 2017-06-12 Pedro Alves <palves@redhat.com>
5401
5402 * dwarf2read.c (mapped_symtab::data): Now a vector of
5403 symtab_index_entry instead of vector of
5404 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5405 whether an element's name is NULL instead of checking whether the
5406 element itself is NULL.
5407 (find_slot): Change return type. Adjust.
5408 (hash_expand, , add_index_entry, uniquify_cu_indices)
5409 (write_hash_table): Adjust.
5410
5411 2017-06-12 Pedro Alves <palves@redhat.com>
5412
5413 * dwarf2read.c (recursively_count_psymbols): New function.
5414 (write_psymtabs_to_index): Call it to compute number of psyms and
5415 pass estimate size of psyms_seen to unordered_set's ctor.
5416
5417 2017-06-12 Pedro Alves <palves@redhat.com>
5418
5419 * dwarf2read.c (write_hash_table): Check if key already exists
5420 before emplacing.
5421
5422 2017-06-12 Pedro Alves <palves@redhat.com>
5423
5424 * dwarf2read.c (data_buf::append_space): Rename to...
5425 (data_buf::grow): ... this, and make private. Adjust all callers.
5426 (data_buf::append_uint): New method.
5427 (add_address_entry, write_one_signatured_type)
5428 (write_psymtabs_to_index): Use it.
5429
5430 2017-06-12 Pedro Alves <palves@redhat.com>
5431
5432 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5433 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5434 (data_buf::file_write): Call ::fwrite directly.
5435
5436 2017-06-12 Pedro Alves <palves@redhat.com>
5437
5438 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5439 std::vector::erase.
5440
5441 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5442
5443 Code cleanup: C++ify .gdb_index producer.
5444 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5445 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5446 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5447 (create_strtab, add_string): Remove.
5448 (file_write, data_buf): New.
5449 (struct symtab_index_entry): Use std::vector for cu_indices.
5450 (struct mapped_symtab): Use std::vector for data.
5451 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5452 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5453 Remove.
5454 (find_slot): Change return type. Update it to the new data structures.
5455 (hash_expand, add_index_entry): Update it to the new data structures.
5456 (offset_type_compare): Remove.
5457 (uniquify_cu_indices): Update it to the new data structures.
5458 (c_str_view, c_str_view_hasher, vector_hasher): New.
5459 (add_indices_to_cpool): Remove.
5460 (write_hash_table): Update it to the new data structures.
5461 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5462 (eq_psymtab_cu_index): Remove.
5463 (psym_index_map): New typedef.
5464 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5465 reference and std::unordered_map for cu_index_htab.
5466 (add_address_entry, add_address_entry_worker, write_address_map)
5467 (write_psymbols): Update it to the new data structures.
5468 (write_obstack): Remove.
5469 (struct signatured_type_index_data): Change types_list to a data_buf
5470 reference and psyms_seen to a std::unordered_set reference.
5471 (write_one_signatured_type, recursively_write_psymbols)
5472 (write_psymtabs_to_index): Update it to the new data structures.
5473
5474 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5475
5476 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5477 separate-debug-file commands.
5478 * symfile.h (separate_debug_file_debug): New global.
5479 * symfile.c (separate_debug_file_debug): New global.
5480 (separate_debug_file_exists, find_separate_debug_file): Add
5481 debug output.
5482 (_initialize_symfile): Add "set debug separate-debug-file"
5483 command.
5484 * build-id.c (build_id_to_debug_bfd,
5485 find_separate_debug_file_by_buildid): Add debug output.
5486
5487 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * gdbarch.sh (displaced_step_free_closure): Remove.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5492 displaced_step_free_closure.
5493 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5494 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5495 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5496 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5497 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5498 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5499 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5500 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5501 * infrun.c (displaced_step_clear): Call xfree instead of
5502 gdbarch_displaced_step_free_closure.
5503
5504 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5505
5506 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5507 NULL".
5508
5509 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5510
5511 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5512 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5513 (mn10300_push_dummy_call): Likewise.
5514
5515 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5516
5517 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5518
5519 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5520
5521 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5522
5523 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5524
5525 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5526 able to start inferiors using a shell.
5527 (New remote packets): Announce new packet "QStartupWithShell".
5528 * remote.c: Add PACKET_QStartupWithShell.
5529 (extended_remote_create_inferior): Handle new
5530 PACKET_QStartupWithShell.
5531 (remote_protocol_features) <QStartupWithShell>: New entry for
5532 PACKET_QStartupWithShell.
5533 (_initialize_remote): Call "add_packet_config_cmd" for
5534 QStartupShell.
5535
5536 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5537 Pedro Alves <palves@redhat.com>
5538
5539 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5540 and "nat/fork-inferior.h".
5541 * common/common-inferior.h: New file, with contents from
5542 "gdb/inferior.h".
5543 * commom/common-utils.c: Include "common-utils.h".
5544 (stringify_argv): New function.
5545 * common/common-utils.h (stringify_argv): New prototype.
5546 * configure.nat: Add "fork-inferior.o" as a dependency for
5547 "*linux*", "fbsd*" and "nbsd*" hosts.
5548 * corefile.c (get_exec_file): Update comment.
5549 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5550 instead of "startup_inferior".
5551 (darwin_create_inferior): Call "add_thread_silent" after
5552 "fork_inferior".
5553 * fork-child.c: Cleanup unnecessary includes.
5554 (SHELL_FILE): Move to "common/common-fork-child.c".
5555 (environ): Likewise.
5556 (exec_wrapper): Initialize.
5557 (get_exec_wrapper): New function.
5558 (breakup_args): Move to "common/common-fork-child.c"; rename to
5559 "breakup_args_for_exec".
5560 (escape_bang_in_quoted_argument): Move to
5561 "common/common-fork-child.c".
5562 (saved_ui): New variable.
5563 (prefork_hook): New function.
5564 (postfork_hook): Likewise.
5565 (postfork_child_hook): Likewise.
5566 (gdb_startup_inferior): Likewise.
5567 (fork_inferior): Move to "common/common-fork-child.c". Update
5568 function to support gdbserver.
5569 (startup_inferior): Likewise.
5570 * gdbcore.h (get_exec_file): Remove declaration.
5571 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5572 instead of "startup_inferior". Call "add_thread_silent" after
5573 "fork_inferior".
5574 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5575 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5576 instead of "startup_inferior". Call "add_thread_silent" after
5577 "fork_inferior".
5578 * inferior.h: Include "common-inferior.h".
5579 (trace_start_error): Move to "common/common-utils.h".
5580 (trace_start_error_with_name): Likewise.
5581 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5582 (startup_inferior): Likewise.
5583 (gdb_startup_inferior): New prototype.
5584 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5585 * nat/fork-inferior.h: New file.
5586 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5587 instead of "startup_inferior". Call "add_thread_silent" after
5588 "fork_inferior".
5589 * target.h (target_terminal_init): Move prototype to
5590 "target/target.h".
5591 (target_terminal_inferior): Likewise.
5592 (target_terminal_ours): Likewise.
5593 * target/target.h (target_terminal_init): New prototype, moved
5594 from "target.h".
5595 (target_terminal_inferior): Likewise.
5596 (target_terminal_ours): Likewise.
5597 * utils.c (gdb_flush_out_err): New function.
5598
5599 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5600
5601 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5602 * common/common-gdbthread.h: New file, with parts from
5603 "gdb/gdbthread.h".
5604 * gdbthread.h: Include "common-gdbthread.h".
5605 (switch_to_thread): Moved to "common/common-gdbthread.h".
5606
5607 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5608
5609 * Makefile.in (SFILES): Add "common/job-control.c".
5610 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5611 (COMMON_OBS): Add "job-control.o".
5612 * common/job-control.c: New file, with contents from
5613 "gdb/inflow.c".
5614 * common/job-control.h: New file, with contents from "terminal.h".
5615 * fork-child.c: Include "job-control.h".
5616 * inflow.c: Include "job-control.h".
5617 (gdb_setpgid): Move to "common/common-inflow.c".
5618 (_initialize_inflow): Move setting of "job_control" to
5619 "handle_job_control".
5620 * terminal.h (job_control): Moved to "common/common-terminal.h".
5621 (gdb_setpgid): Likewise.
5622 * top.c: Include "job_control.h".
5623 * utils.c: Likewise.
5624 (job_control): Moved to "job-control.c".
5625
5626 2017-06-07 Pedro Alves <palves@redhat.com>
5627
5628 * Makefile.in (SFILES): Add gdb_regex.c.
5629 (COMMON_OBS): Add gdb_regex.o.
5630 * ada-lang.c (ada_add_standard_exceptions)
5631 (ada_add_exceptions_from_frame, name_matches_regex)
5632 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5633 parameter type to compiled_regex. Adjust.
5634 (ada_exceptions_list): Use compiled_regex.
5635 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5636 std::unique_ptr<compiled_regex>.
5637 (exception_catchpoint::~exception_catchpoint): Remove regfree
5638 call.
5639 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5640 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5641 * breakpoint.c (solib_catchpoint::compiled): Now a
5642 std::unique_ptr<compiled_regex>.
5643 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5644 (check_status_catch_solib): Adjust to use compiled_regex.
5645 (add_solib_catchpoint): Adjust to use compiled_regex.
5646 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5647 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5648 compiled_regex reference. Adjust to use it.
5649 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5650 declaration. Include "gdb_regex.h".
5651 (apropos_cmd): Change regex parameter to compiled_regex reference.
5652 * gdb_regex.c: New file.
5653 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5654 declarations.
5655 (class compiled_regex): New.
5656 * linux-tdep.c: Include "common/gdb_optional.h".
5657 (struct mapping_regexes): New, factored out from
5658 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5659 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5660 gdb::optional and remove cleanups. Adjust to compiled_regex.
5661 * probe.c: Include "common/gdb_optional.h".
5662 (collect_probes): Use compiled_regex and gdb::optional and remove
5663 cleanups.
5664 * skip.c: Include "common/gdb_optional.h".
5665 (skiplist_entry::compiled_function_regexp): Now a
5666 gdb::optional<compiled_regex>.
5667 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5668 (free_skiplist_entry): Remove regfree call.
5669 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5670 compiled_regex and gdb::optional.
5671 * symtab.c: Include "common/gdb_optional.h".
5672 (search_symbols): Use compiled_regex and gdb::optional.
5673 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5674 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5675 to gdb_regex.c.
5676
5677 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5678
5679 * regcache.c (regcache::save): Avoid buffer use.
5680 (regcache::dump): Likewise.
5681
5682 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5683
5684 * sh-tdep.c (sh_pseudo_register_read): Remove
5685 MAX_REGISTER_SIZE.
5686 (sh_pseudo_register_write): Likewise.
5687 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5688 (sh64_pseudo_register_write): Likewise
5689
5690 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5691
5692 * aarch64-tdep.c (aarch64_store_return_value): Use
5693 V_REGISTER_SIZE.
5694 (aarch64_pseudo_read_value): Likewise.
5695 (aarch64_pseudo_write): Likewise.
5696
5697 2017-06-06 Yao Qi <yao.qi@linaro.org>
5698
5699 * regformats/regdef.h (set_register_cache): Remove the
5700 declaration.
5701
5702 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5703
5704 * frame.c (frame_unwind_register_signed): Use
5705 frame_unwind_register_value.
5706
5707 2017-06-06 Pedro Alves <palves@redhat.com>
5708
5709 PR breakpoints/21553
5710 * breakpoint.c (create_breakpoints_sal_default)
5711 (init_breakpoint_sal, create_breakpoint_sal): Use
5712 gdb::unique_xmalloc_ptr for string parameters.
5713 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5714 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5715 (base_breakpoint_create_breakpoints_sal)
5716 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5717 (strace_marker_create_breakpoints_sal)
5718 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5719 string parameters.
5720 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5721 gdb::unique_xmalloc_ptr for string parameters.
5722 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5723 parameters.
5724
5725 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5726
5727 * alpha-tdep.c (alpha_register_to_value): Use
5728 get_frame_register_value.
5729 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5730
5731 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5732
5733 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5734 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5735 (ia64_value_to_register): Likewise.
5736 (ia64_extract_return_value): Likewise.
5737 (ia64_store_return_value): Likewise.
5738 (ia64_push_dummy_call): Likewise.
5739
5740 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5741
5742 GDB 8.0 released.
5743
5744 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5745
5746 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5747
5748 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5751 parameter.
5752 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5753
5754 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5755
5756 * event-loop.c (poll_timers): Unallocate timer using delete
5757 instead of xfree.
5758
5759 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5760
5761 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5762 (struct breakpoint) <~breakpoint>: New.
5763 (struct watchpoint): Inherit from breakpoint.
5764 <~watchpoint>: New.
5765 <base>: Remove.
5766 (struct tracepoint): Inherit from breakpoint.
5767 <base>: Remove.
5768 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5769 (struct longjmp_breakpoint): Inherit from breakpoint.
5770 <~longjmp_breakpoint>: New.
5771 <base>: Remove.
5772 (new_breakpoint_from_type): Remove casts.
5773 (watchpoint_in_thread_scope): Remove reference to base field.
5774 (watchpoint_del_at_next_stop): Likewise.
5775 (update_watchpoint): Likewise.
5776 (watchpoint_check): Likewise.
5777 (bpstat_check_watchpoint): Likewise.
5778 (set_longjmp_breakpoint): Likewise.
5779 (struct fork_catchpoint): Inherit from breakpoint.
5780 <base>: Remove.
5781 (struct solib_catchpoint): Inherit from breakpoint.
5782 <~solib_catchpoint>: New.
5783 <base>: Remove.
5784 (dtor_catch_solib): Change to ...
5785 (solib_catchpoint::~solib_catchpoint): ... this.
5786 (breakpoint_hit_catch_solib): Remove reference to base field.
5787 (add_solib_catchpoint): Likewise.
5788 (create_fork_vfork_event_catchpoint): Likewise.
5789 (struct exec_catchpoint): Inherit from breakpoint.
5790 <~exec_catchpoint>: New.
5791 <base>: Remove.
5792 (dtor_catch_exec): Change to ...
5793 (exec_catchpoint::~exec_catchpoint): ... this.
5794 (dtor_watchpoint): Change to ...
5795 (watchpoint::~watchpoint): ... this.
5796 (watch_command_1): Remove reference to base field.
5797 (catch_exec_command_1): Likewise.
5798 (base_breakpoint_dtor): Change to ...
5799 (breakpoint::~breakpoint): ... this.
5800 (base_breakpoint_ops): Remove dtor field value.
5801 (longjmp_bkpt_dtor): Change to ...
5802 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5803 (strace_marker_create_breakpoints_sal): Remove reference to base
5804 field.
5805 (delete_breakpoint): Don't manually call breakpoint destructor.
5806 (create_tracepoint_from_upload): Remove reference to base field.
5807 (trace_pass_set_count): Likewise.
5808 (initialize_breakpoint_ops): Don't initialize
5809 momentary_breakpoint_ops, don't set dtors.
5810 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5811 <~ada_catchpoint>: New.
5812 <base>: Remove.
5813 (create_excep_cond_exprs): Remove reference to base field.
5814 (dtor_exception): Change to ...
5815 (ada_catchpoint::~ada_catchpoint): ... this.
5816 (dtor_catch_exception): Remove.
5817 (dtor_catch_exception_unhandled): Remove.
5818 (dtor_catch_assert): Remove.
5819 (create_ada_exception_catchpoint): Remove reference to base
5820 field.
5821 (initialize_ada_catchpoint_ops): Don't set dtors.
5822 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5823 breakpoint.
5824 <~signal_catchpoint>: New.
5825 <base>: Remove.
5826 (signal_catchpoint_dtor): Change to ...
5827 (signal_catchpoint::~signal_catchpoint): ... this.
5828 (create_signal_catchpoint): Remove reference to base field.
5829 (initialize_signal_catchpoint_ops): Don't set dtor.
5830 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5831 from breakpoint.
5832 <~syscall_catchpoint>: New.
5833 <base>: Remove.
5834 (dtor_catch_syscall): Change to ...
5835 (syscall_catchpoint::~syscall_catchpoint): ... this.
5836 (create_syscall_event_catchpoint): Remove reference to base
5837 field.
5838 (initialize_syscall_catchpoint_ops): Don't set dtor.
5839 * break-catch-throw.c (struct exception_catchpoint): Inherit
5840 from breakpoint.
5841 <~exception_catchpoint>: New.
5842 <base>: Remove.
5843 (dtor_exception_catchpoint): Change to ...
5844 (exception_catchpoint::~exception_catchpoint): ... this.
5845 (handle_gnu_v3_exceptions): Remove reference to base field.
5846 (initialize_throw_catchpoint_ops): Don't set dtor.
5847 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5848 field.
5849 * remote.c (remote_get_tracepoint_status): Likewise.
5850 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5851 * tracefile.c (tracefile_fetch_registers): Likewise.
5852 * tracepoint.c (actions_command): Likewise.
5853 (validate_actionline): Likewise.
5854 (tfind_1): Likewise.
5855 (get_traceframe_location): Likewise.
5856 (find_matching_tracepoint_location): Likewise.
5857 (parse_tracepoint_status): Likewise.
5858 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5859
5860 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * breakpoint.c (struct longjmp_breakpoint): New struct.
5863 (is_tracepoint_type): Change return type to bool.
5864 (is_longjmp_type): New function.
5865 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5866 (set_raw_breakpoint_without_location): Use
5867 new_breakpoint_from_type.
5868 (set_raw_breakpoint): Likewise.
5869
5870 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * breakpoint.c (new_breakpoint_from_type): New function.
5873 (create_breakpoint_sal): Use new_breakpoint_from_type and
5874 unique_ptr.
5875 (create_breakpoint): Likewise.
5876
5877 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5878
5879 * memattr.c (mem_info_command): Rename to ...
5880 (info_mem_command): ... this.
5881 (mem_enable_command): Rename to ...
5882 (enable_mem_command): ... this.
5883 (mem_disable_command): Rename to ...
5884 (disable_mem_command): ... this.
5885 (mem_delete_command): Rename to ...
5886 (delete_mem_command): ... this.
5887 (_initialize_mem): Adjust function names.
5888
5889 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5890
5891 * btrace.c (handle_pt_insn_events): New.
5892 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5893 STATUS. Split into this and ...
5894 (handle_pt_insn_event_flags): ... this.
5895
5896 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5897
5898 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5899 and struct pt_insn.resynced.
5900 * configure: Regenerated.
5901 * config.in: Regenerated.
5902
5903 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5904
5905 * btrace.c (ftrace_find_call_by_number): New function.
5906 (ftrace_new_function): Store objects, not pointers.
5907 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5908 ftrace_new_gap, ftrace_update_function,
5909 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5910 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5911 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5912 btrace_ends_with_single_insn, btrace_call_get): Account for
5913 btrace_thread_info::functions now storing objects.
5914 * btrace.h (struct btrace_thread_info): Add constructor.
5915 (struct btrace_thread_info) <functions>: Make std::vector.
5916 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5917 Initialize with default values.
5918 * record-btrace.c (record_btrace_frame_sniffer): Account for
5919 btrace_thread_info::functions now storing objects.
5920
5921 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5922
5923 * btrace.c: Remove typedef bfun_s.
5924 (ftrace_new_gap): Directly add gaps to the list of gaps.
5925 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5926 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5927 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5928 instead of gdb VEC.
5929
5930 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5931
5932 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5933 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5934 with btrace_thread_info::next_segment and
5935 btrace_thread_info::prev_segment.
5936 * btrace.h: Remove struct btrace_func_link.
5937 (struct btrace_function): Replace pair of function segment pointers
5938 with pair of indices.
5939 * python/py-record-btrace.c (btpy_call_prev_sibling,
5940 btpy_call_next_sibling): Replace references to
5941 btrace_thread_info::segment with btrace_thread_info::next_segment and
5942 btrace_thread_info::prev_segment.
5943 * record-btrace.c (record_btrace_frame_this_id): Use
5944 btrace_find_call_by_number.
5945
5946 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5947
5948 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5949 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5950 btrace_insn_next, btrace_insn_prev): Remove references to
5951 btrace_thread_info::flow.
5952 * btrace.h (struct btrace_function): Remove FLOW.
5953
5954 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5955
5956 * btrace.c (ftrace_find_call_by_number): New function.
5957 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5958 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5959 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5960 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5961 index.
5962 * btrace.h (struct btrace_function): Turn UP into an index.
5963 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5964 as an index.
5965 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5966 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5967 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5968
5969 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5970
5971 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5972 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5973 ftrace_update_function, ftrace_compute_global_level_offset,
5974 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5975 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5976 btrace_insn_end, btrace_is_empty): Remove references to
5977 btrace_thread_info::begin and btrace_thread_info::end.
5978 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5979 (struct btrace_thread_info) <functions>: Adjust comment.
5980 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5981 btrace_thread_info::begin.
5982
5983 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5984
5985 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5986 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5987 ftrace_update_function): Remove arguments that implicitly were always
5988 BTINFO->END.
5989 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
5990 Don't pass BTINFO->END.
5991
5992 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5993
5994 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
5995 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
5996 btrace_find_insn_by_number): Replace function segment pointer with
5997 index.
5998 (btrace_insn_cmp): Simplify.
5999 * btrace.h: (struct btrace_insn_iterator) Rename index to
6000 insn_index. Replace function segment pointer with index into function
6001 segment vector.
6002 * record-btrace.c (record_btrace_call_history): Replace function
6003 segment pointer use with index.
6004 (record_btrace_frame_sniffer): Retrieve function call segment through
6005 vector.
6006 (record_btrace_set_replay): Remove defunc't safety check.
6007
6008 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6009
6010 * btrace.c (btrace_ends_with_single_insn): New function.
6011 (btrace_call_get, btrace_call_number, btrace_call_begin,
6012 btrace_call_end, btrace_call_next, btrace_call_prev,
6013 btrace_find_call_by_number): Use index into call segment vector
6014 instead of pointer.
6015 (btrace_call_cmp): Simplify.
6016 * btrace.h (struct btrace_call_iterator): Replace function call segment
6017 pointer with index into vector.
6018 * record-btrace.c (record_btrace_call_history): Use index instead of
6019 pointer.
6020
6021 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6022
6023 * btrace.c (btrace_insn_begin, btrace_insn_end,
6024 btrace_find_insn_by_number): Add btinfo to iterator.
6025 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6026
6027 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6028
6029 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6030 and save pointers directly.
6031 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6032 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6033 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6034 changed signature of functions.
6035 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6036 (btrace_fetch): Remove code that adds btrace_function pointers to
6037 vector of btrace_functions.
6038 (btrace_clear): Simplify freeing vector of btrace_functions.
6039
6040 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6041
6042 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6043 Replace VEC_* with std::vector functions.
6044 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6045 (struct btrace_thread_info)<functions>: Change type to std::vector.
6046
6047 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6048
6049 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6050 "Removed targets and native configurations" up. Merge duplicate
6051 "New commands" sub-sections. Add "New options" sub-sections.
6052
6053 2017-05-26 Alan Hayward <alan.hayward@arm.com>
6054
6055 * defs.h (copy_integer_to_size): New declaration.
6056 * findvar.c (copy_integer_to_size): New function.
6057 (do_cint_test): New selftest function.
6058 (copy_integer_to_size_test): Likewise.
6059 (_initialize_findvar): Likewise.
6060 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6061 (mips_fbsd_collect_reg): Use raw_collect_integer.
6062 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6063 (mips64_fill_gregset): Use raw_collect_integer
6064 (mips64_fill_fpregset): Use raw_supply_integer.
6065 * regcache.c (regcache::raw_supply_integer): New function.
6066 (regcache::raw_collect_integer): Likewise.
6067 * regcache.h: (regcache::raw_supply_integer): New declaration.
6068 (regcache::raw_collect_integer): Likewise.
6069
6070 2017-05-24 Yao Qi <yao.qi@linaro.org>
6071
6072 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6073 (COMMON_OBS): Add gdbarch-selftests.o.
6074 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6075 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6076 * gdbarch-selftests.c: New file.
6077 * regcache.h (regcache) <~regcache>: Mark it virtual if
6078 GDB_SELF_TEST.
6079 <raw_write>: Likewise.
6080
6081 2017-05-24 Yao Qi <yao.qi@linaro.org>
6082
6083 * regcache.c (current_regcache): Change it to
6084 regcache::current_regcache.
6085 (regcache_observer_target_changed): Update.
6086 (regcache_thread_ptid_changed): Make it a regcache static
6087 method.
6088 (regcache_thread_ptid_changed): Update.
6089 (class regcache_access): New.
6090 (current_regcache_test): Update.
6091 (_initialize_regcache): Update.
6092 * regcache.h: Include forward_list.
6093 (regcache): Declare regcache_thread_ptid_changed and declare
6094 registers_changed_ptid as friend.
6095
6096 2017-05-24 Yao Qi <yao.qi@linaro.org>
6097
6098 * i387-tdep.c (i387_register_to_value): Use register_size
6099 instead of TYPE_LENGTH.
6100 * m68k-tdep.c (m68k_register_to_value): Likewise.
6101
6102 2017-05-24 Yao Qi <yao.qi@linaro.org>
6103
6104 * i387-tdep.c (i387_convert_register_p): Return false if type
6105 code isn't TYPE_CODE_FLT.
6106
6107 2017-05-24 Yao Qi <yao.qi@linaro.org>
6108
6109 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6110 length is 4.
6111 (alpha_register_to_value): Remove type length check.
6112 (alpha_value_to_register): Likewise.
6113
6114 2017-05-24 Yao Qi <yao.qi@linaro.org>
6115
6116 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6117 TYPE_CODE_FLT.
6118
6119 2017-05-24 Yao Qi <yao.qi@linaro.org>
6120
6121 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6122 TYPE_CODE_FLT or not.
6123
6124 2017-05-24 Yao Qi <yao.qi@linaro.org>
6125
6126 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6127 * avr-tdep.c (avr_gdbarch_init): Likewise.
6128 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6129 * cris-tdep.c (cris_gdbarch_init): Likewise.
6130 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6131 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6132 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6134 * mep-tdep.c (mep_gdbarch_init): Likewise.
6135 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6136 * mips-tdep.c (mips_gdbarch_init): Likewise.
6137 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6138 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6139 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6140 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6141 * v850-tdep.c (v850_gdbarch_init): Likewise.
6142
6143 2017-05-24 Yao Qi <yao.qi@linaro.org>
6144
6145 * selftest-arch.c (tests_with_arch): Call registers_changed
6146 and reinit_frame_cache.
6147 * selftest.c (run_self_tests): Likewise.
6148
6149 2017-05-24 Yao Qi <yao.qi@linaro.org>
6150
6151 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6152 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6153
6154 2017-05-24 Yao Qi <yao.qi@linaro.org>
6155
6156 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6157 set_gdbarch_print_insn.
6158
6159 2017-05-24 Yao Qi <yao.qi@linaro.org>
6160
6161 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6162 set_gdbarch_print_insn.
6163
6164 2017-05-24 Yao Qi <yao.qi@linaro.org>
6165
6166 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6167 set_gdbarch_print_insn.
6168 * arc-tdep.c (arc_gdbarch_init): Likewise.
6169 * arch-utils.c: include dis-asm.h.
6170 (default_print_insn): New function.
6171 * arch-utils.h (default_print_insn): Declare.
6172 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6173 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6174 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6175 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6176 * frv-tdep.c (frv_gdbarch_init): Likewise.
6177 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6178 * gdbarch.sh (print_insn): Use default_print_insn.
6179 * gdbarch.c: Regenerated.
6180 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6181 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6182 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6183 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6184 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6185 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6186 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6187 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6188 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6189 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6190 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6191 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6192 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6193 * mt-tdep.c (mt_gdbarch_init): Likewise.
6194 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6195 * nios2-tdep.c (nios2_print_insn): Remove.
6196 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6197 * rx-tdep.c (rx_gdbarch_init): Likewise.
6198 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6199 * score-tdep.c (score_print_insn): Remove.
6200 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6201 * sh-tdep.c (sh_gdbarch_init): Likewise.
6202 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6203 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6204 * tic6x-tdep.c (tic6x_print_insn): Remove.
6205 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6206 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6207 * v850-tdep.c (v850_gdbarch_init): Likewise.
6208 * vax-tdep.c (vax_gdbarch_init): Likewise.
6209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6210 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6211
6212 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6213
6214 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6215 (MIPS_FP0_REGNUM): Remove.
6216 (MIPS_FSR_REGNUM): Remove.
6217 (mips_fbsd_supply_fpregs): Use mips_regnum.
6218 (mips_fbsd_supply_gregs): Likewise.
6219 (mips_fbsd_collect_fpregs): Likewise.
6220 (mips_fbsd_collect_gregs): Likewise.
6221
6222 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6223
6224 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6225 (getpfpregs_supplies): New function.
6226 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6227 getfpregs_supplies.
6228 (mips_fbsd_store_inferior_registers): Likewise.
6229
6230 2017-05-22 Pedro Alves <palves@redhat.com>
6231
6232 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6233 maintainer.
6234
6235 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6236
6237 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6238 (store_register): Likewise.
6239 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6240 (get_decimal_float_return_value): Likewise.
6241 (do_ppc_sysv_return_value): Likewise.
6242 (ppc64_sysv_abi_push_integer): Likewise.
6243 (ppc64_sysv_abi_push_freg): Likewise.
6244 (ppc64_sysv_abi_return_value_base): Likewise.
6245 (ppc64_sysv_abi_return_value): Likewise.
6246 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6247 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6248 * rs6000-nat.c: Likewise.
6249 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6250 (rs6000_value_to_register): Likewise.
6251 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6252
6253 2017-05-21 Tom Tromey <tom@tromey.com>
6254
6255 PR rust/21466:
6256 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6257 arrays as "[T]", not "[T; ]".
6258
6259 2017-05-19 Tom Tromey <tom@tromey.com>
6260
6261 PR rust/21484:
6262 * rust-lang.c (exp_descriptor_rust): New function.
6263 (rust_language_defn): Use it.
6264 * p-lang.c (pascal_language_defn): Update.
6265 * opencl-lang.c (opencl_language_defn): Update.
6266 * objc-lang.c (objc_language_defn): Update.
6267 * m2-lang.c (m2_language_defn): Update.
6268 * language.h (struct language_defn)
6269 <la_watch_location_expression>: New member.
6270 * language.c (unknown_language_defn, auto_language_defn)
6271 (local_language_defn): Update.
6272 * go-lang.c (go_language_defn): Update.
6273 * f-lang.c (f_language_defn): Update.
6274 * d-lang.c (d_language_defn): Update.
6275 * c-lang.h (c_watch_location_expression): Declare.
6276 * c-lang.c (c_watch_location_expression): New function.
6277 (c_language_defn, cplus_language_defn, asm_language_defn)
6278 (minimal_language_defn): Use it.
6279 * breakpoint.c (watch_command_1): Call
6280 la_watch_location_expression.
6281 * ada-lang.c (ada_language_defn): Update.
6282
6283 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6284
6285 PR tui/21482
6286 * gdb_curses.h (NOMACROS): Define.
6287 (NCURSES_NOMACROS): Define.
6288
6289 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6290
6291 PR tui/21482
6292 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6293 arg to char *.
6294 * tui/tui-wingeneral.c (box_win): Likewise.
6295 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6296 (tui_show_source_line): Likewise.
6297 (tui_show_exec_info_content): Likewise.
6298
6299 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6300
6301 * sparc-tdep.c (sparc_structure_return_p)
6302 (sparc_arg_on_registers_p): New functions.
6303 (sparc32_store_arguments): Use them.
6304 * sparc64-tdep.c (sparc64_16_byte_align_p)
6305 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6306 Handle TYPE_CODE_ARRAY.
6307
6308 2017-05-17 Yao Qi <yao.qi@linaro.org>
6309
6310 * cli/cli-decode.c (add_alias_cmd): New function.
6311 * command.h (add_alias_cmd): Declare.
6312 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6313 instead call add_alias_cmd.
6314
6315 2017-05-17 Pedro Alves <palves@redhat.com>
6316
6317 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6318 (nat_makefile_frag): ... this. All references updated.
6319 * configure.ac: Likewise.
6320 * configure.nat: Likewise. Enhance comments.
6321 * configure: Regenerate.
6322
6323 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6324
6325 * procfs.c (procfs_create_inferior): Change prototype to match
6326 definition.
6327
6328 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6329
6330 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6331 C++ compiler warning.
6332
6333 2017-05-12 Tom Tromey <tom@tromey.com>
6334
6335 PR rust/21483:
6336 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6337 recurse, just call value_struct_elt directly.
6338
6339 2017-05-12 Tom Tromey <tom@tromey.com>
6340
6341 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6342 OP_RUST_ARRAY>: Fix.
6343
6344 2017-05-12 Tom Tromey <tom@tromey.com>
6345
6346 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6347
6348 2017-05-09 Yao Qi <yao.qi@linaro.org>
6349
6350 * regcache.c: Include <forward_list>.
6351 (struct regcache_list): Remove.
6352 (current_regcache): Update.
6353 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6354 (regcache_thread_ptid_changed): Likewise.
6355 (registers_changed_ptid): Likewise.
6356 (current_regcache_size): Likewise.
6357
6358 2017-05-09 Yao Qi <yao.qi@linaro.org>
6359
6360 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6361 (current_regcache_size): New function.
6362 (current_regcache_test): New function.
6363 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6364
6365 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6366
6367 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6368 (print_gp_register_row): Use get_frame_register_value.
6369
6370 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6371
6372 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6373 (mips_supply_fpregset): Likewise.
6374 (mips64_supply_gregset): Likewise.
6375
6376 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6377
6378 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6379 regcache->raw_supply_zeroed.
6380
6381 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6382
6383 * configure.nat: Rearrange 'case' statements to match
6384 host before cpu.
6385
6386 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6387
6388 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6389 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6390 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6391 "@nat_extra_makefile_frag@".
6392 (Makefile): Remove dependency on "@frags@".
6393 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6394 (data-directory/Makefile): Likewise.
6395 * config/aarch64/linux.mh: Deleted; moved contents to
6396 "gdb/configure.nat".
6397 * config/alpha/alpha-linux.mh: Likewise.
6398 * config/alpha/nbsd.mh: Likewise.
6399 * config/arm/linux.mh: Likewise.
6400 * config/arm/nbsdelf.mh: Likewise.
6401 * config/i386/cygwin.mh: Likewise.
6402 * config/i386/cygwin64.mh: Likewise.
6403 * config/i386/darwin.mh: Likewise.
6404 * config/i386/fbsd.mh: Likewise.
6405 * config/i386/fbsd64.mh: Likewise.
6406 * config/i386/go32.mh: Likewise.
6407 * config/i386/i386gnu.mh: Likewise.
6408 * config/i386/i386sol2.mh: Likewise.
6409 * config/i386/linux.mh: Likewise.
6410 * config/i386/linux64.mh: Likewise.
6411 * config/i386/mingw.mh: Likewise.
6412 * config/i386/mingw64.mh: Likewise.
6413 * config/i386/nbsd64.mh: Likewise.
6414 * config/i386/nbsdelf.mh: Likewise.
6415 * config/i386/nto.mh: Likewise.
6416 * config/i386/obsd.mh: Likewise.
6417 * config/i386/obsd64.mh: Likewise.
6418 * config/i386/sol2-64.mh: Likewise.
6419 * config/ia64/linux.mh: Likewise.
6420 * config/m32r/linux.mh: Likewise.
6421 * config/m68k/linux.mh: Likewise.
6422 * config/m68k/nbsdelf.mh: Likewise.
6423 * config/m68k/obsd.mh: Likewise.
6424 * config/m88k/obsd.mh: Likewise.
6425 * config/mips/fbsd.mh: Likewise.
6426 * config/mips/linux.mh: Likewise.
6427 * config/mips/nbsd.mh: Likewise.
6428 * config/mips/obsd64.mh: Likewise.
6429 * config/pa/linux.mh: Likewise.
6430 * config/pa/nbsd.mh: Likewise.
6431 * config/pa/obsd.mh: Likewise.
6432 * config/powerpc/aix.mh: Likewise.
6433 * config/powerpc/fbsd.mh: Likewise.
6434 * config/powerpc/linux.mh: Likewise.
6435 * config/powerpc/nbsd.mh: Likewise.
6436 * config/powerpc/obsd.mh: Likewise.
6437 * config/powerpc/ppc64-linux.mh: Likewise.
6438 * config/powerpc/spu-linux.mh: Likewise.
6439 * config/s390/linux.mh: Likewise.
6440 * config/sh/nbsd.mh: Likewise.
6441 * config/sparc/fbsd.mh: Likewise.
6442 * config/sparc/linux.mh: Likewise.
6443 * config/sparc/linux64.mh: Likewise.
6444 * config/sparc/nbsd64.mh: Likewise.
6445 * config/sparc/nbsdelf.mh: Likewise.
6446 * config/sparc/obsd64.mh: Likewise.
6447 * config/sparc/sol2.mh: Likewise.
6448 * config/tilegx/linux.mh: Likewise.
6449 * config/vax/nbsdelf.mh: Likewise.
6450 * config/vax/obsd.mh: Likewise.
6451 * config/xtensa/linux.mh: Likewise.
6452 * config/i386/i386gnu.mn: New file, with excerpts from
6453 "config/i386/i386gnu.mh".
6454 * configure: Regenerate.
6455 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6456 *.mh files under "gdb/config".
6457 * configure.nat: New file, with contents from the
6458 "gdb/config/*/*.mh" files.
6459
6460 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6461
6462 * btrace.c (btrace_clear): Free insn vector.
6463
6464 2017-05-05 Pedro Alves <palves@redhat.com>
6465
6466 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6467 * configure: Regenerate.
6468
6469 2017-05-04 Pedro Alves <palves@redhat.com>
6470
6471 * Makefile.in (SFILES): Add progspace-and-thread.c.
6472 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6473 (COMMON_OBS): Add progspace-and-thread.o.
6474 * breakpoint.c: Include "progspace-and-thread.h".
6475 (update_inserted_breakpoint_locations)
6476 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6477 Use scoped_restore_current_pspace_and_thread.
6478 (create_std_terminate_master_breakpoint): Use
6479 scoped_restore_current_program_space.
6480 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6481 (print_breakpoint_location): Use
6482 scoped_restore_current_program_space.
6483 (bp_loc_is_permanent): Use
6484 scoped_restore_current_pspace_and_thread.
6485 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6486 (download_tracepoint_locations): Use
6487 scoped_restore_current_pspace_and_thread.
6488 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6489 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6490 (enum step_over_calls_kind): Moved from inferior.h.
6491 (class scoped_restore_current_thread): New class.
6492 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6493 declaration.
6494 (scoped_restore_current_thread): New class.
6495 * infcmd.c: Include "common/gdb_optional.h".
6496 (continue_1, proceed_after_attach): Use
6497 scoped_restore_current_thread.
6498 (notice_new_inferior): Use scoped_restore_current_thread.
6499 * inferior.c: Include "progspace-and-thread.h".
6500 (restore_inferior, save_current_inferior): Delete.
6501 (add_inferior_command, clone_inferior_command): Use
6502 scoped_restore_current_pspace_and_thread.
6503 * inferior.h (scoped_restore_current_inferior): New class.
6504 * infrun.c: Include "progspace-and-thread.h" and
6505 "common/gdb_optional.h".
6506 (follow_fork_inferior): Use
6507 scoped_restore_current_pspace_and_thread.
6508 (scoped_restore_exited_inferior): New class.
6509 (handle_vfork_child_exec_or_exit): Use
6510 scoped_restore_exited_inferior,
6511 scoped_restore_current_pspace_and_thread,
6512 scoped_restore_current_thread and scoped_restore.
6513 (fetch_inferior_event): Use scoped_restore_current_thread.
6514 * linespec.c (decode_line_full, decode_line_1): Use
6515 scoped_restore_current_program_space.
6516 * mi/mi-main.c: Include "progspace-and-thread.h".
6517 (exec_continue): Use scoped_restore_current_thread.
6518 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6519 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6520 * proc-service.c (ps_pglobal_lookup): Use
6521 scoped_restore_current_program_space.
6522 * progspace-and-thread.c: New file.
6523 * progspace-and-thread.h: New file.
6524 * progspace.c (release_program_space, clone_program_space): Use
6525 scoped_restore_current_program_space.
6526 (restore_program_space, save_current_program_space)
6527 (save_current_space_and_thread): Delete.
6528 (switch_to_program_space_and_thread): Moved to
6529 progspace-and-thread.c.
6530 * progspace.h (save_current_program_space)
6531 (save_current_space_and_thread): Delete declarations.
6532 (scoped_restore_current_program_space): New class.
6533 * remote.c (remote_btrace_maybe_reopen): Use
6534 scoped_restore_current_thread.
6535 * symtab.c: Include "progspace-and-thread.h".
6536 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6537 * thread.c (print_thread_info_1): Use
6538 scoped_restore_current_thread.
6539 (struct current_thread_cleanup): Delete.
6540 (do_restore_current_thread_cleanup)
6541 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6542 (scoped_restore_current_thread::~scoped_restore_current_thread):
6543 ... this new dtor.
6544 (make_cleanup_restore_current_thread): Rename/convert to ...
6545 (scoped_restore_current_thread::scoped_restore_current_thread):
6546 ... this new ctor.
6547 (thread_apply_all_command): Use scoped_restore_current_thread.
6548 (thread_apply_command): Use scoped_restore_current_thread.
6549 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6550 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6551
6552 2017-05-04 Pedro Alves <palves@redhat.com>
6553
6554 * thread.c (make_cleanup_restore_current_thread): Move
6555 find_thread_ptid call before the is_stopped call. Assert that the
6556 thread is found. Replace is_stopped call by checking the thread's
6557 state directly. Remove unnecessary NULL-thread check.
6558
6559 2017-05-04 Pedro Alves <palves@redhat.com>
6560
6561 * corelow.c (thread_section_name): New class.
6562 (get_core_register_section, get_core_siginfo): Use it.
6563
6564 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6565
6566 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6567 (get_core_register_section): Remove xfree of NULL pointer.
6568
6569 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6570
6571 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6572 * regcache.c (regcache::raw_supply_zeroed): New function.
6573 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6574
6575 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6576
6577 * gdbarch.sh: Remove commented out definition of
6578 TARGET_CHAR_BIT.
6579 * gdbarch.h: Re-generate.
6580
6581 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6582
6583 * configure: Regenerate.
6584
6585 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6586
6587 * solib-target.c (solib_target_relocate_section_addresses):
6588 Remove num_section_bases, num_bases, segment_bases variables.
6589
6590 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6593
6594 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6595
6596 * solib-target.c: Include <vector>
6597 (struct lm_info_target) <~lm_info_target>: Remove.
6598 <segment_bases, section_bases>: Change type to
6599 std::vector<CORE_ADDR>.
6600 (library_list_start_segment, library_list_start_section,
6601 library_list_end_library,
6602 solib_target_relocate_section_addresses): Adjust.
6603
6604 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * gdbarch.sh (software_single_step): Change return type to
6607 std::vector<CORE_ADDR>.
6608 * gdbarch.c, gdbarch.h: Re-generate.
6609 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6610 Adjust.
6611 (arm_deal_with_atomic_sequence_raw): Adjust.
6612 (thumb_get_next_pcs_raw): Adjust.
6613 (arm_get_next_pcs_raw): Adjust.
6614 (arm_get_next_pcs): Adjust.
6615 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6616 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6617 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6618 (alpha_software_single_step): Adjust.
6619 * alpha-tdep.h (alpha_software_single_step): Adjust.
6620 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6621 * arm-tdep.c (arm_software_single_step): Adjust.
6622 (arm_breakpoint_kind_from_current_state): Adjust.
6623 * arm-tdep.h (arm_software_single_step): Adjust.
6624 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6625 * cris-tdep.c (cris_software_single_step): Adjust.
6626 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6627 (micromips_deal_with_atomic_sequence): Adjust.
6628 (deal_with_atomic_sequence): Adjust.
6629 (mips_software_single_step): Adjust.
6630 * mips-tdep.h (mips_software_single_step): Adjust.
6631 * moxie-tdep.c (moxie_software_single_step): Adjust.
6632 * nios2-tdep.c (nios2_software_single_step): Adjust.
6633 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6634 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6635 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6636 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6637 * sparc-tdep.c (sparc_software_single_step): Adjust.
6638 * spu-tdep.c (spu_software_single_step): Adjust.
6639 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6640
6641 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6642
6643 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6644 * gdbarch.h: Re-generate.
6645
6646 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6647
6648 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6649 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6650 * python/py-instruction.c, python/py-instruction.h: New file.
6651 * python/py-record.c: Add py-instruction.h include.
6652 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6653 gdb.RecordInstruction.
6654 * python/python-internal.h: Add gdbpy_initialize_instruction
6655 declaration.
6656 * python/python.c (do_start_initialization): Add
6657 gdbpy_initialize_instruction.
6658
6659 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6660
6661 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6662 Remove.
6663 (btrace_func_from_recpy_func): New function.
6664 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6665 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6666 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6667 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6668 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6669 Also, use new helper functions.
6670 (btpy_list_item): Use new helper functions.
6671 (recpy_bt_function_call_history): Use new type name.
6672 (btpy_call_getset): Remove.
6673 (gdbpy_initialize_btrace): Remove code to initialize
6674 gdb.BtraceFunctionCall.
6675 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6676 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6677 recpy_bt_func_prev, recpy_bt_func_next): New export.
6678 * python/py-record.c (recpy_func_type): New static object.
6679 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6680 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6681 recpy_func_next): New function.
6682 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6683 (recpy_func_getset): New static object.
6684 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6685 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6686
6687 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6688
6689 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6690 (btpy_object, btpy_insn_type, btpy_new): Remove.
6691 (btpy_list_object): Use gdb.RecordInstruction type instead of
6692 gdb.BtraceInstruction type.
6693 (btrace_insn_from_recpy_insn): New function.
6694 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6695 btpy_new.
6696 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6697 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6698 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6699 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6700 instead of btpy_object.
6701 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6702 btpy_insn_data, btpy_insn_decode): Rename to ...
6703 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6704 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6705 recpy_bt_insn_decode): This. Also, use new helper functions.
6706 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6707 recpy_insn_type.
6708 (btpy_insn_getset): Remove.
6709 (gdbpy_initialize_btrace): Remove code to initialize
6710 gdb.BtraceInstruction. Use recpy_element_object.
6711 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6712 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6713 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6714 * python/py-record.c (recpy_insn_type): New static object.
6715 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6716 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6717 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6718 New function.
6719 (recpy_insn_getset): New static object.
6720 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6721 * python/py-record.h (recpy_element_object): New typedef.
6722 (recpy_insn_type, recpy_insn_new): New export.
6723
6724 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6725
6726 * py-record-btrace.c (btpy_insn_new): Removed.
6727 (btpy_insn_or_gap_new): New function.
6728 (btpy_insn_error): Removed.
6729 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6730 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6731 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6732 btpy_insn_or_gap_new instead of btpy_insn_new.
6733 (btpy_insn_getset): Remove btpy_insn_error.
6734 * py-record.c (recpy_gap_type): New static object.
6735 (recpy_gap_object): New typedef.
6736 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6737 recpy_gap_reason_string): New function.
6738 (recpy_gap_getset): New static object.
6739 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6740 * py-record.h (recpy_gap_new): New export.
6741
6742 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6743
6744 * python/py-record.c (recpy_ptid): Remove.
6745 (recpy_record_getset): Remove recpy_ptid.
6746
6747 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6748
6749 * btrace.c (btrace_fetch): Set inferior_ptid.
6750 * python/py-record-btrace.c: Add "py-record.h" include.
6751 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6752 recpy_bt_end, recpy_bt_instruction_history,
6753 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6754 in gdb.Record object instead of current ptid.
6755 * python/py-record.c: Include new "py-record.h" file.
6756 (recpy_record_object): Moved to py-record.h.
6757 * python/py-record.h: New file.
6758
6759 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6760
6761 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6762 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6763 indentation.
6764
6765 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6766
6767 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6768 the past maintainers section.
6769
6770 2017-04-28 Yao Qi <yao.qi@linaro.org>
6771
6772 * infcmd.c (get_return_value): Use regcache ctor, and remove
6773 cleanup.
6774
6775 2017-04-28 Yao Qi <yao.qi@linaro.org>
6776 Pedro Alves <palves@redhat.com>
6777
6778 * regcache.c (regcache::regcache): New tag dispatch ctor.
6779 (do_cooked_read): Moved above.
6780 (regcache_dup): Use the tag dispatch ctor..
6781 * regcache.h (regcache): Declare ctor, delete copy ctor and
6782 assignment operator, remove friend regcache_dup.
6783
6784 2017-04-28 Yao Qi <yao.qi@linaro.org>
6785
6786 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6787 call method save instead of regcache_cpy.
6788 * regcache.h (struct regcache): Make regcache_dup a friend.
6789
6790 2017-04-28 Yao Qi <yao.qi@linaro.org>
6791
6792 * regcache.c (struct regcache): Move to regcache.h
6793 (regcache::arch): New method.
6794 (regcache_get_ptid): Update.
6795 (get_regcache_arch): Call arch method.
6796 (get_regcache_aspace): Call method aspace.
6797 (register_buffer): Change it to method.
6798 (regcache_save): Change it to regcache::save.
6799 (regcache_restore): Likewise.
6800 (regcache_cpy_no_passthrough): Remove the declaration.
6801 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6802 (regcache_cpy_no_passthrough): Change it to method
6803 cpy_no_passthrough.
6804 (regcache_register_status): Change it to method
6805 get_register_status.
6806 (regcache_invalidate): Change it to method invalidate.
6807 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6808 (regcache_raw_update): Change it to method raw_update.
6809 (regcache_raw_read): Likewise.
6810 (regcache_raw_read_signed): Likewise.
6811 (regcache_raw_read_unsigned): Likewise.
6812 (regcache_raw_write_signed): Likewise.
6813 (regcache_raw_write_unsigned): Likewise.
6814 (regcache_cooked_read): Likewise.
6815 (regcache_cooked_read_value): Likewise.
6816 (regcache_cooked_read_signed): Likewise.
6817 (regcache_cooked_read_unsigned): Likewise.
6818 (regcache_cooked_write_signed): Likewise.
6819 (regcache_cooked_write_unsigned): Likewise.
6820 (regcache_raw_set_cached_value): Likewise.
6821 (regcache_raw_write): Likewise.
6822 (regcache_cooked_write): Likewise.
6823 (regcache_xfer_part): Likewise.
6824 (regcache_raw_read_part): Likewise.
6825 (regcache_raw_write_part): Likewise.
6826 (regcache_cooked_read_part): Likewise.
6827 (regcache_cooked_write_part): Likewise.
6828 (regcache_raw_supply): Likewise.
6829 (regcache_raw_collect): Likewise.
6830 (regcache_transfer_regset): Likewise.
6831 (regcache_supply_regset): Likewise.
6832 (regcache_collect_regset): Likewise.
6833 (regcache_debug_print_register): Likewise.
6834 (enum regcache_dump_what): Move it to regcache.h.
6835 (regcache_dump): Change it to method dump.
6836 * regcache.h (enum regcache_dump_what): New.
6837 (class regcache): New.
6838 * target.c (target_fetch_registers): Call method
6839 debug_print_register.
6840 (target_store_registers): Likewise.
6841
6842 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6843
6844 * windows-nat.c (struct lm_info_windows): Initialize field.
6845 (windows_make_so): Allocate lm_info_windows with new.
6846 (windows_free_so): Free lm_info_windows with delete.
6847
6848 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6849
6850 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6851 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6852 cleanup.
6853 (darwin_free_so): Free lm_info_darwin with delete.
6854
6855 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6856
6857 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6858 <l_addr_p>: Change type to bool.
6859 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6860 (svr4_free_so): Free lm_info_svr4 with delete.
6861 (svr4_copy_library_list): Replace memcpy with call to copy
6862 constructor.
6863 (library_list_start_library, svr4_default_sos): Allocate
6864 lm_info_svr4 with new.
6865
6866 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6867
6868 * solib-target.c (struct lm_info_target): Add destructor,
6869 initialize fields.
6870 <name>: Change type to std::string.
6871 (library_list_start_library): Allocate lm_info_target with new.
6872 (solib_target_free_library_list): Free lm_info_target with
6873 delete.
6874 (solib_target_current_sos): Adapt to std::string.
6875 (solib_target_free_so): Free lm_info_target with delete.
6876
6877 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6878
6879 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6880 fields.
6881 (frv_current_sos): Allocate lm_info_frv with new.
6882 (frv_relocate_main_executable): Free lm_info_frv with delete,
6883 allocate with new.
6884 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6885
6886 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6887
6888 * solib-frv.c (struct lm_info_frv): Fix indentation.
6889
6890 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6891
6892 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6893 map field.
6894 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6895 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6896 and allocate with new.
6897 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6898
6899 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6902 <filename, member_name>: Change type to std::string.
6903 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6904 (library_list_start_library): Allocate lm_info_aix with new.
6905 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6906 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6907 with copy constructor.
6908
6909 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6910
6911 * solist.h (struct lm_info): Remove.
6912 (struct lm_info_base): New class.
6913 (struct so_list) <lm_info>: Change type to lm_info_base *.
6914 * nto-tdep.c (struct lm_info): Remove.
6915 (lm_addr): Adjust.
6916 * solib-aix.c (struct lm_info): Rename to ...
6917 (struct lm_info_aix): ... this. Extend lm_info_base.
6918 (lm_info_p): Rename to ...
6919 (lm_info_aix_p): ... this, and adjust.
6920 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6921 solib_aix_parse_libraries, library_list_start_library,
6922 solib_aix_free_library_list, solib_aix_parse_libraries,
6923 solib_aix_get_library_list,
6924 solib_aix_relocate_section_addresses, solib_aix_free_so,
6925 solib_aix_get_section_offsets,
6926 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6927 Adjust.
6928 (struct solib_aix_inferior_data) <library_list>: Adjust.
6929 * solib-darwin.c (struct lm_info): Rename to ...
6930 (struct lm_info_darwin): ... this. Extend lm_info_base.
6931 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6932 * solib-dsbt.c (struct lm_info): Rename to ...
6933 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6934 (struct dsbt_info) <main_executable_lm_info): Adjust.
6935 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6936 dsbt_relocate_section_addresses): Adjust.
6937 * solib-frv.c (struct lm_info): Rename to ...
6938 (struct lm_info_frv): ... this. Extend lm_info_base.
6939 (main_executable_lm_info): Adjust.
6940 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6941 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6942 find_canonical_descriptor_in_load_object,
6943 frv_fdpic_find_canonical_descriptor): Adjust.
6944 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6945 to lm_info_svr4.
6946 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6947 svr4_clear_so, svr4_copy_library_list,
6948 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6949 svr4_current_sos, svr4_fetch_objfile_link_map,
6950 solist_update_incremental): Adjust.
6951 * solib-svr4.h (struct lm_info_svr4): Move here from
6952 solib-svr4.c.
6953 * solib-target.c (struct lm_info): Rename to ...
6954 (struct lm_info_target): ... this. Extend lm_info_base.
6955 (lm_info_p): Rename to ...
6956 (lm_info_target_p): ... this.
6957 (solib_target_parse_libraries, library_list_start_segment,
6958 library_list_start_section, library_list_start_library,
6959 library_list_end_library, solib_target_free_library_list,
6960 solib_target_current_sos, solib_target_free_so,
6961 solib_target_relocate_section_addresses): Adjust.
6962 * windows-nat.c (struct lm_info): Rename to ...
6963 (struct lm_info_windows): ... this. Extend lm_info_base.
6964 (windows_make_so, handle_load_dll, handle_unload_dll,
6965 windows_xfer_shared_libraries): Adjust.
6966
6967 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6968
6969 * solib-darwin.c (struct darwin_so_list): Remove.
6970 (darwin_current_sos): Allocate an so_list object instead of a
6971 darwin_so_list, separately allocate an lm_info object.
6972 (darwin_free_so): Free lm_info.
6973
6974 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6975
6976 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6977 with fprintf_filtered.
6978
6979 2017-04-28 Yao Qi <yao.qi@linaro.org>
6980
6981 * regcache.c (regcache::regcache): New function.
6982 (regcache::~regcache): New function.
6983 (regcache_xmalloc_1): Remove.
6984 (regcache_xmalloc): Call new regcache.
6985 (regcache_xfree): Call delete regcache.
6986 (get_thread_arch_aspace_regcache): Call new regcache.
6987
6988 2017-04-28 Yao Qi <yao.qi@linaro.org>
6989
6990 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
6991 lwp instead of ptid_get_lwp.
6992
6993 2017-04-28 Yao Qi <yao.qi@linaro.org>
6994
6995 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
6996 lwp_info instead of getting from inferior_ptid.
6997
6998 2017-04-27 Keith Seitz <keiths@redhat.com>
6999
7000 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7001 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7002 (CV_CONVERSION_BADNESS): Define.
7003 (rank_one_type): Remove overly restrictive rvalue reference
7004 rank checks.
7005 Add cv-qualifier checks and subranks for type equality.
7006 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7007 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7008 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7009
7010 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7011
7012 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7013 count when creating the object.
7014
7015 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7016 Ulrich Weigand <uweigand@de.ibm.com>
7017
7018 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7019 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7020 is used in AIX.
7021 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7022 (process_xcoff_symbol): Likewise.
7023 (scan_xcoff_symtab): Likewise.
7024
7025 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7026
7027 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7028 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7029 (ia64_access_reg): Use get_frame_register_unsigned.
7030 (ia64_access_rse_reg): Likewise.
7031 (ia64_libunwind_frame_prev_register): Likewise.
7032
7033 2017-04-26 Jiong Wang <jiong.wang@arm.com>
7034
7035 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7036 * gdbarch.c: Regenerated.
7037 * gdbarch.h: Regenerated.
7038 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7039 visibility external.
7040 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7041 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7042 (enum cfa_how_kind): Move to ...
7043 (struct dwarf2_frame_state_reg_info): Likewise.
7044 (struct dwarf2_frame_state): Likewise.
7045 * dwarf2-frame.h: ... here.
7046 (dwarf2_frame_state_alloc_regs): New declaration.
7047 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7048 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7049
7050 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7051
7052 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7053 regcache_raw_read_unsigned.
7054 (xtensa_pseudo_register_write): Likewise.
7055
7056 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7057
7058 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7059 (nds32_pseudo_register_write): Likewise.
7060
7061 2017-04-25 Yao Qi <yao.qi@linaro.org>
7062
7063 * regcache.c (struct regcache) <readonly_p>: Change its type
7064 to bool.
7065 (regcache_xmalloc_1): Update parameter type and callers update.
7066
7067 2017-04-25 Yao Qi <yao.qi@linaro.org>
7068
7069 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7070 set_gdbarch_wchar_bit.
7071 * arm-tdep.c (arm_gdbarch_init): Likewise.
7072
7073 2017-04-25 Pedro Alves <palves@redhat.com>
7074
7075 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7076 (BothAreRelocatable, memcopy, memmove): Don't define.
7077 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7078 macros.
7079
7080 2017-04-25 Pedro Alves <palves@redhat.com>
7081
7082 * common/common-defs.h: Include "common/poison.h".
7083 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7084 and adjust.
7085 * common/poison.h: New file.
7086 * common/traits.h: Include <type_traits>.
7087 (Not, Or, Requires): New, moved from common/function-view.h.
7088
7089 2017-04-25 Pedro Alves <palves@redhat.com>
7090
7091 * breakpoint.h (struct breakpoint): In-class initialize all
7092 fields. Make boolean fields "bool".
7093 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7094 memset call and initializations no longer necessary.
7095
7096 2017-04-25 Pedro Alves <palves@redhat.com>
7097
7098 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7099 reference.
7100 (pt_btrace_insn): New function.
7101 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7102
7103 2017-04-25 Pedro Alves <palves@redhat.com>
7104
7105 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7106 "base" field and inherit from "bp_location" instead. Add
7107 non-default ctor.
7108 (allocate_location_exception): Use new non-default ctor.
7109 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7110 (init_bp_location): Convert to ...
7111 (bp_location::bp_location): ... this new ctor, and remove memset
7112 call.
7113 (base_breakpoint_allocate_location): Use the new non-default ctor.
7114 * breakpoint.h (bp_location): Now a class. Declare default and
7115 non-default ctors. In-class initialize all members.
7116 (init_bp_location): Remove declaration.
7117
7118 2017-04-25 Pedro Alves <palves@redhat.com>
7119
7120 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7121 assignment operator.
7122
7123 2017-04-24 Yao Qi <yao.qi@linaro.org>
7124
7125 * doublest.c (convert_doublest_to_floatformat): Call
7126 floatformat_totalsize_bytes.
7127
7128 2017-04-22 Tom Tromey <tom@tromey.com>
7129
7130 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7131 ui_out_emit_list.
7132 * stack.c (print_frame): Use ui_out_emit_list.
7133 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7134 ui_out_emit_list.
7135 * mi/mi-main.c (print_one_inferior)
7136 (mi_cmd_data_list_register_names)
7137 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7138 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7139 ui_out_emit_list.
7140 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7141 (mi_output_solib_attribs): Use ui_out_emit_list,
7142 ui_out_emit_tuple.
7143 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7144 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7145 (mi_cmd_stack_list_args, list_args_or_locals): Use
7146 ui_out_emit_list.
7147 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7148 * breakpoint.c (print_solib_event, output_thread_groups): Use
7149 ui_out_emit_list.
7150
7151 2017-04-22 Tom Tromey <tom@tromey.com>
7152
7153 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7154 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7155 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7156
7157 2017-04-22 Tom Tromey <tom@tromey.com>
7158
7159 * tracepoint.c (tvariables_info_1)
7160 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7161
7162 2017-04-22 Tom Tromey <tom@tromey.com>
7163
7164 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7165 annotate_arg_emitter.
7166 * breakpoint.c (print_mention_watchpoint)
7167 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7168 * annotate.h (struct annotate_arg_emitter): New.
7169
7170 2017-04-22 Tom Tromey <tom@tromey.com>
7171
7172 * record-btrace.c (record_btrace_insn_history)
7173 (record_btrace_insn_history_range, record_btrace_call_history)
7174 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7175 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7176 ui_out_emit_tuple.
7177 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7178 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7179 * skip.c (skip_info): Use ui_out_emit_tuple.
7180 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7181 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7182 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7183 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7184 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7185 ui_out_emit_tuple.
7186 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7187 (output_register, mi_cmd_data_read_memory)
7188 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7189 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7190 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7191 Use ui_out_emit_tuple.
7192 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7193 ui_out_emit_tuple.
7194 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7195 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7196 * linux-thread-db.c (info_auto_load_libthread_db): Use
7197 ui_out_emit_tuple.
7198 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7199 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7200 * disasm.c (do_mixed_source_and_assembly_deprecated)
7201 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7202 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7203 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7204 * breakpoint.c (print_one_breakpoint_location)
7205 (print_one_breakpoint): Use ui_out_emit_tuple.
7206 * auto-load.c (print_script, info_auto_load_cmd): Use
7207 ui_out_emit_tuple.
7208 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7209
7210 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7211
7212 * thread.c (print_thread_info_1): Remove dead code.
7213
7214 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7217 GDB_SELF_TEST.
7218 * arm-tdep.c (selftests::arm_record_test): Likewise.
7219
7220 2017-04-21 Yao Qi <yao.qi@linaro.org>
7221
7222 * regcache.c (regcache_restore): Remove argument 2. Replace
7223 argument 3 with regcache. Get register status from
7224 src->register_status and get register contents from
7225 register_buffer (src, regnum).
7226 (regcache_cpy): Update.
7227
7228 2017-04-19 Pedro Alves <palves@redhat.com>
7229
7230 * gdbthread.h (thread): Add missing closing parenthesis in
7231 comment.
7232
7233 2017-04-19 Pedro Alves <palves@redhat.com>
7234
7235 * common/refcounted-object.h: New file.
7236 * gdbthread.h: Include "common/refcounted-object.h".
7237 (thread_info): Inherit from refcounted_object and add comments.
7238 (thread_info::incref, thread_info::decref)
7239 (thread_info::m_refcount): Delete.
7240 (thread_info::deletable): Use the refcounted_object::refcount()
7241 method.
7242 * inferior.c (current_inferior_): Add comment.
7243 (set_current_inferior): Increment/decrement refcounts.
7244 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7245 not-deletable instead of comparing with the current inferior.
7246 (initialize_inferiors): Increment the initial inferior's refcount.
7247 * inferior.h (struct inferior): Forward declare.
7248 Include "common/refcounted-object.h".
7249 (current_inferior, set_current_inferior): Move declaration to
7250 before struct inferior's definition, and fix comment.
7251 (inferior): Inherit from refcounted_object. Add comments.
7252 * thread.c (switch_to_thread_no_regs): Reference the thread's
7253 inferior pointer directly instead of doing a ptid lookup.
7254 (switch_to_no_thread): New function.
7255 (switch_to_thread(thread_info *)): New function, factored out
7256 from ...
7257 (switch_to_thread(ptid_t)): ... this.
7258 (restore_current_thread): Delete.
7259 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7260 fields, and add 'inf' field.
7261 (do_restore_current_thread_cleanup): Check whether old->inf is
7262 alive instead of looking up an inferior by ptid. Use
7263 switch_to_thread and switch_to_no_thread.
7264 (restore_current_thread_cleanup_dtor): Use old->inf directly
7265 instead of lookup up an inferior by id. Decref the inferior.
7266 Don't restore 'removable'.
7267 (make_cleanup_restore_current_thread): Same the inferior pointer
7268 in old, instead of the inferior number. Incref the inferior.
7269 Don't save/clear 'removable'.
7270
7271 2017-04-19 Pedro Alves <palves@redhat.com>
7272
7273 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7274 unittests/scoped_restore-selftests.c.
7275 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7276 * common/scoped_restore.h (scoped_restore_base): Make "class".
7277 (scoped_restore_base::release): New public method.
7278 (scoped_restore_base::scoped_restore_base): New protected ctor.
7279 (scoped_restore_base::m_saved_var): New protected field.
7280 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7281 scoped_restore_base base class instead of m_saved_var directly.
7282 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7283 (scoped_restore_tmpl::scoped_restore_tmpl(const
7284 scoped_restore_tmpl<T>&)): Likewise.
7285 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7286 method.
7287 (scoped_restore_tmpl::saved_var): New method.
7288 (scoped_restore_tmpl::m_saved_var): Delete.
7289 * inferior.h (inferior::detaching): Now a bool.
7290 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7291 cleanup.
7292 * unittests/scoped_restore-selftests.c: New file.
7293
7294 2017-04-19 Pedro Alves <palves@redhat.com>
7295
7296 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7297 Re-sort in alphabetic order.
7298
7299 2017-04-18 Pedro Alves <palves@redhat.com>
7300
7301 * xml-support.c (obstack_xml_printf): Delete.
7302 * xml-support.h (obstack_xml_printf): Delete.
7303
7304 2017-04-18 Pedro Alves <palves@redhat.com>
7305
7306 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7307 vdebug, verror, body_text, start_element, end_element, name,
7308 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7309 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7310 is_xinclude>: Make private and add m_ prefix.
7311 (gdb_xml_parser::body_text): New method, based on ...
7312 (gdb_xml_body_text): ... this. Adjust.
7313 (gdb_xml_parser::vdebug): New method, based on ...
7314 (gdb_xml_debug): ... this. Adjust.
7315 (gdb_xml_parser::verror): New method, based on ...
7316 (gdb_xml_error): ... this. Adjust.
7317 (gdb_xml_parser::start_element): New method, based on ...
7318 (gdb_xml_start_element): ... this. Adjust.
7319 (gdb_xml_start_element_wrapper): Defer to
7320 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7321 (gdb_xml_parser::end_element): New method, based on ...
7322 (gdb_xml_end_element_wrapper): ... this. Adjust.
7323 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7324 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7325 (gdb_xml_parser::use_dtd): New method, based on ...
7326 (gdb_xml_use_dtd): ... this. Adjust.
7327 (gdb_xml_parser::parse): New method, based on ...
7328 (gdb_xml_parse): ... this. Adjust.
7329 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7330 (xinclude_start_include): Adjust to call the parser's name method.
7331 (xml_xinclude_default, xml_xinclude_start_doctype)
7332 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7333 method.
7334 (xml_process_xincludes): Adjust to call parser methods.
7335 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7336 declarations.
7337
7338 2017-04-18 Pedro Alves <palves@redhat.com>
7339
7340 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7341 gdb::optional<std::string>.
7342 * xml-support.c: Include <string>.
7343 (scope_level::scope_level(scope_level &&))
7344 (scope_level::~scope_level): Delete.
7345 (scope_level::body): Now a std::string.
7346 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7347 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7348 parameter.
7349 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7350 (xinclude_parsing_data::output): Now a std::string reference.
7351 (xinclude_start_include): Adjust.
7352 (xml_xinclude_default): Adjust.
7353 (xml_process_xincludes): Add 'output' parameter, and return bool.
7354 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7355 and return bool.
7356 * xml-tdesc.c: Include <unordered_map> and <string>.
7357 (tdesc_xml_cache): Delete.
7358 (tdesc_xml_cache_s): Delete.
7359 (xml_cache): Now an std::unordered_map.
7360 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7361 (target_fetch_description_xml): Change return type to
7362 gdb::optional<std::string>, and adjust.
7363 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7364 (target_fetch_description_xml): Change return type to
7365 gdb::optional<std::string>.
7366
7367 2017-04-18 Pedro Alves <palves@redhat.com>
7368
7369 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7370 unittests/optional-selftests.c.
7371 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7372 * unittests/optional-selftests.c: New file.
7373 * unittests/optional/assignment/1.cc: New file.
7374 * unittests/optional/assignment/2.cc: New file.
7375 * unittests/optional/assignment/3.cc: New file.
7376 * unittests/optional/assignment/4.cc: New file.
7377 * unittests/optional/assignment/5.cc: New file.
7378 * unittests/optional/assignment/6.cc: New file.
7379 * unittests/optional/assignment/7.cc: New file.
7380 * unittests/optional/cons/copy.cc: New file.
7381 * unittests/optional/cons/default.cc: New file.
7382 * unittests/optional/cons/move.cc: New file.
7383 * unittests/optional/cons/value.cc: New file.
7384 * unittests/optional/in_place.cc: New file.
7385 * unittests/optional/observers/1.cc: New file.
7386 * unittests/optional/observers/2.cc: New file.
7387
7388 2017-04-18 Pedro Alves <palves@redhat.com>
7389
7390 * common/gdb_optional.h: Include common/traits.h.
7391 (in_place_t): New type.
7392 (in_place): New constexpr variable.
7393 (optional::optional): Remove member initialization of
7394 m_instantiated.
7395 (optional::optional(in_place_t...)): New constructor.
7396 (optional::~optional): Use reset.
7397 (optional::optional(const optional&)): New.
7398 (optional::optional(const optional&&)): New.
7399 (optional::optional(T &)): New.
7400 (optional::optional(T &&)): New.
7401 (operator::operator=(const optional &)): New.
7402 (operator::operator=(optional &&)): New.
7403 (operator::operator= (const T &))
7404 (operator::operator= (T &&))
7405 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7406 (operator::reset): New.
7407 (operator::m_instantiated):: Add in-class initializer.
7408 * common/traits.h: Include <type_traits>.
7409 (struct And): New types.
7410
7411 2017-04-18 Pedro Alves <palves@redhat.com>
7412
7413 * xml-support.c: Include <vector>.
7414 (scope_level::scope_level(const gdb_xml_element *))
7415 (scope_level::scope_level(scope_level&&)): New.
7416 (scope_level::~scope_level): New.
7417 (scope_level_s): Delete.
7418 (gdb_xml_parser::scopes): Now a std::vector.
7419 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7420 Use std::vector.
7421 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7422 scope cleanup code.
7423 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7424 of the scopes member. Use std::vector::emplace_back.
7425
7426 2017-04-18 Pedro Alves <palves@redhat.com>
7427
7428 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7429 a bool.
7430 (gdb_xml_end_element): Change type of first parameter.
7431 (gdb_xml_cleanup): Rename to ...
7432 (gdb_xml_parser::~gdb_xml_parser): ... this.
7433 (gdb_xml_create_parser_and_cleanup): Delete with ...
7434 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7435 to this new ctor.
7436 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7437 using gdb_xml_create_parser_and_cleanup.
7438 (xinclude_parsing_data): Add ctor/dtor.
7439 (xml_xinclude_cleanup): Delete.
7440 (xml_process_xincludes): Create a local xinclude_parsing_data
7441 instead of heap-allocating one. Create a local gdb_xml_parser
7442 instead of heap-allocating one with
7443 gdb_xml_create_parser_and_cleanup.
7444
7445 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7446
7447 PR threads/20743
7448 * fbsd-nat.c (resume_one_thread_cb): Remove.
7449 (resume_all_threads_cb): Remove.
7450 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7451 iterate_over_threads.
7452
7453 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7454
7455 * NEWS: Create a new section for the next release branch.
7456 Rename the section of the current branch, now that it has
7457 been cut.
7458
7459 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7460
7461 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7462 * version.in: Bump version to 8.0.50.DATE-git.
7463
7464 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7465
7466 PR gdb/21385
7467 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7468 independently of the host, and fix build breakage on Cygwin.
7469
7470 2017-04-13 Pedro Alves <palves@redhat.com>
7471
7472 * inferior.c (free_inferior): Convert to ...
7473 (inferior::~inferior): ... this dtor.
7474 (inferior::inferior): New ctor, factored out from ...
7475 (add_inferior_silent): ... here. Allocate the inferior with a new
7476 expression.
7477 (delete_inferior): Call delete instead of free_inferior.
7478 * inferior.h (gdb_environ, continuation): Forward declare.
7479 (inferior): Now a class. Add in-class initialization to all
7480 members. Make boolean fields bool, except 'detaching'.
7481 (inferior::inferior): New explicit ctor.
7482 (inferior::~inferior): New.
7483
7484 2017-04-13 Pedro Alves <palves@redhat.com>
7485
7486 * inferior.c (init_inferior_list): Delete.
7487 * inferior.h (init_inferior_list): Delete.
7488
7489 2017-04-13 Pedro Alves <palves@redhat.com>
7490
7491 PR threads/13217
7492 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7493 (top level): Call it twice, with different thread sets.
7494
7495 2017-04-13 Pedro Alves <palves@redhat.com>
7496
7497 * thread.c: Include <algorithm>.
7498 (thread_array_cleanup): Delete.
7499 (scoped_inc_dec_ref): New class.
7500 (live_threads_count): New function.
7501 (set_thread_refcount): Delete.
7502 (tp_array_compar_ascending): Now a bool.
7503 (tp_array_compar): Convert to a std::sort comparison function.
7504 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7505 and live_threads_count.
7506
7507 2017-04-13 Pedro Alves <palves@redhat.com>
7508
7509 * infrun.c (follow_fork_inferior): Also switch the current
7510 inferior.
7511
7512 2017-04-13 Pedro Alves <palves@redhat.com>
7513
7514 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7515 before calling create_internal_breakpoint.
7516
7517 2017-04-13 Pedro Alves <palves@redhat.com>
7518
7519 * fork-child.c (execv_argv): New class.
7520 (breakup_args): Refactored as ...
7521 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7522 Copy arguments to storage and replace separators with NULL
7523 terminators in place.
7524 (escape_bang_in_quoted_argument): Adjust to return bool.
7525 (execv_argv::execv_argv): New ctor.
7526 (execv_argv::init_for_shell): New method, factored out from
7527 fork_inferior. Don't strdup strings into the vector.
7528 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7529 Remove free_vector_argv call.
7530
7531 2017-04-13 Yao Qi <yao.qi@linaro.org>
7532
7533 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7534 tdep->rx_psw_type.
7535
7536 2017-04-13 Yao Qi <yao.qi@linaro.org>
7537
7538 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7539 * rx-tdep.c (rx_gdbarch_init): Likewise.
7540
7541 2017-04-13 Pedro Alves <palves@redhat.com>
7542
7543 * breakpoint.h (struct breakpoint): Reindent.
7544
7545 2017-04-13 Pedro Alves <palves@redhat.com>
7546
7547 * breakpoint.c (bp_location): Rename to ...
7548 (bp_locations): ... this. All references updated.
7549 (bp_location_count): Rename to ...
7550 (bp_locations_count): ... this. All references updated.
7551 (bp_location_placed_address_before_address_max): Rename to ...
7552 (bp_locations_placed_address_before_address_max): ... this. All
7553 references updated.
7554 (bp_location_shadow_len_after_address_max): Rename to ...
7555 (bp_locations_shadow_len_after_address_max): ... this. All
7556 references updated.
7557 (bp_location_compare_addrs): Rename to ...
7558 (bp_locations_compare_addrs): ... this. All references updated.
7559 (bp_location_compare):Rename to ...
7560 (bp_locations_compare): ... this. All references updated.
7561 (bp_location_target_extensions_update): Rename to ...
7562 (bp_locations_target_extensions_update): ... this. All references
7563 updated.
7564
7565 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7566
7567 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7568 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7569 'sgtty.h'.
7570 * common/gdb_termios.h: New file, with parts of "terminal.h".
7571 * inflow.c: Include "gdb_termios.h".
7572 * ser-unix.c: Include "gdb_termios.h".
7573 * terminal.h: Move terminal-related defines to
7574 "common/gdb_termios.h".
7575
7576 2017-04-12 Tom Tromey <tom@tromey.com>
7577
7578 * probe.c (parse_probes): Update.
7579 * location.h (delete_event_location): Don't declare.
7580 (event_location_deleter::operator()): Update.
7581 * location.c (event_location_deleter::operator()): Rename from
7582 delete_event_location.
7583 * linespec.h (linespec_result) <location>: Change type to
7584 event_location_up.
7585 * linespec.c (canonicalize_linespec, event_location_to_sals)
7586 (decode_objc): Update.
7587 (linespec_result): Don't call delete_event_location.
7588 * breakpoint.c (create_breakpoints_sal)
7589 (bkpt_probe_create_sals_from_location)
7590 (strace_marker_create_sals_from_location): Update.
7591
7592 2017-04-12 Tom Tromey <tom@tromey.com>
7593
7594 * linespec.h (struct linespec_result): Add constructor and
7595 destructor.
7596 (init_linespec_result, destroy_linespec_result)
7597 (make_cleanup_destroy_linespec_result): Don't declare.
7598 * linespec.c (init_linespec_result): Remove.
7599 (linespec_result::~linespec_result): Rename from
7600 destroy_linespec_result. Update.
7601 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7602 Remove.
7603 * breakpoint.c (create_breakpoint, break_range_command)
7604 (decode_location_default): Update.
7605 * ax-gdb.c (agent_command_1): Update.
7606
7607 2017-04-12 Tom Tromey <tom@tromey.com>
7608
7609 * remote.c (remote_download_tracepoint): Update.
7610 * python/py-breakpoint.c (bppy_get_location): Update.
7611 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7612 (gdbscm_breakpoint_location): Update.
7613 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7614 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7615 Change type to event_location_up.
7616 * breakpoint.c (create_overlay_event_breakpoint)
7617 (create_longjmp_master_breakpoint)
7618 (create_std_terminate_master_breakpoint)
7619 (create_exception_master_breakpoint)
7620 (breakpoint_event_location_empty_p, print_breakpoint_location)
7621 (print_one_breakpoint_location, create_thread_event_breakpoint)
7622 (init_breakpoint_sal, create_breakpoint)
7623 (print_recreate_ranged_breakpoint, break_range_command)
7624 (init_ada_exception_breakpoint, say_where): Update.
7625 (base_breakpoint_dtor): Don't call delete_event_location.
7626 (bkpt_print_recreate, tracepoint_print_recreate)
7627 (dprintf_print_recreate, update_static_tracepoint)
7628 (breakpoint_re_set_default): Update.
7629
7630 2017-04-12 Tom Tromey <tom@tromey.com>
7631
7632 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7633 type of "to_do". Update.
7634 (compute_stack_depth): Use std::vector.
7635
7636 2017-04-12 Tom Tromey <tom@tromey.com>
7637
7638 * printcmd.c (find_instruction_backward): Use std::vector.
7639
7640 2017-04-12 Tom Tromey <tom@tromey.com>
7641
7642 * symfile.c (objfilep): Remove typedef.
7643 (reread_symbols): Use a std::vector.
7644
7645 2017-04-12 Tom Tromey <tom@tromey.com>
7646
7647 * mi/mi-main.c (exec_direction_forward): Remove.
7648 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7649 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7650 scoped_restore.
7651 * guile/guile.c (guile_repl_command, guile_command)
7652 (gdbscm_execute_gdb_command): Use scoped_restore.
7653 * go-exp.y (go_parse): Use scoped_restore.
7654 * d-exp.y (d_parse): Use scoped_restore.
7655 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7656 * c-exp.y (c_parse): Use scoped_restore.
7657
7658 2017-04-12 Tom Tromey <tom@tromey.com>
7659
7660 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7661 (mi_parse): Update return type.
7662 (mi_parse_free): Remove.
7663 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7664 (mi_parse::~mi_parse): Rename from mi_parse_free.
7665 (mi_parse_cleanup): Remove.
7666 (mi_parse): Return a unique_ptr. Use new.
7667 * mi/mi-main.c (mi_execute_command): Update.
7668
7669 2017-04-12 Tom Tromey <tom@tromey.com>
7670
7671 * location.c (explicit_location_lex_one): Return a
7672 unique_xmalloc_ptr.
7673 (string_to_explicit_location): Update. Remove cleanups.
7674
7675 2017-04-12 Tom Tromey <tom@tromey.com>
7676
7677 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7678 (compare_value_and_voffset): Change type. Update.
7679 (compute_vtable_size): Change type of "offset_vec".
7680 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7681 (gnuv3_get_typeid): Remove extraneous declaration.
7682
7683 2017-04-12 Tom Tromey <tom@tromey.com>
7684
7685 * charset.h (wchar_iterator): Fix comment.
7686
7687 2017-04-12 Tom Tromey <tom@tromey.com>
7688
7689 * charset.c (iconv_wrapper): New class.
7690 (cleanup_iconv): Remove.
7691 (convert_between_encodings): Use it.
7692
7693 2017-04-12 Tom Tromey <tom@tromey.com>
7694
7695 * symfile.h (increment_reading_symtab): Update type.
7696 * symfile.c (decrement_reading_symtab): Remove.
7697 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7698 * psymtab.c (psymtab_to_symtab): Update.
7699 * dwarf2read.c (dw2_instantiate_symtab): Update.
7700
7701 2017-04-12 Tom Tromey <tom@tromey.com>
7702
7703 * jit.c (struct jit_reader): Declare separately. Add constructor
7704 and destructor. Change type of "handle".
7705 (loaded_jit_reader): Define separately.
7706 (jit_reader_load): Update. New "new".
7707 (jit_reader_unload_command): Use "delete".
7708 * gdb-dlfcn.h (struct dlclose_deleter): New.
7709 (gdb_dlhandle_up): New typedef.
7710 (gdb_dlopen, gdb_dlsym): Update types.
7711 (gdb_dlclose): Remove.
7712 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7713 (gdb_dlsym): Change type of "handle".
7714 (make_cleanup_dlclose): Remove.
7715 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7716 * compile/compile-c-support.c (load_libcc): Update.
7717
7718 2017-04-12 Tom Tromey <tom@tromey.com>
7719
7720 * symtab.h (find_pcs_for_symtab_line): Change return type.
7721 * symtab.c (find_pcs_for_symtab_line): Change return type.
7722 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7723 type of "vec". Update.
7724 (ltpy_get_pcs_for_line): Update.
7725 * linespec.c (decode_digits_ordinary): Update.
7726
7727 2017-04-12 Tom Tromey <tom@tromey.com>
7728
7729 * tracepoint.c (actions_command): Update.
7730 * python/python.c (python_command, python_interactive_command):
7731 Update.
7732 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7733 * guile/guile.c (guile_command): Update.
7734 * defs.h (read_command_lines, read_command_lines_1): Return
7735 command_line_up.
7736 (command_lines_deleter): New struct.
7737 (command_line_up): New typedef.
7738 * compile/compile.c (compile_code_command)
7739 (compile_print_command): Update.
7740 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7741 command_line_up.
7742 (make_cleanup_free_command_lines): Remove.
7743 * cli/cli-script.c (get_command_line, read_command_lines_1)
7744 (copy_command_lines): Return command_line_up.
7745 (while_command, if_command, read_command_lines, define_command)
7746 (document_command): Update.
7747 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7748 Remove.
7749 * breakpoint.h (breakpoint_set_commands): Change type of
7750 "commands".
7751 * breakpoint.c (breakpoint_set_commands): Change type of
7752 "commands". Update.
7753 (do_map_commands_command, update_dprintf_command_list)
7754 (create_tracepoint_from_upload): Update.
7755
7756 2017-04-12 Tom Tromey <tom@tromey.com>
7757
7758 * tracepoint.c (scope_info): Update.
7759 * spu-tdep.c (spu_catch_start): Update.
7760 * python/python.c (gdbpy_decode_line): Update.
7761 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7762 * python/py-breakpoint.c (bppy_init): Update.
7763 * probe.c (parse_probes): Update.
7764 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7765 * location.h (event_location_deleter): New struct.
7766 (event_location_up): New typedef.
7767 (new_linespec_location, new_address_location, new_probe_location)
7768 (new_explicit_location, copy_event_location)
7769 (string_to_event_location, string_to_event_location_basic)
7770 (string_to_explicit_location): Update return type.
7771 (make_cleanup_delete_event_location): Remove.
7772 * location.c (new_linespec_location, new_address_location)
7773 (new_probe_location, new_explicit_location, copy_event_location):
7774 Return event_location_up.
7775 (delete_event_location_cleanup)
7776 (make_cleanup_delete_event_location): Remove.
7777 (string_to_explicit_location, string_to_event_location_basic)
7778 (string_to_event_location): Return event_location_up.
7779 * linespec.c (canonicalize_linespec, event_location_to_sals)
7780 (decode_line_with_current_source)
7781 (decode_line_with_last_displayed, decode_objc): Update.
7782 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7783 * completer.c (location_completer): Update.
7784 * cli/cli-cmds.c (edit_command, list_command): Update.
7785 * breakpoint.c (create_overlay_event_breakpoint)
7786 (create_longjmp_master_breakpoint)
7787 (create_std_terminate_master_breakpoint)
7788 (create_exception_master_breakpoint)
7789 (create_thread_event_breakpoint): Update.
7790 (init_breakpoint_sal): Update. Remove some dead code.
7791 (create_breakpoint_sal): Change type of "location". Update.
7792 (create_breakpoints_sal, create_breakpoint, break_command_1)
7793 (dprintf_command, break_range_command, until_break_command)
7794 (init_ada_exception_breakpoint)
7795 (strace_marker_create_sals_from_location)
7796 (update_static_tracepoint, trace_command, ftrace_command)
7797 (strace_command, create_tracepoint_from_upload): Update.
7798 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7799 * ax-gdb.c (agent_command_1): Update.
7800
7801 2017-04-12 Pedro Alves <palves@redhat.com>
7802
7803 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7804 * configure.tgt: Handle i[34567]86-*-go32* and
7805 i[34567]86-*-msdosdjgpp*.
7806 * i386-tdep.c (i386_svr4_reg_to_regnum):
7807 Make extern.
7808 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7809 i386-go32-tdep.c.
7810 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7811 * i386-go32-tdep.c: New file.
7812 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7813 declarations.
7814
7815 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7816
7817 * aix-thread.c (pd_status2str): Change return type to const char *.
7818
7819 2017-04-12 Pedro Alves <palves@redhat.com>
7820
7821 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7822 calls to set_gdbarch_gnu_triplet_regexp.
7823
7824 2017-04-12 Pedro Alves <palves@redhat.com>
7825
7826 PR gdb/21323
7827 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7828 New enum value.
7829 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7830 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7831 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7832 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7833 * gdbarch.h, gdbarch.c: Regenerate.
7834 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7835 gdbarch_wchar_bit and gdbarch_wchar_signed.
7836 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7837 * arm-tdep.c (arm_gdbarch_init): Likewise.
7838 * avr-tdep.c (avr_gdbarch_init): Likewise.
7839 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7840 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7841 * i386-tdep.c (i386_go32_init_abi): Likewise.
7842 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7843 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7844 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7845 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7846 * sh-tdep.c (sh_gdbarch_init): Likewise.
7847 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7848 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7849 * windows-tdep.c (windows_init_abi): Likewise.
7850 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7851
7852 2017-04-12 Pedro Alves <palves@redhat.com>
7853
7854 PR c++/21323
7855 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7856 cplus_primitive_type_char32_t>: New enum values.
7857 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7858 and cplus_primitive_type_char32_t.
7859 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7860 32, use the archtecture's built-in type for char16_t and char32_t,
7861 respectively. Otherwise, fallback to init_integer_type as before,
7862 but make the type unsigned, and issue a complaint.
7863 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7864
7865 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7866
7867 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7868 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7869
7870 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7871
7872 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7873 'const char *'.
7874
7875 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7876
7877 * common/common-utils.c (free_vector_argv): New function.
7878 * common/common-utils.h: Include <vector>.
7879 (free_vector_argv): New prototype.
7880 * darwin-nat.c (darwin_create_inferior): Rewrite function
7881 prototype in order to constify "exec_file" and accept a
7882 "std::string" for "allargs".
7883 * fork-child.c: Include <vector>.
7884 (breakup_args): Rewrite function, using C++.
7885 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7886 and accept "std::string" for "allargs". Update the code to
7887 calculate "argv" based on "allargs". Update calls to "exec_fun"
7888 and "execvp".
7889 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7890 order to constify "exec_file" and accept a "std::string" for
7891 "allargs".
7892 * go32-nat.c (go32_create_inferior): Likewise.
7893 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7894 * infcmd.c (run_command_1): Constify "exec_file". Use
7895 "std::string" for inferior arguments.
7896 * inferior.h (fork_inferior): Update prototype.
7897 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7898 prototype in order to constify "exec_file" and accept a
7899 "std::string" for "allargs".
7900 * nto-procfs.c (procfs_create_inferior): Likewise.
7901 * procfs.c (procfs_create_inferior): Likewise.
7902 * remote-sim.c (gdbsim_create_inferior): Likewise.
7903 * remote.c (extended_remote_run): Update code to accept
7904 "std::string" as argument.
7905 (extended_remote_create_inferior): Rewrite function prototype in
7906 order to constify "exec_file" and accept a "std::string" for
7907 "allargs".
7908 * rs6000-nat.c (super_create_inferior): Likewise.
7909 (rs6000_create_inferior): Likewise.
7910 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7911 * windows-nat.c (windows_create_inferior): Likewise.
7912
7913 2017-04-11 Pedro Alves <palves@redhat.com>
7914
7915 * thread.c: Fix whitespace throughout.
7916
7917 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7918
7919 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7920
7921 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7922
7923 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7924
7925 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7926
7927 PR gdb/21364
7928 * osdata.c (info_osdata): Check if 'type' is an empty string
7929 instead of NULL.
7930
7931 2017-04-10 Pedro Alves <palves@redhat.com>
7932
7933 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7934 (ptid_to_global_thread_id, in_thread_list)
7935 (do_captured_list_thread_ids, set_resumed, set_running)
7936 (set_executing, set_stop_requested, finish_thread_state)
7937 (validate_registers_access, can_access_registers_ptid)
7938 (print_thread_info_1, switch_to_thread)
7939 (do_restore_current_thread_cleanup)
7940 (make_cleanup_restore_current_thread, thread_command)
7941 (thread_name_command): Use operator== instead of ptid_equal.
7942
7943 2017-04-10 Pedro Alves <palves@redhat.com>
7944
7945 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7946 (current_thread_cleanup_chain): Delete.
7947 (restore_current_thread_cleanup_dtor)
7948 (make_cleanup_restore_current_thread): Remove references to
7949 current_thread_cleanup_chain.
7950
7951 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7952
7953 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7954 REG_UNKNOWN.
7955
7956 2017-04-10 Yao Qi <yao.qi@linaro.org>
7957
7958 PR gdb/19942
7959 * gdbthread.h (thread_info::deletable): New method.
7960 (thread_info::incref): New method.
7961 (thread_info::decref): New method.
7962 (thread_info::refcount): Move it to private.
7963 * infrun.c (save_stop_context): Call inc_refcount.
7964 (release_stop_context_cleanup): Likewise.
7965 * thread.c (set_thread_exited): New function.
7966 (init_thread_list): Delete "tp" only it is deletable, otherwise
7967 call set_thread_exited.
7968 (delete_thread_1): Call set_thread_exited.
7969 (current_thread_cleanup) <inferior_pid>: Remove.
7970 <thread>: New field.
7971 (restore_current_thread_ptid_changed): Removed.
7972 (do_restore_current_thread_cleanup): Adjust.
7973 (restore_current_thread_cleanup_dtor): Don't call
7974 find_thread_ptid.
7975 (set_thread_refcount): Use dec_refcount.
7976 (make_cleanup_restore_current_thread): Adjust.
7977 (thread_apply_all_command): Call inc_refcount.
7978 (_initialize_thread): Don't call
7979 observer_attach_thread_ptid_changed.
7980
7981 2017-04-10 Yao Qi <yao.qi@linaro.org>
7982
7983 * thread.c (delete_thread_1): Hoist code on marking thread as
7984 exited.
7985
7986 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7987
7988 * windows-nat.c (windows_detach): Initialize ptid with
7989 minus_one_ptid.
7990
7991 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
7992
7993 * unittests/ptid-selftests.c: Fix erroneous assert messages.
7994
7995 2017-04-07 Alan Hayward <alan.hayward@arm.com>
7996
7997 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
7998 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
7999 (bfin_pseudo_register_write): Likewise
8000
8001 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8002
8003 * common/ptid.h (struct ptid): Change to...
8004 (class ptid_t): ... this.
8005 <ptid_t>: New constructors.
8006 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8007 matches>: New methods.
8008 <make_null, make_minus_one>: New static methods.
8009 <pid>: Rename to...
8010 <m_pid>: ...this.
8011 <lwp>: Rename to...
8012 <m_lwp>: ...this.
8013 <tid>: Rename to...
8014 <m_tid>: ...this.
8015 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8016 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8017 as references, move comment to class ptid_t.
8018 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8019 ptid_t static methods.
8020 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8021 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8022 Take ptid arguments as references, implement using ptid_t methods.
8023 * unittests/ptid-selftests.c: New file.
8024 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8025 unittests/ptid-selftests.c.
8026 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8027
8028 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8029
8030 * python/python.c (python_run_simple_file): Cast mode literal to
8031 non-const char pointer as expected by PyFile_FromString.
8032
8033 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8034
8035 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8036 minus_one_ptid and null_ptid.
8037
8038 2017-04-05 Pedro Alves <palves@redhat.com>
8039
8040 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8041 * configure: Regenerate.
8042
8043 2017-04-05 Pedro Alves <palves@redhat.com>
8044
8045 * ada-exp.y (yyerror): Constify.
8046 * ada-lang.c (bound_name, get_selections)
8047 (ada_variant_discrim_type)
8048 (ada_variant_discrim_name, ada_value_struct_elt)
8049 (ada_lookup_struct_elt_type, is_unchecked_variant)
8050 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8051 (catch_ada_exception_command_split)
8052 (catch_ada_assert_command_split, catch_assert_command)
8053 (ada_op_name): Constify.
8054 * ada-lang.h (ada_yyerror, get_selections)
8055 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8056 * arc-tdep.c (arc_print_frame_cache): Constify.
8057 * arm-tdep.c (arm_skip_stub): Constify.
8058 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8059 (gen_aggregate_elt_ref): Constify.
8060 * bcache.c (print_bcache_statistics): Constify.
8061 * bcache.h (print_bcache_statistics): Constify.
8062 * break-catch-throw.c (catch_exception_command_1):
8063 * breakpoint.c (struct ep_type_description::description):
8064 Constify.
8065 (add_solib_catchpoint): Constify.
8066 (catch_fork_command_1): Add cast.
8067 (add_catch_command): Constify.
8068 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8069 Constify.
8070 * bsd-uthread.c (bsd_uthread_state): Constify.
8071 * buildsym.c (patch_subfile_names): Constify.
8072 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8073 Constify.
8074 * c-exp.y (yyerror): Constify.
8075 (token::oper): Constify.
8076 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8077 * c-varobj.c (cplus_describe_child): Constify.
8078 * charset.c (find_charset_names): Add cast.
8079 (find_charset_names): Constify array and add const_cast.
8080 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8081 (edit_command): Constify.
8082 * cli/cli-decode.c (lookup_cmd): Constify.
8083 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8084 Constify.
8085 (struct dump_context): Constify.
8086 (add_dump_command, restore_command): Constify.
8087 * cli/cli-script.c (get_command_line): Constify.
8088 * cli/cli-script.h (get_command_line): Constify.
8089 * cli/cli-utils.c (check_for_argument): Constify.
8090 * cli/cli-utils.h (check_for_argument): Constify.
8091 * coff-pe-read.c (struct read_pe_section_data): Constify.
8092 * command.h (lookup_cmd): Constify.
8093 * common/print-utils.c (decimal2str): Constify.
8094 * completer.c (gdb_print_filename): Constify.
8095 * corefile.c (set_gnutarget): Constify.
8096 * cp-name-parser.y (yyerror): Constify.
8097 * cp-valprint.c (cp_print_class_member): Constify.
8098 * cris-tdep.c (cris_register_name, crisv32_register_name):
8099 Constify.
8100 * d-exp.y (yyerror): Constify.
8101 (struct token::oper): Constify.
8102 * d-lang.h (d_yyerror): Constify.
8103 * dbxread.c (struct header_file_location::name): Constify.
8104 (add_old_header_file, add_new_header_file, last_function_name)
8105 (dbx_next_symbol_text, add_bincl_to_list)
8106 (find_corresponding_bincl_psymtab, set_namestring)
8107 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8108 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8109 * defs.h (command_line_input, print_address_symbolic)
8110 (deprecated_readline_begin_hook): Constify.
8111 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8112 Constify.
8113 * event-top.c (handle_line_of_input): Constify and add cast.
8114 * exceptions.c (catch_errors): Constify.
8115 * exceptions.h (catch_errors): Constify.
8116 * expprint.c (print_subexp_standard, op_string, op_name)
8117 (op_name_standard, dump_raw_expression, dump_raw_expression):
8118 * expression.h (op_name, op_string, dump_raw_expression):
8119 Constify.
8120 * f-exp.y (yyerror): Constify.
8121 (struct token::oper): Constify.
8122 (struct f77_boolean_val::name): Constify.
8123 * f-lang.c (f_word_break_characters): Constify.
8124 * f-lang.h (f_yyerror): Constify.
8125 * fork-child.c (fork_inferior): Add cast.
8126 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8127 (new_variant): Constify.
8128 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8129 * gdbarch.c: Regenerate.
8130 * gdbcore.h (set_gnutarget): Constify.
8131 * go-exp.y (yyerror): Constify.
8132 (token::oper): Constify.
8133 * go-lang.h (go_yyerror): Constify.
8134 * go32-nat.c (go32_sysinfo): Constify.
8135 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8136 * guile/scm-cmd.c (cmdscm_function): Constify.
8137 * guile/scm-param.c (pascm_param_value): Constify.
8138 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8139 (h8300sx_register_name): Constify.
8140 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8141 Constify.
8142 * ia64-tdep.c (ia64_register_names): Constify.
8143 * infcmd.c (construct_inferior_arguments): Constify.
8144 (path_command, attach_post_wait): Constify.
8145 * language.c (show_range_command, show_case_command)
8146 (unk_lang_error): Constify.
8147 * language.h (language_defn::la_error)
8148 (language_defn::la_name_of_this): Constify.
8149 * linespec.c (decode_line_2): Constify.
8150 * linux-thread-db.c (thread_db_err_str): Constify.
8151 * lm32-tdep.c (lm32_register_name): Constify.
8152 * m2-exp.y (yyerror): Constify.
8153 * m2-lang.h (m2_yyerror): Constify.
8154 * m32r-tdep.c (m32r_register_names): Constify and make static.
8155 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8156 * m88k-tdep.c (m88k_register_name): Constify.
8157 * macroexp.c (appendmem): Constify.
8158 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8159 (upgrade_type, parse_external, parse_partial_symbols)
8160 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8161 (new_symbol): Constify.
8162 * memattr.c (mem_info_command): Constify.
8163 * mep-tdep.c (register_name_from_keyword): Constify.
8164 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8165 Constify.
8166 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8167 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8168 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8169 cast.
8170 (mi_execute_async_cli_command): Constify.
8171 * mips-tdep.c (mips_register_name): Constify.
8172 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8173 (am33_register_name, am33_2_register_name)
8174 * moxie-tdep.c (moxie_register_names): Constify.
8175 * nat/linux-osdata.c (osdata_type): Constify fields.
8176 * nto-tdep.c (nto_parse_redirection): Constify.
8177 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8178 (lookup_child_selector): Constify.
8179 (objc_methcall::name): Constify.
8180 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8181 (lookup_struct_typedef): Constify.
8182 * objfiles.c (pc_in_section): Constify.
8183 * objfiles.h (pc_in_section): Constify.
8184 * p-exp.y (struct token::oper): Constify.
8185 (yyerror): Constify.
8186 * p-lang.h (pascal_yyerror): Constify.
8187 * parser-defs.h (op_name_standard): Constify.
8188 (op_print::string): Constify.
8189 (exp_descriptor::op_name): Constify.
8190 * printcmd.c (print_address_symbolic): Constify.
8191 * psymtab.c (print_partial_symbols): Constify.
8192 * python/py-breakpoint.c (stop_func): Constify.
8193 (bppy_get_expression): Constify.
8194 * python/py-cmd.c (cmdpy_completer::name): Constify.
8195 (cmdpy_function): Constify.
8196 * python/py-event.c (evpy_add_attribute)
8197 (gdbpy_initialize_event_generic): Constify.
8198 * python/py-event.h (evpy_add_attribute)
8199 (gdbpy_initialize_event_generic): Constify.
8200 * python/py-evts.c (add_new_registry): Constify.
8201 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8202 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8203 * python/py-inferior.c (get_buffer): Add cast.
8204 * python/py-param.c (parm_constant::name): Constify.
8205 * python/py-unwind.c (fprint_frame_id): Constify.
8206 * python/python.c (gdbpy_parameter_value): Constify.
8207 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8208 * remote.c (memory_packet_config::name): Constify.
8209 (show_packet_config_cmd, remote_write_bytes)
8210 (remote_buffer_add_string):
8211 * reverse.c (exec_reverse_once): Constify.
8212 * rs6000-tdep.c (variant::name, variant::description): Constify.
8213 * rust-exp.y (rustyyerror): Constify.
8214 * rust-lang.c (rust_op_name): Constify.
8215 * rust-lang.h (rustyyerror): Constify.
8216 * serial.h (serial_ops::name): Constify.
8217 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8218 (sh_sh3e_register_name, sh_sh2e_register_name)
8219 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8220 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8221 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8222 (sh_sh4al_dsp_register_name): Constify.
8223 * sh64-tdep.c (sh64_register_name): Constify.
8224 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8225 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8226 * stabsread.c (patch_block_stabs, read_type_number)
8227 (ref_map::stabs, ref_add, process_reference)
8228 (symbol_reference_defined, define_symbol, define_symbol)
8229 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8230 (read_one_struct_field, read_struct_fields, read_baseclasses)
8231 (read_tilde_fields, read_struct_type, read_array_type)
8232 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8233 (read_huge_number, read_range_type, read_args, common_block_start)
8234 (find_name_end): Constify.
8235 * stabsread.h (common_block_start, define_symbol)
8236 (process_one_symbol, symbol_reference_defined, ref_add):
8237 * symfile.c (get_section_index, add_symbol_file_command):
8238 * symfile.h (get_section_index): Constify.
8239 * target-descriptions.c (tdesc_type::name): Constify.
8240 (tdesc_free_type): Add cast.
8241 * target.c (find_default_run_target):
8242 (add_deprecated_target_alias, find_default_run_target)
8243 (target_announce_detach): Constify.
8244 (do_option): Constify.
8245 * target.h (add_deprecated_target_alias): Constify.
8246 * thread.c (print_thread_info_1): Constify.
8247 * top.c (deprecated_readline_begin_hook, command_line_input):
8248 Constify.
8249 (init_main): Add casts.
8250 * top.h (handle_line_of_input): Constify.
8251 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8252 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8253 (tfind_command): Rename to ...
8254 (tfind_command_1): ... this and constify.
8255 (tfind_command): New function.
8256 (tfind_end_command, tfind_start_command): Adjust.
8257 (encode_source_string): Constify.
8258 * tracepoint.h (encode_source_string): Constify.
8259 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8260 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8261 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8262 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8263 * tui/tui-win.c (parse_scrolling_args): Constify.
8264 * tui/tui-windata.c (tui_erase_data_content): Constify.
8265 * tui/tui-windata.h (tui_erase_data_content): Constify.
8266 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8267 * tui/tui.c (tui_enable): Add cast.
8268 * utils.c (defaulted_query): Constify.
8269 (init_page_info): Add cast.
8270 (puts_debug, subset_compare): Constify.
8271 * utils.h (subset_compare): Constify.
8272 * varobj.c (varobj_format_string): Constify.
8273 * varobj.h (varobj_format_string): Constify.
8274 * vax-tdep.c (vax_register_name): Constify.
8275 * windows-nat.c (windows_detach): Constify.
8276 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8277 * xml-support.c (gdb_xml_end_element): Constify.
8278 * xml-tdesc.c (tdesc_start_reg): Constify.
8279 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8280 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8281 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8282
8283 2017-04-05 Pedro Alves <palves@redhat.com>
8284
8285 * proc-api.c (struct trans): Constify.
8286 (procfs_note): Constify.
8287 * proc-events.c (struct trans, syscall_table):
8288 * proc-flags.c (struct trans): Constify.
8289 * proc-utils.h (procfs_note): Constify.
8290 * proc-why.c (struct trans): Constify.
8291 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8292 (procfs_detach): Constify.
8293 * sol-thread.c (struct string_map): Constify.
8294 (td_err_string, td_state_string): Constify.
8295
8296 2017-04-05 Pedro Alves <palves@redhat.com>
8297
8298 * proc-api.c (procfs_filename): Don't initialize
8299 procfs_filename.
8300 (prepare_to_trace): Assume procfs_filename is non-NULL.
8301 (_initialize_proc_api): Give procfs_filename a default value here.
8302
8303 2017-04-05 Pedro Alves <palves@redhat.com>
8304
8305 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8306 'cond_string' parameter.
8307 (extract_exception_regexp): Constify 'string' parameter.
8308 (catch_exception_command_1): Constify.
8309 * breakpoint.c (init_catchpoint)
8310 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8311 parameter.
8312 (ep_parse_optional_if_clause, catch_fork_command_1)
8313 (catch_exec_command_1): Constify.
8314 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8315 parameter.
8316 (ep_parse_optional_if_clause): Constify.
8317 * cli/cli-utils.c (remove_trailing_whitespace)
8318 (check_for_argument): Constify.
8319 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8320 non-const overload.
8321 (check_for_argument): Likewise.
8322
8323 2017-04-05 Pedro Alves <palves@redhat.com>
8324
8325 * event-top.c (command_line_handler): Add cast to execute_command
8326 call.
8327 * record-btrace.c (cmd_record_btrace_bts_start)
8328 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8329 (cmd_record_btrace_start): Add cast to execute_command call.
8330 * record-full.c (record_full_goto_insn):
8331 * record.c (record_start, record_stop): Add cast to
8332 execute_command_to_string calls.
8333 (cmd_record_start): Add cast to execute_command calls.
8334
8335 2017-04-05 Pedro Alves <palves@redhat.com>
8336
8337 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8338 static inline function.
8339 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8340 array and use gdb_PyArg_ParseTupleAndKeywords.
8341 * python/py-cmd.c (cmdpy_init): Likewise.
8342 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8343 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8344 (infpy_search_memory): Likewise.
8345 * python/py-objfile.c (objfpy_add_separate_debug_file)
8346 (gdbpy_lookup_objfile): Likewise.
8347 * python/py-symbol.c (gdbpy_lookup_symbol)
8348 (gdbpy_lookup_global_symbol): Likewise.
8349 * python/py-type.c (gdbpy_lookup_type): Likewise.
8350 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8351 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8352 Likewise.
8353
8354 2017-04-05 Pedro Alves <palves@redhat.com>
8355
8356 * python/python-internal.h (gdb_PyGetSetDef): New type.
8357 * python/py-block.c (block_object_getset)
8358 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8359 * python/py-event.c (event_object_getset)
8360 (finish_breakpoint_object_getset): Likewise.
8361 * python/py-inferior.c (inferior_object_getset): Likewise.
8362 * python/py-infthread.c (thread_object_getset): Likewise.
8363 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8364 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8365 * python/py-objfile.c (objfile_getset): Likewise.
8366 * python/py-progspace.c (pspace_getset): Likewise.
8367 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8368 Likewise.
8369 * python/py-record.c (recpy_record_getset): Likewise.
8370 * python/py-symbol.c (symbol_object_getset): Likewise.
8371 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8372 Likewise.
8373 * python/py-type.c (type_object_getset, field_object_getset):
8374 Likewise.
8375 * python/py-value.c (value_object_getset): Likewise.
8376
8377 2017-04-05 Pedro Alves <palves@redhat.com>
8378
8379 * python/python-internal.h (gdb_PyObject_CallMethod)
8380 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8381 New functions.
8382 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8383 (PySys_GetObject, PySys_SetPath): New macros.
8384
8385 2017-04-05 Pedro Alves <palves@redhat.com>
8386
8387 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8388 info_osdata_command.
8389 * osdata.c (info_osdata_command): Rename to ...
8390 (info_osdata): ... this. Constify 'type' parameter, and remove
8391 the 'from_tty' parameter. Accept NULL TYPE.
8392 (info_osdata_command): New function.
8393 * osdata.h (info_osdata_command): Remove declaration.
8394 (info_osdata): New declaration.
8395
8396 2017-04-05 Pedro Alves <palves@redhat.com>
8397
8398 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8399 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8400 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8401 parameter.
8402 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8403 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8404 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8405 parameter.
8406 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8407 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8408 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8409 (mi_cmd_file_list_exec_source_files)
8410 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8411 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8412 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8413 parameter.
8414 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8415 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8416 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8417 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8418 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8419 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8420 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8421 'command' parameter.
8422 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8423 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8424 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8425 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8426 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8427 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8428 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8429 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8430 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8431 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8432 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8433 parameter.
8434 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8435 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8436 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8437 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8438 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8439 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8440 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8441 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8442 (mi_cmd_data_list_changed_registers)
8443 (mi_cmd_data_write_register_values)
8444 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8445 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8446 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8447 (mi_cmd_list_features, mi_cmd_list_target_features)
8448 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8449 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8450 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8451 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8452 (mi_cmd_trace_frame_collected): Constify 'command'
8453 parameter.
8454 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8455 'command' parameter.
8456
8457 2017-04-05 Pedro Alves <palves@redhat.com>
8458
8459 * ada-lang.c (ada_completer_word_break_characters): Now a const
8460 array.
8461 (ada_get_gdb_completer_word_break_characters): Constify.
8462 * completer.c (gdb_completer_command_word_break_characters)
8463 (gdb_completer_file_name_break_characters)
8464 (gdb_completer_quote_characters): Now const arrays.
8465 (get_gdb_completer_quote_characters): Constify.
8466 (set_rl_completer_word_break_characters): New function.
8467 (set_gdb_completion_word_break_characters)
8468 (complete_line_internal): Use it.
8469 * completer.h (get_gdb_completer_quote_characters): Constify.
8470 (set_rl_completer_word_break_characters): Declare.
8471 * f-lang.c (f_word_break_characters): Constify.
8472 * language.c (default_word_break_characters): Constify.
8473 * language.h (language_defn::la_word_break_characters): Constify.
8474 (default_word_break_characters): Constify.
8475 * top.c (init_main): Use set_rl_completer_word_break_characters.
8476
8477 2017-04-05 Pedro Alves <palves@redhat.com>
8478
8479 * aix-thread.c (aix_thread_pid_to_str)
8480 (aix_thread_extra_thread_info): Constify.
8481 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8482 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8483 (bsd_uthread_pid_to_str): Constify.
8484 * corelow.c (core_pid_to_str): Constify.
8485 * darwin-nat.c (darwin_pid_to_str): Constify.
8486 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8487 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8488 Constify.
8489 * gnu-nat.c (gnu_pid_to_str): Constify.
8490 * go32-nat.c (go32_pid_to_str): Constify.
8491 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8492 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8493 * inferior.c (inferior_pid_to_str): Constify.
8494 * linux-nat.c (linux_nat_pid_to_str): Constify.
8495 * linux-tdep.c (linux_core_pid_to_str): Constify.
8496 * linux-thread-db.c (thread_db_pid_to_str)
8497 (thread_db_extra_thread_info): Constify.
8498 * nto-tdep.c (nto_extra_thread_info): Constify.
8499 * nto-tdep.h (nto_extra_thread_info): Constify.
8500 * obsd-nat.c (obsd_pid_to_str): Constify.
8501 * procfs.c (procfs_pid_to_str): Constify.
8502 * ravenscar-thread.c (ravenscar_extra_thread_info)
8503 (ravenscar_pid_to_str): Constify.
8504 * remote-sim.c (gdbsim_pid_to_str): Constify.
8505 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8506 Constify.
8507 * sol-thread.c (solaris_pid_to_str): Constify.
8508 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8509 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8510 * target.c (default_pid_to_str, target_pid_to_str)
8511 (normal_pid_to_str, default_pid_to_str): Constify.
8512 * target.h (target_ops::to_pid_to_str)
8513 (target_ops::to_extra_thread_info): Constify.
8514 (target_pid_to_str, normal_pid_to_str): Constify.
8515 * windows-nat.c (windows_pid_to_str): Constify.
8516 * gdbarch.sh (core_pid_to_str): Constify.
8517 * target-delegates.c: Regenerate.
8518 * gdbarch.h, gdbarch.c: Regenerate.
8519
8520 2017-04-05 Pedro Alves <palves@redhat.com>
8521
8522 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8523 the memory of the temporary warning_pre_print override.
8524 * utils.c (warning_pre_print): Constify.
8525 * utils.h (warning_pre_print): Constify.
8526
8527 2017-04-05 Pedro Alves <palves@redhat.com>
8528
8529 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8530 (shell_command): New function.
8531 (make_command): Use std::string.
8532 (init_cli_cmds): Register shell_command instead of shell_escape.
8533
8534 2017-04-05 Pedro Alves <palves@redhat.com>
8535
8536 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8537 * tracepoint.c (default_collect): Don't initialize.
8538
8539 2017-04-05 Pedro Alves <palves@redhat.com>
8540
8541 * macroexp.c (macro_buffer::shared): Now a bool.
8542 (init_buffer): Update.
8543 (init_shared_buffer): Constify 'addr' parameter.
8544 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8545 casts.
8546
8547 2017-04-05 Pedro Alves <palves@redhat.com>
8548
8549 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8550 * disasm.c (set_disassembler_options): Constify local.
8551 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8552
8553 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8554
8555 PR gdb/21352
8556 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8557 option.
8558
8559 2017-04-05 Yao Qi <yao.qi@linaro.org>
8560
8561 * frame.c (frame_unwind_register_unsigned): Call
8562 frame_unwind_register_value.
8563
8564 2017-04-05 Yao Qi <yao.qi@linaro.org>
8565
8566 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8567 Use gdb_test_multiple, and don't match anchor.
8568
8569 2017-04-05 Pedro Alves <palves@redhat.com>
8570
8571 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8572 (Write After Approval): Remove Simon Marchi.
8573
8574 2017-04-05 Pedro Alves <palves@redhat.com>
8575
8576 * common/gdb_optional.h (optional::optional): Make constexpr and
8577 initialize m_dummy.
8578
8579 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8580
8581 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8582 (amd64fbsd_jmp_buf_reg_offset): Remove.
8583 (amd64fbsd_supply_uthread): Remove function.
8584 (amd64fbsd_collect_uthread): Remove function.
8585 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8586 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8587 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8588 (fbsd-nat.c): Update comment.
8589 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8590 (i386fbsd_jmp_buf_reg_offset): Remove.
8591 (i386fbsd_supply_uthread): Remove function.
8592 (i386fbsd_collect_uthread): Remove function.
8593 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8594
8595 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8596
8597 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8598 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8599 * NEWS: Mention that support for FreeBSD/alpha was removed.
8600 * alpha-fbsd-tdep.c: Delete file.
8601 * config/alpha/fbsd.mh: Delete file.
8602 * configure.host: Delete alpha*-*-freebsd* and
8603 alpha*-*-kfreebsd*-gnu.
8604 * configure.tgt: Delete alpha*-*-freebsd* and
8605 alpha*-*-kfreebsd*-gnu.
8606
8607 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8608
8609 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8610 amd64bsd_store_inferior_registers): Use ptid from regcache.
8611
8612 2017-04-04 Pedro Alves <palves@redhat.com>
8613
8614 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8615 data fields, make them private and add "m_" prefixes.
8616 (lnp_state_machine::lnp_state_machine): New ctor.
8617 (record_line, check_line_address, handle_set_discriminator)
8618 (handle_set_address, handle_advance_pc, handle_special_opcode)
8619 (handle_advance_line, handle_set_file, handle_negate_stmt)
8620 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8621 (end_sequence, advance_line): New methods.
8622 (m_gdbarch, m_record_lines_p): New fields.
8623 (lnp_reader_state): Delete.
8624 (dwarf_record_line): Rename to ...
8625 (lnp_state_machine::record_line): ... adjust.
8626 (init_lnp_state_machine): Delete.
8627 (lnp_state_machine::lnp_state_machine): New.
8628 (check_line_address): Rename to ...
8629 (lnp_state_machine::check_line_address): This.
8630 (dwarf_decode_lines_1): Remove reference to "reader_state".
8631 Adjust lnp_state_machine having a non-default ctor. Use bool.
8632 State machine internal state manipulation moved to
8633 lnp_state_machine methods.
8634
8635 2017-04-04 Pedro Alves <palves@redhat.com>
8636
8637 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8638 unittests/offset-type-selftests.c.
8639 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8640 * common/offset-type.h: New file.
8641 * common/preprocessor.h: New file.
8642 * common/traits.h: New file.
8643 * common/valid-expr.h: New file.
8644 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8645 sect_offset and cu_offset strong typedefs throughout.
8646 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8647 typedefs throughout.
8648 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8649 sect_offset and cu_offset strong typedefs throughout.
8650 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8651 typedefs throughout.
8652 * gdbtypes.h: Include "common/offset-type.h".
8653 (cu_offset): Now an offset type (strong typedef) instead of a
8654 struct.
8655 (sect_offset): Likewise.
8656 (union call_site_parameter_u): Rename "param_offset" field to
8657 "param_cu_off".
8658 * unittests/offset-type-selftests.c: New file.
8659
8660 2017-04-04 Pedro Alves <palves@redhat.com>
8661
8662 * common/underlying.h: New file.
8663 * dwarf2read.c: Include "common/gdb_optional.h" and
8664 "common/underlying.h".
8665 (dir_index, file_name_index): New types.
8666 (file_entry): Use them.
8667 (file_entry::include): Use to_underlying.
8668 (line_header::add_file_name): Use dir_index.
8669 (read_formatted_entries): Use gdb::optional. Read form before
8670 writting to file_entry.
8671 (dwarf_decode_line_header): Use dir_index.
8672 (lnp_state_machine::current_file): Use to_underlying.
8673 (lnp_state_machine::file): Change type to file_name_index.
8674 (dwarf_record_line): Use to_underlying.
8675 (init_lnp_state_machine): Use file_name_index.
8676 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8677
8678 2017-04-04 Pedro Alves <palves@redhat.com>
8679
8680 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8681 operator bool, has_value and get methods.
8682
8683 2017-04-04 Pedro Alves <palves@redhat.com>
8684
8685 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8686 fields.
8687 (line_header): Initialize all data fields. Change type of
8688 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8689 Change type of include_dirs to std::vector<const char *>. Remove
8690 num_include_dirs, include_dirs_size. Change type of file_names to
8691 std::vector<file_entry>. Remove num_file_names, file_names_size.
8692 (line_header::line_header): New.
8693 (line_header::add_include_dir, line_header::add_file_name): New
8694 methods.
8695 (line_header::include_dir_at): Remove NULL check.
8696 (line_header::file_name_at): Add const overload.
8697 (line_header_up): New unique_ptr typedef.
8698 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8699 std::vector. Remove free_line_header call.
8700 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8701 free_line_header call.
8702 (free_cu_line_header): Delete.
8703 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8704 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8705 Adjust to use std::vector.
8706 (free_line_header): Delete.
8707 (free_line_header_voidp): Use delete.
8708 (add_include_dir): Replace with ...
8709 (line_header::add_include_dir): ... this method. Use std::vector.
8710 (add_file_name): Replace with ...
8711 (line_header::add_file_name): ... this method. Use std::vector.
8712 (add_include_dir_stub): Delete.
8713 (read_formatted_entries): Remove memset.
8714 (dwarf_decode_line_header): Return a line_header_up instead of a
8715 raw pointer. Remove cleanup handling. Pass lambdas to
8716 read_formatted_entries. Adjust to use line_header methods.
8717 (dwarf_decode_lines_1): Adjust to use line_header methods.
8718 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8719 use std::vector.
8720
8721 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8722
8723 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8724 instead of struct ptid.
8725
8726 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8727
8728 * frame.c (get_frame_register_bytes): Unwind using value.
8729 (put_frame_register_bytes): Likewise.
8730
8731 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8732
8733 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8734 aggregate-like.
8735
8736 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8737
8738 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8739
8740 2017-03-29 Yao Qi <yao.qi@linaro.org>
8741
8742 * gdbthread.h (struct thread_info): Declare constructor and
8743 destructor. Add some in-class member initializers.
8744 * thread.c (free_thread): Remove.
8745 (init_thread_list): Call delete instead of free_thread.
8746 (new_thread): Call thread_info constructor.
8747 (thread_info::thread_info): New function.
8748 (thread_info::~thread_info): New function.
8749 (delete_thread_1): Call delete instead of free_thread.
8750 (make_cleanup_restore_current_thread): Move tp and frame to
8751 inner block.
8752
8753 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8754
8755 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8756 (arc_skip_prologue): Likewise.
8757 (arc_make_frame_cache): Likewise.
8758 (arc_pv_get_operand): New function.
8759 (arc_is_in_prologue): Likewise.
8760 (arc_analyze_prologue): Likewise.
8761 (arc_print_frame_cache): Likewise.
8762 (MAX_PROLOGUE_LENGTH): New constant.
8763
8764 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8765
8766 * configure.tgt: Add arc-insn.o.
8767 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8768 (dump_arc_instruction_command): New function.
8769 (arc_fprintf_disasm): Likewise.
8770 (arc_disassemble_info): Likewise.
8771 (arc_insn_get_operand_value): Likewise.
8772 (arc_insn_get_operand_value_signed): Likewise.
8773 (arc_insn_get_memory_base_reg): Likewise.
8774 (arc_insn_get_memory_offset): Likewise.
8775 (arc_insn_get_branch_target): Likewise.
8776 (arc_insn_dump): Likewise.
8777 (arc_insn_get_linear_next_pc): Likewise.
8778 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8779 (arc_disassemble_info): Likewise.
8780 (arc_insn_get_branch_target): Likewise.
8781 (arc_insn_get_linear_next_pc): Likewise.
8782 * NEWS: Mention new "maint print arc arc-instruction".
8783
8784 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8785
8786 * arc-tdep (maintenance_print_arc_list): New variable.
8787 (maintenance_print_arc_command): New function.
8788
8789 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8790
8791 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8792 Add "limm" and "reserved".
8793 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8794 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8795 * arc-tdep.h (arc_regnum): Likewise.
8796
8797 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8798
8799 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8800 for THREADPTR register.
8801 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8802 register.
8803 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8804 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8805 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8806
8807 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8808
8809 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8810 registers above gdbarch_num_regs (gdbarch) as privileged in
8811 call0 ABI.
8812
8813 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8814
8815 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8816 for a single specified register or for all registers in
8817 a0_base..a0_base + C0_NREGS range.
8818 (supply_gregset_reg): Call regcache_raw_supply for a single
8819 specified register or for all registers in a0_base..a0_base +
8820 C0_NREGS range.
8821
8822 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8823
8824 * arch/xtensa.h (C0_NREGS): Add definition.
8825 * xtensa-tdep.c (C0_NREGS): Remove definition.
8826
8827 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8828
8829 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8830 Drop xtensa_default_isa initialization.
8831 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8832
8833 2017-03-27 Pedro Alves <palves@redhat.com>
8834
8835 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8836 (file_entry::include_dir): New method.
8837 (line_header::include_dir_at, line_header::file_name_at): New
8838 methods.
8839 (setup_type_unit_groups, setup_type_unit_groups)
8840 (psymtab_include_file_name): Simplify using the new methods.
8841 (lnp_state_machine) <the_line_header>: New field.
8842 <file>: Add comment.
8843 (lnp_state_machine::current_file): New method.
8844 (dwarf_record_line): Simplify using the new methods.
8845 (init_lnp_state_machine): Initialize the "the_line_header" field.
8846 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8847 Simplify using the new methods.
8848
8849 2017-03-27 Pedro Alves <palves@redhat.com>
8850
8851 * cp-name-parser.y (make_empty): Delete.
8852 (demangler_special, nested_name, ptr_operator, array_indicator)
8853 (direct_declarator, declarator_1): Use fill_comp instead of
8854 make_empty.
8855
8856 2017-03-27 Pedro Alves <palves@redhat.com>
8857
8858 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8859 to ATTRIBUTE_PRINTF.
8860 * solib-target.c (library_list_start_list): Print "string" not
8861 "version".
8862 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8863 gdb_xml_error call.
8864
8865 2017-03-27 Pedro Alves <palves@redhat.com>
8866
8867 * dwarf2read.c (struct file_and_directory): New.
8868 (dwarf2_get_dwz_file): Adjust to use std::string.
8869 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8870 (find_file_and_directory): Adjust to return a file_and_directory
8871 object.
8872 (read_file_scope): Adjust to use file_and_directory. Remove
8873 make_cleanup/do_cleanups calls.
8874 (open_and_init_dwp_file): Adjust to use std::string. Remove
8875 make_cleanup/do_cleanups calls.
8876 * python/python.c (do_start_initialization): Adjust to ldirname
8877 returning a std::string.
8878 * utils.c (ldirname): Now returns a std::string.
8879 * utils.h (ldirname): Change return type to std::string.
8880 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8881 returning a std::string.
8882 * xml-tdesc.c (file_read_description_xml): Likewise.
8883
8884 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8885
8886 * regcache.c (regcache_debug_print_register): New function.
8887 * regcache.h (regcache_debug_print_register): New declaration.
8888 * target.c (debug_print_register): Remove.
8889 (target_fetch_registers): Call regcache_debug_print_register.
8890 (target_store_registers): Likewise.
8891
8892 2017-03-24 Pádraig Brady <pbrady@fb.com>
8893
8894 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8895 reference beyond the 'lh->include_dirs' array before accessing to
8896 it.
8897 (psymtab_include_file_name): Likewise.
8898 (dwarf_decode_lines_1): Likewise.
8899 (dwarf_decode_lines): Likewise.
8900 (file_file_name): Likewise.
8901
8902 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8903
8904 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8905 inferior_ptid.
8906 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8907 ps_lsetfpregs): Likewise.
8908 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8909 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8910 ps_lsetfpregs): Likewise.
8911 * target.c (target_fetch_registers, target_store_registers):
8912 Remove asserts.
8913
8914 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8915
8916 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8917
8918 2017-03-23 Yao Qi <yao.qi@linaro.org>
8919
8920 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8921 (_initialize_aarch64_tdep): Register it.
8922 (aarch64_record_load_store): Handle PRFM instruction.
8923 (aarch64_process_record_test): New function.
8924
8925 2017-03-23 Yao Qi <yao.qi@linaro.org>
8926
8927 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8928 indentation.
8929
8930 2017-03-23 Yao Qi <yao.qi@linaro.org>
8931
8932 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8933
8934 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8935
8936 python/python.c (do_start_initialization): Fix memory leak.
8937
8938 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8939
8940 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8941 using get_ptrace_pid.
8942 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8943 inferior_ptid.
8944 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8945 inferior_ptid instead of pid.
8946
8947 2017-03-22 Yao Qi <yao.qi@linaro.org>
8948
8949 * aarch64-tdep.c: Wrap locally used classes in anonymous
8950 namespace.
8951 * arm-tdep.c: Likewise.
8952 * linespec.c: Likewise.
8953 * ui-out.c: Likewise.
8954
8955 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8956
8957 PR gdb/19637
8958 * python/lib/gdb/printer/bound_registers.py: Import sys.
8959
8960 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8961
8962 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8963 windows_thread_info parameter and use it instead of
8964 current_thread.
8965 (windows_fetch_inferior_registers): Don't set current_thread,
8966 pass the thread to do_windows_fetch_inferior_registers. Use
8967 ptid from regcache instead of inferior_ptid.
8968 (do_windows_store_inferior_registers): Add windows_thread_info
8969 parameter and use it instead of current_thread.
8970 (windows_store_inferior_registers): Don't set current_thread,
8971 pass the thread to do_windows_store_inferior_registers. Use
8972 ptid from regcache instead of inferior_ptid.
8973
8974 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8975
8976 * ser-mingw.c (ser_windows_raw): Remove reference to
8977 struct serial::current_timeout.
8978
8979 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8980
8981 PR tdep/20928
8982 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8983 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8984 (sparc64_fsr_type): Fix %fsr decoding.
8985
8986 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8987
8988 * python/py-record-btrace.c (btpy_insn_data): Change return type
8989 for Python 2.
8990
8991 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
8992
8993 * spu-linux-nat.c (spu_fetch_inferior_registers,
8994 spu_store_inferior_registers): Use ptid from regcache, set and
8995 restore inferior_ptid.
8996 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
8997 Likewise.
8998
8999 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9000
9001 * i386-linux-nat.c (fetch_register, store_register,
9002 i386_linux_fetch_inferior_registers,
9003 i386_linux_store_inferior_registers): Use ptid from regcache.
9004 * ia64-linux-nat.c (ia64_linux_fetch_register,
9005 ia64_linux_store_register): Likewise.
9006 * inf-ptrace.c (inf_ptrace_fetch_register,
9007 inf_ptrace_store_register): Likewise.
9008 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9009 m32r_linux_store_inferior_registers): Likewise.
9010 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9011 m68kbsd_store_inferior_registers): Likewise.
9012 * m68k-linux-nat.c (fetch_register, store_register,
9013 m68k_linux_fetch_inferior_registers,
9014 m68k_linux_store_inferior_registers): Likewise.
9015 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9016 m88kbsd_store_inferior_registers): Likewise.
9017 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9018 mips_fbsd_store_inferior_registers): Likewise.
9019 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9020 mips64_linux_regsets_store_registers): Likewise.
9021 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9022 mipsnbsd_store_inferior_registers): Likewise.
9023 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9024 mips64obsd_store_inferior_registers): Likewise.
9025 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9026 Likewise.
9027 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9028 ppcfbsd_store_inferior_registers): Likewise.
9029 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9030 ppc_linux_store_inferior_registers): Likewise.
9031 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9032 ppcnbsd_store_inferior_registers): Likewise.
9033 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9034 ppcobsd_store_registers): Likewise.
9035 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9036 Likewise.
9037 * ravenscar-thread.c (ravenscar_fetch_registers,
9038 ravenscar_store_registers, ravenscar_prepare_to_store):
9039 Likewise.
9040 * record-btrace.c (record_btrace_fetch_registers,
9041 record_btrace_store_registers, record_btrace_prepare_to_store):
9042 Likewise.
9043 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9044 Lookup inferior using ptid from regcache, instead of
9045 current_inferior.
9046 * remote.c (remote_fetch_registers, remote_store_registers): Use
9047 ptid from regcache.
9048 * rs6000-nat.c (fetch_register, store_register): Likewise.
9049 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9050 s390_linux_store_inferior_registers): Likewise.
9051 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9052 shnbsd_store_inferior_registers): Likewise.
9053 * sol-thread.c (sol_thread_fetch_registers,
9054 sol_thread_store_registers): Likewise.
9055 * sparc-nat.c (sparc_fetch_inferior_registers,
9056 sparc_store_inferior_registers): Likewise.
9057 * tilegx-linux-nat.c (fetch_inferior_registers,
9058 store_inferior_registers): Likewise.
9059 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9060 vaxbsd_store_inferior_registers): Likewise.
9061 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9062 store_xtregs): Likewise.
9063
9064 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9065
9066 PR gdb/14441
9067 * NEWS: Mention support for rvalue references in GDB and python.
9068 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9069 supports both lvalue and rvalue references.
9070
9071 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9072
9073 PR gdb/14441
9074 * gdbtypes.c (rank_one_type): Implement overloading
9075 resolution rules regarding rvalue references.
9076
9077 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9078
9079 PR gdb/14441
9080 * aarch64-tdep.c (aarch64_type_align)
9081 (aarch64_extract_return_value, aarch64_store_return_value): Change
9082 lvalue reference type checks to general reference type checks.
9083 * amd64-tdep.c (amd64_classify): Likewise.
9084 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9085 Likewise.
9086 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9087 (arm_store_return_value): Likewise.
9088 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9089 * c-typeprint.c (c_print_type): Likewise.
9090 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9091 (cplus_number_of_children, cplus_describe_child): Likewise.
9092 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9093 * completer.c (expression_completer): Likewise.
9094 * cp-support.c (make_symbol_overload_list_adl_namespace):
9095 Likewise.
9096 * darwin-nat-info.c (info_mach_region_command): Likewise.
9097 * dwarf2loc.c (entry_data_value_coerce_ref)
9098 (value_of_dwarf_reg_entry): Likewise.
9099 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9100 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9101 Likewise.
9102 * findvar.c (extract_typed_address, store_typed_address):
9103 Likewise.
9104 * gdbtypes.c (rank_one_type): Likewise.
9105 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9106 * infcall.c (value_arg_coerce): Likewise.
9107 * language.c (pointer_type): Likewise.
9108 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9109 Likewise.
9110 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9111 * mn10300-tdep.c (mn10300_type_align): Likewise.
9112 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9113 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9114 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9115 Likewise.
9116 * printcmd.c (print_formatted, x_command): Likewise.
9117 * python/py-type.c (typy_get_composite, typy_template_argument):
9118 Likewise.
9119 * python/py-value.c (valpy_referenced_value)
9120 (valpy_get_dynamic_type, value_has_field): Likewise.
9121 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9122 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9123 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9124 * spu-tdep.c (spu_scalar_value_p): Likewise.
9125 * symtab.c (lookup_symbol_aux): Likewise.
9126 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9127 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9128 Likewise.
9129 * valops.c (value_cast_pointers, value_cast)
9130 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9131 (value_struct_elt, value_struct_elt_bitpos)
9132 (value_find_oload_method_list, find_overload_match)
9133 (value_rtti_indirect_type): Likewise.
9134 * valprint.c (val_print_scalar_type_p, generic_val_print):
9135 Likewise.
9136 * value.c (value_actual_type, value_as_address, unpack_long)
9137 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9138 (coerce_ref): Likewise.
9139 * varobj.c (varobj_get_value_type): Likewise.
9140
9141 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9142
9143 PR gdb/14441
9144 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9145 table of constants.
9146 * python/lib/gdb/command/explore.py: Support exploring values
9147 of rvalue reference types.
9148 * python/lib/gdb/types.py: Implement get_basic_type() for
9149 rvalue reference types.
9150 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9151 constant.
9152 * python/py-value.c (valpy_getitem): Add an rvalue reference
9153 check.
9154 (valpy_reference_value): Add new parameter "refcode".
9155 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9156 New wrappers for valpy_reference_value().
9157 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9158 (gdbpy_invoke_xmethod): Likewise.
9159
9160 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9161
9162 PR gdb/14441
9163 * dwarf2read.c (process_die, read_type_die_1): Handle the
9164 DW_TAG_rvalue_reference_type DIE.
9165 (read_tag_reference_type): Add new parameter "refcode".
9166
9167 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9168
9169 PR gdb/14441
9170 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9171 (c_type_print_modifier, c_type_print_varspec_suffix)
9172 (c_type_print_base): Support printing rvalue reference types.
9173 * c-valprint.c (c_val_print, c_value_print): Support printing
9174 rvalue reference values.
9175
9176 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9177
9178 PR gdb/14441
9179 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9180 typename.
9181 * cp-support.c (replace_typedefs): Handle
9182 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9183 * python/py-type.c (typy_lookup_type): Likewise.
9184
9185 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9186
9187 PR gdb/14441
9188 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9189 * parse.c (insert_type): Change assert statement.
9190 (follow_types): Handle rvalue reference types.
9191 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9192 constant.
9193
9194 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9195
9196 PR gdb/14441
9197 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9198 value_ref() interface.
9199 * c-valprint.c (c_value_print): Likewise.
9200 * infcall.c (value_arg_coerce): Likewise.
9201 * python/py-value.c (valpy_reference_value): Likewise.
9202 * valops.c (value_cast, value_reinterpret_cast)
9203 (value_dynamic_cast, typecmp): Likewise.
9204 (value_ref): Parameterize by kind of return value reference type.
9205 * value.h (value_ref): Add new parameter "refcode".
9206
9207 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9208
9209 PR gdb/14441
9210 * dwarf2read.c (read_tag_reference_type): Use
9211 lookup_lvalue_reference_type() instead of lookup_reference_type().
9212 * eval.c (evaluate_subexp_standard): Likewise.
9213 * f-exp.y: Likewise.
9214 * gdbtypes.c (make_reference_type, lookup_reference_type):
9215 Generalize with rvalue reference types.
9216 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9217 convenience wrappers for lookup_reference_type().
9218 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9219 reference kind parameter.
9220 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9221 wrappers for lookup_reference_type().
9222 * guile/scm-type.c (gdbscm_type_reference): Use
9223 lookup_lvalue_reference_type() instead of lookup_reference_type().
9224 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9225 * parse.c (follow_types): Likewise.
9226 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9227 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9228 Likewise.
9229 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9230 (gdbpy_invoke_xmethod): Likewise.
9231 * stabsread.c: Provide extra argument to make_reference_type()
9232 call.
9233 * valops.c (value_ref, value_rtti_indirect_type): Use
9234 lookup_lvalue_reference_type() instead of lookup_reference_type().
9235
9236 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9237
9238 PR gdb/14441
9239 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9240 (TYPE_IS_REFERENCE): New macro.
9241 (struct type): Add rvalue_reference_type field.
9242 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9243
9244 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9245
9246 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9247 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9248 New function definition.
9249 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9250 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9251 New function declaration.
9252 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9253 * mi/mi-interp.h: New file.
9254 * solib.c (info_sharedlibrary_command): Replace for loop with
9255 ALL_SO_LIBS macro
9256 * solib.h (update_solib_list): New function declaration.
9257 (so_list_head): Move macro.
9258 * solist.h (ALL_SO_LIBS): New macro.
9259
9260 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9261
9262 * infcmd.c (post_create_inferior): Remove unused argument in
9263 call to solib_add.
9264 * remote.c (remote_start_remote): Likewise.
9265 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9266 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9267 (enable_break): Likewise.
9268 * solib.c (update_solib_list): Remove unused target argument
9269 and its documentation.
9270 (solib_add): Remove unused target argument. Remove unused
9271 argument in call to update_solib_list.
9272 (info_sharedlibrary_command): Remove unused argument in call
9273 to update_solib_list.
9274 (sharedlibrary_command): Remove unused argument in call to
9275 solib_add.
9276 (handle_solib_event): Likewise.
9277 (reload_shared_libraries): Likewise.
9278 * solib.h (solib_add): Remove unused target argument.
9279
9280 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9281
9282 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9283 (s390_displaced_step_fixup): Cover relative branches with the
9284 default fixup handling. This fixes lack of support for some
9285 relative branch instructions.
9286
9287 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9288
9289 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9290 ptid from regcache.
9291
9292 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9293
9294 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9295 i386_darwin_store_inferior_registers): Use ptid from regcache.
9296
9297 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9298
9299 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9300 i386bsd_store_inferior_registers): Use ptid from regcache.
9301
9302 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9303
9304 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9305 hppaobsd_store_registers): Use ptid from regcache.
9306
9307 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9308
9309 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9310 hppanbsd_store_registers): Use ptid from regcache.
9311
9312 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9313
9314 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9315 from regcache. Use get_ptrace_pid.
9316
9317 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * corelow.c (get_core_register_section): Use ptid from regcache,
9320 update doc.
9321
9322 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * bsd-uthread.c (bsd_uthread_fetch_registers,
9325 bsd_uthread_store_registers): Use ptid from regcache, set and
9326 restore inferior_ptid.
9327
9328 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9331 fetch_fp_regs, store_register, store_regs, store_fp_register,
9332 store_fp_regs): Use ptid from regcache.
9333
9334 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9337 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9338 store_vfp_regs): Use ptid from regcache.
9339
9340 2017-03-17 Pedro Alves <palves@redhat.com>
9341
9342 PR remote/21188
9343 * ser-base.c (ser_base_wait_for): Add comment.
9344 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9345 version.
9346 * ser-unix.c (hardwire_raw): Remove reference to
9347 scb->current_timeout.
9348 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9349 (hardwire_ops): Install ser_base_readchar instead of
9350 hardwire_readchar.
9351 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9352 Remove fields.
9353
9354 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9355
9356 PR gdb/19637
9357 * python/lib/gdb/printer/bound_registers.py: Add support for
9358 Python 3.
9359
9360 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9361
9362 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9363 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9364 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9365 byte_offset to subobj_byte_offset. Fix the handling of
9366 DWARF_VALUE_STACK on big-endian targets when coming via an
9367 implicit pointer.
9368 (dwarf2_evaluate_loc_desc): Adjust call to
9369 dwarf2_evaluate_loc_desc_full.
9370 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9371 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9372
9373 2017-03-16 Yao Qi <yao.qi@linaro.org>
9374
9375 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9376 and REVSH instructions.
9377
9378 2017-03-16 Yao Qi <yao.qi@linaro.org>
9379
9380 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9381 (arm_record_test): Declare.
9382 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9383 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9384 align with the manual.
9385 (thumb_record_misc): Adjust the code order to align with the
9386 manual.
9387 (thumb2_record_decode_insn_handler): Fix instruction matching.
9388 (instruction_reader_thumb): New class.
9389 (arm_record_test): New function.
9390
9391 2017-03-16 Yao Qi <yao.qi@linaro.org>
9392
9393 * arm-tdep.c (abstract_memory_reader): New class.
9394 (instruction_reader): New class.
9395 (extract_arm_insn): Add argument 'reader'. Callers updated.
9396 (decode_insn): Likewise.
9397
9398 2017-03-16 Doug Evans <dje@google.com>
9399
9400 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9401 member. Change type of TYPE member to SCM. All uses updated.
9402 (lsscm_make_lazy_string_smob): Add assert.
9403 (lsscm_make_lazy_string): Flag bad length values.
9404 (lsscm_elt_type): New function.
9405 (gdbscm_lazy_string_to_value): Rewrite to use
9406 lsscm_safe_lazy_string_to_value.
9407 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9408 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9409 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9410 in incoming type.
9411 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9412 * guile/scm-type.c (tyscm_scm_to_type): New function.
9413
9414 2017-03-15 Doug Evans <dje@google.com>
9415
9416 PR python/17728, python/18439, python/18779
9417 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9418 member. Change type of TYPE member to PyObject *. All uses updated.
9419 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9420 (gdbpy_create_lazy_string_object): Flag bad length values.
9421 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9422 Handle typedefs in incoming type.
9423 (stpy_lazy_string_elt_type): New function.
9424 (gdbpy_extract_lazy_string): Call it.
9425 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9426 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9427 typedefs in incoming type.
9428
9429 2017-03-16 Doug Evans <dje@google.com>
9430
9431 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9432 * guile/scm-type.c (tyscm_scm_to_type): New function.
9433
9434 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9435
9436 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9437 "ULONGEST" for "skip".
9438
9439 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9440
9441 PR gdb/21220
9442 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9443 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9444 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9445 over ptrace peek/poke until end of buffer or error.
9446
9447 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9448
9449 * parse.c (length_of_subexp): Make static.
9450 * parser-defs.h (length_of_subexp): Remove.
9451
9452 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9453
9454 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9455 as well.
9456
9457 2017-03-14 Pedro Alves <palves@redhat.com>
9458
9459 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9460 (main): Use std::unique_ptr. Remove calls to
9461 cp_demangled_name_parse_free.
9462
9463 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9464
9465 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9466 alphabsd_store_inferior_registers): Use regcache->ptid instead
9467 of inferior_ptid.
9468
9469 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9470
9471 * aix-thread.c (aix_thread_fetch_registers,
9472 aix_thread_store_registers): Use regcache->ptid instead of
9473 inferior_ptid.
9474
9475 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9476
9477 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9478 store_gregs_to_thread, fetch_fpregs_from_thread,
9479 store_fpregs_to_thread): Use regcache->ptid instead of
9480 inferior_ptid.
9481
9482 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9483
9484 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9485 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9486 instead of inferior_ptid.
9487
9488 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9489
9490 * target.c (target_fetch_registers, target_store_registers): Add
9491 assert.
9492
9493 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9494
9495 * regcache.h (regcache_get_ptid): New function.
9496 * regcache.c (regcache_get_ptid): New function.
9497
9498 2017-03-13 Mark Wielaard <mark@klomp.org>
9499
9500 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9501
9502 2017-03-10 Keith Seitz <keiths@redhat.com>
9503
9504 PR c++/8218
9505 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9506
9507 2017-03-08 Pedro Alves <palves@redhat.com>
9508
9509 PR gdb/18360
9510 * infrun.c (start_step_over, do_target_resume, resume)
9511 (restart_threads): Assert we're not resuming a thread that is
9512 meant to be stopped.
9513 (infrun_thread_stop_requested_callback): Delete.
9514 (infrun_thread_stop_requested): If the thread is internally
9515 stopped, queue a pending stop event and clear the thread's
9516 inline-frame state.
9517 (handle_stop_requested): New function.
9518 (handle_syscall_event, handle_inferior_event_1): Use
9519 handle_stop_requested.
9520 (handle_stop_requested): New function.
9521 (handle_signal_stop): Set the thread's stop_signal here instead of
9522 at caller.
9523 (finish_step_over): Clear step over info unconditionally.
9524 (handle_signal_stop): If the user had interrupted the event
9525 thread, consider the stop a random signal.
9526 (handle_signal_stop) <signal arrived while stepping over
9527 breakpoint>: Don't restart threads here.
9528 (stop_waiting): Don't clear step-over info here.
9529
9530 2017-03-08 Pedro Alves <palves@redhat.com>
9531
9532 PR 21206
9533 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9534 goes to argument 2, not 1.
9535
9536 2017-03-08 Pedro Alves <palves@redhat.com>
9537
9538 PR cli/21218
9539 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9540 display_gdb_prompt.
9541 (command_line_input): Add comment.
9542
9543 2017-03-08 Pedro Alves <palves@redhat.com>
9544
9545 PR tui/21216
9546 * tui/tui-file.c (tui_file::write): New.
9547 * tui/tui-file.h (tui_file): Override "write".
9548 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9549 factored out from ...
9550 (tui_puts): ... here.
9551 (tui_putc): Use them.
9552 (tui_write): New function.
9553 * tui/tui-io.h (tui_write): Declare.
9554
9555 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9556
9557 * Makefile.in (SFILES): Replace "environ.c" with
9558 "common/environ.c".
9559 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9560 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9561 to...
9562 * common/environ.c: ... here.
9563 * environ.h: Moved to...
9564 * common/environ.h: ... here.
9565
9566 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9567
9568 * gdbarch.sh (pstring_ptr): New static function.
9569 (gdbarch_disassembler_options): Use it.
9570 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9571 not valid_disassembler_option->name.
9572 * gdbarch.c: Regenerate.
9573
9574 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9575
9576 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9577
9578 2017-03-07 Pedro Alves <palves@redhat.com>
9579
9580 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9581
9582 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9583
9584 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9585 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9586 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9587 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9588
9589 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9590
9591 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9592
9593 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9594
9595 * remote.c (remote_add_target_side_commands): Use range-based
9596 for loop.
9597
9598 2017-03-03 Yao Qi <yao.qi@linaro.org>
9599
9600 PR gdb/21165
9601 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9602 value is lazy.
9603 * valprint.c (common_val_print): Likewise.
9604
9605 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9606
9607 * NEWS: Mention new set/show disassembler-options commands.
9608 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9609 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9610 (prospective_options): New static variable.
9611 (gdb_disassembler::gdb_disassembler): Initialize
9612 m_di.disassembler_options.
9613 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9614 (get_disassembler_options): New function.
9615 (set_disassembler_options): Likewise.
9616 (set_disassembler_options_sfunc): Likewise.
9617 (show_disassembler_options_sfunc): Likewise.
9618 (disassembler_options_completer): Likewise.
9619 (_initialize_disasm): Likewise.
9620 * disasm.h (get_disassembler_options): New prototype.
9621 (set_disassembler_options): Likewise.
9622 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9623 (gdbarch_verify_disassembler_options): Likewise.
9624 * gdbarch.c: Regenerate.
9625 * gdbarch.h: Likewise.
9626 * arm-tdep.c (num_disassembly_options): Delete.
9627 (set_disassembly_style): Likewise.
9628 (arm_disassembler_options): New static variable.
9629 (set_disassembly_style_sfunc): Convert short style name into long
9630 option name. Call set_disassembler_options.
9631 (show_disassembly_style_sfunc): New function.
9632 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9633 set_gdbarch_verify_disassembler_options.
9634 (_initialize_arm_tdep): Delete regnames variable and update callers.
9635 (arm_disassembler_options): Initialize.
9636 (disasm_options): New variable.
9637 (num_disassembly_options): Rename from this...
9638 (num_disassembly_styles): ...to this. Compute by scanning through
9639 disasm_options.
9640 (valid_disassembly_styles): Initialize using disasm_options.
9641 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9642 set_arm_regname_option.
9643 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9644 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9645 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9646 set_gdbarch_verify_disassembler_options.
9647 * s390-tdep.c (s390_disassembler_options): New static variable.
9648 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9649 set_gdbarch_verify_disassembler_options.
9650
9651 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9652
9653 * remote.c (remote_add_target_side_condition): Remove "struct"
9654 keyword from range-based for loop.
9655
9656 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9657
9658 * remote.c (remote_add_target_side_condition): Use range-based
9659 for loop. Update comment.
9660
9661 2017-02-27 Yao Qi <yao.qi@linaro.org>
9662
9663 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9664
9665 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9666
9667 * regcache.c (regcache_raw_update): New function.
9668 (regcache_raw_read): Move code to regcache_raw_update.
9669 * regcache.h (regcache_raw_update): New declaration.
9670 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9671
9672 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 * dwarf2read.c (create_debug_type_hash_table): Initialize
9675 header.signature and header.type_offset_in_tu.
9676
9677 2017-02-24 Pedro Alves <palves@redhat.com>
9678
9679 * symtab.c (make_file_symbol_completion_list_1): Use
9680 add_symtab_completions.
9681
9682 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9683
9684 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9685
9686 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9687
9688 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9689 I386_MAX_REGISTER_SIZE.
9690 (i386_pseudo_register_write): Likewise.
9691 (i386_process_record): Likewise.
9692 * i387-tdep.c (i387_supply_xsave): Likewise.
9693 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9694 (store_register): Likewise.
9695
9696 2017-02-23 Pedro Alves <palves@redhat.com>
9697
9698 * ada-lang.c: Include "common/function-view.h".
9699 (ada_iterate_over_symbols): Adjust to use function_view as
9700 callback type.
9701 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9702 (ada_make_symbol_completion_list): Use a lambda.
9703 (ada_exc_search_name_matches): Delete.
9704 (name_matches_regex): New.
9705 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9706 * compile/compile-c-support.c: Include "common/function-view.h".
9707 (print_one_macro): Change prototype to accept a ui_file pointer.
9708 (write_macro_definitions): Use a lambda.
9709 * dwarf2read.c: Include "common/function-view.h".
9710 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9711 (dw2_expand_symtabs_matching): Adjust to use function_view as
9712 callback type.
9713 * language.h: Include "common/function-view.h".
9714 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9715 function_view as callback type.
9716 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9717 * linespec.c: Include "common/function-view.h".
9718 (collect_info::add_symbol): New method.
9719 (struct symbol_and_data_callback, iterate_inline_only, struct
9720 symbol_matcher_data, iterate_name_matcher): Delete.
9721 (iterate_over_all_matching_symtabs): Adjust to use function_view
9722 as callback type and lambdas.
9723 (iterate_over_file_blocks): Adjust to use function_view as
9724 callback type.
9725 (decode_compound_collector): Now a class with private fields.
9726 (decode_compound_collector::release_symbols): New method.
9727 (collect_one_symbol): Rename to...
9728 (decode_compound_collector::operator()): ... this and adjust.
9729 (lookup_prefix_sym): decode_compound_collector construction bits
9730 move to decode_compound_collector ctor. Pass the
9731 decode_compound_collector object directly as callback. Remove
9732 cleanups and use decode_compound_collector::release_symbols
9733 instead.
9734 (symtab_collector): Now a class with private fields.
9735 (symtab_collector::release_symtabs): New method.
9736 (add_symtabs_to_list): Rename to...
9737 (symtab_collector::operator()): ... this and adjust.
9738 (collect_symtabs_from_filename): symtab_collector construction
9739 bits move to symtab_collector ctor. Pass the symtab_collector
9740 object directly as callback. Remove cleanups and use
9741 symtab_collector::release_symtabs instead.
9742 (collect_symbols): Delete.
9743 (add_matching_symbols_to_info): Use lambdas.
9744 * macrocmd.c (print_macro_callback): Delete.
9745 (info_macro_command): Use a lambda.
9746 (info_macros_command): Pass print_macro_definition as callable
9747 directly.
9748 (print_one_macro): Remove 'ignore' parameter.
9749 (macro_list_command): Adjust.
9750 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9751 (macro_for_each_data::user_data): Delete field.
9752 (foreach_macro): Adjust to call the function_view.
9753 (macro_for_each): Adjust to use function_view as callback type.
9754 (foreach_macro_in_scope): Adjust to call the function_view.
9755 (macro_for_each_in_scope): Adjust to use function_view as callback
9756 type.
9757 * macrotab.h: Include "common/function-view.h".
9758 (macro_callback_fn): Declare a prototype instead of a pointer.
9759 Remove "user_data" parameter.
9760 (macro_for_each, macro_for_each_in_scope): Adjust to use
9761 function_view as callback type.
9762 * psymtab.c (partial_map_expand_apply)
9763 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9764 Adjust to use function_view as callback type and to return bool.
9765 (psym_expand_symtabs_matching): Adjust to use function_view as
9766 callback types.
9767 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9768 to use function_view as callback type and to return bool.
9769 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9770 callback types.
9771 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9772 as callback types.
9773 * symfile.h: Include "common/function-view.h".
9774 (expand_symtabs_file_matcher_ftype)
9775 (expand_symtabs_symbol_matcher_ftype)
9776 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9777 return bool.
9778 (quick_symbol_functions::map_symtabs_matching_filename)
9779 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9780 function_view as callback type and return bool.
9781 (expand_symtabs_matching): Adjust to use function_view as callback
9782 type.
9783 (maintenance_expand_name_matcher)
9784 (maintenance_expand_file_matcher): Delete.
9785 (maintenance_expand_symtabs): Use lambdas.
9786 * symtab.c (iterate_over_some_symtabs): Adjust to use
9787 function_view as callback types and return bool.
9788 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9789 of a cleanup.
9790 (lookup_symtab_callback): Delete.
9791 (lookup_symtab): Use a lambda.
9792 (iterate_over_symbols): Adjust to use function_view as callback
9793 type.
9794 (struct search_symbols_data, search_symbols_file_matches)
9795 (search_symbols_name_matches): Delete.
9796 (search_symbols): Use a pair of lambdas.
9797 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9798 (symtab_expansion_callback): Delete.
9799 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9800 * symtab.h: Include "common/function-view.h".
9801 (iterate_over_some_symtabs): Adjust to use function_view as
9802 callback type and return bool.
9803 (iterate_over_symtabs): Adjust to use function_view as callback
9804 type.
9805 (symbol_found_callback_ftype): Remove 'data' parameter and return
9806 bool.
9807 (iterate_over_symbols): Adjust to use function_view as callback
9808 type.
9809
9810 2017-02-23 Pedro Alves <palves@redhat.com>
9811
9812 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9813 (%.o) <unittests/%.c>: New pattern.
9814 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9815 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9816 * common/function-view.h: New file.
9817 * unittests/function-view-selftests.c: New file.
9818 * configure: Regenerate.
9819
9820 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9821
9822 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9823 inferior_ptid.
9824 * go32-nat.c (go32_thread_alive): Likewise.
9825
9826 2017-02-23 Yao Qi <yao.qi@linaro.org>
9827
9828 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9829 delete.
9830
9831 2017-02-23 Yao Qi <yao.qi@linaro.org>
9832
9833 * varobj.c (varobj_clear_saved_item): Use delete instead of
9834 xfree.
9835 (update_dynamic_varobj_children): Likewise.
9836
9837 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9838
9839 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9840
9841 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9842
9843 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9844 m_enum_value to 0 in default constructor.
9845
9846 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9847
9848 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9849 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9850 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9851 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9852 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9853 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9854 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9855 IS_STORE_CONDITIONAL_INSN.
9856
9857 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9860
9861 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9862
9863 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9864
9865 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 * dwarf2read.c (skip_one_die, read_attribute_value)
9868 (dwarf2_const_value_attr, dump_die_shallow)
9869 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9870 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9871
9872 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9873
9874 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9875 (dwarf_parse_macro_header): Accept DWARF version 5.
9876 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9877
9878 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9879
9880 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9881 DW_AT_GNU_*.
9882 * common/common-exceptions.h (enum errors): Likewise.
9883 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9884 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9885 (dwarf_expr_context::execute_stack_op): Likewise.
9886 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9887 Likewise.
9888 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9889 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9890 (show_entry_values_debug, call_site_to_target_addr)
9891 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9892 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9893 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9894 (value_of_dwarf_block_entry, indirect_pieced_value)
9895 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9896 (disassemble_dwarf_expression): Likewise.
9897 * dwarf2read.c (process_die, inherit_abstract_dies)
9898 (read_call_site_scope): Likewise.
9899 * gdbtypes.h (struct func_type, struct call_site_parameter)
9900 (struct call_site): Likewise.
9901 * stack.c (read_frame_arg): Likewise.
9902 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9903
9904 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9905
9906 * defs.h (read_unsigned_leb128): New declaration.
9907 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9908 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9909 (dwarf2_find_location_expression): Call also
9910 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9911 * dwarf2loc.h (dwarf2_version): New declaration.
9912 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9913 rnglists.
9914 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9915 .debug_rnglists.
9916 (struct dwop_section_names): Add loclists_dwo.
9917 (dwop_section_names): Add .debug_loclists.dwo.
9918 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9919 (struct dwarf2_per_cu_data): Add dwarf_version.
9920 (struct dwo_sections): Add loclists.
9921 (struct attr_abbrev): Add implicit_const.
9922 (read_indirect_line_string): New declaration.
9923 (read_unsigned_leb128): Delete declaration.
9924 (rcuh_kind): New definition.
9925 (read_and_check_comp_unit_head): Change parameter
9926 is_debug_types_section to section_kind.
9927 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9928 (read_comp_unit_head): Change parameter abfd to section, add parameter
9929 section_kind. Handle DWARF-5.
9930 (error_check_comp_unit_head): Accept also DWARF version 5.
9931 (read_and_check_comp_unit_head): Change parameter
9932 is_debug_types_section to section_kind.
9933 (read_and_check_type_unit_head): Delete function.
9934 (read_abbrev_offset): Handle DWARF-5.
9935 (create_debug_type_hash_table): Add parameter section_kind. Process
9936 only DW_UT_type. Use signature and type_offset_in_tu from struct
9937 comp_unit_head.
9938 (create_debug_types_hash_table): Update create_debug_type_hash_table
9939 caller.
9940 (create_all_type_units): Call create_debug_type_hash_table.
9941 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9942 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9943 caller.
9944 (skip_one_die): Handle DW_FORM_implicit_const.
9945 (dwarf2_rnglists_process): New function.
9946 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9947 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9948 (read_attribute_value): Handle DW_FORM_implicit_const,
9949 DW_FORM_line_strp.
9950 (read_attribute): Handle DW_FORM_implicit_const.
9951 (read_indirect_string_at_offset_from): New function from
9952 read_indirect_string_at_offset.
9953 (read_indirect_string_at_offset): Call
9954 read_indirect_string_at_offset_from.
9955 (read_indirect_line_string_at_offset): New function.
9956 (read_indirect_string): New function comment.
9957 (read_indirect_line_string): New function.
9958 (read_unsigned_leb128): Make it global.
9959 (dwarf2_string_attr): Handle DWARF-5.
9960 (add_include_dir_stub, read_formatted_entries): New functions.
9961 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9962 Handle DWARF-5.
9963 (per_cu_header_read_in): Update read_comp_unit_head caller.
9964 (dwarf2_version): New function.
9965 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9966 rnglists.
9967 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9968 fields.
9969
9970 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9971
9972 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9973
9974 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9975
9976 * dwarf2read.c (dwarf2_ranges_process): New function from
9977 dwarf2_ranges_read.
9978 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9979 dwarf2_ranges_process.
9980
9981 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9982
9983 * dwarf2read.c (create_debug_type_hash_table): New function from
9984 create_debug_types_hash_table.
9985 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9986 (create_all_type_units, open_and_init_dwo_file): Update
9987 create_debug_types_hash_table callers.
9988
9989 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9990
9991 PR gdb/16188
9992 * fork-child.c (trace_start_error): Fix thinko. va_end should
9993 refer to 'ap', not 'args'.
9994
9995 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9996 Pedro Alves <palves@redhat.com>
9997
9998 PR gdb/16188
9999 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10000 calls succeeded.
10001 * fork-child.c (trace_start_error): New function.
10002 (trace_start_error_with_name): Likewise.
10003 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10004 * inf-ptrace.c (inf_ptrace_me): Likewise.
10005 * inferior.h (trace_start_error): New prototype.
10006 (trace_start_error_with_name): Likewise.
10007
10008 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10009
10010 PR gdb/21164
10011 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10012 NULL before using it.
10013 * symmisc.c (maintenance_print_symbols): Likewise.
10014 (maintenance_print_msymbols): Likewise.
10015
10016 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10017
10018 * NEWS: Add record Python bindings entry.
10019
10020 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10021
10022 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10023 py-record-full.o.
10024 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10025 * python/py-record-btrace.c, python/py-record-btrace.h,
10026 python/py-record-full.c, python/py-record-full.h: New file.
10027 * python/py-record.c: Add include for py-record-btrace.h and
10028 py-record-full.h.
10029 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10030 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10031 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10032 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10033 New definition.
10034 (gdbpy_initialize_btrace): New export.
10035 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10036
10037 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10038
10039 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10040 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10041 * python/py-record.c: New file.
10042 * python/python-internal.h (gdbpy_start_recording,
10043 gdbpy_current_recording, gdpy_stop_recording,
10044 gdbpy_initialize_record): New export.
10045 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10046 (python_GdbMethods): Add gdbpy_start_recording,
10047 gdbpy_current_recording and gdbpy_stop_recording.
10048
10049 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10050
10051 * record-btrace.c (record_btrace_record_method): New function.
10052 (init_record_btrace_ops): Initialize to_record_method.
10053 * record-full.c (record_full_record_method): New function.
10054 (init_record_full_ops, init_record_full_core_ops): Add
10055 record_full_record_method.
10056 * record.h (enum record_method): New enum.
10057 * target-debug.h (target_debug_print_enum_record_method: New define.
10058 * target-delegates.c: Regenerate.
10059 * target.c (target_record_method): New function.
10060 * target.h: Include record.h.
10061 (struct target_ops) <to_record_method>: New field.
10062 (target_record_method): New export.
10063
10064 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10065
10066 * record.h (record_start, record_stop): New export.
10067 * record.c (record_start, record_stop): New function.
10068
10069 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10070
10071 * btrace.c (btrace_fetch): Copy function call segments pointer
10072 into a vector.
10073 (btrace_clear): Clear the vector.
10074 (btrace_find_insn_by_number): Use binary search to find the correct
10075 function call segment.
10076 * btrace.h (brace_fun_p): New typedef.
10077 (struct btrace_thread_info) <functions>: New field.
10078
10079 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10080
10081 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10082 * btrace.c (btrace_decode_error): ... here. New function.
10083 * btrace.h (btrace_decode_error): New export.
10084
10085 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10086
10087 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10088 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10089 btrace_find_insn_by_number): Remove special case for gaps.
10090 * btrace.h (btrace_insn_get_error): New export.
10091 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10092 * record-btrace.c (btrace_insn_history): Print number for gaps.
10093 (record_btrace_info, record_btrace_goto): Handle gaps.
10094
10095 2017-02-14 Tom Tromey <tom@tromey.com>
10096
10097 PR python/13598:
10098 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10099 event.
10100 * python/py-evts.c (gdbpy_initialize_py_events): Add
10101 before_prompt registry.
10102 * python/py-events.h (events_object) <before_prompt>: New field.
10103
10104 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10105
10106 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10107
10108 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10109
10110 * symfile (_initialize_symfile): Add usage text to the load command's
10111 help text.
10112
10113 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10114
10115 * utils.c (defaulted_query): Don't query on secondary UIs.
10116
10117 2017-02-10 Tom Tromey <tom@tromey.com>
10118
10119 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10120
10121 2017-02-10 Tom Tromey <tom@tromey.com>
10122
10123 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10124 "cleanup" local.
10125 * python/py-type.c (typy_legacy_template_argument): Remove
10126 unnecessary "cleanup" local.
10127
10128 2017-02-10 Tom Tromey <tom@tromey.com>
10129
10130 * python/python.c (do_start_initialization): New function, from
10131 _initialize_python.
10132 (_initialize_python): Call do_start_initialization.
10133 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10134 goto.
10135
10136 2017-02-10 Tom Tromey <tom@tromey.com>
10137
10138 * python/py-prettyprint.c (pretty_print_one_value): Use
10139 gdbpy_ref.
10140
10141 2017-02-10 Tom Tromey <tom@tromey.com>
10142
10143 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10144 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10145 gdbpy_ref.
10146 * python/py-type.c (field_new): Use gdbpy_ref.
10147 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10148 gdbpy_ref.
10149 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10150 (py_free_pspace): Likewise.
10151 (pspace_to_pspace_object): Likewise.
10152 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10153 (py_free_objfile): Likewise.
10154 (objfile_to_objfile_object): Likewise.
10155 * python/py-inferior.c (delete_thread_object): Use
10156 gdbpy_ref.
10157 (infpy_read_memory): Likewise.
10158 (py_free_inferior): Likewise.
10159 * python/py-evtregistry.c (create_eventregistry_object): Use
10160 gdbpy_ref.
10161 * python/py-event.c (create_event_object): Use gdbpy_ref.
10162
10163 2017-02-10 Tom Tromey <tom@tromey.com>
10164
10165 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10166 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10167 used.
10168 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10169 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10170 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10171 python/py-framefilter.c, python/py-function.c,
10172 python/py-inferior.c, python/py-infevents.c,
10173 python/py-linetable.c, python/py-newobjfileevent.c,
10174 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10175 python/py-signalevent.c, python/py-stopevent.c,
10176 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10177 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10178 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10179 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10180
10181 2017-02-10 Tom Tromey <tom@tromey.com>
10182
10183 * ui-out.h (ui_out_emit_type): New class.
10184 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10185 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10186 and ui_out_emit_tuple.
10187 (enumerate_locals): Likewise.
10188 (py_mi_print_variables, py_print_locals, py_print_args): Use
10189 ui_out_emit_list.
10190 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10191 ui_out_emit_list.
10192 * common/gdb_optional.h: New file.
10193
10194 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10195
10196 * MAINTAINERS (Write After Approval): Update my e-mail address.
10197
10198 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10199
10200 PR gdb/21122
10201 * breakpoint.c (_initialize_breakpoint): Update the help description
10202 of the 'commands' command to indicate that it takes a list argument.
10203
10204 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10205
10206 * interps.c (current_interp_set_logging): Remove "return".
10207
10208 2017-02-09 Gary Benson <gbenson@redhat.com>
10209
10210 * symtab.c (add_symtab_completions): Prevent NULL pointer
10211 dereference.
10212
10213 2017-02-08 Pedro Alves <palves@redhat.com>
10214
10215 * interps.c (interp::interp): Remove reference to quiet_p.
10216 (interp_set): Make static. Remove dead "Switching to" output
10217 code.
10218 (interp_quiet_p, interp_set_quiet): Delete.
10219 (interpreter_exec_cmd): Don't set the interpreter quiet.
10220 * interps.h (interp_quiet_p): Make static.
10221 (class interp) <quiet_p>: Remove field
10222
10223 2017-02-08 Jerome Guitton <guitton@adacore.com>
10224
10225 * cli/cli-decode.c (find_command_name_length): Make it extern.
10226 * cli/cli-decode.h (find_command_name_length): Declare.
10227 * cli/cli-script.c (command_name_equals, line_first_arg):
10228 New functions.
10229 (process_next_line): Use cli-decode to parse command names.
10230 (build_command_line): Make args a constant pointer.
10231
10232 2017-02-08 Jerome Guitton <guitton@adacore.com>
10233
10234 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10235 Remove case-insensitive search.
10236
10237 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10238
10239 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10240 at the end of the line. Avoids an ARI warning.
10241
10242 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10243
10244 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10245 rdseed instructions.
10246 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10247
10248 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10249
10250 PR tdep/20936
10251 Provide and use sparc32 and sparc64 target description XML files.
10252 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10253 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10254 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10255 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10256 * features/sparc/sparc32-solaris.xml: New file.
10257 * features/sparc/sparc64-solaris.xml: New file.
10258 * features/sparc/sparc32-solaris.c: Generated.
10259 * features/sparc/sparc64-solaris.c: Generated.
10260 * sparc-tdep.h: Account for differences in target descriptions.
10261 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10262 (sparc32_register_type): Use target provided registers.
10263 (validate_tdesc_registers): New function.
10264 (sparc32_gdbarch_init): Use tdesc_has_registers.
10265 Set pseudoregister functions.
10266 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10267 (sparc64_register_type): Use target provided registers.
10268 (sparc64_init_abi): Set pseudoregister functions.
10269
10270 2017-02-03 Tom Tromey <tom@tromey.com>
10271
10272 PR rust/21097:
10273 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10274 with a single member.
10275
10276 2017-02-03 Pedro Alves <palves@redhat.com>
10277
10278 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10279 (cli_interp_base::~cli_interp_base): New.
10280 (cli_interp): New struct.
10281 (as_cli_interp): Cast the interp itself to cli_interp.
10282 (cli_interpreter_pre_command_loop): Rename to ...
10283 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10284 parameter.
10285 (cli_interpreter_init): Rename to ...
10286 (cli_interp::init): ... this. Remove 'self' parameter. Use
10287 boolean. Make extern.
10288 (cli_interpreter_resume): Rename to ...
10289 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10290 extern.
10291 (cli_interpreter_suspend): Rename to ...
10292 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10293 extern.
10294 (cli_interpreter_exec): Rename to ...
10295 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10296 extern.
10297 (cli_interpreter_supports_command_editing): Rename to ...
10298 (cli_interp_base::supports_command_editing): ... this. Remove
10299 'interp' parameter. Make extern.
10300 (cli_ui_out): Rename to ...
10301 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10302 Make extern.
10303 (cli_set_logging): Rename to ...
10304 (cli_interp_base::set_logging): ... this. Remove 'interp'
10305 parameter. Make extern.
10306 (cli_interp_procs): Delete.
10307 (cli_interp_factory): Adjust to use "new".
10308 * cli/cli-interp.h: Include "interps.h".
10309 (struct cli_interp_base): New struct.
10310 * interps.c (struct interp): Delete. Fields moved to interps.h.
10311 (interp_new): Delete.
10312 (interp::interp, interp::~interp): New.
10313 (interp_set): Use bool, and return void. Assume the interpreter
10314 has suspend, init and resume methods, and that the all return
10315 void.
10316 (set_top_level_interpreter): interp_set returns void.
10317 (interp_ui_out): Adapt.
10318 (current_interp_set_logging): Adapt.
10319 (interp_data): Delete.
10320 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10321 (interp_exec): Adapt.
10322 (top_level_interpreter_data): Delete.
10323 * interps.h (interp_init_ftype, interp_resume_ftype)
10324 (interp_suspend_ftype, interp_exec_ftype)
10325 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10326 (class interp): New.
10327 (interp_new): Delete.
10328 (interp_set): Now returns void. Use bool.
10329 (interp_data, top_level_interpreter_data): Delete.
10330 * mi/mi-common.h: Include interps.h.
10331 (class mi_interp): Inherit from interp. Define a ctor. Declare
10332 init, resume, suspect, exec, interp_ui_out, set_logging and
10333 pre_command_loop methods.
10334 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10335 (mi_interpreter_init): Rename to ...
10336 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10337 bool, return void and make extern. Adjust.
10338 (mi_interpreter_resume): ... Rename to ...
10339 (mi_interp::resume): ... this. Remove the 'data' parameter,
10340 return void and make extern. Adjust.
10341 (mi_interpreter_suspend): ... Rename to ...
10342 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10343 return void and make extern. Adjust.
10344 (mi_interpreter_exec): ... Rename to ...
10345 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10346 extern. Adjust.
10347 (mi_interpreter_pre_command_loop): ... Rename to ...
10348 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10349 parameter and make extern.
10350 (mi_on_normal_stop_1): Adjust.
10351 (mi_ui_out): Rename to ...
10352 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10353 parameter and make extern. Adjust.
10354 (mi_set_logging): Rename to ...
10355 (mi_interp::set_logging): ... this. Remove the 'interp'
10356 parameter and make extern. Adjust.
10357 (mi_interp_procs): Delete.
10358 (mi_interp_factory): Adjust to use 'new'.
10359 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10360 (mi_print_exception, mi_execute_command, mi_load_progress):
10361 Adjust.
10362 * tui/tui-interp.c (tui_interp): New class.
10363 (as_tui_interp): Return a tui_interp pointer.
10364 (tui_on_normal_stop, tui_on_signal_received)
10365 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10366 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10367 to use interp::interp_ui_out.
10368 (tui_init): Rename to ...
10369 (tui_interp::init): ... this. Remove the 'self' parameter, use
10370 bool, return void and make extern. Adjust.
10371 (tui_resume): Rename to ...
10372 (tui_interp::resume): ... this. Remove the 'data' parameter,
10373 return void and make extern. Adjust.
10374 (tui_suspend): Rename to ...
10375 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10376 return void and make extern. Adjust.
10377 (tui_ui_out): Rename to ...
10378 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10379 parameter, and make extern. Adjust.
10380 (tui_exec): Rename to ...
10381 (tui_interp::exec): ... this. Remove the 'data' parameter and
10382 make extern.
10383 (tui_interp_procs): Delete.
10384 (tui_interp_factory): Use "new".
10385
10386 2017-02-02 Tom Tromey <tom@tromey.com>
10387
10388 * rust-exp.y (ends_raw_string, space_then_number)
10389 (rust_identifier_start_p): Return bool.
10390 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10391 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10392 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10393 (rust_chartype_p): Return bool.
10394 (val_print_struct, rust_print_struct_def, rust_print_type):
10395 Update.
10396 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10397 Return bool.
10398
10399 2017-02-02 Tom Tromey <tom@tromey.com>
10400
10401 * rust-lang.c: Reindent.
10402
10403 2017-02-02 Tom Tromey <tom@tromey.com>
10404
10405 * rust-lang.h (rust_crate_for_block): Update.
10406 * rust-lang.c (rust_crate_for_block): Return std::string.
10407 (rust_get_disr_info): Use std:;string, not
10408 gdb::unique_xmalloc_ptr.
10409 * rust-exp.y (crate_name): Update.
10410
10411 2017-02-02 Pedro Alves <palves@redhat.com>
10412
10413 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10414 field out of gdb_disassembler_test and make it static.
10415
10416 2017-02-02 Pedro Alves <palves@redhat.com>
10417
10418 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10419 mi1_interp and mi_interp fields.
10420
10421 2017-02-02 Pedro Alves <palves@redhat.com>
10422
10423 * cli/cli-interp.c (struct saved_output_files, saved_output):
10424 Moved from cli/cli-logging.c.
10425 (cli_set_logging): New function.
10426 (cli_interp_procs): Install cli_set_logging.
10427 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10428 Declare.
10429 * cli/cli-logging.c (struct saved_output_files, saved_output):
10430 Moved to cli/cli-interp.c.
10431 (pop_output_files): Don't save outputs here.
10432 (make_logging_output): New function.
10433 (handle_redirections): Don't build tee nor save previous outputs
10434 here.
10435 * interps.c (current_interp_set_logging): Change prototype.
10436 Assume there's always a set_logging_proc method installed.
10437 * interps.h (interp_set_logging_ftype): Change prototype.
10438 (current_interp_set_logging): Change prototype and adjust comment.
10439 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10440 use make_logging_output.
10441 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10442 2017-02-02 Pedro Alves <palves@redhat.com>
10443
10444 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10445 from ...
10446 (set_logging_overwrite): ... here.
10447 (logging_no_redirect_file): Delete.
10448 (set_logging_redirect): Don't handle redirection on the fly.
10449 Instead warn that "logging off" / "logging on" is necessary.
10450 (pop_output_files): Delete references to logging_no_redirect_file.
10451 (show_logging_command): Always speak in terms of what will happen
10452 once logging is reenabled.
10453
10454 2017-02-02 Pedro Alves <palves@redhat.com>
10455
10456 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10457
10458 2017-02-02 Pedro Alves <palves@redhat.com>
10459
10460 * disasm.c (gdb_pretty_print_insn): Rename to ...
10461 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10462 Remove gdbarch parameter. Adapt to clear the object's buffers
10463 instead of allocating new buffers, and to print using the object's
10464 gdb_disassembler instead of calling gdb_print_insn.
10465 (dump_insns): Use gdb_pretty_print_disassembler.
10466 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10467 (gdb_pretty_print_disassembler): New class.
10468 * record-btrace.c (btrace_insn_history): Use
10469 gdb_pretty_print_disassembler.
10470
10471 2017-02-02 Pedro Alves <palves@redhat.com>
10472
10473 * ada-lang.c (type_as_string): Use string_file.
10474 * ada-valprint.c (ada_print_floating): Use string_file.
10475 * ada-varobj.c (ada_varobj_scalar_image)
10476 (ada_varobj_get_value_image): Use string_file.
10477 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10478 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10479 * breakpoint.c (update_inserted_breakpoint_locations)
10480 (insert_breakpoint_locations, reattach_breakpoints)
10481 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10482 (print_it_watchpoint): Use string_file.
10483 (save_breakpoints): Use stdio_file.
10484 * c-exp.y (oper): Use string_file.
10485 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10486 tee_file.
10487 (pop_output_files): Use delete.
10488 (handle_redirections): Use stdio_file and tee_file.
10489 * cli/cli-setshow.c (do_show_command): Use string_file.
10490 * compile/compile-c-support.c (c_compute_program): Use
10491 string_file.
10492 * compile/compile-c-symbols.c (generate_vla_size): Take a
10493 'string_file &' instead of a 'ui_file *'.
10494 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10495 of a 'ui_file *'. Use string_file.
10496 (generate_c_for_variable_locations): Take a 'string_file &'
10497 instead of a 'ui_file *'.
10498 * compile/compile-internal.h (generate_c_for_for_one_variable):
10499 Take a 'string_file &' instead of a 'ui_file *'.
10500 * compile/compile-loc2c.c (push, pushf, unary, binary)
10501 (print_label, pushf_register_address, pushf_register)
10502 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10503 'ui_file *'. Adjust.
10504 * compile/compile.c (compile_to_object): Use string_file.
10505 * compile/compile.h (compile_dwarf_expr_to_c)
10506 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10507 'ui_file *'.
10508 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10509 (replace_typedefs_qualified_name): Use string_file and
10510 obstack_copy0.
10511 * disasm.c (gdb_pretty_print_insn): Use string_file.
10512 (gdb_disassembly): Adjust reference the null_stream global.
10513 (do_ui_file_delete): Delete.
10514 (gdb_insn_length): Use null_stream.
10515 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10516 * dwarf2loc.c (dwarf2_compile_property_to_c)
10517 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10518 'string_file &' instead of a 'ui_file *'.
10519 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10520 * dwarf2read.c (do_ui_file_peek_last): Delete.
10521 (dwarf2_compute_name): Use string_file.
10522 * event-top.c (gdb_setup_readline): Use stdio_file.
10523 * gdbarch.sh (verify_gdbarch): Use string_file.
10524 * gdbtypes.c (safe_parse_type): Use null_stream.
10525 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10526 string_file.
10527 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10528 'string_file *' instead of a 'ui_file *'.
10529 (gdbscm_arch_disassemble): Use string_file.
10530 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10531 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10532 inherits from ui_file.
10533 (ioscm_file_port_delete, ioscm_file_port_rewind)
10534 (ioscm_file_port_put): Delete.
10535 (ioscm_file_port_write): Rename to ...
10536 (ioscm_file_port::write): ... this. Remove file_port_magic
10537 checks.
10538 (ioscm_file_port_new): Delete.
10539 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10540 ui_file_up.
10541 * guile/scm-type.c (tyscm_type_name): Use string_file.
10542 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10543 Use string_file.
10544 * infcmd.c (print_return_value_1): Use string_file.
10545 * infrun.c (print_target_wait_results): Use string_file.
10546 * language.c (add_language): Use string_file.
10547 * location.c (explicit_to_string_internal): Use string_file.
10548 * main.c (captured_main_1): Use null_file.
10549 * maint.c (maintenance_print_architecture): Use stdio_file.
10550 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10551 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10552 event_channel>: Change type to mi_console_file pointer.
10553 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10554 (mi_console_file_delete): Delete.
10555 (struct mi_console_file): Delete.
10556 (mi_console_file_magic): Delete.
10557 (mi_console_file_new): Delete.
10558 (mi_console_file::mi_console_file): New.
10559 (mi_console_file_delete): Delete.
10560 (mi_console_file_fputs): Delete.
10561 (mi_console_file::write): New.
10562 (mi_console_raw_packet): Delete.
10563 (mi_console_file::flush): New.
10564 (mi_console_file_flush): Delete.
10565 (mi_console_set_raw): Rename to ...
10566 (mi_console_file::set_raw): ... this.
10567 * mi/mi-console.h (class mi_console_file): New class.
10568 (mi_console_file_new, mi_console_set_raw): Delete.
10569 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10570 (mi_set_logging): Use delete and tee_file. Adjust.
10571 * mi/mi-main.c (output_register): Use string_file.
10572 (mi_cmd_data_evaluate_expression): Use string_file.
10573 (mi_cmd_data_read_memory): Use string_file.
10574 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10575 * mi/mi-out.c (mi_ui_out::main_stream): New.
10576 (mi_ui_out::rewind): Use main_stream and
10577 string_file.
10578 (mi_ui_out::put): Use main_stream and string_file.
10579 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10580 Allocate a 'string_file' instead.
10581 (mi_out_new): Don't allocate a mem_fileopen stream here.
10582 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10583 (mi_ui_out::main_stream): Declare method.
10584 * printcmd.c (eval_command): Use string_file.
10585 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10586 * python/py-arch.c (archpy_disassemble): Use string_file.
10587 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10588 * python/py-frame.c (frapy_str): Use string_file.
10589 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10590 Use string_file.
10591 * python/py-type.c (typy_str): Use string_file.
10592 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10593 * python/py-value.c (valpy_str): Use string_file.
10594 * record-btrace.c (btrace_insn_history): Use string_file.
10595 * regcache.c (regcache_print): Use stdio_file.
10596 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10597 * remote.c (escape_buffer): Use string_file.
10598 * rust-lang.c (rust_get_disr_info): Use string_file.
10599 * serial.c (serial_open_ops_1): Use stdio_file.
10600 (do_serial_close): Use delete.
10601 * stack.c (print_frame_arg): Use string_file.
10602 (print_frame_args): Remove local mem_fileopen stream, not used.
10603 (print_frame): Use string_file.
10604 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10605 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10606 Take a 'string_file *' instead of a 'ui_file *'.
10607 * top.c (new_ui): Use stdio_file and stderr_file.
10608 (free_ui): Use delete.
10609 (execute_command_to_string): Use string_file.
10610 (quit_confirm): Use string_file.
10611 * tracepoint.c (collection_list::append_exp): Use string_file.
10612 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10613 * tui/tui-file.c: Don't include "ui-file.h".
10614 (enum streamtype, struct tui_stream): Delete.
10615 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10616 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10617 (tui_file::tui_file): New method.
10618 (tui_file_fputs): Delete.
10619 (tui_file_get_strbuf): Delete.
10620 (tui_file::puts): New method.
10621 (tui_file_adjust_strbuf): Delete.
10622 (tui_file_flush): Delete.
10623 (tui_file::flush): New method.
10624 * tui/tui-file.h: Tweak intro comment.
10625 Include ui-file.h.
10626 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10627 (tui_file_adjust_strbuf): Delete declarations.
10628 (class tui_file): New class.
10629 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10630 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10631 (tui_register_format): Use string_stream.
10632 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10633 (tui_get_function_from_frame): Use string_file.
10634 * typeprint.c (type_to_string): Use string_file.
10635 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10636 (null_stream): New global.
10637 (ui_file_delete): Delete.
10638 (ui_file::ui_file): New.
10639 (null_file_isatty): Delete.
10640 (ui_file::~ui_file): New.
10641 (null_file_rewind): Delete.
10642 (ui_file::printf): New.
10643 (null_file_put): Delete.
10644 (null_file_flush): Delete.
10645 (ui_file::putstr): New.
10646 (null_file_write): Delete.
10647 (ui_file::putstrn): New.
10648 (null_file_read): Delete.
10649 (ui_file::putc): New.
10650 (null_file_fputs): Delete.
10651 (null_file_write_async_safe): Delete.
10652 (ui_file::vprintf): New.
10653 (null_file_delete): Delete.
10654 (null_file::write): New.
10655 (null_file_fseek): Delete.
10656 (null_file::puts): New.
10657 (ui_file_data): Delete.
10658 (null_file::write_async_safe): New.
10659 (gdb_flush, ui_file_isatty): Adjust.
10660 (ui_file_put, ui_file_rewind): Delete.
10661 (ui_file_write): Adjust.
10662 (ui_file_write_for_put): Delete.
10663 (ui_file_write_async_safe, ui_file_read): Adjust.
10664 (ui_file_fseek): Delete.
10665 (fputs_unfiltered): Adjust.
10666 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10667 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10668 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10669 (set_ui_file_data): Delete.
10670 (string_file::~string_file, string_file::write)
10671 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10672 (do_ui_file_as_string, ui_file_as_string): Delete.
10673 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10674 (struct mem_file): Delete.
10675 (mem_file_new): Delete.
10676 (stdio_file::stdio_file): New.
10677 (mem_file_delete): Delete.
10678 (stdio_file::stdio_file): New.
10679 (mem_fileopen): Delete.
10680 (stdio_file::~stdio_file): New.
10681 (mem_file_rewind): Delete.
10682 (stdio_file::set_stream): New.
10683 (mem_file_put): Delete.
10684 (stdio_file::open): New.
10685 (mem_file_write): Delete.
10686 (stdio_file_magic, struct stdio_file): Delete.
10687 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10688 (stdio_file::flush): New.
10689 (stdio_file_read): Rename to ...
10690 (stdio_file::read): ... this. Adjust.
10691 (stdio_file_write): Rename to ...
10692 (stdio_file::write): ... this. Adjust.
10693 (stdio_file_write_async_safe): Rename to ...
10694 (stdio_file::write_async_safe) ... this. Adjust.
10695 (stdio_file_fputs): Rename to ...
10696 (stdio_file::puts) ... this. Adjust.
10697 (stdio_file_isatty): Delete.
10698 (stdio_file_fseek): Delete.
10699 (stdio_file::isatty): New.
10700 (stderr_file_write): Rename to ...
10701 (stderr_file::write) ... this. Adjust.
10702 (stderr_file_fputs): Rename to ...
10703 (stderr_file::puts) ... this. Adjust.
10704 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10705 (stderr_file::stderr_file): New.
10706 (tee_file_magic): Delete.
10707 (struct tee_file): Delete.
10708 (tee_file::tee_file): New.
10709 (tee_file_new): Delete.
10710 (tee_file::~tee_file): New.
10711 (tee_file_delete): Delete.
10712 (tee_file_flush): Rename to ...
10713 (tee_file::flush): ... this. Adjust.
10714 (tee_file_write): Rename to ...
10715 (tee_file::write): ... this. Adjust.
10716 (tee_file::write_async_safe): New.
10717 (tee_file_fputs): Rename to ...
10718 (tee_file::puts): ... this. Adjust.
10719 (tee_file_isatty): Rename to ...
10720 (tee_file::isatty): ... this. Adjust.
10721 * ui-file.h (struct obstack, struct ui_file): Don't
10722 forward-declare.
10723 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10724 (ui_file_write_ftype)
10725 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10726 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10727 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10728 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10729 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10730 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10731 (set_ui_file_fseek): Delete.
10732 (ui_file_data, ui_file_delete, ui_file_rewind)
10733 (struct ui_file): New.
10734 (ui_file_up): New.
10735 (class null_file): New.
10736 (null_stream): Declare.
10737 (ui_file_write_for_put, ui_file_put): Delete.
10738 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10739 Delete.
10740 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10741 (gdb_fopen, tee_file_new): Delete.
10742 (struct string_file): New.
10743 (struct stdio_file): New.
10744 (stdio_file_up): New.
10745 (struct stderr_file): New.
10746 (class tee_file): New.
10747 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10748 of a 'ui_file *'. Adjust.
10749 * ui-out.h (class ui_out) <field_stream>: Likewise.
10750 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10751 (null_stream): Delete.
10752 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10753 Adjust.
10754 * utils.h (struct ui_file): Delete forward declaration..
10755 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10756 (error_stream): Take a 'string_file &' instead of a
10757 'ui_file *'.
10758 * varobj.c (varobj_value_get_print_value): Use string_file.
10759 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10760 * gdbarch.c: Regenerate.
10761
10762 2017-02-02 Pedro Alves <palves@redhat.com>
10763
10764 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10765 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10766 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10767 Adjust to call gdb_print_insn instead of
10768 gdb_disassembler::print_insn.
10769 (dump_insns, do_mixed_source_and_assembly_deprecated)
10770 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10771 'gdbarch' parameter. Remove gdb_disassembler parameter.
10772 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10773 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10774 declaration.
10775 (gdb_pretty_print_insn): Re-add declaration.
10776 * record-btrace.c (btrace_insn_history): Don't allocate a
10777 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10778
10779 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10780
10781 * disasm.h (gdb_disassembly): Remove file_string parameter.
10782 * disasm.c (gdb_disassembly): Likewise.
10783 * cli/cli-cmds.c (print_disassembly): Adapt.
10784 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10785 * stack.c (do_gdb_disassembly): Likewise.
10786
10787 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10788
10789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10790 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10791 targets. And if the implicit value is longer than needed, extract
10792 the first bytes instead of the "least significant" ones.
10793
10794 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10795
10796 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10797 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10798 (btrace_fetch): Assert can_access_registers_ptid.
10799 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10800 validate_registers_access.
10801
10802 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10803
10804 * gdbthread.h (can_access_registers_ptid): New.
10805 * thread.c (can_access_registers_ptid): New.
10806
10807 2017-02-01 Pedro Alves <palves@redhat.com>
10808
10809 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10810
10811 2017-01-31 Pedro Alves <palves@redhat.com>
10812
10813 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10814 Fix typos.
10815
10816 2017-01-31 Pedro Alves <palves@redhat.com>
10817
10818 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10819 not used.
10820
10821 2017-01-31 Pedro Alves <palves@redhat.com>
10822
10823 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10824
10825 2017-01-31 Pedro Alves <palves@redhat.com>
10826
10827 * common/scoped_restore.h
10828 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10829 change the value's parameter type to T2.
10830 (make_scoped_restore): Likewise.
10831
10832 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10833 Richard Henderson <rth@redhat.com>
10834
10835 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10836 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10837 GS_BASE for older kernels.
10838 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10839 GS_BASE for older kernels.
10840 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10841 and GS_BASE to the offset table.
10842 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10843 system register group.
10844 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10845 for older kernels.
10846 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10847 amd64 ABI.
10848 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10849 AMD64_GSBASE_REGNUM.
10850 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10851 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10852 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10853 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10854 i386/64bit-segments.xml in those rules.
10855 * features/i386/64bit-segments.xml: New file.
10856 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10857 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10858 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10859 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10860 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10861 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10862 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10863 * features/i386/amd64-avx-linux.c: Regenerated.
10864 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10865 * features/i386/amd64-avx-mpx.c: Regenerated.
10866 * features/i386/amd64-avx512-linux.c: Regenerated.
10867 * features/i386/amd64-linux.c: Regenerated.
10868 * features/i386/amd64-mpx-linux.c: Regenerated.
10869 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10870 * features/i386/i386-avx-mpx.c: Regenerated.
10871 * features/i386/x32-avx-linux.c: Regenerated.
10872 * features/i386/x32-avx512-linux.c: Regenerated.
10873 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10874 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10875 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10876 * regformats/i386/amd64-linux.dat: Regenerated.
10877 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10878 * regformats/i386/x32-avx-linux.dat: Regenerated.
10879 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10880 * regformats/i386/x32-linux.dat: Regenerated.
10881
10882 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10883
10884 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10885 Set to AMD64_NUM_REGS.
10886
10887 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10888
10889 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10890 that checks validity of a register number.
10891
10892 2017-01-27 Kees Cook <keescook@google.com>
10893
10894 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10895 fetch_fpregs if target has fpa registers.
10896 (arm_linux_store_inferior_registers): Call store_fpregs if target
10897 has fpa registers.
10898
10899 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10900
10901 * cris-tdep.c (cris_gdbarch_init): Remove check for
10902 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10903
10904 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10905
10906 * corelow.c (get_core_register_section): Check for regset
10907 existence before checking for REGSET_VARIABLE_SIZE.
10908
10909 2017-01-26 Yao Qi <yao.qi@linaro.org>
10910 Pedro Alves <palves@redhat.com>
10911
10912 PR gdb/20939
10913 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10914 call memory_error, save memaddr instead.
10915 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10916 negative, cal memory_error.
10917 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10918
10919 2017-01-26 Yao Qi <yao.qi@linaro.org>
10920
10921 * disasm-selftests.c (memory_error_test): New function.
10922 (_initialize_disasm_selftests): Register memory_error_test.
10923
10924 2017-01-26 Yao Qi <yao.qi@linaro.org>
10925
10926 * Makefile.in (SFILES): Add disasm-selftests.c and
10927 selftest-arch.c.
10928 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10929 * disasm-selftests.c: New file.
10930 * selftest-arch.c: New file.
10931 * selftest-arch.h: New file.
10932
10933 2017-01-26 Yao Qi <yao.qi@linaro.org>
10934
10935 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10936 to bfd_arch_mep. Don't return 0 if section is not
10937 found. Call print_insn_mep.
10938
10939 2017-01-26 Pedro Alves <palves@redhat.com>
10940 Yao Qi <yao.qi@linaro.org>
10941
10942 * arm-tdep.c: Include "disasm.h".
10943 (gdb_print_insn_arm): Update code to get gdbarch.
10944 * disasm.c (dis_asm_read_memory): Change it to
10945 gdb_disassembler::dis_asm_read_memory.
10946 (dis_asm_memory_error): Likewise.
10947 (dis_asm_print_address): Likewise.
10948 (gdb_pretty_print_insn): Change it to
10949 gdb_disassembler::pretty_print_insn.
10950 (dump_insns): Add one argument gdb_disassemlber. All
10951 callers updated.
10952 (do_mixed_source_and_assembly_deprecated): Likewise.
10953 (do_mixed_source_and_assembly): Likewise.
10954 (do_assembly_only): Likewise.
10955 (gdb_disassembler::gdb_disassembler): New.
10956 (gdb_disassembler::print_insn): New.
10957 * disasm.h (class gdb_disassembler): New.
10958 (gdb_pretty_print_insn): Remove declaration.
10959 (gdb_disassemble_info): Likewise.
10960 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10961 (gdbscm_disasm_read_memory_worker): Update.
10962 (gdbscm_disasm_read_memory): Update.
10963 (gdbscm_disasm_memory_error): Remove.
10964 (gdbscm_disasm_print_address): Remove.
10965 (gdbscm_disassembler::gdbscm_disassembler): New.
10966 (gdbscm_print_insn_from_port): Update.
10967 * mips-tdep.c: Include disasm.h.
10968 (gdb_print_insn_mips): Update code to get gdbarch.
10969 * record-btrace.c (btrace_insn_history): Update.
10970 * spu-tdep.c: Include disasm.h.
10971 (struct spu_dis_asm_data): Remove.
10972 (struct spu_dis_asm_info): New.
10973 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10974 SPU id.
10975 (gdb_print_insn_spu): Cast disassemble_info to
10976 spu_dis_asm_info.
10977
10978 2017-01-26 Yao Qi <yao.qi@linaro.org>
10979
10980 * disasm.c (do_ui_file_delete): Delete.
10981 (gdb_insn_length): Move code creating stream to ...
10982 * utils.c (null_stream): ... here. New function.
10983 * utils.h (null_stream): Declare.
10984
10985 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10986
10987 * python/py-inferior.c (find_thread_object): Return directly
10988 from the loop. Remove "found" variable.
10989
10990 2017-01-21 Joel Brobecker <brobecker@adacore.com>
10991
10992 GDB 7.12.1 released.
10993
10994 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
10995
10996 * python/py-function.c (fnpy_call): Reorder declarations to have
10997 the gdbpy_enter object declared first.
10998 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
10999
11000 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11001
11002 PR python/21068
11003 * python/python-internal.h (PyMem_RawMalloc): Define for
11004 Python < 3.4.
11005 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11006 PyMem_RawMalloc instead of PyMem_Malloc.
11007
11008 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11009 Luis Machado <lgustavo@codesourcery.com>
11010
11011 * NEWS (New commands): Mention flash-erase.
11012 (New MI commands): Mention target-flash-erase.
11013 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11014 command.
11015 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11016 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11017 * target.c (flash_erase_command): New function.
11018 (initialize_targets): Add new flash-erase command.
11019 * target.h (flash_erase_command): New declaration.
11020
11021 2017-01-20 Joel Brobecker <brobecker@adacore.com>
11022
11023 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11024 HAVE_SYS_PROCFS_H is defined.
11025
11026 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11027
11028 * remote.c (struct cached_reg): Change data into a pointer.
11029 * (stop_reply_dtr): Free data pointers before deleting vector.
11030 (process_stop_reply): Likewise.
11031 (remote_parse_stop_reply): Allocate space for data
11032
11033 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11034
11035 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11036 MAX_REGISTER_SIZE.
11037 (amd64_pseudo_register_read_value): Likewise.
11038 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11039 (store_register_using_P): Likewise.
11040 * regcache.c (regcache_xfer_part): Likewise.
11041
11042 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11043
11044 Split real and pseudo registers.
11045 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11046 (sparc32_pseudo_regnum): New enum.
11047 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11048 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11049 (SPARC32_CP0_REGISTERS): New macro.
11050 (sparc32_pseudo_register_name): New function.
11051 (sparc32_register_name): Use sparc32_pseudo_register_name.
11052 (sparc32_pseudo_register_type): New function.
11053 (sparc32_register_type): Use sparc32_pseudo_register_type.
11054 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11055 pseudo register numbers.
11056 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11057 (SPARC64_CP0_REGISTERS): New macro.
11058 (sparc64_pseudo_register_name): New function.
11059 (sparc64_register_name): Use sparc64_pseudo_register_name.
11060 (sparc64_pseudo_register_type): New function.
11061 (sparc64_register_type): Use sparc64_pseudo_register_type.
11062 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11063 pseudo register numbers.
11064 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11065 sparc64_store_arguments): Handle pseudo register numbers.
11066
11067 2017-01-13 Yao Qi <yao.qi@linaro.org>
11068
11069 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11070 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11071 output.
11072 (getpkt_or_notif_sane_1): Likewise.
11073
11074 2017-01-13 Yao Qi <yao.qi@linaro.org>
11075
11076 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11077 of CC. Pass "-x c++-header" instead of "-x c".
11078
11079 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11080
11081 * remote.c (remote_can_async_p): Update comment.
11082
11083 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11084
11085 * linux-nat.c (linux_nat_can_async_p): Update comment.
11086
11087 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11088
11089 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11090
11091 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11092
11093 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11094
11095 2017-01-10 Tom Tromey <tom@tromey.com>
11096
11097 * python/py-type.c (typy_legacy_template_argument): Update.
11098 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11099 ~demangle_parse_info): Declare new members.
11100 (cp_demangled_name_to_comp): Return unique_ptr.
11101 (cp_demangled_name_parse_free)
11102 (make_cleanup_cp_demangled_name_parse_free)
11103 (cp_new_demangle_parse_info): Remove.
11104 * cp-support.c (do_demangled_name_parse_free_cleanup)
11105 (make_cleanup_cp_demangled_name_parse_free): Remove.
11106 (inspect_type, cp_canonicalize_string_full)
11107 (cp_canonicalize_string): Update.
11108 (mangled_name_to_comp): Change return type.
11109 (cp_class_name_from_physname, method_name_from_physname)
11110 (cp_func_name, cp_remove_params): Update.
11111 * cp-name-parser.y (demangle_parse_info): New constructor, from
11112 cp_new_demangle_parse_info.
11113 (~demangle_parse_info): New destructor, from
11114 cp_demangled_name_parse_free.
11115 (cp_merge_demangle_parse_infos): Update.
11116 (cp_demangled_name_to_comp): Change return type.
11117
11118 2017-01-10 Tom Tromey <tom@tromey.com>
11119
11120 * top.c (prevent_dont_repeat): Change return type.
11121 * python/python.c (execute_gdb_command): Use std::string.
11122 Update.
11123 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11124 * command.h (prevent_dont_repeat): Change return type.
11125 * breakpoint.c (bpstat_do_actions_1): Update.
11126
11127 2017-01-10 Tom Tromey <tom@tromey.com>
11128
11129 * value.h (scoped_value_mark::~scoped_value_mark): Call
11130 free_to_mark.
11131 (scoped_value_mark::free_to_mark): New method.
11132 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11133 scoped_value_mark.
11134
11135 2017-01-10 Tom Tromey <tom@tromey.com>
11136
11137 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11138 (valpy_reference_value, valpy_const_value, valpy_get_address)
11139 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11140 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11141 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11142 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11143 scoped_value_mark.
11144 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11145 * value.h (scoped_value_mark): New class.
11146
11147 2017-01-10 Tom Tromey <tom@tromey.com>
11148
11149 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11150 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11151 * psymtab.c (discard_psymtabs_upto): Remove.
11152 (make_cleanup_discard_psymtabs): Remove.
11153 (struct psymtab_state): Remove.
11154
11155 2017-01-10 Tom Tromey <tom@tromey.com>
11156
11157 * record-full.c (record_full_save_cleanups): Remove.
11158 (record_full_save): Use gdb::unlinker.
11159 * gcore.c (do_bfd_delete_cleanup): Remove.
11160 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11161 cleanups.
11162 * dwarf2read.c (unlink_if_set): Remove.
11163 (write_psymtabs_to_index): Use gdb::unlinker.
11164 * common/gdb_unlinker.h: New file.
11165
11166 2017-01-10 Tom Tromey <tom@tromey.com>
11167
11168 * windows-tdep.c (windows_xfer_shared_library): Update.
11169 * windows-nat.c (windows_make_so): Update.
11170 * utils.h (make_cleanup_bfd_unref): Remove.
11171 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11172 * symfile.h (symfile_bfd_open)
11173 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11174 * symfile.c (read_symbols, symbol_file_add)
11175 (separate_debug_file_exists): Update.
11176 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11177 (generic_load, reread_symbols): Update.
11178 * symfile-mem.c (symbol_file_add_from_memory): Update.
11179 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11180 (spu_symbol_file_add_from_memory): Update.
11181 * solist.h (struct target_so_ops) <bfd_open>: Return
11182 gdb_bfd_ref_ptr.
11183 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11184 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11185 gdb_bfd_ref_ptr.
11186 (solib_map_sections, reload_shared_libraries_1): Update.
11187 * solib-svr4.c (enable_break): Update.
11188 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11189 * solib-frv.c (enable_break2): Update.
11190 * solib-dsbt.c (enable_break): Update.
11191 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11192 gdb_bfd_ref_ptr.
11193 (darwin_solib_get_all_image_info_addr_at_init): Update.
11194 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11195 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11196 * record-full.c (record_full_save): Update.
11197 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11198 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11199 * minidebug.c (find_separate_debug_file_in_section): Return
11200 gdb_bfd_ref_ptr.
11201 * machoread.c (macho_add_oso_symfile): Change abfd to
11202 gdb_bfd_ref_ptr.
11203 (macho_symfile_read_all_oso): Update.
11204 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11205 (macho_symfile_read): Update.
11206 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11207 (jit_bfd_try_read_symtab): Update.
11208 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11209 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11210 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11211 gdb_bfd_ref_ptr.
11212 (gdb_bfd_ref_policy): New struct.
11213 (gdb_bfd_ref_ptr): New typedef.
11214 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11215 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11216 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11217 gdb_bfd_ref_ptr.
11218 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11219 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11220 (gcore_command): Update.
11221 * exec.c (exec_file_attach): Update.
11222 * elfread.c (elf_symfile_read): Update.
11223 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11224 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11225 (open_and_init_dwo_file): Update.
11226 (open_dwp_file): Return gdb_bfd_ref_ptr.
11227 (open_and_init_dwp_file): Update.
11228 * corelow.c (core_open): Update.
11229 * compile/compile-object-load.c (compile_object_load): Update.
11230 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11231 * coffread.c (coff_symfile_read): Update.
11232 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11233 gdb_bfd_ref_ptr. Rename.
11234 (dump_bfd_file, restore_command): Update.
11235 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11236 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11237 (find_separate_debug_file_by_buildid): Update.
11238
11239 2017-01-10 Tom Tromey <tom@tromey.com>
11240
11241 * common/gdb_ref_ptr.h: New file.
11242 * python/py-ref.h (struct gdbpy_ref_policy): New.
11243 (gdbpy_ref): Now a typedef.
11244
11245 2017-01-10 Tom Tromey <tom@tromey.com>
11246
11247 * utils.h (make_cleanup_htab_delete): Don't declare.
11248 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11249 Remove.
11250 * linespec.c (decode_compound_collector): Add constructor,
11251 destructor.
11252 (lookup_prefix_sym): Remove cleanup.
11253 (symtab_collector): Add constructor, destructor.
11254 (collect_symtabs_from_filename): Remove cleanup.
11255 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11256 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11257 Use htab_up.
11258 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11259 * dwarf2read.c (dw2_expand_symtabs_matching)
11260 (dw2_map_symbol_filenames, dwarf_decode_macros)
11261 (write_psymtabs_to_index): Use htab_up.
11262 * dwarf2loc.c (func_verify_no_selftailcall)
11263 (call_site_find_chain_1, func_verify_no_selftailcall)
11264 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11265 std::vector, gdb::unique_xmalloc_ptr.
11266 (call_sitep): Remove typedef.
11267 (dwarf2_locexpr_baton_eval): Remove unused variable.
11268
11269 2017-01-10 Tom Tromey <tom@tromey.com>
11270
11271 * python/python-internal.h (make_cleanup_py_decref)
11272 (make_cleanup_py_xdecref): Don't declare.
11273 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11274 (py_xdecref, make_cleanup_py_xdecref): Remove.
11275
11276 2017-01-10 Tom Tromey <tom@tromey.com>
11277
11278 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11279 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11280
11281 2017-01-10 Tom Tromey <tom@tromey.com>
11282
11283 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11284
11285 2017-01-10 Tom Tromey <tom@tromey.com>
11286
11287 * python/py-utils.c (unicode_to_encoded_string)
11288 (python_string_to_target_string)
11289 (python_string_to_target_python_string)
11290 (python_string_to_host_string, gdbpy_obj_to_string)
11291 (get_addr_from_python): Use gdbpy_ref.
11292
11293 2017-01-10 Tom Tromey <tom@tromey.com>
11294
11295 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11296 gdbpy_ref.
11297
11298 2017-01-10 Tom Tromey <tom@tromey.com>
11299
11300 * python/python.c (eval_python_command, gdbpy_decode_line)
11301 (gdbpy_run_events, gdbpy_start_type_printers)
11302 (gdbpy_apply_type_printers): Use gdbpy_ref.
11303
11304 2017-01-10 Tom Tromey <tom@tromey.com>
11305
11306 * python/py-param.c (get_doc_string, compute_enum_values): Use
11307 gdbpy_ref.
11308
11309 2017-01-10 Tom Tromey <tom@tromey.com>
11310
11311 * python/py-inferior.c (find_thread_object, build_inferior_list):
11312 Use gdbpy_ref.
11313
11314 2017-01-10 Tom Tromey <tom@tromey.com>
11315
11316 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11317
11318 2017-01-10 Tom Tromey <tom@tromey.com>
11319
11320 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11321 gdbpy_ref.
11322
11323 2017-01-10 Tom Tromey <tom@tromey.com>
11324
11325 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11326 extra incref.
11327 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11328 Use gdbpy_ref.
11329
11330 2017-01-10 Tom Tromey <tom@tromey.com>
11331
11332 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11333 gdbpy_ref.
11334
11335 2017-01-10 Tom Tromey <tom@tromey.com>
11336
11337 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11338 decref results of PyArg_ParseTupleAndKeywords.
11339
11340 2017-01-10 Tom Tromey <tom@tromey.com>
11341
11342 * python/python.c (python_run_simple_file): Use
11343 unique_xmalloc_ptr, gdbpy_ref.
11344
11345 2017-01-10 Tom Tromey <tom@tromey.com>
11346
11347 * python/py-prettyprint.c (print_stack_unless_memory_error)
11348 (print_string_repr, print_children): Use gdbpy_ref.
11349 (dummy_python_frame): New class.
11350 (dummy_python_frame::dummy_python_frame): Rename from
11351 push_dummy_python_frame.
11352 (py_restore_tstate): Remove.
11353
11354 2017-01-10 Tom Tromey <tom@tromey.com>
11355
11356 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11357
11358 2017-01-10 Tom Tromey <tom@tromey.com>
11359
11360 * python/python.c (ensure_python_env, restore_python_env):
11361 Remove.
11362 * python/python-internal.h (ensure_python_env): Don't declare.
11363 * varobj.h (varobj_ensure_python_env): Don't declare.
11364 * varobj.c (varobj_ensure_python_env): Remove.
11365
11366 2017-01-10 Tom Tromey <tom@tromey.com>
11367
11368 * varobj.c (varobj_value_get_print_value): Use
11369 gdbpy_enter_varobj.
11370
11371 2017-01-10 Tom Tromey <tom@tromey.com>
11372
11373 * python/py-prettyprint.c (print_string_repr, print_children):
11374 Update.
11375 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11376 of "encoding".
11377 * varobj.c (varobj_value_get_print_value): Update.
11378 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11379
11380 2017-01-10 Tom Tromey <tom@tromey.com>
11381
11382 * varobj.c (varobj_get_display_hint)
11383 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11384 (varobj_set_visualizer, free_variable): Use
11385 gdbpy_enter_varobj.
11386
11387 2017-01-10 Tom Tromey <tom@tromey.com>
11388
11389 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11390 (do_finish_initialization): New function. Use gdbpy_ref.
11391 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11392 do_finish_initialization.
11393
11394 2017-01-10 Tom Tromey <tom@tromey.com>
11395
11396 * python/py-param.c (get_set_value, get_show_value): Use
11397 gdbpy_enter, gdbpy_ref.
11398
11399 2017-01-10 Tom Tromey <tom@tromey.com>
11400
11401 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11402
11403 2017-01-10 Tom Tromey <tom@tromey.com>
11404
11405 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11406
11407 2017-01-10 Tom Tromey <tom@tromey.com>
11408
11409 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11410 Use gdbpy_enter_varobj.
11411
11412 2017-01-10 Tom Tromey <tom@tromey.com>
11413
11414 * varobj.c (gdbpy_enter_varobj): New constructor.
11415 * python/python-internal.h (gdbpy_enter_varobj): New class.
11416 * python/py-varobj.c (py_varobj_get_iterator): Use
11417 gdbpy_enter_varobj.
11418
11419 2017-01-10 Tom Tromey <tom@tromey.com>
11420
11421 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11422 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11423 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11424 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11425 unique_xmalloc_ptr.
11426 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11427
11428 2017-01-10 Tom Tromey <tom@tromey.com>
11429
11430 * python/py-xmethods.c (invoke_match_method): Use
11431 gdbpy_ref.
11432
11433 2017-01-10 Tom Tromey <tom@tromey.com>
11434
11435 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11436 gdbpy_enter, gdbpy_ref.
11437
11438 2017-01-10 Tom Tromey <tom@tromey.com>
11439
11440 * python/python.c (python_interactive_command): Use gdbpy_enter.
11441
11442 2017-01-10 Tom Tromey <tom@tromey.com>
11443
11444 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11445 gdbpy_ref.
11446
11447 2017-01-10 Tom Tromey <tom@tromey.com>
11448
11449 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11450 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11451
11452 2017-01-10 Tom Tromey <tom@tromey.com>
11453
11454 * utils.h (htab_deleter): New struct.
11455 (htab_up): New typedef.
11456 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11457 gdbpy_enter, gdbpy_ref, htab_up.
11458
11459 2017-01-10 Tom Tromey <tom@tromey.com>
11460
11461 * python/py-unwind.c (pending_frame_invalidate): Remove.
11462 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11463
11464 2017-01-10 Tom Tromey <tom@tromey.com>
11465
11466 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11467 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11468
11469 2017-01-10 Tom Tromey <tom@tromey.com>
11470
11471 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11472
11473 2017-01-10 Tom Tromey <tom@tromey.com>
11474
11475 * python/python.c (gdbpy_eval_from_control_command)
11476 (gdbpy_source_script, gdbpy_run_events)
11477 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11478 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11479 gdbpy_enter.
11480
11481 2017-01-10 Tom Tromey <tom@tromey.com>
11482
11483 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11484
11485 2017-01-10 Tom Tromey <tom@tromey.com>
11486
11487 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11488
11489 2017-01-10 Tom Tromey <tom@tromey.com>
11490
11491 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11492 (python_on_inferior_call_pre, python_on_inferior_call_post)
11493 (python_on_memory_change, python_on_register_change)
11494 (python_inferior_exit, python_new_objfile, add_thread_object)
11495 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11496
11497 2017-01-10 Tom Tromey <tom@tromey.com>
11498
11499 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11500 (bpfinishpy_handle_exit): Use gdbpy_enter.
11501
11502 2017-01-10 Tom Tromey <tom@tromey.com>
11503
11504 * python/py-cmd.c (cmdpy_destroyer)
11505 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11506 gdbpy_enter.
11507
11508 2017-01-10 Tom Tromey <tom@tromey.com>
11509
11510 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11511 gdbpy_enter.
11512 (gdbpy_breakpoint_has_cond): Likewise.
11513
11514 2017-01-10 Tom Tromey <tom@tromey.com>
11515
11516 * python/python.c (gdbpy_enter): New constructor.
11517 (~gdbpy_enter): New destructor.
11518 (restore_python_env, ensure_python_env): Rewrite.
11519 * python/python-internal.h (gdbpy_enter): New class.
11520
11521 2017-01-10 Tom Tromey <tom@tromey.com>
11522
11523 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11524
11525 2017-01-10 Tom Tromey <tom@tromey.com>
11526
11527 * python/py-value.c (value_has_field, get_field_flag)
11528 (get_field_type, valpy_getitem, convert_value_from_python): Use
11529 gdbpy_ref.
11530
11531 2017-01-10 Tom Tromey <tom@tromey.com>
11532
11533 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11534 gdbpy_ref.
11535
11536 2017-01-10 Tom Tromey <tom@tromey.com>
11537
11538 * python/py-prettyprint.c (search_pp_list)
11539 (find_pretty_printer_from_objfiles)
11540 (find_pretty_printer_from_progspace)
11541 (find_pretty_printer_from_gdb, find_pretty_printer)
11542 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11543 gdbpy_ref.
11544
11545 2017-01-10 Tom Tromey <tom@tromey.com>
11546
11547 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11548
11549 2017-01-10 Tom Tromey <tom@tromey.com>
11550
11551 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11552 (ltpy_get_all_source_lines): Use gdbpy_ref.
11553
11554 2017-01-10 Tom Tromey <tom@tromey.com>
11555
11556 * python/py-framefilter.c (extract_sym, extract_value)
11557 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11558 gdbpy_ref.
11559
11560 2017-01-10 Tom Tromey <tom@tromey.com>
11561
11562 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11563
11564 2017-01-10 Tom Tromey <tom@tromey.com>
11565
11566 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11567
11568 2017-01-10 Tom Tromey <tom@tromey.com>
11569
11570 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11571 gdbpy_ref.
11572
11573 2017-01-10 Tom Tromey <tom@tromey.com>
11574
11575 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11576
11577 2017-01-10 Tom Tromey <tom@tromey.com>
11578
11579 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11580 (typy_range): Use gdbpy_ref.
11581
11582 2017-01-10 Tom Tromey <tom@tromey.com>
11583
11584 * python/py-threadevent.c (create_thread_event_object): Use
11585 gdbpy_ref.
11586 * python/py-stopevent.c (create_stop_event_object): Simplify.
11587 (emit_stop_event): Use gdbpy_ref.
11588 * python/py-signalevent.c (create_signal_event_object): Use
11589 gdbpy_ref.
11590 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11591 (emit_new_objfile_event, create_clear_objfiles_event_object)
11592 (emit_clear_objfiles_event): Use gdbpy_ref.
11593 * python/py-infevents.c (create_inferior_call_event_object)
11594 (create_register_changed_event_object)
11595 (create_memory_changed_event_object, emit_inferior_call_event)
11596 (emit_memory_changed_event, emit_register_changed_event): Use
11597 gdbpy_ref.
11598 * python/py-exitedevent.c (create_exited_event_object)
11599 (emit_exited_event): Use gdbpy_ref.
11600 * python/py-event.h (evpy_emit_event): Remove
11601 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11602 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11603 * python/py-continueevent.c (emit_continue_event): Use
11604 gdbpy_ref.
11605 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11606 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11607 gdbpy_ref.
11608 * python/py-bpevent.c (create_breakpoint_event_object): Use
11609 gdbpy_ref.
11610
11611 2017-01-10 Tom Tromey <tom@tromey.com>
11612
11613 * python/py-ref.h: New file.
11614
11615 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11616
11617 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11618 void.
11619 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11620 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11621 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11622 * ui-out.c (ui_out::redirect): Likewise.
11623 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11624 * cli/cli-logging.c (set_logging_redirect): Update call site of
11625 ui_out::redirect.
11626 (handle_redirections): Likewise.
11627 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11628 * top.c (execute_command_to_string): Likewise.
11629 * utils.c (do_ui_out_redirect_pop): Likewise.
11630
11631 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11632
11633 * stack.c (_initialize_stack): Update "frame" command help message.
11634
11635 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11636
11637 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11638
11639 2017-01-06 Yao Qi <yao.qi@linaro.org>
11640
11641 * x86-linux-nat.h: Include gdb_proc_service.h.
11642
11643 2017-01-06 Yao Qi <yao.qi@linaro.org>
11644
11645 * ser-base.h: Include serial.h.
11646
11647 2017-01-06 Yao Qi <yao.qi@linaro.org>
11648
11649 * ppc-linux-tdep.h: Include ppc-tdep.h.
11650
11651 2017-01-06 Yao Qi <yao.qi@linaro.org>
11652
11653 * nat/amd64-linux-siginfo.h: Include signal.h.
11654
11655 2017-01-06 Yao Qi <yao.qi@linaro.org>
11656
11657 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11658
11659 2017-01-06 Yao Qi <yao.qi@linaro.org>
11660
11661 * mi/mi-parse.h: Include mi-cmds.h.
11662
11663 2017-01-06 Yao Qi <yao.qi@linaro.org>
11664
11665 * inf-loop.c: Don't include "target.h".
11666 * inf-loop.h: Include it here.
11667
11668 2017-01-06 Yao Qi <yao.qi@linaro.org>
11669
11670 * dfp.h: Include "dboulest.h" and "expression.h".
11671
11672 2017-01-06 Yao Qi <yao.qi@linaro.org>
11673
11674 * ax-gdb.h: Include "ax.h".
11675
11676 2017-01-06 Yao Qi <yao.qi@linaro.org>
11677
11678 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11679 with nat/gdb_ptrace.h.
11680
11681 2017-01-05 Yao Qi <yao.qi@linaro.org>
11682
11683 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11684 new line.
11685 (mips64_fbsd_sigframe_init): Likewise.
11686
11687 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11688
11689 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11690 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11691
11692 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11693
11694 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11695 * NEWS: Mention new FreeBSD/mips native configuration.
11696 * config/mips/fbsd.mh: New file.
11697 * configure.host: Add mips*-*-freebsd*.
11698 * mips-fbsd-nat.c: New file.
11699
11700 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11701
11702 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11703 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11704 * NEWS: Mention new FreeBSD/mips target.
11705 * configure.tgt: Add mips*-*-freebsd*.
11706 * mips-fbsd-tdep.c: New file.
11707 * mips-fbsd-tdep.h: New file.
11708
11709 2017-01-04 Yao Qi <yao.qi@linaro.org>
11710
11711 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11712 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11713
11714 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11715
11716 Update copyright year range in all GDB files.
11717
11718 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11719
11720 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11721
11722 For older changes see ChangeLog-2016.
11723 \f
11724 Local Variables:
11725 mode: change-log
11726 left-margin: 8
11727 fill-column: 74
11728 version-control: never
11729 coding: utf-8
11730 End:
This page took 0.346641 seconds and 5 git commands to generate.