Constify some commands in breakpoint.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4495129a
TT
12017-09-27 Tom Tromey <tom@tromey.com>
2
3 * breakpoint.h (delete_command): Don't declare.
4 * breakpoint.c (delete_command, enable_once_command)
5 (enable_count_command, enable_delete_command, breakpoint_1)
6 (maintenance_info_breakpoints, stopin_command, stopat_command)
7 (delete_command, delete_trace_command, save_breakpoints)
8 (save_breakpoints_command, save_tracepoints_command): Constify.
9
3088cf40
TT
102017-09-27 Tom Tromey <tom@tromey.com>
11
12 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13 (skip_ws, extract_identifier, macro_define_command)
14 (macro_undef_command, macro_list_command): Constify.
15
69f476a3
TT
162017-09-27 Tom Tromey <tom@tromey.com>
17
18 * infcmd.c (environment_info, set_environment_command)
19 (unset_environment_command, path_info, info_proc_cmd_1)
20 (info_proc_cmd_mappings, info_proc_cmd_stat)
21 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
22 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
23
c4a3e68e
TT
242017-09-27 Tom Tromey <tom@tromey.com>
25
26 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
27 Constify.
28
c9d31bd6
TT
292017-09-27 Tom Tromey <tom@tromey.com>
30
31 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
32
1f3f85eb
TT
332017-09-27 Tom Tromey <tom@tromey.com>
34
35 * demangle.c (demangle_command): Constify.
36
9c504b5d
TT
372017-09-27 Tom Tromey <tom@tromey.com>
38
39 * progspace.c (maintenance_info_program_spaces_command):
40 Constify.
41
6663cf91
TT
422017-09-27 Tom Tromey <tom@tromey.com>
43
44 * compile/compile.c (check_raw_argument, compile_file_command)
45 (compile_code_command, compile_print_command): Constify.
46
34e5fa26
TT
472017-09-27 Tom Tromey <tom@tromey.com>
48
49 * reggroups.c (maintenance_print_reggroups): Constify.
50
8384c356
TT
512017-09-27 Tom Tromey <tom@tromey.com>
52
53 * dwarf2read.c (save_gdb_index_command): Constify.
54
884beb0c
TT
552017-09-27 Tom Tromey <tom@tromey.com>
56
57 * stap-probe.c (info_probes_stap_command): Constify.
58
e0b2930c
TT
592017-09-27 Tom Tromey <tom@tromey.com>
60
61 * fork-child.c (unset_exec_wrapper_command): Constify.
62
f938677d
TT
632017-09-27 Tom Tromey <tom@tromey.com>
64
65 * btrace.c (get_uint, get_context_size, no_chunk)
66 (maint_btrace_packet_history_cmd)
67 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
68 (maint_info_btrace_cmd): Constify.
69
8949cb87
TT
702017-09-27 Tom Tromey <tom@tromey.com>
71
72 * reverse.c (delete_bookmark_command): Constify.
73
ac88e2de
TT
742017-09-27 Tom Tromey <tom@tromey.com>
75
76 * remote.c (set_memory_packet_size)
77 (set_memory_write_packet_size, show_memory_write_packet_size)
78 (set_memory_read_packet_size, show_memory_read_packet_size)
79 (compare_sections_command, packet_command, remote_put_command)
80 (remote_get_command, remote_delete_command): Constify.
81
bd4c9dfe
TT
822017-09-27 Tom Tromey <tom@tromey.com>
83
84 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
85 (set_mipsfpu_double_command, set_mipsfpu_none_command)
86 (set_mipsfpu_auto_command): Constify.
87
5e93d4c6
TT
882017-09-27 Tom Tromey <tom@tromey.com>
89
90 * cli/cli-cmds.h (cd_command): Constify.
91 * cli/cli-cmds.c (cd_command): Constify.
92
fc41a75b
TT
932017-09-27 Tom Tromey <tom@tromey.com>
94
95 * thread.c (thread_name_command, thread_find_command): Constify.
96
67810076
TT
972017-09-27 Tom Tromey <tom@tromey.com>
98
99 * probe.c (enable_probes_command, disable_probes_command):
100 Constify.
101
1d8b34a7
TT
1022017-09-27 Tom Tromey <tom@tromey.com>
103
104 * symfile.c (symbol_file_command): Constify.
105 * gdbcore.h (deprecated_file_changed_hook): Constify.
106 * exec.c (deprecated_file_changed_hook, exec_file_command)
107 (file_command): Constify.
108 * defs.h (symbol_file_command): Constify.
109
442019e1
TT
1102017-09-27 Tom Tromey <tom@tromey.com>
111
112 * remote-fileio.c (set_system_call_allowed)
113 (show_system_call_allowed): Constify.
114
2983f7cb
TT
1152017-09-27 Tom Tromey <tom@tromey.com>
116
117 * tracepoint.c (delete_trace_variable_command)
118 (tfind_end_command, tfind_start_command, tfind_pc_command)
119 (tfind_tracepoint_command, tfind_line_command)
120 (tfind_range_command, tfind_outside_command): Constify.
121
4fd41b24
TT
1222017-09-27 Tom Tromey <tom@tromey.com>
123
124 * ax-gdb.c (maint_agent_printf_command, agent_command)
125 (agent_eval_command): Constify.
126
f2fc3015
TT
1272017-09-27 Tom Tromey <tom@tromey.com>
128
129 * tracepoint.c (info_scope_command): Constify.
130 * python/python.c (gdbpy_decode_line): Constify.
131 * python/py-breakpoint.c (bppy_init): Constify.
132 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
133 * location.h: (new_linespec_location)
134 (string_to_event_location_basic, string_to_event_location):
135 Constify.
136 * location.c (new_linespec_location)
137 (string_to_event_location_basic, string_to_event_location):
138 Constify.
139 * linespec.h (decode_line_with_current_source)
140 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
141 * linespec.c (linespec_lex_to_end)
142 (decode_line_with_current_source)
143 (decode_line_with_last_displayed): Constify.
144 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
145 Constify.
146 * cli/cli-cmds.c (edit_command, list_command): Constify.
147 * breakpoint.h (until_break_command, watch_command_wrapper)
148 (awatch_command_wrapper, rwatch_command_wrapper)
149 (init_ada_exception_breakpoint): Constify.
150 * breakpoint.c (break_command_1, dprintf_command)
151 (break_range_command, watch_command_wrapper)
152 (rwatch_command_wrapper, awatch_command_wrapper)
153 (until_break_command, init_ada_exception_breakpoint)
154 (strace_marker_create_sals_from_location, trace_command)
155 (ftrace_command, strace_command, struct tracepoint): Constify.
156 * ax-gdb.c (agent_command_1): Constify.
157 * ada-lang.c (ada_exception_sal): Constify.
158
8c2f95f4
TT
1592017-09-27 Tom Tromey <tom@tromey.com>
160
161 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
162 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
163 (get_context_size, no_chunk, get_insn_history_modifiers)
164 (cmd_record_insn_history, get_call_history_modifiers)
165 (cmd_record_call_history): Constify.
166
a0d65762
TT
1672017-09-27 Tom Tromey <tom@tromey.com>
168
169 * source.c (show_substitute_path_command)
170 (unset_substitute_path_command, set_substitute_path_command):
171 Constify.
172
58971144
TT
1732017-09-27 Tom Tromey <tom@tromey.com>
174
175 * typeprint.c (maintenance_print_type): Constify.
176 * maint.c (maintenance_dump_me, maintenance_demangle)
177 (maintenance_time_display, maintenance_info_sections)
178 (maintenance_print_statistics, maintenance_deprecate)
179 (maintenance_undeprecate): Constify.
180 (maintenance_do_deprecate): Constify. Use std::string.
181 (maintenance_selftest): Constify.
182 * gdbtypes.h (maintenance_print_type): Constify.
183
c482f52c
TT
1842017-09-27 Tom Tromey <tom@tromey.com>
185
186 * hppa-tdep.c (unwind_command): Constify.
187
e100df1a
TT
1882017-09-27 Tom Tromey <tom@tromey.com>
189
190 * target-descriptions.c (unset_tdesc_filename_cmd)
191 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
192 Constify.
193
31d56ade
TT
1942017-09-27 Tom Tromey <tom@tromey.com>
195
196 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
197
b961da0b
TT
1982017-09-27 Tom Tromey <tom@tromey.com>
199
200 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
201
e2d8ae16
TT
2022017-09-27 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-regs.c (tui_reg_command): Constify.
205
863779b0
TT
2062017-09-27 Tom Tromey <tom@tromey.com>
207
208 * skip.c (skip_file_command, skip_function_command)
209 (skip_enable_command, skip_disable_command, skip_delete_command):
210 Constify.
211
cdb34d4a
TT
2122017-09-27 Tom Tromey <tom@tromey.com>
213
214 * record-btrace.c (cmd_record_btrace_bts_start)
215 (cmd_record_btrace_pt_start): Constify.
216
e99c83e7
TT
2172017-09-27 Tom Tromey <tom@tromey.com>
218
219 * symmisc.c (maintenance_print_symbols)
220 (maintenance_print_msymbols, maintenance_print_objfiles)
221 (maintenance_info_symtabs, maintenance_check_symtabs)
222 (maintenance_expand_symtabs, maintenance_info_line_tables):
223 Constify.
224
32faf971
TT
2252017-09-27 Tom Tromey <tom@tromey.com>
226
227 * top.c (new_ui_command): Constify.
228
2cf311eb
TT
2292017-09-27 Tom Tromey <tom@tromey.com>
230
231 * symfile.c (add_symbol_file_command)
232 (remove_symbol_file_command, list_overlays_command)
233 (map_overlay_command, unmap_overlay_command)
234 (overlay_auto_command, overlay_manual_command)
235 (overlay_off_command, overlay_load_command): Constify.
236
e6738699
TT
2372017-09-27 Tom Tromey <tom@tromey.com>
238
239 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
240 (info_spu_mailbox_command, info_spu_dma_command)
241 (info_spu_proxydma_command): Constify.
242
aa360cd5
TT
2432017-09-27 Tom Tromey <tom@tromey.com>
244
245 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
246
898241a5
TT
2472017-09-27 Tom Tromey <tom@tromey.com>
248
249 * cli/cli-script.c (user_defined_command): Constify.
250
2d0ac106
TT
2512017-09-27 Tom Tromey <tom@tromey.com>
252
253 * cli/cli-dump.c (dump_memory_command, dump_value_command)
254 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
255 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
256 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
257 (dump_binary_value, append_binary_memory, append_binary_value):
258 Constify.
259 (struct dump_context) <func>: Constify.
260 (add_dump_command): Update.
261
dede02ce
TT
2622017-09-27 Tom Tromey <tom@tromey.com>
263
264 * cli/cli-cmds.c (show_version, show_configuration)
265 (source_command, show_user): Constify.
266
d3cb6b99
TT
2672017-09-27 Tom Tromey <tom@tromey.com>
268
269 * target.c (maintenance_print_target_stack): Constify.
270
1970a12f
TT
2712017-09-27 Tom Tromey <tom@tromey.com>
272
273 * interps.c (interpreter_exec_cmd): Constify.
274
41243651
TT
2752017-09-27 Tom Tromey <tom@tromey.com>
276
277 * record-full.c (cmd_record_full_restore): Constify.
278
4465d9db
TT
2792017-09-27 Tom Tromey <tom@tromey.com>
280
281 * memattr.c (enable_mem_command, disable_mem_command)
282 (delete_mem_command): Constify.
283
ad25e423
TT
2842017-09-27 Tom Tromey <tom@tromey.com>
285
286 * value.c (show_convenience): Constify.
287
d64097b1
TT
2882017-09-27 Tom Tromey <tom@tromey.com>
289
290 * gdbcore.h (core_file_command): Update.
291 * corefile.c (core_file_command): Constify.
292
4d4589ef
TT
2932017-09-27 Tom Tromey <tom@tromey.com>
294
295 * user-regs.c (maintenance_print_user_registers): Constify.
296
32a7bf17
TT
2972017-09-27 Tom Tromey <tom@tromey.com>
298
299 * cp-namespace.c (maintenance_cplus_namespace): Constify.
300
4a475551
TT
3012017-09-27 Tom Tromey <tom@tromey.com>
302
303 * cp-support.c (first_component_command): Constify.
304
990b9f9f
TT
3052017-09-27 Tom Tromey <tom@tromey.com>
306
307 * psymtab.c (maintenance_print_psymbols)
308 (maintenance_info_psymtabs, maintenance_check_psymtabs):
309 Constify.
310
c281872e
TT
3112017-09-27 Tom Tromey <tom@tromey.com>
312
313 * windows-tdep.c (display_tib): Constify.
314
5b64bf74
TT
3152017-09-27 Tom Tromey <tom@tromey.com>
316
317 * linux-fork.c (delete_checkpoint_command)
318 (detach_checkpoint_command): Constify.
319
4ada038f
TT
3202017-09-27 Tom Tromey <tom@tromey.com>
321
322 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
323
57f5a81b
TT
3242017-09-27 Tom Tromey <tom@tromey.com>
325
326 * arc-tdep.c (dump_arc_instruction_command): Constify.
327
b0a8e6c4
TT
3282017-09-27 Tom Tromey <tom@tromey.com>
329
330 * valprint.c (set_radix, show_radix): Constify.
331
8d97dc1c
TT
3322017-09-27 Tom Tromey <tom@tromey.com>
333
334 * dtrace-probe.c (info_probes_dtrace_command): Constify.
335
eb7c454d
TT
3362017-09-27 Tom Tromey <tom@tromey.com>
337
338 * command.h (not_just_help_class_command): Update.
339 * cli/cli-decode.h (not_just_help_class_command): Update.
340 * cli/cli-decode.c (not_just_help_class_command): Constify.
341
e4e33335
TT
3422017-09-27 Tom Tromey <tom@tromey.com>
343
344 * gdb_bfd.c (maintenance_info_bfds): Constify.
345
0450cc4c
TT
3462017-09-27 Tom Tromey <tom@tromey.com>
347
348 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
349 overloads.
350 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
351 (do_const_cfunc): New function.
352 (cmd_cfunc_eq): New overload.
353 (cli_user_command_p): Check do_const_cfunc.
354 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
355 const_cfunc.
356 * command.h (add_cmd): Add const overload and no-function
357 overload.
358 (set_cmd_cfunc): Add const overload.
359 (cmd_const_cfunc_ftype): Declare.
360 (cmd_cfunc_eq): Add const overload.
361 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
362 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
363 overload.
364
a9bbfbd8
TT
3652017-09-27 Tom Tromey <tom@tromey.com>
366
367 * macroexp.c (get_next_token_for_substitution): New function.
368 (substitute_args): Call it. Check for __VA_OPT__.
369
5230b05a
WT
3702017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
371 Pedro Alves <palves@redhat.com>
372
373 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
374 producer_is_icc_lt_14.
375 (producer_is_icc_lt_14): New function.
376 (check_producer): Add code for checking version of ICC.
377 (producer_is_icc): Move to producer.c.
378 (read_structure_type): Restrict ICC workaround to ICC<14.
379 * producer.c: Include selftest.h.
380 (producer_is_icc, producer_parsing_tests, _initialize_producer):
381 New functions.
382 * producer.h (producer_is_icc): New declaration.
383
b32b108a
WT
3842017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
385
386 * Makefile.in (SFILES): Add producer.c.
387 (COMMON_OBS): Add producer.o
388 * amd64-tdep.c (producer.h): Add new include.
389 * dwarf2read.c (producer.h): Add new include.
390 * producer.c: New file.
391 * producer.h: New file.
392 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
393 producer.c.
394 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
395 producer.h.
396
5007d765
MK
3972017-09-26 Matthias Klose <doko@ubuntu.com>
398
399 * configure.ac: Search ncursesw before ncurses.
400 Check ncursesw/ncurses.h before ncurses/ncurses.h.
401 * gdb_curses.h: Include <ncursesw/ncurses.h>
402 * config.in, configure: Regenerate.
403
281c4447
RO
4042017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405
406 PR gdb/22185
407 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
408 obsolete.
409 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
410 Remove i386sol2 support.
411 * configure.nat <i386sol2>: Remove.
412 <sol2-64>: Fold into ...
413 <sol2>: ... this.
414 Move common settings to default section.
415 Add sol-thread.o.
416 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
417 x86_64-*-solaris2.1[0-9]*>: Rename to ...
418 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
419 <i[34567]86-*-solaris*>: Remove.
420 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
421
422 * configure.ac: Remove wctype in libw check.
423 (_MSE_INT_H): Don't define on Solaris 7-9.
424 <solaris*>: Remove libthread_db.so.1 check.
425 * configure: Regenerate.
426 * config.in: Regenerate.
427
428 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
429 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
430 (gdb_ps_size_t): Remove.
431 Use base types in users.
432 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
433
434 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
435
39b06c20
RO
4362017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
437
438 PR build/22206
439 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
440 (adi_is_addr_mapped): Likewise.
441 (PSR_ICC): Don't redefine.
442 (PSR_IMPL): Likewise.
443
6c3e20f1
TT
4442017-09-25 Tom Tromey <tom@tromey.com>
445
446 * regcache.c (regcache::dump): Use string_printf.
447
b292235f
TT
4482017-09-25 Tom Tromey <tom@tromey.com>
449
450 * regcache.c (class regcache_invalidator): New.
451 (struct register_to_invalidate): Remove.
452 (make_cleanup_regcache_invalidate): Remove.
453 (regcache::raw_write): Use regcache_invalidator.
454
9ac86b52
TT
4552017-09-25 Tom Tromey <tom@tromey.com>
456
457 * spu-tdep.c (spu2ppu_sniffer): Update.
458 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
459 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
460 Remove.
461 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
462 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
463 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
464 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
465 (frame_pop): Update.
466
c0e383c6
TT
4672017-09-25 Tom Tromey <tom@tromey.com>
468
469 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
470 * regcache.h (regcache_xfree): Don't declare.
471 * regcache.c (regcache_xfree): Remove.
472 (do_regcache_xfree): Use delete.
473 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
474 * linux-fork.c (free_fork): Use delete.
475 (fork_save_infrun_state): Likewise.
476 * jit.c (jit_dealloc_cache): Use delete.
477 * infrun.c (discard_infcall_suspend_state): Use delete.
478
791199cc
TT
4792017-09-25 Tom Tromey <tom@tromey.com>
480
481 * regcache.h (regcache_xmalloc): Don't declare.
482 (regcache_raw_set_cached_value): Update comment.
483 * regcache.c (regcache_xmalloc): Remove.
484 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
485 * jit.c (jit_frame_sniffer): Use new.
486 * frame.c (frame_save_as_regcache): Use new.
487
289e23aa
AA
4882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
489
490 * NEWS: Advertise support for guarded-storage registers on IBM z.
491
1b63490c
AA
4922017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
493
494 * s390-linux-nat.c (have_regset_gs): New static variable.
495 (s390_linux_fetch_inferior_registers): Handle guarded-storage
496 control block and guarded-storage broadcast control regsets.
497 (s390_read_description): Detect whether the target has
498 guarded-storage support, return appropriate tdesc.
499 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
500 (features/s390x-gs-linux64.c): Likewise.
501 (struct gdbarch_tdep) <have_gs>: New field.
502 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
503 (s390_gsbc_regset): New variables.
504 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
505 and s390_gsbc_regset, if applicable.
506 (s390_core_read_description): Check whether core file was from a
507 target with guarded-storage support; include appropriate regsets.
508 (s390_gdbarch_init): Add registers for guarded-storage support.
509 (_initialize_s390_tdep): Initialize new target descriptions that
510 include registers for guarded-storage support.
511 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
512 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
513 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
514 (S390_NUM_REGS): Adjust macro definition.
515 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
516 (tdesc_s390x_gs_linux64): New declarations.
517
96235dc1
AA
5182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
519
520 * features/s390-gs-linux64.xml: New file.
521 * features/s390-gs.xml: New file.
522 * features/s390-gsbc.xml: New file.
523 * features/s390x-gs-linux64.xml: New file.
524 * features/Makefile (WHICH): Add s390-gs-linux64 and
525 s390x-gs-linux64.
526 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
527 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
528 * features/s390-gs-linux64.c: New generated file.
529 * features/s390x-gs-linux64.c: New file.
530 * regformats/s390-gs-linux64.dat: New file.
531 * regformats/s390x-gs-linux64.dat: New file.
532
b4a7c699
TT
5332017-09-23 Tom Tromey <tom@tromey.com>
534
535 * defs.h (make_cleanup_override_quit_handler): Don't declare.
536
c2f97536
TT
5372017-09-22 Tom Tromey <tom@tromey.com>
538
539 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
540 type to scoped_restore_tmpl.
541 <scoped_input_handler>: Initialize m_quit_handler directly.
542
43573013
SDJ
5432017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
544
545 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
546 (cd_command): Likewise. Free "current_directory" before
547 assigning to it.
548 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
549 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
550 * top.c (gdb_dirbuf): Remove global declaration.
551 * top.h (gdb_dirbuf): Likewise.
552
6ec2e0f5
SDJ
5532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
554
555 * gnulib/aclocal.m4: Regenerate.
556 * gnulib/config.in: Regenerate.
557 * gnulib/configure: Regenerate.
558 * gnulib/import/Makefile.am: Regenerate.
559 * gnulib/import/Makefile.in: Regenerate.
560 * gnulib/import/assure.h: New file.
561 * gnulib/import/at-func.c: Likewise
562 * gnulib/import/chdir-long.c: New file.
563 * gnulib/import/chdir-long.h: New file.
564 * gnulib/import/cloexec.c: New file.
565 * gnulib/import/cloexec.h: New file.
566 * gnulib/import/close.c: New file.
567 * gnulib/import/closedir.c: New file.
568 * gnulib/import/dirent-private.h: New file.
569 * gnulib/import/dup-safer.c: New file.
570 * gnulib/import/dup.c: New file.
571 * gnulib/import/dup2.c: New file.
572 * gnulib/import/error.c: New file.
573 * gnulib/import/error.h: New file.
574 * gnulib/import/exitfail.c: New file.
575 * gnulib/import/exitfail.h: New file.
576 * gnulib/import/fchdir.c: New file.
577 * gnulib/import/fcntl.c: New file.
578 * gnulib/import/fcntl.in.h: New file.
579 * gnulib/import/fd-hook.c: New file.
580 * gnulib/import/fd-hook.h: New file.
581 * gnulib/import/fd-safer.c: New file.
582 * gnulib/import/fdopendir.c: New file.
583 * gnulib/import/filename.h: New file.
584 * gnulib/import/filenamecat-lgpl.c: New file.
585 * gnulib/import/filenamecat.h: New file.
586 * gnulib/import/fstat.c: New file.
587 * gnulib/import/fstatat.c: New file.
588 * gnulib/import/getcwd-lgpl.c: New file.
589 * gnulib/import/getcwd.c: New file.
590 * gnulib/import/getdtablesize.c: New file.
591 * gnulib/import/getlogin_r.c: New file.
592 * gnulib/import/getprogname.c: New file.
593 * gnulib/import/getprogname.h: New file.
594 * gnulib/import/gettext.h: New file.
595 * gnulib/import/glob-libc.h: New file.
596 * gnulib/import/glob.c: New file.
597 * gnulib/import/glob.in.h: New file.
598 * gnulib/import/intprops.h: New file.
599 * gnulib/import/m4/chdir-long.m4: New file.
600 * gnulib/import/m4/close.m4: New file.
601 * gnulib/import/m4/closedir.m4: New file.
602 * gnulib/import/m4/d-ino.m4: New file.
603 * gnulib/import/m4/d-type.m4: New file.
604 * gnulib/import/m4/dup.m4: New file.
605 * gnulib/import/m4/dup2.m4: New file.
606 * gnulib/import/m4/error.m4: New file.
607 * gnulib/import/m4/fchdir.m4: New file.
608 * gnulib/import/m4/fcntl.m4: New file.
609 * gnulib/import/m4/fcntl_h.m4: New file.
610 * gnulib/import/m4/fdopendir.m4: New file.
611 * gnulib/import/m4/filenamecat.m4: New file.
612 * gnulib/import/m4/fstat.m4: New file.
613 * gnulib/import/m4/fstatat.m4: New file.
614 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
615 * gnulib/import/m4/getcwd-path-max.m4: New file.
616 * gnulib/import/m4/getcwd.m4: New file.
617 * gnulib/import/m4/getdtablesize.m4: New file.
618 * gnulib/import/m4/getlogin_r.m4: New file.
619 * gnulib/import/m4/getprogname.m4: New file.
620 * gnulib/import/m4/glob.m4: New file.
621 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
622 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
623 * gnulib/import/m4/mempcpy.m4: New file.
624 * gnulib/import/m4/memrchr.m4: New file.
625 * gnulib/import/m4/mode_t.m4: New file.
626 * gnulib/import/m4/msvc-inval.m4: New file.
627 * gnulib/import/m4/msvc-nothrow.m4: New file.
628 * gnulib/import/m4/open.m4: New file.
629 * gnulib/import/m4/openat.m4: New file.
630 * gnulib/import/m4/opendir.m4: New file.
631 * gnulib/import/m4/readdir.m4: New file.
632 * gnulib/import/m4/realloc.m4: New file.
633 * gnulib/import/m4/rewinddir.m4: New file.
634 * gnulib/import/m4/save-cwd.m4: New file.
635 * gnulib/import/m4/strdup.m4: New file.
636 * gnulib/import/m4/strerror.m4: New file.
637 * gnulib/import/m4/unistd-safer.m4: New file.
638 * gnulib/import/mempcpy.c: New file.
639 * gnulib/import/memrchr.c: New file.
640 * gnulib/import/msvc-inval.c: New file.
641 * gnulib/import/msvc-inval.h: New file.
642 * gnulib/import/msvc-nothrow.c: New file.
643 * gnulib/import/msvc-nothrow.h: New file.
644 * gnulib/import/open.c: New file.
645 * gnulib/import/openat-die.c: New file.
646 * gnulib/import/openat-priv.h: New file.
647 * gnulib/import/openat-proc.c: New file.
648 * gnulib/import/openat.c: New file.
649 * gnulib/import/openat.h: New file.
650 * gnulib/import/opendir.c: New file.
651 * gnulib/import/pipe-safer.c: New file.
652 * gnulib/import/readdir.c: New file.
653 * gnulib/import/realloc.c: New file.
654 * gnulib/import/rewinddir.c: New file.
655 * gnulib/import/save-cwd.c: New file.
656 * gnulib/import/save-cwd.h: New file.
657 * gnulib/import/strdup.c: New file.
658 * gnulib/import/strerror-override.c: New file.
659 * gnulib/import/strerror-override.h: New file.
660 * gnulib/import/strerror.c: New file.
661 * gnulib/import/unistd--.h: New file.
662 * gnulib/import/unistd-safer.h: New file.
663 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
664 "getcwd" and "glob".
665 * ser-tcp.c: Undefine "close" before redefining it.
666
432ae719
SM
6672017-09-21 Simon Marchi <simon.marchi@ericsson.com>
668
669 * guile/scm-value.c (gdbscm_value_address): Initialize address,
670 get rid of res_val.
671
4fa7574e
RO
6722017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673
674 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
675 <sol2,sparc>: Likewise.
676 <sol2-64,i386>: Likewise.
677
678 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
679 -Wdeprecated-declarations on *-*-solaris*.
680 * configure: Regenerate.
681
682 * procfs.c: Include "nat/inferior.h".
683 (procfs_info_proc): Fix typo.
684
f6327dcb
KB
6852017-09-21 Kevin Buettner <kevinb@redhat.com>
686
687 * remote.c (vector): Include.
688 (struct private_thread_info): Add field, thread_handle.
689 (free_private_thread_info): Deallocate storage associated with
690 thread handle.
691 (get_private_info_thread): Initialize `thread_handle' field.
692 (struct thread_item): Add field, thread_handle.
693 (clear_threads_listing_context): Deallocate storage associated
694 with thread handle.
695 (start_thread): Add support for "handle" attribute.
696 (thread_attributes): Add "handle".
697 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
698 field.
699 (remote_update_thread_list): Update thread_handle.
700 (remote_thread_handle_to_thread_info): New function.
701 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
702
fbbe5337
KB
7032017-09-21 Kevin Buettner <kevinb@redhat.com>
704
705 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
706 function.
707 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
708 * python/python-internal.h (thread_object_type): Declare.
709
e04ee09e
KB
7102017-09-21 Kevin Buettner <kevinb@redhat.com>
711
712 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
713 (target_thread_handle_to_thread_info): Declare.
714 * target.c (target_thread_handle_to_thread_info): New function.
715 * target-delegates.c: Regenerate.
716 * gdbthread.h (find_thread_by_handle): Declare.
717 * thread.c (find_thread_by_handle): New function.
718 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
719 function.
720 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
721
1e5b66ed
SM
7222017-09-21 Simon Marchi <simon.marchi@ericsson.com>
723
724 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
725
ebe48ba0
SM
7262017-09-21 Simon Marchi <simon.marchi@ericsson.com>
727
728 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
729
0a0bf5dc
YQ
7302017-09-21 Yao Qi <yao.qi@linaro.org>
731
732 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
733 to gdb_target_obs.
734
d1b0a7bf
TT
7352017-09-20 Tom Tromey <tom@tromey.com>
736
737 * breakpoint.c (struct counted_command_line): Remove.
738 (breakpoint_commands): Update.
739 (alloc_counted_command_line, incref_counted_command_line)
740 (decref_counted_command_line, do_cleanup_counted_command_line)
741 (make_cleanup_decref_counted_command_line): Remove.
742 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
743 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
744 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
745 (save_breakpoints): Update.
746 * breakpoint.h (counted_command_line): Now a typedef to
747 shared_ptr.
748 (struct breakpoint) <commands>: Now a counted_command_line.
749 (struct bpstats) <command>: Likewise.
750
48649e1b
TT
7512017-09-20 Tom Tromey <tom@tromey.com>
752
753 * breakpoint.c (struct commands_info, do_map_commands_command):
754 Remove.
755 (commands_command_1): Update.
756 (iterate_over_related_breakpoints): Take a function_view.
757 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
758 (delete_command): Update.
759 (map_breakpoint_numbers): Take a function_view.
760 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
761 (disable_command): Update.
762 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
763 (enable_command): Update.
764 (struct disp_data, do_enable_breakpoint_disp)
765 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
766 (do_map_enable_delete_breakpoint): Remove.
767 (enable_once_command, enable_count_command, enable_delete_command)
768 (delete_trace_variable_command): Update.
769
04afa70c
TT
7702017-09-20 Tom Tromey <tom@tromey.com>
771
772 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
773 (bpstat_clear): Use delete.
774 (bpstats): New constructors.
775 (bpstat_copy, bpstat_stop_status): Use new.
776 (dprintf_after_condition_true): Update.
777 * breakpoint.h (bpstats::bpstats): Add constructors.
778 (bpstats::~bpstats): Add destructor.
779
c83833f4
PA
7802017-09-20 Pedro Alves <palves@redhat.com>
781
782 * eval.c (make_params): Delete, refactored as ...
783 (class fake_method): ... this new type's ctor.
784 (fake_method::~fake_method): New.
785 (evaluate_subexp_standard): Use 'fake_method'.
786
223ffa71
TT
7872017-09-20 Tom Tromey <tom@tromey.com>
788
789 * windows-nat.c (get_windows_debug_event, windows_wait)
790 (do_initial_windows_stuff, windows_attach): Update.
791 * utils.c (vwarning, internal_vproblem): Update.
792 (ui_unregister_input_event_handler_cleanup)
793 (prepare_to_handle_input): Remove.
794 (class scoped_input_handler): New.
795 (defaulted_query, prompt_for_continue): Update.
796 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
797 Update.
798 * top.c (undo_terminal_modifications_before_exit): Update.
799 * target/target.h (target_terminal_init, target_terminal_inferior)
800 (target_terminal_ours): Don't declare.
801 (class target_terminal): New.
802 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
803 (target_terminal_ours_for_output)
804 (make_cleanup_restore_target_terminal): Don't declare.
805 (target_terminal_info): Remove.
806 * target.c (enum terminal_state, terminal_state): Remove.
807 (target_terminal::terminal_state): Define.
808 (target_terminal::init): Rename from target_terminal_init.
809 (target_terminal::inferior): Rename from
810 target_terminal_inferior.
811 (target_terminal::ours): Rename from target_terminal_ours.
812 (target_terminal::ours_for_output): Rename from
813 target_terminal_ours_for_output.
814 (target_terminal::info): New method.
815 (cleanup_restore_target_terminal)
816 (make_cleanup_restore_target_terminal): Remove.
817 * solib.c (handle_solib_event): Update.
818 * remote.c (remote_serial_quit_handler): Update.
819 (remote_terminal_inferior, remote_wait_as): Update.
820 * record-full.c (record_full_wait_1): Update.
821 * nto-procfs.c (procfs_create_inferior): Update.
822 * nat/fork-inferior.c (startup_inferior): Update.
823 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
824 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
825 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
826 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
827 (mi_breakpoint_created, mi_breakpoint_deleted)
828 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
829 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
830 (mi_user_selected_context_changed, report_initial_inferior):
831 Update.
832 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
833 (linux_nat_terminal_inferior): Update.
834 * infrun.c (follow_fork_inferior)
835 (handle_vfork_child_exec_or_exit, do_target_resume)
836 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
837 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
838 Update.
839 * inflow.c (child_terminal_init, info_terminal_command): Update.
840 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
841 (attach_command): Update.
842 * infcall.c (call_thread_fsm_should_stop): Update.
843 * gnu-nat.c (gnu_attach): Update.
844 * extension.c (struct active_ext_lang_state)
845 (restore_active_ext_lang): Update.
846 * exceptions.c (print_flush): Update.
847 * event-top.c (async_enable_stdin, default_quit_handler): Update.
848 (struct quit_handler_cleanup_data, restore_quit_handler)
849 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
850 Remove.
851 * cp-support.c (gdb_demangle): Update.
852 * breakpoint.c (update_inserted_breakpoint_locations)
853 (insert_breakpoint_locations, handle_jit_event)
854 (disable_breakpoints_in_unloaded_shlib): Update.
855 * annotate.c (annotate_breakpoints_invalid)
856 (annotate_frames_invalid): Update.
857
013af3fc
TT
8582017-09-20 Tom Tromey <tom@tromey.com>
859
860 * main.c (catch_command_errors): Rename from
861 catch_command_errors_const.
862 (captured_main_1): Update.
863
06871ae8
PA
8642017-09-20 Pedro Alves <palves@redhat.com>
865
866 * cli/cli-cmds.c (list_command): Use print_sal_location.
867 (print_sal_location): New function.
868 (ambiguous_line_spec): Use print_sal_location.
869 * linespec.c (symbol_to_sal): Record the symbol in the sal.
870 * symtab.c (find_function_start_sal): Likewise.
871 * symtab.h (symtab_and_line::symbol): New field.
872
e5f25bc5
PA
8732017-09-20 Pedro Alves <palves@redhat.com>
874
875 * linespec.c (minsym_found): Handle non-text minsyms.
876 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
877
1b7fa39e
WT
8782017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
879
880 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
881 backslash.
882
37dd0825
WT
8832017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
884
885 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
886 vmovups instead vmovaps.
887 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
888
4e5a4f58
JB
8892017-09-19 John Baldwin <jhb@FreeBSD.org>
890
891 * NEWS (Changes since GDB 8.0): Add starti.
892 * infcmd.c (enum run_break): New.
893 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
894 case.
895 (run_command): Use enum run_how.
896 (start_command): Likewise.
897 (starti_command): New function.
898 (RUN_ARGS_HELP): New macro.
899 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
900 commands. Add starti command.
901
aa70c9f1
YQ
9022017-09-19 Yao Qi <yao.qi@linaro.org>
903
904 * Makefile.in (monitor.o): Remove the rule.
905
d6541620
YQ
9062017-09-19 Yao Qi <yao.qi@linaro.org>
907
908 * annotate.h (struct annotate_arg_emitter): Use
909 DISABLE_COPY_AND_ASSIGN.
910 * common/refcounted-object.h (refcounted_object): Likewise.
911 * completer.h (struct completion_result): Likewise.
912 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
913 * filename-seen-cache.h (filename_seen_cache): Likewise.
914 * gdbcore.h (thread_section_name): Likewise.
915 * gdb_regex.h (compiled_regex): Likewise.
916 * gdbthread.h (scoped_restore_current_thread): Likewise.
917 * inferior.h (scoped_restore_current_inferior): Likewise.
918 * jit.c (jit_reader): Likewise.
919 * linespec.h (struct linespec_result): Likewise.
920 * mi/mi-parse.h (struct mi_parse): Likewise.
921 * nat/fork-inferior.c (execv_argv): Likewise.
922 * progspace.h (scoped_restore_current_program_space): Likewise.
923 * python/python-internal.h (class gdbpy_enter): Likewise.
924 * regcache.h (regcache): Likewise.
925 * target-descriptions.c (struct tdesc_reg): Likewise.
926 (struct tdesc_type): Likewise.
927 (struct tdesc_feature): Likewise.
928 * ui-out.h (ui_out_emit_type): Likewise.
929
0615127c
SM
9302017-09-18 Simon Marchi <simon.marchi@ericsson.com>
931
932 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
933 label abort_expression.
934
5e187554
SM
9352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
936
937 * common/buffer.c (buffer_xml_printf): Adjust.
938 * common/xml-utils.c (xml_escape_text): Change return type to
939 std::string, update code accordingly.
940 * common/xml-utils.h (xml_escape_text): Change return type to
941 std::string.
942 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
943 * windows-tdep.c (windows_xfer_shared_library): Adjust.
944 * unittests/xml-utils-selftests.c (test_xml_escape_text):
945 Adjust.
946
c3d7b541
SM
9472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
948
949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
950 (SUBDIR_UNITTESTS_OBS): Add new object file.
951 * unittests/xml-utils-selftests.c: New file.
952
1526853e
SM
9532017-09-16 Simon Marchi <simon.marchi@ericsson.com>
954
955 * common/selftest.h (selftest): New struct/interface.
956 (register_test): Add name parameter, add new overload.
957 (run_tests): Add filter parameter.
958 (for_each_selftest_ftype): New typedef.
959 (for_each_selftest): New declaration.
960 * common/selftest.c (tests): Change type to
961 map<string, unique_ptr<selftest>>.
962 (simple_selftest): New struct.
963 (register_test): New function.
964 (register_test): Add name parameter and use it.
965 (run_tests): Add filter parameter and use it. Add prints.
966 Adjust to vector -> map change.
967 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
968 registering selftests.
969 * arm-tdep.c (_initialize_arm_tdep): Likewise.
970 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
971 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
972 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
973 * findvar.c (_initialize_findvar): Likewise.
974 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
975 * maint.c (maintenance_selftest): Update call to run_tests.
976 (maintenance_info_selftests): New function.
977 (_initialize_maint_cmds): Register "maintenance info selftests"
978 command. Update "maintenance selftest" doc.
979 * regcache.c (_initialize_regcache): Add names when registering
980 selftests.
981 * rust-exp.y (_initialize_rust_exp): Likewise.
982 * selftest-arch.c (gdbarch_selftest): New struct.
983 (gdbarch_tests): Remove.
984 (register_test_foreach_arch): Add name parameter. Call
985 register_test.
986 (tests_with_arch): Remove, move most content to
987 gdbarch_selftest::operator().
988 (_initialize_selftests_foreach_arch): Remove.
989 * selftest-arch.h (register_test_foreach_arch): Add name
990 parameter.
991 (run_tests_with_arch): New declaration.
992 * utils-selftests.c (_initialize_utils_selftests): Add names
993 when registering selftests.
994 * utils.c (_initialize_utils): Likewise.
995 * unittests/array-view-selftests.c
996 (_initialize_array_view_selftests): Likewise.
997 * unittests/environ-selftests.c (_initialize_environ_selftests):
998 Likewise.
999 * unittests/function-view-selftests.c
1000 (_initialize_function_view_selftests): Likewise.
1001 * unittests/offset-type-selftests.c
1002 (_initialize_offset_type_selftests): Likewise.
1003 * unittests/optional-selftests.c
1004 (_initialize_optional_selftests): Likewise.
1005 * unittests/scoped_restore-selftests.c
1006 (_initialize_scoped_restore_selftests): Likewise.
1007 * NEWS: Document "maintenance selftest" and "maint info
1008 selftests".
1009
5846367a
SM
10102017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1011
1012 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1013 scoped_restore.
1014
bd77e8ff
SM
10152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1016
1017 * mi/mi-main.c (mi_load_progress): Make uiout variable
1018 a unique_ptr.
1019
26a67918
PA
10202017-09-15 Pedro Alves <palves@redhat.com>
1021
1022 * compile/compile-c-types.c (convert_enum, convert_int)
1023 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1024
3f8a7804
SM
10252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1026
1027 * dwarf2read.c (copy_string): Remove.
1028 (parse_macro_definition): Replace copy_string with savestring.
1029
8d200706
YQ
10302017-09-15 Yao Qi <yao.qi@linaro.org>
1031
1032 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1033 gdb_target_obs.
1034 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1035 Likewise.
1036 (i[34567]86-*-linux*): Likewise.
1037
d185219d
SM
10382017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1039
1040 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1041 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1042 <stack>: Change type to std::vector.
1043 <stack_len, stack_allocated>: Remove.
1044 <grow_stack>: Remove.
1045 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1046 (dwarf_expr_context::~dwarf_expr_context): Remove.
1047 (dwarf_expr_context::grow_stack): Remove.
1048 (dwarf_expr_context::push): Adjust.
1049 (dwarf_expr_context::pop): Adjust.
1050 (dwarf_expr_context::fetch): Adjust.
1051 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1052 (dwarf_expr_context::stack_empty_p): Adjust.
1053 (dwarf_expr_context::execute_stack_op): Adjust.
1054
eccd80d6
SM
10552017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1056
1057 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1058 return type to bool.
1059 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1060
69009882
SM
10612017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1062
1063 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1064 Change type to bool.
1065 (dwarf_stack_value) <in_stack_memory>: Likewise.
1066 (dwarf_expr_context) <push_address>: Change parameter type to
1067 bool.
1068 <fetch_in_stack_memory>: Change return type to bool.
1069 <push>: Change parameter type to bool.
1070 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1071 to bool.
1072 (dwarf_expr_context::push_address): Likewise.
1073 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1074 to bool.
1075 (dwarf_expr_context::execute_stack_op): Adjust.
1076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1077
1e467161
SM
10782017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1079
1080 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1081 (struct dwarf_expr_context) <n_pieces>: Remove.
1082 <pieces>: Change type to std::vector.
1083 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1084 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1085 pieces.
1086 (dwarf_expr_context::add_piece): Adjust.
1087 * dwarf2loc.c (struct piece_closure): Initialize fields.
1088 <n_pieces>: Remove.
1089 <pieces>: Change type to std::vector.
1090 (allocate_piece_closure): Adjust, change parameter to
1091 std::vector rvalue and std::move it to piece_closure.
1092 (rw_pieced_value): Adjust.
1093 (check_pieced_synthetic_pointer): Adjust.
1094 (indirect_synthetic_pointer): Adjust.
1095 (coerce_pieced_ref): Adjust.
1096 (free_pieced_value_closure): Adjust. Use delete to free
1097 piece_closure.
1098 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1099 to allocate_piece_closure.
1100 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1101
0782db84
SM
11022017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1103
1104 * probe.h (probe_ops_cp): Remove typedef.
1105 (DEF_VEC_P (probe_ops_cp)): Remove.
1106 (all_probe_ops): Change type to std::vector.
1107 * probe.c (info_probes_for_ops): Adjust to vector change.
1108 (probe_linespec_to_ops): Likewise.
1109 (all_probe_ops): Change type to std::vector.
1110 (_initialize_probe): Adjust to vector change.
1111 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1112 * elfread.c (elf_get_probes): Likewise.
1113 * stap-probe.c (_initialize_stap_probe): Likewise.
1114
1eac6bea
SM
11152017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1116
1117 * probe.h (struct bound_probe): Define constructors.
1118 * probe.c (bound_probe_s): Remove typedef.
1119 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1120 (collect_probes): Change return type to std::vector, remove
1121 cleanup.
1122 (compare_probes): Return bool, change parameter type. Change
1123 semantic to "less than".
1124 (gen_ui_out_table_header_info): Change parameter to std::vector
1125 and update.
1126 (exists_probe_with_pops): Likewise.
1127 (info_probes_for_ops): Update to std::vector change.
1128 (enable_probes_command): Likewise.
1129 (disable_probes_command): Likewise.
1130
aaa63a31
SM
11312017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1132
1133 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1134 vec to std::vector.
1135 * probe.c (parse_probes_in_pspace): Update.
1136 (find_probes_in_objfile): Update.
1137 (find_probe_by_pc): Update.
1138 (collect_probes): Update.
1139 (probe_any_get_probes): Update.
1140 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1141 return type to reference to std::vector.
1142 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1143 std::vector and update.
1144 (dtrace_process_dof): Likewise.
1145 (dtrace_get_probes): Likewise.
1146 * elfread.c (elf_get_probes): Change return type to std::vector,
1147 store an std::vector in bfd_data.
1148 (probe_key_free): Update to std::vector.
1149 * stap-probe.c (handle_stap_probe): Change parameter to
1150 std::vector and update.
1151 (stap_get_probes): Likewise.
1152 * symfile-debug.c (debug_sym_get_probes): Change return type to
1153 std::vector and update.
1154
cb85b21b
TT
11552017-09-11 Tom Tromey <tom@tromey.com>
1156
1157 * breakpoint.c (program_breakpoint_here_p): Update.
1158 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1159 from make_show_memory_breakpoints_cleanup. Return a
1160 scoped_restore_tmpl<int>.
1161 (restore_show_memory_breakpoints): Remove.
1162 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1163 * mem-break.c (memory_validate_breakpoint): Update.
1164 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1165 (ia64_memory_remove_breakpoint): Update.
1166 (ia64_breakpoint_from_pc): Update.
1167 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1168 from make_show_memory_breakpoints_cleanup.
1169
8fbc99ef
TT
11702017-09-11 Tom Tromey <tom@tromey.com>
1171
1172 * d-namespace.c (d_lookup_symbol): Use std::string.
1173 (find_symbol_in_baseclass): Likewise.
1174
50feb4bd
TT
11752017-09-11 Tom Tromey <tom@tromey.com>
1176
1177 * ctf.c (ctf_start): Use std::string.
1178
c6dc63a1
TT
11792017-09-11 Tom Tromey <tom@tromey.com>
1180
1181 * ada-lang.c (is_known_support_routine): Update.
1182 (ada_unhandled_exception_name_addr_from_raise): Update.
1183 * guile/scm-frame.c (gdbscm_frame_name): Update.
1184 * python/py-frame.c (frapy_name): Update.
1185 (frapy_function): Update.
1186 * stack.h (find_frame_funname): Update.
1187 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1188 (print_frame): Update.
1189
d6b9b80f
TT
11902017-09-11 Tom Tromey <tom@tromey.com>
1191
1192 * findcmd.c (put_bits): Take a gdb::byte_vector.
1193 (parse_find_args): Return gdb::byte_vector. "args" now const.
1194 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1195 cleanups.
1196 (find_command): Update.
1197
a9921622
TT
11982017-09-11 Tom Tromey <tom@tromey.com>
1199
1200 * cli/cli-script.c (class scoped_restore_hook_in): New.
1201 (clear_hook_in_cleanup): Remove.
1202 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1203 scoped_restore_hook_in.
1204
be0d7abb
TT
12052017-09-11 Tom Tromey <tom@tromey.com>
1206
1207 * cli/cli-script.c (restore_interp): Remove.
1208 (read_command_lines): Use scoped_restore_interp.
1209 * interps.c (scoped_restore_interp::set_temp): Rename from
1210 interp_set_temp.
1211 * interps.h (class scoped_restore_interp): New.
1212 (interp_set_temp): Remove.
1213
00f675ff
TT
12142017-09-11 Tom Tromey <tom@tromey.com>
1215
1216 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1217 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1218 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1219 scoped_restore.
1220 (mi_cmd_break_insert_1): Update.
1221 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1222 scoped_restore.
1223
cb791d59
TT
12242017-09-11 Tom Tromey <tom@tromey.com>
1225
1226 * demangle.c (demangle_command): Update.
1227 * breakpoint.c (disable_command): Update.
1228 (enable_command): Update.
1229 (find_location_by_number): Make "number" const. Use
1230 get_number_trailer.
1231 * cli/cli-utils.c (extract_arg): Return std::string.
1232 * probe.c (parse_probe_linespec): Update. Change types.
1233 (collect_probes): Take string arguments.
1234 (parse_probe_linespec): Likewise.
1235 (info_probes_for_ops): Update.
1236 (enable_probes_command): Update.
1237 (disable_probes_command): Update.
1238 * break-catch-sig.c (catch_signal_split_args): Update.
1239 * mi/mi-parse.c (mi_parse): Update.
1240
2039bd9f
TT
12412017-09-11 Tom Tromey <tom@tromey.com>
1242
1243 * language.h (language_enum): Make argument const.
1244 * language.c (language_enum): Make argument const.
1245
f1735a53
TT
12462017-09-11 Tom Tromey <tom@tromey.com>
1247
1248 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1249 as function.
1250 (skip_to_space): Rename from skip_to_space_const.
1251 * common/common-utils.c (skip_to_space): New function.
1252 (skip_to_space): Rename from skip_to_space_const.
1253 * cli/cli-utils.h (get_number): Rename from get_number_const.
1254 (extract_arg): Rename from extract_arg_const.
1255 * cli/cli-utils.c (get_number): Rename from get_number_const.
1256 (extract_arg): Rename from extract_arg_const.
1257 (number_or_range_parser::get_number): Use ::get_number.
1258 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1259 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1260 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1261 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1262 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1263 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1264 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1265 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1266
7d221d74
TT
12672017-09-11 Tom Tromey <tom@tromey.com>
1268
1269 * python/python.c (do_start_initialization): Use
1270 py-event-types.def to initialize types.
1271 Define all object type structures.
1272 * python/python-internal.h: Don't declare event initialization
1273 functions.
1274 * python/py-threadevent.c (thread_event_object_type): Don't
1275 define.
1276 * python/py-stopevent.c (stop_event_object_type): Don't define.
1277 * python/py-signalevent.c (signal_event_object_type): Don't
1278 declare or define.
1279 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1280 (clear_objfiles_event_object_type): Don't declare or define.
1281 * python/py-infevents.c (inferior_call_pre_event_object_type)
1282 (inferior_call_post_event_object_type)
1283 (register_changed_event_object_type)
1284 (memory_changed_event_object_type): Don't declare or define.
1285 * python/py-inferior.c (new_thread_event_object_type)
1286 (new_inferior_event_object_type)
1287 (inferior_deleted_event_object_type): Don't declare or define.
1288 * python/py-exitedevent.c (exited_event_object_type): Don't
1289 declare or define.
1290 * python/py-evts.c (gdbpy_initialize_py_events): Use
1291 py-all-events.def.
1292 * python/py-events.h (thread_event_object_type): Don't declare.
1293 (events_object): Use py-all-events.def.
1294 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1295 py-event-types.def.
1296 * python/py-event-types.def: New file.
1297 * python/py-continueevent.c (create_continue_event_object): Don't
1298 declare or define.
1299 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1300 declare or define.
1301 * python/py-all-events.def: New file.
1302
35c61a1d
TT
13032017-09-11 Tom Tromey <tom@tromey.com>
1304
1305 * python/py-threadevent.c (create_thread_event_object): Return
1306 gdbpy_ref.
1307 * python/py-stopevent.h (create_stop_event_object)
1308 (create_breakpoint_event_object, create_signal_event_object):
1309 Update.
1310 * python/py-stopevent.c (create_stop_event_object): Return
1311 gdbpy_ref.
1312 (emit_stop_event): Update.
1313 * python/py-signalevent.c (create_signal_event_object): Return
1314 gdbpy_ref.
1315 * python/py-infevents.c (create_inferior_call_event_object):
1316 Update.
1317 * python/py-event.h (create_event_object)
1318 (create_thread_event_object): Update.
1319 * python/py-event.c (create_event_object): Return gdbpy_ref.
1320 * python/py-continueevent.c: Return gdbpy_ref.
1321 * python/py-bpevent.c (create_breakpoint_event_object): Return
1322 gdbpy_ref.
1323
7c96f8c1
TT
13242017-09-11 Tom Tromey <tom@tromey.com>
1325
1326 PR python/15622:
1327 * NEWS: Add entry.
1328 * python/python.c (do_start_initialization): Initialize new event
1329 types.
1330 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1331 (gdbpy_initialize_inferior_deleted_event)
1332 (gdbpy_initialize_new_thread_event): Declare.
1333 * python/py-threadevent.c (create_thread_event_object): Add option
1334 "thread" parameter.
1335 * python/py-inferior.c (new_thread_event_object_type)
1336 (new_inferior_event_object_type)
1337 (inferior_deleted_event_object_type): Declare.
1338 (python_new_inferior, python_inferior_deleted): New functions.
1339 (add_thread_object): Emit new_thread event.
1340 (gdbpy_initialize_inferior): Attach new functions to corresponding
1341 observers.
1342 (new_thread, new_inferior, inferior_deleted): Define new event
1343 types.
1344 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1345 registries.
1346 * python/py-events.h (events_object) <new_inferior,
1347 inferior_deleted, new_thread>: New fields.
1348 * python/py-event.h (create_thread_event_breakpoint): Add optional
1349 "thread" parameter.
1350
72542b8e
AB
13512017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1354 check current_ui instead.
1355 (internal_vproblem): Likewise.
1356
0d64823e
SM
13572017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1358
1359 * thread.c (print_thread_info_1): Remove unnecessary calls to
1360 uiout->is_mi_like_p.
1361
eb1e02fd
TT
13622017-09-09 Tom Tromey <tom@tromey.com>
1363
1364 * namespace.h (add_using_directive): Update.
1365 * namespace.c (add_using_directive): Change type of excludes to
1366 std::vector.
1367 * dwarf2read.c (read_import_statement): Use std::vector.
1368 (read_namespace): Update.
1369 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1370
0fc21fd8
TT
13712017-09-09 Tom Tromey <tom@tromey.com>
1372
1373 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1374
49663d05
TT
13752017-09-09 Tom Tromey <tom@tromey.com>
1376
1377 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1378
0b868b60
TT
13792017-09-09 Tom Tromey <tom@tromey.com>
1380
1381 * stack.c (func_command): Use gdb::def_vector.
1382
c0470d48
TT
13832017-09-09 Tom Tromey <tom@tromey.com>
1384
1385 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1386 ui_out_emit_list, ui_out_emit_tuple.
1387 (mi_cmd_var_update): Likewise.
1388
ca5909c7
TT
13892017-09-09 Tom Tromey <tom@tromey.com>
1390
1391 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1392 ui_out_redirect_pop.
1393 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1394 ui_out_redirect_pop.
1395 * utils.c (do_ui_out_redirect_pop)
1396 (make_cleanup_ui_out_redirect_pop): Remove.
1397 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1398 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1399 * ui-out.h (ui_out_redirect_pop): New class.
1400
e6a2252a
TT
14012017-09-09 Tom Tromey <tom@tromey.com>
1402
1403 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1404 (list_available_thread_groups, mi_cmd_list_thread_groups)
1405 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1406 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1407 Likewise.
1408
393702cd
TT
14092017-09-09 Tom Tromey <tom@tromey.com>
1410
1411 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1412 ui_out_emit_tuple.
1413
76f9c9cf
TT
14142017-09-09 Tom Tromey <tom@tromey.com>
1415
1416 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1417 * stack.c (print_frame): Use ui_out_emit_tuple.
1418 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1419 (info_spu_mailbox_command, info_spu_dma_command)
1420 (info_spu_proxydma_command): Likewise.
1421 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1422 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1423 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1424 ui_out_emit_tuple.
1425 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1426
dc9fe180
TT
14272017-09-09 Tom Tromey <tom@tromey.com>
1428
1429 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1430 (class ui_out_emit_table): Update comment.
1431 * ui-out.c (do_cleanup_table_end)
1432 (make_cleanup_ui_out_table_begin_end): Remove.
1433 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1434 (info_spu_dma_cmdlist): Likewise.
1435 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1436 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1437 ui_out_emit_table.
1438
f8cc3da6
TT
14392017-09-09 Tom Tromey <tom@tromey.com>
1440
1441 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1442 ui_out_emit_list, gdb::optional.
1443
481695ed
JB
14442017-09-09 John Baldwin <jhb@FreeBSD.org>
1445
1446 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1447 prototype.
1448 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1449 prototype.
1450 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1451 prototype.
1452 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1453 * ada-exp.y: Remove _initialize_ada_exp prototype.
1454 * ada-lang.c: Remove _initialize_ada_language prototype.
1455 * ada-tasks.c: Remove _initialize_tasks prototype.
1456 * addrmap.c: Remove _initialize_addrmap prototype.
1457 * agent.c: Remove _initialize_agent prototype.
1458 * aix-thread.c: Remove _initialize_aix_thread prototype.
1459 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1460 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1461 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1462 prototype.
1463 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1464 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1465 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1466 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1467 prototype.
1468 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1469 prototype.
1470 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1471 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1472 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1473 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1474 prototype.
1475 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1476 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1477 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1478 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1479 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1480 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1481 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1482 prototype.
1483 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1484 prototype.
1485 * annotate.c: Remove _initialize_annotate prototype.
1486 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1487 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1488 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1489 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1490 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1491 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1492 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1493 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1494 prototype.
1495 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1496 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1497 * auto-load.c: Remove _initialize_auto_load prototype.
1498 * auxv.c: Remove _initialize_auxv prototype.
1499 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1500 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1501 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1502 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1503 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1504 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1505 prototype.
1506 * break-catch-throw.c: Remove _initialize_break_catch_throw
1507 prototype.
1508 * breakpoint.c: Remove _initialize_breakpoint prototype.
1509 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1510 * btrace.c: Remove _initialize_btrace prototype.
1511 * charset.c: Remove _initialize_charset prototype.
1512 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1513 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1514 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1515 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1516 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1517 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1518 * coffread.c: Remove _initialize_coffread prototype.
1519 * compile/compile.c: Remove _initialize_compile prototype.
1520 * complaints.c: Remove _initialize_complaints prototype.
1521 * completer.c: Remove _initialize_completer prototype.
1522 * copying.awk: Remove _initialize_copying prototype.
1523 * copying.c: Regenerate.
1524 * core-regset.c: Remove _initialize_core_regset prototype.
1525 * corefile.c: Remove _initialize_core prototype.
1526 * corelow.c: Remove _initialize_corelow prototype.
1527 * cp-abi.c: Remove _initialize_cp_abi prototype.
1528 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1529 * cp-support.c: Remove _initialize_cp_support prototype.
1530 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1531 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1532 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1533 * ctf.c: Remove _initialize_ctf prototype.
1534 * d-lang.c: Remove _initialize_d_language prototype.
1535 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1536 prototype.
1537 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1538 * dbxread.c: Remove _initialize_dbxread prototype.
1539 * dcache.c: Remove _initialize_dcache prototype.
1540 * demangle.c: Remove _initialize_demangler prototype.
1541 * disasm-selftests.c: Remove _initialize_disasm_selftests
1542 prototype.
1543 * disasm.c: Remove _initialize_disasm prototype.
1544 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1545 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1546 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1547 prototype.
1548 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1549 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1550 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1551 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1552 * elfread.c: Remove _initialize_elfread prototype.
1553 * exec.c: Remove _initialize_exec prototype.
1554 * extension.c: Remove _initialize_extension prototype.
1555 * f-lang.c: Remove _initialize_f_language prototype.
1556 * f-valprint.c: Remove _initialize_f_valprint prototype.
1557 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1558 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1559 * filesystem.c: Remove _initialize_filesystem prototype.
1560 * findcmd.c: Remove _initialize_mem_search prototype.
1561 * fork-child.c: Remove _initialize_fork_child prototype.
1562 * frame-base.c: Remove _initialize_frame_base prototype.
1563 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1564 * frame.c: Remove _initialize_frame prototype.
1565 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1566 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1567 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1568 * gcore.c: Remove _initialize_gcore prototype.
1569 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1570 * gdbarch.c: Regenerate.
1571 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1572 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1573 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1574 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1575 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1576 * go-lang.c: Remove _initialize_go_language prototype.
1577 * go32-nat.c: Remove _initialize_go32_nat prototype.
1578 * guile/guile.c: Remove _initialize_guile prototype.
1579 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1580 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1581 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1582 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1583 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1584 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1585 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1586 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1587 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1588 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1589 prototype.
1590 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1591 prototype.
1592 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1593 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1594 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1595 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1596 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1597 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1598 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1599 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1600 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1601 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1602 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1603 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1604 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1605 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1606 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1607 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1608 prototype.
1609 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1610 prototype.
1611 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1612 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1613 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1614 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1615 * infcall.c: Remove _initialize_infcall prototype.
1616 * infcmd.c: Remove _initialize_infcmd prototype.
1617 * inferior.c: Remove _initialize_inferiors prototype.
1618 * inflow.c: Remove _initialize_inflow prototype.
1619 * infrun.c: Remove _initialize_infrun prototype.
1620 * interps.c: Remove _initialize_interpreter prototype.
1621 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1622 * jit.c: Remove _initialize_jit prototype.
1623 * language.c: Remove _initialize_language prototype.
1624 * linux-fork.c: Remove _initialize_linux_fork prototype.
1625 * linux-nat.c: Remove _initialize_linux_nat prototype.
1626 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1627 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1628 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1629 * m2-lang.c: Remove _initialize_m2_language prototype.
1630 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1631 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1632 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1633 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1634 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1635 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1636 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1637 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1638 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1639 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1640 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1641 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1642 * machoread.c: Remove _initialize_machoread prototype.
1643 * macrocmd.c: Remove _initialize_macrocmd prototype.
1644 * macroscope.c: Remove _initialize_macroscope prototype.
1645 * maint.c: Remove _initialize_maint_cmds prototype.
1646 * mdebugread.c: Remove _initialize_mdebugread prototype.
1647 * memattr.c: Remove _initialize_mem prototype.
1648 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1649 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1650 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1651 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1652 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1653 * microblaze-linux-tdep.c: Remove
1654 _initialize_microblaze_linux_tdep prototype.
1655 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1656 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1657 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1658 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1659 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1660 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1661 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1662 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1663 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1664 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1665 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1666 prototype.
1667 * mipsread.c: Remove _initialize_mipsread prototype.
1668 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1669 prototype.
1670 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1671 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1672 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1673 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1674 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1675 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1676 prototype.
1677 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1678 * nto-procfs.c: Remove _initialize_procfs prototype.
1679 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1680 * objc-lang.c: Remove _initialize_objc_language prototype.
1681 * objfiles.c: Remove _initialize_objfiles prototype.
1682 * observer.c: Remove observer_test_first_notification_function,
1683 observer_test_second_notification_function,
1684 observer_test_third_notification_function, and
1685 _initialize_observer prototypes.
1686 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1687 * osabi.c: Remove _initialize_gdb_osabi prototype.
1688 * osdata.c: Remove _initialize_osdata prototype.
1689 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1690 * parse.c: Remove _initialize_parse prototype.
1691 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1692 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1693 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1694 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1695 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1696 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1697 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1698 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1699 * printcmd.c: Remove _initialize_printcmd prototype.
1700 * probe.c: Remove _initialize_probe prototype.
1701 * proc-api.c: Remove _initialize_proc_api prototype.
1702 * proc-events.c: Remove _initialize_proc_events prototype.
1703 * proc-service.c: Remove _initialize_proc_service prototype.
1704 * procfs.c: Remove _initialize_procfs prototype.
1705 * psymtab.c: Remove _initialize_psymtab prototype.
1706 * python/python.c: Remove _initialize_python prototype.
1707 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1708 * record-btrace.c: Remove _initialize_record_btrace prototype.
1709 * record-full.c: Remove _initialize_record_full prototype.
1710 * record.c: Remove _initialize_record prototype.
1711 * regcache.c: Remove _initialize_regcache prototype.
1712 * reggroups.c: Remove _initialize_reggroup prototype.
1713 * remote-notif.c: Remove _initialize_notif prototype.
1714 * remote-sim.c: Remove _initialize_remote_sim prototype.
1715 * remote.c: Remove _initialize_remote prototype.
1716 * reverse.c: Remove _initialize_reverse prototype.
1717 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1718 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1719 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1720 prototype.
1721 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1722 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1723 * rust-exp.y: Remove _initialize_rust_exp prototype.
1724 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1725 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1726 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1727 * score-tdep.c: Remove _initialize_score_tdep prototype.
1728 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1729 prototype.
1730 * ser-go32.c: Remove _initialize_ser_dos prototype.
1731 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1732 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1733 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1734 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1735 * serial.c: Remove _initialize_serial prototype.
1736 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1737 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1738 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1739 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1740 * skip.c: Remove _initialize_step_skip prototype.
1741 * sol-thread.c: Remove _initialize_sol_thread prototype.
1742 * solib-aix.c: Remove _initialize_solib_aix prototype.
1743 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1744 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1745 * solib-frv.c: Remove _initialize_frv_solib prototype.
1746 * solib-spu.c: Remove _initialize_spu_solib prototype.
1747 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1748 * solib-target.c: Remove _initialize_solib_target prototype.
1749 * solib.c: Remove _initialize_solib prototype.
1750 * source.c: Remove _initialize_source prototype.
1751 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1752 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1753 prototype.
1754 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1755 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1756 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1757 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1758 prototype.
1759 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1760 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1761 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1762 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1763 prototype.
1764 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1765 prototype.
1766 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1767 prototype.
1768 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1769 prototype.
1770 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1771 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1772 prototype.
1773 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1774 prototype.
1775 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1776 prototype.
1777 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1778 prototype.
1779 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1780 prototype.
1781 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1782 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1783 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1784 * stabsread.c: Remove _initialize_stabsread prototype.
1785 * stack.c: Remove _initialize_stack prototype.
1786 * stap-probe.c: Remove _initialize_stap_probe prototype.
1787 * std-regs.c: Remove _initialize_frame_reg prototype.
1788 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1789 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1790 * symfile.c: Remove _initialize_symfile prototype.
1791 * symmisc.c: Remove _initialize_symmisc prototype.
1792 * symtab.c: Remove _initialize_symtab prototype.
1793 * target-dcache.c: Remove _initialize_target_dcache prototype.
1794 * target-descriptions.c: Remove _initialize_target_descriptions
1795 prototype.
1796 * thread.c: Remove _initialize_thread prototype.
1797 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1798 prototype.
1799 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1800 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1801 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1802 prototype.
1803 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1804 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1805 * tracefile.c: Remove _initialize_tracefile prototype.
1806 * tracepoint.c: Remove _initialize_tracepoint prototype.
1807 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1808 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1809 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1810 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1811 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1812 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1813 * tui/tui.c: Remove _initialize_tui prototype.
1814 * typeprint.c: Remove _initialize_typeprint prototype.
1815 * user-regs.c: Remove _initialize_user_regs prototype.
1816 * utils.c: Remove _initialize_utils prototype.
1817 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1818 * valarith.c: Remove _initialize_valarith prototype.
1819 * valops.c: Remove _initialize_valops prototype.
1820 * valprint.c: Remove _initialize_valprint prototype.
1821 * value.c: Remove _initialize_values prototype.
1822 * varobj.c: Remove _initialize_varobj prototype.
1823 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1824 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1825 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1826 * windows-nat.c: Remove _initialize_windows_nat,
1827 _initialize_check_for_gdb_ini, and _initialize_loadable
1828 prototypes.
1829 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1830 * xcoffread.c: Remove _initialize_xcoffread prototype.
1831 * xml-support.c: Remove _initialize_xml_support prototype.
1832 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1833 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1834 prototype.
1835 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1836 prototype.
1837 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1838
a611b5cb
KS
18392017-09-08 Keith Seitz <keiths@redhat.com>
1840
1841 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1842 field.
1843
469412dd
CW
18442017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1845
1846 * f-valprint.c (f_val_print): Remove check for one byte
1847 sized integers. Remove printing of character type.
1848
a5ad232b
FP
18492017-09-08 Frank Penczek <frank.penczek@intel.com>
1850 Christoph Weinmann <christoph.t.weinmann@intel.com>
1851 Bernhard Heckel <bernhard.heckel@intel.com>
1852
1853 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1854 to maintain proper indentation when printing pointers/refs.
1855
e5014227
JB
18562017-09-07 Joel Brobecker <brobecker@adacore.com>
1857
1858 GDB 8.0.1 released.
1859
63c99141
JB
18602017-09-07 Joel Brobecker <brobecker@adacore.com>
1861
1862 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1863
69c1e056
TT
18642017-09-05 Tom Tromey <tom@tromey.com>
1865
1866 * parse.c (funcall_chain): Now a std::vector.
1867 (start_arglist, end_arglist): Simplify.
1868 (free_funcalls): Remove.
1869 (parse_exp_in_context_1): Remove cleanup.
1870
fef704bf
TT
18712017-09-05 Tom Tromey <tom@tromey.com>
1872
1873 * go-exp.y (go_parse): Don't create a cleanup.
1874
5613c585
TT
18752017-09-05 Tom Tromey <tom@tromey.com>
1876
1877 * d-exp.y (PrimaryExpression): Use std::string.
1878 (d_parse): Don't create a cleanup.
1879
eae49211
TT
18802017-09-05 Tom Tromey <tom@tromey.com>
1881
1882 * utils.c (do_clear_parser_state): Remove.
1883 (make_cleanup_clear_parser_state): Remove.
1884 * p-exp.y (pascal_parse): Use scoped_restore.
1885 * m2-exp.y (m2_parse): Use scoped_restore.
1886 * f-exp.y (f_parse): Use scoped_restore.
1887 * d-exp.y (d_parse): Use scoped_restore.
1888 * c-exp.y (c_parse): Use scoped_restore.
1889 * ada-exp.y (ada_parse): Use scoped_restore.
1890 * utils.h (make_cleanup_clear_parser_state): Remove.
1891
73b9be8b
KS
18922017-09-06 Keith Seitz <keiths@redhat.com>
1893
1894 * dwarf2read.c (dw2_linkage_name_attr): New function.
1895 (dw2_linkage_name): New function.
1896 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1897 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1898 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1899
a102602b
KR
19002017-09-06 Kamil Rytarowski <n54@gmx.com>
1901
1902 * config/djgpp/djconfig.sh: Correct shell portability issue.
1903
28ad437d
KR
19042017-09-06 Kamil Rytarowski <n54@gmx.com>
1905
1906 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1907
351787dd
JB
19082017-09-06 John Baldwin <jhb@FreeBSD.org>
1909
1910 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1911 * NEWS: Mention new FreeBSD/mips native configuration.
1912 * configure.host: Add aarch64*-*-freebsd*.
1913 * configure.nat: Likewise.
1914 * aarch64-fbsd-nat.c: New file.
1915
c0f84956
JB
19162017-09-06 John Baldwin <jhb@FreeBSD.org>
1917
1918 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1919 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1920 * NEWS: Mention new FreeBSD/aarch64 target.
1921 * configure.tgt: Add aarch64*-*-freebsd*.
1922 * aarch64-fbsd-tdep.c: New file.
1923 * aarch64-fbsd-tdep.h: New file.
1924
7610297a
KR
19252017-09-06 Kamil Rytarowski <n54@gmx.com>
1926
1927 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1928
fbd1b771
JK
19292017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1930
1931 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1932 of TLS symbols.
1933
5ca79eae
PW
19342017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1935
1936 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1937 call.
1938
bf93d7ba
SM
19392017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1940
1941 * infrun.c (follow_exec): Call add_thread after
1942 target_find_description.
1943
1bb7c059
SM
19442017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1945
1946 * infrun.c (handle_inferior_event_1): When exec'ing, read
1947 stop_pc after follow_exec.
1948
fc809827
SM
19492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1950
1951 * remote.c (process_g_packet): Update error message.
1952
d2fcdd85
YQ
19532017-09-05 Yao Qi <yao.qi@linaro.org>
1954
1955 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1956 targets.
1957
e69570ee
PA
19582017-09-05 Pedro Alves <palves@redhat.com>
1959
1960 * eval.c (eval_call, evaluate_funcall): New functions, factored
1961 out from ...
1962 (evaluate_subexp_standard): ... this.
1963
22916b07
YQ
19642017-09-05 Yao Qi <yao.qi@linaro.org>
1965
1966 * amd64-tdep.c (amd64_target_description): Create target
1967 descriptions.
1968 (_initialize_amd64_tdep): Don't call functions
1969 initialize_tdesc_amd64_*. Add self tests.
1970 * arch/amd64.c (amd64_create_target_description): Add parameter
1971 is_linux. Call set_tdesc_osabi if is_linux is true.
1972 * arch/amd64.h (amd64_create_target_description): Update the
1973 declaration.
1974 * arch/i386.c (i386_create_target_description): Add parameter
1975 is_linux. Call set_tdesc_osabi if is_linux is true.
1976 * arch/i386.h (i386_create_target_description): Update
1977 declaration.
1978 * configure.tgt: Add i386.o to gdb_target_obs.
1979 * features/Makefile (XMLTOC): Remove i386/*.xml.
1980 * features/i386/amd64-avx-avx512.c: Remove.
1981 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1982 * features/i386/amd64-avx-mpx.c: Remove.
1983 * features/i386/amd64-avx.c: Remove.
1984 * features/i386/amd64-mpx.c: Remove.
1985 * features/i386/amd64.c: Remove.
1986 * features/i386/i386-avx-avx512.c: Remove.
1987 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1988 * features/i386/i386-avx-mpx.c: Remove.
1989 * features/i386/i386-avx.c: Remove.
1990 * features/i386/i386-mmx.c: Remove.
1991 * features/i386/i386-mpx.c: Remove.
1992 * features/i386/i386.c: Remove.
1993 * i386-tdep.c: Don't include features/i386/i386*.c., include
1994 target-descriptions.h and arch/i386.h.
1995 (i386_target_description): Create target descriptions.
1996 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1997 functions. Do self tests.
1998
0854b7b1
YQ
19992017-09-05 Yao Qi <yao.qi@linaro.org>
2000
2001 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2002 * features/i386/amd64-avx-avx512-linux.c: Removed.
2003 * features/i386/amd64-avx-linux.c: Removed.
2004 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2005 * features/i386/amd64-avx-mpx-linux.c: Removed.
2006 * features/i386/amd64-linux.c: Removed.
2007 * features/i386/amd64-mpx-linux.c: Removed.
2008 * features/i386/x32-avx-avx512-linux.c: Removed.
2009 * features/i386/x32-avx-linux.c: Removed.
2010 * features/i386/x32-linux.c: Removed.
2011
b4570e4b
YQ
20122017-09-05 Yao Qi <yao.qi@linaro.org>
2013
2014 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2015 features/i386/*.c.
2016 (amd64_linux_read_description): Call
2017 amd64_create_target_description.
2018 * arch/amd64.c: New file.
2019 * arch/amd64.h: New file.
2020 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2021 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2022
6c73f67f
YQ
20232017-09-05 Yao Qi <yao.qi@linaro.org>
2024
2025 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2026 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2027 (amd64_linux_read_description): Create target descriptions.
2028 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2029 functions. Add unit tests.
2030 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2031 x32-core.xml.
2032 * features/i386/64bit-avx.c: Generated.
2033 * features/i386/64bit-avx512.c: Generated.
2034 * features/i386/64bit-core.c: Generated.
2035 * features/i386/64bit-linux.c: Generated.
2036 * features/i386/64bit-mpx.c: Generated.
2037 * features/i386/64bit-pkeys.c: Generated.
2038 * features/i386/64bit-segments.c: Generated.
2039 * features/i386/64bit-sse.c: Generated.
2040 * features/i386/x32-core.c: Generated.
2041 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2042 c files for amd64-linux and x32-linux.
2043
9d3d478b
YQ
20442017-09-05 Yao Qi <yao.qi@linaro.org>
2045
2046 * amd64-linux-tdep.c (amd64_linux_read_description): New
2047 function.
2048 (amd64_linux_core_read_description): Call
2049 amd64_linux_read_description.
2050 (amd64_linux_init_abi): Likewise.
2051 (amd64_x32_linux_init_abi): Likewise.
2052 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2053 * x86-linux-nat.c (x86_linux_read_description): Call
2054 amd64_linux_read_description.
2055
b9f1d50f
YQ
20562017-09-05 Yao Qi <yao.qi@linaro.org>
2057
2058 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2059 comments.
2060
188c9e6d
YQ
20612017-09-05 Yao Qi <yao.qi@linaro.org>
2062
2063 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2064 * features/i386/i386-avx-avx512-linux.c: Remove.
2065 * features/i386/i386-avx-linux.c: Remove.
2066 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2067 * features/i386/i386-avx-mpx-linux.c: Remove.
2068 * features/i386/i386-linux.c: Remove.
2069 * features/i386/i386-mmx-linux.c: Remove.
2070 * features/i386/i386-mpx-linux.c: Remove.
2071
5f035c07
YQ
20722017-09-05 Yao Qi <yao.qi@linaro.org>
2073
2074 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2075 (SFILES): Add arch/i386.c.
2076 (HFILES_NO_SRCDIR): Add arch/i386.h.
2077 * arch/i386.c: New file.
2078 * arch/i386.h: New file.
2079 * arch/tdesc.h (allocate_target_description): Declare.
2080 (set_tdesc_architecture): Declare.
2081 (set_tdesc_osabi): Declare.
2082 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2083 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2084 include arch/i386.h.
2085 (i386_linux_read_description): Remove code and call
2086 i386_create_target_description.
2087 (set_tdesc_architecture): New function.
2088 (set_tdesc_osabi): New function.
2089 * target-descriptions.h (allocate_target_description): Remove.
2090
0abe8a89
YQ
20912017-09-05 Yao Qi <yao.qi@linaro.org>
2092
2093 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2094 * target-descriptions.c (tdesc_create_feature): Likewise, and
2095 adjust code.
2096 * features/i386/32bit-avx.c: Re-generated.
2097 * features/i386/32bit-avx512.c: Re-generated.
2098 * features/i386/32bit-core.c: Re-generated.
2099 * features/i386/32bit-linux.c: Re-generated.
2100 * features/i386/32bit-mpx.c: Re-generated.
2101 * features/i386/32bit-pkeys.c: Re-generated.
2102 * features/i386/32bit-sse.c: Re-generated.
2103
0a188386
YQ
21042017-09-05 Yao Qi <yao.qi@linaro.org>
2105
2106 * regformats/regdef.h (struct reg): Override operator == and !=.
2107
f49ff000
YQ
21082017-09-05 Yao Qi <yao.qi@linaro.org>
2109
2110 * arch/tdesc.h: New file.
2111 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2112 * target-descriptions.c: Update comments.
2113 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2114 declarations.
2115 * features/i386/32bit-avx.c: Re-generated.
2116 * features/i386/32bit-avx512.c: Re-generated.
2117 * features/i386/32bit-core.c: Re-generated.
2118 * features/i386/32bit-linux.c: Re-generated.
2119 * features/i386/32bit-mpx.c: Re-generated.
2120 * features/i386/32bit-pkeys.c: Re-generated.
2121 * features/i386/32bit-sse.c: Re-generated.
2122
f7000548
YQ
21232017-09-05 Yao Qi <yao.qi@linaro.org>
2124
2125 * regformats/regdat.sh: Update generated code.
2126
c9a5e2a5
YQ
21272017-09-05 Yao Qi <yao.qi@linaro.org>
2128
2129 * regformats/regdat.sh: Adjust code order.
2130
d6b687ac
SM
21312017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2132
2133 * expprint.c (dump_subexp_body_standard): Use constant format
2134 string in fprintf_filtered call.
2135
a379bfd0
JB
21362017-09-04 John Baldwin <jhb@FreeBSD.org>
2137
2138 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2139 NetBSD/i386.
2140 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2141
f7efc967
JB
21422017-09-04 John Baldwin <jhb@FreeBSD.org>
2143
2144 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2145
c49fbc6c
JB
21462017-09-04 John Baldwin <jhb@FreeBSD.org>
2147
2148 * bsd-kvm.o: Define _KMEMUSER.
2149 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2150 * configure: Regenerate.
2151
26562e73
JB
21522017-09-04 John Baldwin <jhb@FreeBSD.org>
2153
2154 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2155 * i386-fbsd-nat.c: Likewise.
2156
31cf1487
JB
21572017-09-04 John Baldwin <jhb@FreeBSD.org>
2158
2159 * unittests/array-view-selftests.c: Add include of <array>.
2160
5b9f8a7c
JB
21612017-09-04 John Baldwin <jhb@FreeBSD.org>
2162
2163 * spu-tdep.c (flush_ea_cache): Add missing argument to
2164 call_function_by_hand.
2165
d69cf9b2
PA
21662017-09-04 Pedro Alves <palves@redhat.com>
2167
2168 * NEWS (Safer support for debugging with no debug info): New.
2169
3693fdb3
PA
21702017-09-04 Pedro Alves <palves@redhat.com>
2171
2172 * c-exp.y (function_method, function_method_void): Add current
2173 instance flags to TYPE_INSTANCE.
2174 * dwarf2read.c (check_modifier): New.
2175 (compute_delayed_physnames): Assert that only C++ adds delayed
2176 physnames. Mark fn_fields as const/volatile depending on
2177 physname.
2178 * eval.c (make_params): New type_instance_flags parameter. Use
2179 it as the new type's instance flags.
2180 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2181 flags element and pass it to make_params.
2182 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2183 instance flags element.
2184 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2185 * gdbtypes.h: Include "enum-flags.h".
2186 (type_instance_flags): New enum-flags type.
2187 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2188 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2189 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2190 (follow_type_instance_flags): New function.
2191 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2192 * parser-defs.h (follow_type_instance_flags): Declare.
2193 * valops.c (value_struct_elt_for_reference): const/volatile must
2194 match too.
2195
e68cb8e0
PA
21962017-09-04 Pedro Alves <palves@redhat.com>
2197
2198 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2199 function/method scopes; lookup the nested name as a function local
2200 static variable.
2201
858be34c
PA
22022017-09-04 Pedro Alves <palves@redhat.com>
2203
2204 (%type <voidval>): Add function_method.
2205 * c-exp.y (exp): New production for calls with no arguments.
2206 (function_method, function_method_void_or_typelist): New
2207 productions.
2208 (exp): New production for "method()::static_var".
2209 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2210 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2211 Handle OP_FUNC_STATIC_VAR.
2212 * parse.c (operator_length_standard):
2213 Handle OP_FUNC_STATIC_VAR.
2214
dd5901a6
PA
22152017-09-04 Pedro Alves <palves@redhat.com>
2216
2217 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2218 handling.
2219 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2220 Ditto.
2221 * parse.c (operator_length_standard, operator_check_standard):
2222 Ditto.
2223 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2224
46a4882b
PA
22252017-09-04 Pedro Alves <palves@redhat.com>
2226
2227 * ax-gdb.c: Include "typeprint.h".
2228 (gen_expr_for_cast): New function.
2229 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2230 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2231 type is unknown.
2232 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2233 nodebug_data_symbol.
2234 * eval.c: Include "typeprint.h".
2235 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2236 Error out if symbol has unknown type.
2237 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2238 evaluate_subexp_for_cast.
2239 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2240 OP_VAR_MSYM_VALUE.
2241 (evaluate_subexp_for_cast): New function.
2242 * gdbtypes.c (init_nodebug_var_type): New function.
2243 (objfile_type): Use it to initialize types of variables with no
2244 debug info.
2245 * typeprint.c (error_unknown_type): New.
2246 * typeprint.h (error_unknown_type): New declaration.
2247 * compile/compile-c-types.c (convert_type_basic): Handle
2248 TYPE_CODE_ERROR; warn and fallback to int for variables with
2249 unknown type.
2250
fe13dfec
PA
22512017-09-04 Pedro Alves <palves@redhat.com>
2252
2253 * eval.c (evaluate_var_value): New function, factored out from ...
2254 (evaluate_subexp_standard): ... here.
2255
d008ee21
PA
22562017-09-04 Pedro Alves <palves@redhat.com>
2257
2258 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2259 Remove useless assignments to 'op'.
2260
827d0c51
PA
22612017-09-04 Pedro Alves <palves@redhat.com>
2262
2263 * eval.c (eval_skip_value): New function.
2264 (evaluate_subexp_standard): Use it.
2265
2c5a2be1
PA
22662017-09-04 Pedro Alves <palves@redhat.com>
2267
2268 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2269 function name from symbol/minsym and pass it to
2270 error_call_unknown_return_type.
2271
74ea4be4
PA
22722017-09-04 Pedro Alves <palves@redhat.com>
2273
2274 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2275 * ax-gdb.c (gen_msym_var_ref): New function.
2276 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2277 * eval.c (evaluate_var_msym_value): New function.
2278 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2279 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2280 to call_function_by_hand.
2281 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2282 Handle OP_VAR_MSYM_VALUE.
2283 (union exp_element) <msymbol>: New field.
2284 * minsyms.h (struct type): Forward declare.
2285 (find_minsym_type_and_address): Declare.
2286 * parse.c (write_exp_elt_msym): New function.
2287 (write_exp_msymbol): Delete, refactored as ...
2288 (find_minsym_type_and_address): ... this new function.
2289 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2290 (operator_length_standard, operator_check_standard): Handle
2291 OP_VAR_MSYM_VALUE.
2292 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2293
7022349d
PA
22942017-09-04 Pedro Alves <palves@redhat.com>
2295
2296 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2297 TYPE_GNU_IFUNC specially here. Throw error if return type is
2298 unknown.
2299 * ada-typeprint.c (print_func_type): Handle functions with unknown
2300 return type.
2301 * c-typeprint.c (c_type_print_base): Handle functions and methods
2302 with unknown return type.
2303 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2304 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2305 * compile/compile-c-types.c: Include "objfiles.h".
2306 (convert_func): For functions with unknown return type, warn and
2307 default to int.
2308 * compile/compile-object-run.c (compile_object_run): Adjust call
2309 to call_function_by_hand_dummy.
2310 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2311 call_function_by_hand.
2312 * eval.c (evaluate_subexp_standard): Adjust calls to
2313 call_function_by_hand. Handle functions and methods with unknown
2314 return type. Pass expect_type to call_function_by_hand.
2315 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2316 return type.
2317 * gcore.c (call_target_sbrk): Adjust call to
2318 call_function_by_hand.
2319 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2320 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2321 an integer address type instead of nodebug.
2322 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2323 call_function_by_hand.
2324 * infcall.c (error_call_unknown_return_type): New function.
2325 (call_function_by_hand): New "default_return_type" parameter.
2326 Pass it down.
2327 (call_function_by_hand_dummy): New "default_return_type"
2328 parameter. Use it instead of defaulting to int. If there's no
2329 default and the return type is unknown, throw an error. If
2330 there's a default return type, and the called function has no
2331 debug info, then assume the function is prototyped.
2332 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2333 New "default_return_type" parameter.
2334 (error_call_unknown_return_type): New declaration.
2335 * linux-fork.c (call_lseek): Cast return type of lseek.
2336 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2337 call_function_by_hand.
2338 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2339 calls to call_function_by_hand.
2340 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2341 return type.
2342 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2343 (value_nsstring, print_object_command): Adjust calls to
2344 call_function_by_hand.
2345 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2346 functions with unknown return type.
2347 (pascal_type_print_func_varspec_suffix): New function.
2348 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2349 TYPE_CODE_METHOD>: Use it.
2350 * python/py-value.c (valpy_call): Adjust call to
2351 call_function_by_hand.
2352 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2353 call_function_by_hand.
2354 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2355 call_function_by_hand.
2356 * valops.c (value_allocate_space_in_inferior): Adjust call to
2357 call_function_by_hand.
2358 * typeprint.c (type_print_unknown_return_type): New function.
2359 * typeprint.h (type_print_unknown_return_type): New declaration.
2360
54990598
PA
23612017-09-04 Pedro Alves <palves@redhat.com>
2362
2363 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2364 types with more than one parameter as prototyped.
2365
9a24775b
PA
23662017-09-04 Pedro Alves <palves@redhat.com>
2367
2368 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2369 (disassemble_command): Use gdb_disassembly_flags instead of bare
2370 int.
2371 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2372 (dump_insns, do_mixed_source_and_assembly_deprecated)
2373 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2374 Use gdb_disassembly_flags instead of bare int.
2375 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2376 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2377 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2378 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2379 (enum gdb_disassembly_flag): ... values of this new enumeration.
2380 (gdb_disassembly_flags): Define.
2381 (gdb_disassembly)
2382 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2383 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2384 gdb_disassembly_flags instead of bare int.
2385 * record-btrace.c (btrace_insn_history)
2386 (record_btrace_insn_history, record_btrace_insn_history_range)
2387 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2388 instead of bare int.
2389 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2390 Use gdb_disassembly_flags instead of bare int.
2391 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2392 Define.
2393 * target-delegates.c: Regenerate.
2394 * target.c (target_insn_history, target_insn_history_from)
2395 (target_insn_history_range): Use gdb_disassembly_flags instead of
2396 bare int.
2397 * target.h: Include "disasm.h".
2398 (struct target_ops) <to_insn_history, to_insn_history_from,
2399 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2400 int.
2401 (target_insn_history, target_insn_history_from)
2402 (target_insn_history_range): Use gdb_disassembly_flags instead of
2403 bare int.
2404
80a65e9b
SM
24052017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2406
2407 * cli/cli-script.c (build_command_line): For if/while commands,
2408 check whether args is empty.
2409
6b66338c
SM
24102017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2411
2412 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2413 (enum command_control_type): Likewise.
2414 (struct command_line): Likewise.
2415 (free_command_lines): Likewise.
2416 (struct command_lines_deleter): Likewise.
2417 (command_line_up): Likewise.
2418 (read_command_lines): Likewise.
2419 (read_command_lines_1): Likewise.
2420 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2421 (enum command_control_type): Likewise.
2422 (struct command_line): Likewise.
2423 (free_command_lines): Likewise.
2424 (struct command_lines_deleter): Likewise.
2425 (command_line_up): Likewise.
2426 (read_command_lines): Likewise.
2427 (read_command_lines_1): Likewise.
2428 * breakpoint.h: Include cli/cli-script.h.
2429 * extension-priv.h: Likewise.
2430 * gdbcmd.h: Likewise.
2431
51abb421
PA
24322017-09-04 Pedro Alves <palves@redhat.com>
2433
2434 * ada-lang.c (is_known_support_routine): Move sal declaration to
2435 where it is initialized.
2436 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2437 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2438 (clear_command, update_static_tracepoint): Remove init_sal
2439 references. Move declarations closer to initializations.
2440 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2441 initializations.
2442 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2443 references. Move sal declarations closer to initializations.
2444 * frame.c (find_frame_sal): Return a symtab_and_line via function
2445 return instead of output parameter. Remove init_sal references.
2446 * frame.h (find_frame_sal): Return a symtab_and_line via function
2447 return instead of output parameter.
2448 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2449 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2450 instead of memset.
2451 (gdbscm_find_pc_line): Remove init_sal reference.
2452 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2453 references. Move declarations closer to initializations.
2454 * infcmd.c (set_step_frame): Update. Move declarations closer to
2455 initializations.
2456 (finish_backward): Remove init_sal references. Move declarations
2457 closer to initializations.
2458 * infrun.c (process_event_stop_test, handle_step_into_function)
2459 (insert_hp_step_resume_breakpoint_at_frame)
2460 (insert_step_resume_breakpoint_at_caller): Likewise.
2461 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2462 (symbol_to_sal): Likewise.
2463 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2464 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2465 to its initialization.
2466 * reverse.c (save_bookmark_command): Use new/delete. Remove
2467 init_sal references. Move declarations closer to initializations.
2468 * source.c (get_current_source_symtab_and_line): Remove brace
2469 initialization.
2470 (set_current_source_symtab_and_line): Now takes the sal by const
2471 reference. Remove brace initialization.
2472 (line_info): Remove init_sal reference.
2473 * source.h (set_current_source_symtab_and_line): Now takes a
2474 symtab_and_line via const reference.
2475 * stack.c (set_current_sal_from_frame): Adjust.
2476 (print_frame_info): Adjust.
2477 (get_last_displayed_sal): Return the sal via function return
2478 instead of via output parameter. Simplify.
2479 (frame_info): Adjust.
2480 * stack.h (get_last_displayed_sal): Return the sal via function
2481 return instead of via output parameter.
2482 * symtab.c (init_sal): Delete.
2483 (find_pc_sect_line): Remove init_sal references. Move
2484 declarations closer to initializations.
2485 (find_function_start_sal): Remove init_sal references. Move
2486 declarations closer to initializations.
2487 * symtab.h (struct symtab_and_line): In-class initialize all
2488 fields.
2489 * tracepoint.c (set_traceframe_context)
2490 (print_one_static_tracepoint_marker): Remove init_sal references.
2491 Move declarations closer to initializations.
2492 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2493 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2494 declarations closer to initializations.
2495 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2496 init_sal references. Adjust.
2497
6c5b2ebe
PA
24982017-09-04 Pedro Alves <palves@redhat.com>
2499
2500 * ax-gdb.c (agent_command_1): Use range-for.
2501 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2502 * breakpoint.c: Include "common/array-view.h".
2503 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2504 parameter from struct symtabs_and_lines to
2505 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2506 (breakpoint_sals_to_pc): Change sals parameter from struct
2507 symtabs_and_lines to std::vector reference.
2508 (check_fast_tracepoint_sals): Change sals parameter from struct
2509 symtabs_and_lines to std::array_view. Use range-for.
2510 (decode_static_tracepoint_spec): Return a std::vector instead of
2511 symtabs_and_lines. Update.
2512 (create_breakpoint): Update.
2513 (break_range_command, until_break_command, clear_command): Update.
2514 (base_breakpoint_decode_location, bkpt_decode_location)
2515 (bkpt_probe_create_sals_from_location)
2516 (bkpt_probe_decode_location, tracepoint_decode_location)
2517 (tracepoint_probe_decode_location)
2518 (strace_marker_create_sals_from_location): Return a std::vector
2519 instead of symtabs_and_lines.
2520 (strace_marker_create_breakpoints_sal): Update.
2521 (strace_marker_decode_location): Return a std::vector instead of
2522 symtabs_and_lines. Update.
2523 (update_breakpoint_locations): Change struct symtabs_and_lines
2524 parameters to gdb::array_view. Adjust.
2525 (location_to_sals): Return a std::vector instead of
2526 symtabs_and_lines. Update.
2527 (breakpoint_re_set_default): Use std::vector instead of struct
2528 symtabs_and_lines.
2529 (decode_location_default): Return a std::vector instead of
2530 symtabs_and_lines. Update.
2531 * breakpoint.h: Include "common/array-view.h".
2532 (struct breakpoint_ops) <decode_location>: Now returns a
2533 std::vector instead of returning a symtabs_and_lines via output
2534 parameter.
2535 (update_breakpoint_locations): Change sals parameters to use
2536 gdb::array_view.
2537 * cli/cli-cmds.c (edit_command, list_command): Update to use
2538 std::vector and gdb::array_view.
2539 (ambiguous_line_spec): Adjust to use gdb::array_view and
2540 range-for.
2541 (compare_symtabs): Rename to ...
2542 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2543 const reference and adjust.
2544 (filter_sals): Rewrite using std::vector and standard algorithms.
2545 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2546 (jump_command): Update to use std::vector.
2547 * linespec.c (struct linespec_state) <canonical_names>: Update
2548 comment.
2549 (add_sal_to_sals_basic): Delete.
2550 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2551 (decode_line_2, create_sals_line_offset)
2552 (convert_address_location_to_sals, convert_linespec_to_sals)
2553 (convert_explicit_location_to_sals, parse_linespec)
2554 (event_location_to_sals, decode_line_full, decode_line_1)
2555 (decode_line_with_current_source)
2556 (decode_line_with_last_displayed, decode_objc)
2557 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2558 (linespec_result::~linespec_result): Adjust to use std::vector
2559 instead of symtabs_and_lines.
2560 * linespec.h (linespec_sals::sals): Now a std::vector.
2561 (struct linespec_result): Use std::vector, bool, and in-class
2562 initialization.
2563 (decode_line_1, decode_line_with_current_source)
2564 (decode_line_with_last_displayed): Return std::vector.
2565 * macrocmd.c (info_macros_command): Use std::vector.
2566 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2567 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2568 std::vector.
2569 * probe.h (parse_probes): Return a std::vector.
2570 * python/python.c (gdbpy_decode_line): Use std::vector and
2571 gdb::array_view.
2572 * source.c (select_source_symtab, line_info): Use std::vector.
2573 * stack.c (func_command): Use std::vector.
2574 * symtab.h (struct symtabs_and_lines): Delete.
2575 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2576
7c44b49c
PA
25772017-09-04 Pedro Alves <palves@redhat.com>
2578
2579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2580 unittests/array-view-selftests.c.
2581 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2582 * common/array-view.h: New file.
2583 * unittests/array-view-selftests.c: New file.
2584
e439fa14
PA
25852017-09-04 Pedro Alves <palves@redhat.com>
2586
2587 * cli/cli-cmds.c (edit_command): Pass message to
2588 ambiguous_line_spec.
2589 (list_command): Pass message to ambiguous_line_spec. Say
2590 "first"/"last" instead of "start" and "end" to be consistent with
2591 the manual.
2592 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2593 them to print formatted message.
2594
7525b645
PA
25952017-09-04 Pedro Alves <palves@redhat.com>
2596
2597 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2598 ftrace_update_insns by reference instead of pointer.
2599
badc0020
YQ
26002017-09-04 Yao Qi <yao.qi@linaro.org>
2601
2602 * i386-go32-tdep.c: Include x86-xstate.h.
2603 (i386_go32_init_abi): Call i386_target_description.
2604 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2605 if xcr0 is X86_XSTATE_X87_MASK.
2606 * i386-tdep.h (tdesc_i386): Remove the declaration.
2607 (tdesc_i386_mmx): Likewise.
2608
d78bdb54
YQ
26092017-09-04 Yao Qi <yao.qi@linaro.org>
2610
2611 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2612 X86_XSTATE_SSE_MASK instead of 0.
2613
ca1fa5ee
YQ
26142017-09-04 Yao Qi <yao.qi@linaro.org>
2615
2616 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2617 i386_target_description.
2618 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2619 i386_target_description.
2620 * i386-tdep.c (i386_gdbarch_init): Likewise.
2621
2434b019
YQ
26222017-09-04 Yao Qi <yao.qi@linaro.org>
2623
2624 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2625 (x86_darwin_init_abi_64): Call amd64_target_description.
2626 * amd64-dicos-tdep.c: Likewise.
2627 * amd64-fbsd-nat.c: Likewise.
2628 * amd64-fbsd-tdep.c: Likewise.
2629 * amd64-nbsd-tdep.c: Likewise.
2630 * amd64-obsd-tdep.c: Likewise.
2631 * amd64-sol2-tdep.c: Likewise.
2632 * amd64-windows-tdep.c: Likewise.
2633 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2634
0860c437
SM
26352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2636
2637 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2638 (btrace_function) <insn>: Change type to use std::vector.
2639 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2640 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2641 ftrace_update_insns, ftrace_compute_global_level_offset,
2642 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2643 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2644 change to std::vector.
2645 (ftrace_update_insns): Adjust to change to std::vector, change
2646 type of INSN parameter.
2647 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2648 * record-btrace.c (btrace_call_history_insn_range,
2649 btrace_compute_src_line_range,
2650 record_btrace_frame_prev_register): Adjust to change to
2651 std::vector.
2652 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2653 to change to std::vector.
2654
0638b7f9
TT
26552017-09-03 Tom Tromey <tom@tromey.com>
2656
2657 * corefile.c (reopen_exec_file): Use std::string.
2658
8f84fb0e
TT
26592017-09-03 Tom Tromey <tom@tromey.com>
2660
2661 * compile/compile.c (compile_register_name_mangled): Return
2662 std::string.
2663 * compile/compile-loc2c.c (pushf_register_address): Update.
2664 (pushf_register): Update.
2665 * compile/compile-c-types.c (convert_array): Update.
2666 * compile/compile-c-symbols.c (generate_vla_size): Update.
2667 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2668 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2669 (convert_one_symbol): Update.
2670 (generate_c_for_for_one_variable): Update.
2671 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2672 std::string.
2673 (generate_register_struct): Update.
2674 * compile/compile-internal.h (c_get_range_decl_name): Return a
2675 std::string.
2676 (compile_register_name_mangled): Return std::string.
2677
18e9961f
TT
26782017-09-03 Tom Tromey <tom@tromey.com>
2679
2680 * utils.c (perror_string): Return a std::string.
2681 (throw_perror_with_name, perror_warning_with_name): Update.
2682
45343786
TT
26832017-09-03 Tom Tromey <tom@tromey.com>
2684
2685 * demangle.c (demangle_command): Use std::string,
2686 unique_xmalloc_ptr.
2687
b57af503
TT
26882017-09-03 Tom Tromey <tom@tromey.com>
2689
2690 * cli/cli-setshow.c (do_set_command): Use std::string.
2691
6eecf35f
TT
26922017-09-03 Tom Tromey <tom@tromey.com>
2693
2694 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2695
56496dd4
TT
26962017-09-03 Tom Tromey <tom@tromey.com>
2697
2698 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2699
e91a1fa7
TT
27002017-09-03 Tom Tromey <tom@tromey.com>
2701
2702 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2703 gdb::unique_xmalloc_ptr.
2704
7ffd83d7
TT
27052017-09-03 Tom Tromey <tom@tromey.com>
2706
2707 * thread.c (print_thread_info_1): Use string_printf.
2708 (thread_apply_command, thread_apply_all_command): Use
2709 std::string.
2710
1ccbe998
TT
27112017-09-03 Tom Tromey <tom@tromey.com>
2712
2713 * valprint.c (val_print_string): Update.
2714 * gdbcore.h (memory_error_message): Return std::string.
2715 * corefile.c (memory_error_message): Return std::string.
2716 (memory_error): Update.
2717 * breakpoint.c (insert_bp_location): Update.
2718
23fdd69e
SM
27192017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2720
2721 * target/waitstatus.h (target_waitstatus_to_string): Change
2722 return type to std::string.
2723 * target/waitstatus.c (target_waitstatus_to_string): Return
2724 std::string.
2725 * target.h (target_waitstatus_to_string): Remove declaration.
2726 * infrun.c (resume, clear_proceed_status_thread,
2727 print_target_wait_results, do_target_wait, save_waitstatus,
2728 stop_all_threads): Adjust.
2729 * record-btrace.c (record_btrace_wait): Adjust.
2730 * target-debug.h
2731 (target_debug_print_struct_target_waitstatus_p): Adjust.
2732
5c811d30
JK
27332017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 PR gdb/22046
2736 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2737 detection.
2738
0a2dde4a
SDJ
27392017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2740
2741 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2742 for setting/unsetting environment variables on the remote target.
2743 (New remote packets): Add entries for QEnvironmentHexEncoded,
2744 QEnvironmentUnset and QEnvironmentReset.
2745 * common/environ.c (gdb_environ::operator=): Extend method to
2746 handle m_user_set_env_list and m_user_unset_env_list.
2747 (gdb_environ::clear): Likewise.
2748 (match_var_in_string): Change type of first parameter from 'char
2749 *' to 'const char *'.
2750 (gdb_environ::set): Extend method to handle
2751 m_user_set_env_list and m_user_unset_env_list.
2752 (gdb_environ::unset): Likewise.
2753 (gdb_environ::clear_user_set_env): New method.
2754 (gdb_environ::user_set_envp): Likewise.
2755 (gdb_environ::user_unset_envp): Likewise.
2756 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2757 m_user_unset_env_list on move constructor/assignment.
2758 (unset): Add new default parameter 'update_unset_list = true'.
2759 (clear_user_set_env): New method.
2760 (user_set_envp): Likewise.
2761 (user_unset_envp): Likewise.
2762 (m_user_set_env_list): New std::set.
2763 (m_user_unset_env_list): Likewise.
2764 * common/rsp-low.c (hex2str): New function.
2765 (bin2hex): New overload for bin2hex function.
2766 * common/rsp-low.c (hex2str): New prototype.
2767 (str2hex): New overload prototype.
2768 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2769 QEnvironmentUnset and QEnvironmentReset.
2770 (remote_protocol_features): Add QEnvironmentHexEncoded,
2771 QEnvironmentUnset and QEnvironmentReset packets.
2772 (send_environment_packet): New function.
2773 (extended_remote_environment_support): Likewise.
2774 (extended_remote_create_inferior): Call
2775 extended_remote_environment_support.
2776 (_initialize_remote): Add QEnvironmentHexEncoded,
2777 QEnvironmentUnset and QEnvironmentReset packet configs.
2778 * unittests/environ-selftests.c (gdb_selftest_env_var):
2779 New variable.
2780 (test_vector_initialization): New function.
2781 (test_init_from_host_environ): Likewise.
2782 (test_reinit_from_host_environ): Likewise.
2783 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2784 Likewise.
2785 (test_unset_set_empty_vector): Likewise.
2786 (test_vector_clear): Likewise.
2787 (test_std_move): Likewise.
2788 (test_move_constructor):
2789 (test_self_move): Likewise.
2790 (test_set_unset_reset): Likewise.
2791 (run_tests): Rewrite in terms of the functions above.
2792
654670a4
WP
27932017-08-31 Weimin Pan <weimin.pan@oracle.com>
2794
2795 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2796 (adi_available): Use a temp variable of type CORE_ADDR as argument
2797 3 when calling target_auxv_search.
2798 (adi_normalize_address): Use masks and xor operators to calculate
2799 normalized address.
2800 (adi_read_versions, adi_write_versions, adi_print_versions)
2801 (do_examine, do_assign): Use paddress.
2802
7755ddb7
JB
28032017-08-29 John Baldwin <jhb@FreeBSD.org>
2804
2805 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2806 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2807 out of loop and add supply of FIR.
2808 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2809 add collect of FIR.
2810
fd437cbc
SM
28112017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2812
3804a343 2813 PR gdb/21827
fd437cbc
SM
2814 * cli/cli-script.c (define_command): Don't convert command name
2815 to lower case.
2816
988f6b3d
JB
28172017-08-25 Joel Brobecker <brobecker@adacore.com>
2818
2819 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2820 Update all callers accordingly. Remove all code blocks handling
2821 the case where DISPP is not NULL.
2822
663c44ac
JK
28232017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2824
2825 PR symtab/22003
2826 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2827 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2828 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2829
f1902523
JK
28302017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2831
2832 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2833 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2834 (read_comp_units_from_section): New parameter abbrev_section, use
2835 read_and_check_comp_unit_head, allocate signatured_type if needed.
2836 (create_all_comp_units): Update read_comp_units_from_section caller.
2837
87215ad1
SDJ
28382017-08-23 Pedro Alves <palves@redhat.com>
2839
2840 PR remote/21852
2841 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2842 to null_ptid and switch to thread without reading the registers
2843 after adding the inferior.
2844
6e41ddec
JK
28452017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2846
2847 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2848 compile-gcc.
2849 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2850 (compile_to_object): Implement compile_gcc.
2851 (_initialize_compile): Install "set compile-gcc". Initialize
2852 compile_gcc.
2853
e68c32d5
JK
28542017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 * compile/compile.c (compile_to_object): Conditionally call
2857 set_verbose. Conditionally call compile or compile_v0.
2858
58afddc6
WP
28592017-08-07 Weimin Pan <weimin.pan@oracle.com>
2860
2861 * sparc64-tdep.h: (adi_normalize_address): New export.
2862 * sparc-nat.h: (open_adi_tag_fd): New export.
2863 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2864 * sparc64-linux-tdep.c:
2865 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2866 (sparc64_linux_handle_segmentation_fault): New function.
2867 (sparc64_linux_init_abi): Register
2868 sparc64_linux_handle_segmentation_fault
2869 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2870 (sparc64_addr_bits_remove): New function.
2871 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2872 (MAX_PROC_NAME_SIZE): New macro.
2873 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2874 (sparc64adilist): New variable.
2875 (adi_proc_list): New variable.
2876 (find_adi_info): New function.
2877 (add_adi_info): New function.
2878 (get_adi_info_proc): New function.
2879 (get_adi_info): New function.
2880 (info_adi_command): New function.
2881 (read_maps_entry): New function.
2882 (adi_available): New function.
2883 (adi_normalize_address): New function.
2884 (adi_align_address): New function.
2885 (adi_convert_byte_count): New function.
2886 (adi_tag_fd): New function.
2887 (adi_is_addr_mapped): New function.
2888 (adi_read_versions): New function.
2889 (adi_write_versions): New function.
2890 (adi_print_versions): New function.
2891 (do_examine): New function.
2892 (do_assign): New function.
2893 (adi_examine_command): New function.
2894 (adi_assign_command): New function.
2895 (_initialize_sparc64_adi_tdep): New function.
2896
11db9430
SM
28972017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2898
2899 * breakpoint.c (breakpoints_info): Rename to ...
2900 (info_breakpoints_command): ... this.
2901 (watchpoints_info): Rename to ...
2902 (info_watchpoints_command): ... this.
2903 (tracepoints_info): Rename to ...
2904 (info_tracepoints_command): ... this.
2905 (_initialize_breakpoint): Adjust.
2906 * dcache.c (dcache_info): Rename to ...
2907 (info_display_command): ... this.
2908 (_initialize_dcache): Adjust.
2909 * frame.h (args_info): Rename to ...
2910 (info_args_command): ... this.
2911 (locals_info): Rename to ...
2912 (info_locals_command): ... this.
2913 * infcmd.c (nofp_registers_info): Rename to ...
2914 (info_registers_command): ... this.
2915 (float_info): Rename to ...
2916 (info_float_command): ... this.
2917 (program_info): Rename to ...
2918 (info_program_command): ... this.
2919 (all_registers_info): Rename to ...
2920 (info_all_registers_command): ... this.
2921 (vector_info): Rename to ...
2922 (info_vector_command): ... this.
2923 (float_info): Rename to ...
2924 (info_float_command): ... this.
2925 (_initialize_infcmd): Adjust.
2926 * inferior.h (term_info): Rename to ...
2927 (info_terminal_command): ... this.
2928 * inflow.c (term_info): Rename to ...
2929 (info_terminal_command): ... this.
2930 (_initialize_inflow): Adjust.
2931 * infrun.c (signals_info): Rename to ...
2932 (info_signals_command): ... this.
2933 (_initialize_infrun): Adjust.
2934 * objc-lang.c (classes_info): Rename to ...
2935 (info_classes_command): ... this.
2936 (selectors_info): Rename to ...
2937 (info_selectors_command): ... this.
2938 (_initialize_objc_language): Adjust.
2939 * printcmd.c (sym_info): Rename to ...
2940 (info_symbol_command): ... this.
2941 (address_info): Rename to ...
2942 (info_address_command): ... this.
2943 (display_info): Rename to ...
2944 (info_display_command): ... this.
2945 (_initialize_printcmd): Adjust.
2946 * reverse.c (bookmarks_info): Rename to ...
2947 (info_breakpoints_command): ... this.
2948 (_initialize_reverse): Adjust.
2949 * ser-go32.c (dos_info): Rename to ...
2950 (info_serial_command): ... this.
2951 (_initialize_ser_dos): Adjust.
2952 * skip.c (skip_info): Rename to ...
2953 (info_skip_command): ... this.
2954 (_initialize_step_skip): Adjust.
2955 * source.c (line_info): Rename to ...
2956 (info_line_command): ... this.
2957 (source_info): Rename to ...
2958 (info_source_command)
2959 * stack.c (frame_info): Rename to ...
2960 (info_frame_command): ... this.
2961 (locals_info): Rename to ...
2962 (info_locals_command): ... this.
2963 (args_info): Rename to ...
2964 (info_args_command): ... this.
2965 (_initialize_stack): Adjust.
2966 * symtab.c (sources_info): Rename to ...
2967 (info_sources_command): ... this.
2968 (variables_info): Rename to ...
2969 (info_variables_command): ... this.
2970 (functions_info): Rename to ...
2971 (info_functions_command): ... this.
2972 (types_info): Rename to ...
2973 (info_types_command): ... this.
2974 (_initialize_symtab): Adjust.
2975 * target.c (target_info): Rename to ...
2976 (info_target_command): ... this.
2977 (initialize_targets): Adjust.
2978 * tracepoint.c (tvariables_info): Rename to ...
2979 (info_tvariables_command): ... this.
2980 (scope_info): Rename to ...
2981 (info_scope_command): ... this.
2982 (trace_dump_actions): Adjust.
2983 (_initialize_tracepoint): Adjust.
2984
b270e6f9
TT
29852017-08-22 Tom Tromey <tom@tromey.com>
2986
2987 * breakpoint.h (install_breakpoint): Update.
2988 * breakpoint.c (add_solib_catchpoint): Update.
2989 (install_breakpoint): Change argument to a std::unique_ptr.
2990 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2991 (create_breakpoint_sal, create_breakpoint): Update.
2992 (watch_command_1, catch_exec_command_1)
2993 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2994 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2995 Return the breakpoint.
2996 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2997 (new_single_step_breakpoint): Update.
2998 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2999 std::unique_ptr.
3000 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3001 std::unique_ptr.
3002 * break-catch-sig.c (create_signal_catchpoint): Use
3003 std::unique_ptr.
3004 * ada-lang.c (create_ada_exception_catchpoint): Use
3005 std::unique_ptr.
3006
36bd8eaa
TT
30072017-08-22 Tom Tromey <tom@tromey.com>
3008
3009 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3010
56f37645
TT
30112017-08-22 Tom Tromey <tom@tromey.com>
3012
3013 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3014 (lookup_partial_symbol): Update.
3015
0b581c69
TT
30162017-08-22 Tom Tromey <tom@tromey.com>
3017
3018 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3019 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3020 (find_and_open_source, symtab_to_fullname): Update.
3021 * psymtab.c (psymtab_to_fullname): Update.
3022
14278e1f
TT
30232017-08-22 Tom Tromey <tom@tromey.com>
3024
3025 * exec.c (exec_file_attach): Update.
3026 * linux-thread-db.c (try_thread_db_load): Update.
3027 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3028 * utils.c (gdb_realpath): Change return type.
3029 (gdb_realpath_keepfile): Update.
3030 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3031 (_initialize_utils): Register the new self test.
3032 * source.c (openp): Update.
3033 (find_and_open_source): Update.
3034 * nto-tdep.c (nto_find_and_open_solib): Update.
3035 * main.c (set_gdb_data_directory): Update.
3036 (captured_main_1): Update.
3037 * dwarf2read.c (dwarf2_get_dwz_file): Update
3038 (dw2_map_symbol_filenames): Update.
3039 * auto-load.c (auto_load_safe_path_vec_update): Update.
3040 (filename_is_in_auto_load_safe_path_vec): Change type of
3041 "filename_realp".
3042 (auto_load_objfile_script): Update.
3043 (file_is_auto_load_safe): Update. Use std::string.
3044 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3045
4971c9a7
TT
30462017-08-22 Tom Tromey <tom@tromey.com>
3047
3048 * utils.c (gdb_realpath_keepfile): Return a
3049 gdb::unique_xmalloc_ptr.
3050 * exec.c (exec_file_attach): Update.
3051 * utils.h (gdb_realpath_keepfile): Return a
3052 gdb::unique_xmalloc_ptr.
3053
e3e41d58
TT
30542017-08-22 Tom Tromey <tom@tromey.com>
3055
3056 * compile/compile.c (compile_file_command): Use
3057 gdb::unique_xmalloc_ptr, std::string.
3058 * utils.c (gdb_abspath): Change return type.
3059 * source.c (openp): Update.
3060 * objfiles.c (allocate_objfile): Update.
3061 * main.c (set_gdb_data_directory): Update.
3062 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3063
0d999a6e
ZZ
30642017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3065
3066 * cli-cmds.c (list_commands): List actual code around more than
3067 one location.
3068
329d5e7e
JB
30692017-08-21 John Baldwin <jhb@FreeBSD.org>
3070
3071 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3072
bf223d3e
PA
30732017-08-21 Pedro Alves <palves@redhat.com>
3074
3075 PR gdb/19487
3076 * c-exp.y (variable production): Handle function aliases.
3077 * minsyms.c (msymbol_is_text): New function.
3078 * minsyms.h (msymbol_is_text): Declare.
3079 * symtab.c (find_function_alias_target): New function.
3080 * symtab.h (find_function_alias_target): Declare.
3081
c973d0aa
PA
30822017-08-21 Pedro Alves <palves@redhat.com>
3083
3084 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3085 typedefs.
3086 * typeprint.c (whatis_exp): If handling "whatis", and expression
3087 is OP_TYPE, strip one typedef level. Otherwise don't strip
3088 typedefs here.
3089 * valops.c (value_cast): Save "to" type before resolving
3090 stubs/typedefs. Use that type as resulting value's type.
3091
2989a365
TT
30922017-08-18 Tom Tromey <tom@tromey.com>
3093 Pedro Alves <palves@redhat.com>
3094
3095 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3096 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3097 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3098 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3099 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3100 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3101 (linux_get_siginfo_data): Add "thread" argument. Use
3102 scoped_restore.
3103 * linux-nat.c (linux_child_follow_fork)
3104 (check_stopped_by_watchpoint): Use scoped_restore.
3105 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3106 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3107 (restore_inferior_ptid, save_inferior_ptid): Remove.
3108 * btrace.c (btrace_fetch): Use scoped_restore.
3109 * bsd-uthread.c (bsd_uthread_fetch_registers)
3110 (bsd_uthread_store_registers): Use scoped_restore.
3111 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3112 scoped_restore.
3113 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3114 (aix_thread_xfer_partial): Use scoped_restore.
3115 * inferior.h (save_inferior_ptid): Remove.
3116
e60eb288
YQ
31172017-08-18 Yao Qi <yao.qi@linaro.org>
3118
3119 PR tdep/21818
3120 * arm-tdep.c (gdb_print_insn_arm): Mark
3121 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3122
6d580b63
YQ
31232017-08-18 Yao Qi <yao.qi@linaro.org>
3124
3125 * NEWS: Mention GDBserver's new option "--selftest".
3126 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3127 * selftest.c: Move it to common/selftest.c.
3128 * selftest.h: Move it to common/selftest.h.
3129 * selftest-arch.c (reset): New function.
3130 (tests_with_arch): Call reset.
3131
86dcbf50
YQ
31322017-08-18 Yao Qi <yao.qi@linaro.org>
3133
3134 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3135 instead of exception_fprintf and printf_filtered.
3136
7649770c
YQ
31372017-08-18 Yao Qi <yao.qi@linaro.org>
3138
3139 * selftest.c (register_self_test): Rename it to
3140 selftests::register_test.
3141 (run_self_tests): selftest::run_tests.
3142 * selftest.h: Update declarations.
3143 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3144 selftests::register_test_foreach_arch.
3145 * selftest-arch.h: Update declaration.
3146 * aarch64-tdep.c: Update.
3147 * arm-tdep.c: Likewise.
3148 * disasm-selftests.c: Likewise.
3149 * dwarf2loc.c: Likewise.
3150 * dwarf2-frame.c: Likewise.
3151 * findvar.c: Likewise.
3152 * gdbarch-selftests.c: Likewise.
3153 * maint.c (maintenance_selftest): Likewise.
3154 * regcache.c: Likewise.
3155 * rust-exp.y: Likewise.
3156 * selftest-arch.c: Likewise.
3157 * unittests/environ-selftests.c: Likewise.
3158 * unittests/function-view-selftests.c: Likewise.
3159 * unittests/offset-type-selftests.c: Likewise.
3160 * unittests/optional-selftests.c: Likewise.
3161 * unittests/scoped_restore-selftests.c: Likewise.
3162 * utils-selftests.c: Likewise.
3163
b0cba12e
PA
31642017-08-17 Pedro Alves <palves@redhat.com>
3165
3166 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3167 local.
3168
4c8aa72d
PA
31692017-08-17 Pedro Alves <palves@redhat.com>
3170
3171 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3172 field.
3173 (reset_die_in_process): Delete, replaced by ...
3174 (process_die_scope): ... this new class. Make it responsible for
3175 freeing cu->line_header too.
3176 (process_die): Use process_die_scope.
3177 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3178 cu->line_header_die_owner. Don't release the line header if it's
3179 owned by the CU.
3180 (setup_type_unit_groups): Make the CU/DIE own the line header.
3181 Don't release the line header here.
3182
ba713918
AL
31832017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3184
3185 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3186
44d0fb3a
RK
31872017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3188
3189 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3190 Single-Key mode
3191
a5afdb16
RK
31922017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3193
3194 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3195 mode command list.
3196
47613aeb
SH
31972017-08-15 Stafford Horne <shorne@gmail.com>
3198
3199 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3200
9c3cc999
SH
32012017-08-15 Stafford Horne <shorne@gmail.com>
3202
3203 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3204
206726fb
SDJ
32052017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3206
3207 PR gdb/21954
3208 * infcmd.c (unset_environment_command): Use the 'clear' method on
3209 the environment instead of resetting it.
3210
0335ac6d
JB
32112017-08-15 John Baldwin <jhb@FreeBSD.org>
3212
3213 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3214 platforms.
3215
d3abe1c8
TT
32162017-08-14 Tom Tromey <tom@tromey.com>
3217
3218 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3219 (print_binary_chars): Likewise.
3220 (BITS_IN_BYTES): Remove.
3221
d6382fff
TT
32222017-08-14 Tom Tromey <tom@tromey.com>
3223
3224 PR gdb/21675
3225 * valprint.c (LOW_ZERO): Change value to 034.
3226 (print_octal_chars): Add static_asserts for octal constants.
3227 * printcmd.c (print_scalar_formatted): Add 'd' case.
3228
f978cb06
TT
32292017-08-11 Tom Tromey <tom@tromey.com>
3230
3231 * symfile.c (add_symbol_file_command): Use std::vector.
3232
2f5404b3
TT
32332017-08-14 Tom Tromey <tom@tromey.com>
3234
3235 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3236 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3237 std::move.
3238 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3239
de7985c3
PA
32402017-08-11 Pedro Alves <palves@redhat.com>
3241
3242 * infrun.c (process_event_stop_test): Adjust
3243 function_name_is_marked_for_skip call.
3244 * skip.c: Include <list>.
3245 (skiplist_entry): Make it a class with private fields, and
3246 getters/setters.
3247 (skiplist_entry_chain): Delete.
3248 (skiplist_entries): New.
3249 (skiplist_entry_count): Delete.
3250 (highest_skiplist_entry_num): New.
3251 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3252 (add_skiplist_entry): Delete.
3253 (skiplist_entry::skiplist_entry): New.
3254 (skiplist_entry::add_entry): New.
3255 (skip_file_command, skip_function): Adjust.
3256 (compile_skip_regexp): Delete.
3257 (skip_command): Don't compile regexp here. Adjust to use
3258 skiplist_entry::add_entry.
3259 (skip_info): Adjust to use range-for and getters.
3260 (skip_enable_command, skip_disable_command): Adjust to use
3261 range-for and setters.
3262 (skip_delete_command): Adjust to use std::list.
3263 (add_skiplist_entry): Delete.
3264 (skip_file_p): Delete, refactored as ...
3265 (skiplist_entry::do_skip_file_p): ... this new method.
3266 (skip_gfile_p): Delete, refactored as ...
3267 (skiplist_entry::do_gskip_file_p): ... this new method.
3268 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3269 (skiplist_entry::skip_function_p): ... this new method.
3270 (function_name_is_marked_for_skip): Now returns bool, and takes
3271 the function sal by const reference. Adjust to use range-for and
3272 skiplist_entry methods.
3273 (_initialize_step_skip): Remove references to
3274 skiplist_entry_chain, skiplist_entry_count.
3275 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3276 takes the function sal by const reference.
3277
be7d3cd5
YQ
32782017-08-11 Yao Qi <yao.qi@linaro.org>
3279
3280 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3281 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3282 (dwarf2_frame_cache):
3283 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3284 RETURN_MASK_ALL and set *this_case to NULL.
3285 * frame-unwind.h: Update comments.
3286
1c90d9f0
YQ
32872017-08-11 Yao Qi <yao.qi@linaro.org>
3288
3289 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3290 (dwarf2_frame_state_copy_regs): Remove.
3291 (dwarf2_frame_state_free_regs): Remove.
3292 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3293 (dwarf2_restore_rule): Call method .alloc_regs instead of
3294 dwarf2_frame_state_alloc_regs.
3295 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3296 constructor. Call std::move.
3297 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3298 (dwarf2_frame_cache): Likewise.
3299
3300 [GDB_SELF_TEST]: Include selftest.h and
3301 selftest-arch.h.
3302 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3303 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3304 execute_cfa_program_test.
3305
3306 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3307 copy ctor, assignment operator, move assignment.
3308 <alloc_regs>: New method.
3309 <swap>: New method.
3310 (struct dwarf2_frame_state): Delete dtor.
3311 (dwarf2_frame_state_alloc_regs): Remove declaration.
3312 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3313 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3314
afe37d6b
YQ
33152017-08-11 Yao Qi <yao.qi@linaro.org>
3316
3317 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3318 (dwarf2_frame_state::dwarf2_frame_state): New.
3319 (dwarf2_frame_state::~dwarf2_frame_state): New.
3320 (dwarf2_fetch_cfa_info): Update.
3321 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3322 rather than a pointer. Update code.
3323 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3324 dtor.
3325 <data_align, code_align, retaddr_column>: Change them to const.
3326 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3327 to bool.
3328
b348037f
YQ
33292017-08-11 Yao Qi <yao.qi@linaro.org>
3330
3331 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3332 <loc.exp>: New field.
3333 * dwarf2-frame.c (execute_cfa_program): Update.
3334 (dwarf2_frame_prev_register): Update.
3335
e7c9de26
PA
33362017-08-10 Pedro Alves <palves@redhat.com>
3337
3338 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3339
e8c6b620
JB
33402017-08-09 John Baldwin <jhb@FreeBSD.org>
3341
3342 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3343 (fbsd_pending_children): Use std::list.
3344 (fbsd_remember_child): Likewise.
3345 (fbsd_is_child_pending): Likewise.
3346 (fbsd_pending_vfork_done): Use std::forward_list.
3347 (fbsd_add_vfork_done): Likewise.
3348 (fbsd_is_vfork_done_pending): Likewise.
3349 (fbsd_next_vfork_done): Likewise.
3350
e4a26669
JB
33512017-08-09 John Baldwin <jhb@FreeBSD.org>
3352
3353 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3354 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3355 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3356 for `mapfilename'.
3357 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3358 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3359
142311d3
JB
33602017-08-09 John Baldwin <jhb@FreeBSD.org>
3361
3362 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3363 "filestuff.h".
3364 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3365
42fa2e0e
TT
33662017-08-09 Tom Tromey <tom@tromey.com>
3367
3368 * skip.c (skiplist_entry): New constructor.
3369 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3370 (skiplist_entry::file_is_glob): Now bool.
3371 (skiplist_entry::file, skiplist_entry::function): Now
3372 std::string.
3373 (make_skip_entry): Return a unique_ptr. Use new.
3374 (free_skiplist_entry, free_skiplist_entry_cleanup)
3375 (make_free_skiplist_entry_cleanup): Remove.
3376 (skip_command, skip_disable_command, add_skiplist_entry)
3377 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3378 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3379 (function_name_is_marked_for_skip): Update.
3380 (skip_delete_command): Update. Use delete.
3381
cd3af38d
JW
33822017-08-09 Jiong Wang <jiong.wang@arm.com>
3383
3384 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3385 (aarch64_linux_core_read_description): New function.
3386 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3387
29592bde
PA
33882017-08-09 Pedro Alves <palves@redhat.com>
3389
3390 * cp-name-parser.y (cp_comp_to_string): Return a
3391 gdb::unique_xmalloc_ptr<char>.
3392 * cp-support.c (replace_typedefs_qualified_name)
3393 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3394 (cp_canonicalize_string_full): Use op= instead of explicit
3395 convertion.
3396 (cp_class_name_from_physname, method_name_from_physname)
3397 (cp_func_name, cp_remove_params): Adjust to use
3398 gdb::unique_xmalloc_ptr<char>.
3399 * cp-support.h (cp_comp_to_string): Return a
3400 gdb::unique_xmalloc_ptr<char>.
3401 * python/py-type.c (typy_lookup_type): Adjust to use
3402 gdb::unique_xmalloc_ptr<char>.
3403
b3340438
L
34042017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3405
3406 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3407
e88e8651
YQ
34082017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3409 Yao Qi <yao.qi@linaro.org>
3410
3411 * cp-support.c (cp_canonicalize_string_full): Use
3412 gdb::unique_xmalloc_ptr<char>.
3413 (cp_canonicalize_string): Likewise.
3414
f5a29eb0
YQ
34152017-08-09 Yao Qi <yao.qi@linaro.org>
3416
3417 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3418 * regformats/i386/amd64-avx-avx512.dat: Remove.
3419 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3420 * regformats/i386/amd64-avx-mpx.dat:Remove.
3421 * regformats/i386/amd64-avx.dat: Remove.
3422 * regformats/i386/amd64-mpx.dat: Remove.
3423 * regformats/i386/i386-avx-avx512.dat: Remove.
3424 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3425 * regformats/i386/i386-avx-mpx.dat: Remove.
3426 * regformats/i386/i386-mmx.dat: Remove.
3427 * regformats/i386/i386-mpx.dat: Remove.
3428
57757c2f
YQ
34292017-08-09 Yao Qi <yao.qi@linaro.org>
3430
3431 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3432 * amd64-tdep.c: Don't include features/i386/x32*.c.
3433 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3434 functions.
3435 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3436 and i386/x32-avx-avx512.
3437 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3438 and i386/x32.xml.
3439 * features/i386/x32-avx-avx512.c: Removed.
3440 * features/i386/x32-avx-avx512.xml: Removed.
3441 * features/i386/x32-avx.c: Removed.
3442 * features/i386/x32-avx.xml: Removed.
3443 * features/i386/x32.c: Removed.
3444 * features/i386/x32.xml: Removed.
3445 * regformats/i386/x32-avx-avx512.dat: Removed.
3446 * regformats/i386/x32-avx.dat: Removed.
3447 * regformats/i386/x32.dat: Removed.
3448
ba7b109b
MR
34492017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3450
3451 PR breakpoints/21886
3452 * mem-break.c (default_memory_insert_breakpoint): Use
3453 `->placed_address' rather than `->reqstd_address' for the
3454 breakpoint location.
3455
e347efc3
MR
34562017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3457
3458 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3459 assertions.
3460
0dba2a6c
MR
34612017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3462
3463 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3464 a union of `tdep_info', `tdesc_data' and `id'.
3465 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3466 rather than `info.tdep_info'.
3467 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3468 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3469 * i386-tdep.c (i386_gdbarch_init): Likewise.
3470 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3471 * mips-tdep.c (mips_gdbarch_init): Likewise.
3472 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3473 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3474 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3475 `info.tdep_info'.
3476 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3477 `info.tdep_info'.
3478 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3479 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3480 `info.tdep_info'.
3481 * spu-tdep.c (spu_gdbarch_init): Likewise.
3482 * gdbarch.h: Regenerate.
3483
16eb6b2d
LS
34842017-08-07 Leszek Swirski <leszeks@google.com>
3485
7b005726 3486 PR symtab/20899
16eb6b2d
LS
3487 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3488
74cbb09e
SM
34892017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3490
3491 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3492 (gdbsim_open): Rename gdb_argv args object to argv.
3493
ee0c3293
TT
34942017-08-05 Tom Tromey <tom@tromey.com>
3495
3496 * compile/compile-object-load.c (compile_object_load): Use
3497 gdb::unique_xmalloc_ptr.
3498 * cli/cli-dump.c (scan_filename): Rename from
3499 scan_filename_with_cleanup. Change return type.
3500 (scan_expression): Rename from scan_expression_with_cleanup.
3501 Change return type.
3502 (dump_memory_to_file, dump_value_to_file, restore_command):
3503 Use gdb::unique_xmalloc_ptr. Update.
3504 * cli/cli-cmds.c (find_and_open_script): Use
3505 gdb::unique_xmalloc_ptr.
3506 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3507 * symmisc.c (maintenance_print_symbols)
3508 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3509 * symfile.c (symfile_bfd_open, generic_load)
3510 (add_symbol_file_command, remove_symbol_file_command): Use
3511 gdb::unique_xmalloc_ptr.
3512 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3513 * psymtab.c (maintenance_print_psymbols): Use
3514 gdb::unique_xmalloc_ptr.
3515 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3516 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3517 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3518 (reload_shared_libraries_1): Likewise.
3519
3232fabd
TT
35202017-08-05 Tom Tromey <tom@tromey.com>
3521
3522 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3523 (rust_op_vector, rust_set_vector): New typedefs.
3524 (current_parser): New global.
3525 (work_obstack): Change to pointer type. Update all users.
3526 (rust_ast, pstate): Remove globals.
3527 (struct rust_parser): New.
3528 (%union) <params, field_inits>: Change type.
3529 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3530 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3531 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3532 (convert_params_to_types, convert_params_to_expression): Change
3533 type of "params".
3534 (ast_string): Change type of "fields".
3535 (rust_parse): Make a rust_parser. Remove cleanups.
3536 (rust_lex_tests): Make and install an auto_obstack.
3537
f02fd774
YQ
35382017-08-04 Yao Qi <yao.qi@linaro.org>
3539
3540 * configure.srv (ipa_x32_linux_regobj): New.
3541 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3542 instead of X86_TDESC_AVX512.
3543 (initialize_low_tracepoint): Call
3544 init_registers_x32_avx_avx512_linux.
3545
91975afd
YQ
35462017-08-04 Yao Qi <yao.qi@linaro.org>
3547
3548 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3549
2331fa3a
RK
35502017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3551
3552 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3553
744e4fe1
TT
35542017-08-03 Tom Tromey <tom@tromey.com>
3555
3556 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3557 Remove.
3558 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3559
1c034b67
TT
35602017-08-03 Tom Tromey <tom@tromey.com>
3561
3562 * python/py-param.c (compute_enum_values): Use gdb_argv.
3563
773a1edc
TT
35642017-08-03 Tom Tromey <tom@tromey.com>
3565
3566 * utils.h (struct gdb_argv_deleter): New.
3567 (gdb_argv): New class.
3568 * utils.c (gdb_argv::reset): New method.
3569 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3570 * tracefile.c (tsave_command): Use gdb_argv.
3571 * top.c (new_ui_command): Use gdb_argv.
3572 * symmisc.c (maintenance_print_symbols)
3573 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3574 * symfile.c (symbol_file_command, generic_load)
3575 (remove_symbol_file_command): Use gdb_argv.
3576 * stack.c (backtrace_command): Use gdb_argv.
3577 * source.c (add_path, show_substitute_path_command)
3578 (unset_substitute_path_command, set_substitute_path_command):
3579 Use gdb_argv.
3580 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3581 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3582 * remote.c (extended_remote_run, remote_put_command)
3583 (remote_get_command, remote_delete_command): Use gdb_argv.
3584 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3585 (gdbsim_open): Use gdb_argv.
3586 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3587 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3588 * procfs.c (procfs_info_proc): Use gdb_argv.
3589 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3590 * infrun.c (handle_command): Use gdb_argv.
3591 * inferior.c (add_inferior_command, clone_inferior_command):
3592 Use gdb_argv.
3593 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3594 * exec.c (exec_file_command): Use gdb_argv.
3595 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3596 * compile/compile.c (build_argc_argv): Use gdb_argv.
3597
0d50bde3
TT
35982017-08-03 Tom Tromey <tom@tromey.com>
3599
3600 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3601
7f968c89
TT
36022017-08-03 Tom Tromey <tom@tromey.com>
3603
3604 * python/python.c (compute_python_string): Return std::string.
3605 (gdbpy_eval_from_control_command): Update.
3606 (do_start_initialization): Use std::string.
3607 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3608 xstrprintf.
3609 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3610 xstrprintf.
3611
3c9ebddd
TT
36122017-08-03 Tom Tromey <tom@tromey.com>
3613
3614 * top.h (do_restore_instream_cleanup): Remove.
3615 * top.c (do_restore_instream_cleanup): Remove.
3616 (read_command_file): Use scoped_restore.
3617 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3618
b51b225e
TT
36192017-08-03 Tom Tromey <tom@tromey.com>
3620
3621 * cli/cli-script.c (execute_user_command)
3622 (execute_control_command): Use scoped_restore.
3623
ac991630
TT
36242017-08-03 Tom Tromey <tom@tromey.com>
3625
3626 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3627 (execute_user_command): Remove user_call_depth; use
3628 user_args_stack's size instead.
3629
898e0c8e
TT
36302017-08-03 Tom Tromey <tom@tromey.com>
3631
3632 * top.h (in_user_command): Remove.
3633 * top.c (in_user_command): Remove.
3634 * cli/cli-script.c (do_restore_user_call_depth)
3635 (execute_user_command): Update.
3636
26fcd5d7
TT
36372017-08-03 Tom Tromey <tom@tromey.com>
3638
3639 * valops.c (search_struct_method): Use gdb::byte_vector.
3640 * valarith.c (value_concat): Use std::vector.
3641 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3642 (simple_search_memory): Likewise.
3643 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3644 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3645 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3646 * elfread.c (elf_rel_plt_read): Use std::string.
3647 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3648 * cli/cli-dump.c (restore_section_callback): Use
3649 gdb::byte_vector.
3650
7c218e6c
TT
36512017-08-03 Tom Tromey <tom@tromey.com>
3652
3653 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3654
31b68d4a
TT
36552017-08-03 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3658 (tui_register_format): Use scoped_restore.
3659
2ec845e7
TT
36602017-08-03 Tom Tromey <tom@tromey.com>
3661
3662 * reverse.c (exec_direction_default): Remove.
3663 (exec_reverse_once): Use scoped_restore.
3664 * remote.c (restore_remote_timeout): Remove.
3665 (remote_flash_erase, remote_flash_write, remote_flash_done)
3666 (readchar, remote_serial_write): Use scoped_restore.
3667 * cli/cli-script.c (struct source_cleanup_lines_args)
3668 (source_cleanup_lines): Remove.
3669 (script_from_file): Use scoped_restore.
3670 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3671 (source_command): Use scoped_restore.
3672
b3bc8453
TT
36732017-08-03 Tom Tromey <tom@tromey.com>
3674
3675 * utils.h (make_cleanup_free_so): Remove.
3676 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3677 * solist.h (struct so_deleter): New.
3678 (so_list_up): New typedef.
3679 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3680
e3ad2841
TT
36812017-08-03 Tom Tromey <tom@tromey.com>
3682
3683 * utils.h (make_cleanup_restore_current_language): Remove.
3684 * utils.c (do_restore_current_language)
3685 (make_cleanup_restore_current_language): Remove.
3686 * parse.c (parse_exp_in_context_1)
3687 (parse_expression_with_language): Use
3688 scoped_restore_current_language.
3689 * mi/mi-main.c (mi_cmd_execute): Use
3690 scoped_restore_current_language.
3691 * language.h (scoped_restore_current_language): New class.
3692
b80cf838
TT
36932017-08-03 Tom Tromey <tom@tromey.com>
3694
3695 * compile/compile.c (cleanup_unlink_file): Remove.
3696 (compile_to_object): Use gdb::unlinker.
3697 (eval_compile_command): Likewise.
3698
fad0444a
TT
36992017-08-03 Tom Tromey <tom@tromey.com>
3700
3701 * utils.h (make_cleanup_fclose): Remove.
3702 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3703
6e7bc05c
TT
37042017-08-03 Tom Tromey <tom@tromey.com>
3705
3706 * top.c (open_terminal_stream): Return gdb_file_up.
3707 (new_ui_command): Update.
3708
4a45905b
TT
37092017-08-03 Tom Tromey <tom@tromey.com>
3710
3711 * source.c (print_source_lines_base, forward_search_command)
3712 (reverse_search_command): Use gdb_file_up.
3713
7cd06d6e
TT
37142017-08-03 Tom Tromey <tom@tromey.com>
3715
3716 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3717
ed166945
TT
37182017-08-03 Tom Tromey <tom@tromey.com>
3719
3720 * cli/cli-cmds.c (find_and_open_script): Change return type.
3721 Remove "streamp" and "full_path" parameters.
3722 (source_script_with_search): Update.
3723 * auto-load.c (source_script_file): Update.
3724 * cli/cli-cmds.h (find_and_open_script): Change type.
3725 (open_script): New struct.
3726
d419f42d
TT
37272017-08-03 Tom Tromey <tom@tromey.com>
3728
3729 * xml-support.c (xml_fetch_content_from_file): Update.
3730 * ui-file.c (stdio_file::open): Update.
3731 * tracefile-tfile.c (tfile_start): Update.
3732 * remote.c (remote_file_put, remote_file_get): Update.
3733 * nat/linux-procfs.c (linux_proc_get_int)
3734 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3735 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3736 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3737 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3738 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3739 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3740 * linux-nat.c (linux_proc_pending_signals): Update.
3741 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3742 (file_closer): Remove.
3743 * compile/compile.c (compile_to_object): Update.
3744 * common/filestuff.h (struct gdb_file_deleter): New.
3745 (gdb_file_up): New typedef.
3746 (gdb_fopen_cloexec): Change return type.
3747 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3748 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3749 (dump_binary_file, restore_binary_file): Update.
3750 * auto-load.c (auto_load_objfile_script_1): Update.
3751
4a2b031d
TT
37522017-08-03 Tom Tromey <tom@tromey.com>
3753
3754 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3755 (info_static_tracepoint_markers_command): Likewise.
3756 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3757 * skip.c (skip_info): Use ui_out_emit_table.
3758 * progspace.c (print_program_space): Use ui_out_emit_table.
3759 * osdata.c (info_osdata): Use ui_out_emit_table.
3760 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3761 ui_out_emit_table.
3762 * linux-thread-db.c (info_auto_load_libthread_db): Use
3763 ui_out_emit_table.
3764 * inferior.c (print_inferior): Use ui_out_emit_table.
3765 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3766 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3767 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3768 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3769 * ui-out.h (class ui_out_emit_table): New.
3770
a4f320fd
MR
37712017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3772
3773 * mips-tdep.c (mips_fpu_type_str): New function.
3774 (mips_dump_tdep): Call it.
3775
a2f1f308
MR
37762017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3777
3778 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3779 `->mips_fpu_type'.
3780
7e5ed83b
XR
37812017-07-31 Xavier Roirand <roirand@adacore.com>
3782
3783 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3784
4c9dc811
XR
37852017-07-27 Xavier Roirand <roirand@adacore.com>
3786
3787 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3788
27d41eac
YQ
37892017-07-26 Yao Qi <yao.qi@linaro.org>
3790
3791 * cli/cli-cmds.c (maintenancechecklist): New variable.
3792 * gdbcmd.h (maintenancechecklist): Declare it.
3793 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3794 Call i386_linux_read_description with different masks.
3795 * maint.c (maintenance_check_command): New function.
3796 (_initialize_maint_cmds): Call add_prefix_cmd.
3797 * target-descriptions.c (tdesc_reg): override operator != and ==.
3798 (tdesc_type): Likewise.
3799 (tdesc_feature): Likewise.
3800 (target_desc): Likewise.
3801 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3802 (maintenance_check_xml_descriptions): New function.
3803 (_initialize_target_descriptions) Add command "xml-descriptions".
3804 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3805
ea03d0d3
YQ
38062017-07-26 Yao Qi <yao.qi@linaro.org>
3807
3808 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3809 Include features/i386/32bit-*.c.
3810 (i386_linux_read_description): Generate target description if it
3811 doesn't exist.
3812 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3813 functions.
3814 * features/i386/32bit-linux.c: Re-generated.
3815 * features/i386/32bit-sse.c: Likewise.
3816 * target-descriptions.c (print_c_feature::visit): Print code to
3817 set register number if needed.
3818 (print_c_feature) <m_next_regnum>: New field.
3819
25aa13e5
YQ
38202017-07-26 Yao Qi <yao.qi@linaro.org>
3821
3822 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3823 (FEATURE_XMLFILES): New.
3824 (FEATURE_CFILES): New.
3825 New rules.
3826 (clean-cfiles): Remove generated c files.
3827 * features/i386/32bit-avx.c: Generated.
3828 * features/i386/32bit-avx512.c: Generated.
3829 * features/i386/32bit-core.c: Generated.
3830 * features/i386/32bit-linux.c: Generated.
3831 * features/i386/32bit-mpx.c: Generated.
3832 * features/i386/32bit-pkeys.c: Generated.
3833 * features/i386/32bit-sse.c: Generated.
3834 * target-descriptions.c: Include algorithm.
3835 (tdesc_element_visitor): Add method visit_end.
3836 (print_c_tdesc): Implement visit_end.
3837 (print_c_tdesc:: m_filename_after_features): Move it to
3838 protected.
3839 (print_c_feature): New class.
3840 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3841 name starts with "i386/32bit-".
3842
6eb1e6a8
YQ
38432017-07-26 Yao Qi <yao.qi@linaro.org>
3844
3845 * target-descriptions.c (tdesc_element_visitor): New class.
3846 (tdesc_element): New class.
3847 (tdesc_reg): Inherit from tdesc_element.
3848 (tdesc_reg::accept): New function.
3849 (tdesc_type): Inherit from tdesc_element.
3850 (tdesc_type::accept): New function.
3851 (tdesc_feature): Inherit from tdesc_element.
3852 (tdesc_feature::accept): New function.
3853 (target_desc): Inherit from tdesc_element.
3854 (target_desc::target_desc): New.
3855 (target_desc::~target_desc): New.
3856 (target_desc::accept): New.
3857 (allocate_target_description): Use new.
3858 (free_target_description): Use delete.
3859 (print_c_tdesc): New class.
3860 (maint_print_c_tdesc_cmd): Adjust.
3861
3862 * features/aarch64.c: Re-generated.
3863 * features/arc-arcompact.c: Re-generated.
3864 * features/arc-v2.c: Re-generated.
3865 * features/arm/arm-with-iwmmxt.c: Re-generated.
3866 * features/arm/arm-with-m.c: Re-generated.
3867 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3868 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3869 * features/arm/arm-with-neon.c: Re-generated.
3870 * features/arm/arm-with-vfpv2.c: Re-generated.
3871 * features/arm/arm-with-vfpv3.c: Re-generated.
3872 * features/i386/amd64-avx-avx512.c: Re-generated.
3873 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3874 * features/i386/amd64-avx.c: Re-generated.
3875 * features/i386/amd64-avx-linux.c: Re-generated.
3876 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3877 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3878 * features/i386/amd64-avx-mpx.c: Re-generated.
3879 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3880 * features/i386/amd64.c: Re-generated.
3881 * features/i386/amd64-linux.c: Re-generated.
3882 * features/i386/amd64-mpx.c: Re-generated.
3883 * features/i386/amd64-mpx-linux.c: Re-generated.
3884 * features/i386/i386-avx-avx512.c: Re-generated.
3885 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3886 * features/i386/i386-avx.c: Re-generated.
3887 * features/i386/i386-avx-linux.c: Re-generated.
3888 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3889 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3890 * features/i386/i386-avx-mpx.c: Re-generated.
3891 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3892 * features/i386/i386.c: Re-generated.
3893 * features/i386/i386-linux.c: Re-generated.
3894 * features/i386/i386-mmx.c: Re-generated.
3895 * features/i386/i386-mmx-linux.c: Re-generated.
3896 * features/i386/i386-mpx.c: Re-generated.
3897 * features/i386/i386-mpx-linux.c: Re-generated.
3898 * features/i386/x32-avx-avx512.c: Re-generated.
3899 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3900 * features/i386/x32-avx.c: Re-generated.
3901 * features/i386/x32-avx-linux.c: Re-generated.
3902 * features/i386/x32.c: Re-generated.
3903 * features/i386/x32-linux.c: Re-generated.
3904 * features/microblaze.c: Re-generated.
3905 * features/microblaze-with-stack-protect.c: Re-generated.
3906 * features/mips64-dsp-linux.c: Re-generated.
3907 * features/mips64-linux.c: Re-generated.
3908 * features/mips-dsp-linux.c: Re-generated.
3909 * features/mips-linux.c: Re-generated.
3910 * features/nds32.c: Re-generated.
3911 * features/nios2.c: Re-generated.
3912 * features/nios2-linux.c: Re-generated.
3913 * features/rs6000/powerpc-32.c: Re-generated.
3914 * features/rs6000/powerpc-32l.c: Re-generated.
3915 * features/rs6000/powerpc-403.c: Re-generated.
3916 * features/rs6000/powerpc-403gc.c : Re-generated.
3917 * features/rs6000/powerpc-405.c: Re-generated.
3918 * features/rs6000/powerpc-505.c: Re-generated.
3919 * features/rs6000/powerpc-601.c: Re-generated.
3920 * features/rs6000/powerpc-602.c: Re-generated.
3921 * features/rs6000/powerpc-603.c: Re-generated.
3922 * features/rs6000/powerpc-604.c: Re-generated.
3923 * features/rs6000/powerpc-64.c: Re-generated.
3924 * features/rs6000/powerpc-64l.c: Re-generated.
3925 * features/rs6000/powerpc-7400.c: Re-generated.
3926 * features/rs6000/powerpc-750.c: Re-generated.
3927 * features/rs6000/powerpc-860.c: Re-generated.
3928 * features/rs6000/powerpc-altivec32.c: Re-generated.
3929 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3930 * features/rs6000/powerpc-altivec64.c: Re-generated.
3931 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3932 * features/rs6000/powerpc-cell32l.c: Re-generated.
3933 * features/rs6000/powerpc-cell64l.c: Re-generated.
3934 * features/rs6000/powerpc-e500.c: Re-generated.
3935 * features/rs6000/powerpc-e500l.c: Re-generated.
3936 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3937 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3938 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3939 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3940 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3941 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3942 * features/rs6000/powerpc-vsx32.c: Re-generated.
3943 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3944 * features/rs6000/powerpc-vsx64.c: Re-generated.
3945 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3946 * features/rs6000/rs6000.c: Re-generated.
3947 * features/s390-linux32.c: Re-generated.
3948 * features/s390-linux32v1.c: Re-generated.
3949 * features/s390-linux32v2.c: Re-generated.
3950 * features/s390-linux64.c: Re-generated.
3951 * features/s390-linux64v1.c: Re-generated.
3952 * features/s390-linux64v2.c: Re-generated.
3953 * features/s390-te-linux64.c: Re-generated.
3954 * features/s390-tevx-linux64.c: Re-generated.
3955 * features/s390-vx-linux64.c: Re-generated.
3956 * features/s390x-linux64.c: Re-generated.
3957 * features/s390x-linux64v1.c: Re-generated.
3958 * features/s390x-linux64v2.c: Re-generated.
3959 * features/s390x-te-linux64.c: Re-generated.
3960 * features/s390x-tevx-linux64.c: Re-generated.
3961 * features/s390x-vx-linux64.c: Re-generated.
3962 * features/sparc/sparc32-solaris.c: Re-generated.
3963 * features/sparc/sparc64-solaris.c: Re-generated.
3964 * features/tic6x-c62x.c: Re-generated.
3965 * features/tic6x-c62x-linux.c: Re-generated.
3966 * features/tic6x-c64x.c: Re-generated.
3967 * features/tic6x-c64x-linux.c: Re-generated.
3968 * features/tic6x-c64xp.c: Re-generated.
3969 * features/tic6x-c64xp-linux.c: Re-generated.
3970
35b4818d
YQ
39712017-07-26 Yao Qi <yao.qi@linaro.org>
3972
3973 * i386-linux-tdep.c (i386_linux_read_description): New function.
3974 (i386_linux_core_read_description): Call
3975 i386_linux_read_description.
3976 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3977 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3978 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3979 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3980 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3981 * x86-linux-nat.c (x86_linux_read_description): Call
3982 i386_linux_read_description.
3983
8e2141c6
YQ
39842017-07-26 Yao Qi <yao.qi@linaro.org>
3985
3986 * NEWS: Mention it.
3987 * features/Makefile (%.c: %.xml): Pass the xml file name to
3988 command "maint print c-tdesc".
3989 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3990 name from 'arg'.
3991
b468ff4c
YQ
39922017-07-26 Yao Qi <yao.qi@linaro.org>
3993
3994 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3995 in-class initialization.
3996 (tdesc_create_feature): Call new instead of XCNEW.
3997 (free_target_description): Ue delete.
3998
b9c0e1b4
JB
39992017-07-25 John Baldwin <jhb@FreeBSD.org>
4000
4001 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4002
a04b5337
YQ
40032017-07-25 Yao Qi <yao.qi@linaro.org>
4004
4005 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4006 constant.
4007 (amd64_x32_init_abi): Likewise.
4008 * amd64-tdep.h (amd64_init_abi): Update declaration.
4009 (amd64_x32_init_abi): Likewise.
4010
02ad7fc2
YQ
40112017-07-25 Yao Qi <yao.qi@linaro.org>
4012
4013 PR tdep/21717
4014 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4015 condition for FPSCR.
4016 (arm_linux_store_inferior_registers): Likewise.
4017
b6f48cb0
TT
40182017-07-22 Tom Tromey <tom@tromey.com>
4019
4020 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4021 <syscalls_counts>: Now a std::vector.
4022 (get_catch_syscall_inferior_data): Use "new".
4023 (catch_syscall_inferior_data_cleanup): Use "delete".
4024 (insert_catch_syscall, remove_catch_syscall)
4025 (clear_syscall_counts): Update.
4026
e12c9b7a
TT
40272017-07-22 Tom Tromey <tom@tromey.com>
4028
4029 * break-catch-syscall.c (syscall_catchpoint)
4030 <syscalls_to_be_caught>: Now a std::vector<int>
4031 (~syscall_catchpoint): Remove.
4032 (insert_catch_syscall, remove_catch_syscall)
4033 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4034 (print_mention_catch_syscall, print_recreate_catch_syscall):
4035 Update.
4036 (create_syscall_event_catchpoint): Change type of "filter"
4037 parameter.
4038 (catch_syscall_split_args): Return a std::vector.
4039 (catch_syscall_command_1, catching_syscall_number_1): Update.
4040
4fa8aeac
TT
40412017-07-22 Tom Tromey <tom@tromey.com>
4042
4043 * break-catch-throw.c (struct exception_catchpoint)
4044 <exception_rx>: Now a std::string.
4045 (~exception_catchpoint): Remove.
4046 (print_one_detail_exception_catchpoint): Update.
4047 (handle_gnu_v3_exceptions): Change type of except_rx.
4048 (extract_exception_regexp): Return a std::string.
4049 (catch_exception_command_1): Update.
4050
f746a154
TT
40512017-07-22 Tom Tromey <tom@tromey.com>
4052
4053 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4054 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4055 std::vector.
4056 <catch_all>: Now a bool.
4057 (~signal_catchpoint): Remove.
4058 (signal_catchpoint_insert_location)
4059 (signal_catchpoint_remove_location)
4060 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4061 (signal_catchpoint_print_mention)
4062 (signal_catchpoint_print_recreate)
4063 (signal_catchpoint_explains_signal): Update.
4064 (create_signal_catchpoint): Change type of "filter" and
4065 "catch_all".
4066 (catch_signal_split_args): Return a std::vector. Change type of
4067 "catch_all".
4068 (catch_signal_command): Update.
4069
47e77640
PA
40702017-07-20 Pedro Alves <palves@redhat.com>
4071
4072 * ada-lang.c (ada_language_defn): Make extern.
4073 (_initialize_ada_language): Remove add_language call.
4074 * c-lang.c (c_language_defn, cplus_language_defn)
4075 (asm_language_defn, minimal_language_defn): Make extern.
4076 (_initialize_c_language): Delete.
4077 * completer.c (compare_cstrings): Delete, moved to utils.h.
4078 * d-lang.c (d_language_defn): Make extern.
4079 (_initialize_d_language): Remove add_language calls.
4080 * defs.h (enum language): Add comment.
4081 * f-lang.c (f_language_defn): Make extern.
4082 (_initialize_f_language): Remove add_language call.
4083 * go-lang.c (go_language_defn): Make extern.
4084 (_initialize_go_language): Remove add_language call.
4085 * language.c: Include <algorithm>.
4086 (languages): Redefine as const array.
4087 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4088 (set_language_command): Handle "local". Use for-range loop.
4089 (set_language): Remove loop.
4090 (language_enum): Rewrite.
4091 (language_def, language_str): Remove loops.
4092 (add_language): Delete.
4093 (add_set_language_command): New, based on add_languages.
4094 (skip_language_trampoline): Adjust.
4095 (local_language_defn): Delete.
4096 (language_gdbarch_post_init): Adjust.
4097 (_initialize_language): Remove add_language calls. Call
4098 add_set_language_command.
4099 * language.h (add_language): Delete.
4100 (auto_language_defn)
4101 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4102 (asm_language_defn, c_language_defn, cplus_language_defn)
4103 (d_language_defn, f_language_defn, go_language_defn)
4104 (m2_language_defn, objc_language_defn, opencl_language_defn)
4105 (pascal_language_defn, rust_language_defn): Declare.
4106 * m2-lang.c (m2_language_defn): Make extern.
4107 (_initialize_m2_language): Remove add_language call.
4108 * objc-lang.c (objc_language_defn): Make extern.
4109 (_initialize_objc_language): Remove add_language call.
4110 * opencl-lang.c (opencl_language_defn): Make extern.
4111 (_initialize_opencl_language): Remove add_language call.
4112 * p-lang.c (pascal_language_defn): Make extern.
4113 (_initialize_pascal_language): Delete.
4114 * rust-lang.c (rust_language_defn): Make extern.
4115 (_initialize_rust_language): Delete.
4116 * utils.h (compare_cstrings): New static inline function.
4117
edb0c9cb
PA
41182017-07-20 Pedro Alves <palves@redhat.com>
4119
4120 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4121 (get_var_value): Constify parameters.
4122 (get_int_var_value): Change prototype.
4123 (to_fixed_range_type): Adjust.
4124 * ada-lang.h (get_int_var_value): Change prototype.
4125
a778f165
PA
41262017-07-20 Pedro Alves <palves@redhat.com>
4127
4128 * dwarf2read.c (dw2_lookup_symbol): Use
4129 SYMBOL_MATCHES_SEARCH_NAME.
4130 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4131
42edd901
PA
41322017-07-20 Pedro Alves <palves@redhat.com>
4133
4134 * block.c (block_iter_name_step, block_iter_name_first)
4135 (block_iter_name_next): Delete.
4136 (block_lookup_symbol_primary): Adjust to use
4137 dict_iter_match_first/dict_iter_match_next.
4138 * block.h (block_iter_name_first, block_iter_name_next): Delete
4139 declarations.
4140 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4141 dict_iter_match_first/dict_iter_match_next.
4142
cf325299
PA
41432017-07-20 Pedro Alves <palves@redhat.com>
4144
4145 * cp-support.c (cp_find_first_component_aux): Add missing case for
4146 end of string.
4147
c5ed0576
DB
41482017-07-18 David Blaikie <dblaikie@gmail.com>
4149
4150 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4151 of dwo_cu's dwo_file.
4152
27841e76
YQ
41532017-07-18 Yao Qi <yao.qi@linaro.org>
4154
4155 * remote.c (store_registers_using_G): Remove one line comment.
4156
cfb7e58b
YQ
41572017-07-18 Yao Qi <yao.qi@linaro.org>
4158
4159 * regcache.c (regcache_cpy): Simplify it.
4160 (regcache::cpy_no_passthrough): Remove it.
4161 * regcache.h (cpy_no_passthrough): Remove it.
4162 (regcache_dup, regcache_cpy): Update comments.
4163
386535dd
PA
41642017-07-18 Pedro Alves <palves@redhat.com>
4165
4166 * remote-sim.c (sim_command_completer): Adjust to work with a
4167 completion_tracker instead of a VEC.
4168
c45ec17c
PA
41692017-07-17 Pedro Alves <palves@redhat.com>
4170
4171 * completer.c (complete_source_filenames): New function.
4172 (complete_address_and_linespec_locations): New function.
4173 (location_completer): Use complete_address_and_linespec_locations.
4174 (completion_tracker::build_completion_result): Honor the tracker's
4175 request to suppress append.
4176 * completer.h (completion_tracker::suppress_append_ws)
4177 (completion_tracker::set_suppress_append_ws): New methods.
4178 (completion_tracker::m_suppress_append_ws): New field.
4179 (complete_source_filenames): New declaration.
4180 * linespec.c (linespec_complete_what): New.
4181 (struct ls_parser) <complete_what, completion_word,
4182 completion_quote_char, completion_quote_end, completion_tracker>:
4183 New fields.
4184 (string_find_incomplete_keyword_at_end): New.
4185 (linespec_lexer_lex_string): Record quote char. If in completion
4186 mode, don't throw.
4187 (linespec_lexer_consume_token): Advance the completion word point.
4188 (linespec_lexer_peek_token): Save/restore completion info.
4189 (save_stream_and_consume_token): New.
4190 (set_completion_after_number): New.
4191 (linespec_parse_basic): Set what to complete next depending on
4192 token. Handle function and label completions specially.
4193 (parse_linespec): Disable objc shortcut in completion mode. Set
4194 what to complete next depending on token type. Skip keyword if in
4195 completion mode.
4196 (complete_linespec_component, linespec_complete): New.
4197 * linespec.h (linespec_complete): Declare.
4198
be966d42
PA
41992017-07-17 Pedro Alves <palves@redhat.com>
4200
4201 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4202 Handle 'operator<' / 'operator<<'.
4203
a2459270
PA
42042017-07-17 Pedro Alves <palves@redhat.com>
4205
4206 * completer.c (collect_explicit_location_matches): Handle
4207 MATCH_LABEL.
4208 (convert_explicit_location_to_linespec): New, factored out from
4209 ...
4210 (convert_explicit_location_to_sals): ... this.
4211 (complete_label): New.
4212 (linespec_complete_label, find_label_symbols_in_block): New.
4213 (find_label_symbols): Add completion_mode parameter and adjust to
4214 call find_label_symbols_in_block.
4215 * linespec.h (linespec_complete_label): Declare.
4216
c6756f62
PA
42172017-07-17 Pedro Alves <palves@redhat.com>
4218
4219 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4220 complete_symbol_mode parameter.
4221 * cli/cli-cmds.c (complete_command): Get the completion result out
4222 of the handle_brkchars tracker if used a custom word point.
4223 * completer.c: Include "linespec.h".
4224 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4225 (advance_to_expression_complete_word_point): New.
4226 (completion_tracker::completes_to_completion_word): New.
4227 (complete_files_symbols): Pass down
4228 complete_symbol_mode::EXPRESSION.
4229 (explicit_options, probe_options): New.
4230 (collect_explicit_location_matches): Complete on the
4231 explictit_loc->foo instead of word. Use
4232 linespec_complete_function. Handle MATCH_LINE. Handle offering
4233 keyword and options completions.
4234 (backup_text_ptr): Delete.
4235 (skip_keyword): New.
4236 (complete_explicit_location): Remove 'word' parameter. Add
4237 language, quoted_arg_start and quoted_arg_end parameters.
4238 Rewrite, parsing left to right.
4239 (location_completer): Rewrite.
4240 (location_completer_handle_brkchars): New function.
4241 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4242 (enum complete_line_internal_reason): Adjust comments.
4243 (completion_tracker::discard_completions): New.
4244 (completer_handle_brkchars_func_for_completer): Handle
4245 location_completer.
4246 (gdb_custom_word_point_brkchars)
4247 (gdb_org_rl_basic_quote_characters): New.
4248 (gdb_completion_word_break_characters_throw)
4249 (completion_find_completion_word): Handle trackers that use a
4250 custom word point.
4251 (completion_tracker::advance_custom_word_point_by): New.
4252 (completion_tracker::build_completion_result): Don't rely on
4253 readline appending the quote char.
4254 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4255 use a custom word point.
4256 (gdb_rl_attempted_completion_function): Restore
4257 rl_basic_quote_characters.
4258 * completer.h (class completion_tracker): Extend intro comment.
4259 (completion_tracker::set_quote_char)
4260 (completion_tracker::quote_char)
4261 (completion_tracker::set_use_custom_word_point)
4262 (completion_tracker::use_custom_word_point)
4263 (completion_tracker::custom_word_point)
4264 (completion_tracker::set_custom_word_point)
4265 (completion_tracker::advance_custom_word_point_by)
4266 (completion_tracker::completes_to_completion_word)
4267 (completion_tracker::discard_completions): New methods.
4268 (completion_tracker::m_quote_char)
4269 (completion_tracker::m_use_custom_word_point)
4270 (completion_tracker::m_custom_word_point): New fields.
4271 (advance_to_expression_complete_word_point): Declare.
4272 * f-lang.c (f_collect_symbol_completion_matches): Add
4273 complete_symbol_mode parameter.
4274 * language.h (struct language_defn)
4275 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4276 parameter.
4277 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4278 (linespec_complete_function): New function.
4279 (linespec_lexer_lex_keyword): Adjust.
4280 * linespec.h (linespec_keywords, linespec_complete_function): New
4281 declarations.
4282 * location.c (find_end_quote): New function.
4283 (explicit_location_lex_one): Add explicit_completion_info
4284 parameter. Save quoting info. Don't throw if being called for
4285 completion. Don't handle Ada operators here.
4286 (is_cp_operator, skip_op_false_positives, first_of)
4287 (explicit_location_lex_one_function): New function.
4288 (string_to_explicit_location): Replace 'dont_throw' parameter with
4289 an explicit_completion_info pointer parameter. Handle it. Don't
4290 use explicit_location_lex_one to lex function names. Use
4291 explicit_location_lex_one_function instead.
4292 * location.h (struct explicit_completion_info): New.
4293 (string_to_explicit_location): Replace 'dont_throw' parameter with
4294 an explicit_completion_info pointer parameter.
4295 * symtab.c (default_collect_symbol_completion_matches_break_on):
4296 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4297 (default_collect_symbol_completion_matches)
4298 (collect_symbol_completion_matches): Add complete_symbol_mode
4299 parameter.
4300 (collect_symbol_completion_matches_type): Pass down
4301 complete_symbol_mode::EXPRESSION.
4302 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4303 parameter. Handle LINESPEC mode.
4304 * symtab.h (complete_symbol_mode): New.
4305 (default_collect_symbol_completion_matches_break_on)
4306 (default_collect_symbol_completion_matches)
4307 (collect_symbol_completion_matches)
4308 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4309 parameter.
4310
1d550c82
PA
43112017-07-17 Pedro Alves <palves@redhat.com>
4312
4313 * utils.c (enum class strncmp_iw_mode): New.
4314 (strcmp_iw): Rename to ...
4315 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4316 parameters. Handle them.
4317 (strncmp_iw): New.
4318 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4319 * utils.h (strncmp_iw): Declare.
4320 (strcmp_iw): Move describing comments here.
4321
8090b426
PA
43222017-07-17 Pedro Alves <palves@redhat.com>
4323
4324 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4325 CP_OPERATOR_STR.
4326 * c-typeprint.c (is_type_conversion_operator): Use
4327 CP_OPERATOR_STR.
4328 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4329 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4330 CP_OPERATOR_LEN.
4331 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4332 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4333 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4334 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4335 CP_OPERATOR_STR.
4336 * location.c: Include "cp-support.h".
4337 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4338 CP_OPERATOR_STR.
4339 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4340 CP_OPERATOR_LEN.
4341
6a2c1b87
PA
43422017-07-17 Pedro Alves <palves@redhat.com>
4343
4344 * cli/cli-cmds.c (complete_command): Use a completion tracker
4345 along with completion_find_completion_word for handle_brkchars
4346 phase.
4347 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4348 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4349 (struct gdb_rl_completion_word_info): New.
4350 (gdb_rl_find_completion_word): New.
4351 (completion_find_completion_word): New.
4352 * completer.h (completion_find_completion_word): Declare.
4353
eb3ff9a5
PA
43542017-07-17 Pedro Alves <palves@redhat.com>
4355
4356 * ada-lang.c (symbol_completion_match): Adjust comments.
4357 (symbol_completion_add): Replace vector parameter with
4358 completion_tracker parameter. Use it.
4359 (ada_make_symbol_completion_list): Rename to...
4360 (ada_collect_symbol_completion_matches): ... this. Add
4361 completion_tracker parameter and use it.
4362 (ada_language_defn): Adjust.
4363 * break-catch-syscall.c (catch_syscall_completer): Adjust
4364 prototype and work with completion_tracker instead of VEC.
4365 * breakpoint.c (condition_completer): Adjust prototype and work
4366 with completion_tracker instead of VEC.
4367 * c-lang.c (c_language_defn, cplus_language_defn)
4368 (asm_language_defn, minimal_language_defn): Adjust to renames.
4369 * cli/cli-cmds.c (complete_command): Rework using
4370 completion_tracker. Catch exceptions when completing.
4371 * cli/cli-decode.c (integer_unlimited_completer)
4372 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4373 with completion_tracker instead of VEC.
4374 * command.h (struct completion_tracker): Forward declare.
4375 (completer_ftype, completer_handle_brkchars_ftype): Change
4376 types.
4377 (complete_on_cmdlist, complete_on_enum): Adjust.
4378 * completer.c: Include <algorithm>.
4379 (struct gdb_completer_state): New.
4380 (current_completion): New global.
4381 (readline_line_completion_function): Delete.
4382 (noop_completer, filename_completer)
4383 (filename_completer_handle_brkchars, complete_files_symbols)
4384 (linespec_location_completer): Adjust to work with a
4385 completion_tracker instead of a VEC.
4386 (string_or_empty): New.
4387 (collect_explicit_location_matches): Adjust to work with a
4388 completion_tracker instead of a VEC.
4389 (explicit_location_completer): Rename to ...
4390 (complete_explicit_location): ... this and adjust to work with a
4391 completion_tracker instead of a VEC.
4392 (location_completer): Adjust to work with a completion_tracker
4393 instead of a VEC.
4394 (add_struct_fields): Adjust to work with a completion_list instead
4395 of VEC.
4396 (expression_completer): Rename to ...
4397 (complete_expression): ... this and adjust to work with a
4398 completion_tracker instead of a VEC. Use complete_files_symbols.
4399 (expression_completer): Reimplement on top of complete_expression.
4400 (symbol_completer): Adjust to work with a completion_tracker
4401 instead of a VEC.
4402 (enum complete_line_internal_reason): Add describing comments.
4403 (complete_line_internal_normal_command): Adjust to work with a
4404 completion_tracker instead of a VEC.
4405 (complete_line_internal): Rename to ...
4406 (complete_line_internal_1): ... this and adjust to work with a
4407 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4408 handle_brkchars phase.
4409 (new_completion_tracker): Delete.
4410 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4411 complete_line_internal_1.
4412 (free_completion_tracker): Delete.
4413 (INITIAL_COMPLETION_HTAB_SIZE): New.
4414 (completion_tracker::completion_tracker)
4415 (completion_tracker::~completion_tracker): New.
4416 (maybe_add_completion): Delete.
4417 (completion_tracker::maybe_add_completion)
4418 (completion_tracker::add_completion)
4419 (completion_tracker::add_completions): New.
4420 (throw_max_completions_reached_error): Delete.
4421 (complete_line): Adjust to work with a completion_tracker instead
4422 of a VEC. Don't create a completion_tracker_t or check for max
4423 completions here.
4424 (command_completer, command_completer_handle_brkchars)
4425 (signal_completer, reg_or_group_completer_1)
4426 (reg_or_group_completer, default_completer_handle_brkchars):
4427 Adjust to work with a completion_tracker.
4428 (gdb_completion_word_break_characters_throw): New.
4429 (gdb_completion_word_break_characters): Reimplement.
4430 (line_completion_function): Delete.
4431 (completion_tracker::recompute_lowest_common_denominator)
4432 (expand_preserving_ws)
4433 (completion_tracker::build_completion_result)
4434 (completion_result::completion_result)
4435 (completion_result::completion_result)
4436 (completion_result::~completion_result)
4437 (completion_result::completion_result)
4438 (completion_result::release_match_list, compare_cstrings)
4439 (completion_result::sort_match_list)
4440 (completion_result::reset_match_list)
4441 (gdb_rl_attempted_completion_function_throw)
4442 (gdb_rl_attempted_completion_function): New.
4443 * completer.h (completion_list, struct completion_result)
4444 (class completion_tracker): New.
4445 (complete_line): Add completion_tracker parameter.
4446 (readline_line_completion_function): Delete.
4447 (gdb_rl_attempted_completion_function): New.
4448 (noop_completer, filename_completer, expression_completer)
4449 (location_completer, symbol_completer, command_completer)
4450 (signal_completer, reg_or_group_completer): Update prototypes.
4451 (completion_tracker_t, new_completion_tracker)
4452 (make_cleanup_free_completion_tracker): Delete.
4453 (enum maybe_add_completion_enum): Delete.
4454 (maybe_add_completion): Delete.
4455 (throw_max_completions_reached_error): Delete.
4456 * corefile.c (complete_set_gnutarget): Adjust to work with a
4457 completion_tracker instead of a VEC.
4458 * cp-abi.c (cp_abi_completer): Adjust to work with a
4459 completion_tracker instead of a VEC.
4460 * d-lang.c (d_language_defn): Adjust.
4461 * disasm.c (disassembler_options_completer): Adjust to work with a
4462 completion_tracker instead of a VEC.
4463 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4464 (f_collect_symbol_completion_matches): ... this. Adjust to work
4465 with a completion_tracker instead of a VEC.
4466 (f_language_defn): Adjust.
4467 * go-lang.c (go_language_defn): Adjust.
4468 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4469 Adjust to work with a completion_tracker instead of a VEC.
4470 * infrun.c (handle_completer): Likewise.
4471 * interps.c (interpreter_completer): Likewise.
4472 * interps.h (interpreter_completer): Likewise.
4473 * language.c (unknown_language_defn, auto_language_defn)
4474 (local_language_defn): Adjust.
4475 * language.h (language_defn::la_make_symbol_completion_list):
4476 Rename to ...
4477 (language_defn::la_collect_symbol_completion_matches): ... this
4478 and adjust to work with a completion_tracker instead of a VEC.
4479 * m2-lang.c (m2_language_defn): Adjust.
4480 * objc-lang.c (objc_language_defn): Adjust.
4481 * opencl-lang.c (opencl_language_defn): Adjust.
4482 * p-lang.c (pascal_language_defn): Adjust.
4483 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4484 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4485 with a completion_tracker.
4486 * rust-lang.c (rust_language_defn): Adjust.
4487 * symtab.c (free_completion_list, do_free_completion_list)
4488 (return_val, completion_tracker): Delete.
4489 (completion_list_add_name, completion_list_add_symbol)
4490 (completion_list_add_msymbol, completion_list_objc_symbol)
4491 (completion_list_add_fields, add_symtab_completions): Add
4492 completion_tracker parameter and use it.
4493 (default_make_symbol_completion_list_break_on_1): Rename to...
4494 (default_collect_symbol_completion_matches_break_on): ... this.
4495 Add completion_tracker parameter and use it instead of allocating
4496 a completion tracker here.
4497 (default_make_symbol_completion_list_break_on): Delete old
4498 implementation.
4499 (default_make_symbol_completion_list): Delete.
4500 (default_collect_symbol_completion_matches): New.
4501 (make_symbol_completion_list): Delete.
4502 (collect_symbol_completion_matches): New.
4503 (make_symbol_completion_type): Rename to ...
4504 (collect_symbol_completion_matches_type): ... this. Add
4505 completion_tracker parameter and use it instead of VEC.
4506 (make_file_symbol_completion_list_1): Rename to...
4507 (collect_file_symbol_completion_matches): ... this. Add
4508 completion_tracker parameter and use it instead of VEC.
4509 (make_file_symbol_completion_list): Delete.
4510 (add_filename_to_list): Use completion_list instead of a VEC.
4511 (add_partial_filename_data::list): Now a completion_list.
4512 (make_source_files_completion_list): Work with a completion_list
4513 instead of a VEC.
4514 * symtab.h: Include "completer.h".
4515 (default_make_symbol_completion_list_break_on)
4516 (default_make_symbol_completion_list, make_symbol_completion_list)
4517 (make_symbol_completion_type, make_file_symbol_completion_list)
4518 (make_source_files_completion_list): Delete.
4519 (default_collect_symbol_completion_matches_break_on)
4520 (default_collect_symbol_completion_matches)
4521 (collect_symbol_completion_matches)
4522 (collect_symbol_completion_matches_type)
4523 (collect_file_symbol_completion_matches)
4524 (make_source_files_completion_list): New.
4525 * top.c (init_main): Don't install a rl_completion_entry_function
4526 hook. Install a rl_attempted_completion_function hook instead.
4527 * tui/tui-layout.c (layout_completer): Adjust to work with a
4528 completion_tracker.
4529 * tui/tui-regs.c (tui_reggroup_completer):
4530 * tui/tui-win.c (window_name_completer, focus_completer)
4531 (winheight_completer): Adjust to work with a completion_tracker.
4532 * value.c: Include "completer.h".
4533 (complete_internalvar): Adjust to work with a completion_tracker.
4534 * value.h (complete_internalvar): Likewise.
4535
6e1dbf8c
PA
45362017-07-17 Pedro Alves <palves@redhat.com>
4537
4538 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4539 renames.
4540 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4541 comments to completer_ftype's declaration.
4542 <completer_handle_brkchars>: Change type to
4543 completer_handle_brkchars_ftype.
4544 * command.h (completer_ftype): Add describing comment and give
4545 names to parameters.
4546 (completer_ftype_void): Rename to ...
4547 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4548 (set_cmd_completer_handle_brkchars): Adjust.
4549 * completer.c (filename_completer_handle_brkchars): New function.
4550 (complete_line_internal_normal_command): New function, factored
4551 out from ...
4552 (complete_line_internal): ... here.
4553 (command_completer_handle_brkchars)
4554 (default_completer_handle_brkchars)
4555 (completer_handle_brkchars_func_for_completer): New functions.
4556 * completer.h (set_gdb_completion_word_break_characters): Delete
4557 declaration.
4558 (completer_handle_brkchars_func_for_completer): New declaration.
4559 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4560 completer_handle_brkchars_func_for_completer.
4561
78b13106
PA
45622017-07-17 Pedro Alves <palves@redhat.com>
4563
4564 * completer.c (symbol_completer): New function, based on
4565 make_symbol_completion_list_fn.
4566 * completer.h (symbol_completer): New declaration.
4567 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4568 * python/py-cmd.c (completers): Adjust.
4569 * symtab.c (make_symbol_completion_list_fn): Delete.
4570 * symtab.h (make_symbol_completion_list_fn): Delete.
4571 * cli/cli-decode.c (add_cmd): Adjust.
4572
bbf2f4df
PA
45732017-07-17 Pedro Alves <palves@redhat.com>
4574
4575 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4576 * dwarf2read.c: Include "filename-seen-cache.h".
4577 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4578 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4579 * filename-seen-cache.c: New file.
4580 * filename-seen-cache.h: New file.
4581 * symtab.c: Include "filename-seen-cache.h".
4582 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4583 (create_filename_seen_cache, clear_filename_seen_cache)
4584 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4585 to filename-seen-cache.h/filename-seen-cache.c.
4586 (output_source_filename, sources_info)
4587 (maybe_add_partial_symtab_filename)
4588 (make_source_files_completion_list): Adjust to use
4589 filename_seen_cache.
4590
330cdd98
PA
45912017-07-17 Pedro Alves <palves@redhat.com>
4592
4593 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4594 fields.
4595 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4596 dwarf2_debug_sections*)): New.
4597 (dwarf2_per_objfile::dwarf2_per_objfile(const
4598 dwarf2_per_objfile&)): Declare as deleted.
4599 (dwarf2_per_objfile::operator=): Declare as deleted.
4600 (dwarf2_per_objfile::dwarf2_per_objfile)
4601 (dwarf2_per_objfile::~dwarf2_per_objfile)
4602 (dwarf2_per_objfile::free_cached_comp_units): New.
4603 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4604 ctor. Call dwarf2_per_objfile's ctor manually.
4605 (dwarf2_locate_sections): Deleted/refactored as ...
4606 (dwarf2_per_objfile::locate_sections): ... this new method.
4607 (free_cached_comp_units): Defer to
4608 dwarf2_per_objfile::free_cached_comp_units.
4609 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4610
8880f2a9
TT
46112017-07-14 Tom Tromey <tom@tromey.com>
4612
4613 PR rust/21764:
4614 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4615 parameter.
4616 <UNOP_SIZEOF>: Split into separate case.
4617 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4618
65547233
TT
46192017-07-14 Tom Tromey <tom@tromey.com>
4620
4621 PR rust/21763:
4622 * symtab.c (symbol_matches_domain): Add language_rust to special
4623 case.
4624 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4625 treat LOC_TYPEDEF symbols as variables.
4626
8f14146e
PA
46272017-07-14 Pedro Alves <palves@redhat.com>
4628
4629 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4630 symtabs matching all symtabs with SRCFILE as file name instead of
4631 only considering the first hit, with lookup_symtab.
4632
2347965c
SM
46332017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4634
4635 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4636 operator_name parameters.
4637 (gen_expr): Update function call.
4638
40f4af28
SM
46392017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4640
4641 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4642 parameter.
4643 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4644 Likewise.
4645 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4646 parameter, use agent_expr::gdbarch instead, update function
4647 calls.
4648 (locexpr_tracepoint_var_ref): Likewise.
4649 (loclist_tracepoint_var_ref): Likewise.
4650 * ax-gdb.c (gen_trace_static_fields): Likewise.
4651 (gen_traced_pop): Likewise.
4652 (gen_frame_args_address): Likewise.
4653 (gen_frame_locals_address): Likewise.
4654 (gen_var_ref): Likewise.
4655 (gen_struct_ref_recursive): Likewise.
4656 (gen_static_field): Likewise.
4657 (gen_maybe_namespace_elt): Likewise.
4658 (gen_expr): Likewise.
4659 (gen_trace_for_var): Likewise.
4660 (gen_trace_for_expr): Likewise.
4661 (gen_trace_for_return_address): Likewise.
4662
053f8057
SM
46632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4664
4665 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4666 parameter.
4667 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4668
6661ad48
SM
46692017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4670
4671 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4672 from ax, update calls.
4673 (gen_usual_arithmetic): Likewise.
4674 (gen_integral_promotions): Likewise.
4675 (gen_bitfield_ref): Likewise.
4676 (gen_primitive_field): Likewise.
4677 (gen_struct_ref_recursive): Likewise.
4678 (gen_struct_ref): Likewise.
4679 (gen_maybe_namespace_elt): Likewise.
4680 (gen_struct_elt_for_reference): Likewise.
4681 (gen_namespace_elt): Likewise.
4682 (gen_aggregate_elt_ref): Likewise.
4683 (gen_expr): Get gdbarch from ax, update calls.
4684 (gen_expr_binop_rest): Likewise.
4685
c55a47e7
PA
46862017-07-13 Pedro Alves <palves@redhat.com>
4687
4688 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4689 as default tdesc.
4690 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4691 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4692 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4693 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4694 tdep.
4695 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4696 Get final tdesc from the tdep.
4697 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4698 default tdesc.
4699 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4700 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4701 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4702 Use it as default tdesc.
4703 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4704 down to amd_init_abi. No longer handle fallback tdesc here.
4705 * amd64-tdep.h (tdesc_x32): Declare.
4706 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4707 parameter.
4708 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4709 as default tdesc.
4710
55efceab
AA
47112017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4712
4713 * s390-linux-tdep.c (s390_process_record): Add support for
4714 instructions new in arch12.
4715
0aa37b65
JB
47162017-07-11 John Baldwin <jhb@FreeBSD.org>
4717
4718 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4719 PT_GETFSBASE and PT_GETGSBASE.
4720 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4721 PT_SETGSBASE.
4722
48aeef91
JB
47232017-07-11 John Baldwin <jhb@FreeBSD.org>
4724
4725 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4726 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4727 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4728 those rules.
4729 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4730 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4731 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4732 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4733 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4734 * features/i386/amd64.xml: Add 64bit-segments.xml.
4735 * features/i386/amd64-avx-avx512.c: Regenerated.
4736 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4737 * features/i386/amd64-avx-mpx.c: Regenerated.
4738 * features/i386/amd64-avx.c: Regenerated.
4739 * features/i386/amd64-mpx.c: Regenerated.
4740 * features/i386/amd64.c: Regenerated.
4741 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4742 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4743 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4744 * regformats/i386/amd64-avx.dat: Regenerated.
4745 * regformats/i386/amd64-mpx.dat: Regenerated.
4746 * regformats/i386/amd64.dat: Regenerated.
4747
77c501bc
YQ
47482017-07-10 Yao Qi <yao.qi@linaro.org>
4749
4750 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4751 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4752
6dc8d757
AK
47532017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4754
4755 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4756 unsetenv.
4757 * gnulib/aclocal.m4: Regenerate.
4758 * gnulib/config.in: Regenerate.
4759 * gnulib/configure: Regenerate.
4760 * gnulib/import/Makefile.am: Regenerate.
4761 * gnulib/import/Makefile.in: Regenerate.
4762 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4763 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4764 * gnulib/import/m4/environ.m4: New file.
4765 * gnulib/import/m4/setenv.m4: New file.
4766 * gnulib/import/setenv.c: New file.
4767 * gnulib/import/unsetenv.c: New file.
4768
266934d1
SM
47692017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4770
4771 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4772 address when op is DW_OP_addr.
4773
03278692
TT
47742017-07-09 Tom Tromey <tom@tromey.com>
4775
4776 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4777 check and apply to outer type.
4778
4b654465
JB
47792017-07-07 John Baldwin <jhb@FreeBSD.org>
4780
4781 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4782 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4783 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4784 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4785
2af9fc44
JB
47862017-07-07 John Baldwin <jhb@FreeBSD.org>
4787
4788 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4789
382b69bb
JB
47902017-07-07 John Baldwin <jhb@FreeBSD.org>
4791
4792 * corelow.c (get_core_siginfo): Remove.
4793 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4794 instead of get_core_siginfo.
4795 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4796 * gdbarch.h: Re-generate.
4797 * gdbarch.c: Re-generate.
4798 * linux-tdep.c (linux_core_xfer_siginfo): New.
4799 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4800
6e5eab33
JB
48012017-07-07 John Baldwin <jhb@FreeBSD.org>
4802
4803 * corelow.c (thread_section_name): Move to ...
4804 * gdbcore.h (thread_section_name): ... here.
4805
929edea9
JB
48062017-07-07 John Baldwin <jhb@FreeBSD.org>
4807
4808 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4809 (struct siginfo32): New.
4810 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4811 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4812 via ptrace(PT_LWPINFO).
4813
762c974a
JB
48142017-07-07 John Baldwin <jhb@FreeBSD.org>
4815
4816 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4817 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4818 (fbsd_get_siginfo_type): New.
4819 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4820 (_initialize_fbsd_tdep): New.
4821
33c5cd75
DB
48222017-07-06 David Blaikie <dblaikie@gmail.com>
4823
4824 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4825 a singular dwo_unit*) to support multiple CUs in the same way that
4826 multiple TUs are supported.
4827 (create_cus_hash_table): Replace create_dwo_cu with a function for
4828 parsing multiple CUs from a DWO file.
4829 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4830 create_dwo_cu.
4831 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4832 htab_find, rather than comparing the signature to a singleton CU in
4833 the dwo_file.
4834
8455d262
PA
48352017-07-06 Pedro Alves <palves@redhat.com>
4836
4837 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4838
4da3eb35
PA
48392017-07-04 Pedro Alves <palves@redhat.com>
4840
4841 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4842 * gdbtypes.h (TYPE_STATIC): Delete.
4843 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4844 is_synchronized, is_native>: Delete.
4845 <dummy>: Bump.
4846 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4847 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4848 (TYPE_FN_FIELD_ABSTRACT): Delete.
4849
5bfd255c
SM
48502017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4851
4852 * buffer.h (buffer_finish): Fix spelling mistakes.
4853
25c54127
EZ
48542017-07-01 Eli Zaretskii <eliz@gnu.org>
4855
4856 * .dir-locals.el: Automatically switch to C-style comments in
4857 versions of Emacs that support the feature.
4858
dc4bde35
SDJ
48592017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4860 Pedro Alves <palves@redhat.com>
4861
4862 PR cli/21688
4863 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4864 (process_next_line): New variable 'inline_cmd'.
4865 Adjust 'if' clauses for "python", "compile" and "guile" to use
4866 'command_name_equals' and check for '!inline_cmd'.
4867
51ed89aa
SDJ
48682017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4869
4870 PR cli/21688
4871 * cli/cli-script.c (command_name_equals_not_inline): New function.
4872 (process_next_line): Adjust 'if' clauses for "python", "compile"
4873 and "guile" to use command_name_equals_not_inline.
4874
eb17d413
PA
48752017-06-29 Pedro Alves <palves@redhat.com>
4876
4877 * completer.c (expression_completer): Call
4878 linespec_location_completer instead of location_completer.
4879
195bcdd5
PA
48802017-06-29 Pedro Alves <palves@redhat.com>
4881
4882 * completer.c (expression_completer): Remove code that recomputes
4883 'text' from 'word'.
4884
adc764e7
YQ
48852017-06-29 Yao Qi <yao.qi@linaro.org>
4886
4887 * regformats/regdat.sh: Generate code with
4888 "ifndef IN_PROCESS_AGENT".
4889
6e75794e
PA
48902017-06-28 Pedro Alves <palves@redhat.com>
4891
4892 * command.h: Include "common/scoped_restore.h".
4893
bc491f2e
YQ
48942017-06-28 Yao Qi <yao.qi@linaro.org>
4895
4896 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4897 instead of obstack_grow.
4898
41664b45
DG
48992017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4900
4901 PR gdb/21337
4902 * symfile.c (reread_symbols): Call objfiles_changed just before
4903 read_symbols.
4904
6da67eb1
PA
49052017-06-27 Pedro Alves <palves@redhat.com>
4906
4907 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4908 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4909 (completion_list_add_symbol, completion_list_add_msymbol):
4910 ... these new functions.
4911 (add_symtab_completions)
4912 (default_make_symbol_completion_list_break_on_1): Adjust.
4913
23732b1e
PA
49142017-06-27 Pedro Alves <palves@redhat.com>
4915
4916 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4917 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4918 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4919 dtor.
4920 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4921 'storage_obstack' field an auto_obstack. In-class initialize all
4922 non-bitfield fields. Make minsyms_read bool.
4923 * symfile.c (read_symbols): Adjust.
4924
a4d1e79a
AH
49252017-06-27 Alan Hayward <alan.hayward@arm.com>
4926
4927 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4928 (gdbsim_store_register): Likewise.
4929
8268c778
PA
49302017-06-27 Pedro Alves <palves@redhat.com>
4931
4932 * c-exp.y (name_obstack): Now an auto_obstack.
4933 (yylex): Use auto_obstack::clear.
4934 (c_parse): Use auto_obstack::clear instead of reinitializing and
4935 freeing the obstack.
4936 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4937 * d-exp.y (name_obstack): Now an auto_obstack.
4938 (yylex): Use auto_obstack::clear.
4939 (d_parse): Use auto_obstack::clear instead of reinitializing and
4940 freeing the obstack.
4941 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4942 auto_obstack.
4943 * dwarf2read.c (create_addrmap_from_index)
4944 (dwarf2_build_psymtabs_hard)
4945 (update_enumeration_type_from_children): Likewise.
4946 * gdb_obstack.h (auto_obstack): New type.
4947 * go-exp.y (name_obstack): Now an auto_obstack.
4948 (build_packaged_name): Use auto_obstack::clear.
4949 (go_parse): Use auto_obstack::clear instead of reinitializing and
4950 freeing the obstack.
4951 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4952 auto_obstack.
4953 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4954 * rust-exp.y (work_obstack): Now an auto_obstack.
4955 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4956 reinitializing and freeing the obstack.
4957 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4958 (host_char_to_target): Use auto_obstack.
4959 * utils.h (make_cleanup_obstack_free): Delete declaration.
4960 * valprint.c (generic_emit_char, generic_printstr): Use
4961 auto_obstack.
4962
db665f42
SM
49632017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4964
4965 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4966 thread.
4967 (darwin_init_thread_list): Don't update dummy thread.
4968 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4969
873c0814
SM
49702017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4971
4972 * record-full.c (netorder16): Remove.
4973
8b5a7a6e
SM
49742017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4975
4976 * common/diagnostics.h: Define macros for GCC.
4977 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4978 * common/vec.h: Include diagnostics.h.
4979 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4980 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4981 warning.
4982
d1435379
SM
49832017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4984
4985 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4986 New macro.
4987 * ada-lex.l: Ignore deprecated register warnings.
4988
cc75e0fd
SM
49892017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4990
4991 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4992 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4993
07809eaf
SM
49942017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4995
4996 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4997 its own line.
4998
f076f034
SM
49992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5000
5001 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5002
0dd5cbc5
AH
50032017-06-23 Alan Hayward <alan.hayward@arm.com>
5004
5005 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5006 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5007 (xtensa_register_read_masked): Likewise.
5008
d4c6ce5b
SDJ
50092017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5010
5011 * common/environ.c (gdb_environ::unset): Update comment.
5012
16892a03
AH
50132017-06-22 Alan Hayward <alan.hayward@arm.com>
5014
5015 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5016 registers.
5017
d7dcbefc
AH
50182017-06-22 Alan Hayward <alan.hayward@arm.com>
5019
5020 * record-full.c (record_full_exec_insn): Use byte_vector.
5021
b30ff123
YQ
50222017-06-22 Yao Qi <yao.qi@linaro.org>
5023
5024 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5025 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5026
4fa847d7
AH
50272017-06-22 Alan Hayward <alan.hayward@arm.com>
5028
5029 * remote.c (cached_reg): Move from here...
5030 * regcache.h (cached_reg): ...to here.
5031 * python/py-unwind.c (struct reg_info): Remove.
5032 (cached_frame_info): Use cached_reg_t.
5033 (pyuw_prev_register): Likewise.
5034 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5035 (pyuw_dealloc_cache): Free all registers.
5036
f4906a9a
PA
50372017-06-22 Pedro Alves <palves@redhat.com>
5038 Simon Marchi <simon.marchi@ericsson.com>
5039
5040 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5041 warning.
5042 * common/diagnostics.h: New file.
5043
b45a1208
PA
50442017-06-22 Pedro Alves <palves@redhat.com>
5045
5046 * common/agent.h: Add include guards.
5047
e4da2c61
SM
50482017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5049
5050 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5051 talk about addressable units instead of bytes.
5052
96160d60
SDJ
50532017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5054
5055 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5056 of '::const_iterator'.
5057
9a6c7d9c
SDJ
50582017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5059
5060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5061 'unittests/environ-selftests.c'.
5062 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5063 * charset.c (find_charset_names): Declare object 'iconv_env'.
5064 Update code to use 'iconv_env' object. Remove call to
5065 'free_environ'.
5066 * common/environ.c: Include <utility>.
5067 (make_environ): Delete function.
5068 (free_environ): Delete function.
5069 (gdb_environ::clear): New function.
5070 (gdb_environ::operator=): New function.
5071 (gdb_environ::get): Likewise.
5072 (environ_vector): Delete function.
5073 (set_in_environ): Delete function.
5074 (gdb_environ::set): New function.
5075 (unset_in_environ): Delete function.
5076 (gdb_environ::unset): New function.
5077 (gdb_environ::envp): Likewise.
5078 * common/environ.h: Include <vector>.
5079 (struct gdb_environ): Delete; transform into...
5080 (class gdb_environ): ... this class.
5081 (free_environ): Delete prototype.
5082 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5083 environ_vector): Likewise.
5084 * infcmd.c (run_command_1): Update code to call
5085 'envp' from 'gdb_environ' class.
5086 (environment_info): Update code to call methods from 'gdb_environ'
5087 class.
5088 (unset_environment_command): Likewise.
5089 (path_info): Likewise.
5090 (path_command): Likewise.
5091 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5092 (inferior::inferior): Initialize 'environment' using the host's
5093 information.
5094 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5095 Include "environ.h".
5096 (class inferior) <environment>: Change type from 'struct
5097 gdb_environ' to 'gdb_environ'.
5098 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5099 methods from 'gdb_environ' class.
5100 * solib.c (solib_find_1): Likewise
5101 * unittests/environ-selftests.c: New file.
5102
75c554cf
YQ
51032017-06-20 Yao Qi <yao.qi@linaro.org>
5104
5105 * features/i386/i386-linux.xml: Exchange the order of including
5106 32bit-linux.xml and 32bit-sse.xml.
5107 * features/i386/i386-linux.c: Regenerated.
5108
72ddacb7
YQ
51092017-06-20 Yao Qi <yao.qi@linaro.org>
5110
5111 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5112 Delete copy ctor and assignment operator.
5113 (tdesc_type): Likewise.
5114 (tdesc_feature): Likewise.
5115 (tdesc_free_reg): Remove.
5116 (tdesc_create_reg): Use new.
5117 (tdesc_free_type): Remove.
5118 (tdesc_create_vector): Use new.
5119 (tdesc_create_union): Likewise.
5120 (tdesc_create_flags): Likewise.
5121 (tdesc_create_enum): Likewise.
5122 (tdesc_free_feature): Delete.
5123 (free_target_description): Use delete.
5124
325c9fd4
JB
51252017-06-19 John Baldwin <jhb@FreeBSD.org>
5126
5127 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5128 registers.
5129
16b7a719
PA
51302017-06-19 Pedro Alves <palves@redhat.com>
5131
5132 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5133 after gdb::unlinker.
5134
1c8e01c9
SDJ
51352017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5136
5137 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5138 gdb_environ to access an environment variable.
5139
ffce45d2
TP
51402017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5141
5142 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5143 gdb_byte*.
5144
1d4fbac9
SM
51452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5146
5147 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5148
8465943a
SM
51492017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5150
5151 * configure: Re-generate.
5152 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5153
3e019bdc
SM
51542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5155
5156 * configure: Re-generate.
5157 * warning.m4: Pass -Werror to compiler when checking for
5158 supported warning flags.
5159
cf0dd6f0
SM
51602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5161
5162 * Makefile.in (COMPILE.pre): Add "-x c++".
5163
6f98355c
YQ
51642017-06-16 Alan Hayward <alan.hayward@arm.com>
5165 Pedro Alves <palves@redhat.com>
5166 Yao Qi <yao.qi@linaro.org>
5167
5168 * defs.h (RequireLongest): New.
5169 (extract_integer): Declare function template.
5170 (extract_signed_integer): Remove the declaration, but define it
5171 static inline.
5172 (extract_unsigned_integer): Likewise.
5173 (store_integer): Declare function template.
5174 (store_signed_integer): Remove the declaration, but define it
5175 static inline.
5176 (store_unsigned_integer): Likewise.
5177 * findvar.c (extract_integer): New function template.
5178 (extract_signed_integer): Remove.
5179 (extract_unsigned_integer): Remove.
5180 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5181 instantiations.
5182 (store_integer): New function template.
5183 (store_signed_integer): Remove.
5184 (store_unsigned_integer): Remove.
5185 (store_integer): Explicit instantiations.
5186 * regcache.c (regcache_raw_read_signed): Update.
5187 (regcache::raw_read): New function.
5188 (regcache::raw_read_signed): Remove.
5189 (regcache::raw_read_unsigned): Remove.
5190 (regcache_raw_read_unsigned): Update.
5191 (regcache_raw_write_unsigned): Update.
5192 (regcache::raw_write_signed): Remove.
5193 (regcache::raw_write): New function.
5194 (regcache_cooked_read_signed): Update.
5195 (regcache::raw_write_unsigned): Remove.
5196 (regcache::cooked_read_signed): Remove.
5197 (regcache_cooked_read_unsigned): Update.
5198 (regcache::cooked_read_unsigned): Remove.
5199 (regcache_cooked_write_signed): Update.
5200 (regcache_cooked_write_unsigned): Update.
5201 * regcache.h (regcache) <raw_read_signed>: Remove.
5202 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5203 <raw_read, raw_write>: New.
5204 <cooked_read_signed, cooked_write_signed>: Remove.
5205 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5206 <cooked_read, cooked_write>: New.
5207 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5208 (sh64_pseudo_register_write): Update.
5209
a87dc45a
AK
52102017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5211
5212 * arc-tdep.c (arc_disassembler_options): New variable.
5213 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5214 of default_print_insn.
5215 (arc_delayed_print_insn): Set info->section when needed,
5216 use default_print_insn to retrieve a disassembler.
5217
45159d6a
SDJ
52182017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5219
5220 PR gdb/21574
5221 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5222 to mention $SHELL and startup-with-shell.
5223
b46c4cf0
MF
52242017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5225
5226 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5227
6394c606
YQ
52282017-06-14 Yao Qi <yao.qi@linaro.org>
5229
5230 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5231 default_print_insn instead of print_insn_aarch64.
5232 * arm-tdep.c (gdb_print_insn_arm): Call
5233 default_print_insn instead of print_insn_big_arm
5234 and print_insn_little_arm.
5235 * i386-tdep.c (i386_print_insn): Call default_print_insn
5236 instead of print_insn_i386.
5237 * ia64-tdep.c (ia64_print_insn): Call
5238 default_print_insn instead of print_insn_ia64.
5239 * mips-tdep.c (gdb_print_insn_mips): Call
5240 default_print_insn instead of print_insn_big_mips
5241 and print_insn_little_mips.
5242 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5243 instead of print_insn_spu.
5244
d5722aa2
PA
52452017-06-14 Pedro Alves <palves@redhat.com>
5246
5247 * ada-lang.c: Include "common/byte-vector.h".
5248 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5249 * charset.c (wchar_iterator::iterate): Resize the vector instead
5250 of reserving it.
5251 * common/byte-vector.h: Include "common/def-vector.h".
5252 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5253 * cli/cli-dump.c: Include "common/byte-vector.h".
5254 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5255 * common/byte-vector.h: New file.
5256 * common/def-vector.h: New file.
5257 * common/default-init-alloc.h: New file.
5258 * dwarf2loc.c: Include "common/byte-vector.h".
5259 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5260 instead of reserving it.
5261 * dwarf2read.c: Include "common/byte-vector.h".
5262 (data_buf::m_vec): Now a gdb::byte_vector.
5263 * gdb_regex.c: Include "common/def-vector.h".
5264 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5265 * mi/mi-main.c: Include "common/byte-vector.h".
5266 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5267 * printcmd.c: Include "common/byte-vector.h".
5268 (print_scalar_formatted): Use gdb::byte_vector.
5269 * valprint.c: Include "common/byte-vector.h".
5270 (maybe_negate_by_bytes, print_decimal_chars): Use
5271 gdb::byte_vector.
5272
01ec7a27
SM
52732017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5274
5275 * darwin-nat.c: Include "nat/fork-inferior.h".
5276
848d9074
SM
52772017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5278
5279 * configure.nat: Factor out Darwin bits that are not
5280 architecture-specific. Add fork-inferior.o.
5281
3b912944
SM
52822017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5283
5284 * configure.nat: Factor out AIX bits that are not
5285 architecture-specific. Add fork-inferior.o.
5286
55acdf22
AA
52872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5288
5289 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5290 (read_pieced_value, write_pieced_value): ...here. Reduce to
5291 wrappers that just call rw_pieced_value.
5292
f65e2044
AA
52932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5294
5295 * dwarf2loc.c (write_pieced_value): When writing the data for a
5296 memory piece, use write_memory_with_notification instead of
5297 write_memory.
5298
23f945bf
AA
52992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5300
5301 * valops.c (read_value_memory): Change embedded_offset to
5302 represent a bit offset instead of a byte offset.
5303 * value.h (read_value_memory): Adjust comment.
5304
f236533e
AA
53052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5306
5307 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5308 dest_offset_bits and source_offset_bits.
5309 (write_pieced_value): Likewise.
5310
65d84b76
AA
53112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5312
5313 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5314 given by DW_OP_bit_piece.
5315 (write_pieced_value): Likewise.
5316
242d31ab
AA
53172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5318
5319 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5320 some other preparations to the places where sufficient information
5321 is available.
5322 (write_pieced_value): Likewise.
5323
03c8af18
AA
53242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5325
5326 * dwarf2loc.c (bits_to_bytes): New function.
5327 (read_pieced_value): Fix offset calculations for register pieces
5328 on big-endian targets.
5329 (write_pieced_value): Likewise.
5330
840989c1
AA
53312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5332
5333 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5334 (write_pieced_value): Likewise.
5335
359b19bb
AA
53362017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5337
5338 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5339 transfer the source value's least significant bits, instead of its
5340 lowest-addressed ones. Rename type_len to max_offset.
5341 (read_pieced_value): Mirror above changes to write_pieced_value as
5342 applicable.
5343
07c9ca3b
AA
53442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5345
5346 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5347 truncate full bytes from dest_offset_bits before using it as an
5348 offset into the buffer.
5349
f1cc9874
AA
53502017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5351
5352 * dwarf2loc.c (write_pieced_value): Include transfer size in
5353 byte-wise check.
5354
cdaac320
AA
53552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5356
5357 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5358 calculation of this_size.
5359
af547a96
AA
53602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5361
5362 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5363 when targeting a bit-field.
5364 (write_pieced_value): Likewise.
5365
ddd7882a
AA
53662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5367
5368 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5369 (allocate_piece_closure): Drop addr_size parameter.
5370 (dwarf2_evaluate_loc_desc_full): Adjust call to
5371 allocate_piece_closure.
5372
e9352324
AA
53732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5374
5375 PR gdb/21226
5376 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5377 the LSB end, independent of endianness.
5378
d5d1163e
AA
53792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5380
5381 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5382 size capping.
5383
032bb6ea
YQ
53842017-06-13 Yao Qi <yao.qi@linaro.org>
5385
5386 * mips-linux-nat.c: Move include features/mips*-linux.c to
5387 mips-linux-tdep.c.
5388 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5389 to mips-linux-tdep.c.
5390 * mips-linux-tdep.c: Include features/mips*-linux.c
5391 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5392 functions.
5393 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5394 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5395 (tdesc_mips64_dsp_linux): Declare.
5396
f12f6bad
TT
53972017-06-12 Tom Tromey <tom@tromey.com>
5398
5399 * valprint.h (val_print_type_code_int): Remove.
5400 * valprint.c (generic_val_print_int): Always call
5401 val_print_scalar_formatted.
5402 (val_print_type_code_int): Remove.
5403 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5404 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5405 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5406 * ada-valprint.c (ada_val_print_num): Use
5407 val_print_scalar_formatted.
5408
d9109c80
TT
54092017-06-12 Tom Tromey <tom@tromey.com>
5410
5411 * printcmd.c (print_scalar_formatted): Unify the two switches.
5412 Don't convert scalars to LONGEST.
5413
4ac0cb1c
TT
54142017-06-12 Tom Tromey <tom@tromey.com>
5415
5416 PR exp/16225:
5417 * valprint.h (print_decimal_chars): Update.
5418 * valprint.c (maybe_negate_by_bytes): New function.
5419 (print_decimal_chars): Add "is_signed" argument.
5420 * printcmd.c (print_scalar_formatted): Update.
5421
30a25466
TT
54222017-06-12 Tom Tromey <tom@tromey.com>
5423
5424 PR exp/16225:
5425 * valprint.h (print_binary_chars, print_hex_chars): Update.
5426 * valprint.c (val_print_type_code_int): Update.
5427 (print_binary_chars): Add "zero_pad" argument.
5428 (emit_octal_digit): New function.
5429 (print_octal_chars): Don't zero-pad.
5430 (print_decimal_chars): Likewise.
5431 (print_hex_chars): Add "zero_pad" argument.
5432 * sh64-tdep.c (sh64_do_fp_register): Update.
5433 * regcache.c (regcache::dump): Update.
5434 * printcmd.c (print_scalar_formatted): Update.
5435 * infcmd.c (default_print_one_register_info): Update.
5436
b3464d03
PA
54372017-06-12 Pedro Alves <palves@redhat.com>
5438 Alan Hayward <alan.hayward@arm.com>
5439
5440 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5441 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5442 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5443 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5444 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5445
4b76cda9
PA
54462017-06-12 Pedro Alves <palves@redhat.com>
5447
5448 * dwarf2read.c (mapped_symtab::data): Now a vector of
5449 symtab_index_entry instead of vector of
5450 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5451 whether an element's name is NULL instead of checking whether the
5452 element itself is NULL.
5453 (find_slot): Change return type. Adjust.
5454 (hash_expand, , add_index_entry, uniquify_cu_indices)
5455 (write_hash_table): Adjust.
5456
e8f8bcb3
PA
54572017-06-12 Pedro Alves <palves@redhat.com>
5458
5459 * dwarf2read.c (recursively_count_psymbols): New function.
5460 (write_psymtabs_to_index): Call it to compute number of psyms and
5461 pass estimate size of psyms_seen to unordered_set's ctor.
5462
70a1152b
PA
54632017-06-12 Pedro Alves <palves@redhat.com>
5464
5465 * dwarf2read.c (write_hash_table): Check if key already exists
5466 before emplacing.
5467
c2f134ac
PA
54682017-06-12 Pedro Alves <palves@redhat.com>
5469
5470 * dwarf2read.c (data_buf::append_space): Rename to...
5471 (data_buf::grow): ... this, and make private. Adjust all callers.
5472 (data_buf::append_uint): New method.
5473 (add_address_entry, write_one_signatured_type)
5474 (write_psymtabs_to_index): Use it.
5475
a81e6d4d
PA
54762017-06-12 Pedro Alves <palves@redhat.com>
5477
5478 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5479 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5480 (data_buf::file_write): Call ::fwrite directly.
5481
6fd931f2
PA
54822017-06-12 Pedro Alves <palves@redhat.com>
5483
5484 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5485 std::vector::erase.
5486
bc8f2430
JK
54872017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5488
5489 Code cleanup: C++ify .gdb_index producer.
5490 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5491 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5492 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5493 (create_strtab, add_string): Remove.
5494 (file_write, data_buf): New.
5495 (struct symtab_index_entry): Use std::vector for cu_indices.
5496 (struct mapped_symtab): Use std::vector for data.
5497 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5498 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5499 Remove.
5500 (find_slot): Change return type. Update it to the new data structures.
5501 (hash_expand, add_index_entry): Update it to the new data structures.
5502 (offset_type_compare): Remove.
5503 (uniquify_cu_indices): Update it to the new data structures.
5504 (c_str_view, c_str_view_hasher, vector_hasher): New.
5505 (add_indices_to_cpool): Remove.
5506 (write_hash_table): Update it to the new data structures.
5507 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5508 (eq_psymtab_cu_index): Remove.
5509 (psym_index_map): New typedef.
5510 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5511 reference and std::unordered_map for cu_index_htab.
5512 (add_address_entry, add_address_entry_worker, write_address_map)
5513 (write_psymbols): Update it to the new data structures.
5514 (write_obstack): Remove.
5515 (struct signatured_type_index_data): Change types_list to a data_buf
5516 reference and psyms_seen to a std::unordered_set reference.
5517 (write_one_signatured_type, recursively_write_psymbols)
5518 (write_psymtabs_to_index): Update it to the new data structures.
5519
c4dcb155
SM
55202017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5521
5522 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5523 separate-debug-file commands.
5524 * symfile.h (separate_debug_file_debug): New global.
5525 * symfile.c (separate_debug_file_debug): New global.
5526 (separate_debug_file_exists, find_separate_debug_file): Add
5527 debug output.
5528 (_initialize_symfile): Add "set debug separate-debug-file"
5529 command.
5530 * build-id.c (build_id_to_debug_bfd,
5531 find_separate_debug_file_by_buildid): Add debug output.
5532
6d45d4b4
SM
55332017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5534
5535 * gdbarch.sh (displaced_step_free_closure): Remove.
5536 * gdbarch.h, gdbarch.c: Re-generate.
5537 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5538 displaced_step_free_closure.
5539 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5540 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5541 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5542 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5543 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5544 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5545 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5546 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5547 * infrun.c (displaced_step_clear): Call xfree instead of
5548 gdbarch_displaced_step_free_closure.
5549
2f91880f
SDJ
55502017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5551
5552 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5553 NULL".
5554
b8b6e72f
AH
55552017-06-08 Alan Hayward <alan.hayward@arm.com>
5556
5557 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5558 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5559 (mn10300_push_dummy_call): Likewise.
5560
5369082e
AH
55612017-06-08 Alan Hayward <alan.hayward@arm.com>
5562
5563 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5564
ff4ca5ac
AH
55652017-06-08 Alan Hayward <alan.hayward@arm.com>
5566
5567 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5568
aefd8b33
SDJ
55692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5570
5571 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5572 able to start inferiors using a shell.
5573 (New remote packets): Announce new packet "QStartupWithShell".
5574 * remote.c: Add PACKET_QStartupWithShell.
5575 (extended_remote_create_inferior): Handle new
5576 PACKET_QStartupWithShell.
5577 (remote_protocol_features) <QStartupWithShell>: New entry for
5578 PACKET_QStartupWithShell.
5579 (_initialize_remote): Call "add_packet_config_cmd" for
5580 QStartupShell.
5581
2090129c
SDJ
55822017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5583 Pedro Alves <palves@redhat.com>
5584
5585 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5586 and "nat/fork-inferior.h".
5587 * common/common-inferior.h: New file, with contents from
5588 "gdb/inferior.h".
5589 * commom/common-utils.c: Include "common-utils.h".
5590 (stringify_argv): New function.
5591 * common/common-utils.h (stringify_argv): New prototype.
5592 * configure.nat: Add "fork-inferior.o" as a dependency for
5593 "*linux*", "fbsd*" and "nbsd*" hosts.
5594 * corefile.c (get_exec_file): Update comment.
5595 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5596 instead of "startup_inferior".
5597 (darwin_create_inferior): Call "add_thread_silent" after
5598 "fork_inferior".
5599 * fork-child.c: Cleanup unnecessary includes.
5600 (SHELL_FILE): Move to "common/common-fork-child.c".
5601 (environ): Likewise.
5602 (exec_wrapper): Initialize.
5603 (get_exec_wrapper): New function.
5604 (breakup_args): Move to "common/common-fork-child.c"; rename to
5605 "breakup_args_for_exec".
5606 (escape_bang_in_quoted_argument): Move to
5607 "common/common-fork-child.c".
5608 (saved_ui): New variable.
5609 (prefork_hook): New function.
5610 (postfork_hook): Likewise.
5611 (postfork_child_hook): Likewise.
5612 (gdb_startup_inferior): Likewise.
5613 (fork_inferior): Move to "common/common-fork-child.c". Update
5614 function to support gdbserver.
5615 (startup_inferior): Likewise.
5616 * gdbcore.h (get_exec_file): Remove declaration.
5617 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5618 instead of "startup_inferior". Call "add_thread_silent" after
5619 "fork_inferior".
5620 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5621 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5622 instead of "startup_inferior". Call "add_thread_silent" after
5623 "fork_inferior".
5624 * inferior.h: Include "common-inferior.h".
5625 (trace_start_error): Move to "common/common-utils.h".
5626 (trace_start_error_with_name): Likewise.
5627 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5628 (startup_inferior): Likewise.
5629 (gdb_startup_inferior): New prototype.
5630 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5631 * nat/fork-inferior.h: New file.
5632 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5633 instead of "startup_inferior". Call "add_thread_silent" after
5634 "fork_inferior".
5635 * target.h (target_terminal_init): Move prototype to
5636 "target/target.h".
5637 (target_terminal_inferior): Likewise.
5638 (target_terminal_ours): Likewise.
5639 * target/target.h (target_terminal_init): New prototype, moved
5640 from "target.h".
5641 (target_terminal_inferior): Likewise.
5642 (target_terminal_ours): Likewise.
5643 * utils.c (gdb_flush_out_err): New function.
5644
043a4934
SDJ
56452017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5646
5647 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5648 * common/common-gdbthread.h: New file, with parts from
5649 "gdb/gdbthread.h".
5650 * gdbthread.h: Include "common-gdbthread.h".
5651 (switch_to_thread): Moved to "common/common-gdbthread.h".
5652
15652511
SDJ
56532017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5654
5655 * Makefile.in (SFILES): Add "common/job-control.c".
5656 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5657 (COMMON_OBS): Add "job-control.o".
5658 * common/job-control.c: New file, with contents from
5659 "gdb/inflow.c".
5660 * common/job-control.h: New file, with contents from "terminal.h".
5661 * fork-child.c: Include "job-control.h".
5662 * inflow.c: Include "job-control.h".
5663 (gdb_setpgid): Move to "common/common-inflow.c".
5664 (_initialize_inflow): Move setting of "job_control" to
5665 "handle_job_control".
5666 * terminal.h (job_control): Moved to "common/common-terminal.h".
5667 (gdb_setpgid): Likewise.
5668 * top.c: Include "job_control.h".
5669 * utils.c: Likewise.
5670 (job_control): Moved to "job-control.c".
5671
2d7cc5c7
PA
56722017-06-07 Pedro Alves <palves@redhat.com>
5673
5674 * Makefile.in (SFILES): Add gdb_regex.c.
5675 (COMMON_OBS): Add gdb_regex.o.
5676 * ada-lang.c (ada_add_standard_exceptions)
5677 (ada_add_exceptions_from_frame, name_matches_regex)
5678 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5679 parameter type to compiled_regex. Adjust.
5680 (ada_exceptions_list): Use compiled_regex.
5681 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5682 std::unique_ptr<compiled_regex>.
5683 (exception_catchpoint::~exception_catchpoint): Remove regfree
5684 call.
5685 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5686 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5687 * breakpoint.c (solib_catchpoint::compiled): Now a
5688 std::unique_ptr<compiled_regex>.
5689 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5690 (check_status_catch_solib): Adjust to use compiled_regex.
5691 (add_solib_catchpoint): Adjust to use compiled_regex.
5692 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5693 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5694 compiled_regex reference. Adjust to use it.
5695 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5696 declaration. Include "gdb_regex.h".
5697 (apropos_cmd): Change regex parameter to compiled_regex reference.
5698 * gdb_regex.c: New file.
5699 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5700 declarations.
5701 (class compiled_regex): New.
5702 * linux-tdep.c: Include "common/gdb_optional.h".
5703 (struct mapping_regexes): New, factored out from
5704 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5705 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5706 gdb::optional and remove cleanups. Adjust to compiled_regex.
5707 * probe.c: Include "common/gdb_optional.h".
5708 (collect_probes): Use compiled_regex and gdb::optional and remove
5709 cleanups.
5710 * skip.c: Include "common/gdb_optional.h".
5711 (skiplist_entry::compiled_function_regexp): Now a
5712 gdb::optional<compiled_regex>.
5713 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5714 (free_skiplist_entry): Remove regfree call.
5715 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5716 compiled_regex and gdb::optional.
5717 * symtab.c: Include "common/gdb_optional.h".
5718 (search_symbols): Use compiled_regex and gdb::optional.
5719 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5720 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5721 to gdb_regex.c.
5722
50d6adef
AH
57232017-06-07 Alan Hayward <alan.hayward@arm.com>
5724
5725 * regcache.c (regcache::save): Avoid buffer use.
5726 (regcache::dump): Likewise.
5727
4a8a33c8
AH
57282017-06-07 Alan Hayward <alan.hayward@arm.com>
5729
5730 * sh-tdep.c (sh_pseudo_register_read): Remove
5731 MAX_REGISTER_SIZE.
5732 (sh_pseudo_register_write): Likewise.
5733 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5734 (sh64_pseudo_register_write): Likewise
5735
d1be909e
AH
57362017-06-07 Alan Hayward <alan.hayward@arm.com>
5737
5738 * aarch64-tdep.c (aarch64_store_return_value): Use
5739 V_REGISTER_SIZE.
5740 (aarch64_pseudo_read_value): Likewise.
5741 (aarch64_pseudo_write): Likewise.
5742
f4a65042
YQ
57432017-06-06 Yao Qi <yao.qi@linaro.org>
5744
5745 * regformats/regdef.h (set_register_cache): Remove the
5746 declaration.
5747
9f7fb0aa
AH
57482017-06-06 Alan Hayward <alan.hayward@arm.com>
5749
5750 * frame.c (frame_unwind_register_signed): Use
5751 frame_unwind_register_value.
5752
e1e01040
PA
57532017-06-06 Pedro Alves <palves@redhat.com>
5754
5755 PR breakpoints/21553
5756 * breakpoint.c (create_breakpoints_sal_default)
5757 (init_breakpoint_sal, create_breakpoint_sal): Use
5758 gdb::unique_xmalloc_ptr for string parameters.
5759 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5760 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5761 (base_breakpoint_create_breakpoints_sal)
5762 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5763 (strace_marker_create_breakpoints_sal)
5764 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5765 string parameters.
5766 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5767 gdb::unique_xmalloc_ptr for string parameters.
5768 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5769 parameters.
5770
fbe654c8
AH
57712017-06-06 Alan Hayward <alan.hayward@arm.com>
5772
5773 * alpha-tdep.c (alpha_register_to_value): Use
5774 get_frame_register_value.
5775 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5776
ae0d01d6
AH
57772017-06-06 Alan Hayward <alan.hayward@arm.com>
5778
5779 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5780 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5781 (ia64_value_to_register): Likewise.
5782 (ia64_extract_return_value): Likewise.
5783 (ia64_store_return_value): Likewise.
5784 (ia64_push_dummy_call): Likewise.
5785
49cf576c
JB
57862017-06-04 Joel Brobecker <brobecker@adacore.com>
5787
5788 GDB 8.0 released.
5789
26b6a6ab
SM
57902017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5793
22827c51
SM
57942017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5797 parameter.
5798 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5799
0e05cf3a
SM
58002017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5801
5802 * event-loop.c (poll_timers): Unallocate timer using delete
5803 instead of xfree.
5804
c1fc2657
SM
58052017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5808 (struct breakpoint) <~breakpoint>: New.
5809 (struct watchpoint): Inherit from breakpoint.
5810 <~watchpoint>: New.
5811 <base>: Remove.
5812 (struct tracepoint): Inherit from breakpoint.
5813 <base>: Remove.
5814 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5815 (struct longjmp_breakpoint): Inherit from breakpoint.
5816 <~longjmp_breakpoint>: New.
5817 <base>: Remove.
5818 (new_breakpoint_from_type): Remove casts.
5819 (watchpoint_in_thread_scope): Remove reference to base field.
5820 (watchpoint_del_at_next_stop): Likewise.
5821 (update_watchpoint): Likewise.
5822 (watchpoint_check): Likewise.
5823 (bpstat_check_watchpoint): Likewise.
5824 (set_longjmp_breakpoint): Likewise.
5825 (struct fork_catchpoint): Inherit from breakpoint.
5826 <base>: Remove.
5827 (struct solib_catchpoint): Inherit from breakpoint.
5828 <~solib_catchpoint>: New.
5829 <base>: Remove.
5830 (dtor_catch_solib): Change to ...
5831 (solib_catchpoint::~solib_catchpoint): ... this.
5832 (breakpoint_hit_catch_solib): Remove reference to base field.
5833 (add_solib_catchpoint): Likewise.
5834 (create_fork_vfork_event_catchpoint): Likewise.
5835 (struct exec_catchpoint): Inherit from breakpoint.
5836 <~exec_catchpoint>: New.
5837 <base>: Remove.
5838 (dtor_catch_exec): Change to ...
5839 (exec_catchpoint::~exec_catchpoint): ... this.
5840 (dtor_watchpoint): Change to ...
5841 (watchpoint::~watchpoint): ... this.
5842 (watch_command_1): Remove reference to base field.
5843 (catch_exec_command_1): Likewise.
5844 (base_breakpoint_dtor): Change to ...
5845 (breakpoint::~breakpoint): ... this.
5846 (base_breakpoint_ops): Remove dtor field value.
5847 (longjmp_bkpt_dtor): Change to ...
5848 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5849 (strace_marker_create_breakpoints_sal): Remove reference to base
5850 field.
5851 (delete_breakpoint): Don't manually call breakpoint destructor.
5852 (create_tracepoint_from_upload): Remove reference to base field.
5853 (trace_pass_set_count): Likewise.
5854 (initialize_breakpoint_ops): Don't initialize
5855 momentary_breakpoint_ops, don't set dtors.
5856 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5857 <~ada_catchpoint>: New.
5858 <base>: Remove.
5859 (create_excep_cond_exprs): Remove reference to base field.
5860 (dtor_exception): Change to ...
5861 (ada_catchpoint::~ada_catchpoint): ... this.
5862 (dtor_catch_exception): Remove.
5863 (dtor_catch_exception_unhandled): Remove.
5864 (dtor_catch_assert): Remove.
5865 (create_ada_exception_catchpoint): Remove reference to base
5866 field.
5867 (initialize_ada_catchpoint_ops): Don't set dtors.
5868 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5869 breakpoint.
5870 <~signal_catchpoint>: New.
5871 <base>: Remove.
5872 (signal_catchpoint_dtor): Change to ...
5873 (signal_catchpoint::~signal_catchpoint): ... this.
5874 (create_signal_catchpoint): Remove reference to base field.
5875 (initialize_signal_catchpoint_ops): Don't set dtor.
5876 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5877 from breakpoint.
5878 <~syscall_catchpoint>: New.
5879 <base>: Remove.
5880 (dtor_catch_syscall): Change to ...
5881 (syscall_catchpoint::~syscall_catchpoint): ... this.
5882 (create_syscall_event_catchpoint): Remove reference to base
5883 field.
5884 (initialize_syscall_catchpoint_ops): Don't set dtor.
5885 * break-catch-throw.c (struct exception_catchpoint): Inherit
5886 from breakpoint.
5887 <~exception_catchpoint>: New.
5888 <base>: Remove.
5889 (dtor_exception_catchpoint): Change to ...
5890 (exception_catchpoint::~exception_catchpoint): ... this.
5891 (handle_gnu_v3_exceptions): Remove reference to base field.
5892 (initialize_throw_catchpoint_ops): Don't set dtor.
5893 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5894 field.
5895 * remote.c (remote_get_tracepoint_status): Likewise.
5896 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5897 * tracefile.c (tracefile_fetch_registers): Likewise.
5898 * tracepoint.c (actions_command): Likewise.
5899 (validate_actionline): Likewise.
5900 (tfind_1): Likewise.
5901 (get_traceframe_location): Likewise.
5902 (find_matching_tracepoint_location): Likewise.
5903 (parse_tracepoint_status): Likewise.
5904 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5905
3b0871f4
SM
59062017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * breakpoint.c (struct longjmp_breakpoint): New struct.
5909 (is_tracepoint_type): Change return type to bool.
5910 (is_longjmp_type): New function.
5911 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5912 (set_raw_breakpoint_without_location): Use
5913 new_breakpoint_from_type.
5914 (set_raw_breakpoint): Likewise.
5915
a5e364af
SM
59162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * breakpoint.c (new_breakpoint_from_type): New function.
5919 (create_breakpoint_sal): Use new_breakpoint_from_type and
5920 unique_ptr.
5921 (create_breakpoint): Likewise.
5922
ae3b3f34
SM
59232017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5924
5925 * memattr.c (mem_info_command): Rename to ...
5926 (info_mem_command): ... this.
5927 (mem_enable_command): Rename to ...
5928 (enable_mem_command): ... this.
5929 (mem_disable_command): Rename to ...
5930 (disable_mem_command): ... this.
5931 (mem_delete_command): Rename to ...
5932 (delete_mem_command): ... this.
5933 (_initialize_mem): Adjust function names.
5934
13ace077
MM
59352017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5936
5937 * btrace.c (handle_pt_insn_events): New.
5938 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5939 STATUS. Split into this and ...
5940 (handle_pt_insn_event_flags): ... this.
5941
c56ccc05
MM
59422017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5943
5944 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5945 and struct pt_insn.resynced.
5946 * configure: Regenerated.
5947 * config.in: Regenerated.
5948
08c3f6d2
TW
59492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5950
5951 * btrace.c (ftrace_find_call_by_number): New function.
5952 (ftrace_new_function): Store objects, not pointers.
5953 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5954 ftrace_new_gap, ftrace_update_function,
5955 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5956 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5957 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5958 btrace_ends_with_single_insn, btrace_call_get): Account for
5959 btrace_thread_info::functions now storing objects.
5960 * btrace.h (struct btrace_thread_info): Add constructor.
5961 (struct btrace_thread_info) <functions>: Make std::vector.
5962 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5963 Initialize with default values.
5964 * record-btrace.c (record_btrace_frame_sniffer): Account for
5965 btrace_thread_info::functions now storing objects.
5966
8ffd39f2
TW
59672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5968
5969 * btrace.c: Remove typedef bfun_s.
5970 (ftrace_new_gap): Directly add gaps to the list of gaps.
5971 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5972 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5973 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5974 instead of gdb VEC.
5975
4aeb0dfc
TW
59762017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5977
5978 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5979 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5980 with btrace_thread_info::next_segment and
5981 btrace_thread_info::prev_segment.
5982 * btrace.h: Remove struct btrace_func_link.
5983 (struct btrace_function): Replace pair of function segment pointers
5984 with pair of indices.
5985 * python/py-record-btrace.c (btpy_call_prev_sibling,
5986 btpy_call_next_sibling): Replace references to
5987 btrace_thread_info::segment with btrace_thread_info::next_segment and
5988 btrace_thread_info::prev_segment.
5989 * record-btrace.c (record_btrace_frame_this_id): Use
5990 btrace_find_call_by_number.
5991
eb8f2b9c
TW
59922017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5993
5994 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5995 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5996 btrace_insn_next, btrace_insn_prev): Remove references to
5997 btrace_thread_info::flow.
5998 * btrace.h (struct btrace_function): Remove FLOW.
5999
42bfe59e
TW
60002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6001
6002 * btrace.c (ftrace_find_call_by_number): New function.
6003 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6004 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6005 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6006 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6007 index.
6008 * btrace.h (struct btrace_function): Turn UP into an index.
6009 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6010 as an index.
6011 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6012 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6013 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6014
b54b03bd
TW
60152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6016
6017 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6018 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6019 ftrace_update_function, ftrace_compute_global_level_offset,
6020 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6021 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6022 btrace_insn_end, btrace_is_empty): Remove references to
6023 btrace_thread_info::begin and btrace_thread_info::end.
6024 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6025 (struct btrace_thread_info) <functions>: Adjust comment.
6026 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6027 btrace_thread_info::begin.
6028
8286623c
TW
60292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6030
6031 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6032 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6033 ftrace_update_function): Remove arguments that implicitly were always
6034 BTINFO->END.
6035 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6036 Don't pass BTINFO->END.
6037
a0f1b963
TW
60382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6039
6040 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6041 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6042 btrace_find_insn_by_number): Replace function segment pointer with
6043 index.
6044 (btrace_insn_cmp): Simplify.
6045 * btrace.h: (struct btrace_insn_iterator) Rename index to
6046 insn_index. Replace function segment pointer with index into function
6047 segment vector.
6048 * record-btrace.c (record_btrace_call_history): Replace function
6049 segment pointer use with index.
6050 (record_btrace_frame_sniffer): Retrieve function call segment through
6051 vector.
6052 (record_btrace_set_replay): Remove defunc't safety check.
6053
f158f208
TW
60542017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6055
6056 * btrace.c (btrace_ends_with_single_insn): New function.
6057 (btrace_call_get, btrace_call_number, btrace_call_begin,
6058 btrace_call_end, btrace_call_next, btrace_call_prev,
6059 btrace_find_call_by_number): Use index into call segment vector
6060 instead of pointer.
6061 (btrace_call_cmp): Simplify.
6062 * btrace.h (struct btrace_call_iterator): Replace function call segment
6063 pointer with index into vector.
6064 * record-btrace.c (record_btrace_call_history): Use index instead of
6065 pointer.
6066
521103fd
TW
60672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6068
6069 * btrace.c (btrace_insn_begin, btrace_insn_end,
6070 btrace_find_insn_by_number): Add btinfo to iterator.
6071 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6072
17b89b34
TW
60732017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6074
6075 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6076 and save pointers directly.
6077 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6078 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6079 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6080 changed signature of functions.
6081 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6082 (btrace_fetch): Remove code that adds btrace_function pointers to
6083 vector of btrace_functions.
6084 (btrace_clear): Simplify freeing vector of btrace_functions.
6085
2b51eddc
TW
60862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6087
6088 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6089 Replace VEC_* with std::vector functions.
6090 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6091 (struct btrace_thread_info)<functions>: Change type to std::vector.
6092
db6be0d5
SM
60932017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6094
6095 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6096 "Removed targets and native configurations" up. Merge duplicate
6097 "New commands" sub-sections. Add "New options" sub-sections.
6098
b057297a
AH
60992017-05-26 Alan Hayward <alan.hayward@arm.com>
6100
6101 * defs.h (copy_integer_to_size): New declaration.
6102 * findvar.c (copy_integer_to_size): New function.
6103 (do_cint_test): New selftest function.
6104 (copy_integer_to_size_test): Likewise.
6105 (_initialize_findvar): Likewise.
6106 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6107 (mips_fbsd_collect_reg): Use raw_collect_integer.
6108 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6109 (mips64_fill_gregset): Use raw_collect_integer
6110 (mips64_fill_fpregset): Use raw_supply_integer.
6111 * regcache.c (regcache::raw_supply_integer): New function.
6112 (regcache::raw_collect_integer): Likewise.
6113 * regcache.h: (regcache::raw_supply_integer): New declaration.
6114 (regcache::raw_collect_integer): Likewise.
6115
b77b02a5
YQ
61162017-05-24 Yao Qi <yao.qi@linaro.org>
6117
6118 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6119 (COMMON_OBS): Add gdbarch-selftests.o.
6120 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6121 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6122 * gdbarch-selftests.c: New file.
6123 * regcache.h (regcache) <~regcache>: Mark it virtual if
6124 GDB_SELF_TEST.
6125 <raw_write>: Likewise.
6126
e521e87e
YQ
61272017-05-24 Yao Qi <yao.qi@linaro.org>
6128
6129 * regcache.c (current_regcache): Change it to
6130 regcache::current_regcache.
6131 (regcache_observer_target_changed): Update.
6132 (regcache_thread_ptid_changed): Make it a regcache static
6133 method.
6134 (regcache_thread_ptid_changed): Update.
6135 (class regcache_access): New.
6136 (current_regcache_test): Update.
6137 (_initialize_regcache): Update.
6138 * regcache.h: Include forward_list.
6139 (regcache): Declare regcache_thread_ptid_changed and declare
6140 registers_changed_ptid as friend.
6141
d8e07dda
YQ
61422017-05-24 Yao Qi <yao.qi@linaro.org>
6143
6144 * i387-tdep.c (i387_register_to_value): Use register_size
6145 instead of TYPE_LENGTH.
6146 * m68k-tdep.c (m68k_register_to_value): Likewise.
6147
8c8f9122
YQ
61482017-05-24 Yao Qi <yao.qi@linaro.org>
6149
6150 * i387-tdep.c (i387_convert_register_p): Return false if type
6151 code isn't TYPE_CODE_FLT.
6152
68fce50f
YQ
61532017-05-24 Yao Qi <yao.qi@linaro.org>
6154
6155 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6156 length is 4.
6157 (alpha_register_to_value): Remove type length check.
6158 (alpha_value_to_register): Likewise.
6159
88954b49
YQ
61602017-05-24 Yao Qi <yao.qi@linaro.org>
6161
6162 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6163 TYPE_CODE_FLT.
6164
e3ec9b69
YQ
61652017-05-24 Yao Qi <yao.qi@linaro.org>
6166
6167 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6168 TYPE_CODE_FLT or not.
6169
cdd238da
YQ
61702017-05-24 Yao Qi <yao.qi@linaro.org>
6171
6172 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6173 * avr-tdep.c (avr_gdbarch_init): Likewise.
6174 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6175 * cris-tdep.c (cris_gdbarch_init): Likewise.
6176 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6177 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6178 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6180 * mep-tdep.c (mep_gdbarch_init): Likewise.
6181 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6182 * mips-tdep.c (mips_gdbarch_init): Likewise.
6183 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6184 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6185 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6186 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6187 * v850-tdep.c (v850_gdbarch_init): Likewise.
6188
7a3929c4
YQ
61892017-05-24 Yao Qi <yao.qi@linaro.org>
6190
6191 * selftest-arch.c (tests_with_arch): Call registers_changed
6192 and reinit_frame_cache.
6193 * selftest.c (run_self_tests): Likewise.
6194
f4985dba
YQ
61952017-05-24 Yao Qi <yao.qi@linaro.org>
6196
6197 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6198 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6199
ab20fa4a
YQ
62002017-05-24 Yao Qi <yao.qi@linaro.org>
6201
6202 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6203 set_gdbarch_print_insn.
6204
f532ab94
YQ
62052017-05-24 Yao Qi <yao.qi@linaro.org>
6206
6207 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6208 set_gdbarch_print_insn.
6209
39503f82
YQ
62102017-05-24 Yao Qi <yao.qi@linaro.org>
6211
6212 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6213 set_gdbarch_print_insn.
6214 * arc-tdep.c (arc_gdbarch_init): Likewise.
6215 * arch-utils.c: include dis-asm.h.
6216 (default_print_insn): New function.
6217 * arch-utils.h (default_print_insn): Declare.
6218 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6219 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6220 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6221 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6222 * frv-tdep.c (frv_gdbarch_init): Likewise.
6223 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6224 * gdbarch.sh (print_insn): Use default_print_insn.
6225 * gdbarch.c: Regenerated.
6226 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6227 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6228 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6229 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6230 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6231 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6232 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6233 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6234 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6235 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6236 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6237 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6238 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6239 * mt-tdep.c (mt_gdbarch_init): Likewise.
6240 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6241 * nios2-tdep.c (nios2_print_insn): Remove.
6242 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6243 * rx-tdep.c (rx_gdbarch_init): Likewise.
6244 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6245 * score-tdep.c (score_print_insn): Remove.
6246 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6247 * sh-tdep.c (sh_gdbarch_init): Likewise.
6248 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6249 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6250 * tic6x-tdep.c (tic6x_print_insn): Remove.
6251 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6252 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6253 * v850-tdep.c (v850_gdbarch_init): Likewise.
6254 * vax-tdep.c (vax_gdbarch_init): Likewise.
6255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6256 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6257
f7241d4f
JB
62582017-05-23 John Baldwin <jhb@FreeBSD.org>
6259
6260 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6261 (MIPS_FP0_REGNUM): Remove.
6262 (MIPS_FSR_REGNUM): Remove.
6263 (mips_fbsd_supply_fpregs): Use mips_regnum.
6264 (mips_fbsd_supply_gregs): Likewise.
6265 (mips_fbsd_collect_fpregs): Likewise.
6266 (mips_fbsd_collect_gregs): Likewise.
6267
d489d81d
JB
62682017-05-23 John Baldwin <jhb@FreeBSD.org>
6269
6270 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6271 (getpfpregs_supplies): New function.
6272 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6273 getfpregs_supplies.
6274 (mips_fbsd_store_inferior_registers): Likewise.
6275
e11b3cdc
PA
62762017-05-22 Pedro Alves <palves@redhat.com>
6277
6278 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6279 maintainer.
6280
0f068fb5
AH
62812017-05-22 Alan Hayward <alan.hayward@arm.com>
6282
6283 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6284 (store_register): Likewise.
6285 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6286 (get_decimal_float_return_value): Likewise.
6287 (do_ppc_sysv_return_value): Likewise.
6288 (ppc64_sysv_abi_push_integer): Likewise.
6289 (ppc64_sysv_abi_push_freg): Likewise.
6290 (ppc64_sysv_abi_return_value_base): Likewise.
6291 (ppc64_sysv_abi_return_value): Likewise.
6292 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6293 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6294 * rs6000-nat.c: Likewise.
6295 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6296 (rs6000_value_to_register): Likewise.
6297 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6298
e6cf65f2
TT
62992017-05-21 Tom Tromey <tom@tromey.com>
6300
6301 PR rust/21466:
6302 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6303 arrays as "[T]", not "[T; ]".
6304
43cc5389
TT
63052017-05-19 Tom Tromey <tom@tromey.com>
6306
6307 PR rust/21484:
6308 * rust-lang.c (exp_descriptor_rust): New function.
6309 (rust_language_defn): Use it.
6310 * p-lang.c (pascal_language_defn): Update.
6311 * opencl-lang.c (opencl_language_defn): Update.
6312 * objc-lang.c (objc_language_defn): Update.
6313 * m2-lang.c (m2_language_defn): Update.
6314 * language.h (struct language_defn)
6315 <la_watch_location_expression>: New member.
6316 * language.c (unknown_language_defn, auto_language_defn)
6317 (local_language_defn): Update.
6318 * go-lang.c (go_language_defn): Update.
6319 * f-lang.c (f_language_defn): Update.
6320 * d-lang.c (d_language_defn): Update.
6321 * c-lang.h (c_watch_location_expression): Declare.
6322 * c-lang.c (c_watch_location_expression): New function.
6323 (c_language_defn, cplus_language_defn, asm_language_defn)
6324 (minimal_language_defn): Use it.
6325 * breakpoint.c (watch_command_1): Call
6326 la_watch_location_expression.
6327 * ada-lang.c (ada_language_defn): Update.
6328
7a6e7fcc
RO
63292017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6330
6e7e1744
RO
6331 PR tui/21482
6332 * gdb_curses.h (NOMACROS): Define.
6333 (NCURSES_NOMACROS): Define.
6334
63352017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6336
6337 PR tui/21482
7a6e7fcc
RO
6338 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6339 arg to char *.
6340 * tui/tui-wingeneral.c (box_win): Likewise.
6341 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6342 (tui_show_source_line): Likewise.
6343 (tui_show_exec_info_content): Likewise.
6344
1933fd8e
VM
63452017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6346
6347 * sparc-tdep.c (sparc_structure_return_p)
6348 (sparc_arg_on_registers_p): New functions.
6349 (sparc32_store_arguments): Use them.
6350 * sparc64-tdep.c (sparc64_16_byte_align_p)
6351 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6352 Handle TYPE_CODE_ARRAY.
6353
21873064
YQ
63542017-05-17 Yao Qi <yao.qi@linaro.org>
6355
6356 * cli/cli-decode.c (add_alias_cmd): New function.
6357 * command.h (add_alias_cmd): Declare.
6358 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6359 instead call add_alias_cmd.
6360
2b351b19
PA
63612017-05-17 Pedro Alves <palves@redhat.com>
6362
6363 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6364 (nat_makefile_frag): ... this. All references updated.
6365 * configure.ac: Likewise.
6366 * configure.nat: Likewise. Enhance comments.
6367 * configure: Regenerate.
6368
5f2ad7a3
RO
63692017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6370
6371 * procfs.c (procfs_create_inferior): Change prototype to match
6372 definition.
6373
adf3dde5
EZ
63742017-05-13 Eli Zaretskii <eliz@gnu.org>
6375
6376 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6377 C++ compiler warning.
6378
6830f270
TT
63792017-05-12 Tom Tromey <tom@tromey.com>
6380
6381 PR rust/21483:
6382 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6383 recurse, just call value_struct_elt directly.
6384
68f2f2e3
TT
63852017-05-12 Tom Tromey <tom@tromey.com>
6386
6387 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6388 OP_RUST_ARRAY>: Fix.
6389
256afbc2
TT
63902017-05-12 Tom Tromey <tom@tromey.com>
6391
6392 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6393
94bb8dfe
YQ
63942017-05-09 Yao Qi <yao.qi@linaro.org>
6395
6396 * regcache.c: Include <forward_list>.
6397 (struct regcache_list): Remove.
6398 (current_regcache): Update.
6399 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6400 (regcache_thread_ptid_changed): Likewise.
6401 (registers_changed_ptid): Likewise.
6402 (current_regcache_size): Likewise.
6403
8248946c
YQ
64042017-05-09 Yao Qi <yao.qi@linaro.org>
6405
6406 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6407 (current_regcache_size): New function.
6408 (current_regcache_test): New function.
6409 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6410
313c5961
AH
64112017-05-08 Alan Hayward <alan.hayward@arm.com>
6412
6413 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6414 (print_gp_register_row): Use get_frame_register_value.
6415
27bfc1d1
AH
64162017-05-08 Alan Hayward <alan.hayward@arm.com>
6417
6418 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6419 (mips_supply_fpregset): Likewise.
6420 (mips64_supply_gregset): Likewise.
6421
146e6c5c
AH
64222017-05-08 Alan Hayward <alan.hayward@arm.com>
6423
6424 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6425 regcache->raw_supply_zeroed.
6426
e50f25ec
SDJ
64272017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6428
6429 * configure.nat: Rearrange 'case' statements to match
6430 host before cpu.
6431
21ea5acd
SDJ
64322017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6433
6434 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6435 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6436 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6437 "@nat_extra_makefile_frag@".
6438 (Makefile): Remove dependency on "@frags@".
6439 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6440 (data-directory/Makefile): Likewise.
6441 * config/aarch64/linux.mh: Deleted; moved contents to
6442 "gdb/configure.nat".
6443 * config/alpha/alpha-linux.mh: Likewise.
6444 * config/alpha/nbsd.mh: Likewise.
6445 * config/arm/linux.mh: Likewise.
6446 * config/arm/nbsdelf.mh: Likewise.
6447 * config/i386/cygwin.mh: Likewise.
6448 * config/i386/cygwin64.mh: Likewise.
6449 * config/i386/darwin.mh: Likewise.
6450 * config/i386/fbsd.mh: Likewise.
6451 * config/i386/fbsd64.mh: Likewise.
6452 * config/i386/go32.mh: Likewise.
6453 * config/i386/i386gnu.mh: Likewise.
6454 * config/i386/i386sol2.mh: Likewise.
6455 * config/i386/linux.mh: Likewise.
6456 * config/i386/linux64.mh: Likewise.
6457 * config/i386/mingw.mh: Likewise.
6458 * config/i386/mingw64.mh: Likewise.
6459 * config/i386/nbsd64.mh: Likewise.
6460 * config/i386/nbsdelf.mh: Likewise.
6461 * config/i386/nto.mh: Likewise.
6462 * config/i386/obsd.mh: Likewise.
6463 * config/i386/obsd64.mh: Likewise.
6464 * config/i386/sol2-64.mh: Likewise.
6465 * config/ia64/linux.mh: Likewise.
6466 * config/m32r/linux.mh: Likewise.
6467 * config/m68k/linux.mh: Likewise.
6468 * config/m68k/nbsdelf.mh: Likewise.
6469 * config/m68k/obsd.mh: Likewise.
6470 * config/m88k/obsd.mh: Likewise.
6471 * config/mips/fbsd.mh: Likewise.
6472 * config/mips/linux.mh: Likewise.
6473 * config/mips/nbsd.mh: Likewise.
6474 * config/mips/obsd64.mh: Likewise.
6475 * config/pa/linux.mh: Likewise.
6476 * config/pa/nbsd.mh: Likewise.
6477 * config/pa/obsd.mh: Likewise.
6478 * config/powerpc/aix.mh: Likewise.
6479 * config/powerpc/fbsd.mh: Likewise.
6480 * config/powerpc/linux.mh: Likewise.
6481 * config/powerpc/nbsd.mh: Likewise.
6482 * config/powerpc/obsd.mh: Likewise.
6483 * config/powerpc/ppc64-linux.mh: Likewise.
6484 * config/powerpc/spu-linux.mh: Likewise.
6485 * config/s390/linux.mh: Likewise.
6486 * config/sh/nbsd.mh: Likewise.
6487 * config/sparc/fbsd.mh: Likewise.
6488 * config/sparc/linux.mh: Likewise.
6489 * config/sparc/linux64.mh: Likewise.
6490 * config/sparc/nbsd64.mh: Likewise.
6491 * config/sparc/nbsdelf.mh: Likewise.
6492 * config/sparc/obsd64.mh: Likewise.
6493 * config/sparc/sol2.mh: Likewise.
6494 * config/tilegx/linux.mh: Likewise.
6495 * config/vax/nbsdelf.mh: Likewise.
6496 * config/vax/obsd.mh: Likewise.
6497 * config/xtensa/linux.mh: Likewise.
6498 * config/i386/i386gnu.mn: New file, with excerpts from
6499 "config/i386/i386gnu.mh".
6500 * configure: Regenerate.
6501 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6502 *.mh files under "gdb/config".
6503 * configure.nat: New file, with contents from the
6504 "gdb/config/*/*.mh" files.
6505
7ed1acaf
TW
65062017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6507
6508 * btrace.c (btrace_clear): Free insn vector.
6509
e13cb306
PA
65102017-05-05 Pedro Alves <palves@redhat.com>
6511
6512 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6513 * configure: Regenerate.
6514
5ed8105e
PA
65152017-05-04 Pedro Alves <palves@redhat.com>
6516
6517 * Makefile.in (SFILES): Add progspace-and-thread.c.
6518 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6519 (COMMON_OBS): Add progspace-and-thread.o.
6520 * breakpoint.c: Include "progspace-and-thread.h".
6521 (update_inserted_breakpoint_locations)
6522 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6523 Use scoped_restore_current_pspace_and_thread.
6524 (create_std_terminate_master_breakpoint): Use
6525 scoped_restore_current_program_space.
6526 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6527 (print_breakpoint_location): Use
6528 scoped_restore_current_program_space.
6529 (bp_loc_is_permanent): Use
6530 scoped_restore_current_pspace_and_thread.
6531 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6532 (download_tracepoint_locations): Use
6533 scoped_restore_current_pspace_and_thread.
6534 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6535 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6536 (enum step_over_calls_kind): Moved from inferior.h.
6537 (class scoped_restore_current_thread): New class.
6538 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6539 declaration.
6540 (scoped_restore_current_thread): New class.
6541 * infcmd.c: Include "common/gdb_optional.h".
6542 (continue_1, proceed_after_attach): Use
6543 scoped_restore_current_thread.
6544 (notice_new_inferior): Use scoped_restore_current_thread.
6545 * inferior.c: Include "progspace-and-thread.h".
6546 (restore_inferior, save_current_inferior): Delete.
6547 (add_inferior_command, clone_inferior_command): Use
6548 scoped_restore_current_pspace_and_thread.
6549 * inferior.h (scoped_restore_current_inferior): New class.
6550 * infrun.c: Include "progspace-and-thread.h" and
6551 "common/gdb_optional.h".
6552 (follow_fork_inferior): Use
6553 scoped_restore_current_pspace_and_thread.
6554 (scoped_restore_exited_inferior): New class.
6555 (handle_vfork_child_exec_or_exit): Use
6556 scoped_restore_exited_inferior,
6557 scoped_restore_current_pspace_and_thread,
6558 scoped_restore_current_thread and scoped_restore.
6559 (fetch_inferior_event): Use scoped_restore_current_thread.
6560 * linespec.c (decode_line_full, decode_line_1): Use
6561 scoped_restore_current_program_space.
6562 * mi/mi-main.c: Include "progspace-and-thread.h".
6563 (exec_continue): Use scoped_restore_current_thread.
6564 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6565 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6566 * proc-service.c (ps_pglobal_lookup): Use
6567 scoped_restore_current_program_space.
6568 * progspace-and-thread.c: New file.
6569 * progspace-and-thread.h: New file.
6570 * progspace.c (release_program_space, clone_program_space): Use
6571 scoped_restore_current_program_space.
6572 (restore_program_space, save_current_program_space)
6573 (save_current_space_and_thread): Delete.
6574 (switch_to_program_space_and_thread): Moved to
6575 progspace-and-thread.c.
6576 * progspace.h (save_current_program_space)
6577 (save_current_space_and_thread): Delete declarations.
6578 (scoped_restore_current_program_space): New class.
6579 * remote.c (remote_btrace_maybe_reopen): Use
6580 scoped_restore_current_thread.
6581 * symtab.c: Include "progspace-and-thread.h".
6582 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6583 * thread.c (print_thread_info_1): Use
6584 scoped_restore_current_thread.
6585 (struct current_thread_cleanup): Delete.
6586 (do_restore_current_thread_cleanup)
6587 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6588 (scoped_restore_current_thread::~scoped_restore_current_thread):
6589 ... this new dtor.
6590 (make_cleanup_restore_current_thread): Rename/convert to ...
6591 (scoped_restore_current_thread::scoped_restore_current_thread):
6592 ... this new ctor.
6593 (thread_apply_all_command): Use scoped_restore_current_thread.
6594 (thread_apply_command): Use scoped_restore_current_thread.
6595 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6596 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6597
f6223dbb
PA
65982017-05-04 Pedro Alves <palves@redhat.com>
6599
6600 * thread.c (make_cleanup_restore_current_thread): Move
6601 find_thread_ptid call before the is_stopped call. Assert that the
6602 thread is found. Replace is_stopped call by checking the thread's
6603 state directly. Remove unnecessary NULL-thread check.
6604
3c3ae77e
PA
66052017-05-04 Pedro Alves <palves@redhat.com>
6606
6607 * corelow.c (thread_section_name): New class.
6608 (get_core_register_section, get_core_siginfo): Use it.
6609
45eba0ab
AA
66102017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6611
6612 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6613 (get_core_register_section): Remove xfree of NULL pointer.
6614
f81fdd35
AH
66152017-05-03 Alan Hayward <alan.hayward@arm.com>
6616
6617 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6618 * regcache.c (regcache::raw_supply_zeroed): New function.
6619 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6620
35837774
SM
66212017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6622
6623 * gdbarch.sh: Remove commented out definition of
6624 TARGET_CHAR_BIT.
6625 * gdbarch.h: Re-generate.
6626
c94fee56
SDJ
66272017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6628
6629 * configure: Regenerate.
6630
d17f7b36
SM
66312017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6632
6633 * solib-target.c (solib_target_relocate_section_addresses):
6634 Remove num_section_bases, num_bases, segment_bases variables.
6635
b560ebd6
SM
66362017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6637
6638 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6639
f2f46dfc
SM
66402017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * solib-target.c: Include <vector>
6643 (struct lm_info_target) <~lm_info_target>: Remove.
6644 <segment_bases, section_bases>: Change type to
6645 std::vector<CORE_ADDR>.
6646 (library_list_start_segment, library_list_start_section,
6647 library_list_end_library,
6648 solib_target_relocate_section_addresses): Adjust.
6649
a0ff9e1a
SM
66502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6651
6652 * gdbarch.sh (software_single_step): Change return type to
6653 std::vector<CORE_ADDR>.
6654 * gdbarch.c, gdbarch.h: Re-generate.
6655 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6656 Adjust.
6657 (arm_deal_with_atomic_sequence_raw): Adjust.
6658 (thumb_get_next_pcs_raw): Adjust.
6659 (arm_get_next_pcs_raw): Adjust.
6660 (arm_get_next_pcs): Adjust.
6661 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6662 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6663 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6664 (alpha_software_single_step): Adjust.
6665 * alpha-tdep.h (alpha_software_single_step): Adjust.
6666 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6667 * arm-tdep.c (arm_software_single_step): Adjust.
6668 (arm_breakpoint_kind_from_current_state): Adjust.
6669 * arm-tdep.h (arm_software_single_step): Adjust.
6670 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6671 * cris-tdep.c (cris_software_single_step): Adjust.
6672 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6673 (micromips_deal_with_atomic_sequence): Adjust.
6674 (deal_with_atomic_sequence): Adjust.
6675 (mips_software_single_step): Adjust.
6676 * mips-tdep.h (mips_software_single_step): Adjust.
6677 * moxie-tdep.c (moxie_software_single_step): Adjust.
6678 * nios2-tdep.c (nios2_software_single_step): Adjust.
6679 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6680 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6681 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6682 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6683 * sparc-tdep.c (sparc_software_single_step): Adjust.
6684 * spu-tdep.c (spu_software_single_step): Adjust.
6685 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6686
ea480a30
SM
66872017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6690 * gdbarch.h: Re-generate.
6691
d050f7d7
TW
66922017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6693
6694 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6695 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6696 * python/py-instruction.c, python/py-instruction.h: New file.
6697 * python/py-record.c: Add py-instruction.h include.
6698 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6699 gdb.RecordInstruction.
6700 * python/python-internal.h: Add gdbpy_initialize_instruction
6701 declaration.
6702 * python/python.c (do_start_initialization): Add
6703 gdbpy_initialize_instruction.
6704
14f819c8
TW
67052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6706
6707 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6708 Remove.
6709 (btrace_func_from_recpy_func): New function.
6710 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6711 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6712 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6713 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6714 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6715 Also, use new helper functions.
6716 (btpy_list_item): Use new helper functions.
6717 (recpy_bt_function_call_history): Use new type name.
6718 (btpy_call_getset): Remove.
6719 (gdbpy_initialize_btrace): Remove code to initialize
6720 gdb.BtraceFunctionCall.
6721 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6722 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6723 recpy_bt_func_prev, recpy_bt_func_next): New export.
6724 * python/py-record.c (recpy_func_type): New static object.
6725 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6726 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6727 recpy_func_next): New function.
6728 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6729 (recpy_func_getset): New static object.
6730 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6731 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6732
0ed5da75
TW
67332017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6734
6735 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6736 (btpy_object, btpy_insn_type, btpy_new): Remove.
6737 (btpy_list_object): Use gdb.RecordInstruction type instead of
6738 gdb.BtraceInstruction type.
6739 (btrace_insn_from_recpy_insn): New function.
6740 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6741 btpy_new.
6742 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6743 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6744 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6745 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6746 instead of btpy_object.
6747 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6748 btpy_insn_data, btpy_insn_decode): Rename to ...
6749 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6750 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6751 recpy_bt_insn_decode): This. Also, use new helper functions.
6752 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6753 recpy_insn_type.
6754 (btpy_insn_getset): Remove.
6755 (gdbpy_initialize_btrace): Remove code to initialize
6756 gdb.BtraceInstruction. Use recpy_element_object.
6757 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6758 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6759 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6760 * python/py-record.c (recpy_insn_type): New static object.
6761 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6762 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6763 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6764 New function.
6765 (recpy_insn_getset): New static object.
6766 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6767 * python/py-record.h (recpy_element_object): New typedef.
6768 (recpy_insn_type, recpy_insn_new): New export.
6769
913aeadd
TW
67702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6771
6772 * py-record-btrace.c (btpy_insn_new): Removed.
6773 (btpy_insn_or_gap_new): New function.
6774 (btpy_insn_error): Removed.
6775 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6776 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6777 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6778 btpy_insn_or_gap_new instead of btpy_insn_new.
6779 (btpy_insn_getset): Remove btpy_insn_error.
6780 * py-record.c (recpy_gap_type): New static object.
6781 (recpy_gap_object): New typedef.
6782 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6783 recpy_gap_reason_string): New function.
6784 (recpy_gap_getset): New static object.
6785 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6786 * py-record.h (recpy_gap_new): New export.
6787
a3be24ad
TW
67882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6789
6790 * python/py-record.c (recpy_ptid): Remove.
6791 (recpy_record_getset): Remove recpy_ptid.
6792
ae20e79a
TW
67932017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6794
6795 * btrace.c (btrace_fetch): Set inferior_ptid.
6796 * python/py-record-btrace.c: Add "py-record.h" include.
6797 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6798 recpy_bt_end, recpy_bt_instruction_history,
6799 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6800 in gdb.Record object instead of current ptid.
6801 * python/py-record.c: Include new "py-record.h" file.
6802 (recpy_record_object): Moved to py-record.h.
6803 * python/py-record.h: New file.
6804
8d0050ea
TW
68052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6806
6807 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6808 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6809 indentation.
6810
3f380b50
JB
68112017-05-01 Joel Brobecker <brobecker@adacore.com>
6812
6813 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6814 the past maintainers section.
6815
07495424
YQ
68162017-04-28 Yao Qi <yao.qi@linaro.org>
6817
6818 * infcmd.c (get_return_value): Use regcache ctor, and remove
6819 cleanup.
6820
deb1fa3e
YQ
68212017-04-28 Yao Qi <yao.qi@linaro.org>
6822 Pedro Alves <palves@redhat.com>
6823
6824 * regcache.c (regcache::regcache): New tag dispatch ctor.
6825 (do_cooked_read): Moved above.
6826 (regcache_dup): Use the tag dispatch ctor..
6827 * regcache.h (regcache): Declare ctor, delete copy ctor and
6828 assignment operator, remove friend regcache_dup.
6829
b421c83c
YQ
68302017-04-28 Yao Qi <yao.qi@linaro.org>
6831
6832 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6833 call method save instead of regcache_cpy.
6834 * regcache.h (struct regcache): Make regcache_dup a friend.
6835
ef79d9a3
YQ
68362017-04-28 Yao Qi <yao.qi@linaro.org>
6837
6838 * regcache.c (struct regcache): Move to regcache.h
6839 (regcache::arch): New method.
6840 (regcache_get_ptid): Update.
6841 (get_regcache_arch): Call arch method.
6842 (get_regcache_aspace): Call method aspace.
6843 (register_buffer): Change it to method.
6844 (regcache_save): Change it to regcache::save.
6845 (regcache_restore): Likewise.
6846 (regcache_cpy_no_passthrough): Remove the declaration.
6847 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6848 (regcache_cpy_no_passthrough): Change it to method
6849 cpy_no_passthrough.
6850 (regcache_register_status): Change it to method
6851 get_register_status.
6852 (regcache_invalidate): Change it to method invalidate.
6853 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6854 (regcache_raw_update): Change it to method raw_update.
6855 (regcache_raw_read): Likewise.
6856 (regcache_raw_read_signed): Likewise.
6857 (regcache_raw_read_unsigned): Likewise.
6858 (regcache_raw_write_signed): Likewise.
6859 (regcache_raw_write_unsigned): Likewise.
6860 (regcache_cooked_read): Likewise.
6861 (regcache_cooked_read_value): Likewise.
6862 (regcache_cooked_read_signed): Likewise.
6863 (regcache_cooked_read_unsigned): Likewise.
6864 (regcache_cooked_write_signed): Likewise.
6865 (regcache_cooked_write_unsigned): Likewise.
6866 (regcache_raw_set_cached_value): Likewise.
6867 (regcache_raw_write): Likewise.
6868 (regcache_cooked_write): Likewise.
6869 (regcache_xfer_part): Likewise.
6870 (regcache_raw_read_part): Likewise.
6871 (regcache_raw_write_part): Likewise.
6872 (regcache_cooked_read_part): Likewise.
6873 (regcache_cooked_write_part): Likewise.
6874 (regcache_raw_supply): Likewise.
6875 (regcache_raw_collect): Likewise.
6876 (regcache_transfer_regset): Likewise.
6877 (regcache_supply_regset): Likewise.
6878 (regcache_collect_regset): Likewise.
6879 (regcache_debug_print_register): Likewise.
6880 (enum regcache_dump_what): Move it to regcache.h.
6881 (regcache_dump): Change it to method dump.
6882 * regcache.h (enum regcache_dump_what): New.
6883 (class regcache): New.
6884 * target.c (target_fetch_registers): Call method
6885 debug_print_register.
6886 (target_store_registers): Likewise.
6887
f8fdb78e
SM
68882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6889
6890 * windows-nat.c (struct lm_info_windows): Initialize field.
6891 (windows_make_so): Allocate lm_info_windows with new.
6892 (windows_free_so): Free lm_info_windows with delete.
6893
9ccbfd7b
SM
68942017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6895
6896 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6897 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6898 cleanup.
6899 (darwin_free_so): Free lm_info_darwin with delete.
6900
76e75227
SM
69012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6902
6903 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6904 <l_addr_p>: Change type to bool.
6905 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6906 (svr4_free_so): Free lm_info_svr4 with delete.
6907 (svr4_copy_library_list): Replace memcpy with call to copy
6908 constructor.
6909 (library_list_start_library, svr4_default_sos): Allocate
6910 lm_info_svr4 with new.
6911
51046d9e
SM
69122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6913
6914 * solib-target.c (struct lm_info_target): Add destructor,
6915 initialize fields.
6916 <name>: Change type to std::string.
6917 (library_list_start_library): Allocate lm_info_target with new.
6918 (solib_target_free_library_list): Free lm_info_target with
6919 delete.
6920 (solib_target_current_sos): Adapt to std::string.
6921 (solib_target_free_so): Free lm_info_target with delete.
6922
4023ae76
SM
69232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6926 fields.
6927 (frv_current_sos): Allocate lm_info_frv with new.
6928 (frv_relocate_main_executable): Free lm_info_frv with delete,
6929 allocate with new.
6930 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6931
af43057b
SM
69322017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6933
6934 * solib-frv.c (struct lm_info_frv): Fix indentation.
6935
b0911207
SM
69362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6937
6938 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6939 map field.
6940 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6941 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6942 and allocate with new.
6943 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6944
6c401f72
SM
69452017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6946
6947 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6948 <filename, member_name>: Change type to std::string.
6949 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6950 (library_list_start_library): Allocate lm_info_aix with new.
6951 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6952 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6953 with copy constructor.
6954
d0e449a1
SM
69552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * solist.h (struct lm_info): Remove.
6958 (struct lm_info_base): New class.
6959 (struct so_list) <lm_info>: Change type to lm_info_base *.
6960 * nto-tdep.c (struct lm_info): Remove.
6961 (lm_addr): Adjust.
6962 * solib-aix.c (struct lm_info): Rename to ...
6963 (struct lm_info_aix): ... this. Extend lm_info_base.
6964 (lm_info_p): Rename to ...
6965 (lm_info_aix_p): ... this, and adjust.
6966 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6967 solib_aix_parse_libraries, library_list_start_library,
6968 solib_aix_free_library_list, solib_aix_parse_libraries,
6969 solib_aix_get_library_list,
6970 solib_aix_relocate_section_addresses, solib_aix_free_so,
6971 solib_aix_get_section_offsets,
6972 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6973 Adjust.
6974 (struct solib_aix_inferior_data) <library_list>: Adjust.
6975 * solib-darwin.c (struct lm_info): Rename to ...
6976 (struct lm_info_darwin): ... this. Extend lm_info_base.
6977 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6978 * solib-dsbt.c (struct lm_info): Rename to ...
6979 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6980 (struct dsbt_info) <main_executable_lm_info): Adjust.
6981 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6982 dsbt_relocate_section_addresses): Adjust.
6983 * solib-frv.c (struct lm_info): Rename to ...
6984 (struct lm_info_frv): ... this. Extend lm_info_base.
6985 (main_executable_lm_info): Adjust.
6986 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6987 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6988 find_canonical_descriptor_in_load_object,
6989 frv_fdpic_find_canonical_descriptor): Adjust.
6990 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6991 to lm_info_svr4.
6992 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6993 svr4_clear_so, svr4_copy_library_list,
6994 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6995 svr4_current_sos, svr4_fetch_objfile_link_map,
6996 solist_update_incremental): Adjust.
6997 * solib-svr4.h (struct lm_info_svr4): Move here from
6998 solib-svr4.c.
6999 * solib-target.c (struct lm_info): Rename to ...
7000 (struct lm_info_target): ... this. Extend lm_info_base.
7001 (lm_info_p): Rename to ...
7002 (lm_info_target_p): ... this.
7003 (solib_target_parse_libraries, library_list_start_segment,
7004 library_list_start_section, library_list_start_library,
7005 library_list_end_library, solib_target_free_library_list,
7006 solib_target_current_sos, solib_target_free_so,
7007 solib_target_relocate_section_addresses): Adjust.
7008 * windows-nat.c (struct lm_info): Rename to ...
7009 (struct lm_info_windows): ... this. Extend lm_info_base.
7010 (windows_make_so, handle_load_dll, handle_unload_dll,
7011 windows_xfer_shared_libraries): Adjust.
7012
434a4023
SM
70132017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7014
7015 * solib-darwin.c (struct darwin_so_list): Remove.
7016 (darwin_current_sos): Allocate an so_list object instead of a
7017 darwin_so_list, separately allocate an lm_info object.
7018 (darwin_free_so): Free lm_info.
7019
428544e8
JB
70202017-04-28 John Baldwin <jhb@FreeBSD.org>
7021
7022 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7023 with fprintf_filtered.
7024
4621115f
YQ
70252017-04-28 Yao Qi <yao.qi@linaro.org>
7026
7027 * regcache.c (regcache::regcache): New function.
7028 (regcache::~regcache): New function.
7029 (regcache_xmalloc_1): Remove.
7030 (regcache_xmalloc): Call new regcache.
7031 (regcache_xfree): Call delete regcache.
7032 (get_thread_arch_aspace_regcache): Call new regcache.
7033
339053c2
YQ
70342017-04-28 Yao Qi <yao.qi@linaro.org>
7035
7036 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7037 lwp instead of ptid_get_lwp.
7038
7974a605
YQ
70392017-04-28 Yao Qi <yao.qi@linaro.org>
7040
7041 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7042 lwp_info instead of getting from inferior_ptid.
7043
e15c3eb4
KS
70442017-04-27 Keith Seitz <keiths@redhat.com>
7045
7046 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7047 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7048 (CV_CONVERSION_BADNESS): Define.
7049 (rank_one_type): Remove overly restrictive rvalue reference
7050 rank checks.
7051 Add cv-qualifier checks and subranks for type equality.
7052 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7053 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7054 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7055
72bc1d24
SM
70562017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7057
7058 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7059 count when creating the object.
7060
55bcecda
UW
70612017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7062 Ulrich Weigand <uweigand@de.ibm.com>
7063
7064 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7065 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7066 is used in AIX.
7067 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7068 (process_xcoff_symbol): Likewise.
7069 (scan_xcoff_symtab): Likewise.
7070
5c99fcf8
AH
70712017-04-26 Alan Hayward <alan.hayward@arm.com>
7072
7073 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7074 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7075 (ia64_access_reg): Use get_frame_register_unsigned.
7076 (ia64_access_rse_reg): Likewise.
7077 (ia64_libunwind_frame_prev_register): Likewise.
7078
b41c5a85
JW
70792017-04-26 Jiong Wang <jiong.wang@arm.com>
7080
7081 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7082 * gdbarch.c: Regenerated.
7083 * gdbarch.h: Regenerated.
7084 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7085 visibility external.
7086 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7087 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7088 (enum cfa_how_kind): Move to ...
7089 (struct dwarf2_frame_state_reg_info): Likewise.
7090 (struct dwarf2_frame_state): Likewise.
7091 * dwarf2-frame.h: ... here.
7092 (dwarf2_frame_state_alloc_regs): New declaration.
7093 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7094 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7095
c185f580
AH
70962017-04-26 Alan Hayward <alan.hayward@arm.com>
7097
7098 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7099 regcache_raw_read_unsigned.
7100 (xtensa_pseudo_register_write): Likewise.
7101
19c45594
AH
71022017-04-26 Alan Hayward <alan.hayward@arm.com>
7103
7104 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7105 (nds32_pseudo_register_write): Likewise.
7106
4658f12e
YQ
71072017-04-25 Yao Qi <yao.qi@linaro.org>
7108
7109 * regcache.c (struct regcache) <readonly_p>: Change its type
7110 to bool.
7111 (regcache_xmalloc_1): Update parameter type and callers update.
7112
d581dda8
YQ
71132017-04-25 Yao Qi <yao.qi@linaro.org>
7114
7115 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7116 set_gdbarch_wchar_bit.
7117 * arm-tdep.c (arm_gdbarch_init): Likewise.
7118
debed3db
PA
71192017-04-25 Pedro Alves <palves@redhat.com>
7120
7121 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7122 (BothAreRelocatable, memcopy, memmove): Don't define.
7123 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7124 macros.
7125
b0b92aeb
PA
71262017-04-25 Pedro Alves <palves@redhat.com>
7127
7128 * common/common-defs.h: Include "common/poison.h".
7129 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7130 and adjust.
7131 * common/poison.h: New file.
7132 * common/traits.h: Include <type_traits>.
7133 (Not, Or, Requires): New, moved from common/function-view.h.
7134
16c4d54a
PA
71352017-04-25 Pedro Alves <palves@redhat.com>
7136
7137 * breakpoint.h (struct breakpoint): In-class initialize all
7138 fields. Make boolean fields "bool".
7139 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7140 memset call and initializations no longer necessary.
7141
b5c36682
PA
71422017-04-25 Pedro Alves <palves@redhat.com>
7143
7144 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7145 reference.
7146 (pt_btrace_insn): New function.
7147 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7148
5625a286
PA
71492017-04-25 Pedro Alves <palves@redhat.com>
7150
7151 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7152 "base" field and inherit from "bp_location" instead. Add
7153 non-default ctor.
7154 (allocate_location_exception): Use new non-default ctor.
7155 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7156 (init_bp_location): Convert to ...
7157 (bp_location::bp_location): ... this new ctor, and remove memset
7158 call.
7159 (base_breakpoint_allocate_location): Use the new non-default ctor.
7160 * breakpoint.h (bp_location): Now a class. Declare default and
7161 non-default ctors. In-class initialize all members.
7162 (init_bp_location): Remove declaration.
7163
23bcc18f
PA
71642017-04-25 Pedro Alves <palves@redhat.com>
7165
7166 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7167 assignment operator.
7168
e1ba3053
YQ
71692017-04-24 Yao Qi <yao.qi@linaro.org>
7170
7171 * doublest.c (convert_doublest_to_floatformat): Call
7172 floatformat_totalsize_bytes.
7173
10f489e5
TT
71742017-04-22 Tom Tromey <tom@tromey.com>
7175
7176 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7177 ui_out_emit_list.
7178 * stack.c (print_frame): Use ui_out_emit_list.
7179 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7180 ui_out_emit_list.
7181 * mi/mi-main.c (print_one_inferior)
7182 (mi_cmd_data_list_register_names)
7183 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7184 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7185 ui_out_emit_list.
7186 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7187 (mi_output_solib_attribs): Use ui_out_emit_list,
7188 ui_out_emit_tuple.
7189 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7190 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7191 (mi_cmd_stack_list_args, list_args_or_locals): Use
7192 ui_out_emit_list.
7193 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7194 * breakpoint.c (print_solib_event, output_thread_groups): Use
7195 ui_out_emit_list.
7196
0092b74d
TT
71972017-04-22 Tom Tromey <tom@tromey.com>
7198
7199 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7200 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7201 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7202
a14a62dd
TT
72032017-04-22 Tom Tromey <tom@tromey.com>
7204
7205 * tracepoint.c (tvariables_info_1)
7206 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7207
46b9c129
TT
72082017-04-22 Tom Tromey <tom@tromey.com>
7209
7210 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7211 annotate_arg_emitter.
7212 * breakpoint.c (print_mention_watchpoint)
7213 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7214 * annotate.h (struct annotate_arg_emitter): New.
7215
2e783024
TT
72162017-04-22 Tom Tromey <tom@tromey.com>
7217
7218 * record-btrace.c (record_btrace_insn_history)
7219 (record_btrace_insn_history_range, record_btrace_call_history)
7220 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7221 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7222 ui_out_emit_tuple.
7223 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7224 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7225 * skip.c (skip_info): Use ui_out_emit_tuple.
7226 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7227 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7228 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7229 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7230 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7231 ui_out_emit_tuple.
7232 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7233 (output_register, mi_cmd_data_read_memory)
7234 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7235 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7236 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7237 Use ui_out_emit_tuple.
7238 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7239 ui_out_emit_tuple.
7240 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7241 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7242 * linux-thread-db.c (info_auto_load_libthread_db): Use
7243 ui_out_emit_tuple.
7244 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7245 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7246 * disasm.c (do_mixed_source_and_assembly_deprecated)
7247 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7248 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7249 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7250 * breakpoint.c (print_one_breakpoint_location)
7251 (print_one_breakpoint): Use ui_out_emit_tuple.
7252 * auto-load.c (print_script, info_auto_load_cmd): Use
7253 ui_out_emit_tuple.
7254 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7255
9be21bb4
SM
72562017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7257
7258 * thread.c (print_thread_info_1): Remove dead code.
7259
0d4c07af
JK
72602017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7261
7262 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7263 GDB_SELF_TEST.
7264 * arm-tdep.c (selftests::arm_record_test): Likewise.
7265
4daf993d
YQ
72662017-04-21 Yao Qi <yao.qi@linaro.org>
7267
7268 * regcache.c (regcache_restore): Remove argument 2. Replace
7269 argument 3 with regcache. Get register status from
7270 src->register_status and get register contents from
7271 register_buffer (src, regnum).
7272 (regcache_cpy): Update.
7273
a6c21d4a
PA
72742017-04-19 Pedro Alves <palves@redhat.com>
7275
7276 * gdbthread.h (thread): Add missing closing parenthesis in
7277 comment.
7278
3a3fd0fd
PA
72792017-04-19 Pedro Alves <palves@redhat.com>
7280
7281 * common/refcounted-object.h: New file.
7282 * gdbthread.h: Include "common/refcounted-object.h".
7283 (thread_info): Inherit from refcounted_object and add comments.
7284 (thread_info::incref, thread_info::decref)
7285 (thread_info::m_refcount): Delete.
7286 (thread_info::deletable): Use the refcounted_object::refcount()
7287 method.
7288 * inferior.c (current_inferior_): Add comment.
7289 (set_current_inferior): Increment/decrement refcounts.
7290 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7291 not-deletable instead of comparing with the current inferior.
7292 (initialize_inferiors): Increment the initial inferior's refcount.
7293 * inferior.h (struct inferior): Forward declare.
7294 Include "common/refcounted-object.h".
7295 (current_inferior, set_current_inferior): Move declaration to
7296 before struct inferior's definition, and fix comment.
7297 (inferior): Inherit from refcounted_object. Add comments.
7298 * thread.c (switch_to_thread_no_regs): Reference the thread's
7299 inferior pointer directly instead of doing a ptid lookup.
7300 (switch_to_no_thread): New function.
7301 (switch_to_thread(thread_info *)): New function, factored out
7302 from ...
7303 (switch_to_thread(ptid_t)): ... this.
7304 (restore_current_thread): Delete.
7305 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7306 fields, and add 'inf' field.
7307 (do_restore_current_thread_cleanup): Check whether old->inf is
7308 alive instead of looking up an inferior by ptid. Use
7309 switch_to_thread and switch_to_no_thread.
7310 (restore_current_thread_cleanup_dtor): Use old->inf directly
7311 instead of lookup up an inferior by id. Decref the inferior.
7312 Don't restore 'removable'.
7313 (make_cleanup_restore_current_thread): Same the inferior pointer
7314 in old, instead of the inferior number. Incref the inferior.
7315 Don't save/clear 'removable'.
7316
9bcb1f16
PA
73172017-04-19 Pedro Alves <palves@redhat.com>
7318
7319 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7320 unittests/scoped_restore-selftests.c.
7321 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7322 * common/scoped_restore.h (scoped_restore_base): Make "class".
7323 (scoped_restore_base::release): New public method.
7324 (scoped_restore_base::scoped_restore_base): New protected ctor.
7325 (scoped_restore_base::m_saved_var): New protected field.
7326 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7327 scoped_restore_base base class instead of m_saved_var directly.
7328 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7329 (scoped_restore_tmpl::scoped_restore_tmpl(const
7330 scoped_restore_tmpl<T>&)): Likewise.
7331 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7332 method.
7333 (scoped_restore_tmpl::saved_var): New method.
7334 (scoped_restore_tmpl::m_saved_var): Delete.
7335 * inferior.h (inferior::detaching): Now a bool.
7336 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7337 cleanup.
7338 * unittests/scoped_restore-selftests.c: New file.
7339
26fcd539
PA
73402017-04-19 Pedro Alves <palves@redhat.com>
7341
7342 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7343 Re-sort in alphabetic order.
7344
fdd243b0
PA
73452017-04-18 Pedro Alves <palves@redhat.com>
7346
7347 * xml-support.c (obstack_xml_printf): Delete.
7348 * xml-support.h (obstack_xml_printf): Delete.
7349
4895cde2
PA
73502017-04-18 Pedro Alves <palves@redhat.com>
7351
7352 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7353 vdebug, verror, body_text, start_element, end_element, name,
7354 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7355 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7356 is_xinclude>: Make private and add m_ prefix.
7357 (gdb_xml_parser::body_text): New method, based on ...
7358 (gdb_xml_body_text): ... this. Adjust.
7359 (gdb_xml_parser::vdebug): New method, based on ...
7360 (gdb_xml_debug): ... this. Adjust.
7361 (gdb_xml_parser::verror): New method, based on ...
7362 (gdb_xml_error): ... this. Adjust.
7363 (gdb_xml_parser::start_element): New method, based on ...
7364 (gdb_xml_start_element): ... this. Adjust.
7365 (gdb_xml_start_element_wrapper): Defer to
7366 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7367 (gdb_xml_parser::end_element): New method, based on ...
7368 (gdb_xml_end_element_wrapper): ... this. Adjust.
7369 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7370 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7371 (gdb_xml_parser::use_dtd): New method, based on ...
7372 (gdb_xml_use_dtd): ... this. Adjust.
7373 (gdb_xml_parser::parse): New method, based on ...
7374 (gdb_xml_parse): ... this. Adjust.
7375 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7376 (xinclude_start_include): Adjust to call the parser's name method.
7377 (xml_xinclude_default, xml_xinclude_start_doctype)
7378 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7379 method.
7380 (xml_process_xincludes): Adjust to call parser methods.
7381 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7382 declarations.
7383
bd8a901f
PA
73842017-04-18 Pedro Alves <palves@redhat.com>
7385
7386 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7387 gdb::optional<std::string>.
7388 * xml-support.c: Include <string>.
7389 (scope_level::scope_level(scope_level &&))
7390 (scope_level::~scope_level): Delete.
7391 (scope_level::body): Now a std::string.
7392 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7393 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7394 parameter.
7395 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7396 (xinclude_parsing_data::output): Now a std::string reference.
7397 (xinclude_start_include): Adjust.
7398 (xml_xinclude_default): Adjust.
7399 (xml_process_xincludes): Add 'output' parameter, and return bool.
7400 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7401 and return bool.
7402 * xml-tdesc.c: Include <unordered_map> and <string>.
7403 (tdesc_xml_cache): Delete.
7404 (tdesc_xml_cache_s): Delete.
7405 (xml_cache): Now an std::unordered_map.
7406 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7407 (target_fetch_description_xml): Change return type to
7408 gdb::optional<std::string>, and adjust.
7409 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7410 (target_fetch_description_xml): Change return type to
7411 gdb::optional<std::string>.
7412
d35d1958
PA
74132017-04-18 Pedro Alves <palves@redhat.com>
7414
7415 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7416 unittests/optional-selftests.c.
7417 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7418 * unittests/optional-selftests.c: New file.
7419 * unittests/optional/assignment/1.cc: New file.
7420 * unittests/optional/assignment/2.cc: New file.
7421 * unittests/optional/assignment/3.cc: New file.
7422 * unittests/optional/assignment/4.cc: New file.
7423 * unittests/optional/assignment/5.cc: New file.
7424 * unittests/optional/assignment/6.cc: New file.
7425 * unittests/optional/assignment/7.cc: New file.
7426 * unittests/optional/cons/copy.cc: New file.
7427 * unittests/optional/cons/default.cc: New file.
7428 * unittests/optional/cons/move.cc: New file.
7429 * unittests/optional/cons/value.cc: New file.
7430 * unittests/optional/in_place.cc: New file.
7431 * unittests/optional/observers/1.cc: New file.
7432 * unittests/optional/observers/2.cc: New file.
7433
22796e97
PA
74342017-04-18 Pedro Alves <palves@redhat.com>
7435
7436 * common/gdb_optional.h: Include common/traits.h.
7437 (in_place_t): New type.
7438 (in_place): New constexpr variable.
7439 (optional::optional): Remove member initialization of
7440 m_instantiated.
7441 (optional::optional(in_place_t...)): New constructor.
7442 (optional::~optional): Use reset.
7443 (optional::optional(const optional&)): New.
7444 (optional::optional(const optional&&)): New.
7445 (optional::optional(T &)): New.
7446 (optional::optional(T &&)): New.
7447 (operator::operator=(const optional &)): New.
7448 (operator::operator=(optional &&)): New.
7449 (operator::operator= (const T &))
7450 (operator::operator= (T &&))
7451 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7452 (operator::reset): New.
7453 (operator::m_instantiated):: Add in-class initializer.
7454 * common/traits.h: Include <type_traits>.
7455 (struct And): New types.
7456
a7fc9b61
PA
74572017-04-18 Pedro Alves <palves@redhat.com>
7458
7459 * xml-support.c: Include <vector>.
7460 (scope_level::scope_level(const gdb_xml_element *))
7461 (scope_level::scope_level(scope_level&&)): New.
7462 (scope_level::~scope_level): New.
7463 (scope_level_s): Delete.
7464 (gdb_xml_parser::scopes): Now a std::vector.
7465 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7466 Use std::vector.
7467 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7468 scope cleanup code.
7469 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7470 of the scopes member. Use std::vector::emplace_back.
7471
010151c9
PA
74722017-04-18 Pedro Alves <palves@redhat.com>
7473
7474 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7475 a bool.
7476 (gdb_xml_end_element): Change type of first parameter.
7477 (gdb_xml_cleanup): Rename to ...
7478 (gdb_xml_parser::~gdb_xml_parser): ... this.
7479 (gdb_xml_create_parser_and_cleanup): Delete with ...
7480 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7481 to this new ctor.
7482 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7483 using gdb_xml_create_parser_and_cleanup.
7484 (xinclude_parsing_data): Add ctor/dtor.
7485 (xml_xinclude_cleanup): Delete.
7486 (xml_process_xincludes): Create a local xinclude_parsing_data
7487 instead of heap-allocating one. Create a local gdb_xml_parser
7488 instead of heap-allocating one with
7489 gdb_xml_create_parser_and_cleanup.
7490
d56060f0
JB
74912017-04-18 John Baldwin <jhb@FreeBSD.org>
7492
7493 PR threads/20743
7494 * fbsd-nat.c (resume_one_thread_cb): Remove.
7495 (resume_all_threads_cb): Remove.
7496 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7497 iterate_over_threads.
7498
305d16a9
JB
74992017-04-17 Joel Brobecker <brobecker@adacore.com>
7500
7501 * NEWS: Create a new section for the next release branch.
7502 Rename the section of the current branch, now that it has
7503 been cut.
7504
8bb57231
JB
75052017-04-17 Joel Brobecker <brobecker@adacore.com>
7506
7507 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7508 * version.in: Bump version to 8.0.50.DATE-git.
7509
096c92dd
SDJ
75102017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7511
7512 PR gdb/21385
7513 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7514 independently of the host, and fix build breakage on Cygwin.
7515
0550c955
PA
75162017-04-13 Pedro Alves <palves@redhat.com>
7517
7518 * inferior.c (free_inferior): Convert to ...
7519 (inferior::~inferior): ... this dtor.
7520 (inferior::inferior): New ctor, factored out from ...
7521 (add_inferior_silent): ... here. Allocate the inferior with a new
7522 expression.
7523 (delete_inferior): Call delete instead of free_inferior.
7524 * inferior.h (gdb_environ, continuation): Forward declare.
7525 (inferior): Now a class. Add in-class initialization to all
7526 members. Make boolean fields bool, except 'detaching'.
7527 (inferior::inferior): New explicit ctor.
7528 (inferior::~inferior): New.
7529
e3d60dfc
PA
75302017-04-13 Pedro Alves <palves@redhat.com>
7531
7532 * inferior.c (init_inferior_list): Delete.
7533 * inferior.h (init_inferior_list): Delete.
7534
5fd69d0a
PA
75352017-04-13 Pedro Alves <palves@redhat.com>
7536
7537 PR threads/13217
7538 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7539 (top level): Call it twice, with different thread sets.
7540
c6609450
PA
75412017-04-13 Pedro Alves <palves@redhat.com>
7542
7543 * thread.c: Include <algorithm>.
7544 (thread_array_cleanup): Delete.
7545 (scoped_inc_dec_ref): New class.
7546 (live_threads_count): New function.
7547 (set_thread_refcount): Delete.
7548 (tp_array_compar_ascending): Now a bool.
7549 (tp_array_compar): Convert to a std::sort comparison function.
7550 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7551 and live_threads_count.
7552
2a00d7ce
PA
75532017-04-13 Pedro Alves <palves@redhat.com>
7554
7555 * infrun.c (follow_fork_inferior): Also switch the current
7556 inferior.
7557
441d7c93
PA
75582017-04-13 Pedro Alves <palves@redhat.com>
7559
7560 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7561 before calling create_internal_breakpoint.
7562
808480f6
PA
75632017-04-13 Pedro Alves <palves@redhat.com>
7564
7565 * fork-child.c (execv_argv): New class.
7566 (breakup_args): Refactored as ...
7567 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7568 Copy arguments to storage and replace separators with NULL
7569 terminators in place.
7570 (escape_bang_in_quoted_argument): Adjust to return bool.
7571 (execv_argv::execv_argv): New ctor.
7572 (execv_argv::init_for_shell): New method, factored out from
7573 fork_inferior. Don't strdup strings into the vector.
7574 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7575 Remove free_vector_argv call.
7576
ad3d022a
YQ
75772017-04-13 Yao Qi <yao.qi@linaro.org>
7578
7579 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7580 tdep->rx_psw_type.
7581
e6ddc3bf
YQ
75822017-04-13 Yao Qi <yao.qi@linaro.org>
7583
7584 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7585 * rx-tdep.c (rx_gdbarch_init): Likewise.
7586
bfb8cf90
PA
75872017-04-13 Pedro Alves <palves@redhat.com>
7588
7589 * breakpoint.h (struct breakpoint): Reindent.
7590
f5336ca5
PA
75912017-04-13 Pedro Alves <palves@redhat.com>
7592
7593 * breakpoint.c (bp_location): Rename to ...
7594 (bp_locations): ... this. All references updated.
7595 (bp_location_count): Rename to ...
7596 (bp_locations_count): ... this. All references updated.
7597 (bp_location_placed_address_before_address_max): Rename to ...
7598 (bp_locations_placed_address_before_address_max): ... this. All
7599 references updated.
7600 (bp_location_shadow_len_after_address_max): Rename to ...
7601 (bp_locations_shadow_len_after_address_max): ... this. All
7602 references updated.
7603 (bp_location_compare_addrs): Rename to ...
7604 (bp_locations_compare_addrs): ... this. All references updated.
7605 (bp_location_compare):Rename to ...
7606 (bp_locations_compare): ... this. All references updated.
7607 (bp_location_target_extensions_update): Rename to ...
7608 (bp_locations_target_extensions_update): ... this. All references
7609 updated.
7610
be628ab8
SDJ
76112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7612
7613 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7614 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7615 'sgtty.h'.
7616 * common/gdb_termios.h: New file, with parts of "terminal.h".
7617 * inflow.c: Include "gdb_termios.h".
7618 * ser-unix.c: Include "gdb_termios.h".
7619 * terminal.h: Move terminal-related defines to
7620 "common/gdb_termios.h".
7621
8e9e35b1
TT
76222017-04-12 Tom Tromey <tom@tromey.com>
7623
7624 * probe.c (parse_probes): Update.
7625 * location.h (delete_event_location): Don't declare.
7626 (event_location_deleter::operator()): Update.
7627 * location.c (event_location_deleter::operator()): Rename from
7628 delete_event_location.
7629 * linespec.h (linespec_result) <location>: Change type to
7630 event_location_up.
7631 * linespec.c (canonicalize_linespec, event_location_to_sals)
7632 (decode_objc): Update.
7633 (linespec_result): Don't call delete_event_location.
7634 * breakpoint.c (create_breakpoints_sal)
7635 (bkpt_probe_create_sals_from_location)
7636 (strace_marker_create_sals_from_location): Update.
7637
16e802b9
TT
76382017-04-12 Tom Tromey <tom@tromey.com>
7639
7640 * linespec.h (struct linespec_result): Add constructor and
7641 destructor.
7642 (init_linespec_result, destroy_linespec_result)
7643 (make_cleanup_destroy_linespec_result): Don't declare.
7644 * linespec.c (init_linespec_result): Remove.
7645 (linespec_result::~linespec_result): Rename from
7646 destroy_linespec_result. Update.
7647 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7648 Remove.
7649 * breakpoint.c (create_breakpoint, break_range_command)
7650 (decode_location_default): Update.
7651 * ax-gdb.c (agent_command_1): Update.
7652
d28cd78a
TT
76532017-04-12 Tom Tromey <tom@tromey.com>
7654
7655 * remote.c (remote_download_tracepoint): Update.
7656 * python/py-breakpoint.c (bppy_get_location): Update.
7657 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7658 (gdbscm_breakpoint_location): Update.
7659 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7660 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7661 Change type to event_location_up.
7662 * breakpoint.c (create_overlay_event_breakpoint)
7663 (create_longjmp_master_breakpoint)
7664 (create_std_terminate_master_breakpoint)
7665 (create_exception_master_breakpoint)
7666 (breakpoint_event_location_empty_p, print_breakpoint_location)
7667 (print_one_breakpoint_location, create_thread_event_breakpoint)
7668 (init_breakpoint_sal, create_breakpoint)
7669 (print_recreate_ranged_breakpoint, break_range_command)
7670 (init_ada_exception_breakpoint, say_where): Update.
7671 (base_breakpoint_dtor): Don't call delete_event_location.
7672 (bkpt_print_recreate, tracepoint_print_recreate)
7673 (dprintf_print_recreate, update_static_tracepoint)
7674 (breakpoint_re_set_default): Update.
7675
711799d5
TT
76762017-04-12 Tom Tromey <tom@tromey.com>
7677
7678 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7679 type of "to_do". Update.
7680 (compute_stack_depth): Use std::vector.
7681
52d214d3
TT
76822017-04-12 Tom Tromey <tom@tromey.com>
7683
7684 * printcmd.c (find_instruction_backward): Use std::vector.
7685
4c404b8b
TT
76862017-04-12 Tom Tromey <tom@tromey.com>
7687
7688 * symfile.c (objfilep): Remove typedef.
7689 (reread_symbols): Use a std::vector.
7690
156d9eab
TT
76912017-04-12 Tom Tromey <tom@tromey.com>
7692
7693 * mi/mi-main.c (exec_direction_forward): Remove.
7694 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7695 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7696 scoped_restore.
7697 * guile/guile.c (guile_repl_command, guile_command)
7698 (gdbscm_execute_gdb_command): Use scoped_restore.
7699 * go-exp.y (go_parse): Use scoped_restore.
7700 * d-exp.y (d_parse): Use scoped_restore.
7701 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7702 * c-exp.y (c_parse): Use scoped_restore.
7703
4d89769a
TT
77042017-04-12 Tom Tromey <tom@tromey.com>
7705
7706 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7707 (mi_parse): Update return type.
7708 (mi_parse_free): Remove.
7709 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7710 (mi_parse::~mi_parse): Rename from mi_parse_free.
7711 (mi_parse_cleanup): Remove.
7712 (mi_parse): Return a unique_ptr. Use new.
7713 * mi/mi-main.c (mi_execute_command): Update.
7714
4b217cc7
TT
77152017-04-12 Tom Tromey <tom@tromey.com>
7716
7717 * location.c (explicit_location_lex_one): Return a
7718 unique_xmalloc_ptr.
7719 (string_to_explicit_location): Update. Remove cleanups.
7720
59d3651b
TT
77212017-04-12 Tom Tromey <tom@tromey.com>
7722
7723 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7724 (compare_value_and_voffset): Change type. Update.
7725 (compute_vtable_size): Change type of "offset_vec".
7726 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7727 (gnuv3_get_typeid): Remove extraneous declaration.
7728
b24b0d6c
TT
77292017-04-12 Tom Tromey <tom@tromey.com>
7730
7731 * charset.h (wchar_iterator): Fix comment.
7732
80a3b8c5
TT
77332017-04-12 Tom Tromey <tom@tromey.com>
7734
7735 * charset.c (iconv_wrapper): New class.
7736 (cleanup_iconv): Remove.
7737 (convert_between_encodings): Use it.
7738
c83dd867
TT
77392017-04-12 Tom Tromey <tom@tromey.com>
7740
7741 * symfile.h (increment_reading_symtab): Update type.
7742 * symfile.c (decrement_reading_symtab): Remove.
7743 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7744 * psymtab.c (psymtab_to_symtab): Update.
7745 * dwarf2read.c (dw2_instantiate_symtab): Update.
7746
0e8621a0
TT
77472017-04-12 Tom Tromey <tom@tromey.com>
7748
7749 * jit.c (struct jit_reader): Declare separately. Add constructor
7750 and destructor. Change type of "handle".
7751 (loaded_jit_reader): Define separately.
7752 (jit_reader_load): Update. New "new".
7753 (jit_reader_unload_command): Use "delete".
7754 * gdb-dlfcn.h (struct dlclose_deleter): New.
7755 (gdb_dlhandle_up): New typedef.
7756 (gdb_dlopen, gdb_dlsym): Update types.
7757 (gdb_dlclose): Remove.
7758 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7759 (gdb_dlsym): Change type of "handle".
7760 (make_cleanup_dlclose): Remove.
7761 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7762 * compile/compile-c-support.c (load_libcc): Update.
7763
67d89901
TT
77642017-04-12 Tom Tromey <tom@tromey.com>
7765
7766 * symtab.h (find_pcs_for_symtab_line): Change return type.
7767 * symtab.c (find_pcs_for_symtab_line): Change return type.
7768 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7769 type of "vec". Update.
7770 (ltpy_get_pcs_for_line): Update.
7771 * linespec.c (decode_digits_ordinary): Update.
7772
93921405
TT
77732017-04-12 Tom Tromey <tom@tromey.com>
7774
7775 * tracepoint.c (actions_command): Update.
7776 * python/python.c (python_command, python_interactive_command):
7777 Update.
7778 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7779 * guile/guile.c (guile_command): Update.
7780 * defs.h (read_command_lines, read_command_lines_1): Return
7781 command_line_up.
7782 (command_lines_deleter): New struct.
7783 (command_line_up): New typedef.
7784 * compile/compile.c (compile_code_command)
7785 (compile_print_command): Update.
7786 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7787 command_line_up.
7788 (make_cleanup_free_command_lines): Remove.
7789 * cli/cli-script.c (get_command_line, read_command_lines_1)
7790 (copy_command_lines): Return command_line_up.
7791 (while_command, if_command, read_command_lines, define_command)
7792 (document_command): Update.
7793 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7794 Remove.
7795 * breakpoint.h (breakpoint_set_commands): Change type of
7796 "commands".
7797 * breakpoint.c (breakpoint_set_commands): Change type of
7798 "commands". Update.
7799 (do_map_commands_command, update_dprintf_command_list)
7800 (create_tracepoint_from_upload): Update.
7801
ffc2605c
TT
78022017-04-12 Tom Tromey <tom@tromey.com>
7803
7804 * tracepoint.c (scope_info): Update.
7805 * spu-tdep.c (spu_catch_start): Update.
7806 * python/python.c (gdbpy_decode_line): Update.
7807 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7808 * python/py-breakpoint.c (bppy_init): Update.
7809 * probe.c (parse_probes): Update.
7810 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7811 * location.h (event_location_deleter): New struct.
7812 (event_location_up): New typedef.
7813 (new_linespec_location, new_address_location, new_probe_location)
7814 (new_explicit_location, copy_event_location)
7815 (string_to_event_location, string_to_event_location_basic)
7816 (string_to_explicit_location): Update return type.
7817 (make_cleanup_delete_event_location): Remove.
7818 * location.c (new_linespec_location, new_address_location)
7819 (new_probe_location, new_explicit_location, copy_event_location):
7820 Return event_location_up.
7821 (delete_event_location_cleanup)
7822 (make_cleanup_delete_event_location): Remove.
7823 (string_to_explicit_location, string_to_event_location_basic)
7824 (string_to_event_location): Return event_location_up.
7825 * linespec.c (canonicalize_linespec, event_location_to_sals)
7826 (decode_line_with_current_source)
7827 (decode_line_with_last_displayed, decode_objc): Update.
7828 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7829 * completer.c (location_completer): Update.
7830 * cli/cli-cmds.c (edit_command, list_command): Update.
7831 * breakpoint.c (create_overlay_event_breakpoint)
7832 (create_longjmp_master_breakpoint)
7833 (create_std_terminate_master_breakpoint)
7834 (create_exception_master_breakpoint)
7835 (create_thread_event_breakpoint): Update.
7836 (init_breakpoint_sal): Update. Remove some dead code.
7837 (create_breakpoint_sal): Change type of "location". Update.
7838 (create_breakpoints_sal, create_breakpoint, break_command_1)
7839 (dprintf_command, break_range_command, until_break_command)
7840 (init_ada_exception_breakpoint)
7841 (strace_marker_create_sals_from_location)
7842 (update_static_tracepoint, trace_command, ftrace_command)
7843 (strace_command, create_tracepoint_from_upload): Update.
7844 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7845 * ax-gdb.c (agent_command_1): Update.
7846
8f10c932
PA
78472017-04-12 Pedro Alves <palves@redhat.com>
7848
7849 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7850 * configure.tgt: Handle i[34567]86-*-go32* and
7851 i[34567]86-*-msdosdjgpp*.
7852 * i386-tdep.c (i386_svr4_reg_to_regnum):
7853 Make extern.
7854 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7855 i386-go32-tdep.c.
7856 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7857 * i386-go32-tdep.c: New file.
7858 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7859 declarations.
7860
0a31ccfb
SM
78612017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7862
7863 * aix-thread.c (pd_status2str): Change return type to const char *.
7864
e9bb3fbb
PA
78652017-04-12 Pedro Alves <palves@redhat.com>
7866
7867 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7868 calls to set_gdbarch_gnu_triplet_regexp.
7869
53375380
PA
78702017-04-12 Pedro Alves <palves@redhat.com>
7871
7872 PR gdb/21323
7873 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7874 New enum value.
7875 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7876 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7877 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7878 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7879 * gdbarch.h, gdbarch.c: Regenerate.
7880 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7881 gdbarch_wchar_bit and gdbarch_wchar_signed.
7882 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7883 * arm-tdep.c (arm_gdbarch_init): Likewise.
7884 * avr-tdep.c (avr_gdbarch_init): Likewise.
7885 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7886 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7887 * i386-tdep.c (i386_go32_init_abi): Likewise.
7888 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7889 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7890 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7891 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7892 * sh-tdep.c (sh_gdbarch_init): Likewise.
7893 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7894 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7895 * windows-tdep.c (windows_init_abi): Likewise.
7896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7897
53e710ac
PA
78982017-04-12 Pedro Alves <palves@redhat.com>
7899
7900 PR c++/21323
7901 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7902 cplus_primitive_type_char32_t>: New enum values.
7903 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7904 and cplus_primitive_type_char32_t.
7905 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7906 32, use the archtecture's built-in type for char16_t and char32_t,
7907 respectively. Otherwise, fallback to init_integer_type as before,
7908 but make the type unsigned, and issue a complaint.
7909 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7910
ab0538b8
AH
79112017-04-12 Alan Hayward <alan.hayward@arm.com>
7912
5e0e0422 7913 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
7914 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7915
5430098f
SDJ
79162017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7917
7918 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7919 'const char *'.
7920
7c5ded6a
SDJ
79212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7922
7923 * common/common-utils.c (free_vector_argv): New function.
7924 * common/common-utils.h: Include <vector>.
7925 (free_vector_argv): New prototype.
7926 * darwin-nat.c (darwin_create_inferior): Rewrite function
7927 prototype in order to constify "exec_file" and accept a
7928 "std::string" for "allargs".
7929 * fork-child.c: Include <vector>.
7930 (breakup_args): Rewrite function, using C++.
7931 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7932 and accept "std::string" for "allargs". Update the code to
7933 calculate "argv" based on "allargs". Update calls to "exec_fun"
7934 and "execvp".
7935 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7936 order to constify "exec_file" and accept a "std::string" for
7937 "allargs".
7938 * go32-nat.c (go32_create_inferior): Likewise.
7939 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7940 * infcmd.c (run_command_1): Constify "exec_file". Use
7941 "std::string" for inferior arguments.
7942 * inferior.h (fork_inferior): Update prototype.
7943 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7944 prototype in order to constify "exec_file" and accept a
7945 "std::string" for "allargs".
7946 * nto-procfs.c (procfs_create_inferior): Likewise.
7947 * procfs.c (procfs_create_inferior): Likewise.
7948 * remote-sim.c (gdbsim_create_inferior): Likewise.
7949 * remote.c (extended_remote_run): Update code to accept
7950 "std::string" as argument.
7951 (extended_remote_create_inferior): Rewrite function prototype in
7952 order to constify "exec_file" and accept a "std::string" for
7953 "allargs".
7954 * rs6000-nat.c (super_create_inferior): Likewise.
7955 (rs6000_create_inferior): Likewise.
7956 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7957 * windows-nat.c (windows_create_inferior): Likewise.
7958
ae0eee42
PA
79592017-04-11 Pedro Alves <palves@redhat.com>
7960
7961 * thread.c: Fix whitespace throughout.
7962
a6acac06
PR
79632017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7964
7965 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7966
64403bd1
AH
79672017-04-11 Alan Hayward <alan.hayward@arm.com>
7968
7969 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7970
a5bef50f
SDJ
79712017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7972
7973 PR gdb/21364
7974 * osdata.c (info_osdata): Check if 'type' is an empty string
7975 instead of NULL.
7976
9295a5a9
PA
79772017-04-10 Pedro Alves <palves@redhat.com>
7978
7979 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7980 (ptid_to_global_thread_id, in_thread_list)
7981 (do_captured_list_thread_ids, set_resumed, set_running)
7982 (set_executing, set_stop_requested, finish_thread_state)
7983 (validate_registers_access, can_access_registers_ptid)
7984 (print_thread_info_1, switch_to_thread)
7985 (do_restore_current_thread_cleanup)
7986 (make_cleanup_restore_current_thread, thread_command)
7987 (thread_name_command): Use operator== instead of ptid_equal.
7988
996812e3
PA
79892017-04-10 Pedro Alves <palves@redhat.com>
7990
7991 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7992 (current_thread_cleanup_chain): Delete.
7993 (restore_current_thread_cleanup_dtor)
7994 (make_cleanup_restore_current_thread): Remove references to
7995 current_thread_cleanup_chain.
7996
845b344f
AH
79972017-04-10 Alan Hayward <alan.hayward@arm.com>
7998
7999 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8000 REG_UNKNOWN.
8001
803bdfe4
YQ
80022017-04-10 Yao Qi <yao.qi@linaro.org>
8003
8004 PR gdb/19942
8005 * gdbthread.h (thread_info::deletable): New method.
8006 (thread_info::incref): New method.
8007 (thread_info::decref): New method.
8008 (thread_info::refcount): Move it to private.
8009 * infrun.c (save_stop_context): Call inc_refcount.
8010 (release_stop_context_cleanup): Likewise.
8011 * thread.c (set_thread_exited): New function.
8012 (init_thread_list): Delete "tp" only it is deletable, otherwise
8013 call set_thread_exited.
8014 (delete_thread_1): Call set_thread_exited.
8015 (current_thread_cleanup) <inferior_pid>: Remove.
8016 <thread>: New field.
8017 (restore_current_thread_ptid_changed): Removed.
8018 (do_restore_current_thread_cleanup): Adjust.
8019 (restore_current_thread_cleanup_dtor): Don't call
8020 find_thread_ptid.
8021 (set_thread_refcount): Use dec_refcount.
8022 (make_cleanup_restore_current_thread): Adjust.
8023 (thread_apply_all_command): Call inc_refcount.
8024 (_initialize_thread): Don't call
8025 observer_attach_thread_ptid_changed.
8026
8c25b497
YQ
80272017-04-10 Yao Qi <yao.qi@linaro.org>
8028
8029 * thread.c (delete_thread_1): Hoist code on marking thread as
8030 exited.
8031
8473b447
SM
80322017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8033
8034 * windows-nat.c (windows_detach): Initialize ptid with
8035 minus_one_ptid.
8036
6670ec13
SM
80372017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8038
8039 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8040
ba2f91bb
AH
80412017-04-07 Alan Hayward <alan.hayward@arm.com>
8042
8043 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8044 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8045 (bfin_pseudo_register_write): Likewise
8046
436252de
SM
80472017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8048
8049 * common/ptid.h (struct ptid): Change to...
8050 (class ptid_t): ... this.
8051 <ptid_t>: New constructors.
8052 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8053 matches>: New methods.
8054 <make_null, make_minus_one>: New static methods.
8055 <pid>: Rename to...
8056 <m_pid>: ...this.
8057 <lwp>: Rename to...
8058 <m_lwp>: ...this.
8059 <tid>: Rename to...
8060 <m_tid>: ...this.
8061 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8062 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8063 as references, move comment to class ptid_t.
8064 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8065 ptid_t static methods.
8066 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8067 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8068 Take ptid arguments as references, implement using ptid_t methods.
8069 * unittests/ptid-selftests.c: New file.
8070 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8071 unittests/ptid-selftests.c.
8072 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8073
0dedf377
TP
80742017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8075
8076 * python/python.c (python_run_simple_file): Cast mode literal to
8077 non-const char pointer as expected by PyFile_FromString.
8078
4e9868d4
SM
80792017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8080
8081 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8082 minus_one_ptid and null_ptid.
8083
9bf2a700
PA
80842017-04-05 Pedro Alves <palves@redhat.com>
8085
8086 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8087 * configure: Regenerate.
8088
a121b7c1
PA
80892017-04-05 Pedro Alves <palves@redhat.com>
8090
8091 * ada-exp.y (yyerror): Constify.
8092 * ada-lang.c (bound_name, get_selections)
8093 (ada_variant_discrim_type)
8094 (ada_variant_discrim_name, ada_value_struct_elt)
8095 (ada_lookup_struct_elt_type, is_unchecked_variant)
8096 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8097 (catch_ada_exception_command_split)
8098 (catch_ada_assert_command_split, catch_assert_command)
8099 (ada_op_name): Constify.
8100 * ada-lang.h (ada_yyerror, get_selections)
8101 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8102 * arc-tdep.c (arc_print_frame_cache): Constify.
8103 * arm-tdep.c (arm_skip_stub): Constify.
8104 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8105 (gen_aggregate_elt_ref): Constify.
8106 * bcache.c (print_bcache_statistics): Constify.
8107 * bcache.h (print_bcache_statistics): Constify.
8108 * break-catch-throw.c (catch_exception_command_1):
8109 * breakpoint.c (struct ep_type_description::description):
8110 Constify.
8111 (add_solib_catchpoint): Constify.
8112 (catch_fork_command_1): Add cast.
8113 (add_catch_command): Constify.
8114 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8115 Constify.
8116 * bsd-uthread.c (bsd_uthread_state): Constify.
8117 * buildsym.c (patch_subfile_names): Constify.
8118 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8119 Constify.
8120 * c-exp.y (yyerror): Constify.
8121 (token::oper): Constify.
8122 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8123 * c-varobj.c (cplus_describe_child): Constify.
8124 * charset.c (find_charset_names): Add cast.
8125 (find_charset_names): Constify array and add const_cast.
8126 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8127 (edit_command): Constify.
8128 * cli/cli-decode.c (lookup_cmd): Constify.
8129 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8130 Constify.
8131 (struct dump_context): Constify.
8132 (add_dump_command, restore_command): Constify.
8133 * cli/cli-script.c (get_command_line): Constify.
8134 * cli/cli-script.h (get_command_line): Constify.
8135 * cli/cli-utils.c (check_for_argument): Constify.
8136 * cli/cli-utils.h (check_for_argument): Constify.
8137 * coff-pe-read.c (struct read_pe_section_data): Constify.
8138 * command.h (lookup_cmd): Constify.
8139 * common/print-utils.c (decimal2str): Constify.
8140 * completer.c (gdb_print_filename): Constify.
8141 * corefile.c (set_gnutarget): Constify.
8142 * cp-name-parser.y (yyerror): Constify.
8143 * cp-valprint.c (cp_print_class_member): Constify.
8144 * cris-tdep.c (cris_register_name, crisv32_register_name):
8145 Constify.
8146 * d-exp.y (yyerror): Constify.
8147 (struct token::oper): Constify.
8148 * d-lang.h (d_yyerror): Constify.
8149 * dbxread.c (struct header_file_location::name): Constify.
8150 (add_old_header_file, add_new_header_file, last_function_name)
8151 (dbx_next_symbol_text, add_bincl_to_list)
8152 (find_corresponding_bincl_psymtab, set_namestring)
8153 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8154 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8155 * defs.h (command_line_input, print_address_symbolic)
8156 (deprecated_readline_begin_hook): Constify.
8157 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8158 Constify.
8159 * event-top.c (handle_line_of_input): Constify and add cast.
8160 * exceptions.c (catch_errors): Constify.
8161 * exceptions.h (catch_errors): Constify.
8162 * expprint.c (print_subexp_standard, op_string, op_name)
8163 (op_name_standard, dump_raw_expression, dump_raw_expression):
8164 * expression.h (op_name, op_string, dump_raw_expression):
8165 Constify.
8166 * f-exp.y (yyerror): Constify.
8167 (struct token::oper): Constify.
8168 (struct f77_boolean_val::name): Constify.
8169 * f-lang.c (f_word_break_characters): Constify.
8170 * f-lang.h (f_yyerror): Constify.
8171 * fork-child.c (fork_inferior): Add cast.
8172 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8173 (new_variant): Constify.
8174 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8175 * gdbarch.c: Regenerate.
8176 * gdbcore.h (set_gnutarget): Constify.
8177 * go-exp.y (yyerror): Constify.
8178 (token::oper): Constify.
8179 * go-lang.h (go_yyerror): Constify.
8180 * go32-nat.c (go32_sysinfo): Constify.
8181 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8182 * guile/scm-cmd.c (cmdscm_function): Constify.
8183 * guile/scm-param.c (pascm_param_value): Constify.
8184 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8185 (h8300sx_register_name): Constify.
8186 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8187 Constify.
8188 * ia64-tdep.c (ia64_register_names): Constify.
8189 * infcmd.c (construct_inferior_arguments): Constify.
8190 (path_command, attach_post_wait): Constify.
8191 * language.c (show_range_command, show_case_command)
8192 (unk_lang_error): Constify.
8193 * language.h (language_defn::la_error)
8194 (language_defn::la_name_of_this): Constify.
8195 * linespec.c (decode_line_2): Constify.
8196 * linux-thread-db.c (thread_db_err_str): Constify.
8197 * lm32-tdep.c (lm32_register_name): Constify.
8198 * m2-exp.y (yyerror): Constify.
8199 * m2-lang.h (m2_yyerror): Constify.
8200 * m32r-tdep.c (m32r_register_names): Constify and make static.
8201 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8202 * m88k-tdep.c (m88k_register_name): Constify.
8203 * macroexp.c (appendmem): Constify.
8204 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8205 (upgrade_type, parse_external, parse_partial_symbols)
8206 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8207 (new_symbol): Constify.
8208 * memattr.c (mem_info_command): Constify.
8209 * mep-tdep.c (register_name_from_keyword): Constify.
8210 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8211 Constify.
8212 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8213 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8214 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8215 cast.
8216 (mi_execute_async_cli_command): Constify.
8217 * mips-tdep.c (mips_register_name): Constify.
8218 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8219 (am33_register_name, am33_2_register_name)
8220 * moxie-tdep.c (moxie_register_names): Constify.
8221 * nat/linux-osdata.c (osdata_type): Constify fields.
8222 * nto-tdep.c (nto_parse_redirection): Constify.
8223 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8224 (lookup_child_selector): Constify.
8225 (objc_methcall::name): Constify.
8226 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8227 (lookup_struct_typedef): Constify.
8228 * objfiles.c (pc_in_section): Constify.
8229 * objfiles.h (pc_in_section): Constify.
8230 * p-exp.y (struct token::oper): Constify.
8231 (yyerror): Constify.
8232 * p-lang.h (pascal_yyerror): Constify.
8233 * parser-defs.h (op_name_standard): Constify.
8234 (op_print::string): Constify.
8235 (exp_descriptor::op_name): Constify.
8236 * printcmd.c (print_address_symbolic): Constify.
8237 * psymtab.c (print_partial_symbols): Constify.
8238 * python/py-breakpoint.c (stop_func): Constify.
8239 (bppy_get_expression): Constify.
8240 * python/py-cmd.c (cmdpy_completer::name): Constify.
8241 (cmdpy_function): Constify.
8242 * python/py-event.c (evpy_add_attribute)
8243 (gdbpy_initialize_event_generic): Constify.
8244 * python/py-event.h (evpy_add_attribute)
8245 (gdbpy_initialize_event_generic): Constify.
8246 * python/py-evts.c (add_new_registry): Constify.
8247 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8248 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8249 * python/py-inferior.c (get_buffer): Add cast.
8250 * python/py-param.c (parm_constant::name): Constify.
8251 * python/py-unwind.c (fprint_frame_id): Constify.
8252 * python/python.c (gdbpy_parameter_value): Constify.
8253 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8254 * remote.c (memory_packet_config::name): Constify.
8255 (show_packet_config_cmd, remote_write_bytes)
8256 (remote_buffer_add_string):
8257 * reverse.c (exec_reverse_once): Constify.
8258 * rs6000-tdep.c (variant::name, variant::description): Constify.
8259 * rust-exp.y (rustyyerror): Constify.
8260 * rust-lang.c (rust_op_name): Constify.
8261 * rust-lang.h (rustyyerror): Constify.
8262 * serial.h (serial_ops::name): Constify.
8263 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8264 (sh_sh3e_register_name, sh_sh2e_register_name)
8265 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8266 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8267 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8268 (sh_sh4al_dsp_register_name): Constify.
8269 * sh64-tdep.c (sh64_register_name): Constify.
8270 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8271 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8272 * stabsread.c (patch_block_stabs, read_type_number)
8273 (ref_map::stabs, ref_add, process_reference)
8274 (symbol_reference_defined, define_symbol, define_symbol)
8275 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8276 (read_one_struct_field, read_struct_fields, read_baseclasses)
8277 (read_tilde_fields, read_struct_type, read_array_type)
8278 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8279 (read_huge_number, read_range_type, read_args, common_block_start)
8280 (find_name_end): Constify.
8281 * stabsread.h (common_block_start, define_symbol)
8282 (process_one_symbol, symbol_reference_defined, ref_add):
8283 * symfile.c (get_section_index, add_symbol_file_command):
8284 * symfile.h (get_section_index): Constify.
8285 * target-descriptions.c (tdesc_type::name): Constify.
8286 (tdesc_free_type): Add cast.
8287 * target.c (find_default_run_target):
8288 (add_deprecated_target_alias, find_default_run_target)
8289 (target_announce_detach): Constify.
8290 (do_option): Constify.
8291 * target.h (add_deprecated_target_alias): Constify.
8292 * thread.c (print_thread_info_1): Constify.
8293 * top.c (deprecated_readline_begin_hook, command_line_input):
8294 Constify.
8295 (init_main): Add casts.
8296 * top.h (handle_line_of_input): Constify.
8297 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8298 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8299 (tfind_command): Rename to ...
8300 (tfind_command_1): ... this and constify.
8301 (tfind_command): New function.
8302 (tfind_end_command, tfind_start_command): Adjust.
8303 (encode_source_string): Constify.
8304 * tracepoint.h (encode_source_string): Constify.
8305 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8306 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8307 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8308 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8309 * tui/tui-win.c (parse_scrolling_args): Constify.
8310 * tui/tui-windata.c (tui_erase_data_content): Constify.
8311 * tui/tui-windata.h (tui_erase_data_content): Constify.
8312 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8313 * tui/tui.c (tui_enable): Add cast.
8314 * utils.c (defaulted_query): Constify.
8315 (init_page_info): Add cast.
8316 (puts_debug, subset_compare): Constify.
8317 * utils.h (subset_compare): Constify.
8318 * varobj.c (varobj_format_string): Constify.
8319 * varobj.h (varobj_format_string): Constify.
8320 * vax-tdep.c (vax_register_name): Constify.
8321 * windows-nat.c (windows_detach): Constify.
8322 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8323 * xml-support.c (gdb_xml_end_element): Constify.
8324 * xml-tdesc.c (tdesc_start_reg): Constify.
8325 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8326 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8327 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8328
995816ba
PA
83292017-04-05 Pedro Alves <palves@redhat.com>
8330
8331 * proc-api.c (struct trans): Constify.
8332 (procfs_note): Constify.
8333 * proc-events.c (struct trans, syscall_table):
8334 * proc-flags.c (struct trans): Constify.
8335 * proc-utils.h (procfs_note): Constify.
8336 * proc-why.c (struct trans): Constify.
8337 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8338 (procfs_detach): Constify.
8339 * sol-thread.c (struct string_map): Constify.
8340 (td_err_string, td_state_string): Constify.
8341
3e83a920
PA
83422017-04-05 Pedro Alves <palves@redhat.com>
8343
8344 * proc-api.c (procfs_filename): Don't initialize
8345 procfs_filename.
8346 (prepare_to_trace): Assume procfs_filename is non-NULL.
8347 (_initialize_proc_api): Give procfs_filename a default value here.
8348
63160a43
PA
83492017-04-05 Pedro Alves <palves@redhat.com>
8350
8351 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8352 'cond_string' parameter.
8353 (extract_exception_regexp): Constify 'string' parameter.
8354 (catch_exception_command_1): Constify.
8355 * breakpoint.c (init_catchpoint)
8356 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8357 parameter.
8358 (ep_parse_optional_if_clause, catch_fork_command_1)
8359 (catch_exec_command_1): Constify.
8360 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8361 parameter.
8362 (ep_parse_optional_if_clause): Constify.
8363 * cli/cli-utils.c (remove_trailing_whitespace)
8364 (check_for_argument): Constify.
8365 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8366 non-const overload.
8367 (check_for_argument): Likewise.
8368
9b2eba3d
PA
83692017-04-05 Pedro Alves <palves@redhat.com>
8370
8371 * event-top.c (command_line_handler): Add cast to execute_command
8372 call.
8373 * record-btrace.c (cmd_record_btrace_bts_start)
8374 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8375 (cmd_record_btrace_start): Add cast to execute_command call.
8376 * record-full.c (record_full_goto_insn):
8377 * record.c (record_start, record_stop): Add cast to
8378 execute_command_to_string calls.
8379 (cmd_record_start): Add cast to execute_command calls.
8380
2adadf51
PA
83812017-04-05 Pedro Alves <palves@redhat.com>
8382
8383 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8384 static inline function.
8385 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8386 array and use gdb_PyArg_ParseTupleAndKeywords.
8387 * python/py-cmd.c (cmdpy_init): Likewise.
8388 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8389 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8390 (infpy_search_memory): Likewise.
8391 * python/py-objfile.c (objfpy_add_separate_debug_file)
8392 (gdbpy_lookup_objfile): Likewise.
8393 * python/py-symbol.c (gdbpy_lookup_symbol)
8394 (gdbpy_lookup_global_symbol): Likewise.
8395 * python/py-type.c (gdbpy_lookup_type): Likewise.
8396 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8397 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8398 Likewise.
8399
0d1f4ceb
PA
84002017-04-05 Pedro Alves <palves@redhat.com>
8401
8402 * python/python-internal.h (gdb_PyGetSetDef): New type.
8403 * python/py-block.c (block_object_getset)
8404 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8405 * python/py-event.c (event_object_getset)
8406 (finish_breakpoint_object_getset): Likewise.
8407 * python/py-inferior.c (inferior_object_getset): Likewise.
8408 * python/py-infthread.c (thread_object_getset): Likewise.
8409 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8410 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8411 * python/py-objfile.c (objfile_getset): Likewise.
8412 * python/py-progspace.c (pspace_getset): Likewise.
8413 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8414 Likewise.
8415 * python/py-record.c (recpy_record_getset): Likewise.
8416 * python/py-symbol.c (symbol_object_getset): Likewise.
8417 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8418 Likewise.
8419 * python/py-type.c (type_object_getset, field_object_getset):
8420 Likewise.
8421 * python/py-value.c (value_object_getset): Likewise.
8422
4d759979
PA
84232017-04-05 Pedro Alves <palves@redhat.com>
8424
8425 * python/python-internal.h (gdb_PyObject_CallMethod)
8426 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8427 New functions.
8428 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8429 (PySys_GetObject, PySys_SetPath): New macros.
8430
fdf9e36f
PA
84312017-04-05 Pedro Alves <palves@redhat.com>
8432
8433 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8434 info_osdata_command.
8435 * osdata.c (info_osdata_command): Rename to ...
8436 (info_osdata): ... this. Constify 'type' parameter, and remove
8437 the 'from_tty' parameter. Accept NULL TYPE.
8438 (info_osdata_command): New function.
8439 * osdata.h (info_osdata_command): Remove declaration.
8440 (info_osdata): New declaration.
8441
9f33b8b7
PA
84422017-04-05 Pedro Alves <palves@redhat.com>
8443
8444 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8445 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8446 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8447 parameter.
8448 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8449 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8450 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8451 parameter.
8452 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8453 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8454 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8455 (mi_cmd_file_list_exec_source_files)
8456 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8457 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8458 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8459 parameter.
8460 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8461 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8462 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8463 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8464 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8465 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8466 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8467 'command' parameter.
8468 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8469 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8470 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8471 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8472 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8473 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8474 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8475 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8476 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8477 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8478 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8479 parameter.
8480 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8481 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8482 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8483 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8484 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8485 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8486 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8487 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8488 (mi_cmd_data_list_changed_registers)
8489 (mi_cmd_data_write_register_values)
8490 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8491 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8492 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8493 (mi_cmd_list_features, mi_cmd_list_target_features)
8494 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8495 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8496 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8497 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8498 (mi_cmd_trace_frame_collected): Constify 'command'
8499 parameter.
8500 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8501 'command' parameter.
8502
67cb5b2d
PA
85032017-04-05 Pedro Alves <palves@redhat.com>
8504
8505 * ada-lang.c (ada_completer_word_break_characters): Now a const
8506 array.
8507 (ada_get_gdb_completer_word_break_characters): Constify.
8508 * completer.c (gdb_completer_command_word_break_characters)
8509 (gdb_completer_file_name_break_characters)
8510 (gdb_completer_quote_characters): Now const arrays.
8511 (get_gdb_completer_quote_characters): Constify.
8512 (set_rl_completer_word_break_characters): New function.
8513 (set_gdb_completion_word_break_characters)
8514 (complete_line_internal): Use it.
8515 * completer.h (get_gdb_completer_quote_characters): Constify.
8516 (set_rl_completer_word_break_characters): Declare.
8517 * f-lang.c (f_word_break_characters): Constify.
8518 * language.c (default_word_break_characters): Constify.
8519 * language.h (language_defn::la_word_break_characters): Constify.
8520 (default_word_break_characters): Constify.
8521 * top.c (init_main): Use set_rl_completer_word_break_characters.
8522
7a114964
PA
85232017-04-05 Pedro Alves <palves@redhat.com>
8524
8525 * aix-thread.c (aix_thread_pid_to_str)
8526 (aix_thread_extra_thread_info): Constify.
8527 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8528 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8529 (bsd_uthread_pid_to_str): Constify.
8530 * corelow.c (core_pid_to_str): Constify.
8531 * darwin-nat.c (darwin_pid_to_str): Constify.
8532 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8533 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8534 Constify.
8535 * gnu-nat.c (gnu_pid_to_str): Constify.
8536 * go32-nat.c (go32_pid_to_str): Constify.
8537 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8538 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8539 * inferior.c (inferior_pid_to_str): Constify.
8540 * linux-nat.c (linux_nat_pid_to_str): Constify.
8541 * linux-tdep.c (linux_core_pid_to_str): Constify.
8542 * linux-thread-db.c (thread_db_pid_to_str)
8543 (thread_db_extra_thread_info): Constify.
8544 * nto-tdep.c (nto_extra_thread_info): Constify.
8545 * nto-tdep.h (nto_extra_thread_info): Constify.
8546 * obsd-nat.c (obsd_pid_to_str): Constify.
8547 * procfs.c (procfs_pid_to_str): Constify.
8548 * ravenscar-thread.c (ravenscar_extra_thread_info)
8549 (ravenscar_pid_to_str): Constify.
8550 * remote-sim.c (gdbsim_pid_to_str): Constify.
8551 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8552 Constify.
8553 * sol-thread.c (solaris_pid_to_str): Constify.
8554 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8555 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8556 * target.c (default_pid_to_str, target_pid_to_str)
8557 (normal_pid_to_str, default_pid_to_str): Constify.
8558 * target.h (target_ops::to_pid_to_str)
8559 (target_ops::to_extra_thread_info): Constify.
8560 (target_pid_to_str, normal_pid_to_str): Constify.
8561 * windows-nat.c (windows_pid_to_str): Constify.
8562 * gdbarch.sh (core_pid_to_str): Constify.
8563 * target-delegates.c: Regenerate.
8564 * gdbarch.h, gdbarch.c: Regenerate.
8565
69bbf465
PA
85662017-04-05 Pedro Alves <palves@redhat.com>
8567
8568 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8569 the memory of the temporary warning_pre_print override.
8570 * utils.c (warning_pre_print): Constify.
8571 * utils.h (warning_pre_print): Constify.
8572
be47f9e8
PA
85732017-04-05 Pedro Alves <palves@redhat.com>
8574
8575 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8576 (shell_command): New function.
8577 (make_command): Use std::string.
8578 (init_cli_cmds): Register shell_command instead of shell_escape.
8579
bde6261a
PA
85802017-04-05 Pedro Alves <palves@redhat.com>
8581
8582 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8583 * tracepoint.c (default_collect): Don't initialize.
8584
b38ef47f
PA
85852017-04-05 Pedro Alves <palves@redhat.com>
8586
8587 * macroexp.c (macro_buffer::shared): Now a bool.
8588 (init_buffer): Update.
8589 (init_shared_buffer): Constify 'addr' parameter.
8590 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8591 casts.
8592
f995bbe8
PA
85932017-04-05 Pedro Alves <palves@redhat.com>
8594
8595 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8596 * disasm.c (set_disassembler_options): Constify local.
8597 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8598
4a596fe2
SDJ
85992017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8600
8601 PR gdb/21352
8602 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8603 option.
8604
2cad08ea
YQ
86052017-04-05 Yao Qi <yao.qi@linaro.org>
8606
8607 * frame.c (frame_unwind_register_unsigned): Call
8608 frame_unwind_register_value.
8609
55a98976
YQ
86102017-04-05 Yao Qi <yao.qi@linaro.org>
8611
8612 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8613 Use gdb_test_multiple, and don't match anchor.
8614
4ac40124
PA
86152017-04-05 Pedro Alves <palves@redhat.com>
8616
8617 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8618 (Write After Approval): Remove Simon Marchi.
8619
c053b654
PA
86202017-04-05 Pedro Alves <palves@redhat.com>
8621
8622 * common/gdb_optional.h (optional::optional): Make constexpr and
8623 initialize m_dummy.
8624
4c7bf4f9
JB
86252017-04-04 John Baldwin <jhb@FreeBSD.org>
8626
8627 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8628 (amd64fbsd_jmp_buf_reg_offset): Remove.
8629 (amd64fbsd_supply_uthread): Remove function.
8630 (amd64fbsd_collect_uthread): Remove function.
8631 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8632 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8633 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8634 (fbsd-nat.c): Update comment.
8635 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8636 (i386fbsd_jmp_buf_reg_offset): Remove.
8637 (i386fbsd_supply_uthread): Remove function.
8638 (i386fbsd_collect_uthread): Remove function.
8639 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8640
1e1a8bef
JB
86412017-04-04 John Baldwin <jhb@FreeBSD.org>
8642
8643 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8644 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8645 * NEWS: Mention that support for FreeBSD/alpha was removed.
8646 * alpha-fbsd-tdep.c: Delete file.
8647 * config/alpha/fbsd.mh: Delete file.
8648 * configure.host: Delete alpha*-*-freebsd* and
8649 alpha*-*-kfreebsd*-gnu.
8650 * configure.tgt: Delete alpha*-*-freebsd* and
8651 alpha*-*-kfreebsd*-gnu.
8652
49907934
JB
86532017-04-04 John Baldwin <jhb@FreeBSD.org>
8654
8655 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8656 amd64bsd_store_inferior_registers): Use ptid from regcache.
8657
6f77053d
PA
86582017-04-04 Pedro Alves <palves@redhat.com>
8659
8660 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8661 data fields, make them private and add "m_" prefixes.
8662 (lnp_state_machine::lnp_state_machine): New ctor.
8663 (record_line, check_line_address, handle_set_discriminator)
8664 (handle_set_address, handle_advance_pc, handle_special_opcode)
8665 (handle_advance_line, handle_set_file, handle_negate_stmt)
8666 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8667 (end_sequence, advance_line): New methods.
8668 (m_gdbarch, m_record_lines_p): New fields.
8669 (lnp_reader_state): Delete.
8670 (dwarf_record_line): Rename to ...
8671 (lnp_state_machine::record_line): ... adjust.
8672 (init_lnp_state_machine): Delete.
8673 (lnp_state_machine::lnp_state_machine): New.
8674 (check_line_address): Rename to ...
8675 (lnp_state_machine::check_line_address): This.
8676 (dwarf_decode_lines_1): Remove reference to "reader_state".
8677 Adjust lnp_state_machine having a non-default ctor. Use bool.
8678 State machine internal state manipulation moved to
8679 lnp_state_machine methods.
8680
9c541725
PA
86812017-04-04 Pedro Alves <palves@redhat.com>
8682
8683 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8684 unittests/offset-type-selftests.c.
8685 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8686 * common/offset-type.h: New file.
8687 * common/preprocessor.h: New file.
8688 * common/traits.h: New file.
8689 * common/valid-expr.h: New file.
8690 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8691 sect_offset and cu_offset strong typedefs throughout.
8692 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8693 typedefs throughout.
8694 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8695 sect_offset and cu_offset strong typedefs throughout.
8696 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8697 typedefs throughout.
8698 * gdbtypes.h: Include "common/offset-type.h".
8699 (cu_offset): Now an offset type (strong typedef) instead of a
8700 struct.
8701 (sect_offset): Likewise.
8702 (union call_site_parameter_u): Rename "param_offset" field to
8703 "param_cu_off".
8704 * unittests/offset-type-selftests.c: New file.
8705
ecfb656c
PA
87062017-04-04 Pedro Alves <palves@redhat.com>
8707
8708 * common/underlying.h: New file.
8709 * dwarf2read.c: Include "common/gdb_optional.h" and
8710 "common/underlying.h".
8711 (dir_index, file_name_index): New types.
8712 (file_entry): Use them.
8713 (file_entry::include): Use to_underlying.
8714 (line_header::add_file_name): Use dir_index.
8715 (read_formatted_entries): Use gdb::optional. Read form before
8716 writting to file_entry.
8717 (dwarf_decode_line_header): Use dir_index.
8718 (lnp_state_machine::current_file): Use to_underlying.
8719 (lnp_state_machine::file): Change type to file_name_index.
8720 (dwarf_record_line): Use to_underlying.
8721 (init_lnp_state_machine): Use file_name_index.
8722 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8723
d194f1fe
PA
87242017-04-04 Pedro Alves <palves@redhat.com>
8725
8726 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8727 operator bool, has_value and get methods.
8728
fff8551c
PA
87292017-04-04 Pedro Alves <palves@redhat.com>
8730
8731 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8732 fields.
8733 (line_header): Initialize all data fields. Change type of
8734 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8735 Change type of include_dirs to std::vector<const char *>. Remove
8736 num_include_dirs, include_dirs_size. Change type of file_names to
8737 std::vector<file_entry>. Remove num_file_names, file_names_size.
8738 (line_header::line_header): New.
8739 (line_header::add_include_dir, line_header::add_file_name): New
8740 methods.
8741 (line_header::include_dir_at): Remove NULL check.
8742 (line_header::file_name_at): Add const overload.
8743 (line_header_up): New unique_ptr typedef.
8744 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8745 std::vector. Remove free_line_header call.
8746 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8747 free_line_header call.
8748 (free_cu_line_header): Delete.
8749 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8750 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8751 Adjust to use std::vector.
8752 (free_line_header): Delete.
8753 (free_line_header_voidp): Use delete.
8754 (add_include_dir): Replace with ...
8755 (line_header::add_include_dir): ... this method. Use std::vector.
8756 (add_file_name): Replace with ...
8757 (line_header::add_file_name): ... this method. Use std::vector.
8758 (add_include_dir_stub): Delete.
8759 (read_formatted_entries): Remove memset.
8760 (dwarf_decode_line_header): Return a line_header_up instead of a
8761 raw pointer. Remove cleanup handling. Pass lambdas to
8762 read_formatted_entries. Adjust to use line_header methods.
8763 (dwarf_decode_lines_1): Adjust to use line_header methods.
8764 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8765 use std::vector.
8766
d62a8ae2
SM
87672017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8768
8769 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8770 instead of struct ptid.
8771
db3a1dc7
AH
87722017-05-04 Alan Hayward <alan.hayward@arm.com>
8773
8774 * frame.c (get_frame_register_bytes): Unwind using value.
8775 (put_frame_register_bytes): Likewise.
8776
b1b45502
IB
87772017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8778
8779 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8780 aggregate-like.
8781
ec13808e
JK
87822017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8783
8784 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8785
12316564
YQ
87862017-03-29 Yao Qi <yao.qi@linaro.org>
8787
8788 * gdbthread.h (struct thread_info): Declare constructor and
8789 destructor. Add some in-class member initializers.
8790 * thread.c (free_thread): Remove.
8791 (init_thread_list): Call delete instead of free_thread.
8792 (new_thread): Call thread_info constructor.
8793 (thread_info::thread_info): New function.
8794 (thread_info::~thread_info): New function.
8795 (delete_thread_1): Call delete instead of free_thread.
8796 (make_cleanup_restore_current_thread): Move tp and frame to
8797 inner block.
8798
fe5f7374
AK
87992017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8800
8801 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8802 (arc_skip_prologue): Likewise.
8803 (arc_make_frame_cache): Likewise.
8804 (arc_pv_get_operand): New function.
8805 (arc_is_in_prologue): Likewise.
8806 (arc_analyze_prologue): Likewise.
8807 (arc_print_frame_cache): Likewise.
8808 (MAX_PROLOGUE_LENGTH): New constant.
8809
eea78757
AK
88102017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8811
8812 * configure.tgt: Add arc-insn.o.
8813 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8814 (dump_arc_instruction_command): New function.
8815 (arc_fprintf_disasm): Likewise.
8816 (arc_disassemble_info): Likewise.
8817 (arc_insn_get_operand_value): Likewise.
8818 (arc_insn_get_operand_value_signed): Likewise.
8819 (arc_insn_get_memory_base_reg): Likewise.
8820 (arc_insn_get_memory_offset): Likewise.
8821 (arc_insn_get_branch_target): Likewise.
8822 (arc_insn_dump): Likewise.
8823 (arc_insn_get_linear_next_pc): Likewise.
8824 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8825 (arc_disassemble_info): Likewise.
8826 (arc_insn_get_branch_target): Likewise.
8827 (arc_insn_get_linear_next_pc): Likewise.
8828 * NEWS: Mention new "maint print arc arc-instruction".
8829
3be78afd
AK
88302017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8831
8832 * arc-tdep (maintenance_print_arc_list): New variable.
8833 (maintenance_print_arc_command): New function.
8834
296ec4fa
AK
88352017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8836
8837 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8838 Add "limm" and "reserved".
8839 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8840 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8841 * arc-tdep.h (arc_regnum): Likewise.
8842
f74f865e
MF
88432017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8844
8845 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8846 for THREADPTR register.
8847 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8848 register.
8849 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8850 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8851 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8852
0d0bf81a
MF
88532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8854
8855 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8856 registers above gdbarch_num_regs (gdbarch) as privileged in
8857 call0 ABI.
8858
0ce4291e
MF
88592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8860
8861 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8862 for a single specified register or for all registers in
8863 a0_base..a0_base + C0_NREGS range.
8864 (supply_gregset_reg): Call regcache_raw_supply for a single
8865 specified register or for all registers in a0_base..a0_base +
8866 C0_NREGS range.
8867
c56054f9
MF
88682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8869
8870 * arch/xtensa.h (C0_NREGS): Add definition.
8871 * xtensa-tdep.c (C0_NREGS): Remove definition.
8872
a4398628
MF
88732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8874
8875 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8876 Drop xtensa_default_isa initialization.
8877 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8878
8c43009f
PA
88792017-03-27 Pedro Alves <palves@redhat.com>
8880
8881 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8882 (file_entry::include_dir): New method.
8883 (line_header::include_dir_at, line_header::file_name_at): New
8884 methods.
8885 (setup_type_unit_groups, setup_type_unit_groups)
8886 (psymtab_include_file_name): Simplify using the new methods.
8887 (lnp_state_machine) <the_line_header>: New field.
8888 <file>: Add comment.
8889 (lnp_state_machine::current_file): New method.
8890 (dwarf_record_line): Simplify using the new methods.
8891 (init_lnp_state_machine): Initialize the "the_line_header" field.
8892 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8893 Simplify using the new methods.
8894
a7e80b9e
PA
88952017-03-27 Pedro Alves <palves@redhat.com>
8896
8897 * cp-name-parser.y (make_empty): Delete.
8898 (demangler_special, nested_name, ptr_operator, array_indicator)
8899 (direct_declarator, declarator_1): Use fill_comp instead of
8900 make_empty.
8901
21047726
PA
89022017-03-27 Pedro Alves <palves@redhat.com>
8903
8904 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8905 to ATTRIBUTE_PRINTF.
8906 * solib-target.c (library_list_start_list): Print "string" not
8907 "version".
8908 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8909 gdb_xml_error call.
8910
d721ba37
PA
89112017-03-27 Pedro Alves <palves@redhat.com>
8912
8913 * dwarf2read.c (struct file_and_directory): New.
8914 (dwarf2_get_dwz_file): Adjust to use std::string.
8915 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8916 (find_file_and_directory): Adjust to return a file_and_directory
8917 object.
8918 (read_file_scope): Adjust to use file_and_directory. Remove
8919 make_cleanup/do_cleanups calls.
8920 (open_and_init_dwp_file): Adjust to use std::string. Remove
8921 make_cleanup/do_cleanups calls.
8922 * python/python.c (do_start_initialization): Adjust to ldirname
8923 returning a std::string.
8924 * utils.c (ldirname): Now returns a std::string.
8925 * utils.h (ldirname): Change return type to std::string.
8926 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8927 returning a std::string.
8928 * xml-tdesc.c (file_read_description_xml): Likewise.
8929
ed771251
AH
89302017-03-24 Alan Hayward <alan.hayward@arm.com>
8931
8932 * regcache.c (regcache_debug_print_register): New function.
8933 * regcache.h (regcache_debug_print_register): New declaration.
8934 * target.c (debug_print_register): Remove.
8935 (target_fetch_registers): Call regcache_debug_print_register.
8936 (target_store_registers): Likewise.
8937
568c1b9f
PB
89382017-03-24 Pádraig Brady <pbrady@fb.com>
8939
8940 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8941 reference beyond the 'lh->include_dirs' array before accessing to
8942 it.
8943 (psymtab_include_file_name): Likewise.
8944 (dwarf_decode_lines_1): Likewise.
8945 (dwarf_decode_lines): Likewise.
8946 (file_file_name): Likewise.
8947
3e00d44f
SM
89482017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8949
8950 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8951 inferior_ptid.
8952 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8953 ps_lsetfpregs): Likewise.
8954 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8955 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8956 ps_lsetfpregs): Likewise.
8957 * target.c (target_fetch_registers, target_store_registers):
8958 Remove asserts.
8959
077ae656
AH
89602017-03-23 Alan Hayward <alan.hayward@arm.com>
8961
8962 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8963
1e2b521d
YQ
89642017-03-23 Yao Qi <yao.qi@linaro.org>
8965
8966 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8967 (_initialize_aarch64_tdep): Register it.
8968 (aarch64_record_load_store): Handle PRFM instruction.
8969 (aarch64_process_record_test): New function.
8970
33877125
YQ
89712017-03-23 Yao Qi <yao.qi@linaro.org>
8972
8973 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8974 indentation.
8975
a0eef940
YQ
89762017-03-23 Yao Qi <yao.qi@linaro.org>
8977
8978 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8979
3f2a3564
PR
89802017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8981
8982 python/python.c (do_start_initialization): Fix memory leak.
8983
b67aeab0
SM
89842017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8985
8986 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8987 using get_ptrace_pid.
8988 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8989 inferior_ptid.
8990 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8991 inferior_ptid instead of pid.
8992
ffdbe864
YQ
89932017-03-22 Yao Qi <yao.qi@linaro.org>
8994
8995 * aarch64-tdep.c: Wrap locally used classes in anonymous
8996 namespace.
8997 * arm-tdep.c: Likewise.
8998 * linespec.c: Likewise.
8999 * ui-out.c: Likewise.
9000
9d736fbf
JG
90012017-03-22 Jonah Graham <jonah@kichwacoders.com>
9002
9003 PR gdb/19637
9004 * python/lib/gdb/printer/bound_registers.py: Import sys.
9005
3de88e9a
SM
90062017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9007
9008 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9009 windows_thread_info parameter and use it instead of
9010 current_thread.
9011 (windows_fetch_inferior_registers): Don't set current_thread,
9012 pass the thread to do_windows_fetch_inferior_registers. Use
9013 ptid from regcache instead of inferior_ptid.
9014 (do_windows_store_inferior_registers): Add windows_thread_info
9015 parameter and use it instead of current_thread.
9016 (windows_store_inferior_registers): Don't set current_thread,
9017 pass the thread to do_windows_store_inferior_registers. Use
9018 ptid from regcache instead of inferior_ptid.
9019
0e7b8f61
SM
90202017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9021
9022 * ser-mingw.c (ser_windows_raw): Remove reference to
9023 struct serial::current_timeout.
9024
5badf10a
IR
90252017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9026
9027 PR tdep/20928
9028 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9029 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9030 (sparc64_fsr_type): Fix %fsr decoding.
9031
cee59b3f
TW
90322017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9033
9034 * python/py-record-btrace.c (btpy_insn_data): Change return type
9035 for Python 2.
9036
639a9038
SM
90372017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9038
9039 * spu-linux-nat.c (spu_fetch_inferior_registers,
9040 spu_store_inferior_registers): Use ptid from regcache, set and
9041 restore inferior_ptid.
9042 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9043 Likewise.
9044
bcc0c096
SM
90452017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9046
9047 * i386-linux-nat.c (fetch_register, store_register,
9048 i386_linux_fetch_inferior_registers,
9049 i386_linux_store_inferior_registers): Use ptid from regcache.
9050 * ia64-linux-nat.c (ia64_linux_fetch_register,
9051 ia64_linux_store_register): Likewise.
9052 * inf-ptrace.c (inf_ptrace_fetch_register,
9053 inf_ptrace_store_register): Likewise.
9054 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9055 m32r_linux_store_inferior_registers): Likewise.
9056 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9057 m68kbsd_store_inferior_registers): Likewise.
9058 * m68k-linux-nat.c (fetch_register, store_register,
9059 m68k_linux_fetch_inferior_registers,
9060 m68k_linux_store_inferior_registers): Likewise.
9061 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9062 m88kbsd_store_inferior_registers): Likewise.
9063 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9064 mips_fbsd_store_inferior_registers): Likewise.
9065 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9066 mips64_linux_regsets_store_registers): Likewise.
9067 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9068 mipsnbsd_store_inferior_registers): Likewise.
9069 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9070 mips64obsd_store_inferior_registers): Likewise.
9071 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9072 Likewise.
9073 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9074 ppcfbsd_store_inferior_registers): Likewise.
9075 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9076 ppc_linux_store_inferior_registers): Likewise.
9077 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9078 ppcnbsd_store_inferior_registers): Likewise.
9079 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9080 ppcobsd_store_registers): Likewise.
9081 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9082 Likewise.
9083 * ravenscar-thread.c (ravenscar_fetch_registers,
9084 ravenscar_store_registers, ravenscar_prepare_to_store):
9085 Likewise.
9086 * record-btrace.c (record_btrace_fetch_registers,
9087 record_btrace_store_registers, record_btrace_prepare_to_store):
9088 Likewise.
9089 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9090 Lookup inferior using ptid from regcache, instead of
9091 current_inferior.
9092 * remote.c (remote_fetch_registers, remote_store_registers): Use
9093 ptid from regcache.
9094 * rs6000-nat.c (fetch_register, store_register): Likewise.
9095 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9096 s390_linux_store_inferior_registers): Likewise.
9097 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9098 shnbsd_store_inferior_registers): Likewise.
9099 * sol-thread.c (sol_thread_fetch_registers,
9100 sol_thread_store_registers): Likewise.
9101 * sparc-nat.c (sparc_fetch_inferior_registers,
9102 sparc_store_inferior_registers): Likewise.
9103 * tilegx-linux-nat.c (fetch_inferior_registers,
9104 store_inferior_registers): Likewise.
9105 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9106 vaxbsd_store_inferior_registers): Likewise.
9107 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9108 store_xtregs): Likewise.
9109
c0f55cc6
AV
91102017-03-20 Artemiy Volkov <artemiyv@acm.org>
9111
9112 PR gdb/14441
9113 * NEWS: Mention support for rvalue references in GDB and python.
9114 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9115 supports both lvalue and rvalue references.
9116
15c0a2a9
AV
91172017-03-20 Artemiy Volkov <artemiyv@acm.org>
9118
9119 PR gdb/14441
9120 * gdbtypes.c (rank_one_type): Implement overloading
9121 resolution rules regarding rvalue references.
9122
aa006118
AV
91232017-03-20 Artemiy Volkov <artemiyv@acm.org>
9124
9125 PR gdb/14441
9126 * aarch64-tdep.c (aarch64_type_align)
9127 (aarch64_extract_return_value, aarch64_store_return_value): Change
9128 lvalue reference type checks to general reference type checks.
9129 * amd64-tdep.c (amd64_classify): Likewise.
9130 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9131 Likewise.
9132 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9133 (arm_store_return_value): Likewise.
9134 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9135 * c-typeprint.c (c_print_type): Likewise.
9136 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9137 (cplus_number_of_children, cplus_describe_child): Likewise.
9138 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9139 * completer.c (expression_completer): Likewise.
9140 * cp-support.c (make_symbol_overload_list_adl_namespace):
9141 Likewise.
9142 * darwin-nat-info.c (info_mach_region_command): Likewise.
9143 * dwarf2loc.c (entry_data_value_coerce_ref)
9144 (value_of_dwarf_reg_entry): Likewise.
9145 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9146 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9147 Likewise.
9148 * findvar.c (extract_typed_address, store_typed_address):
9149 Likewise.
9150 * gdbtypes.c (rank_one_type): Likewise.
9151 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9152 * infcall.c (value_arg_coerce): Likewise.
9153 * language.c (pointer_type): Likewise.
9154 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9155 Likewise.
9156 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9157 * mn10300-tdep.c (mn10300_type_align): Likewise.
9158 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9159 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9160 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9161 Likewise.
9162 * printcmd.c (print_formatted, x_command): Likewise.
9163 * python/py-type.c (typy_get_composite, typy_template_argument):
9164 Likewise.
9165 * python/py-value.c (valpy_referenced_value)
9166 (valpy_get_dynamic_type, value_has_field): Likewise.
9167 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9168 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9169 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9170 * spu-tdep.c (spu_scalar_value_p): Likewise.
9171 * symtab.c (lookup_symbol_aux): Likewise.
9172 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9173 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9174 Likewise.
9175 * valops.c (value_cast_pointers, value_cast)
9176 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9177 (value_struct_elt, value_struct_elt_bitpos)
9178 (value_find_oload_method_list, find_overload_match)
9179 (value_rtti_indirect_type): Likewise.
9180 * valprint.c (val_print_scalar_type_p, generic_val_print):
9181 Likewise.
9182 * value.c (value_actual_type, value_as_address, unpack_long)
9183 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9184 (coerce_ref): Likewise.
9185 * varobj.c (varobj_get_value_type): Likewise.
9186
3fcf899d
AV
91872017-03-20 Artemiy Volkov <artemiyv@acm.org>
9188
9189 PR gdb/14441
9190 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9191 table of constants.
9192 * python/lib/gdb/command/explore.py: Support exploring values
9193 of rvalue reference types.
9194 * python/lib/gdb/types.py: Implement get_basic_type() for
9195 rvalue reference types.
9196 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9197 constant.
9198 * python/py-value.c (valpy_getitem): Add an rvalue reference
9199 check.
9200 (valpy_reference_value): Add new parameter "refcode".
9201 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9202 New wrappers for valpy_reference_value().
9203 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9204 (gdbpy_invoke_xmethod): Likewise.
9205
4297a3f0
AV
92062017-03-20 Artemiy Volkov <artemiyv@acm.org>
9207
9208 PR gdb/14441
9209 * dwarf2read.c (process_die, read_type_die_1): Handle the
9210 DW_TAG_rvalue_reference_type DIE.
9211 (read_tag_reference_type): Add new parameter "refcode".
9212
e1cb3213
AV
92132017-03-20 Artemiy Volkov <artemiyv@acm.org>
9214
9215 PR gdb/14441
9216 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9217 (c_type_print_modifier, c_type_print_varspec_suffix)
9218 (c_type_print_base): Support printing rvalue reference types.
9219 * c-valprint.c (c_val_print, c_value_print): Support printing
9220 rvalue reference values.
9221
e4347c89
AV
92222017-03-20 Artemiy Volkov <artemiyv@acm.org>
9223
9224 PR gdb/14441
9225 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9226 typename.
9227 * cp-support.c (replace_typedefs): Handle
9228 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9229 * python/py-type.c (typy_lookup_type): Likewise.
9230
53cc15f5
AV
92312017-03-20 Artemiy Volkov <artemiyv@acm.org>
9232
9233 PR gdb/14441
9234 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9235 * parse.c (insert_type): Change assert statement.
9236 (follow_types): Handle rvalue reference types.
9237 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9238 constant.
9239
a65cfae5
AV
92402017-03-20 Artemiy Volkov <artemiyv@acm.org>
9241
9242 PR gdb/14441
9243 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9244 value_ref() interface.
9245 * c-valprint.c (c_value_print): Likewise.
9246 * infcall.c (value_arg_coerce): Likewise.
9247 * python/py-value.c (valpy_reference_value): Likewise.
9248 * valops.c (value_cast, value_reinterpret_cast)
9249 (value_dynamic_cast, typecmp): Likewise.
9250 (value_ref): Parameterize by kind of return value reference type.
9251 * value.h (value_ref): Add new parameter "refcode".
9252
3b224330
AV
92532017-03-20 Artemiy Volkov <artemiyv@acm.org>
9254
9255 PR gdb/14441
9256 * dwarf2read.c (read_tag_reference_type): Use
9257 lookup_lvalue_reference_type() instead of lookup_reference_type().
9258 * eval.c (evaluate_subexp_standard): Likewise.
9259 * f-exp.y: Likewise.
9260 * gdbtypes.c (make_reference_type, lookup_reference_type):
9261 Generalize with rvalue reference types.
9262 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9263 convenience wrappers for lookup_reference_type().
9264 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9265 reference kind parameter.
9266 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9267 wrappers for lookup_reference_type().
9268 * guile/scm-type.c (gdbscm_type_reference): Use
9269 lookup_lvalue_reference_type() instead of lookup_reference_type().
9270 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9271 * parse.c (follow_types): Likewise.
9272 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9273 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9274 Likewise.
9275 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9276 (gdbpy_invoke_xmethod): Likewise.
9277 * stabsread.c: Provide extra argument to make_reference_type()
9278 call.
9279 * valops.c (value_ref, value_rtti_indirect_type): Use
9280 lookup_lvalue_reference_type() instead of lookup_reference_type().
9281
f9aeb8d4
AV
92822017-03-20 Artemiy Volkov <artemiyv@acm.org>
9283
9284 PR gdb/14441
9285 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9286 (TYPE_IS_REFERENCE): New macro.
9287 (struct type): Add rvalue_reference_type field.
9288 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9289
51457a05
MAL
92902017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9291
9292 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9293 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9294 New function definition.
9295 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9296 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9297 New function declaration.
9298 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9299 * mi/mi-interp.h: New file.
9300 * solib.c (info_sharedlibrary_command): Replace for loop with
9301 ALL_SO_LIBS macro
9302 * solib.h (update_solib_list): New function declaration.
9303 (so_list_head): Move macro.
9304 * solist.h (ALL_SO_LIBS): New macro.
9305
e696b3ad
MAL
93062017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9307
9308 * infcmd.c (post_create_inferior): Remove unused argument in
9309 call to solib_add.
9310 * remote.c (remote_start_remote): Likewise.
9311 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9312 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9313 (enable_break): Likewise.
9314 * solib.c (update_solib_list): Remove unused target argument
9315 and its documentation.
9316 (solib_add): Remove unused target argument. Remove unused
9317 argument in call to update_solib_list.
9318 (info_sharedlibrary_command): Remove unused argument in call
9319 to update_solib_list.
9320 (sharedlibrary_command): Remove unused argument in call to
9321 solib_add.
9322 (handle_solib_event): Likewise.
9323 (reload_shared_libraries): Likewise.
9324 * solib.h (solib_add): Remove unused target argument.
9325
dcb84eda
AA
93262017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9327
9328 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9329 (s390_displaced_step_fixup): Cover relative branches with the
9330 default fixup handling. This fixes lack of support for some
9331 relative branch instructions.
9332
d9cb6cdc
SM
93332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9334
9335 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9336 ptid from regcache.
9337
1afaf9f4
SM
93382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9339
9340 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9341 i386_darwin_store_inferior_registers): Use ptid from regcache.
9342
aac12e24
SM
93432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9344
9345 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9346 i386bsd_store_inferior_registers): Use ptid from regcache.
9347
bbe1eef1
SM
93482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9349
9350 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9351 hppaobsd_store_registers): Use ptid from regcache.
9352
10799020
SM
93532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9354
9355 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9356 hppanbsd_store_registers): Use ptid from regcache.
9357
00204cf7
SM
93582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9359
9360 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9361 from regcache. Use get_ptrace_pid.
9362
11a33714
SM
93632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9364
9365 * corelow.c (get_core_register_section): Use ptid from regcache,
9366 update doc.
9367
317cd492
SM
93682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9369
9370 * bsd-uthread.c (bsd_uthread_fetch_registers,
9371 bsd_uthread_store_registers): Use ptid from regcache, set and
9372 restore inferior_ptid.
9373
9ac8a7c2
SM
93742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9375
9376 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9377 fetch_fp_regs, store_register, store_regs, store_fp_register,
9378 store_fp_regs): Use ptid from regcache.
9379
4ac4bb6a
SM
93802017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9381
9382 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9383 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9384 store_vfp_regs): Use ptid from regcache.
9385
9bcbdca8
PA
93862017-03-17 Pedro Alves <palves@redhat.com>
9387
9388 PR remote/21188
9389 * ser-base.c (ser_base_wait_for): Add comment.
9390 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9391 version.
9392 * ser-unix.c (hardwire_raw): Remove reference to
9393 scb->current_timeout.
9394 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9395 (hardwire_ops): Install ser_base_readchar instead of
9396 hardwire_readchar.
9397 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9398 Remove fields.
9399
7503099f
JG
94002017-03-17 Jonah Graham <jonah@kichwacoders.com>
9401
9402 PR gdb/19637
9403 * python/lib/gdb/printer/bound_registers.py: Add support for
9404 Python 3.
9405
7942e96e
AA
94062017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9407
9408 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9409 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9410 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9411 byte_offset to subobj_byte_offset. Fix the handling of
9412 DWARF_VALUE_STACK on big-endian targets when coming via an
9413 implicit pointer.
9414 (dwarf2_evaluate_loc_desc): Adjust call to
9415 dwarf2_evaluate_loc_desc_full.
9416 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9417 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9418
ba14f379
YQ
94192017-03-16 Yao Qi <yao.qi@linaro.org>
9420
9421 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9422 and REVSH instructions.
9423
b121eeb9
YQ
94242017-03-16 Yao Qi <yao.qi@linaro.org>
9425
9426 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9427 (arm_record_test): Declare.
9428 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9429 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9430 align with the manual.
9431 (thumb_record_misc): Adjust the code order to align with the
9432 manual.
9433 (thumb2_record_decode_insn_handler): Fix instruction matching.
9434 (instruction_reader_thumb): New class.
9435 (arm_record_test): New function.
9436
728a7913
YQ
94372017-03-16 Yao Qi <yao.qi@linaro.org>
9438
9439 * arm-tdep.c (abstract_memory_reader): New class.
9440 (instruction_reader): New class.
9441 (extract_arm_insn): Add argument 'reader'. Callers updated.
9442 (decode_insn): Likewise.
9443
34b43320
DE
94442017-03-16 Doug Evans <dje@google.com>
9445
a7c0469f
DE
9446 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9447 member. Change type of TYPE member to SCM. All uses updated.
9448 (lsscm_make_lazy_string_smob): Add assert.
9449 (lsscm_make_lazy_string): Flag bad length values.
9450 (lsscm_elt_type): New function.
9451 (gdbscm_lazy_string_to_value): Rewrite to use
9452 lsscm_safe_lazy_string_to_value.
9453 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9454 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9455 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9456 in incoming type.
9457 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9458 * guile/scm-type.c (tyscm_scm_to_type): New function.
9459
94602017-03-15 Doug Evans <dje@google.com>
9461
34b43320
DE
9462 PR python/17728, python/18439, python/18779
9463 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9464 member. Change type of TYPE member to PyObject *. All uses updated.
9465 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9466 (gdbpy_create_lazy_string_object): Flag bad length values.
9467 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9468 Handle typedefs in incoming type.
9469 (stpy_lazy_string_elt_type): New function.
9470 (gdbpy_extract_lazy_string): Call it.
9471 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9472 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9473 typedefs in incoming type.
9474
a3a5fecc
DE
94752017-03-16 Doug Evans <dje@google.com>
9476
9477 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9478 * guile/scm-type.c (tyscm_scm_to_type): New function.
9479
28f1c605
JW
94802017-03-16 Jiong Wang <jiong.wang@arm.com>
9481
9482 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9483 "ULONGEST" for "skip".
9484
87c336f6
AA
94852017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9486
9487 PR gdb/21220
9488 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9489 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9490 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9491 over ptrace peek/poke until end of buffer or error.
9492
cf81cf60
SM
94932017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9494
9495 * parse.c (length_of_subexp): Make static.
9496 * parser-defs.h (length_of_subexp): Remove.
9497
a379284a
AA
94982017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9499
9500 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9501 as well.
9502
8a6200ba
PA
95032017-03-14 Pedro Alves <palves@redhat.com>
9504
9505 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9506 (main): Use std::unique_ptr. Remove calls to
9507 cp_demangled_name_parse_free.
9508
f79ec206
SM
95092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9510
9511 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9512 alphabsd_store_inferior_registers): Use regcache->ptid instead
9513 of inferior_ptid.
9514
edb5fb00
SM
95152017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9516
9517 * aix-thread.c (aix_thread_fetch_registers,
9518 aix_thread_store_registers): Use regcache->ptid instead of
9519 inferior_ptid.
9520
55119686
SM
95212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9524 store_gregs_to_thread, fetch_fpregs_from_thread,
9525 store_fpregs_to_thread): Use regcache->ptid instead of
9526 inferior_ptid.
9527
6a06fbb7
SM
95282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9531 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9532 instead of inferior_ptid.
9533
c6386875
SM
95342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * target.c (target_fetch_registers, target_store_registers): Add
9537 assert.
9538
ddaaf0fb
SM
95392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9540
9541 * regcache.h (regcache_get_ptid): New function.
9542 * regcache.c (regcache_get_ptid): New function.
9543
b9da89d1 95442017-03-13 Mark Wielaard <mark@klomp.org>
9545
9546 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9547
5f4d1085
KS
95482017-03-10 Keith Seitz <keiths@redhat.com>
9549
9550 PR c++/8218
9551 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9552
c65d6b55
PA
95532017-03-08 Pedro Alves <palves@redhat.com>
9554
9555 PR gdb/18360
9556 * infrun.c (start_step_over, do_target_resume, resume)
9557 (restart_threads): Assert we're not resuming a thread that is
9558 meant to be stopped.
9559 (infrun_thread_stop_requested_callback): Delete.
9560 (infrun_thread_stop_requested): If the thread is internally
9561 stopped, queue a pending stop event and clear the thread's
9562 inline-frame state.
9563 (handle_stop_requested): New function.
9564 (handle_syscall_event, handle_inferior_event_1): Use
9565 handle_stop_requested.
9566 (handle_stop_requested): New function.
9567 (handle_signal_stop): Set the thread's stop_signal here instead of
9568 at caller.
9569 (finish_step_over): Clear step over info unconditionally.
9570 (handle_signal_stop): If the user had interrupted the event
9571 thread, consider the stop a random signal.
9572 (handle_signal_stop) <signal arrived while stepping over
9573 breakpoint>: Don't restart threads here.
9574 (stop_waiting): Don't clear step-over info here.
9575
15c22686
PA
95762017-03-08 Pedro Alves <palves@redhat.com>
9577
9578 PR 21206
9579 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9580 goes to argument 2, not 1.
9581
6e5d74e7
PA
95822017-03-08 Pedro Alves <palves@redhat.com>
9583
9584 PR cli/21218
9585 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9586 display_gdb_prompt.
9587 (command_line_input): Add comment.
9588
9753a2f6
PA
95892017-03-08 Pedro Alves <palves@redhat.com>
9590
9591 PR tui/21216
9592 * tui/tui-file.c (tui_file::write): New.
9593 * tui/tui-file.h (tui_file): Override "write".
9594 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9595 factored out from ...
9596 (tui_puts): ... here.
9597 (tui_putc): Use them.
9598 (tui_write): New function.
9599 * tui/tui-io.h (tui_write): Declare.
9600
1672e0d9
SDJ
96012017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9602
9603 * Makefile.in (SFILES): Replace "environ.c" with
9604 "common/environ.c".
9605 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9606 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9607 to...
9608 * common/environ.c: ... here.
9609 * environ.h: Moved to...
9610 * common/environ.h: ... here.
9611
f7bb4e3a
PB
96122017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9613
9614 * gdbarch.sh (pstring_ptr): New static function.
9615 (gdbarch_disassembler_options): Use it.
9616 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9617 not valid_disassembler_option->name.
9618 * gdbarch.c: Regenerate.
9619
e45ced6c
PB
96202017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9621
9622 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9623
5f6fd321
PA
96242017-03-07 Pedro Alves <palves@redhat.com>
9625
9626 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9627
6dbb839a 96282017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9629
9630 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9631 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9632 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9633 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9634
d274ecf4
SM
96352017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9636
9637 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9638
df97be55
SM
96392017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9640
9641 * remote.c (remote_add_target_side_commands): Use range-based
9642 for loop.
9643
7d45f3df
YQ
96442017-03-03 Yao Qi <yao.qi@linaro.org>
9645
9646 PR gdb/21165
9647 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9648 value is lazy.
9649 * valprint.c (common_val_print): Likewise.
9650
65b48a81
PB
96512017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9652
9653 * NEWS: Mention new set/show disassembler-options commands.
9654 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9655 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9656 (prospective_options): New static variable.
9657 (gdb_disassembler::gdb_disassembler): Initialize
9658 m_di.disassembler_options.
9659 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9660 (get_disassembler_options): New function.
9661 (set_disassembler_options): Likewise.
9662 (set_disassembler_options_sfunc): Likewise.
9663 (show_disassembler_options_sfunc): Likewise.
9664 (disassembler_options_completer): Likewise.
9665 (_initialize_disasm): Likewise.
9666 * disasm.h (get_disassembler_options): New prototype.
9667 (set_disassembler_options): Likewise.
9668 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9669 (gdbarch_verify_disassembler_options): Likewise.
9670 * gdbarch.c: Regenerate.
9671 * gdbarch.h: Likewise.
9672 * arm-tdep.c (num_disassembly_options): Delete.
9673 (set_disassembly_style): Likewise.
9674 (arm_disassembler_options): New static variable.
9675 (set_disassembly_style_sfunc): Convert short style name into long
9676 option name. Call set_disassembler_options.
9677 (show_disassembly_style_sfunc): New function.
9678 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9679 set_gdbarch_verify_disassembler_options.
9680 (_initialize_arm_tdep): Delete regnames variable and update callers.
9681 (arm_disassembler_options): Initialize.
9682 (disasm_options): New variable.
9683 (num_disassembly_options): Rename from this...
9684 (num_disassembly_styles): ...to this. Compute by scanning through
9685 disasm_options.
9686 (valid_disassembly_styles): Initialize using disasm_options.
9687 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9688 set_arm_regname_option.
9689 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9690 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9691 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9692 set_gdbarch_verify_disassembler_options.
9693 * s390-tdep.c (s390_disassembler_options): New static variable.
9694 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9695 set_gdbarch_verify_disassembler_options.
9696
d538e36d
SM
96972017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9698
9699 * remote.c (remote_add_target_side_condition): Remove "struct"
9700 keyword from range-based for loop.
9701
83621223
SM
97022017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9703
9704 * remote.c (remote_add_target_side_condition): Use range-based
9705 for loop. Update comment.
9706
2123df0e
YQ
97072017-02-27 Yao Qi <yao.qi@linaro.org>
9708
9709 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9710
8e368124
AH
97112017-02-26 Alan Hayward <alan.hayward@arm.com>
9712
9713 * regcache.c (regcache_raw_update): New function.
9714 (regcache_raw_read): Move code to regcache_raw_update.
9715 * regcache.h (regcache_raw_update): New declaration.
9716 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9717
a49dd8dd
JK
97182017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * dwarf2read.c (create_debug_type_hash_table): Initialize
9721 header.signature and header.type_offset_in_tu.
9722
34e4bae9
PA
97232017-02-24 Pedro Alves <palves@redhat.com>
9724
9725 * symtab.c (make_file_symbol_completion_list_1): Use
9726 add_symtab_completions.
9727
b0e4b369
AH
97282017-02-24 Alan Hayward <alan.hayward@arm.com>
9729
9730 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9731
975c21ab
AH
97322017-02-24 Alan Hayward <alan.hayward@arm.com>
9733
9734 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9735 I386_MAX_REGISTER_SIZE.
9736 (i386_pseudo_register_write): Likewise.
9737 (i386_process_record): Likewise.
9738 * i387-tdep.c (i387_supply_xsave): Likewise.
9739 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9740 (store_register): Likewise.
9741
14bc53a8
PA
97422017-02-23 Pedro Alves <palves@redhat.com>
9743
9744 * ada-lang.c: Include "common/function-view.h".
9745 (ada_iterate_over_symbols): Adjust to use function_view as
9746 callback type.
9747 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9748 (ada_make_symbol_completion_list): Use a lambda.
9749 (ada_exc_search_name_matches): Delete.
9750 (name_matches_regex): New.
9751 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9752 * compile/compile-c-support.c: Include "common/function-view.h".
9753 (print_one_macro): Change prototype to accept a ui_file pointer.
9754 (write_macro_definitions): Use a lambda.
9755 * dwarf2read.c: Include "common/function-view.h".
9756 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9757 (dw2_expand_symtabs_matching): Adjust to use function_view as
9758 callback type.
9759 * language.h: Include "common/function-view.h".
9760 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9761 function_view as callback type.
9762 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9763 * linespec.c: Include "common/function-view.h".
9764 (collect_info::add_symbol): New method.
9765 (struct symbol_and_data_callback, iterate_inline_only, struct
9766 symbol_matcher_data, iterate_name_matcher): Delete.
9767 (iterate_over_all_matching_symtabs): Adjust to use function_view
9768 as callback type and lambdas.
9769 (iterate_over_file_blocks): Adjust to use function_view as
9770 callback type.
9771 (decode_compound_collector): Now a class with private fields.
9772 (decode_compound_collector::release_symbols): New method.
9773 (collect_one_symbol): Rename to...
9774 (decode_compound_collector::operator()): ... this and adjust.
9775 (lookup_prefix_sym): decode_compound_collector construction bits
9776 move to decode_compound_collector ctor. Pass the
9777 decode_compound_collector object directly as callback. Remove
9778 cleanups and use decode_compound_collector::release_symbols
9779 instead.
9780 (symtab_collector): Now a class with private fields.
9781 (symtab_collector::release_symtabs): New method.
9782 (add_symtabs_to_list): Rename to...
9783 (symtab_collector::operator()): ... this and adjust.
9784 (collect_symtabs_from_filename): symtab_collector construction
9785 bits move to symtab_collector ctor. Pass the symtab_collector
9786 object directly as callback. Remove cleanups and use
9787 symtab_collector::release_symtabs instead.
9788 (collect_symbols): Delete.
9789 (add_matching_symbols_to_info): Use lambdas.
9790 * macrocmd.c (print_macro_callback): Delete.
9791 (info_macro_command): Use a lambda.
9792 (info_macros_command): Pass print_macro_definition as callable
9793 directly.
9794 (print_one_macro): Remove 'ignore' parameter.
9795 (macro_list_command): Adjust.
9796 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9797 (macro_for_each_data::user_data): Delete field.
9798 (foreach_macro): Adjust to call the function_view.
9799 (macro_for_each): Adjust to use function_view as callback type.
9800 (foreach_macro_in_scope): Adjust to call the function_view.
9801 (macro_for_each_in_scope): Adjust to use function_view as callback
9802 type.
9803 * macrotab.h: Include "common/function-view.h".
9804 (macro_callback_fn): Declare a prototype instead of a pointer.
9805 Remove "user_data" parameter.
9806 (macro_for_each, macro_for_each_in_scope): Adjust to use
9807 function_view as callback type.
9808 * psymtab.c (partial_map_expand_apply)
9809 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9810 Adjust to use function_view as callback type and to return bool.
9811 (psym_expand_symtabs_matching): Adjust to use function_view as
9812 callback types.
9813 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9814 to use function_view as callback type and to return bool.
9815 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9816 callback types.
9817 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9818 as callback types.
9819 * symfile.h: Include "common/function-view.h".
9820 (expand_symtabs_file_matcher_ftype)
9821 (expand_symtabs_symbol_matcher_ftype)
9822 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9823 return bool.
9824 (quick_symbol_functions::map_symtabs_matching_filename)
9825 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9826 function_view as callback type and return bool.
9827 (expand_symtabs_matching): Adjust to use function_view as callback
9828 type.
9829 (maintenance_expand_name_matcher)
9830 (maintenance_expand_file_matcher): Delete.
9831 (maintenance_expand_symtabs): Use lambdas.
9832 * symtab.c (iterate_over_some_symtabs): Adjust to use
9833 function_view as callback types and return bool.
9834 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9835 of a cleanup.
9836 (lookup_symtab_callback): Delete.
9837 (lookup_symtab): Use a lambda.
9838 (iterate_over_symbols): Adjust to use function_view as callback
9839 type.
9840 (struct search_symbols_data, search_symbols_file_matches)
9841 (search_symbols_name_matches): Delete.
9842 (search_symbols): Use a pair of lambdas.
9843 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9844 (symtab_expansion_callback): Delete.
9845 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9846 * symtab.h: Include "common/function-view.h".
9847 (iterate_over_some_symtabs): Adjust to use function_view as
9848 callback type and return bool.
9849 (iterate_over_symtabs): Adjust to use function_view as callback
9850 type.
9851 (symbol_found_callback_ftype): Remove 'data' parameter and return
9852 bool.
9853 (iterate_over_symbols): Adjust to use function_view as callback
9854 type.
9855
07e253aa
PA
98562017-02-23 Pedro Alves <palves@redhat.com>
9857
9858 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9859 (%.o) <unittests/%.c>: New pattern.
9860 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9861 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9862 * common/function-view.h: New file.
9863 * unittests/function-view-selftests.c: New file.
9864 * configure: Regenerate.
9865
8eaf5320
SM
98662017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9867
9868 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9869 inferior_ptid.
9870 * go32-nat.c (go32_thread_alive): Likewise.
9871
38768751
YQ
98722017-02-23 Yao Qi <yao.qi@linaro.org>
9873
9874 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9875 delete.
9876
0a8beaba
YQ
98772017-02-23 Yao Qi <yao.qi@linaro.org>
9878
9879 * varobj.c (varobj_clear_saved_item): Use delete instead of
9880 xfree.
9881 (update_dynamic_varobj_children): Likewise.
9882
58fdfd2c
JK
98832017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9884
9885 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9886
1b90b139
SM
98872017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9888
9889 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9890 m_enum_value to 0 in default constructor.
9891
2039d74e
EBM
98922017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9893
9894 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9895 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9896 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9897 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9898 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9899 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9900 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9901 IS_STORE_CONDITIONAL_INSN.
9902
7814882a
JK
99032017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9904
9905 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9906
0ae60b63
JK
99072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9910
0224619f
JK
99112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9912
9913 * dwarf2read.c (skip_one_die, read_attribute_value)
9914 (dwarf2_const_value_attr, dump_die_shallow)
9915 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9916 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9917
0af92d60
JK
99182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9919
9920 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9921 (dwarf_parse_macro_header): Accept DWARF version 5.
9922 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9923
216f72a1
JK
99242017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9925
9926 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9927 DW_AT_GNU_*.
9928 * common/common-exceptions.h (enum errors): Likewise.
9929 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9930 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9931 (dwarf_expr_context::execute_stack_op): Likewise.
9932 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9933 Likewise.
9934 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9935 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9936 (show_entry_values_debug, call_site_to_target_addr)
9937 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9938 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9939 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9940 (value_of_dwarf_block_entry, indirect_pieced_value)
9941 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9942 (disassemble_dwarf_expression): Likewise.
9943 * dwarf2read.c (process_die, inherit_abstract_dies)
9944 (read_call_site_scope): Likewise.
9945 * gdbtypes.h (struct func_type, struct call_site_parameter)
9946 (struct call_site): Likewise.
9947 * stack.c (read_frame_arg): Likewise.
9948 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9949
43988095
JK
99502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9951
9952 * defs.h (read_unsigned_leb128): New declaration.
9953 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9954 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9955 (dwarf2_find_location_expression): Call also
9956 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9957 * dwarf2loc.h (dwarf2_version): New declaration.
9958 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9959 rnglists.
9960 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9961 .debug_rnglists.
9962 (struct dwop_section_names): Add loclists_dwo.
9963 (dwop_section_names): Add .debug_loclists.dwo.
9964 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9965 (struct dwarf2_per_cu_data): Add dwarf_version.
9966 (struct dwo_sections): Add loclists.
9967 (struct attr_abbrev): Add implicit_const.
9968 (read_indirect_line_string): New declaration.
9969 (read_unsigned_leb128): Delete declaration.
9970 (rcuh_kind): New definition.
9971 (read_and_check_comp_unit_head): Change parameter
9972 is_debug_types_section to section_kind.
9973 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9974 (read_comp_unit_head): Change parameter abfd to section, add parameter
9975 section_kind. Handle DWARF-5.
9976 (error_check_comp_unit_head): Accept also DWARF version 5.
9977 (read_and_check_comp_unit_head): Change parameter
9978 is_debug_types_section to section_kind.
9979 (read_and_check_type_unit_head): Delete function.
9980 (read_abbrev_offset): Handle DWARF-5.
9981 (create_debug_type_hash_table): Add parameter section_kind. Process
9982 only DW_UT_type. Use signature and type_offset_in_tu from struct
9983 comp_unit_head.
9984 (create_debug_types_hash_table): Update create_debug_type_hash_table
9985 caller.
9986 (create_all_type_units): Call create_debug_type_hash_table.
9987 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9988 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9989 caller.
9990 (skip_one_die): Handle DW_FORM_implicit_const.
9991 (dwarf2_rnglists_process): New function.
9992 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9993 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9994 (read_attribute_value): Handle DW_FORM_implicit_const,
9995 DW_FORM_line_strp.
9996 (read_attribute): Handle DW_FORM_implicit_const.
9997 (read_indirect_string_at_offset_from): New function from
9998 read_indirect_string_at_offset.
9999 (read_indirect_string_at_offset): Call
10000 read_indirect_string_at_offset_from.
10001 (read_indirect_line_string_at_offset): New function.
10002 (read_indirect_string): New function comment.
10003 (read_indirect_line_string): New function.
10004 (read_unsigned_leb128): Make it global.
10005 (dwarf2_string_attr): Handle DWARF-5.
10006 (add_include_dir_stub, read_formatted_entries): New functions.
10007 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10008 Handle DWARF-5.
10009 (per_cu_header_read_in): Update read_comp_unit_head caller.
10010 (dwarf2_version): New function.
10011 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10012 rnglists.
10013 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10014 fields.
10015
22d2f3ab
JK
100162017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10017
10018 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10019
5f46c5a5
JK
100202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10021
10022 * dwarf2read.c (dwarf2_ranges_process): New function from
10023 dwarf2_ranges_read.
10024 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10025 dwarf2_ranges_process.
10026
78d4d2c5
JK
100272017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10028
10029 * dwarf2read.c (create_debug_type_hash_table): New function from
10030 create_debug_types_hash_table.
10031 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10032 (create_all_type_units, open_and_init_dwo_file): Update
10033 create_debug_types_hash_table callers.
10034
1b076f25
SDJ
100352017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10036
10037 PR gdb/16188
10038 * fork-child.c (trace_start_error): Fix thinko. va_end should
10039 refer to 'ap', not 'args'.
10040
0db8980c
SDJ
100412017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10042 Pedro Alves <palves@redhat.com>
10043
10044 PR gdb/16188
10045 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10046 calls succeeded.
10047 * fork-child.c (trace_start_error): New function.
10048 (trace_start_error_with_name): Likewise.
10049 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10050 * inf-ptrace.c (inf_ptrace_me): Likewise.
10051 * inferior.h (trace_start_error): New prototype.
10052 (trace_start_error_with_name): Likewise.
10053
99e8a4f9
SDJ
100542017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10055
10056 PR gdb/21164
10057 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10058 NULL before using it.
10059 * symmisc.c (maintenance_print_symbols): Likewise.
10060 (maintenance_print_msymbols): Likewise.
10061
4e746bb6
TW
100622017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10063
10064 * NEWS: Add record Python bindings entry.
10065
100662017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10067
10068 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10069 py-record-full.o.
10070 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10071 * python/py-record-btrace.c, python/py-record-btrace.h,
10072 python/py-record-full.c, python/py-record-full.h: New file.
10073 * python/py-record.c: Add include for py-record-btrace.h and
10074 py-record-full.h.
10075 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10076 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10077 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10078 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10079 New definition.
10080 (gdbpy_initialize_btrace): New export.
10081 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10082
100832017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10084
10085 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10086 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10087 * python/py-record.c: New file.
10088 * python/python-internal.h (gdbpy_start_recording,
10089 gdbpy_current_recording, gdpy_stop_recording,
10090 gdbpy_initialize_record): New export.
10091 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10092 (python_GdbMethods): Add gdbpy_start_recording,
10093 gdbpy_current_recording and gdbpy_stop_recording.
10094
100952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10096
10097 * record-btrace.c (record_btrace_record_method): New function.
10098 (init_record_btrace_ops): Initialize to_record_method.
10099 * record-full.c (record_full_record_method): New function.
10100 (init_record_full_ops, init_record_full_core_ops): Add
10101 record_full_record_method.
10102 * record.h (enum record_method): New enum.
10103 * target-debug.h (target_debug_print_enum_record_method: New define.
10104 * target-delegates.c: Regenerate.
10105 * target.c (target_record_method): New function.
10106 * target.h: Include record.h.
10107 (struct target_ops) <to_record_method>: New field.
10108 (target_record_method): New export.
10109
101102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10111
10112 * record.h (record_start, record_stop): New export.
10113 * record.c (record_start, record_stop): New function.
10114
101152017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10116
10117 * btrace.c (btrace_fetch): Copy function call segments pointer
10118 into a vector.
10119 (btrace_clear): Clear the vector.
10120 (btrace_find_insn_by_number): Use binary search to find the correct
10121 function call segment.
10122 * btrace.h (brace_fun_p): New typedef.
10123 (struct btrace_thread_info) <functions>: New field.
10124
101252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10126
10127 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10128 * btrace.c (btrace_decode_error): ... here. New function.
10129 * btrace.h (btrace_decode_error): New export.
10130
101312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10132
10133 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10134 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10135 btrace_find_insn_by_number): Remove special case for gaps.
10136 * btrace.h (btrace_insn_get_error): New export.
10137 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10138 * record-btrace.c (btrace_insn_history): Print number for gaps.
10139 (record_btrace_info, record_btrace_goto): Handle gaps.
10140
3f77c769
TT
101412017-02-14 Tom Tromey <tom@tromey.com>
10142
10143 PR python/13598:
10144 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10145 event.
10146 * python/py-evts.c (gdbpy_initialize_py_events): Add
10147 before_prompt registry.
10148 * python/py-events.h (events_object) <before_prompt>: New field.
10149
4c2c7ac6
MM
101502017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10151
10152 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10153
5cf30ebf
LM
101542017-02-13 Luis Machado <lgustavo@codesourcery.com>
10155
10156 * symfile (_initialize_symfile): Add usage text to the load command's
10157 help text.
10158
26a06916
SM
101592017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10160
10161 * utils.c (defaulted_query): Don't query on secondary UIs.
10162
0b145e37
TT
101632017-02-10 Tom Tromey <tom@tromey.com>
10164
10165 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10166
2d8365c4
TT
101672017-02-10 Tom Tromey <tom@tromey.com>
10168
10169 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10170 "cleanup" local.
10171 * python/py-type.c (typy_legacy_template_argument): Remove
10172 unnecessary "cleanup" local.
10173
2bb8f231
TT
101742017-02-10 Tom Tromey <tom@tromey.com>
10175
10176 * python/python.c (do_start_initialization): New function, from
10177 _initialize_python.
10178 (_initialize_python): Call do_start_initialization.
10179 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10180 goto.
10181
1bdfaf42
TT
101822017-02-10 Tom Tromey <tom@tromey.com>
10183
10184 * python/py-prettyprint.c (pretty_print_one_value): Use
10185 gdbpy_ref.
10186
88b6faea
TT
101872017-02-10 Tom Tromey <tom@tromey.com>
10188
10189 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10190 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10191 gdbpy_ref.
10192 * python/py-type.c (field_new): Use gdbpy_ref.
10193 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10194 gdbpy_ref.
10195 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10196 (py_free_pspace): Likewise.
10197 (pspace_to_pspace_object): Likewise.
10198 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10199 (py_free_objfile): Likewise.
10200 (objfile_to_objfile_object): Likewise.
10201 * python/py-inferior.c (delete_thread_object): Use
10202 gdbpy_ref.
10203 (infpy_read_memory): Likewise.
10204 (py_free_inferior): Likewise.
10205 * python/py-evtregistry.c (create_eventregistry_object): Use
10206 gdbpy_ref.
10207 * python/py-event.c (create_event_object): Use gdbpy_ref.
10208
7780f186
TT
102092017-02-10 Tom Tromey <tom@tromey.com>
10210
10211 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10212 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10213 used.
10214 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10215 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10216 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10217 python/py-framefilter.c, python/py-function.c,
10218 python/py-inferior.c, python/py-infevents.c,
10219 python/py-linetable.c, python/py-newobjfileevent.c,
10220 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10221 python/py-signalevent.c, python/py-stopevent.c,
10222 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10223 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10224 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10225 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10226
d4b0bb18
TT
102272017-02-10 Tom Tromey <tom@tromey.com>
10228
10229 * ui-out.h (ui_out_emit_type): New class.
10230 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10231 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10232 and ui_out_emit_tuple.
10233 (enumerate_locals): Likewise.
10234 (py_mi_print_variables, py_print_locals, py_print_args): Use
10235 ui_out_emit_list.
10236 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10237 ui_out_emit_list.
10238 * common/gdb_optional.h: New file.
10239
f67f945c
MG
102402017-02-10 Martin Galvan <martingalvan@sourceware.org>
10241
10242 * MAINTAINERS (Write After Approval): Update my e-mail address.
10243
18da0c51
MG
102442017-02-10 Martin Galvan <martingalvan@sourceware.org>
10245
10246 PR gdb/21122
10247 * breakpoint.c (_initialize_breakpoint): Update the help description
10248 of the 'commands' command to indicate that it takes a list argument.
10249
62c14536
SM
102502017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10251
10252 * interps.c (current_interp_set_logging): Remove "return".
10253
ff6fa247
GB
102542017-02-09 Gary Benson <gbenson@redhat.com>
10255
10256 * symtab.c (add_symtab_completions): Prevent NULL pointer
10257 dereference.
10258
a474bd8e
PA
102592017-02-08 Pedro Alves <palves@redhat.com>
10260
10261 * interps.c (interp::interp): Remove reference to quiet_p.
10262 (interp_set): Make static. Remove dead "Switching to" output
10263 code.
10264 (interp_quiet_p, interp_set_quiet): Delete.
10265 (interpreter_exec_cmd): Don't set the interpreter quiet.
10266 * interps.h (interp_quiet_p): Make static.
10267 (class interp) <quiet_p>: Remove field
10268
3d7b173c
JG
102692017-02-08 Jerome Guitton <guitton@adacore.com>
10270
604c4576
JG
10271 * cli/cli-decode.c (find_command_name_length): Make it extern.
10272 * cli/cli-decode.h (find_command_name_length): Declare.
10273 * cli/cli-script.c (command_name_equals, line_first_arg):
10274 New functions.
10275 (process_next_line): Use cli-decode to parse command names.
10276 (build_command_line): Make args a constant pointer.
10277
102782017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10279
3d7b173c
JG
10280 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10281 Remove case-insensitive search.
10282
1291063d
JM
102832017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10284
10285 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10286 at the end of the line. Avoids an ARI warning.
10287
20b477a7
LM
102882017-02-06 Luis Machado <lgustavo@codesourcery.com>
10289
10290 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10291 rdseed instructions.
10292 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10293
3f7b46f2
IR
102942017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10295
10296 PR tdep/20936
10297 Provide and use sparc32 and sparc64 target description XML files.
10298 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10299 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10300 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10301 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10302 * features/sparc/sparc32-solaris.xml: New file.
10303 * features/sparc/sparc64-solaris.xml: New file.
10304 * features/sparc/sparc32-solaris.c: Generated.
10305 * features/sparc/sparc64-solaris.c: Generated.
10306 * sparc-tdep.h: Account for differences in target descriptions.
10307 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10308 (sparc32_register_type): Use target provided registers.
10309 (validate_tdesc_registers): New function.
10310 (sparc32_gdbarch_init): Use tdesc_has_registers.
10311 Set pseudoregister functions.
10312 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10313 (sparc64_register_type): Use target provided registers.
10314 (sparc64_init_abi): Set pseudoregister functions.
10315
f0fd41c1
TT
103162017-02-03 Tom Tromey <tom@tromey.com>
10317
10318 PR rust/21097:
10319 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10320 with a single member.
10321
d6f9b0fb
PA
103222017-02-03 Pedro Alves <palves@redhat.com>
10323
10324 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10325 (cli_interp_base::~cli_interp_base): New.
10326 (cli_interp): New struct.
10327 (as_cli_interp): Cast the interp itself to cli_interp.
10328 (cli_interpreter_pre_command_loop): Rename to ...
10329 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10330 parameter.
10331 (cli_interpreter_init): Rename to ...
10332 (cli_interp::init): ... this. Remove 'self' parameter. Use
10333 boolean. Make extern.
10334 (cli_interpreter_resume): Rename to ...
10335 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10336 extern.
10337 (cli_interpreter_suspend): Rename to ...
10338 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10339 extern.
10340 (cli_interpreter_exec): Rename to ...
10341 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10342 extern.
10343 (cli_interpreter_supports_command_editing): Rename to ...
10344 (cli_interp_base::supports_command_editing): ... this. Remove
10345 'interp' parameter. Make extern.
10346 (cli_ui_out): Rename to ...
10347 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10348 Make extern.
10349 (cli_set_logging): Rename to ...
10350 (cli_interp_base::set_logging): ... this. Remove 'interp'
10351 parameter. Make extern.
10352 (cli_interp_procs): Delete.
10353 (cli_interp_factory): Adjust to use "new".
10354 * cli/cli-interp.h: Include "interps.h".
10355 (struct cli_interp_base): New struct.
10356 * interps.c (struct interp): Delete. Fields moved to interps.h.
10357 (interp_new): Delete.
10358 (interp::interp, interp::~interp): New.
10359 (interp_set): Use bool, and return void. Assume the interpreter
10360 has suspend, init and resume methods, and that the all return
10361 void.
10362 (set_top_level_interpreter): interp_set returns void.
10363 (interp_ui_out): Adapt.
10364 (current_interp_set_logging): Adapt.
10365 (interp_data): Delete.
10366 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10367 (interp_exec): Adapt.
10368 (top_level_interpreter_data): Delete.
10369 * interps.h (interp_init_ftype, interp_resume_ftype)
10370 (interp_suspend_ftype, interp_exec_ftype)
10371 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10372 (class interp): New.
10373 (interp_new): Delete.
10374 (interp_set): Now returns void. Use bool.
10375 (interp_data, top_level_interpreter_data): Delete.
10376 * mi/mi-common.h: Include interps.h.
10377 (class mi_interp): Inherit from interp. Define a ctor. Declare
10378 init, resume, suspect, exec, interp_ui_out, set_logging and
10379 pre_command_loop methods.
10380 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10381 (mi_interpreter_init): Rename to ...
10382 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10383 bool, return void and make extern. Adjust.
10384 (mi_interpreter_resume): ... Rename to ...
10385 (mi_interp::resume): ... this. Remove the 'data' parameter,
10386 return void and make extern. Adjust.
10387 (mi_interpreter_suspend): ... Rename to ...
10388 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10389 return void and make extern. Adjust.
10390 (mi_interpreter_exec): ... Rename to ...
10391 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10392 extern. Adjust.
10393 (mi_interpreter_pre_command_loop): ... Rename to ...
10394 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10395 parameter and make extern.
10396 (mi_on_normal_stop_1): Adjust.
10397 (mi_ui_out): Rename to ...
10398 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10399 parameter and make extern. Adjust.
10400 (mi_set_logging): Rename to ...
10401 (mi_interp::set_logging): ... this. Remove the 'interp'
10402 parameter and make extern. Adjust.
10403 (mi_interp_procs): Delete.
10404 (mi_interp_factory): Adjust to use 'new'.
10405 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10406 (mi_print_exception, mi_execute_command, mi_load_progress):
10407 Adjust.
10408 * tui/tui-interp.c (tui_interp): New class.
10409 (as_tui_interp): Return a tui_interp pointer.
10410 (tui_on_normal_stop, tui_on_signal_received)
10411 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10412 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10413 to use interp::interp_ui_out.
10414 (tui_init): Rename to ...
10415 (tui_interp::init): ... this. Remove the 'self' parameter, use
10416 bool, return void and make extern. Adjust.
10417 (tui_resume): Rename to ...
10418 (tui_interp::resume): ... this. Remove the 'data' parameter,
10419 return void and make extern. Adjust.
10420 (tui_suspend): Rename to ...
10421 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10422 return void and make extern. Adjust.
10423 (tui_ui_out): Rename to ...
10424 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10425 parameter, and make extern. Adjust.
10426 (tui_exec): Rename to ...
10427 (tui_interp::exec): ... this. Remove the 'data' parameter and
10428 make extern.
10429 (tui_interp_procs): Delete.
10430 (tui_interp_factory): Use "new".
10431
65c40c95
TT
104322017-02-02 Tom Tromey <tom@tromey.com>
10433
10434 * rust-exp.y (ends_raw_string, space_then_number)
10435 (rust_identifier_start_p): Return bool.
10436 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10437 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10438 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10439 (rust_chartype_p): Return bool.
10440 (val_print_struct, rust_print_struct_def, rust_print_type):
10441 Update.
10442 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10443 Return bool.
10444
b50f188d
TT
104452017-02-02 Tom Tromey <tom@tromey.com>
10446
10447 * rust-lang.c: Reindent.
10448
03c85b11
TT
104492017-02-02 Tom Tromey <tom@tromey.com>
10450
10451 * rust-lang.h (rust_crate_for_block): Update.
10452 * rust-lang.c (rust_crate_for_block): Return std::string.
10453 (rust_get_disr_info): Use std:;string, not
10454 gdb::unique_xmalloc_ptr.
10455 * rust-exp.y (crate_name): Update.
10456
9b6da501
PA
104572017-02-02 Pedro Alves <palves@redhat.com>
10458
10459 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10460 field out of gdb_disassembler_test and make it static.
10461
ec4cb20b
PA
104622017-02-02 Pedro Alves <palves@redhat.com>
10463
10464 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10465 mi1_interp and mi_interp fields.
10466
5be5dbf0
PA
104672017-02-02 Pedro Alves <palves@redhat.com>
10468
616268b6
PA
10469 * cli/cli-interp.c (struct saved_output_files, saved_output):
10470 Moved from cli/cli-logging.c.
10471 (cli_set_logging): New function.
10472 (cli_interp_procs): Install cli_set_logging.
10473 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10474 Declare.
10475 * cli/cli-logging.c (struct saved_output_files, saved_output):
10476 Moved to cli/cli-interp.c.
10477 (pop_output_files): Don't save outputs here.
10478 (make_logging_output): New function.
10479 (handle_redirections): Don't build tee nor save previous outputs
10480 here.
10481 * interps.c (current_interp_set_logging): Change prototype.
10482 Assume there's always a set_logging_proc method installed.
10483 * interps.h (interp_set_logging_ftype): Change prototype.
10484 (current_interp_set_logging): Change prototype and adjust comment.
10485 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10486 use make_logging_output.
10487 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
104882017-02-02 Pedro Alves <palves@redhat.com>
10489
5be5dbf0
PA
10490 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10491 from ...
10492 (set_logging_overwrite): ... here.
10493 (logging_no_redirect_file): Delete.
10494 (set_logging_redirect): Don't handle redirection on the fly.
10495 Instead warn that "logging off" / "logging on" is necessary.
10496 (pop_output_files): Delete references to logging_no_redirect_file.
10497 (show_logging_command): Always speak in terms of what will happen
10498 once logging is reenabled.
10499
c99cc448
PA
105002017-02-02 Pedro Alves <palves@redhat.com>
10501
10502 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10503
8b172ce7
PA
105042017-02-02 Pedro Alves <palves@redhat.com>
10505
10506 * disasm.c (gdb_pretty_print_insn): Rename to ...
10507 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10508 Remove gdbarch parameter. Adapt to clear the object's buffers
10509 instead of allocating new buffers, and to print using the object's
10510 gdb_disassembler instead of calling gdb_print_insn.
10511 (dump_insns): Use gdb_pretty_print_disassembler.
10512 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10513 (gdb_pretty_print_disassembler): New class.
10514 * record-btrace.c (btrace_insn_history): Use
10515 gdb_pretty_print_disassembler.
10516
d7e74731
PA
105172017-02-02 Pedro Alves <palves@redhat.com>
10518
10519 * ada-lang.c (type_as_string): Use string_file.
10520 * ada-valprint.c (ada_print_floating): Use string_file.
10521 * ada-varobj.c (ada_varobj_scalar_image)
10522 (ada_varobj_get_value_image): Use string_file.
10523 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10524 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10525 * breakpoint.c (update_inserted_breakpoint_locations)
10526 (insert_breakpoint_locations, reattach_breakpoints)
10527 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10528 (print_it_watchpoint): Use string_file.
10529 (save_breakpoints): Use stdio_file.
10530 * c-exp.y (oper): Use string_file.
10531 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10532 tee_file.
10533 (pop_output_files): Use delete.
10534 (handle_redirections): Use stdio_file and tee_file.
10535 * cli/cli-setshow.c (do_show_command): Use string_file.
10536 * compile/compile-c-support.c (c_compute_program): Use
10537 string_file.
10538 * compile/compile-c-symbols.c (generate_vla_size): Take a
10539 'string_file &' instead of a 'ui_file *'.
10540 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10541 of a 'ui_file *'. Use string_file.
10542 (generate_c_for_variable_locations): Take a 'string_file &'
10543 instead of a 'ui_file *'.
10544 * compile/compile-internal.h (generate_c_for_for_one_variable):
10545 Take a 'string_file &' instead of a 'ui_file *'.
10546 * compile/compile-loc2c.c (push, pushf, unary, binary)
10547 (print_label, pushf_register_address, pushf_register)
10548 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10549 'ui_file *'. Adjust.
10550 * compile/compile.c (compile_to_object): Use string_file.
10551 * compile/compile.h (compile_dwarf_expr_to_c)
10552 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10553 'ui_file *'.
10554 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10555 (replace_typedefs_qualified_name): Use string_file and
10556 obstack_copy0.
10557 * disasm.c (gdb_pretty_print_insn): Use string_file.
10558 (gdb_disassembly): Adjust reference the null_stream global.
10559 (do_ui_file_delete): Delete.
10560 (gdb_insn_length): Use null_stream.
10561 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10562 * dwarf2loc.c (dwarf2_compile_property_to_c)
10563 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10564 'string_file &' instead of a 'ui_file *'.
10565 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10566 * dwarf2read.c (do_ui_file_peek_last): Delete.
10567 (dwarf2_compute_name): Use string_file.
10568 * event-top.c (gdb_setup_readline): Use stdio_file.
10569 * gdbarch.sh (verify_gdbarch): Use string_file.
10570 * gdbtypes.c (safe_parse_type): Use null_stream.
10571 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10572 string_file.
10573 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10574 'string_file *' instead of a 'ui_file *'.
10575 (gdbscm_arch_disassemble): Use string_file.
10576 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10577 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10578 inherits from ui_file.
10579 (ioscm_file_port_delete, ioscm_file_port_rewind)
10580 (ioscm_file_port_put): Delete.
10581 (ioscm_file_port_write): Rename to ...
10582 (ioscm_file_port::write): ... this. Remove file_port_magic
10583 checks.
10584 (ioscm_file_port_new): Delete.
10585 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10586 ui_file_up.
10587 * guile/scm-type.c (tyscm_type_name): Use string_file.
10588 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10589 Use string_file.
10590 * infcmd.c (print_return_value_1): Use string_file.
10591 * infrun.c (print_target_wait_results): Use string_file.
10592 * language.c (add_language): Use string_file.
10593 * location.c (explicit_to_string_internal): Use string_file.
10594 * main.c (captured_main_1): Use null_file.
10595 * maint.c (maintenance_print_architecture): Use stdio_file.
10596 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10597 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10598 event_channel>: Change type to mi_console_file pointer.
10599 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10600 (mi_console_file_delete): Delete.
10601 (struct mi_console_file): Delete.
10602 (mi_console_file_magic): Delete.
10603 (mi_console_file_new): Delete.
10604 (mi_console_file::mi_console_file): New.
10605 (mi_console_file_delete): Delete.
10606 (mi_console_file_fputs): Delete.
10607 (mi_console_file::write): New.
10608 (mi_console_raw_packet): Delete.
10609 (mi_console_file::flush): New.
10610 (mi_console_file_flush): Delete.
10611 (mi_console_set_raw): Rename to ...
10612 (mi_console_file::set_raw): ... this.
10613 * mi/mi-console.h (class mi_console_file): New class.
10614 (mi_console_file_new, mi_console_set_raw): Delete.
10615 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10616 (mi_set_logging): Use delete and tee_file. Adjust.
10617 * mi/mi-main.c (output_register): Use string_file.
10618 (mi_cmd_data_evaluate_expression): Use string_file.
10619 (mi_cmd_data_read_memory): Use string_file.
10620 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10621 * mi/mi-out.c (mi_ui_out::main_stream): New.
10622 (mi_ui_out::rewind): Use main_stream and
10623 string_file.
10624 (mi_ui_out::put): Use main_stream and string_file.
10625 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10626 Allocate a 'string_file' instead.
10627 (mi_out_new): Don't allocate a mem_fileopen stream here.
10628 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10629 (mi_ui_out::main_stream): Declare method.
10630 * printcmd.c (eval_command): Use string_file.
10631 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10632 * python/py-arch.c (archpy_disassemble): Use string_file.
10633 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10634 * python/py-frame.c (frapy_str): Use string_file.
10635 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10636 Use string_file.
10637 * python/py-type.c (typy_str): Use string_file.
10638 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10639 * python/py-value.c (valpy_str): Use string_file.
10640 * record-btrace.c (btrace_insn_history): Use string_file.
10641 * regcache.c (regcache_print): Use stdio_file.
10642 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10643 * remote.c (escape_buffer): Use string_file.
10644 * rust-lang.c (rust_get_disr_info): Use string_file.
10645 * serial.c (serial_open_ops_1): Use stdio_file.
10646 (do_serial_close): Use delete.
10647 * stack.c (print_frame_arg): Use string_file.
10648 (print_frame_args): Remove local mem_fileopen stream, not used.
10649 (print_frame): Use string_file.
10650 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10651 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10652 Take a 'string_file *' instead of a 'ui_file *'.
10653 * top.c (new_ui): Use stdio_file and stderr_file.
10654 (free_ui): Use delete.
10655 (execute_command_to_string): Use string_file.
10656 (quit_confirm): Use string_file.
10657 * tracepoint.c (collection_list::append_exp): Use string_file.
10658 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10659 * tui/tui-file.c: Don't include "ui-file.h".
10660 (enum streamtype, struct tui_stream): Delete.
10661 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10662 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10663 (tui_file::tui_file): New method.
10664 (tui_file_fputs): Delete.
10665 (tui_file_get_strbuf): Delete.
10666 (tui_file::puts): New method.
10667 (tui_file_adjust_strbuf): Delete.
10668 (tui_file_flush): Delete.
10669 (tui_file::flush): New method.
10670 * tui/tui-file.h: Tweak intro comment.
10671 Include ui-file.h.
10672 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10673 (tui_file_adjust_strbuf): Delete declarations.
10674 (class tui_file): New class.
10675 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10676 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10677 (tui_register_format): Use string_stream.
10678 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10679 (tui_get_function_from_frame): Use string_file.
10680 * typeprint.c (type_to_string): Use string_file.
10681 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10682 (null_stream): New global.
10683 (ui_file_delete): Delete.
10684 (ui_file::ui_file): New.
10685 (null_file_isatty): Delete.
10686 (ui_file::~ui_file): New.
10687 (null_file_rewind): Delete.
10688 (ui_file::printf): New.
10689 (null_file_put): Delete.
10690 (null_file_flush): Delete.
10691 (ui_file::putstr): New.
10692 (null_file_write): Delete.
10693 (ui_file::putstrn): New.
10694 (null_file_read): Delete.
10695 (ui_file::putc): New.
10696 (null_file_fputs): Delete.
10697 (null_file_write_async_safe): Delete.
10698 (ui_file::vprintf): New.
10699 (null_file_delete): Delete.
10700 (null_file::write): New.
10701 (null_file_fseek): Delete.
10702 (null_file::puts): New.
10703 (ui_file_data): Delete.
10704 (null_file::write_async_safe): New.
10705 (gdb_flush, ui_file_isatty): Adjust.
10706 (ui_file_put, ui_file_rewind): Delete.
10707 (ui_file_write): Adjust.
10708 (ui_file_write_for_put): Delete.
10709 (ui_file_write_async_safe, ui_file_read): Adjust.
10710 (ui_file_fseek): Delete.
10711 (fputs_unfiltered): Adjust.
10712 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10713 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10714 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10715 (set_ui_file_data): Delete.
10716 (string_file::~string_file, string_file::write)
10717 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10718 (do_ui_file_as_string, ui_file_as_string): Delete.
10719 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10720 (struct mem_file): Delete.
10721 (mem_file_new): Delete.
10722 (stdio_file::stdio_file): New.
10723 (mem_file_delete): Delete.
10724 (stdio_file::stdio_file): New.
10725 (mem_fileopen): Delete.
10726 (stdio_file::~stdio_file): New.
10727 (mem_file_rewind): Delete.
10728 (stdio_file::set_stream): New.
10729 (mem_file_put): Delete.
10730 (stdio_file::open): New.
10731 (mem_file_write): Delete.
10732 (stdio_file_magic, struct stdio_file): Delete.
10733 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10734 (stdio_file::flush): New.
10735 (stdio_file_read): Rename to ...
10736 (stdio_file::read): ... this. Adjust.
10737 (stdio_file_write): Rename to ...
10738 (stdio_file::write): ... this. Adjust.
10739 (stdio_file_write_async_safe): Rename to ...
10740 (stdio_file::write_async_safe) ... this. Adjust.
10741 (stdio_file_fputs): Rename to ...
10742 (stdio_file::puts) ... this. Adjust.
10743 (stdio_file_isatty): Delete.
10744 (stdio_file_fseek): Delete.
10745 (stdio_file::isatty): New.
10746 (stderr_file_write): Rename to ...
10747 (stderr_file::write) ... this. Adjust.
10748 (stderr_file_fputs): Rename to ...
10749 (stderr_file::puts) ... this. Adjust.
10750 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10751 (stderr_file::stderr_file): New.
10752 (tee_file_magic): Delete.
10753 (struct tee_file): Delete.
10754 (tee_file::tee_file): New.
10755 (tee_file_new): Delete.
10756 (tee_file::~tee_file): New.
10757 (tee_file_delete): Delete.
10758 (tee_file_flush): Rename to ...
10759 (tee_file::flush): ... this. Adjust.
10760 (tee_file_write): Rename to ...
10761 (tee_file::write): ... this. Adjust.
10762 (tee_file::write_async_safe): New.
10763 (tee_file_fputs): Rename to ...
10764 (tee_file::puts): ... this. Adjust.
10765 (tee_file_isatty): Rename to ...
10766 (tee_file::isatty): ... this. Adjust.
10767 * ui-file.h (struct obstack, struct ui_file): Don't
10768 forward-declare.
10769 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10770 (ui_file_write_ftype)
10771 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10772 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10773 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10774 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10775 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10776 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10777 (set_ui_file_fseek): Delete.
10778 (ui_file_data, ui_file_delete, ui_file_rewind)
10779 (struct ui_file): New.
10780 (ui_file_up): New.
10781 (class null_file): New.
10782 (null_stream): Declare.
10783 (ui_file_write_for_put, ui_file_put): Delete.
10784 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10785 Delete.
10786 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10787 (gdb_fopen, tee_file_new): Delete.
10788 (struct string_file): New.
10789 (struct stdio_file): New.
10790 (stdio_file_up): New.
10791 (struct stderr_file): New.
10792 (class tee_file): New.
10793 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10794 of a 'ui_file *'. Adjust.
10795 * ui-out.h (class ui_out) <field_stream>: Likewise.
10796 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10797 (null_stream): Delete.
10798 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10799 Adjust.
10800 * utils.h (struct ui_file): Delete forward declaration..
10801 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10802 (error_stream): Take a 'string_file &' instead of a
10803 'ui_file *'.
10804 * varobj.c (varobj_value_get_print_value): Use string_file.
10805 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10806 * gdbarch.c: Regenerate.
10807
187808b0
PA
108082017-02-02 Pedro Alves <palves@redhat.com>
10809
10810 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10811 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10812 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10813 Adjust to call gdb_print_insn instead of
10814 gdb_disassembler::print_insn.
10815 (dump_insns, do_mixed_source_and_assembly_deprecated)
10816 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10817 'gdbarch' parameter. Remove gdb_disassembler parameter.
10818 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10819 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10820 declaration.
10821 (gdb_pretty_print_insn): Re-add declaration.
10822 * record-btrace.c (btrace_insn_history): Don't allocate a
10823 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10824
7a8eb317
SM
108252017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10826
10827 * disasm.h (gdb_disassembly): Remove file_string parameter.
10828 * disasm.c (gdb_disassembly): Likewise.
10829 * cli/cli-cmds.c (print_disassembly): Adapt.
10830 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10831 * stack.c (do_gdb_disassembly): Likewise.
10832
7346ef59
AA
108332017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10834
10835 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10836 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10837 targets. And if the implicit value is longer than needed, extract
10838 the first bytes instead of the "least significant" ones.
10839
cd4007e4
MM
108402017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10841
10842 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10843 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10844 (btrace_fetch): Assert can_access_registers_ptid.
10845 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10846 validate_registers_access.
10847
cf77c34e
MM
108482017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10849
10850 * gdbthread.h (can_access_registers_ptid): New.
10851 * thread.c (can_access_registers_ptid): New.
10852
be85ce7d
PA
108532017-02-01 Pedro Alves <palves@redhat.com>
10854
10855 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10856
29b0b251
PA
108572017-01-31 Pedro Alves <palves@redhat.com>
10858
10859 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10860 Fix typos.
10861
289b5b24
PA
108622017-01-31 Pedro Alves <palves@redhat.com>
10863
10864 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10865 not used.
10866
b47413b4
PA
108672017-01-31 Pedro Alves <palves@redhat.com>
10868
10869 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10870
60adb36c
PA
108712017-01-31 Pedro Alves <palves@redhat.com>
10872
10873 * common/scoped_restore.h
10874 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10875 change the value's parameter type to T2.
10876 (make_scoped_restore): Likewise.
10877
2735833d
WT
108782017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10879 Richard Henderson <rth@redhat.com>
10880
10881 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10882 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10883 GS_BASE for older kernels.
10884 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10885 GS_BASE for older kernels.
10886 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10887 and GS_BASE to the offset table.
10888 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10889 system register group.
10890 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10891 for older kernels.
10892 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10893 amd64 ABI.
10894 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10895 AMD64_GSBASE_REGNUM.
10896 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10897 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10898 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10899 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10900 i386/64bit-segments.xml in those rules.
10901 * features/i386/64bit-segments.xml: New file.
10902 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10903 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10904 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10905 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10906 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10907 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10908 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10909 * features/i386/amd64-avx-linux.c: Regenerated.
10910 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10911 * features/i386/amd64-avx-mpx.c: Regenerated.
10912 * features/i386/amd64-avx512-linux.c: Regenerated.
10913 * features/i386/amd64-linux.c: Regenerated.
10914 * features/i386/amd64-mpx-linux.c: Regenerated.
10915 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10916 * features/i386/i386-avx-mpx.c: Regenerated.
10917 * features/i386/x32-avx-linux.c: Regenerated.
10918 * features/i386/x32-avx512-linux.c: Regenerated.
10919 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10920 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10921 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10922 * regformats/i386/amd64-linux.dat: Regenerated.
10923 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10924 * regformats/i386/x32-avx-linux.dat: Regenerated.
10925 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10926 * regformats/i386/x32-linux.dat: Regenerated.
10927
8884e97e
WT
109282017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10929
10930 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10931 Set to AMD64_NUM_REGS.
10932
7005d26a
WT
109332017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10934
10935 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10936 that checks validity of a register number.
10937
4bd2e1b2
KC
109382017-01-27 Kees Cook <keescook@google.com>
10939
10940 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10941 fetch_fpregs if target has fpa registers.
10942 (arm_linux_store_inferior_registers): Call store_fpregs if target
10943 has fpa registers.
10944
7cf1de6c
AA
109452017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10946
10947 * cris-tdep.c (cris_gdbarch_init): Remove check for
10948 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10949
874a1c8c
AT
109502017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10951
10952 * corelow.c (get_core_register_section): Check for regset
10953 existence before checking for REGSET_VARIABLE_SIZE.
10954
d8b49cf0
YQ
109552017-01-26 Yao Qi <yao.qi@linaro.org>
10956 Pedro Alves <palves@redhat.com>
10957
10958 PR gdb/20939
10959 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10960 call memory_error, save memaddr instead.
10961 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10962 negative, cal memory_error.
10963 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10964
658ca58c
YQ
109652017-01-26 Yao Qi <yao.qi@linaro.org>
10966
10967 * disasm-selftests.c (memory_error_test): New function.
10968 (_initialize_disasm_selftests): Register memory_error_test.
10969
79843d45
YQ
109702017-01-26 Yao Qi <yao.qi@linaro.org>
10971
10972 * Makefile.in (SFILES): Add disasm-selftests.c and
10973 selftest-arch.c.
10974 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10975 * disasm-selftests.c: New file.
10976 * selftest-arch.c: New file.
10977 * selftest-arch.h: New file.
10978
8cafda32
YQ
109792017-01-26 Yao Qi <yao.qi@linaro.org>
10980
10981 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10982 to bfd_arch_mep. Don't return 0 if section is not
10983 found. Call print_insn_mep.
10984
e47ad6c0
YQ
109852017-01-26 Pedro Alves <palves@redhat.com>
10986 Yao Qi <yao.qi@linaro.org>
10987
10988 * arm-tdep.c: Include "disasm.h".
10989 (gdb_print_insn_arm): Update code to get gdbarch.
10990 * disasm.c (dis_asm_read_memory): Change it to
10991 gdb_disassembler::dis_asm_read_memory.
10992 (dis_asm_memory_error): Likewise.
10993 (dis_asm_print_address): Likewise.
10994 (gdb_pretty_print_insn): Change it to
10995 gdb_disassembler::pretty_print_insn.
10996 (dump_insns): Add one argument gdb_disassemlber. All
10997 callers updated.
10998 (do_mixed_source_and_assembly_deprecated): Likewise.
10999 (do_mixed_source_and_assembly): Likewise.
11000 (do_assembly_only): Likewise.
11001 (gdb_disassembler::gdb_disassembler): New.
11002 (gdb_disassembler::print_insn): New.
11003 * disasm.h (class gdb_disassembler): New.
11004 (gdb_pretty_print_insn): Remove declaration.
11005 (gdb_disassemble_info): Likewise.
11006 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11007 (gdbscm_disasm_read_memory_worker): Update.
11008 (gdbscm_disasm_read_memory): Update.
11009 (gdbscm_disasm_memory_error): Remove.
11010 (gdbscm_disasm_print_address): Remove.
11011 (gdbscm_disassembler::gdbscm_disassembler): New.
11012 (gdbscm_print_insn_from_port): Update.
11013 * mips-tdep.c: Include disasm.h.
11014 (gdb_print_insn_mips): Update code to get gdbarch.
11015 * record-btrace.c (btrace_insn_history): Update.
11016 * spu-tdep.c: Include disasm.h.
11017 (struct spu_dis_asm_data): Remove.
11018 (struct spu_dis_asm_info): New.
11019 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11020 SPU id.
11021 (gdb_print_insn_spu): Cast disassemble_info to
11022 spu_dis_asm_info.
11023
80d75874
YQ
110242017-01-26 Yao Qi <yao.qi@linaro.org>
11025
11026 * disasm.c (do_ui_file_delete): Delete.
11027 (gdb_insn_length): Move code creating stream to ...
11028 * utils.c (null_stream): ... here. New function.
11029 * utils.h (null_stream): Declare.
11030
60685cd0
SM
110312017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11032
11033 * python/py-inferior.c (find_thread_object): Return directly
11034 from the loop. Remove "found" variable.
11035
eb1cdb62
JB
110362017-01-21 Joel Brobecker <brobecker@adacore.com>
11037
11038 GDB 7.12.1 released.
11039
b1ce6568
SM
110402017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11041
11042 * python/py-function.c (fnpy_call): Reorder declarations to have
11043 the gdbpy_enter object declared first.
11044 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11045
6f8b0407
SM
110462017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11047
fec93fb1 11048 PR python/21068
6f8b0407
SM
11049 * python/python-internal.h (PyMem_RawMalloc): Define for
11050 Python < 3.4.
11051 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11052 PyMem_RawMalloc instead of PyMem_Malloc.
11053
78cbbba8
LM
110542017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11055 Luis Machado <lgustavo@codesourcery.com>
11056
11057 * NEWS (New commands): Mention flash-erase.
11058 (New MI commands): Mention target-flash-erase.
11059 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11060 command.
11061 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11062 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11063 * target.c (flash_erase_command): New function.
11064 (initialize_targets): Add new flash-erase command.
11065 * target.h (flash_erase_command): New declaration.
11066
2132fe85
JB
110672017-01-20 Joel Brobecker <brobecker@adacore.com>
11068
11069 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11070 HAVE_SYS_PROCFS_H is defined.
11071
d1dff226
AH
110722017-01-18 Alan Hayward <alan.hayward@arm.com>
11073
11074 * remote.c (struct cached_reg): Change data into a pointer.
11075 * (stop_reply_dtr): Free data pointers before deleting vector.
11076 (process_stop_reply): Likewise.
11077 (remote_parse_stop_reply): Allocate space for data
11078
9890e433
AH
110792017-01-18 Alan Hayward <alan.hayward@arm.com>
11080
11081 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11082 MAX_REGISTER_SIZE.
11083 (amd64_pseudo_register_read_value): Likewise.
11084 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11085 (store_register_using_P): Likewise.
11086 * regcache.c (regcache_xfer_part): Likewise.
11087
7a36499a
IR
110882017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11089
11090 Split real and pseudo registers.
11091 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11092 (sparc32_pseudo_regnum): New enum.
11093 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11094 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11095 (SPARC32_CP0_REGISTERS): New macro.
11096 (sparc32_pseudo_register_name): New function.
11097 (sparc32_register_name): Use sparc32_pseudo_register_name.
11098 (sparc32_pseudo_register_type): New function.
11099 (sparc32_register_type): Use sparc32_pseudo_register_type.
11100 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11101 pseudo register numbers.
11102 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11103 (SPARC64_CP0_REGISTERS): New macro.
11104 (sparc64_pseudo_register_name): New function.
11105 (sparc64_register_name): Use sparc64_pseudo_register_name.
11106 (sparc64_pseudo_register_type): New function.
11107 (sparc64_register_type): Use sparc64_pseudo_register_type.
11108 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11109 pseudo register numbers.
11110 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11111 sparc64_store_arguments): Handle pseudo register numbers.
11112
6f8976bf
YQ
111132017-01-13 Yao Qi <yao.qi@linaro.org>
11114
11115 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11116 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11117 output.
11118 (getpkt_or_notif_sane_1): Likewise.
11119
e4241ace
YQ
111202017-01-13 Yao Qi <yao.qi@linaro.org>
11121
11122 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11123 of CC. Pass "-x c++-header" instead of "-x c".
11124
3015c064
SM
111252017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11126
11127 * remote.c (remote_can_async_p): Update comment.
11128
fde1b17d
SM
111292017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11130
11131 * linux-nat.c (linux_nat_can_async_p): Update comment.
11132
ca1ca08b
SM
111332017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11134
11135 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11136
4ad2da73
SM
111372017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11138
11139 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11140
c8b23b3f
TT
111412017-01-10 Tom Tromey <tom@tromey.com>
11142
11143 * python/py-type.c (typy_legacy_template_argument): Update.
11144 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11145 ~demangle_parse_info): Declare new members.
11146 (cp_demangled_name_to_comp): Return unique_ptr.
11147 (cp_demangled_name_parse_free)
11148 (make_cleanup_cp_demangled_name_parse_free)
11149 (cp_new_demangle_parse_info): Remove.
11150 * cp-support.c (do_demangled_name_parse_free_cleanup)
11151 (make_cleanup_cp_demangled_name_parse_free): Remove.
11152 (inspect_type, cp_canonicalize_string_full)
11153 (cp_canonicalize_string): Update.
11154 (mangled_name_to_comp): Change return type.
11155 (cp_class_name_from_physname, method_name_from_physname)
11156 (cp_func_name, cp_remove_params): Update.
11157 * cp-name-parser.y (demangle_parse_info): New constructor, from
11158 cp_new_demangle_parse_info.
11159 (~demangle_parse_info): New destructor, from
11160 cp_demangled_name_parse_free.
11161 (cp_merge_demangle_parse_infos): Update.
11162 (cp_demangled_name_to_comp): Change return type.
11163
1ac32117
TT
111642017-01-10 Tom Tromey <tom@tromey.com>
11165
11166 * top.c (prevent_dont_repeat): Change return type.
11167 * python/python.c (execute_gdb_command): Use std::string.
11168 Update.
11169 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11170 * command.h (prevent_dont_repeat): Change return type.
11171 * breakpoint.c (bpstat_do_actions_1): Update.
11172
0cf08227
TT
111732017-01-10 Tom Tromey <tom@tromey.com>
11174
11175 * value.h (scoped_value_mark::~scoped_value_mark): Call
11176 free_to_mark.
11177 (scoped_value_mark::free_to_mark): New method.
11178 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11179 scoped_value_mark.
11180
eb115069
TT
111812017-01-10 Tom Tromey <tom@tromey.com>
11182
11183 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11184 (valpy_reference_value, valpy_const_value, valpy_get_address)
11185 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11186 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11187 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11188 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11189 scoped_value_mark.
11190 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11191 * value.h (scoped_value_mark): New class.
11192
906768f9
TT
111932017-01-10 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11196 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11197 * psymtab.c (discard_psymtabs_upto): Remove.
11198 (make_cleanup_discard_psymtabs): Remove.
11199 (struct psymtab_state): Remove.
11200
bef155c3
TT
112012017-01-10 Tom Tromey <tom@tromey.com>
11202
11203 * record-full.c (record_full_save_cleanups): Remove.
11204 (record_full_save): Use gdb::unlinker.
11205 * gcore.c (do_bfd_delete_cleanup): Remove.
11206 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11207 cleanups.
11208 * dwarf2read.c (unlink_if_set): Remove.
11209 (write_psymtabs_to_index): Use gdb::unlinker.
11210 * common/gdb_unlinker.h: New file.
11211
192b62ce
TT
112122017-01-10 Tom Tromey <tom@tromey.com>
11213
11214 * windows-tdep.c (windows_xfer_shared_library): Update.
11215 * windows-nat.c (windows_make_so): Update.
11216 * utils.h (make_cleanup_bfd_unref): Remove.
11217 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11218 * symfile.h (symfile_bfd_open)
11219 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11220 * symfile.c (read_symbols, symbol_file_add)
11221 (separate_debug_file_exists): Update.
11222 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11223 (generic_load, reread_symbols): Update.
11224 * symfile-mem.c (symbol_file_add_from_memory): Update.
11225 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11226 (spu_symbol_file_add_from_memory): Update.
11227 * solist.h (struct target_so_ops) <bfd_open>: Return
11228 gdb_bfd_ref_ptr.
11229 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11230 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11231 gdb_bfd_ref_ptr.
11232 (solib_map_sections, reload_shared_libraries_1): Update.
11233 * solib-svr4.c (enable_break): Update.
11234 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11235 * solib-frv.c (enable_break2): Update.
11236 * solib-dsbt.c (enable_break): Update.
11237 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11238 gdb_bfd_ref_ptr.
11239 (darwin_solib_get_all_image_info_addr_at_init): Update.
11240 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11241 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11242 * record-full.c (record_full_save): Update.
11243 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11244 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11245 * minidebug.c (find_separate_debug_file_in_section): Return
11246 gdb_bfd_ref_ptr.
11247 * machoread.c (macho_add_oso_symfile): Change abfd to
11248 gdb_bfd_ref_ptr.
11249 (macho_symfile_read_all_oso): Update.
11250 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11251 (macho_symfile_read): Update.
11252 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11253 (jit_bfd_try_read_symtab): Update.
11254 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11255 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11256 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11257 gdb_bfd_ref_ptr.
11258 (gdb_bfd_ref_policy): New struct.
11259 (gdb_bfd_ref_ptr): New typedef.
11260 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11261 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11262 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11263 gdb_bfd_ref_ptr.
11264 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11265 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11266 (gcore_command): Update.
11267 * exec.c (exec_file_attach): Update.
11268 * elfread.c (elf_symfile_read): Update.
11269 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11270 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11271 (open_and_init_dwo_file): Update.
11272 (open_dwp_file): Return gdb_bfd_ref_ptr.
11273 (open_and_init_dwp_file): Update.
11274 * corelow.c (core_open): Update.
11275 * compile/compile-object-load.c (compile_object_load): Update.
11276 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11277 * coffread.c (coff_symfile_read): Update.
11278 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11279 gdb_bfd_ref_ptr. Rename.
11280 (dump_bfd_file, restore_command): Update.
11281 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11282 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11283 (find_separate_debug_file_by_buildid): Update.
11284
50315b21
TT
112852017-01-10 Tom Tromey <tom@tromey.com>
11286
11287 * common/gdb_ref_ptr.h: New file.
11288 * python/py-ref.h (struct gdbpy_ref_policy): New.
11289 (gdbpy_ref): Now a typedef.
11290
fc4007c9
TT
112912017-01-10 Tom Tromey <tom@tromey.com>
11292
11293 * utils.h (make_cleanup_htab_delete): Don't declare.
11294 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11295 Remove.
11296 * linespec.c (decode_compound_collector): Add constructor,
11297 destructor.
11298 (lookup_prefix_sym): Remove cleanup.
11299 (symtab_collector): Add constructor, destructor.
11300 (collect_symtabs_from_filename): Remove cleanup.
11301 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11302 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11303 Use htab_up.
11304 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11305 * dwarf2read.c (dw2_expand_symtabs_matching)
11306 (dw2_map_symbol_filenames, dwarf_decode_macros)
11307 (write_psymtabs_to_index): Use htab_up.
11308 * dwarf2loc.c (func_verify_no_selftailcall)
11309 (call_site_find_chain_1, func_verify_no_selftailcall)
11310 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11311 std::vector, gdb::unique_xmalloc_ptr.
11312 (call_sitep): Remove typedef.
11313 (dwarf2_locexpr_baton_eval): Remove unused variable.
11314
8dbcee67
TT
113152017-01-10 Tom Tromey <tom@tromey.com>
11316
11317 * python/python-internal.h (make_cleanup_py_decref)
11318 (make_cleanup_py_xdecref): Don't declare.
11319 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11320 (py_xdecref, make_cleanup_py_xdecref): Remove.
11321
13df46cc
TT
113222017-01-10 Tom Tromey <tom@tromey.com>
11323
11324 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11325 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11326
06fc9bf7
TT
113272017-01-10 Tom Tromey <tom@tromey.com>
11328
11329 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11330
830a4934
TT
113312017-01-10 Tom Tromey <tom@tromey.com>
11332
11333 * python/py-utils.c (unicode_to_encoded_string)
11334 (python_string_to_target_string)
11335 (python_string_to_target_python_string)
11336 (python_string_to_host_string, gdbpy_obj_to_string)
11337 (get_addr_from_python): Use gdbpy_ref.
11338
4586d543
TT
113392017-01-10 Tom Tromey <tom@tromey.com>
11340
11341 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11342 gdbpy_ref.
11343
59876f8f
TT
113442017-01-10 Tom Tromey <tom@tromey.com>
11345
11346 * python/python.c (eval_python_command, gdbpy_decode_line)
11347 (gdbpy_run_events, gdbpy_start_type_printers)
11348 (gdbpy_apply_type_printers): Use gdbpy_ref.
11349
97d83487
TT
113502017-01-10 Tom Tromey <tom@tromey.com>
11351
11352 * python/py-param.c (get_doc_string, compute_enum_values): Use
11353 gdbpy_ref.
11354
9205649a
TT
113552017-01-10 Tom Tromey <tom@tromey.com>
11356
11357 * python/py-inferior.c (find_thread_object, build_inferior_list):
11358 Use gdbpy_ref.
11359
74c49d45
TT
113602017-01-10 Tom Tromey <tom@tromey.com>
11361
11362 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11363
16361ffb
TT
113642017-01-10 Tom Tromey <tom@tromey.com>
11365
11366 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11367 gdbpy_ref.
11368
905f2cca
TT
113692017-01-10 Tom Tromey <tom@tromey.com>
11370
11371 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11372 extra incref.
11373 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11374 Use gdbpy_ref.
11375
64081434
TT
113762017-01-10 Tom Tromey <tom@tromey.com>
11377
11378 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11379 gdbpy_ref.
11380
59e9e831
TT
113812017-01-10 Tom Tromey <tom@tromey.com>
11382
11383 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11384 decref results of PyArg_ParseTupleAndKeywords.
11385
9de10f6d
TT
113862017-01-10 Tom Tromey <tom@tromey.com>
11387
11388 * python/python.c (python_run_simple_file): Use
11389 unique_xmalloc_ptr, gdbpy_ref.
11390
2bd5759d
TT
113912017-01-10 Tom Tromey <tom@tromey.com>
11392
11393 * python/py-prettyprint.c (print_stack_unless_memory_error)
11394 (print_string_repr, print_children): Use gdbpy_ref.
11395 (dummy_python_frame): New class.
11396 (dummy_python_frame::dummy_python_frame): Rename from
11397 push_dummy_python_frame.
11398 (py_restore_tstate): Remove.
11399
3b4e0e01
TT
114002017-01-10 Tom Tromey <tom@tromey.com>
11401
11402 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11403
17a22718
TT
114042017-01-10 Tom Tromey <tom@tromey.com>
11405
11406 * python/python.c (ensure_python_env, restore_python_env):
11407 Remove.
11408 * python/python-internal.h (ensure_python_env): Don't declare.
11409 * varobj.h (varobj_ensure_python_env): Don't declare.
11410 * varobj.c (varobj_ensure_python_env): Remove.
11411
68cdc557
TT
114122017-01-10 Tom Tromey <tom@tromey.com>
11413
11414 * varobj.c (varobj_value_get_print_value): Use
11415 gdbpy_enter_varobj.
11416
1eba6383
TT
114172017-01-10 Tom Tromey <tom@tromey.com>
11418
11419 * python/py-prettyprint.c (print_string_repr, print_children):
11420 Update.
11421 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11422 of "encoding".
11423 * varobj.c (varobj_value_get_print_value): Update.
11424 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11425
bde7b3e3
TT
114262017-01-10 Tom Tromey <tom@tromey.com>
11427
11428 * varobj.c (varobj_get_display_hint)
11429 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11430 (varobj_set_visualizer, free_variable): Use
11431 gdbpy_enter_varobj.
11432
a7785f8c
TT
114332017-01-10 Tom Tromey <tom@tromey.com>
11434
11435 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11436 (do_finish_initialization): New function. Use gdbpy_ref.
11437 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11438 do_finish_initialization.
11439
2865bfce
TT
114402017-01-10 Tom Tromey <tom@tromey.com>
11441
11442 * python/py-param.c (get_set_value, get_show_value): Use
11443 gdbpy_enter, gdbpy_ref.
11444
0e9dcc75
TT
114452017-01-10 Tom Tromey <tom@tromey.com>
11446
11447 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11448
12a5cedd
TT
114492017-01-10 Tom Tromey <tom@tromey.com>
11450
11451 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11452
788f2586
TT
114532017-01-10 Tom Tromey <tom@tromey.com>
11454
11455 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11456 Use gdbpy_enter_varobj.
11457
6cd67bea
TT
114582017-01-10 Tom Tromey <tom@tromey.com>
11459
11460 * varobj.c (gdbpy_enter_varobj): New constructor.
11461 * python/python-internal.h (gdbpy_enter_varobj): New class.
11462 * python/py-varobj.c (py_varobj_get_iterator): Use
11463 gdbpy_enter_varobj.
11464
14b122bf
TT
114652017-01-10 Tom Tromey <tom@tromey.com>
11466
11467 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11468 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11469 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11470 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11471 unique_xmalloc_ptr.
11472 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11473
bf1ca3b9
TT
114742017-01-10 Tom Tromey <tom@tromey.com>
11475
11476 * python/py-xmethods.c (invoke_match_method): Use
11477 gdbpy_ref.
11478
572a5524
TT
114792017-01-10 Tom Tromey <tom@tromey.com>
11480
11481 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11482 gdbpy_enter, gdbpy_ref.
11483
396a78b6
TT
114842017-01-10 Tom Tromey <tom@tromey.com>
11485
11486 * python/python.c (python_interactive_command): Use gdbpy_enter.
11487
a88b13c7
TT
114882017-01-10 Tom Tromey <tom@tromey.com>
11489
11490 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11491 gdbpy_ref.
11492
e9f0c363
TT
114932017-01-10 Tom Tromey <tom@tromey.com>
11494
11495 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11496 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11497
6349f452
TT
114982017-01-10 Tom Tromey <tom@tromey.com>
11499
11500 * utils.h (htab_deleter): New struct.
11501 (htab_up): New typedef.
11502 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11503 gdbpy_enter, gdbpy_ref, htab_up.
11504
c0171de6
TT
115052017-01-10 Tom Tromey <tom@tromey.com>
11506
11507 * python/py-unwind.c (pending_frame_invalidate): Remove.
11508 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11509
f18e226f
TT
115102017-01-10 Tom Tromey <tom@tromey.com>
11511
11512 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11513 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11514
c57af3f1
TT
115152017-01-10 Tom Tromey <tom@tromey.com>
11516
11517 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11518
60e600ec
TT
115192017-01-10 Tom Tromey <tom@tromey.com>
11520
11521 * python/python.c (gdbpy_eval_from_control_command)
11522 (gdbpy_source_script, gdbpy_run_events)
11523 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11524 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11525 gdbpy_enter.
11526
bf7da5b0
TT
115272017-01-10 Tom Tromey <tom@tromey.com>
11528
11529 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11530
2d38bced
TT
115312017-01-10 Tom Tromey <tom@tromey.com>
11532
11533 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11534
07bc7329
TT
115352017-01-10 Tom Tromey <tom@tromey.com>
11536
11537 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11538 (python_on_inferior_call_pre, python_on_inferior_call_post)
11539 (python_on_memory_change, python_on_register_change)
11540 (python_inferior_exit, python_new_objfile, add_thread_object)
11541 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11542
6e7c365e
TT
115432017-01-10 Tom Tromey <tom@tromey.com>
11544
11545 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11546 (bpfinishpy_handle_exit): Use gdbpy_enter.
11547
6ba0cd40
TT
115482017-01-10 Tom Tromey <tom@tromey.com>
11549
11550 * python/py-cmd.c (cmdpy_destroyer)
11551 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11552 gdbpy_enter.
11553
de2dc875
TT
115542017-01-10 Tom Tromey <tom@tromey.com>
11555
11556 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11557 gdbpy_enter.
11558 (gdbpy_breakpoint_has_cond): Likewise.
11559
4ecee2c4
TT
115602017-01-10 Tom Tromey <tom@tromey.com>
11561
11562 * python/python.c (gdbpy_enter): New constructor.
11563 (~gdbpy_enter): New destructor.
11564 (restore_python_env, ensure_python_env): Rewrite.
11565 * python/python-internal.h (gdbpy_enter): New class.
11566
37fce74f
TT
115672017-01-10 Tom Tromey <tom@tromey.com>
11568
11569 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11570
53a0cca3
TT
115712017-01-10 Tom Tromey <tom@tromey.com>
11572
11573 * python/py-value.c (value_has_field, get_field_flag)
11574 (get_field_type, valpy_getitem, convert_value_from_python): Use
11575 gdbpy_ref.
11576
ff3724f5
TT
115772017-01-10 Tom Tromey <tom@tromey.com>
11578
11579 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11580 gdbpy_ref.
11581
0700aea5
TT
115822017-01-10 Tom Tromey <tom@tromey.com>
11583
11584 * python/py-prettyprint.c (search_pp_list)
11585 (find_pretty_printer_from_objfiles)
11586 (find_pretty_printer_from_progspace)
11587 (find_pretty_printer_from_gdb, find_pretty_printer)
11588 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11589 gdbpy_ref.
11590
1bb44c9f
TT
115912017-01-10 Tom Tromey <tom@tromey.com>
11592
11593 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11594
87ce03fd
TT
115952017-01-10 Tom Tromey <tom@tromey.com>
11596
11597 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11598 (ltpy_get_all_source_lines): Use gdbpy_ref.
11599
ee0a3fb8
TT
116002017-01-10 Tom Tromey <tom@tromey.com>
11601
11602 * python/py-framefilter.c (extract_sym, extract_value)
11603 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11604 gdbpy_ref.
11605
bf2a52fa
TT
116062017-01-10 Tom Tromey <tom@tromey.com>
11607
11608 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11609
f59fe7f8
TT
116102017-01-10 Tom Tromey <tom@tromey.com>
11611
11612 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11613
80bd970a
TT
116142017-01-10 Tom Tromey <tom@tromey.com>
11615
11616 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11617 gdbpy_ref.
11618
d1b3de2e
TT
116192017-01-10 Tom Tromey <tom@tromey.com>
11620
11621 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11622
3bb43384
TT
116232017-01-10 Tom Tromey <tom@tromey.com>
11624
11625 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11626 (typy_range): Use gdbpy_ref.
11627
abf5651e
TT
116282017-01-10 Tom Tromey <tom@tromey.com>
11629
11630 * python/py-threadevent.c (create_thread_event_object): Use
11631 gdbpy_ref.
11632 * python/py-stopevent.c (create_stop_event_object): Simplify.
11633 (emit_stop_event): Use gdbpy_ref.
11634 * python/py-signalevent.c (create_signal_event_object): Use
11635 gdbpy_ref.
11636 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11637 (emit_new_objfile_event, create_clear_objfiles_event_object)
11638 (emit_clear_objfiles_event): Use gdbpy_ref.
11639 * python/py-infevents.c (create_inferior_call_event_object)
11640 (create_register_changed_event_object)
11641 (create_memory_changed_event_object, emit_inferior_call_event)
11642 (emit_memory_changed_event, emit_register_changed_event): Use
11643 gdbpy_ref.
11644 * python/py-exitedevent.c (create_exited_event_object)
11645 (emit_exited_event): Use gdbpy_ref.
11646 * python/py-event.h (evpy_emit_event): Remove
11647 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11648 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11649 * python/py-continueevent.c (emit_continue_event): Use
11650 gdbpy_ref.
11651 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11652 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11653 gdbpy_ref.
11654 * python/py-bpevent.c (create_breakpoint_event_object): Use
11655 gdbpy_ref.
11656
a68ff33e
TT
116572017-01-10 Tom Tromey <tom@tromey.com>
11658
11659 * python/py-ref.h: New file.
11660
7becfd03
SM
116612017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11662
11663 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11664 void.
11665 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11666 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11667 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11668 * ui-out.c (ui_out::redirect): Likewise.
11669 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11670 * cli/cli-logging.c (set_logging_redirect): Update call site of
11671 ui_out::redirect.
11672 (handle_redirections): Likewise.
11673 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11674 * top.c (execute_command_to_string): Likewise.
11675 * utils.c (do_ui_out_redirect_pop): Likewise.
11676
df294654
SM
116772017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11678
11679 * stack.c (_initialize_stack): Update "frame" command help message.
11680
f5e6296e
IB
116812017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11682
11683 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11684
0e2d6fa6
YQ
116852017-01-06 Yao Qi <yao.qi@linaro.org>
11686
11687 * x86-linux-nat.h: Include gdb_proc_service.h.
11688
44d6d3f9
YQ
116892017-01-06 Yao Qi <yao.qi@linaro.org>
11690
11691 * ser-base.h: Include serial.h.
11692
656731fe
YQ
116932017-01-06 Yao Qi <yao.qi@linaro.org>
11694
11695 * ppc-linux-tdep.h: Include ppc-tdep.h.
11696
1ca8f924
YQ
116972017-01-06 Yao Qi <yao.qi@linaro.org>
11698
11699 * nat/amd64-linux-siginfo.h: Include signal.h.
11700
bc3008c4
YQ
117012017-01-06 Yao Qi <yao.qi@linaro.org>
11702
11703 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11704
66c80d03
YQ
117052017-01-06 Yao Qi <yao.qi@linaro.org>
11706
11707 * mi/mi-parse.h: Include mi-cmds.h.
11708
051d2dda
YQ
117092017-01-06 Yao Qi <yao.qi@linaro.org>
11710
11711 * inf-loop.c: Don't include "target.h".
11712 * inf-loop.h: Include it here.
11713
8018d34f
YQ
117142017-01-06 Yao Qi <yao.qi@linaro.org>
11715
11716 * dfp.h: Include "dboulest.h" and "expression.h".
11717
c0b8369c
YQ
117182017-01-06 Yao Qi <yao.qi@linaro.org>
11719
11720 * ax-gdb.h: Include "ax.h".
11721
ad5cba2a
YQ
117222017-01-06 Yao Qi <yao.qi@linaro.org>
11723
11724 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11725 with nat/gdb_ptrace.h.
11726
1c33cd7f
YQ
117272017-01-05 Yao Qi <yao.qi@linaro.org>
11728
11729 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11730 new line.
11731 (mips64_fbsd_sigframe_init): Likewise.
11732
c988ac1d
JB
117332017-01-04 John Baldwin <jhb@FreeBSD.org>
11734
11735 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11736 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11737
b268007c
JB
117382017-01-04 John Baldwin <jhb@FreeBSD.org>
11739
11740 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11741 * NEWS: Mention new FreeBSD/mips native configuration.
11742 * config/mips/fbsd.mh: New file.
11743 * configure.host: Add mips*-*-freebsd*.
11744 * mips-fbsd-nat.c: New file.
11745
387360da
JB
117462017-01-04 John Baldwin <jhb@FreeBSD.org>
11747
11748 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11749 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11750 * NEWS: Mention new FreeBSD/mips target.
11751 * configure.tgt: Add mips*-*-freebsd*.
11752 * mips-fbsd-tdep.c: New file.
11753 * mips-fbsd-tdep.h: New file.
11754
2aaaf250
YQ
117552017-01-04 Yao Qi <yao.qi@linaro.org>
11756
11757 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11758 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11759
61baf725
JB
117602017-01-01 Joel Brobecker <brobecker@adacore.com>
11761
6dbb839a 11762 Update copyright year range in all GDB files.
61baf725 11763
c113e7ff 117642017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 11765
c113e7ff 11766 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 11767
c113e7ff 11768For older changes see ChangeLog-2016.
c906108c
SS
11769\f
11770Local Variables:
11771mode: change-log
11772left-margin: 8
11773fill-column: 74
11774version-control: never
57da7796 11775coding: utf-8
c906108c 11776End:
This page took 2.599122 seconds and 4 git commands to generate.