Constify some commands in symtab.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * symtab.c (maintenance_print_symbol_cache)
4 (maintenance_flush_symbol_cache)
5 (maintenance_print_symbol_cache_statistics): Constify.
6
7 2017-09-27 Tom Tromey <tom@tromey.com>
8
9 * inferior.c (detach_inferior_command, kill_inferior_command)
10 (inferior_command): Constify.
11
12 2017-09-27 Tom Tromey <tom@tromey.com>
13
14 * regcache.c (regcache_print, maintenance_print_registers)
15 (maintenance_print_raw_registers)
16 (maintenance_print_cooked_registers)
17 (maintenance_print_register_groups)
18 (maintenance_print_remote_registers): Constify.
19
20 2017-09-27 Tom Tromey <tom@tromey.com>
21
22 * printcmd.c (map_display_numbers, undisplay_command)
23 (enable_disable_display_command, enable_display_command)
24 (disable_display_command): Constify.
25
26 2017-09-27 Tom Tromey <tom@tromey.com>
27
28 * breakpoint.h (delete_command): Don't declare.
29 * breakpoint.c (delete_command, enable_once_command)
30 (enable_count_command, enable_delete_command, breakpoint_1)
31 (maintenance_info_breakpoints, stopin_command, stopat_command)
32 (delete_command, delete_trace_command, save_breakpoints)
33 (save_breakpoints_command, save_tracepoints_command): Constify.
34
35 2017-09-27 Tom Tromey <tom@tromey.com>
36
37 * macrocmd.c (macro_expand_command, macro_expand_once_command)
38 (skip_ws, extract_identifier, macro_define_command)
39 (macro_undef_command, macro_list_command): Constify.
40
41 2017-09-27 Tom Tromey <tom@tromey.com>
42
43 * infcmd.c (environment_info, set_environment_command)
44 (unset_environment_command, path_info, info_proc_cmd_1)
45 (info_proc_cmd_mappings, info_proc_cmd_stat)
46 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
47 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
48
49 2017-09-27 Tom Tromey <tom@tromey.com>
50
51 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
52 Constify.
53
54 2017-09-27 Tom Tromey <tom@tromey.com>
55
56 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
57
58 2017-09-27 Tom Tromey <tom@tromey.com>
59
60 * demangle.c (demangle_command): Constify.
61
62 2017-09-27 Tom Tromey <tom@tromey.com>
63
64 * progspace.c (maintenance_info_program_spaces_command):
65 Constify.
66
67 2017-09-27 Tom Tromey <tom@tromey.com>
68
69 * compile/compile.c (check_raw_argument, compile_file_command)
70 (compile_code_command, compile_print_command): Constify.
71
72 2017-09-27 Tom Tromey <tom@tromey.com>
73
74 * reggroups.c (maintenance_print_reggroups): Constify.
75
76 2017-09-27 Tom Tromey <tom@tromey.com>
77
78 * dwarf2read.c (save_gdb_index_command): Constify.
79
80 2017-09-27 Tom Tromey <tom@tromey.com>
81
82 * stap-probe.c (info_probes_stap_command): Constify.
83
84 2017-09-27 Tom Tromey <tom@tromey.com>
85
86 * fork-child.c (unset_exec_wrapper_command): Constify.
87
88 2017-09-27 Tom Tromey <tom@tromey.com>
89
90 * btrace.c (get_uint, get_context_size, no_chunk)
91 (maint_btrace_packet_history_cmd)
92 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
93 (maint_info_btrace_cmd): Constify.
94
95 2017-09-27 Tom Tromey <tom@tromey.com>
96
97 * reverse.c (delete_bookmark_command): Constify.
98
99 2017-09-27 Tom Tromey <tom@tromey.com>
100
101 * remote.c (set_memory_packet_size)
102 (set_memory_write_packet_size, show_memory_write_packet_size)
103 (set_memory_read_packet_size, show_memory_read_packet_size)
104 (compare_sections_command, packet_command, remote_put_command)
105 (remote_get_command, remote_delete_command): Constify.
106
107 2017-09-27 Tom Tromey <tom@tromey.com>
108
109 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
110 (set_mipsfpu_double_command, set_mipsfpu_none_command)
111 (set_mipsfpu_auto_command): Constify.
112
113 2017-09-27 Tom Tromey <tom@tromey.com>
114
115 * cli/cli-cmds.h (cd_command): Constify.
116 * cli/cli-cmds.c (cd_command): Constify.
117
118 2017-09-27 Tom Tromey <tom@tromey.com>
119
120 * thread.c (thread_name_command, thread_find_command): Constify.
121
122 2017-09-27 Tom Tromey <tom@tromey.com>
123
124 * probe.c (enable_probes_command, disable_probes_command):
125 Constify.
126
127 2017-09-27 Tom Tromey <tom@tromey.com>
128
129 * symfile.c (symbol_file_command): Constify.
130 * gdbcore.h (deprecated_file_changed_hook): Constify.
131 * exec.c (deprecated_file_changed_hook, exec_file_command)
132 (file_command): Constify.
133 * defs.h (symbol_file_command): Constify.
134
135 2017-09-27 Tom Tromey <tom@tromey.com>
136
137 * remote-fileio.c (set_system_call_allowed)
138 (show_system_call_allowed): Constify.
139
140 2017-09-27 Tom Tromey <tom@tromey.com>
141
142 * tracepoint.c (delete_trace_variable_command)
143 (tfind_end_command, tfind_start_command, tfind_pc_command)
144 (tfind_tracepoint_command, tfind_line_command)
145 (tfind_range_command, tfind_outside_command): Constify.
146
147 2017-09-27 Tom Tromey <tom@tromey.com>
148
149 * ax-gdb.c (maint_agent_printf_command, agent_command)
150 (agent_eval_command): Constify.
151
152 2017-09-27 Tom Tromey <tom@tromey.com>
153
154 * tracepoint.c (info_scope_command): Constify.
155 * python/python.c (gdbpy_decode_line): Constify.
156 * python/py-breakpoint.c (bppy_init): Constify.
157 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
158 * location.h: (new_linespec_location)
159 (string_to_event_location_basic, string_to_event_location):
160 Constify.
161 * location.c (new_linespec_location)
162 (string_to_event_location_basic, string_to_event_location):
163 Constify.
164 * linespec.h (decode_line_with_current_source)
165 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
166 * linespec.c (linespec_lex_to_end)
167 (decode_line_with_current_source)
168 (decode_line_with_last_displayed): Constify.
169 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
170 Constify.
171 * cli/cli-cmds.c (edit_command, list_command): Constify.
172 * breakpoint.h (until_break_command, watch_command_wrapper)
173 (awatch_command_wrapper, rwatch_command_wrapper)
174 (init_ada_exception_breakpoint): Constify.
175 * breakpoint.c (break_command_1, dprintf_command)
176 (break_range_command, watch_command_wrapper)
177 (rwatch_command_wrapper, awatch_command_wrapper)
178 (until_break_command, init_ada_exception_breakpoint)
179 (strace_marker_create_sals_from_location, trace_command)
180 (ftrace_command, strace_command, struct tracepoint): Constify.
181 * ax-gdb.c (agent_command_1): Constify.
182 * ada-lang.c (ada_exception_sal): Constify.
183
184 2017-09-27 Tom Tromey <tom@tromey.com>
185
186 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
187 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
188 (get_context_size, no_chunk, get_insn_history_modifiers)
189 (cmd_record_insn_history, get_call_history_modifiers)
190 (cmd_record_call_history): Constify.
191
192 2017-09-27 Tom Tromey <tom@tromey.com>
193
194 * source.c (show_substitute_path_command)
195 (unset_substitute_path_command, set_substitute_path_command):
196 Constify.
197
198 2017-09-27 Tom Tromey <tom@tromey.com>
199
200 * typeprint.c (maintenance_print_type): Constify.
201 * maint.c (maintenance_dump_me, maintenance_demangle)
202 (maintenance_time_display, maintenance_info_sections)
203 (maintenance_print_statistics, maintenance_deprecate)
204 (maintenance_undeprecate): Constify.
205 (maintenance_do_deprecate): Constify. Use std::string.
206 (maintenance_selftest): Constify.
207 * gdbtypes.h (maintenance_print_type): Constify.
208
209 2017-09-27 Tom Tromey <tom@tromey.com>
210
211 * hppa-tdep.c (unwind_command): Constify.
212
213 2017-09-27 Tom Tromey <tom@tromey.com>
214
215 * target-descriptions.c (unset_tdesc_filename_cmd)
216 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
217 Constify.
218
219 2017-09-27 Tom Tromey <tom@tromey.com>
220
221 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
222
223 2017-09-27 Tom Tromey <tom@tromey.com>
224
225 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
226
227 2017-09-27 Tom Tromey <tom@tromey.com>
228
229 * tui/tui-regs.c (tui_reg_command): Constify.
230
231 2017-09-27 Tom Tromey <tom@tromey.com>
232
233 * skip.c (skip_file_command, skip_function_command)
234 (skip_enable_command, skip_disable_command, skip_delete_command):
235 Constify.
236
237 2017-09-27 Tom Tromey <tom@tromey.com>
238
239 * record-btrace.c (cmd_record_btrace_bts_start)
240 (cmd_record_btrace_pt_start): Constify.
241
242 2017-09-27 Tom Tromey <tom@tromey.com>
243
244 * symmisc.c (maintenance_print_symbols)
245 (maintenance_print_msymbols, maintenance_print_objfiles)
246 (maintenance_info_symtabs, maintenance_check_symtabs)
247 (maintenance_expand_symtabs, maintenance_info_line_tables):
248 Constify.
249
250 2017-09-27 Tom Tromey <tom@tromey.com>
251
252 * top.c (new_ui_command): Constify.
253
254 2017-09-27 Tom Tromey <tom@tromey.com>
255
256 * symfile.c (add_symbol_file_command)
257 (remove_symbol_file_command, list_overlays_command)
258 (map_overlay_command, unmap_overlay_command)
259 (overlay_auto_command, overlay_manual_command)
260 (overlay_off_command, overlay_load_command): Constify.
261
262 2017-09-27 Tom Tromey <tom@tromey.com>
263
264 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
265 (info_spu_mailbox_command, info_spu_dma_command)
266 (info_spu_proxydma_command): Constify.
267
268 2017-09-27 Tom Tromey <tom@tromey.com>
269
270 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
271
272 2017-09-27 Tom Tromey <tom@tromey.com>
273
274 * cli/cli-script.c (user_defined_command): Constify.
275
276 2017-09-27 Tom Tromey <tom@tromey.com>
277
278 * cli/cli-dump.c (dump_memory_command, dump_value_command)
279 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
280 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
281 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
282 (dump_binary_value, append_binary_memory, append_binary_value):
283 Constify.
284 (struct dump_context) <func>: Constify.
285 (add_dump_command): Update.
286
287 2017-09-27 Tom Tromey <tom@tromey.com>
288
289 * cli/cli-cmds.c (show_version, show_configuration)
290 (source_command, show_user): Constify.
291
292 2017-09-27 Tom Tromey <tom@tromey.com>
293
294 * target.c (maintenance_print_target_stack): Constify.
295
296 2017-09-27 Tom Tromey <tom@tromey.com>
297
298 * interps.c (interpreter_exec_cmd): Constify.
299
300 2017-09-27 Tom Tromey <tom@tromey.com>
301
302 * record-full.c (cmd_record_full_restore): Constify.
303
304 2017-09-27 Tom Tromey <tom@tromey.com>
305
306 * memattr.c (enable_mem_command, disable_mem_command)
307 (delete_mem_command): Constify.
308
309 2017-09-27 Tom Tromey <tom@tromey.com>
310
311 * value.c (show_convenience): Constify.
312
313 2017-09-27 Tom Tromey <tom@tromey.com>
314
315 * gdbcore.h (core_file_command): Update.
316 * corefile.c (core_file_command): Constify.
317
318 2017-09-27 Tom Tromey <tom@tromey.com>
319
320 * user-regs.c (maintenance_print_user_registers): Constify.
321
322 2017-09-27 Tom Tromey <tom@tromey.com>
323
324 * cp-namespace.c (maintenance_cplus_namespace): Constify.
325
326 2017-09-27 Tom Tromey <tom@tromey.com>
327
328 * cp-support.c (first_component_command): Constify.
329
330 2017-09-27 Tom Tromey <tom@tromey.com>
331
332 * psymtab.c (maintenance_print_psymbols)
333 (maintenance_info_psymtabs, maintenance_check_psymtabs):
334 Constify.
335
336 2017-09-27 Tom Tromey <tom@tromey.com>
337
338 * windows-tdep.c (display_tib): Constify.
339
340 2017-09-27 Tom Tromey <tom@tromey.com>
341
342 * linux-fork.c (delete_checkpoint_command)
343 (detach_checkpoint_command): Constify.
344
345 2017-09-27 Tom Tromey <tom@tromey.com>
346
347 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
348
349 2017-09-27 Tom Tromey <tom@tromey.com>
350
351 * arc-tdep.c (dump_arc_instruction_command): Constify.
352
353 2017-09-27 Tom Tromey <tom@tromey.com>
354
355 * valprint.c (set_radix, show_radix): Constify.
356
357 2017-09-27 Tom Tromey <tom@tromey.com>
358
359 * dtrace-probe.c (info_probes_dtrace_command): Constify.
360
361 2017-09-27 Tom Tromey <tom@tromey.com>
362
363 * command.h (not_just_help_class_command): Update.
364 * cli/cli-decode.h (not_just_help_class_command): Update.
365 * cli/cli-decode.c (not_just_help_class_command): Constify.
366
367 2017-09-27 Tom Tromey <tom@tromey.com>
368
369 * gdb_bfd.c (maintenance_info_bfds): Constify.
370
371 2017-09-27 Tom Tromey <tom@tromey.com>
372
373 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
374 overloads.
375 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
376 (do_const_cfunc): New function.
377 (cmd_cfunc_eq): New overload.
378 (cli_user_command_p): Check do_const_cfunc.
379 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
380 const_cfunc.
381 * command.h (add_cmd): Add const overload and no-function
382 overload.
383 (set_cmd_cfunc): Add const overload.
384 (cmd_const_cfunc_ftype): Declare.
385 (cmd_cfunc_eq): Add const overload.
386 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
387 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
388 overload.
389
390 2017-09-27 Tom Tromey <tom@tromey.com>
391
392 * macroexp.c (get_next_token_for_substitution): New function.
393 (substitute_args): Call it. Check for __VA_OPT__.
394
395 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
396 Pedro Alves <palves@redhat.com>
397
398 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
399 producer_is_icc_lt_14.
400 (producer_is_icc_lt_14): New function.
401 (check_producer): Add code for checking version of ICC.
402 (producer_is_icc): Move to producer.c.
403 (read_structure_type): Restrict ICC workaround to ICC<14.
404 * producer.c: Include selftest.h.
405 (producer_is_icc, producer_parsing_tests, _initialize_producer):
406 New functions.
407 * producer.h (producer_is_icc): New declaration.
408
409 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
410
411 * Makefile.in (SFILES): Add producer.c.
412 (COMMON_OBS): Add producer.o
413 * amd64-tdep.c (producer.h): Add new include.
414 * dwarf2read.c (producer.h): Add new include.
415 * producer.c: New file.
416 * producer.h: New file.
417 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
418 producer.c.
419 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
420 producer.h.
421
422 2017-09-26 Matthias Klose <doko@ubuntu.com>
423
424 * configure.ac: Search ncursesw before ncurses.
425 Check ncursesw/ncurses.h before ncurses/ncurses.h.
426 * gdb_curses.h: Include <ncursesw/ncurses.h>
427 * config.in, configure: Regenerate.
428
429 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430
431 PR gdb/22185
432 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
433 obsolete.
434 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
435 Remove i386sol2 support.
436 * configure.nat <i386sol2>: Remove.
437 <sol2-64>: Fold into ...
438 <sol2>: ... this.
439 Move common settings to default section.
440 Add sol-thread.o.
441 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
442 x86_64-*-solaris2.1[0-9]*>: Rename to ...
443 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
444 <i[34567]86-*-solaris*>: Remove.
445 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
446
447 * configure.ac: Remove wctype in libw check.
448 (_MSE_INT_H): Don't define on Solaris 7-9.
449 <solaris*>: Remove libthread_db.so.1 check.
450 * configure: Regenerate.
451 * config.in: Regenerate.
452
453 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
454 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
455 (gdb_ps_size_t): Remove.
456 Use base types in users.
457 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
458
459 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
460
461 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
462
463 PR build/22206
464 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
465 (adi_is_addr_mapped): Likewise.
466 (PSR_ICC): Don't redefine.
467 (PSR_IMPL): Likewise.
468
469 2017-09-25 Tom Tromey <tom@tromey.com>
470
471 * regcache.c (regcache::dump): Use string_printf.
472
473 2017-09-25 Tom Tromey <tom@tromey.com>
474
475 * regcache.c (class regcache_invalidator): New.
476 (struct register_to_invalidate): Remove.
477 (make_cleanup_regcache_invalidate): Remove.
478 (regcache::raw_write): Use regcache_invalidator.
479
480 2017-09-25 Tom Tromey <tom@tromey.com>
481
482 * spu-tdep.c (spu2ppu_sniffer): Update.
483 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
484 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
485 Remove.
486 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
487 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
488 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
489 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
490 (frame_pop): Update.
491
492 2017-09-25 Tom Tromey <tom@tromey.com>
493
494 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
495 * regcache.h (regcache_xfree): Don't declare.
496 * regcache.c (regcache_xfree): Remove.
497 (do_regcache_xfree): Use delete.
498 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
499 * linux-fork.c (free_fork): Use delete.
500 (fork_save_infrun_state): Likewise.
501 * jit.c (jit_dealloc_cache): Use delete.
502 * infrun.c (discard_infcall_suspend_state): Use delete.
503
504 2017-09-25 Tom Tromey <tom@tromey.com>
505
506 * regcache.h (regcache_xmalloc): Don't declare.
507 (regcache_raw_set_cached_value): Update comment.
508 * regcache.c (regcache_xmalloc): Remove.
509 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
510 * jit.c (jit_frame_sniffer): Use new.
511 * frame.c (frame_save_as_regcache): Use new.
512
513 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
514
515 * NEWS: Advertise support for guarded-storage registers on IBM z.
516
517 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
518
519 * s390-linux-nat.c (have_regset_gs): New static variable.
520 (s390_linux_fetch_inferior_registers): Handle guarded-storage
521 control block and guarded-storage broadcast control regsets.
522 (s390_read_description): Detect whether the target has
523 guarded-storage support, return appropriate tdesc.
524 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
525 (features/s390x-gs-linux64.c): Likewise.
526 (struct gdbarch_tdep) <have_gs>: New field.
527 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
528 (s390_gsbc_regset): New variables.
529 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
530 and s390_gsbc_regset, if applicable.
531 (s390_core_read_description): Check whether core file was from a
532 target with guarded-storage support; include appropriate regsets.
533 (s390_gdbarch_init): Add registers for guarded-storage support.
534 (_initialize_s390_tdep): Initialize new target descriptions that
535 include registers for guarded-storage support.
536 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
537 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
538 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
539 (S390_NUM_REGS): Adjust macro definition.
540 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
541 (tdesc_s390x_gs_linux64): New declarations.
542
543 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
544
545 * features/s390-gs-linux64.xml: New file.
546 * features/s390-gs.xml: New file.
547 * features/s390-gsbc.xml: New file.
548 * features/s390x-gs-linux64.xml: New file.
549 * features/Makefile (WHICH): Add s390-gs-linux64 and
550 s390x-gs-linux64.
551 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
552 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
553 * features/s390-gs-linux64.c: New generated file.
554 * features/s390x-gs-linux64.c: New file.
555 * regformats/s390-gs-linux64.dat: New file.
556 * regformats/s390x-gs-linux64.dat: New file.
557
558 2017-09-23 Tom Tromey <tom@tromey.com>
559
560 * defs.h (make_cleanup_override_quit_handler): Don't declare.
561
562 2017-09-22 Tom Tromey <tom@tromey.com>
563
564 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
565 type to scoped_restore_tmpl.
566 <scoped_input_handler>: Initialize m_quit_handler directly.
567
568 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
569
570 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
571 (cd_command): Likewise. Free "current_directory" before
572 assigning to it.
573 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
574 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
575 * top.c (gdb_dirbuf): Remove global declaration.
576 * top.h (gdb_dirbuf): Likewise.
577
578 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
579
580 * gnulib/aclocal.m4: Regenerate.
581 * gnulib/config.in: Regenerate.
582 * gnulib/configure: Regenerate.
583 * gnulib/import/Makefile.am: Regenerate.
584 * gnulib/import/Makefile.in: Regenerate.
585 * gnulib/import/assure.h: New file.
586 * gnulib/import/at-func.c: Likewise
587 * gnulib/import/chdir-long.c: New file.
588 * gnulib/import/chdir-long.h: New file.
589 * gnulib/import/cloexec.c: New file.
590 * gnulib/import/cloexec.h: New file.
591 * gnulib/import/close.c: New file.
592 * gnulib/import/closedir.c: New file.
593 * gnulib/import/dirent-private.h: New file.
594 * gnulib/import/dup-safer.c: New file.
595 * gnulib/import/dup.c: New file.
596 * gnulib/import/dup2.c: New file.
597 * gnulib/import/error.c: New file.
598 * gnulib/import/error.h: New file.
599 * gnulib/import/exitfail.c: New file.
600 * gnulib/import/exitfail.h: New file.
601 * gnulib/import/fchdir.c: New file.
602 * gnulib/import/fcntl.c: New file.
603 * gnulib/import/fcntl.in.h: New file.
604 * gnulib/import/fd-hook.c: New file.
605 * gnulib/import/fd-hook.h: New file.
606 * gnulib/import/fd-safer.c: New file.
607 * gnulib/import/fdopendir.c: New file.
608 * gnulib/import/filename.h: New file.
609 * gnulib/import/filenamecat-lgpl.c: New file.
610 * gnulib/import/filenamecat.h: New file.
611 * gnulib/import/fstat.c: New file.
612 * gnulib/import/fstatat.c: New file.
613 * gnulib/import/getcwd-lgpl.c: New file.
614 * gnulib/import/getcwd.c: New file.
615 * gnulib/import/getdtablesize.c: New file.
616 * gnulib/import/getlogin_r.c: New file.
617 * gnulib/import/getprogname.c: New file.
618 * gnulib/import/getprogname.h: New file.
619 * gnulib/import/gettext.h: New file.
620 * gnulib/import/glob-libc.h: New file.
621 * gnulib/import/glob.c: New file.
622 * gnulib/import/glob.in.h: New file.
623 * gnulib/import/intprops.h: New file.
624 * gnulib/import/m4/chdir-long.m4: New file.
625 * gnulib/import/m4/close.m4: New file.
626 * gnulib/import/m4/closedir.m4: New file.
627 * gnulib/import/m4/d-ino.m4: New file.
628 * gnulib/import/m4/d-type.m4: New file.
629 * gnulib/import/m4/dup.m4: New file.
630 * gnulib/import/m4/dup2.m4: New file.
631 * gnulib/import/m4/error.m4: New file.
632 * gnulib/import/m4/fchdir.m4: New file.
633 * gnulib/import/m4/fcntl.m4: New file.
634 * gnulib/import/m4/fcntl_h.m4: New file.
635 * gnulib/import/m4/fdopendir.m4: New file.
636 * gnulib/import/m4/filenamecat.m4: New file.
637 * gnulib/import/m4/fstat.m4: New file.
638 * gnulib/import/m4/fstatat.m4: New file.
639 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
640 * gnulib/import/m4/getcwd-path-max.m4: New file.
641 * gnulib/import/m4/getcwd.m4: New file.
642 * gnulib/import/m4/getdtablesize.m4: New file.
643 * gnulib/import/m4/getlogin_r.m4: New file.
644 * gnulib/import/m4/getprogname.m4: New file.
645 * gnulib/import/m4/glob.m4: New file.
646 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
647 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
648 * gnulib/import/m4/mempcpy.m4: New file.
649 * gnulib/import/m4/memrchr.m4: New file.
650 * gnulib/import/m4/mode_t.m4: New file.
651 * gnulib/import/m4/msvc-inval.m4: New file.
652 * gnulib/import/m4/msvc-nothrow.m4: New file.
653 * gnulib/import/m4/open.m4: New file.
654 * gnulib/import/m4/openat.m4: New file.
655 * gnulib/import/m4/opendir.m4: New file.
656 * gnulib/import/m4/readdir.m4: New file.
657 * gnulib/import/m4/realloc.m4: New file.
658 * gnulib/import/m4/rewinddir.m4: New file.
659 * gnulib/import/m4/save-cwd.m4: New file.
660 * gnulib/import/m4/strdup.m4: New file.
661 * gnulib/import/m4/strerror.m4: New file.
662 * gnulib/import/m4/unistd-safer.m4: New file.
663 * gnulib/import/mempcpy.c: New file.
664 * gnulib/import/memrchr.c: New file.
665 * gnulib/import/msvc-inval.c: New file.
666 * gnulib/import/msvc-inval.h: New file.
667 * gnulib/import/msvc-nothrow.c: New file.
668 * gnulib/import/msvc-nothrow.h: New file.
669 * gnulib/import/open.c: New file.
670 * gnulib/import/openat-die.c: New file.
671 * gnulib/import/openat-priv.h: New file.
672 * gnulib/import/openat-proc.c: New file.
673 * gnulib/import/openat.c: New file.
674 * gnulib/import/openat.h: New file.
675 * gnulib/import/opendir.c: New file.
676 * gnulib/import/pipe-safer.c: New file.
677 * gnulib/import/readdir.c: New file.
678 * gnulib/import/realloc.c: New file.
679 * gnulib/import/rewinddir.c: New file.
680 * gnulib/import/save-cwd.c: New file.
681 * gnulib/import/save-cwd.h: New file.
682 * gnulib/import/strdup.c: New file.
683 * gnulib/import/strerror-override.c: New file.
684 * gnulib/import/strerror-override.h: New file.
685 * gnulib/import/strerror.c: New file.
686 * gnulib/import/unistd--.h: New file.
687 * gnulib/import/unistd-safer.h: New file.
688 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
689 "getcwd" and "glob".
690 * ser-tcp.c: Undefine "close" before redefining it.
691
692 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
693
694 * guile/scm-value.c (gdbscm_value_address): Initialize address,
695 get rid of res_val.
696
697 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
698
699 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
700 <sol2,sparc>: Likewise.
701 <sol2-64,i386>: Likewise.
702
703 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
704 -Wdeprecated-declarations on *-*-solaris*.
705 * configure: Regenerate.
706
707 * procfs.c: Include "nat/inferior.h".
708 (procfs_info_proc): Fix typo.
709
710 2017-09-21 Kevin Buettner <kevinb@redhat.com>
711
712 * remote.c (vector): Include.
713 (struct private_thread_info): Add field, thread_handle.
714 (free_private_thread_info): Deallocate storage associated with
715 thread handle.
716 (get_private_info_thread): Initialize `thread_handle' field.
717 (struct thread_item): Add field, thread_handle.
718 (clear_threads_listing_context): Deallocate storage associated
719 with thread handle.
720 (start_thread): Add support for "handle" attribute.
721 (thread_attributes): Add "handle".
722 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
723 field.
724 (remote_update_thread_list): Update thread_handle.
725 (remote_thread_handle_to_thread_info): New function.
726 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
727
728 2017-09-21 Kevin Buettner <kevinb@redhat.com>
729
730 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
731 function.
732 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
733 * python/python-internal.h (thread_object_type): Declare.
734
735 2017-09-21 Kevin Buettner <kevinb@redhat.com>
736
737 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
738 (target_thread_handle_to_thread_info): Declare.
739 * target.c (target_thread_handle_to_thread_info): New function.
740 * target-delegates.c: Regenerate.
741 * gdbthread.h (find_thread_by_handle): Declare.
742 * thread.c (find_thread_by_handle): New function.
743 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
744 function.
745 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
746
747 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
748
749 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
750
751 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
752
753 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
754
755 2017-09-21 Yao Qi <yao.qi@linaro.org>
756
757 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
758 to gdb_target_obs.
759
760 2017-09-20 Tom Tromey <tom@tromey.com>
761
762 * breakpoint.c (struct counted_command_line): Remove.
763 (breakpoint_commands): Update.
764 (alloc_counted_command_line, incref_counted_command_line)
765 (decref_counted_command_line, do_cleanup_counted_command_line)
766 (make_cleanup_decref_counted_command_line): Remove.
767 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
768 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
769 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
770 (save_breakpoints): Update.
771 * breakpoint.h (counted_command_line): Now a typedef to
772 shared_ptr.
773 (struct breakpoint) <commands>: Now a counted_command_line.
774 (struct bpstats) <command>: Likewise.
775
776 2017-09-20 Tom Tromey <tom@tromey.com>
777
778 * breakpoint.c (struct commands_info, do_map_commands_command):
779 Remove.
780 (commands_command_1): Update.
781 (iterate_over_related_breakpoints): Take a function_view.
782 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
783 (delete_command): Update.
784 (map_breakpoint_numbers): Take a function_view.
785 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
786 (disable_command): Update.
787 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
788 (enable_command): Update.
789 (struct disp_data, do_enable_breakpoint_disp)
790 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
791 (do_map_enable_delete_breakpoint): Remove.
792 (enable_once_command, enable_count_command, enable_delete_command)
793 (delete_trace_variable_command): Update.
794
795 2017-09-20 Tom Tromey <tom@tromey.com>
796
797 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
798 (bpstat_clear): Use delete.
799 (bpstats): New constructors.
800 (bpstat_copy, bpstat_stop_status): Use new.
801 (dprintf_after_condition_true): Update.
802 * breakpoint.h (bpstats::bpstats): Add constructors.
803 (bpstats::~bpstats): Add destructor.
804
805 2017-09-20 Pedro Alves <palves@redhat.com>
806
807 * eval.c (make_params): Delete, refactored as ...
808 (class fake_method): ... this new type's ctor.
809 (fake_method::~fake_method): New.
810 (evaluate_subexp_standard): Use 'fake_method'.
811
812 2017-09-20 Tom Tromey <tom@tromey.com>
813
814 * windows-nat.c (get_windows_debug_event, windows_wait)
815 (do_initial_windows_stuff, windows_attach): Update.
816 * utils.c (vwarning, internal_vproblem): Update.
817 (ui_unregister_input_event_handler_cleanup)
818 (prepare_to_handle_input): Remove.
819 (class scoped_input_handler): New.
820 (defaulted_query, prompt_for_continue): Update.
821 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
822 Update.
823 * top.c (undo_terminal_modifications_before_exit): Update.
824 * target/target.h (target_terminal_init, target_terminal_inferior)
825 (target_terminal_ours): Don't declare.
826 (class target_terminal): New.
827 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
828 (target_terminal_ours_for_output)
829 (make_cleanup_restore_target_terminal): Don't declare.
830 (target_terminal_info): Remove.
831 * target.c (enum terminal_state, terminal_state): Remove.
832 (target_terminal::terminal_state): Define.
833 (target_terminal::init): Rename from target_terminal_init.
834 (target_terminal::inferior): Rename from
835 target_terminal_inferior.
836 (target_terminal::ours): Rename from target_terminal_ours.
837 (target_terminal::ours_for_output): Rename from
838 target_terminal_ours_for_output.
839 (target_terminal::info): New method.
840 (cleanup_restore_target_terminal)
841 (make_cleanup_restore_target_terminal): Remove.
842 * solib.c (handle_solib_event): Update.
843 * remote.c (remote_serial_quit_handler): Update.
844 (remote_terminal_inferior, remote_wait_as): Update.
845 * record-full.c (record_full_wait_1): Update.
846 * nto-procfs.c (procfs_create_inferior): Update.
847 * nat/fork-inferior.c (startup_inferior): Update.
848 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
849 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
850 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
851 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
852 (mi_breakpoint_created, mi_breakpoint_deleted)
853 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
854 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
855 (mi_user_selected_context_changed, report_initial_inferior):
856 Update.
857 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
858 (linux_nat_terminal_inferior): Update.
859 * infrun.c (follow_fork_inferior)
860 (handle_vfork_child_exec_or_exit, do_target_resume)
861 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
862 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
863 Update.
864 * inflow.c (child_terminal_init, info_terminal_command): Update.
865 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
866 (attach_command): Update.
867 * infcall.c (call_thread_fsm_should_stop): Update.
868 * gnu-nat.c (gnu_attach): Update.
869 * extension.c (struct active_ext_lang_state)
870 (restore_active_ext_lang): Update.
871 * exceptions.c (print_flush): Update.
872 * event-top.c (async_enable_stdin, default_quit_handler): Update.
873 (struct quit_handler_cleanup_data, restore_quit_handler)
874 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
875 Remove.
876 * cp-support.c (gdb_demangle): Update.
877 * breakpoint.c (update_inserted_breakpoint_locations)
878 (insert_breakpoint_locations, handle_jit_event)
879 (disable_breakpoints_in_unloaded_shlib): Update.
880 * annotate.c (annotate_breakpoints_invalid)
881 (annotate_frames_invalid): Update.
882
883 2017-09-20 Tom Tromey <tom@tromey.com>
884
885 * main.c (catch_command_errors): Rename from
886 catch_command_errors_const.
887 (captured_main_1): Update.
888
889 2017-09-20 Pedro Alves <palves@redhat.com>
890
891 * cli/cli-cmds.c (list_command): Use print_sal_location.
892 (print_sal_location): New function.
893 (ambiguous_line_spec): Use print_sal_location.
894 * linespec.c (symbol_to_sal): Record the symbol in the sal.
895 * symtab.c (find_function_start_sal): Likewise.
896 * symtab.h (symtab_and_line::symbol): New field.
897
898 2017-09-20 Pedro Alves <palves@redhat.com>
899
900 * linespec.c (minsym_found): Handle non-text minsyms.
901 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
902
903 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
904
905 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
906 backslash.
907
908 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
909
910 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
911 vmovups instead vmovaps.
912 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
913
914 2017-09-19 John Baldwin <jhb@FreeBSD.org>
915
916 * NEWS (Changes since GDB 8.0): Add starti.
917 * infcmd.c (enum run_break): New.
918 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
919 case.
920 (run_command): Use enum run_how.
921 (start_command): Likewise.
922 (starti_command): New function.
923 (RUN_ARGS_HELP): New macro.
924 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
925 commands. Add starti command.
926
927 2017-09-19 Yao Qi <yao.qi@linaro.org>
928
929 * Makefile.in (monitor.o): Remove the rule.
930
931 2017-09-19 Yao Qi <yao.qi@linaro.org>
932
933 * annotate.h (struct annotate_arg_emitter): Use
934 DISABLE_COPY_AND_ASSIGN.
935 * common/refcounted-object.h (refcounted_object): Likewise.
936 * completer.h (struct completion_result): Likewise.
937 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
938 * filename-seen-cache.h (filename_seen_cache): Likewise.
939 * gdbcore.h (thread_section_name): Likewise.
940 * gdb_regex.h (compiled_regex): Likewise.
941 * gdbthread.h (scoped_restore_current_thread): Likewise.
942 * inferior.h (scoped_restore_current_inferior): Likewise.
943 * jit.c (jit_reader): Likewise.
944 * linespec.h (struct linespec_result): Likewise.
945 * mi/mi-parse.h (struct mi_parse): Likewise.
946 * nat/fork-inferior.c (execv_argv): Likewise.
947 * progspace.h (scoped_restore_current_program_space): Likewise.
948 * python/python-internal.h (class gdbpy_enter): Likewise.
949 * regcache.h (regcache): Likewise.
950 * target-descriptions.c (struct tdesc_reg): Likewise.
951 (struct tdesc_type): Likewise.
952 (struct tdesc_feature): Likewise.
953 * ui-out.h (ui_out_emit_type): Likewise.
954
955 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
956
957 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
958 label abort_expression.
959
960 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
961
962 * common/buffer.c (buffer_xml_printf): Adjust.
963 * common/xml-utils.c (xml_escape_text): Change return type to
964 std::string, update code accordingly.
965 * common/xml-utils.h (xml_escape_text): Change return type to
966 std::string.
967 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
968 * windows-tdep.c (windows_xfer_shared_library): Adjust.
969 * unittests/xml-utils-selftests.c (test_xml_escape_text):
970 Adjust.
971
972 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
973
974 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
975 (SUBDIR_UNITTESTS_OBS): Add new object file.
976 * unittests/xml-utils-selftests.c: New file.
977
978 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
979
980 * common/selftest.h (selftest): New struct/interface.
981 (register_test): Add name parameter, add new overload.
982 (run_tests): Add filter parameter.
983 (for_each_selftest_ftype): New typedef.
984 (for_each_selftest): New declaration.
985 * common/selftest.c (tests): Change type to
986 map<string, unique_ptr<selftest>>.
987 (simple_selftest): New struct.
988 (register_test): New function.
989 (register_test): Add name parameter and use it.
990 (run_tests): Add filter parameter and use it. Add prints.
991 Adjust to vector -> map change.
992 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
993 registering selftests.
994 * arm-tdep.c (_initialize_arm_tdep): Likewise.
995 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
996 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
997 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
998 * findvar.c (_initialize_findvar): Likewise.
999 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1000 * maint.c (maintenance_selftest): Update call to run_tests.
1001 (maintenance_info_selftests): New function.
1002 (_initialize_maint_cmds): Register "maintenance info selftests"
1003 command. Update "maintenance selftest" doc.
1004 * regcache.c (_initialize_regcache): Add names when registering
1005 selftests.
1006 * rust-exp.y (_initialize_rust_exp): Likewise.
1007 * selftest-arch.c (gdbarch_selftest): New struct.
1008 (gdbarch_tests): Remove.
1009 (register_test_foreach_arch): Add name parameter. Call
1010 register_test.
1011 (tests_with_arch): Remove, move most content to
1012 gdbarch_selftest::operator().
1013 (_initialize_selftests_foreach_arch): Remove.
1014 * selftest-arch.h (register_test_foreach_arch): Add name
1015 parameter.
1016 (run_tests_with_arch): New declaration.
1017 * utils-selftests.c (_initialize_utils_selftests): Add names
1018 when registering selftests.
1019 * utils.c (_initialize_utils): Likewise.
1020 * unittests/array-view-selftests.c
1021 (_initialize_array_view_selftests): Likewise.
1022 * unittests/environ-selftests.c (_initialize_environ_selftests):
1023 Likewise.
1024 * unittests/function-view-selftests.c
1025 (_initialize_function_view_selftests): Likewise.
1026 * unittests/offset-type-selftests.c
1027 (_initialize_offset_type_selftests): Likewise.
1028 * unittests/optional-selftests.c
1029 (_initialize_optional_selftests): Likewise.
1030 * unittests/scoped_restore-selftests.c
1031 (_initialize_scoped_restore_selftests): Likewise.
1032 * NEWS: Document "maintenance selftest" and "maint info
1033 selftests".
1034
1035 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1036
1037 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1038 scoped_restore.
1039
1040 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1041
1042 * mi/mi-main.c (mi_load_progress): Make uiout variable
1043 a unique_ptr.
1044
1045 2017-09-15 Pedro Alves <palves@redhat.com>
1046
1047 * compile/compile-c-types.c (convert_enum, convert_int)
1048 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1049
1050 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1051
1052 * dwarf2read.c (copy_string): Remove.
1053 (parse_macro_definition): Replace copy_string with savestring.
1054
1055 2017-09-15 Yao Qi <yao.qi@linaro.org>
1056
1057 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1058 gdb_target_obs.
1059 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1060 Likewise.
1061 (i[34567]86-*-linux*): Likewise.
1062
1063 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1064
1065 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1066 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1067 <stack>: Change type to std::vector.
1068 <stack_len, stack_allocated>: Remove.
1069 <grow_stack>: Remove.
1070 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1071 (dwarf_expr_context::~dwarf_expr_context): Remove.
1072 (dwarf_expr_context::grow_stack): Remove.
1073 (dwarf_expr_context::push): Adjust.
1074 (dwarf_expr_context::pop): Adjust.
1075 (dwarf_expr_context::fetch): Adjust.
1076 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1077 (dwarf_expr_context::stack_empty_p): Adjust.
1078 (dwarf_expr_context::execute_stack_op): Adjust.
1079
1080 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1081
1082 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1083 return type to bool.
1084 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1085
1086 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1087
1088 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1089 Change type to bool.
1090 (dwarf_stack_value) <in_stack_memory>: Likewise.
1091 (dwarf_expr_context) <push_address>: Change parameter type to
1092 bool.
1093 <fetch_in_stack_memory>: Change return type to bool.
1094 <push>: Change parameter type to bool.
1095 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1096 to bool.
1097 (dwarf_expr_context::push_address): Likewise.
1098 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1099 to bool.
1100 (dwarf_expr_context::execute_stack_op): Adjust.
1101 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1102
1103 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1104
1105 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1106 (struct dwarf_expr_context) <n_pieces>: Remove.
1107 <pieces>: Change type to std::vector.
1108 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1109 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1110 pieces.
1111 (dwarf_expr_context::add_piece): Adjust.
1112 * dwarf2loc.c (struct piece_closure): Initialize fields.
1113 <n_pieces>: Remove.
1114 <pieces>: Change type to std::vector.
1115 (allocate_piece_closure): Adjust, change parameter to
1116 std::vector rvalue and std::move it to piece_closure.
1117 (rw_pieced_value): Adjust.
1118 (check_pieced_synthetic_pointer): Adjust.
1119 (indirect_synthetic_pointer): Adjust.
1120 (coerce_pieced_ref): Adjust.
1121 (free_pieced_value_closure): Adjust. Use delete to free
1122 piece_closure.
1123 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1124 to allocate_piece_closure.
1125 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1126
1127 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1128
1129 * probe.h (probe_ops_cp): Remove typedef.
1130 (DEF_VEC_P (probe_ops_cp)): Remove.
1131 (all_probe_ops): Change type to std::vector.
1132 * probe.c (info_probes_for_ops): Adjust to vector change.
1133 (probe_linespec_to_ops): Likewise.
1134 (all_probe_ops): Change type to std::vector.
1135 (_initialize_probe): Adjust to vector change.
1136 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1137 * elfread.c (elf_get_probes): Likewise.
1138 * stap-probe.c (_initialize_stap_probe): Likewise.
1139
1140 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1141
1142 * probe.h (struct bound_probe): Define constructors.
1143 * probe.c (bound_probe_s): Remove typedef.
1144 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1145 (collect_probes): Change return type to std::vector, remove
1146 cleanup.
1147 (compare_probes): Return bool, change parameter type. Change
1148 semantic to "less than".
1149 (gen_ui_out_table_header_info): Change parameter to std::vector
1150 and update.
1151 (exists_probe_with_pops): Likewise.
1152 (info_probes_for_ops): Update to std::vector change.
1153 (enable_probes_command): Likewise.
1154 (disable_probes_command): Likewise.
1155
1156 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1157
1158 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1159 vec to std::vector.
1160 * probe.c (parse_probes_in_pspace): Update.
1161 (find_probes_in_objfile): Update.
1162 (find_probe_by_pc): Update.
1163 (collect_probes): Update.
1164 (probe_any_get_probes): Update.
1165 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1166 return type to reference to std::vector.
1167 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1168 std::vector and update.
1169 (dtrace_process_dof): Likewise.
1170 (dtrace_get_probes): Likewise.
1171 * elfread.c (elf_get_probes): Change return type to std::vector,
1172 store an std::vector in bfd_data.
1173 (probe_key_free): Update to std::vector.
1174 * stap-probe.c (handle_stap_probe): Change parameter to
1175 std::vector and update.
1176 (stap_get_probes): Likewise.
1177 * symfile-debug.c (debug_sym_get_probes): Change return type to
1178 std::vector and update.
1179
1180 2017-09-11 Tom Tromey <tom@tromey.com>
1181
1182 * breakpoint.c (program_breakpoint_here_p): Update.
1183 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1184 from make_show_memory_breakpoints_cleanup. Return a
1185 scoped_restore_tmpl<int>.
1186 (restore_show_memory_breakpoints): Remove.
1187 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1188 * mem-break.c (memory_validate_breakpoint): Update.
1189 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1190 (ia64_memory_remove_breakpoint): Update.
1191 (ia64_breakpoint_from_pc): Update.
1192 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1193 from make_show_memory_breakpoints_cleanup.
1194
1195 2017-09-11 Tom Tromey <tom@tromey.com>
1196
1197 * d-namespace.c (d_lookup_symbol): Use std::string.
1198 (find_symbol_in_baseclass): Likewise.
1199
1200 2017-09-11 Tom Tromey <tom@tromey.com>
1201
1202 * ctf.c (ctf_start): Use std::string.
1203
1204 2017-09-11 Tom Tromey <tom@tromey.com>
1205
1206 * ada-lang.c (is_known_support_routine): Update.
1207 (ada_unhandled_exception_name_addr_from_raise): Update.
1208 * guile/scm-frame.c (gdbscm_frame_name): Update.
1209 * python/py-frame.c (frapy_name): Update.
1210 (frapy_function): Update.
1211 * stack.h (find_frame_funname): Update.
1212 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1213 (print_frame): Update.
1214
1215 2017-09-11 Tom Tromey <tom@tromey.com>
1216
1217 * findcmd.c (put_bits): Take a gdb::byte_vector.
1218 (parse_find_args): Return gdb::byte_vector. "args" now const.
1219 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1220 cleanups.
1221 (find_command): Update.
1222
1223 2017-09-11 Tom Tromey <tom@tromey.com>
1224
1225 * cli/cli-script.c (class scoped_restore_hook_in): New.
1226 (clear_hook_in_cleanup): Remove.
1227 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1228 scoped_restore_hook_in.
1229
1230 2017-09-11 Tom Tromey <tom@tromey.com>
1231
1232 * cli/cli-script.c (restore_interp): Remove.
1233 (read_command_lines): Use scoped_restore_interp.
1234 * interps.c (scoped_restore_interp::set_temp): Rename from
1235 interp_set_temp.
1236 * interps.h (class scoped_restore_interp): New.
1237 (interp_set_temp): Remove.
1238
1239 2017-09-11 Tom Tromey <tom@tromey.com>
1240
1241 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1242 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1243 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1244 scoped_restore.
1245 (mi_cmd_break_insert_1): Update.
1246 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1247 scoped_restore.
1248
1249 2017-09-11 Tom Tromey <tom@tromey.com>
1250
1251 * demangle.c (demangle_command): Update.
1252 * breakpoint.c (disable_command): Update.
1253 (enable_command): Update.
1254 (find_location_by_number): Make "number" const. Use
1255 get_number_trailer.
1256 * cli/cli-utils.c (extract_arg): Return std::string.
1257 * probe.c (parse_probe_linespec): Update. Change types.
1258 (collect_probes): Take string arguments.
1259 (parse_probe_linespec): Likewise.
1260 (info_probes_for_ops): Update.
1261 (enable_probes_command): Update.
1262 (disable_probes_command): Update.
1263 * break-catch-sig.c (catch_signal_split_args): Update.
1264 * mi/mi-parse.c (mi_parse): Update.
1265
1266 2017-09-11 Tom Tromey <tom@tromey.com>
1267
1268 * language.h (language_enum): Make argument const.
1269 * language.c (language_enum): Make argument const.
1270
1271 2017-09-11 Tom Tromey <tom@tromey.com>
1272
1273 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1274 as function.
1275 (skip_to_space): Rename from skip_to_space_const.
1276 * common/common-utils.c (skip_to_space): New function.
1277 (skip_to_space): Rename from skip_to_space_const.
1278 * cli/cli-utils.h (get_number): Rename from get_number_const.
1279 (extract_arg): Rename from extract_arg_const.
1280 * cli/cli-utils.c (get_number): Rename from get_number_const.
1281 (extract_arg): Rename from extract_arg_const.
1282 (number_or_range_parser::get_number): Use ::get_number.
1283 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1284 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1285 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1286 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1287 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1288 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1289 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1290 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1291
1292 2017-09-11 Tom Tromey <tom@tromey.com>
1293
1294 * python/python.c (do_start_initialization): Use
1295 py-event-types.def to initialize types.
1296 Define all object type structures.
1297 * python/python-internal.h: Don't declare event initialization
1298 functions.
1299 * python/py-threadevent.c (thread_event_object_type): Don't
1300 define.
1301 * python/py-stopevent.c (stop_event_object_type): Don't define.
1302 * python/py-signalevent.c (signal_event_object_type): Don't
1303 declare or define.
1304 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1305 (clear_objfiles_event_object_type): Don't declare or define.
1306 * python/py-infevents.c (inferior_call_pre_event_object_type)
1307 (inferior_call_post_event_object_type)
1308 (register_changed_event_object_type)
1309 (memory_changed_event_object_type): Don't declare or define.
1310 * python/py-inferior.c (new_thread_event_object_type)
1311 (new_inferior_event_object_type)
1312 (inferior_deleted_event_object_type): Don't declare or define.
1313 * python/py-exitedevent.c (exited_event_object_type): Don't
1314 declare or define.
1315 * python/py-evts.c (gdbpy_initialize_py_events): Use
1316 py-all-events.def.
1317 * python/py-events.h (thread_event_object_type): Don't declare.
1318 (events_object): Use py-all-events.def.
1319 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1320 py-event-types.def.
1321 * python/py-event-types.def: New file.
1322 * python/py-continueevent.c (create_continue_event_object): Don't
1323 declare or define.
1324 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1325 declare or define.
1326 * python/py-all-events.def: New file.
1327
1328 2017-09-11 Tom Tromey <tom@tromey.com>
1329
1330 * python/py-threadevent.c (create_thread_event_object): Return
1331 gdbpy_ref.
1332 * python/py-stopevent.h (create_stop_event_object)
1333 (create_breakpoint_event_object, create_signal_event_object):
1334 Update.
1335 * python/py-stopevent.c (create_stop_event_object): Return
1336 gdbpy_ref.
1337 (emit_stop_event): Update.
1338 * python/py-signalevent.c (create_signal_event_object): Return
1339 gdbpy_ref.
1340 * python/py-infevents.c (create_inferior_call_event_object):
1341 Update.
1342 * python/py-event.h (create_event_object)
1343 (create_thread_event_object): Update.
1344 * python/py-event.c (create_event_object): Return gdbpy_ref.
1345 * python/py-continueevent.c: Return gdbpy_ref.
1346 * python/py-bpevent.c (create_breakpoint_event_object): Return
1347 gdbpy_ref.
1348
1349 2017-09-11 Tom Tromey <tom@tromey.com>
1350
1351 PR python/15622:
1352 * NEWS: Add entry.
1353 * python/python.c (do_start_initialization): Initialize new event
1354 types.
1355 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1356 (gdbpy_initialize_inferior_deleted_event)
1357 (gdbpy_initialize_new_thread_event): Declare.
1358 * python/py-threadevent.c (create_thread_event_object): Add option
1359 "thread" parameter.
1360 * python/py-inferior.c (new_thread_event_object_type)
1361 (new_inferior_event_object_type)
1362 (inferior_deleted_event_object_type): Declare.
1363 (python_new_inferior, python_inferior_deleted): New functions.
1364 (add_thread_object): Emit new_thread event.
1365 (gdbpy_initialize_inferior): Attach new functions to corresponding
1366 observers.
1367 (new_thread, new_inferior, inferior_deleted): Define new event
1368 types.
1369 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1370 registries.
1371 * python/py-events.h (events_object) <new_inferior,
1372 inferior_deleted, new_thread>: New fields.
1373 * python/py-event.h (create_thread_event_breakpoint): Add optional
1374 "thread" parameter.
1375
1376 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1379 check current_ui instead.
1380 (internal_vproblem): Likewise.
1381
1382 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1383
1384 * thread.c (print_thread_info_1): Remove unnecessary calls to
1385 uiout->is_mi_like_p.
1386
1387 2017-09-09 Tom Tromey <tom@tromey.com>
1388
1389 * namespace.h (add_using_directive): Update.
1390 * namespace.c (add_using_directive): Change type of excludes to
1391 std::vector.
1392 * dwarf2read.c (read_import_statement): Use std::vector.
1393 (read_namespace): Update.
1394 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1395
1396 2017-09-09 Tom Tromey <tom@tromey.com>
1397
1398 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1399
1400 2017-09-09 Tom Tromey <tom@tromey.com>
1401
1402 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1403
1404 2017-09-09 Tom Tromey <tom@tromey.com>
1405
1406 * stack.c (func_command): Use gdb::def_vector.
1407
1408 2017-09-09 Tom Tromey <tom@tromey.com>
1409
1410 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1411 ui_out_emit_list, ui_out_emit_tuple.
1412 (mi_cmd_var_update): Likewise.
1413
1414 2017-09-09 Tom Tromey <tom@tromey.com>
1415
1416 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1417 ui_out_redirect_pop.
1418 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1419 ui_out_redirect_pop.
1420 * utils.c (do_ui_out_redirect_pop)
1421 (make_cleanup_ui_out_redirect_pop): Remove.
1422 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1423 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1424 * ui-out.h (ui_out_redirect_pop): New class.
1425
1426 2017-09-09 Tom Tromey <tom@tromey.com>
1427
1428 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1429 (list_available_thread_groups, mi_cmd_list_thread_groups)
1430 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1431 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1432 Likewise.
1433
1434 2017-09-09 Tom Tromey <tom@tromey.com>
1435
1436 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1437 ui_out_emit_tuple.
1438
1439 2017-09-09 Tom Tromey <tom@tromey.com>
1440
1441 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1442 * stack.c (print_frame): Use ui_out_emit_tuple.
1443 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1444 (info_spu_mailbox_command, info_spu_dma_command)
1445 (info_spu_proxydma_command): Likewise.
1446 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1447 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1448 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1449 ui_out_emit_tuple.
1450 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1451
1452 2017-09-09 Tom Tromey <tom@tromey.com>
1453
1454 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1455 (class ui_out_emit_table): Update comment.
1456 * ui-out.c (do_cleanup_table_end)
1457 (make_cleanup_ui_out_table_begin_end): Remove.
1458 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1459 (info_spu_dma_cmdlist): Likewise.
1460 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1461 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1462 ui_out_emit_table.
1463
1464 2017-09-09 Tom Tromey <tom@tromey.com>
1465
1466 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1467 ui_out_emit_list, gdb::optional.
1468
1469 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1470
1471 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1472 prototype.
1473 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1474 prototype.
1475 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1476 prototype.
1477 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1478 * ada-exp.y: Remove _initialize_ada_exp prototype.
1479 * ada-lang.c: Remove _initialize_ada_language prototype.
1480 * ada-tasks.c: Remove _initialize_tasks prototype.
1481 * addrmap.c: Remove _initialize_addrmap prototype.
1482 * agent.c: Remove _initialize_agent prototype.
1483 * aix-thread.c: Remove _initialize_aix_thread prototype.
1484 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1485 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1486 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1487 prototype.
1488 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1489 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1490 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1491 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1492 prototype.
1493 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1494 prototype.
1495 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1496 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1497 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1498 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1499 prototype.
1500 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1501 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1502 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1503 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1504 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1505 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1506 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1507 prototype.
1508 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1509 prototype.
1510 * annotate.c: Remove _initialize_annotate prototype.
1511 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1512 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1513 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1514 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1515 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1516 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1517 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1518 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1519 prototype.
1520 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1521 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1522 * auto-load.c: Remove _initialize_auto_load prototype.
1523 * auxv.c: Remove _initialize_auxv prototype.
1524 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1525 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1526 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1527 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1528 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1529 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1530 prototype.
1531 * break-catch-throw.c: Remove _initialize_break_catch_throw
1532 prototype.
1533 * breakpoint.c: Remove _initialize_breakpoint prototype.
1534 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1535 * btrace.c: Remove _initialize_btrace prototype.
1536 * charset.c: Remove _initialize_charset prototype.
1537 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1538 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1539 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1540 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1541 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1542 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1543 * coffread.c: Remove _initialize_coffread prototype.
1544 * compile/compile.c: Remove _initialize_compile prototype.
1545 * complaints.c: Remove _initialize_complaints prototype.
1546 * completer.c: Remove _initialize_completer prototype.
1547 * copying.awk: Remove _initialize_copying prototype.
1548 * copying.c: Regenerate.
1549 * core-regset.c: Remove _initialize_core_regset prototype.
1550 * corefile.c: Remove _initialize_core prototype.
1551 * corelow.c: Remove _initialize_corelow prototype.
1552 * cp-abi.c: Remove _initialize_cp_abi prototype.
1553 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1554 * cp-support.c: Remove _initialize_cp_support prototype.
1555 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1556 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1557 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1558 * ctf.c: Remove _initialize_ctf prototype.
1559 * d-lang.c: Remove _initialize_d_language prototype.
1560 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1561 prototype.
1562 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1563 * dbxread.c: Remove _initialize_dbxread prototype.
1564 * dcache.c: Remove _initialize_dcache prototype.
1565 * demangle.c: Remove _initialize_demangler prototype.
1566 * disasm-selftests.c: Remove _initialize_disasm_selftests
1567 prototype.
1568 * disasm.c: Remove _initialize_disasm prototype.
1569 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1570 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1571 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1572 prototype.
1573 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1574 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1575 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1576 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1577 * elfread.c: Remove _initialize_elfread prototype.
1578 * exec.c: Remove _initialize_exec prototype.
1579 * extension.c: Remove _initialize_extension prototype.
1580 * f-lang.c: Remove _initialize_f_language prototype.
1581 * f-valprint.c: Remove _initialize_f_valprint prototype.
1582 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1583 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1584 * filesystem.c: Remove _initialize_filesystem prototype.
1585 * findcmd.c: Remove _initialize_mem_search prototype.
1586 * fork-child.c: Remove _initialize_fork_child prototype.
1587 * frame-base.c: Remove _initialize_frame_base prototype.
1588 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1589 * frame.c: Remove _initialize_frame prototype.
1590 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1591 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1592 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1593 * gcore.c: Remove _initialize_gcore prototype.
1594 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1595 * gdbarch.c: Regenerate.
1596 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1597 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1598 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1599 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1600 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1601 * go-lang.c: Remove _initialize_go_language prototype.
1602 * go32-nat.c: Remove _initialize_go32_nat prototype.
1603 * guile/guile.c: Remove _initialize_guile prototype.
1604 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1605 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1606 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1607 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1608 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1609 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1610 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1611 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1612 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1613 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1614 prototype.
1615 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1616 prototype.
1617 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1618 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1619 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1620 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1621 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1622 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1623 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1624 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1625 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1626 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1627 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1628 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1629 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1630 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1631 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1632 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1633 prototype.
1634 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1635 prototype.
1636 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1637 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1638 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1639 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1640 * infcall.c: Remove _initialize_infcall prototype.
1641 * infcmd.c: Remove _initialize_infcmd prototype.
1642 * inferior.c: Remove _initialize_inferiors prototype.
1643 * inflow.c: Remove _initialize_inflow prototype.
1644 * infrun.c: Remove _initialize_infrun prototype.
1645 * interps.c: Remove _initialize_interpreter prototype.
1646 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1647 * jit.c: Remove _initialize_jit prototype.
1648 * language.c: Remove _initialize_language prototype.
1649 * linux-fork.c: Remove _initialize_linux_fork prototype.
1650 * linux-nat.c: Remove _initialize_linux_nat prototype.
1651 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1652 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1653 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1654 * m2-lang.c: Remove _initialize_m2_language prototype.
1655 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1656 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1657 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1658 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1659 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1660 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1661 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1662 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1663 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1664 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1665 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1666 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1667 * machoread.c: Remove _initialize_machoread prototype.
1668 * macrocmd.c: Remove _initialize_macrocmd prototype.
1669 * macroscope.c: Remove _initialize_macroscope prototype.
1670 * maint.c: Remove _initialize_maint_cmds prototype.
1671 * mdebugread.c: Remove _initialize_mdebugread prototype.
1672 * memattr.c: Remove _initialize_mem prototype.
1673 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1674 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1675 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1676 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1677 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1678 * microblaze-linux-tdep.c: Remove
1679 _initialize_microblaze_linux_tdep prototype.
1680 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1681 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1682 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1683 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1684 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1685 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1686 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1687 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1688 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1689 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1690 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1691 prototype.
1692 * mipsread.c: Remove _initialize_mipsread prototype.
1693 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1694 prototype.
1695 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1696 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1697 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1698 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1699 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1700 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1701 prototype.
1702 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1703 * nto-procfs.c: Remove _initialize_procfs prototype.
1704 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1705 * objc-lang.c: Remove _initialize_objc_language prototype.
1706 * objfiles.c: Remove _initialize_objfiles prototype.
1707 * observer.c: Remove observer_test_first_notification_function,
1708 observer_test_second_notification_function,
1709 observer_test_third_notification_function, and
1710 _initialize_observer prototypes.
1711 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1712 * osabi.c: Remove _initialize_gdb_osabi prototype.
1713 * osdata.c: Remove _initialize_osdata prototype.
1714 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1715 * parse.c: Remove _initialize_parse prototype.
1716 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1717 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1718 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1719 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1720 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1721 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1722 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1723 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1724 * printcmd.c: Remove _initialize_printcmd prototype.
1725 * probe.c: Remove _initialize_probe prototype.
1726 * proc-api.c: Remove _initialize_proc_api prototype.
1727 * proc-events.c: Remove _initialize_proc_events prototype.
1728 * proc-service.c: Remove _initialize_proc_service prototype.
1729 * procfs.c: Remove _initialize_procfs prototype.
1730 * psymtab.c: Remove _initialize_psymtab prototype.
1731 * python/python.c: Remove _initialize_python prototype.
1732 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1733 * record-btrace.c: Remove _initialize_record_btrace prototype.
1734 * record-full.c: Remove _initialize_record_full prototype.
1735 * record.c: Remove _initialize_record prototype.
1736 * regcache.c: Remove _initialize_regcache prototype.
1737 * reggroups.c: Remove _initialize_reggroup prototype.
1738 * remote-notif.c: Remove _initialize_notif prototype.
1739 * remote-sim.c: Remove _initialize_remote_sim prototype.
1740 * remote.c: Remove _initialize_remote prototype.
1741 * reverse.c: Remove _initialize_reverse prototype.
1742 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1743 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1744 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1745 prototype.
1746 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1747 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1748 * rust-exp.y: Remove _initialize_rust_exp prototype.
1749 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1750 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1751 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1752 * score-tdep.c: Remove _initialize_score_tdep prototype.
1753 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1754 prototype.
1755 * ser-go32.c: Remove _initialize_ser_dos prototype.
1756 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1757 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1758 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1759 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1760 * serial.c: Remove _initialize_serial prototype.
1761 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1762 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1763 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1764 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1765 * skip.c: Remove _initialize_step_skip prototype.
1766 * sol-thread.c: Remove _initialize_sol_thread prototype.
1767 * solib-aix.c: Remove _initialize_solib_aix prototype.
1768 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1769 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1770 * solib-frv.c: Remove _initialize_frv_solib prototype.
1771 * solib-spu.c: Remove _initialize_spu_solib prototype.
1772 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1773 * solib-target.c: Remove _initialize_solib_target prototype.
1774 * solib.c: Remove _initialize_solib prototype.
1775 * source.c: Remove _initialize_source prototype.
1776 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1777 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1778 prototype.
1779 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1780 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1781 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1782 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1783 prototype.
1784 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1785 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1786 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1787 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1788 prototype.
1789 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1790 prototype.
1791 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1792 prototype.
1793 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1794 prototype.
1795 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1796 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1797 prototype.
1798 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1799 prototype.
1800 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1801 prototype.
1802 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1803 prototype.
1804 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1805 prototype.
1806 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1807 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1808 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1809 * stabsread.c: Remove _initialize_stabsread prototype.
1810 * stack.c: Remove _initialize_stack prototype.
1811 * stap-probe.c: Remove _initialize_stap_probe prototype.
1812 * std-regs.c: Remove _initialize_frame_reg prototype.
1813 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1814 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1815 * symfile.c: Remove _initialize_symfile prototype.
1816 * symmisc.c: Remove _initialize_symmisc prototype.
1817 * symtab.c: Remove _initialize_symtab prototype.
1818 * target-dcache.c: Remove _initialize_target_dcache prototype.
1819 * target-descriptions.c: Remove _initialize_target_descriptions
1820 prototype.
1821 * thread.c: Remove _initialize_thread prototype.
1822 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1823 prototype.
1824 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1825 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1826 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1827 prototype.
1828 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1829 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1830 * tracefile.c: Remove _initialize_tracefile prototype.
1831 * tracepoint.c: Remove _initialize_tracepoint prototype.
1832 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1833 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1834 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1835 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1836 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1837 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1838 * tui/tui.c: Remove _initialize_tui prototype.
1839 * typeprint.c: Remove _initialize_typeprint prototype.
1840 * user-regs.c: Remove _initialize_user_regs prototype.
1841 * utils.c: Remove _initialize_utils prototype.
1842 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1843 * valarith.c: Remove _initialize_valarith prototype.
1844 * valops.c: Remove _initialize_valops prototype.
1845 * valprint.c: Remove _initialize_valprint prototype.
1846 * value.c: Remove _initialize_values prototype.
1847 * varobj.c: Remove _initialize_varobj prototype.
1848 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1849 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1850 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1851 * windows-nat.c: Remove _initialize_windows_nat,
1852 _initialize_check_for_gdb_ini, and _initialize_loadable
1853 prototypes.
1854 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1855 * xcoffread.c: Remove _initialize_xcoffread prototype.
1856 * xml-support.c: Remove _initialize_xml_support prototype.
1857 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1858 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1859 prototype.
1860 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1861 prototype.
1862 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1863
1864 2017-09-08 Keith Seitz <keiths@redhat.com>
1865
1866 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1867 field.
1868
1869 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1870
1871 * f-valprint.c (f_val_print): Remove check for one byte
1872 sized integers. Remove printing of character type.
1873
1874 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1875 Christoph Weinmann <christoph.t.weinmann@intel.com>
1876 Bernhard Heckel <bernhard.heckel@intel.com>
1877
1878 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1879 to maintain proper indentation when printing pointers/refs.
1880
1881 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1882
1883 GDB 8.0.1 released.
1884
1885 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1886
1887 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1888
1889 2017-09-05 Tom Tromey <tom@tromey.com>
1890
1891 * parse.c (funcall_chain): Now a std::vector.
1892 (start_arglist, end_arglist): Simplify.
1893 (free_funcalls): Remove.
1894 (parse_exp_in_context_1): Remove cleanup.
1895
1896 2017-09-05 Tom Tromey <tom@tromey.com>
1897
1898 * go-exp.y (go_parse): Don't create a cleanup.
1899
1900 2017-09-05 Tom Tromey <tom@tromey.com>
1901
1902 * d-exp.y (PrimaryExpression): Use std::string.
1903 (d_parse): Don't create a cleanup.
1904
1905 2017-09-05 Tom Tromey <tom@tromey.com>
1906
1907 * utils.c (do_clear_parser_state): Remove.
1908 (make_cleanup_clear_parser_state): Remove.
1909 * p-exp.y (pascal_parse): Use scoped_restore.
1910 * m2-exp.y (m2_parse): Use scoped_restore.
1911 * f-exp.y (f_parse): Use scoped_restore.
1912 * d-exp.y (d_parse): Use scoped_restore.
1913 * c-exp.y (c_parse): Use scoped_restore.
1914 * ada-exp.y (ada_parse): Use scoped_restore.
1915 * utils.h (make_cleanup_clear_parser_state): Remove.
1916
1917 2017-09-06 Keith Seitz <keiths@redhat.com>
1918
1919 * dwarf2read.c (dw2_linkage_name_attr): New function.
1920 (dw2_linkage_name): New function.
1921 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1922 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1923 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1924
1925 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1926
1927 * config/djgpp/djconfig.sh: Correct shell portability issue.
1928
1929 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1930
1931 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1932
1933 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1934
1935 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1936 * NEWS: Mention new FreeBSD/mips native configuration.
1937 * configure.host: Add aarch64*-*-freebsd*.
1938 * configure.nat: Likewise.
1939 * aarch64-fbsd-nat.c: New file.
1940
1941 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1942
1943 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1944 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1945 * NEWS: Mention new FreeBSD/aarch64 target.
1946 * configure.tgt: Add aarch64*-*-freebsd*.
1947 * aarch64-fbsd-tdep.c: New file.
1948 * aarch64-fbsd-tdep.h: New file.
1949
1950 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1951
1952 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1953
1954 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1955
1956 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1957 of TLS symbols.
1958
1959 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1960
1961 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1962 call.
1963
1964 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1965
1966 * infrun.c (follow_exec): Call add_thread after
1967 target_find_description.
1968
1969 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1970
1971 * infrun.c (handle_inferior_event_1): When exec'ing, read
1972 stop_pc after follow_exec.
1973
1974 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1975
1976 * remote.c (process_g_packet): Update error message.
1977
1978 2017-09-05 Yao Qi <yao.qi@linaro.org>
1979
1980 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1981 targets.
1982
1983 2017-09-05 Pedro Alves <palves@redhat.com>
1984
1985 * eval.c (eval_call, evaluate_funcall): New functions, factored
1986 out from ...
1987 (evaluate_subexp_standard): ... this.
1988
1989 2017-09-05 Yao Qi <yao.qi@linaro.org>
1990
1991 * amd64-tdep.c (amd64_target_description): Create target
1992 descriptions.
1993 (_initialize_amd64_tdep): Don't call functions
1994 initialize_tdesc_amd64_*. Add self tests.
1995 * arch/amd64.c (amd64_create_target_description): Add parameter
1996 is_linux. Call set_tdesc_osabi if is_linux is true.
1997 * arch/amd64.h (amd64_create_target_description): Update the
1998 declaration.
1999 * arch/i386.c (i386_create_target_description): Add parameter
2000 is_linux. Call set_tdesc_osabi if is_linux is true.
2001 * arch/i386.h (i386_create_target_description): Update
2002 declaration.
2003 * configure.tgt: Add i386.o to gdb_target_obs.
2004 * features/Makefile (XMLTOC): Remove i386/*.xml.
2005 * features/i386/amd64-avx-avx512.c: Remove.
2006 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2007 * features/i386/amd64-avx-mpx.c: Remove.
2008 * features/i386/amd64-avx.c: Remove.
2009 * features/i386/amd64-mpx.c: Remove.
2010 * features/i386/amd64.c: Remove.
2011 * features/i386/i386-avx-avx512.c: Remove.
2012 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2013 * features/i386/i386-avx-mpx.c: Remove.
2014 * features/i386/i386-avx.c: Remove.
2015 * features/i386/i386-mmx.c: Remove.
2016 * features/i386/i386-mpx.c: Remove.
2017 * features/i386/i386.c: Remove.
2018 * i386-tdep.c: Don't include features/i386/i386*.c., include
2019 target-descriptions.h and arch/i386.h.
2020 (i386_target_description): Create target descriptions.
2021 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2022 functions. Do self tests.
2023
2024 2017-09-05 Yao Qi <yao.qi@linaro.org>
2025
2026 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2027 * features/i386/amd64-avx-avx512-linux.c: Removed.
2028 * features/i386/amd64-avx-linux.c: Removed.
2029 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2030 * features/i386/amd64-avx-mpx-linux.c: Removed.
2031 * features/i386/amd64-linux.c: Removed.
2032 * features/i386/amd64-mpx-linux.c: Removed.
2033 * features/i386/x32-avx-avx512-linux.c: Removed.
2034 * features/i386/x32-avx-linux.c: Removed.
2035 * features/i386/x32-linux.c: Removed.
2036
2037 2017-09-05 Yao Qi <yao.qi@linaro.org>
2038
2039 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2040 features/i386/*.c.
2041 (amd64_linux_read_description): Call
2042 amd64_create_target_description.
2043 * arch/amd64.c: New file.
2044 * arch/amd64.h: New file.
2045 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2046 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2047
2048 2017-09-05 Yao Qi <yao.qi@linaro.org>
2049
2050 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2051 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2052 (amd64_linux_read_description): Create target descriptions.
2053 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2054 functions. Add unit tests.
2055 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2056 x32-core.xml.
2057 * features/i386/64bit-avx.c: Generated.
2058 * features/i386/64bit-avx512.c: Generated.
2059 * features/i386/64bit-core.c: Generated.
2060 * features/i386/64bit-linux.c: Generated.
2061 * features/i386/64bit-mpx.c: Generated.
2062 * features/i386/64bit-pkeys.c: Generated.
2063 * features/i386/64bit-segments.c: Generated.
2064 * features/i386/64bit-sse.c: Generated.
2065 * features/i386/x32-core.c: Generated.
2066 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2067 c files for amd64-linux and x32-linux.
2068
2069 2017-09-05 Yao Qi <yao.qi@linaro.org>
2070
2071 * amd64-linux-tdep.c (amd64_linux_read_description): New
2072 function.
2073 (amd64_linux_core_read_description): Call
2074 amd64_linux_read_description.
2075 (amd64_linux_init_abi): Likewise.
2076 (amd64_x32_linux_init_abi): Likewise.
2077 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2078 * x86-linux-nat.c (x86_linux_read_description): Call
2079 amd64_linux_read_description.
2080
2081 2017-09-05 Yao Qi <yao.qi@linaro.org>
2082
2083 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2084 comments.
2085
2086 2017-09-05 Yao Qi <yao.qi@linaro.org>
2087
2088 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2089 * features/i386/i386-avx-avx512-linux.c: Remove.
2090 * features/i386/i386-avx-linux.c: Remove.
2091 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2092 * features/i386/i386-avx-mpx-linux.c: Remove.
2093 * features/i386/i386-linux.c: Remove.
2094 * features/i386/i386-mmx-linux.c: Remove.
2095 * features/i386/i386-mpx-linux.c: Remove.
2096
2097 2017-09-05 Yao Qi <yao.qi@linaro.org>
2098
2099 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2100 (SFILES): Add arch/i386.c.
2101 (HFILES_NO_SRCDIR): Add arch/i386.h.
2102 * arch/i386.c: New file.
2103 * arch/i386.h: New file.
2104 * arch/tdesc.h (allocate_target_description): Declare.
2105 (set_tdesc_architecture): Declare.
2106 (set_tdesc_osabi): Declare.
2107 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2108 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2109 include arch/i386.h.
2110 (i386_linux_read_description): Remove code and call
2111 i386_create_target_description.
2112 (set_tdesc_architecture): New function.
2113 (set_tdesc_osabi): New function.
2114 * target-descriptions.h (allocate_target_description): Remove.
2115
2116 2017-09-05 Yao Qi <yao.qi@linaro.org>
2117
2118 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2119 * target-descriptions.c (tdesc_create_feature): Likewise, and
2120 adjust code.
2121 * features/i386/32bit-avx.c: Re-generated.
2122 * features/i386/32bit-avx512.c: Re-generated.
2123 * features/i386/32bit-core.c: Re-generated.
2124 * features/i386/32bit-linux.c: Re-generated.
2125 * features/i386/32bit-mpx.c: Re-generated.
2126 * features/i386/32bit-pkeys.c: Re-generated.
2127 * features/i386/32bit-sse.c: Re-generated.
2128
2129 2017-09-05 Yao Qi <yao.qi@linaro.org>
2130
2131 * regformats/regdef.h (struct reg): Override operator == and !=.
2132
2133 2017-09-05 Yao Qi <yao.qi@linaro.org>
2134
2135 * arch/tdesc.h: New file.
2136 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2137 * target-descriptions.c: Update comments.
2138 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2139 declarations.
2140 * features/i386/32bit-avx.c: Re-generated.
2141 * features/i386/32bit-avx512.c: Re-generated.
2142 * features/i386/32bit-core.c: Re-generated.
2143 * features/i386/32bit-linux.c: Re-generated.
2144 * features/i386/32bit-mpx.c: Re-generated.
2145 * features/i386/32bit-pkeys.c: Re-generated.
2146 * features/i386/32bit-sse.c: Re-generated.
2147
2148 2017-09-05 Yao Qi <yao.qi@linaro.org>
2149
2150 * regformats/regdat.sh: Update generated code.
2151
2152 2017-09-05 Yao Qi <yao.qi@linaro.org>
2153
2154 * regformats/regdat.sh: Adjust code order.
2155
2156 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2157
2158 * expprint.c (dump_subexp_body_standard): Use constant format
2159 string in fprintf_filtered call.
2160
2161 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2162
2163 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2164 NetBSD/i386.
2165 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2166
2167 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2168
2169 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2170
2171 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2172
2173 * bsd-kvm.o: Define _KMEMUSER.
2174 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2175 * configure: Regenerate.
2176
2177 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2178
2179 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2180 * i386-fbsd-nat.c: Likewise.
2181
2182 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2183
2184 * unittests/array-view-selftests.c: Add include of <array>.
2185
2186 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2187
2188 * spu-tdep.c (flush_ea_cache): Add missing argument to
2189 call_function_by_hand.
2190
2191 2017-09-04 Pedro Alves <palves@redhat.com>
2192
2193 * NEWS (Safer support for debugging with no debug info): New.
2194
2195 2017-09-04 Pedro Alves <palves@redhat.com>
2196
2197 * c-exp.y (function_method, function_method_void): Add current
2198 instance flags to TYPE_INSTANCE.
2199 * dwarf2read.c (check_modifier): New.
2200 (compute_delayed_physnames): Assert that only C++ adds delayed
2201 physnames. Mark fn_fields as const/volatile depending on
2202 physname.
2203 * eval.c (make_params): New type_instance_flags parameter. Use
2204 it as the new type's instance flags.
2205 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2206 flags element and pass it to make_params.
2207 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2208 instance flags element.
2209 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2210 * gdbtypes.h: Include "enum-flags.h".
2211 (type_instance_flags): New enum-flags type.
2212 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2213 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2214 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2215 (follow_type_instance_flags): New function.
2216 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2217 * parser-defs.h (follow_type_instance_flags): Declare.
2218 * valops.c (value_struct_elt_for_reference): const/volatile must
2219 match too.
2220
2221 2017-09-04 Pedro Alves <palves@redhat.com>
2222
2223 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2224 function/method scopes; lookup the nested name as a function local
2225 static variable.
2226
2227 2017-09-04 Pedro Alves <palves@redhat.com>
2228
2229 (%type <voidval>): Add function_method.
2230 * c-exp.y (exp): New production for calls with no arguments.
2231 (function_method, function_method_void_or_typelist): New
2232 productions.
2233 (exp): New production for "method()::static_var".
2234 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2235 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2236 Handle OP_FUNC_STATIC_VAR.
2237 * parse.c (operator_length_standard):
2238 Handle OP_FUNC_STATIC_VAR.
2239
2240 2017-09-04 Pedro Alves <palves@redhat.com>
2241
2242 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2243 handling.
2244 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2245 Ditto.
2246 * parse.c (operator_length_standard, operator_check_standard):
2247 Ditto.
2248 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2249
2250 2017-09-04 Pedro Alves <palves@redhat.com>
2251
2252 * ax-gdb.c: Include "typeprint.h".
2253 (gen_expr_for_cast): New function.
2254 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2255 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2256 type is unknown.
2257 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2258 nodebug_data_symbol.
2259 * eval.c: Include "typeprint.h".
2260 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2261 Error out if symbol has unknown type.
2262 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2263 evaluate_subexp_for_cast.
2264 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2265 OP_VAR_MSYM_VALUE.
2266 (evaluate_subexp_for_cast): New function.
2267 * gdbtypes.c (init_nodebug_var_type): New function.
2268 (objfile_type): Use it to initialize types of variables with no
2269 debug info.
2270 * typeprint.c (error_unknown_type): New.
2271 * typeprint.h (error_unknown_type): New declaration.
2272 * compile/compile-c-types.c (convert_type_basic): Handle
2273 TYPE_CODE_ERROR; warn and fallback to int for variables with
2274 unknown type.
2275
2276 2017-09-04 Pedro Alves <palves@redhat.com>
2277
2278 * eval.c (evaluate_var_value): New function, factored out from ...
2279 (evaluate_subexp_standard): ... here.
2280
2281 2017-09-04 Pedro Alves <palves@redhat.com>
2282
2283 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2284 Remove useless assignments to 'op'.
2285
2286 2017-09-04 Pedro Alves <palves@redhat.com>
2287
2288 * eval.c (eval_skip_value): New function.
2289 (evaluate_subexp_standard): Use it.
2290
2291 2017-09-04 Pedro Alves <palves@redhat.com>
2292
2293 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2294 function name from symbol/minsym and pass it to
2295 error_call_unknown_return_type.
2296
2297 2017-09-04 Pedro Alves <palves@redhat.com>
2298
2299 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2300 * ax-gdb.c (gen_msym_var_ref): New function.
2301 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2302 * eval.c (evaluate_var_msym_value): New function.
2303 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2304 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2305 to call_function_by_hand.
2306 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2307 Handle OP_VAR_MSYM_VALUE.
2308 (union exp_element) <msymbol>: New field.
2309 * minsyms.h (struct type): Forward declare.
2310 (find_minsym_type_and_address): Declare.
2311 * parse.c (write_exp_elt_msym): New function.
2312 (write_exp_msymbol): Delete, refactored as ...
2313 (find_minsym_type_and_address): ... this new function.
2314 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2315 (operator_length_standard, operator_check_standard): Handle
2316 OP_VAR_MSYM_VALUE.
2317 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2318
2319 2017-09-04 Pedro Alves <palves@redhat.com>
2320
2321 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2322 TYPE_GNU_IFUNC specially here. Throw error if return type is
2323 unknown.
2324 * ada-typeprint.c (print_func_type): Handle functions with unknown
2325 return type.
2326 * c-typeprint.c (c_type_print_base): Handle functions and methods
2327 with unknown return type.
2328 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2329 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2330 * compile/compile-c-types.c: Include "objfiles.h".
2331 (convert_func): For functions with unknown return type, warn and
2332 default to int.
2333 * compile/compile-object-run.c (compile_object_run): Adjust call
2334 to call_function_by_hand_dummy.
2335 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2336 call_function_by_hand.
2337 * eval.c (evaluate_subexp_standard): Adjust calls to
2338 call_function_by_hand. Handle functions and methods with unknown
2339 return type. Pass expect_type to call_function_by_hand.
2340 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2341 return type.
2342 * gcore.c (call_target_sbrk): Adjust call to
2343 call_function_by_hand.
2344 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2345 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2346 an integer address type instead of nodebug.
2347 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2348 call_function_by_hand.
2349 * infcall.c (error_call_unknown_return_type): New function.
2350 (call_function_by_hand): New "default_return_type" parameter.
2351 Pass it down.
2352 (call_function_by_hand_dummy): New "default_return_type"
2353 parameter. Use it instead of defaulting to int. If there's no
2354 default and the return type is unknown, throw an error. If
2355 there's a default return type, and the called function has no
2356 debug info, then assume the function is prototyped.
2357 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2358 New "default_return_type" parameter.
2359 (error_call_unknown_return_type): New declaration.
2360 * linux-fork.c (call_lseek): Cast return type of lseek.
2361 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2362 call_function_by_hand.
2363 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2364 calls to call_function_by_hand.
2365 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2366 return type.
2367 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2368 (value_nsstring, print_object_command): Adjust calls to
2369 call_function_by_hand.
2370 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2371 functions with unknown return type.
2372 (pascal_type_print_func_varspec_suffix): New function.
2373 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2374 TYPE_CODE_METHOD>: Use it.
2375 * python/py-value.c (valpy_call): Adjust call to
2376 call_function_by_hand.
2377 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2378 call_function_by_hand.
2379 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2380 call_function_by_hand.
2381 * valops.c (value_allocate_space_in_inferior): Adjust call to
2382 call_function_by_hand.
2383 * typeprint.c (type_print_unknown_return_type): New function.
2384 * typeprint.h (type_print_unknown_return_type): New declaration.
2385
2386 2017-09-04 Pedro Alves <palves@redhat.com>
2387
2388 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2389 types with more than one parameter as prototyped.
2390
2391 2017-09-04 Pedro Alves <palves@redhat.com>
2392
2393 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2394 (disassemble_command): Use gdb_disassembly_flags instead of bare
2395 int.
2396 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2397 (dump_insns, do_mixed_source_and_assembly_deprecated)
2398 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2399 Use gdb_disassembly_flags instead of bare int.
2400 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2401 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2402 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2403 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2404 (enum gdb_disassembly_flag): ... values of this new enumeration.
2405 (gdb_disassembly_flags): Define.
2406 (gdb_disassembly)
2407 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2408 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2409 gdb_disassembly_flags instead of bare int.
2410 * record-btrace.c (btrace_insn_history)
2411 (record_btrace_insn_history, record_btrace_insn_history_range)
2412 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2413 instead of bare int.
2414 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2415 Use gdb_disassembly_flags instead of bare int.
2416 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2417 Define.
2418 * target-delegates.c: Regenerate.
2419 * target.c (target_insn_history, target_insn_history_from)
2420 (target_insn_history_range): Use gdb_disassembly_flags instead of
2421 bare int.
2422 * target.h: Include "disasm.h".
2423 (struct target_ops) <to_insn_history, to_insn_history_from,
2424 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2425 int.
2426 (target_insn_history, target_insn_history_from)
2427 (target_insn_history_range): Use gdb_disassembly_flags instead of
2428 bare int.
2429
2430 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2431
2432 * cli/cli-script.c (build_command_line): For if/while commands,
2433 check whether args is empty.
2434
2435 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2436
2437 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2438 (enum command_control_type): Likewise.
2439 (struct command_line): Likewise.
2440 (free_command_lines): Likewise.
2441 (struct command_lines_deleter): Likewise.
2442 (command_line_up): Likewise.
2443 (read_command_lines): Likewise.
2444 (read_command_lines_1): Likewise.
2445 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2446 (enum command_control_type): Likewise.
2447 (struct command_line): Likewise.
2448 (free_command_lines): Likewise.
2449 (struct command_lines_deleter): Likewise.
2450 (command_line_up): Likewise.
2451 (read_command_lines): Likewise.
2452 (read_command_lines_1): Likewise.
2453 * breakpoint.h: Include cli/cli-script.h.
2454 * extension-priv.h: Likewise.
2455 * gdbcmd.h: Likewise.
2456
2457 2017-09-04 Pedro Alves <palves@redhat.com>
2458
2459 * ada-lang.c (is_known_support_routine): Move sal declaration to
2460 where it is initialized.
2461 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2462 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2463 (clear_command, update_static_tracepoint): Remove init_sal
2464 references. Move declarations closer to initializations.
2465 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2466 initializations.
2467 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2468 references. Move sal declarations closer to initializations.
2469 * frame.c (find_frame_sal): Return a symtab_and_line via function
2470 return instead of output parameter. Remove init_sal references.
2471 * frame.h (find_frame_sal): Return a symtab_and_line via function
2472 return instead of output parameter.
2473 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2474 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2475 instead of memset.
2476 (gdbscm_find_pc_line): Remove init_sal reference.
2477 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2478 references. Move declarations closer to initializations.
2479 * infcmd.c (set_step_frame): Update. Move declarations closer to
2480 initializations.
2481 (finish_backward): Remove init_sal references. Move declarations
2482 closer to initializations.
2483 * infrun.c (process_event_stop_test, handle_step_into_function)
2484 (insert_hp_step_resume_breakpoint_at_frame)
2485 (insert_step_resume_breakpoint_at_caller): Likewise.
2486 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2487 (symbol_to_sal): Likewise.
2488 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2489 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2490 to its initialization.
2491 * reverse.c (save_bookmark_command): Use new/delete. Remove
2492 init_sal references. Move declarations closer to initializations.
2493 * source.c (get_current_source_symtab_and_line): Remove brace
2494 initialization.
2495 (set_current_source_symtab_and_line): Now takes the sal by const
2496 reference. Remove brace initialization.
2497 (line_info): Remove init_sal reference.
2498 * source.h (set_current_source_symtab_and_line): Now takes a
2499 symtab_and_line via const reference.
2500 * stack.c (set_current_sal_from_frame): Adjust.
2501 (print_frame_info): Adjust.
2502 (get_last_displayed_sal): Return the sal via function return
2503 instead of via output parameter. Simplify.
2504 (frame_info): Adjust.
2505 * stack.h (get_last_displayed_sal): Return the sal via function
2506 return instead of via output parameter.
2507 * symtab.c (init_sal): Delete.
2508 (find_pc_sect_line): Remove init_sal references. Move
2509 declarations closer to initializations.
2510 (find_function_start_sal): Remove init_sal references. Move
2511 declarations closer to initializations.
2512 * symtab.h (struct symtab_and_line): In-class initialize all
2513 fields.
2514 * tracepoint.c (set_traceframe_context)
2515 (print_one_static_tracepoint_marker): Remove init_sal references.
2516 Move declarations closer to initializations.
2517 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2518 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2519 declarations closer to initializations.
2520 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2521 init_sal references. Adjust.
2522
2523 2017-09-04 Pedro Alves <palves@redhat.com>
2524
2525 * ax-gdb.c (agent_command_1): Use range-for.
2526 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2527 * breakpoint.c: Include "common/array-view.h".
2528 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2529 parameter from struct symtabs_and_lines to
2530 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2531 (breakpoint_sals_to_pc): Change sals parameter from struct
2532 symtabs_and_lines to std::vector reference.
2533 (check_fast_tracepoint_sals): Change sals parameter from struct
2534 symtabs_and_lines to std::array_view. Use range-for.
2535 (decode_static_tracepoint_spec): Return a std::vector instead of
2536 symtabs_and_lines. Update.
2537 (create_breakpoint): Update.
2538 (break_range_command, until_break_command, clear_command): Update.
2539 (base_breakpoint_decode_location, bkpt_decode_location)
2540 (bkpt_probe_create_sals_from_location)
2541 (bkpt_probe_decode_location, tracepoint_decode_location)
2542 (tracepoint_probe_decode_location)
2543 (strace_marker_create_sals_from_location): Return a std::vector
2544 instead of symtabs_and_lines.
2545 (strace_marker_create_breakpoints_sal): Update.
2546 (strace_marker_decode_location): Return a std::vector instead of
2547 symtabs_and_lines. Update.
2548 (update_breakpoint_locations): Change struct symtabs_and_lines
2549 parameters to gdb::array_view. Adjust.
2550 (location_to_sals): Return a std::vector instead of
2551 symtabs_and_lines. Update.
2552 (breakpoint_re_set_default): Use std::vector instead of struct
2553 symtabs_and_lines.
2554 (decode_location_default): Return a std::vector instead of
2555 symtabs_and_lines. Update.
2556 * breakpoint.h: Include "common/array-view.h".
2557 (struct breakpoint_ops) <decode_location>: Now returns a
2558 std::vector instead of returning a symtabs_and_lines via output
2559 parameter.
2560 (update_breakpoint_locations): Change sals parameters to use
2561 gdb::array_view.
2562 * cli/cli-cmds.c (edit_command, list_command): Update to use
2563 std::vector and gdb::array_view.
2564 (ambiguous_line_spec): Adjust to use gdb::array_view and
2565 range-for.
2566 (compare_symtabs): Rename to ...
2567 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2568 const reference and adjust.
2569 (filter_sals): Rewrite using std::vector and standard algorithms.
2570 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2571 (jump_command): Update to use std::vector.
2572 * linespec.c (struct linespec_state) <canonical_names>: Update
2573 comment.
2574 (add_sal_to_sals_basic): Delete.
2575 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2576 (decode_line_2, create_sals_line_offset)
2577 (convert_address_location_to_sals, convert_linespec_to_sals)
2578 (convert_explicit_location_to_sals, parse_linespec)
2579 (event_location_to_sals, decode_line_full, decode_line_1)
2580 (decode_line_with_current_source)
2581 (decode_line_with_last_displayed, decode_objc)
2582 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2583 (linespec_result::~linespec_result): Adjust to use std::vector
2584 instead of symtabs_and_lines.
2585 * linespec.h (linespec_sals::sals): Now a std::vector.
2586 (struct linespec_result): Use std::vector, bool, and in-class
2587 initialization.
2588 (decode_line_1, decode_line_with_current_source)
2589 (decode_line_with_last_displayed): Return std::vector.
2590 * macrocmd.c (info_macros_command): Use std::vector.
2591 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2592 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2593 std::vector.
2594 * probe.h (parse_probes): Return a std::vector.
2595 * python/python.c (gdbpy_decode_line): Use std::vector and
2596 gdb::array_view.
2597 * source.c (select_source_symtab, line_info): Use std::vector.
2598 * stack.c (func_command): Use std::vector.
2599 * symtab.h (struct symtabs_and_lines): Delete.
2600 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2601
2602 2017-09-04 Pedro Alves <palves@redhat.com>
2603
2604 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2605 unittests/array-view-selftests.c.
2606 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2607 * common/array-view.h: New file.
2608 * unittests/array-view-selftests.c: New file.
2609
2610 2017-09-04 Pedro Alves <palves@redhat.com>
2611
2612 * cli/cli-cmds.c (edit_command): Pass message to
2613 ambiguous_line_spec.
2614 (list_command): Pass message to ambiguous_line_spec. Say
2615 "first"/"last" instead of "start" and "end" to be consistent with
2616 the manual.
2617 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2618 them to print formatted message.
2619
2620 2017-09-04 Pedro Alves <palves@redhat.com>
2621
2622 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2623 ftrace_update_insns by reference instead of pointer.
2624
2625 2017-09-04 Yao Qi <yao.qi@linaro.org>
2626
2627 * i386-go32-tdep.c: Include x86-xstate.h.
2628 (i386_go32_init_abi): Call i386_target_description.
2629 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2630 if xcr0 is X86_XSTATE_X87_MASK.
2631 * i386-tdep.h (tdesc_i386): Remove the declaration.
2632 (tdesc_i386_mmx): Likewise.
2633
2634 2017-09-04 Yao Qi <yao.qi@linaro.org>
2635
2636 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2637 X86_XSTATE_SSE_MASK instead of 0.
2638
2639 2017-09-04 Yao Qi <yao.qi@linaro.org>
2640
2641 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2642 i386_target_description.
2643 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2644 i386_target_description.
2645 * i386-tdep.c (i386_gdbarch_init): Likewise.
2646
2647 2017-09-04 Yao Qi <yao.qi@linaro.org>
2648
2649 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2650 (x86_darwin_init_abi_64): Call amd64_target_description.
2651 * amd64-dicos-tdep.c: Likewise.
2652 * amd64-fbsd-nat.c: Likewise.
2653 * amd64-fbsd-tdep.c: Likewise.
2654 * amd64-nbsd-tdep.c: Likewise.
2655 * amd64-obsd-tdep.c: Likewise.
2656 * amd64-sol2-tdep.c: Likewise.
2657 * amd64-windows-tdep.c: Likewise.
2658 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2659
2660 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2661
2662 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2663 (btrace_function) <insn>: Change type to use std::vector.
2664 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2665 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2666 ftrace_update_insns, ftrace_compute_global_level_offset,
2667 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2668 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2669 change to std::vector.
2670 (ftrace_update_insns): Adjust to change to std::vector, change
2671 type of INSN parameter.
2672 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2673 * record-btrace.c (btrace_call_history_insn_range,
2674 btrace_compute_src_line_range,
2675 record_btrace_frame_prev_register): Adjust to change to
2676 std::vector.
2677 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2678 to change to std::vector.
2679
2680 2017-09-03 Tom Tromey <tom@tromey.com>
2681
2682 * corefile.c (reopen_exec_file): Use std::string.
2683
2684 2017-09-03 Tom Tromey <tom@tromey.com>
2685
2686 * compile/compile.c (compile_register_name_mangled): Return
2687 std::string.
2688 * compile/compile-loc2c.c (pushf_register_address): Update.
2689 (pushf_register): Update.
2690 * compile/compile-c-types.c (convert_array): Update.
2691 * compile/compile-c-symbols.c (generate_vla_size): Update.
2692 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2693 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2694 (convert_one_symbol): Update.
2695 (generate_c_for_for_one_variable): Update.
2696 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2697 std::string.
2698 (generate_register_struct): Update.
2699 * compile/compile-internal.h (c_get_range_decl_name): Return a
2700 std::string.
2701 (compile_register_name_mangled): Return std::string.
2702
2703 2017-09-03 Tom Tromey <tom@tromey.com>
2704
2705 * utils.c (perror_string): Return a std::string.
2706 (throw_perror_with_name, perror_warning_with_name): Update.
2707
2708 2017-09-03 Tom Tromey <tom@tromey.com>
2709
2710 * demangle.c (demangle_command): Use std::string,
2711 unique_xmalloc_ptr.
2712
2713 2017-09-03 Tom Tromey <tom@tromey.com>
2714
2715 * cli/cli-setshow.c (do_set_command): Use std::string.
2716
2717 2017-09-03 Tom Tromey <tom@tromey.com>
2718
2719 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2720
2721 2017-09-03 Tom Tromey <tom@tromey.com>
2722
2723 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2724
2725 2017-09-03 Tom Tromey <tom@tromey.com>
2726
2727 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2728 gdb::unique_xmalloc_ptr.
2729
2730 2017-09-03 Tom Tromey <tom@tromey.com>
2731
2732 * thread.c (print_thread_info_1): Use string_printf.
2733 (thread_apply_command, thread_apply_all_command): Use
2734 std::string.
2735
2736 2017-09-03 Tom Tromey <tom@tromey.com>
2737
2738 * valprint.c (val_print_string): Update.
2739 * gdbcore.h (memory_error_message): Return std::string.
2740 * corefile.c (memory_error_message): Return std::string.
2741 (memory_error): Update.
2742 * breakpoint.c (insert_bp_location): Update.
2743
2744 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2745
2746 * target/waitstatus.h (target_waitstatus_to_string): Change
2747 return type to std::string.
2748 * target/waitstatus.c (target_waitstatus_to_string): Return
2749 std::string.
2750 * target.h (target_waitstatus_to_string): Remove declaration.
2751 * infrun.c (resume, clear_proceed_status_thread,
2752 print_target_wait_results, do_target_wait, save_waitstatus,
2753 stop_all_threads): Adjust.
2754 * record-btrace.c (record_btrace_wait): Adjust.
2755 * target-debug.h
2756 (target_debug_print_struct_target_waitstatus_p): Adjust.
2757
2758 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2759
2760 PR gdb/22046
2761 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2762 detection.
2763
2764 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2765
2766 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2767 for setting/unsetting environment variables on the remote target.
2768 (New remote packets): Add entries for QEnvironmentHexEncoded,
2769 QEnvironmentUnset and QEnvironmentReset.
2770 * common/environ.c (gdb_environ::operator=): Extend method to
2771 handle m_user_set_env_list and m_user_unset_env_list.
2772 (gdb_environ::clear): Likewise.
2773 (match_var_in_string): Change type of first parameter from 'char
2774 *' to 'const char *'.
2775 (gdb_environ::set): Extend method to handle
2776 m_user_set_env_list and m_user_unset_env_list.
2777 (gdb_environ::unset): Likewise.
2778 (gdb_environ::clear_user_set_env): New method.
2779 (gdb_environ::user_set_envp): Likewise.
2780 (gdb_environ::user_unset_envp): Likewise.
2781 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2782 m_user_unset_env_list on move constructor/assignment.
2783 (unset): Add new default parameter 'update_unset_list = true'.
2784 (clear_user_set_env): New method.
2785 (user_set_envp): Likewise.
2786 (user_unset_envp): Likewise.
2787 (m_user_set_env_list): New std::set.
2788 (m_user_unset_env_list): Likewise.
2789 * common/rsp-low.c (hex2str): New function.
2790 (bin2hex): New overload for bin2hex function.
2791 * common/rsp-low.c (hex2str): New prototype.
2792 (str2hex): New overload prototype.
2793 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2794 QEnvironmentUnset and QEnvironmentReset.
2795 (remote_protocol_features): Add QEnvironmentHexEncoded,
2796 QEnvironmentUnset and QEnvironmentReset packets.
2797 (send_environment_packet): New function.
2798 (extended_remote_environment_support): Likewise.
2799 (extended_remote_create_inferior): Call
2800 extended_remote_environment_support.
2801 (_initialize_remote): Add QEnvironmentHexEncoded,
2802 QEnvironmentUnset and QEnvironmentReset packet configs.
2803 * unittests/environ-selftests.c (gdb_selftest_env_var):
2804 New variable.
2805 (test_vector_initialization): New function.
2806 (test_init_from_host_environ): Likewise.
2807 (test_reinit_from_host_environ): Likewise.
2808 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2809 Likewise.
2810 (test_unset_set_empty_vector): Likewise.
2811 (test_vector_clear): Likewise.
2812 (test_std_move): Likewise.
2813 (test_move_constructor):
2814 (test_self_move): Likewise.
2815 (test_set_unset_reset): Likewise.
2816 (run_tests): Rewrite in terms of the functions above.
2817
2818 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2819
2820 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2821 (adi_available): Use a temp variable of type CORE_ADDR as argument
2822 3 when calling target_auxv_search.
2823 (adi_normalize_address): Use masks and xor operators to calculate
2824 normalized address.
2825 (adi_read_versions, adi_write_versions, adi_print_versions)
2826 (do_examine, do_assign): Use paddress.
2827
2828 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2829
2830 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2831 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2832 out of loop and add supply of FIR.
2833 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2834 add collect of FIR.
2835
2836 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2837
2838 PR gdb/21827
2839 * cli/cli-script.c (define_command): Don't convert command name
2840 to lower case.
2841
2842 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2843
2844 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2845 Update all callers accordingly. Remove all code blocks handling
2846 the case where DISPP is not NULL.
2847
2848 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2849
2850 PR symtab/22003
2851 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2852 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2853 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2854
2855 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2856
2857 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2858 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2859 (read_comp_units_from_section): New parameter abbrev_section, use
2860 read_and_check_comp_unit_head, allocate signatured_type if needed.
2861 (create_all_comp_units): Update read_comp_units_from_section caller.
2862
2863 2017-08-23 Pedro Alves <palves@redhat.com>
2864
2865 PR remote/21852
2866 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2867 to null_ptid and switch to thread without reading the registers
2868 after adding the inferior.
2869
2870 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2871
2872 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2873 compile-gcc.
2874 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2875 (compile_to_object): Implement compile_gcc.
2876 (_initialize_compile): Install "set compile-gcc". Initialize
2877 compile_gcc.
2878
2879 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2880
2881 * compile/compile.c (compile_to_object): Conditionally call
2882 set_verbose. Conditionally call compile or compile_v0.
2883
2884 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2885
2886 * sparc64-tdep.h: (adi_normalize_address): New export.
2887 * sparc-nat.h: (open_adi_tag_fd): New export.
2888 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2889 * sparc64-linux-tdep.c:
2890 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2891 (sparc64_linux_handle_segmentation_fault): New function.
2892 (sparc64_linux_init_abi): Register
2893 sparc64_linux_handle_segmentation_fault
2894 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2895 (sparc64_addr_bits_remove): New function.
2896 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2897 (MAX_PROC_NAME_SIZE): New macro.
2898 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2899 (sparc64adilist): New variable.
2900 (adi_proc_list): New variable.
2901 (find_adi_info): New function.
2902 (add_adi_info): New function.
2903 (get_adi_info_proc): New function.
2904 (get_adi_info): New function.
2905 (info_adi_command): New function.
2906 (read_maps_entry): New function.
2907 (adi_available): New function.
2908 (adi_normalize_address): New function.
2909 (adi_align_address): New function.
2910 (adi_convert_byte_count): New function.
2911 (adi_tag_fd): New function.
2912 (adi_is_addr_mapped): New function.
2913 (adi_read_versions): New function.
2914 (adi_write_versions): New function.
2915 (adi_print_versions): New function.
2916 (do_examine): New function.
2917 (do_assign): New function.
2918 (adi_examine_command): New function.
2919 (adi_assign_command): New function.
2920 (_initialize_sparc64_adi_tdep): New function.
2921
2922 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2923
2924 * breakpoint.c (breakpoints_info): Rename to ...
2925 (info_breakpoints_command): ... this.
2926 (watchpoints_info): Rename to ...
2927 (info_watchpoints_command): ... this.
2928 (tracepoints_info): Rename to ...
2929 (info_tracepoints_command): ... this.
2930 (_initialize_breakpoint): Adjust.
2931 * dcache.c (dcache_info): Rename to ...
2932 (info_display_command): ... this.
2933 (_initialize_dcache): Adjust.
2934 * frame.h (args_info): Rename to ...
2935 (info_args_command): ... this.
2936 (locals_info): Rename to ...
2937 (info_locals_command): ... this.
2938 * infcmd.c (nofp_registers_info): Rename to ...
2939 (info_registers_command): ... this.
2940 (float_info): Rename to ...
2941 (info_float_command): ... this.
2942 (program_info): Rename to ...
2943 (info_program_command): ... this.
2944 (all_registers_info): Rename to ...
2945 (info_all_registers_command): ... this.
2946 (vector_info): Rename to ...
2947 (info_vector_command): ... this.
2948 (float_info): Rename to ...
2949 (info_float_command): ... this.
2950 (_initialize_infcmd): Adjust.
2951 * inferior.h (term_info): Rename to ...
2952 (info_terminal_command): ... this.
2953 * inflow.c (term_info): Rename to ...
2954 (info_terminal_command): ... this.
2955 (_initialize_inflow): Adjust.
2956 * infrun.c (signals_info): Rename to ...
2957 (info_signals_command): ... this.
2958 (_initialize_infrun): Adjust.
2959 * objc-lang.c (classes_info): Rename to ...
2960 (info_classes_command): ... this.
2961 (selectors_info): Rename to ...
2962 (info_selectors_command): ... this.
2963 (_initialize_objc_language): Adjust.
2964 * printcmd.c (sym_info): Rename to ...
2965 (info_symbol_command): ... this.
2966 (address_info): Rename to ...
2967 (info_address_command): ... this.
2968 (display_info): Rename to ...
2969 (info_display_command): ... this.
2970 (_initialize_printcmd): Adjust.
2971 * reverse.c (bookmarks_info): Rename to ...
2972 (info_breakpoints_command): ... this.
2973 (_initialize_reverse): Adjust.
2974 * ser-go32.c (dos_info): Rename to ...
2975 (info_serial_command): ... this.
2976 (_initialize_ser_dos): Adjust.
2977 * skip.c (skip_info): Rename to ...
2978 (info_skip_command): ... this.
2979 (_initialize_step_skip): Adjust.
2980 * source.c (line_info): Rename to ...
2981 (info_line_command): ... this.
2982 (source_info): Rename to ...
2983 (info_source_command)
2984 * stack.c (frame_info): Rename to ...
2985 (info_frame_command): ... this.
2986 (locals_info): Rename to ...
2987 (info_locals_command): ... this.
2988 (args_info): Rename to ...
2989 (info_args_command): ... this.
2990 (_initialize_stack): Adjust.
2991 * symtab.c (sources_info): Rename to ...
2992 (info_sources_command): ... this.
2993 (variables_info): Rename to ...
2994 (info_variables_command): ... this.
2995 (functions_info): Rename to ...
2996 (info_functions_command): ... this.
2997 (types_info): Rename to ...
2998 (info_types_command): ... this.
2999 (_initialize_symtab): Adjust.
3000 * target.c (target_info): Rename to ...
3001 (info_target_command): ... this.
3002 (initialize_targets): Adjust.
3003 * tracepoint.c (tvariables_info): Rename to ...
3004 (info_tvariables_command): ... this.
3005 (scope_info): Rename to ...
3006 (info_scope_command): ... this.
3007 (trace_dump_actions): Adjust.
3008 (_initialize_tracepoint): Adjust.
3009
3010 2017-08-22 Tom Tromey <tom@tromey.com>
3011
3012 * breakpoint.h (install_breakpoint): Update.
3013 * breakpoint.c (add_solib_catchpoint): Update.
3014 (install_breakpoint): Change argument to a std::unique_ptr.
3015 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3016 (create_breakpoint_sal, create_breakpoint): Update.
3017 (watch_command_1, catch_exec_command_1)
3018 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3019 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3020 Return the breakpoint.
3021 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3022 (new_single_step_breakpoint): Update.
3023 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3024 std::unique_ptr.
3025 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3026 std::unique_ptr.
3027 * break-catch-sig.c (create_signal_catchpoint): Use
3028 std::unique_ptr.
3029 * ada-lang.c (create_ada_exception_catchpoint): Use
3030 std::unique_ptr.
3031
3032 2017-08-22 Tom Tromey <tom@tromey.com>
3033
3034 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3035
3036 2017-08-22 Tom Tromey <tom@tromey.com>
3037
3038 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3039 (lookup_partial_symbol): Update.
3040
3041 2017-08-22 Tom Tromey <tom@tromey.com>
3042
3043 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3044 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3045 (find_and_open_source, symtab_to_fullname): Update.
3046 * psymtab.c (psymtab_to_fullname): Update.
3047
3048 2017-08-22 Tom Tromey <tom@tromey.com>
3049
3050 * exec.c (exec_file_attach): Update.
3051 * linux-thread-db.c (try_thread_db_load): Update.
3052 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3053 * utils.c (gdb_realpath): Change return type.
3054 (gdb_realpath_keepfile): Update.
3055 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3056 (_initialize_utils): Register the new self test.
3057 * source.c (openp): Update.
3058 (find_and_open_source): Update.
3059 * nto-tdep.c (nto_find_and_open_solib): Update.
3060 * main.c (set_gdb_data_directory): Update.
3061 (captured_main_1): Update.
3062 * dwarf2read.c (dwarf2_get_dwz_file): Update
3063 (dw2_map_symbol_filenames): Update.
3064 * auto-load.c (auto_load_safe_path_vec_update): Update.
3065 (filename_is_in_auto_load_safe_path_vec): Change type of
3066 "filename_realp".
3067 (auto_load_objfile_script): Update.
3068 (file_is_auto_load_safe): Update. Use std::string.
3069 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3070
3071 2017-08-22 Tom Tromey <tom@tromey.com>
3072
3073 * utils.c (gdb_realpath_keepfile): Return a
3074 gdb::unique_xmalloc_ptr.
3075 * exec.c (exec_file_attach): Update.
3076 * utils.h (gdb_realpath_keepfile): Return a
3077 gdb::unique_xmalloc_ptr.
3078
3079 2017-08-22 Tom Tromey <tom@tromey.com>
3080
3081 * compile/compile.c (compile_file_command): Use
3082 gdb::unique_xmalloc_ptr, std::string.
3083 * utils.c (gdb_abspath): Change return type.
3084 * source.c (openp): Update.
3085 * objfiles.c (allocate_objfile): Update.
3086 * main.c (set_gdb_data_directory): Update.
3087 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3088
3089 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3090
3091 * cli-cmds.c (list_commands): List actual code around more than
3092 one location.
3093
3094 2017-08-21 John Baldwin <jhb@FreeBSD.org>
3095
3096 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3097
3098 2017-08-21 Pedro Alves <palves@redhat.com>
3099
3100 PR gdb/19487
3101 * c-exp.y (variable production): Handle function aliases.
3102 * minsyms.c (msymbol_is_text): New function.
3103 * minsyms.h (msymbol_is_text): Declare.
3104 * symtab.c (find_function_alias_target): New function.
3105 * symtab.h (find_function_alias_target): Declare.
3106
3107 2017-08-21 Pedro Alves <palves@redhat.com>
3108
3109 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3110 typedefs.
3111 * typeprint.c (whatis_exp): If handling "whatis", and expression
3112 is OP_TYPE, strip one typedef level. Otherwise don't strip
3113 typedefs here.
3114 * valops.c (value_cast): Save "to" type before resolving
3115 stubs/typedefs. Use that type as resulting value's type.
3116
3117 2017-08-18 Tom Tromey <tom@tromey.com>
3118 Pedro Alves <palves@redhat.com>
3119
3120 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3121 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3122 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3123 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3124 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3125 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3126 (linux_get_siginfo_data): Add "thread" argument. Use
3127 scoped_restore.
3128 * linux-nat.c (linux_child_follow_fork)
3129 (check_stopped_by_watchpoint): Use scoped_restore.
3130 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3131 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3132 (restore_inferior_ptid, save_inferior_ptid): Remove.
3133 * btrace.c (btrace_fetch): Use scoped_restore.
3134 * bsd-uthread.c (bsd_uthread_fetch_registers)
3135 (bsd_uthread_store_registers): Use scoped_restore.
3136 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3137 scoped_restore.
3138 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3139 (aix_thread_xfer_partial): Use scoped_restore.
3140 * inferior.h (save_inferior_ptid): Remove.
3141
3142 2017-08-18 Yao Qi <yao.qi@linaro.org>
3143
3144 PR tdep/21818
3145 * arm-tdep.c (gdb_print_insn_arm): Mark
3146 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3147
3148 2017-08-18 Yao Qi <yao.qi@linaro.org>
3149
3150 * NEWS: Mention GDBserver's new option "--selftest".
3151 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3152 * selftest.c: Move it to common/selftest.c.
3153 * selftest.h: Move it to common/selftest.h.
3154 * selftest-arch.c (reset): New function.
3155 (tests_with_arch): Call reset.
3156
3157 2017-08-18 Yao Qi <yao.qi@linaro.org>
3158
3159 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3160 instead of exception_fprintf and printf_filtered.
3161
3162 2017-08-18 Yao Qi <yao.qi@linaro.org>
3163
3164 * selftest.c (register_self_test): Rename it to
3165 selftests::register_test.
3166 (run_self_tests): selftest::run_tests.
3167 * selftest.h: Update declarations.
3168 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3169 selftests::register_test_foreach_arch.
3170 * selftest-arch.h: Update declaration.
3171 * aarch64-tdep.c: Update.
3172 * arm-tdep.c: Likewise.
3173 * disasm-selftests.c: Likewise.
3174 * dwarf2loc.c: Likewise.
3175 * dwarf2-frame.c: Likewise.
3176 * findvar.c: Likewise.
3177 * gdbarch-selftests.c: Likewise.
3178 * maint.c (maintenance_selftest): Likewise.
3179 * regcache.c: Likewise.
3180 * rust-exp.y: Likewise.
3181 * selftest-arch.c: Likewise.
3182 * unittests/environ-selftests.c: Likewise.
3183 * unittests/function-view-selftests.c: Likewise.
3184 * unittests/offset-type-selftests.c: Likewise.
3185 * unittests/optional-selftests.c: Likewise.
3186 * unittests/scoped_restore-selftests.c: Likewise.
3187 * utils-selftests.c: Likewise.
3188
3189 2017-08-17 Pedro Alves <palves@redhat.com>
3190
3191 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3192 local.
3193
3194 2017-08-17 Pedro Alves <palves@redhat.com>
3195
3196 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3197 field.
3198 (reset_die_in_process): Delete, replaced by ...
3199 (process_die_scope): ... this new class. Make it responsible for
3200 freeing cu->line_header too.
3201 (process_die): Use process_die_scope.
3202 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3203 cu->line_header_die_owner. Don't release the line header if it's
3204 owned by the CU.
3205 (setup_type_unit_groups): Make the CU/DIE own the line header.
3206 Don't release the line header here.
3207
3208 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3209
3210 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3211
3212 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3213
3214 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3215 Single-Key mode
3216
3217 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3218
3219 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3220 mode command list.
3221
3222 2017-08-15 Stafford Horne <shorne@gmail.com>
3223
3224 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3225
3226 2017-08-15 Stafford Horne <shorne@gmail.com>
3227
3228 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3229
3230 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3231
3232 PR gdb/21954
3233 * infcmd.c (unset_environment_command): Use the 'clear' method on
3234 the environment instead of resetting it.
3235
3236 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3237
3238 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3239 platforms.
3240
3241 2017-08-14 Tom Tromey <tom@tromey.com>
3242
3243 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3244 (print_binary_chars): Likewise.
3245 (BITS_IN_BYTES): Remove.
3246
3247 2017-08-14 Tom Tromey <tom@tromey.com>
3248
3249 PR gdb/21675
3250 * valprint.c (LOW_ZERO): Change value to 034.
3251 (print_octal_chars): Add static_asserts for octal constants.
3252 * printcmd.c (print_scalar_formatted): Add 'd' case.
3253
3254 2017-08-11 Tom Tromey <tom@tromey.com>
3255
3256 * symfile.c (add_symbol_file_command): Use std::vector.
3257
3258 2017-08-14 Tom Tromey <tom@tromey.com>
3259
3260 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3261 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3262 std::move.
3263 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3264
3265 2017-08-11 Pedro Alves <palves@redhat.com>
3266
3267 * infrun.c (process_event_stop_test): Adjust
3268 function_name_is_marked_for_skip call.
3269 * skip.c: Include <list>.
3270 (skiplist_entry): Make it a class with private fields, and
3271 getters/setters.
3272 (skiplist_entry_chain): Delete.
3273 (skiplist_entries): New.
3274 (skiplist_entry_count): Delete.
3275 (highest_skiplist_entry_num): New.
3276 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3277 (add_skiplist_entry): Delete.
3278 (skiplist_entry::skiplist_entry): New.
3279 (skiplist_entry::add_entry): New.
3280 (skip_file_command, skip_function): Adjust.
3281 (compile_skip_regexp): Delete.
3282 (skip_command): Don't compile regexp here. Adjust to use
3283 skiplist_entry::add_entry.
3284 (skip_info): Adjust to use range-for and getters.
3285 (skip_enable_command, skip_disable_command): Adjust to use
3286 range-for and setters.
3287 (skip_delete_command): Adjust to use std::list.
3288 (add_skiplist_entry): Delete.
3289 (skip_file_p): Delete, refactored as ...
3290 (skiplist_entry::do_skip_file_p): ... this new method.
3291 (skip_gfile_p): Delete, refactored as ...
3292 (skiplist_entry::do_gskip_file_p): ... this new method.
3293 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3294 (skiplist_entry::skip_function_p): ... this new method.
3295 (function_name_is_marked_for_skip): Now returns bool, and takes
3296 the function sal by const reference. Adjust to use range-for and
3297 skiplist_entry methods.
3298 (_initialize_step_skip): Remove references to
3299 skiplist_entry_chain, skiplist_entry_count.
3300 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3301 takes the function sal by const reference.
3302
3303 2017-08-11 Yao Qi <yao.qi@linaro.org>
3304
3305 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3306 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3307 (dwarf2_frame_cache):
3308 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3309 RETURN_MASK_ALL and set *this_case to NULL.
3310 * frame-unwind.h: Update comments.
3311
3312 2017-08-11 Yao Qi <yao.qi@linaro.org>
3313
3314 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3315 (dwarf2_frame_state_copy_regs): Remove.
3316 (dwarf2_frame_state_free_regs): Remove.
3317 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3318 (dwarf2_restore_rule): Call method .alloc_regs instead of
3319 dwarf2_frame_state_alloc_regs.
3320 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3321 constructor. Call std::move.
3322 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3323 (dwarf2_frame_cache): Likewise.
3324
3325 [GDB_SELF_TEST]: Include selftest.h and
3326 selftest-arch.h.
3327 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3328 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3329 execute_cfa_program_test.
3330
3331 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3332 copy ctor, assignment operator, move assignment.
3333 <alloc_regs>: New method.
3334 <swap>: New method.
3335 (struct dwarf2_frame_state): Delete dtor.
3336 (dwarf2_frame_state_alloc_regs): Remove declaration.
3337 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3338 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3339
3340 2017-08-11 Yao Qi <yao.qi@linaro.org>
3341
3342 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3343 (dwarf2_frame_state::dwarf2_frame_state): New.
3344 (dwarf2_frame_state::~dwarf2_frame_state): New.
3345 (dwarf2_fetch_cfa_info): Update.
3346 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3347 rather than a pointer. Update code.
3348 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3349 dtor.
3350 <data_align, code_align, retaddr_column>: Change them to const.
3351 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3352 to bool.
3353
3354 2017-08-11 Yao Qi <yao.qi@linaro.org>
3355
3356 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3357 <loc.exp>: New field.
3358 * dwarf2-frame.c (execute_cfa_program): Update.
3359 (dwarf2_frame_prev_register): Update.
3360
3361 2017-08-10 Pedro Alves <palves@redhat.com>
3362
3363 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3364
3365 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3366
3367 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3368 (fbsd_pending_children): Use std::list.
3369 (fbsd_remember_child): Likewise.
3370 (fbsd_is_child_pending): Likewise.
3371 (fbsd_pending_vfork_done): Use std::forward_list.
3372 (fbsd_add_vfork_done): Likewise.
3373 (fbsd_is_vfork_done_pending): Likewise.
3374 (fbsd_next_vfork_done): Likewise.
3375
3376 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3377
3378 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3379 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3380 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3381 for `mapfilename'.
3382 (fbsd_xfer_partial): Use gdb::byte_vector.
3383 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3384
3385 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3386
3387 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3388 "filestuff.h".
3389 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3390
3391 2017-08-09 Tom Tromey <tom@tromey.com>
3392
3393 * skip.c (skiplist_entry): New constructor.
3394 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3395 (skiplist_entry::file_is_glob): Now bool.
3396 (skiplist_entry::file, skiplist_entry::function): Now
3397 std::string.
3398 (make_skip_entry): Return a unique_ptr. Use new.
3399 (free_skiplist_entry, free_skiplist_entry_cleanup)
3400 (make_free_skiplist_entry_cleanup): Remove.
3401 (skip_command, skip_disable_command, add_skiplist_entry)
3402 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3403 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3404 (function_name_is_marked_for_skip): Update.
3405 (skip_delete_command): Update. Use delete.
3406
3407 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3408
3409 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3410 (aarch64_linux_core_read_description): New function.
3411 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3412
3413 2017-08-09 Pedro Alves <palves@redhat.com>
3414
3415 * cp-name-parser.y (cp_comp_to_string): Return a
3416 gdb::unique_xmalloc_ptr<char>.
3417 * cp-support.c (replace_typedefs_qualified_name)
3418 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3419 (cp_canonicalize_string_full): Use op= instead of explicit
3420 convertion.
3421 (cp_class_name_from_physname, method_name_from_physname)
3422 (cp_func_name, cp_remove_params): Adjust to use
3423 gdb::unique_xmalloc_ptr<char>.
3424 * cp-support.h (cp_comp_to_string): Return a
3425 gdb::unique_xmalloc_ptr<char>.
3426 * python/py-type.c (typy_lookup_type): Adjust to use
3427 gdb::unique_xmalloc_ptr<char>.
3428
3429 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3430
3431 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3432
3433 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3434 Yao Qi <yao.qi@linaro.org>
3435
3436 * cp-support.c (cp_canonicalize_string_full): Use
3437 gdb::unique_xmalloc_ptr<char>.
3438 (cp_canonicalize_string): Likewise.
3439
3440 2017-08-09 Yao Qi <yao.qi@linaro.org>
3441
3442 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3443 * regformats/i386/amd64-avx-avx512.dat: Remove.
3444 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3445 * regformats/i386/amd64-avx-mpx.dat:Remove.
3446 * regformats/i386/amd64-avx.dat: Remove.
3447 * regformats/i386/amd64-mpx.dat: Remove.
3448 * regformats/i386/i386-avx-avx512.dat: Remove.
3449 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3450 * regformats/i386/i386-avx-mpx.dat: Remove.
3451 * regformats/i386/i386-mmx.dat: Remove.
3452 * regformats/i386/i386-mpx.dat: Remove.
3453
3454 2017-08-09 Yao Qi <yao.qi@linaro.org>
3455
3456 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3457 * amd64-tdep.c: Don't include features/i386/x32*.c.
3458 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3459 functions.
3460 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3461 and i386/x32-avx-avx512.
3462 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3463 and i386/x32.xml.
3464 * features/i386/x32-avx-avx512.c: Removed.
3465 * features/i386/x32-avx-avx512.xml: Removed.
3466 * features/i386/x32-avx.c: Removed.
3467 * features/i386/x32-avx.xml: Removed.
3468 * features/i386/x32.c: Removed.
3469 * features/i386/x32.xml: Removed.
3470 * regformats/i386/x32-avx-avx512.dat: Removed.
3471 * regformats/i386/x32-avx.dat: Removed.
3472 * regformats/i386/x32.dat: Removed.
3473
3474 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3475
3476 PR breakpoints/21886
3477 * mem-break.c (default_memory_insert_breakpoint): Use
3478 `->placed_address' rather than `->reqstd_address' for the
3479 breakpoint location.
3480
3481 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3482
3483 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3484 assertions.
3485
3486 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3487
3488 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3489 a union of `tdep_info', `tdesc_data' and `id'.
3490 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3491 rather than `info.tdep_info'.
3492 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3493 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3494 * i386-tdep.c (i386_gdbarch_init): Likewise.
3495 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3496 * mips-tdep.c (mips_gdbarch_init): Likewise.
3497 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3498 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3499 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3500 `info.tdep_info'.
3501 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3502 `info.tdep_info'.
3503 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3504 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3505 `info.tdep_info'.
3506 * spu-tdep.c (spu_gdbarch_init): Likewise.
3507 * gdbarch.h: Regenerate.
3508
3509 2017-08-07 Leszek Swirski <leszeks@google.com>
3510
3511 PR symtab/20899
3512 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3513
3514 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3515
3516 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3517 (gdbsim_open): Rename gdb_argv args object to argv.
3518
3519 2017-08-05 Tom Tromey <tom@tromey.com>
3520
3521 * compile/compile-object-load.c (compile_object_load): Use
3522 gdb::unique_xmalloc_ptr.
3523 * cli/cli-dump.c (scan_filename): Rename from
3524 scan_filename_with_cleanup. Change return type.
3525 (scan_expression): Rename from scan_expression_with_cleanup.
3526 Change return type.
3527 (dump_memory_to_file, dump_value_to_file, restore_command):
3528 Use gdb::unique_xmalloc_ptr. Update.
3529 * cli/cli-cmds.c (find_and_open_script): Use
3530 gdb::unique_xmalloc_ptr.
3531 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3532 * symmisc.c (maintenance_print_symbols)
3533 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3534 * symfile.c (symfile_bfd_open, generic_load)
3535 (add_symbol_file_command, remove_symbol_file_command): Use
3536 gdb::unique_xmalloc_ptr.
3537 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3538 * psymtab.c (maintenance_print_psymbols): Use
3539 gdb::unique_xmalloc_ptr.
3540 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3541 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3542 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3543 (reload_shared_libraries_1): Likewise.
3544
3545 2017-08-05 Tom Tromey <tom@tromey.com>
3546
3547 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3548 (rust_op_vector, rust_set_vector): New typedefs.
3549 (current_parser): New global.
3550 (work_obstack): Change to pointer type. Update all users.
3551 (rust_ast, pstate): Remove globals.
3552 (struct rust_parser): New.
3553 (%union) <params, field_inits>: Change type.
3554 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3555 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3556 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3557 (convert_params_to_types, convert_params_to_expression): Change
3558 type of "params".
3559 (ast_string): Change type of "fields".
3560 (rust_parse): Make a rust_parser. Remove cleanups.
3561 (rust_lex_tests): Make and install an auto_obstack.
3562
3563 2017-08-04 Yao Qi <yao.qi@linaro.org>
3564
3565 * configure.srv (ipa_x32_linux_regobj): New.
3566 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3567 instead of X86_TDESC_AVX512.
3568 (initialize_low_tracepoint): Call
3569 init_registers_x32_avx_avx512_linux.
3570
3571 2017-08-04 Yao Qi <yao.qi@linaro.org>
3572
3573 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3574
3575 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3576
3577 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3578
3579 2017-08-03 Tom Tromey <tom@tromey.com>
3580
3581 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3582 Remove.
3583 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3584
3585 2017-08-03 Tom Tromey <tom@tromey.com>
3586
3587 * python/py-param.c (compute_enum_values): Use gdb_argv.
3588
3589 2017-08-03 Tom Tromey <tom@tromey.com>
3590
3591 * utils.h (struct gdb_argv_deleter): New.
3592 (gdb_argv): New class.
3593 * utils.c (gdb_argv::reset): New method.
3594 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3595 * tracefile.c (tsave_command): Use gdb_argv.
3596 * top.c (new_ui_command): Use gdb_argv.
3597 * symmisc.c (maintenance_print_symbols)
3598 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3599 * symfile.c (symbol_file_command, generic_load)
3600 (remove_symbol_file_command): Use gdb_argv.
3601 * stack.c (backtrace_command): Use gdb_argv.
3602 * source.c (add_path, show_substitute_path_command)
3603 (unset_substitute_path_command, set_substitute_path_command):
3604 Use gdb_argv.
3605 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3606 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3607 * remote.c (extended_remote_run, remote_put_command)
3608 (remote_get_command, remote_delete_command): Use gdb_argv.
3609 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3610 (gdbsim_open): Use gdb_argv.
3611 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3612 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3613 * procfs.c (procfs_info_proc): Use gdb_argv.
3614 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3615 * infrun.c (handle_command): Use gdb_argv.
3616 * inferior.c (add_inferior_command, clone_inferior_command):
3617 Use gdb_argv.
3618 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3619 * exec.c (exec_file_command): Use gdb_argv.
3620 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3621 * compile/compile.c (build_argc_argv): Use gdb_argv.
3622
3623 2017-08-03 Tom Tromey <tom@tromey.com>
3624
3625 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3626
3627 2017-08-03 Tom Tromey <tom@tromey.com>
3628
3629 * python/python.c (compute_python_string): Return std::string.
3630 (gdbpy_eval_from_control_command): Update.
3631 (do_start_initialization): Use std::string.
3632 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3633 xstrprintf.
3634 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3635 xstrprintf.
3636
3637 2017-08-03 Tom Tromey <tom@tromey.com>
3638
3639 * top.h (do_restore_instream_cleanup): Remove.
3640 * top.c (do_restore_instream_cleanup): Remove.
3641 (read_command_file): Use scoped_restore.
3642 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3643
3644 2017-08-03 Tom Tromey <tom@tromey.com>
3645
3646 * cli/cli-script.c (execute_user_command)
3647 (execute_control_command): Use scoped_restore.
3648
3649 2017-08-03 Tom Tromey <tom@tromey.com>
3650
3651 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3652 (execute_user_command): Remove user_call_depth; use
3653 user_args_stack's size instead.
3654
3655 2017-08-03 Tom Tromey <tom@tromey.com>
3656
3657 * top.h (in_user_command): Remove.
3658 * top.c (in_user_command): Remove.
3659 * cli/cli-script.c (do_restore_user_call_depth)
3660 (execute_user_command): Update.
3661
3662 2017-08-03 Tom Tromey <tom@tromey.com>
3663
3664 * valops.c (search_struct_method): Use gdb::byte_vector.
3665 * valarith.c (value_concat): Use std::vector.
3666 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3667 (simple_search_memory): Likewise.
3668 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3669 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3670 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3671 * elfread.c (elf_rel_plt_read): Use std::string.
3672 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3673 * cli/cli-dump.c (restore_section_callback): Use
3674 gdb::byte_vector.
3675
3676 2017-08-03 Tom Tromey <tom@tromey.com>
3677
3678 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3679
3680 2017-08-03 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3683 (tui_register_format): Use scoped_restore.
3684
3685 2017-08-03 Tom Tromey <tom@tromey.com>
3686
3687 * reverse.c (exec_direction_default): Remove.
3688 (exec_reverse_once): Use scoped_restore.
3689 * remote.c (restore_remote_timeout): Remove.
3690 (remote_flash_erase, remote_flash_write, remote_flash_done)
3691 (readchar, remote_serial_write): Use scoped_restore.
3692 * cli/cli-script.c (struct source_cleanup_lines_args)
3693 (source_cleanup_lines): Remove.
3694 (script_from_file): Use scoped_restore.
3695 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3696 (source_command): Use scoped_restore.
3697
3698 2017-08-03 Tom Tromey <tom@tromey.com>
3699
3700 * utils.h (make_cleanup_free_so): Remove.
3701 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3702 * solist.h (struct so_deleter): New.
3703 (so_list_up): New typedef.
3704 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3705
3706 2017-08-03 Tom Tromey <tom@tromey.com>
3707
3708 * utils.h (make_cleanup_restore_current_language): Remove.
3709 * utils.c (do_restore_current_language)
3710 (make_cleanup_restore_current_language): Remove.
3711 * parse.c (parse_exp_in_context_1)
3712 (parse_expression_with_language): Use
3713 scoped_restore_current_language.
3714 * mi/mi-main.c (mi_cmd_execute): Use
3715 scoped_restore_current_language.
3716 * language.h (scoped_restore_current_language): New class.
3717
3718 2017-08-03 Tom Tromey <tom@tromey.com>
3719
3720 * compile/compile.c (cleanup_unlink_file): Remove.
3721 (compile_to_object): Use gdb::unlinker.
3722 (eval_compile_command): Likewise.
3723
3724 2017-08-03 Tom Tromey <tom@tromey.com>
3725
3726 * utils.h (make_cleanup_fclose): Remove.
3727 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3728
3729 2017-08-03 Tom Tromey <tom@tromey.com>
3730
3731 * top.c (open_terminal_stream): Return gdb_file_up.
3732 (new_ui_command): Update.
3733
3734 2017-08-03 Tom Tromey <tom@tromey.com>
3735
3736 * source.c (print_source_lines_base, forward_search_command)
3737 (reverse_search_command): Use gdb_file_up.
3738
3739 2017-08-03 Tom Tromey <tom@tromey.com>
3740
3741 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3742
3743 2017-08-03 Tom Tromey <tom@tromey.com>
3744
3745 * cli/cli-cmds.c (find_and_open_script): Change return type.
3746 Remove "streamp" and "full_path" parameters.
3747 (source_script_with_search): Update.
3748 * auto-load.c (source_script_file): Update.
3749 * cli/cli-cmds.h (find_and_open_script): Change type.
3750 (open_script): New struct.
3751
3752 2017-08-03 Tom Tromey <tom@tromey.com>
3753
3754 * xml-support.c (xml_fetch_content_from_file): Update.
3755 * ui-file.c (stdio_file::open): Update.
3756 * tracefile-tfile.c (tfile_start): Update.
3757 * remote.c (remote_file_put, remote_file_get): Update.
3758 * nat/linux-procfs.c (linux_proc_get_int)
3759 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3760 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3761 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3762 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3763 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3764 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3765 * linux-nat.c (linux_proc_pending_signals): Update.
3766 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3767 (file_closer): Remove.
3768 * compile/compile.c (compile_to_object): Update.
3769 * common/filestuff.h (struct gdb_file_deleter): New.
3770 (gdb_file_up): New typedef.
3771 (gdb_fopen_cloexec): Change return type.
3772 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3773 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3774 (dump_binary_file, restore_binary_file): Update.
3775 * auto-load.c (auto_load_objfile_script_1): Update.
3776
3777 2017-08-03 Tom Tromey <tom@tromey.com>
3778
3779 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3780 (info_static_tracepoint_markers_command): Likewise.
3781 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3782 * skip.c (skip_info): Use ui_out_emit_table.
3783 * progspace.c (print_program_space): Use ui_out_emit_table.
3784 * osdata.c (info_osdata): Use ui_out_emit_table.
3785 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3786 ui_out_emit_table.
3787 * linux-thread-db.c (info_auto_load_libthread_db): Use
3788 ui_out_emit_table.
3789 * inferior.c (print_inferior): Use ui_out_emit_table.
3790 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3791 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3792 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3793 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3794 * ui-out.h (class ui_out_emit_table): New.
3795
3796 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3797
3798 * mips-tdep.c (mips_fpu_type_str): New function.
3799 (mips_dump_tdep): Call it.
3800
3801 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3802
3803 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3804 `->mips_fpu_type'.
3805
3806 2017-07-31 Xavier Roirand <roirand@adacore.com>
3807
3808 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3809
3810 2017-07-27 Xavier Roirand <roirand@adacore.com>
3811
3812 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3813
3814 2017-07-26 Yao Qi <yao.qi@linaro.org>
3815
3816 * cli/cli-cmds.c (maintenancechecklist): New variable.
3817 * gdbcmd.h (maintenancechecklist): Declare it.
3818 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3819 Call i386_linux_read_description with different masks.
3820 * maint.c (maintenance_check_command): New function.
3821 (_initialize_maint_cmds): Call add_prefix_cmd.
3822 * target-descriptions.c (tdesc_reg): override operator != and ==.
3823 (tdesc_type): Likewise.
3824 (tdesc_feature): Likewise.
3825 (target_desc): Likewise.
3826 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3827 (maintenance_check_xml_descriptions): New function.
3828 (_initialize_target_descriptions) Add command "xml-descriptions".
3829 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3830
3831 2017-07-26 Yao Qi <yao.qi@linaro.org>
3832
3833 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3834 Include features/i386/32bit-*.c.
3835 (i386_linux_read_description): Generate target description if it
3836 doesn't exist.
3837 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3838 functions.
3839 * features/i386/32bit-linux.c: Re-generated.
3840 * features/i386/32bit-sse.c: Likewise.
3841 * target-descriptions.c (print_c_feature::visit): Print code to
3842 set register number if needed.
3843 (print_c_feature) <m_next_regnum>: New field.
3844
3845 2017-07-26 Yao Qi <yao.qi@linaro.org>
3846
3847 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3848 (FEATURE_XMLFILES): New.
3849 (FEATURE_CFILES): New.
3850 New rules.
3851 (clean-cfiles): Remove generated c files.
3852 * features/i386/32bit-avx.c: Generated.
3853 * features/i386/32bit-avx512.c: Generated.
3854 * features/i386/32bit-core.c: Generated.
3855 * features/i386/32bit-linux.c: Generated.
3856 * features/i386/32bit-mpx.c: Generated.
3857 * features/i386/32bit-pkeys.c: Generated.
3858 * features/i386/32bit-sse.c: Generated.
3859 * target-descriptions.c: Include algorithm.
3860 (tdesc_element_visitor): Add method visit_end.
3861 (print_c_tdesc): Implement visit_end.
3862 (print_c_tdesc:: m_filename_after_features): Move it to
3863 protected.
3864 (print_c_feature): New class.
3865 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3866 name starts with "i386/32bit-".
3867
3868 2017-07-26 Yao Qi <yao.qi@linaro.org>
3869
3870 * target-descriptions.c (tdesc_element_visitor): New class.
3871 (tdesc_element): New class.
3872 (tdesc_reg): Inherit from tdesc_element.
3873 (tdesc_reg::accept): New function.
3874 (tdesc_type): Inherit from tdesc_element.
3875 (tdesc_type::accept): New function.
3876 (tdesc_feature): Inherit from tdesc_element.
3877 (tdesc_feature::accept): New function.
3878 (target_desc): Inherit from tdesc_element.
3879 (target_desc::target_desc): New.
3880 (target_desc::~target_desc): New.
3881 (target_desc::accept): New.
3882 (allocate_target_description): Use new.
3883 (free_target_description): Use delete.
3884 (print_c_tdesc): New class.
3885 (maint_print_c_tdesc_cmd): Adjust.
3886
3887 * features/aarch64.c: Re-generated.
3888 * features/arc-arcompact.c: Re-generated.
3889 * features/arc-v2.c: Re-generated.
3890 * features/arm/arm-with-iwmmxt.c: Re-generated.
3891 * features/arm/arm-with-m.c: Re-generated.
3892 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3893 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3894 * features/arm/arm-with-neon.c: Re-generated.
3895 * features/arm/arm-with-vfpv2.c: Re-generated.
3896 * features/arm/arm-with-vfpv3.c: Re-generated.
3897 * features/i386/amd64-avx-avx512.c: Re-generated.
3898 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3899 * features/i386/amd64-avx.c: Re-generated.
3900 * features/i386/amd64-avx-linux.c: Re-generated.
3901 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3902 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3903 * features/i386/amd64-avx-mpx.c: Re-generated.
3904 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3905 * features/i386/amd64.c: Re-generated.
3906 * features/i386/amd64-linux.c: Re-generated.
3907 * features/i386/amd64-mpx.c: Re-generated.
3908 * features/i386/amd64-mpx-linux.c: Re-generated.
3909 * features/i386/i386-avx-avx512.c: Re-generated.
3910 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3911 * features/i386/i386-avx.c: Re-generated.
3912 * features/i386/i386-avx-linux.c: Re-generated.
3913 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3914 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3915 * features/i386/i386-avx-mpx.c: Re-generated.
3916 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3917 * features/i386/i386.c: Re-generated.
3918 * features/i386/i386-linux.c: Re-generated.
3919 * features/i386/i386-mmx.c: Re-generated.
3920 * features/i386/i386-mmx-linux.c: Re-generated.
3921 * features/i386/i386-mpx.c: Re-generated.
3922 * features/i386/i386-mpx-linux.c: Re-generated.
3923 * features/i386/x32-avx-avx512.c: Re-generated.
3924 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3925 * features/i386/x32-avx.c: Re-generated.
3926 * features/i386/x32-avx-linux.c: Re-generated.
3927 * features/i386/x32.c: Re-generated.
3928 * features/i386/x32-linux.c: Re-generated.
3929 * features/microblaze.c: Re-generated.
3930 * features/microblaze-with-stack-protect.c: Re-generated.
3931 * features/mips64-dsp-linux.c: Re-generated.
3932 * features/mips64-linux.c: Re-generated.
3933 * features/mips-dsp-linux.c: Re-generated.
3934 * features/mips-linux.c: Re-generated.
3935 * features/nds32.c: Re-generated.
3936 * features/nios2.c: Re-generated.
3937 * features/nios2-linux.c: Re-generated.
3938 * features/rs6000/powerpc-32.c: Re-generated.
3939 * features/rs6000/powerpc-32l.c: Re-generated.
3940 * features/rs6000/powerpc-403.c: Re-generated.
3941 * features/rs6000/powerpc-403gc.c : Re-generated.
3942 * features/rs6000/powerpc-405.c: Re-generated.
3943 * features/rs6000/powerpc-505.c: Re-generated.
3944 * features/rs6000/powerpc-601.c: Re-generated.
3945 * features/rs6000/powerpc-602.c: Re-generated.
3946 * features/rs6000/powerpc-603.c: Re-generated.
3947 * features/rs6000/powerpc-604.c: Re-generated.
3948 * features/rs6000/powerpc-64.c: Re-generated.
3949 * features/rs6000/powerpc-64l.c: Re-generated.
3950 * features/rs6000/powerpc-7400.c: Re-generated.
3951 * features/rs6000/powerpc-750.c: Re-generated.
3952 * features/rs6000/powerpc-860.c: Re-generated.
3953 * features/rs6000/powerpc-altivec32.c: Re-generated.
3954 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3955 * features/rs6000/powerpc-altivec64.c: Re-generated.
3956 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3957 * features/rs6000/powerpc-cell32l.c: Re-generated.
3958 * features/rs6000/powerpc-cell64l.c: Re-generated.
3959 * features/rs6000/powerpc-e500.c: Re-generated.
3960 * features/rs6000/powerpc-e500l.c: Re-generated.
3961 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3962 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3963 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3964 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3965 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3966 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3967 * features/rs6000/powerpc-vsx32.c: Re-generated.
3968 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3969 * features/rs6000/powerpc-vsx64.c: Re-generated.
3970 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3971 * features/rs6000/rs6000.c: Re-generated.
3972 * features/s390-linux32.c: Re-generated.
3973 * features/s390-linux32v1.c: Re-generated.
3974 * features/s390-linux32v2.c: Re-generated.
3975 * features/s390-linux64.c: Re-generated.
3976 * features/s390-linux64v1.c: Re-generated.
3977 * features/s390-linux64v2.c: Re-generated.
3978 * features/s390-te-linux64.c: Re-generated.
3979 * features/s390-tevx-linux64.c: Re-generated.
3980 * features/s390-vx-linux64.c: Re-generated.
3981 * features/s390x-linux64.c: Re-generated.
3982 * features/s390x-linux64v1.c: Re-generated.
3983 * features/s390x-linux64v2.c: Re-generated.
3984 * features/s390x-te-linux64.c: Re-generated.
3985 * features/s390x-tevx-linux64.c: Re-generated.
3986 * features/s390x-vx-linux64.c: Re-generated.
3987 * features/sparc/sparc32-solaris.c: Re-generated.
3988 * features/sparc/sparc64-solaris.c: Re-generated.
3989 * features/tic6x-c62x.c: Re-generated.
3990 * features/tic6x-c62x-linux.c: Re-generated.
3991 * features/tic6x-c64x.c: Re-generated.
3992 * features/tic6x-c64x-linux.c: Re-generated.
3993 * features/tic6x-c64xp.c: Re-generated.
3994 * features/tic6x-c64xp-linux.c: Re-generated.
3995
3996 2017-07-26 Yao Qi <yao.qi@linaro.org>
3997
3998 * i386-linux-tdep.c (i386_linux_read_description): New function.
3999 (i386_linux_core_read_description): Call
4000 i386_linux_read_description.
4001 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4002 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4003 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4004 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4005 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4006 * x86-linux-nat.c (x86_linux_read_description): Call
4007 i386_linux_read_description.
4008
4009 2017-07-26 Yao Qi <yao.qi@linaro.org>
4010
4011 * NEWS: Mention it.
4012 * features/Makefile (%.c: %.xml): Pass the xml file name to
4013 command "maint print c-tdesc".
4014 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4015 name from 'arg'.
4016
4017 2017-07-26 Yao Qi <yao.qi@linaro.org>
4018
4019 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4020 in-class initialization.
4021 (tdesc_create_feature): Call new instead of XCNEW.
4022 (free_target_description): Ue delete.
4023
4024 2017-07-25 John Baldwin <jhb@FreeBSD.org>
4025
4026 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4027
4028 2017-07-25 Yao Qi <yao.qi@linaro.org>
4029
4030 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4031 constant.
4032 (amd64_x32_init_abi): Likewise.
4033 * amd64-tdep.h (amd64_init_abi): Update declaration.
4034 (amd64_x32_init_abi): Likewise.
4035
4036 2017-07-25 Yao Qi <yao.qi@linaro.org>
4037
4038 PR tdep/21717
4039 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4040 condition for FPSCR.
4041 (arm_linux_store_inferior_registers): Likewise.
4042
4043 2017-07-22 Tom Tromey <tom@tromey.com>
4044
4045 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4046 <syscalls_counts>: Now a std::vector.
4047 (get_catch_syscall_inferior_data): Use "new".
4048 (catch_syscall_inferior_data_cleanup): Use "delete".
4049 (insert_catch_syscall, remove_catch_syscall)
4050 (clear_syscall_counts): Update.
4051
4052 2017-07-22 Tom Tromey <tom@tromey.com>
4053
4054 * break-catch-syscall.c (syscall_catchpoint)
4055 <syscalls_to_be_caught>: Now a std::vector<int>
4056 (~syscall_catchpoint): Remove.
4057 (insert_catch_syscall, remove_catch_syscall)
4058 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4059 (print_mention_catch_syscall, print_recreate_catch_syscall):
4060 Update.
4061 (create_syscall_event_catchpoint): Change type of "filter"
4062 parameter.
4063 (catch_syscall_split_args): Return a std::vector.
4064 (catch_syscall_command_1, catching_syscall_number_1): Update.
4065
4066 2017-07-22 Tom Tromey <tom@tromey.com>
4067
4068 * break-catch-throw.c (struct exception_catchpoint)
4069 <exception_rx>: Now a std::string.
4070 (~exception_catchpoint): Remove.
4071 (print_one_detail_exception_catchpoint): Update.
4072 (handle_gnu_v3_exceptions): Change type of except_rx.
4073 (extract_exception_regexp): Return a std::string.
4074 (catch_exception_command_1): Update.
4075
4076 2017-07-22 Tom Tromey <tom@tromey.com>
4077
4078 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4079 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4080 std::vector.
4081 <catch_all>: Now a bool.
4082 (~signal_catchpoint): Remove.
4083 (signal_catchpoint_insert_location)
4084 (signal_catchpoint_remove_location)
4085 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4086 (signal_catchpoint_print_mention)
4087 (signal_catchpoint_print_recreate)
4088 (signal_catchpoint_explains_signal): Update.
4089 (create_signal_catchpoint): Change type of "filter" and
4090 "catch_all".
4091 (catch_signal_split_args): Return a std::vector. Change type of
4092 "catch_all".
4093 (catch_signal_command): Update.
4094
4095 2017-07-20 Pedro Alves <palves@redhat.com>
4096
4097 * ada-lang.c (ada_language_defn): Make extern.
4098 (_initialize_ada_language): Remove add_language call.
4099 * c-lang.c (c_language_defn, cplus_language_defn)
4100 (asm_language_defn, minimal_language_defn): Make extern.
4101 (_initialize_c_language): Delete.
4102 * completer.c (compare_cstrings): Delete, moved to utils.h.
4103 * d-lang.c (d_language_defn): Make extern.
4104 (_initialize_d_language): Remove add_language calls.
4105 * defs.h (enum language): Add comment.
4106 * f-lang.c (f_language_defn): Make extern.
4107 (_initialize_f_language): Remove add_language call.
4108 * go-lang.c (go_language_defn): Make extern.
4109 (_initialize_go_language): Remove add_language call.
4110 * language.c: Include <algorithm>.
4111 (languages): Redefine as const array.
4112 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4113 (set_language_command): Handle "local". Use for-range loop.
4114 (set_language): Remove loop.
4115 (language_enum): Rewrite.
4116 (language_def, language_str): Remove loops.
4117 (add_language): Delete.
4118 (add_set_language_command): New, based on add_languages.
4119 (skip_language_trampoline): Adjust.
4120 (local_language_defn): Delete.
4121 (language_gdbarch_post_init): Adjust.
4122 (_initialize_language): Remove add_language calls. Call
4123 add_set_language_command.
4124 * language.h (add_language): Delete.
4125 (auto_language_defn)
4126 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4127 (asm_language_defn, c_language_defn, cplus_language_defn)
4128 (d_language_defn, f_language_defn, go_language_defn)
4129 (m2_language_defn, objc_language_defn, opencl_language_defn)
4130 (pascal_language_defn, rust_language_defn): Declare.
4131 * m2-lang.c (m2_language_defn): Make extern.
4132 (_initialize_m2_language): Remove add_language call.
4133 * objc-lang.c (objc_language_defn): Make extern.
4134 (_initialize_objc_language): Remove add_language call.
4135 * opencl-lang.c (opencl_language_defn): Make extern.
4136 (_initialize_opencl_language): Remove add_language call.
4137 * p-lang.c (pascal_language_defn): Make extern.
4138 (_initialize_pascal_language): Delete.
4139 * rust-lang.c (rust_language_defn): Make extern.
4140 (_initialize_rust_language): Delete.
4141 * utils.h (compare_cstrings): New static inline function.
4142
4143 2017-07-20 Pedro Alves <palves@redhat.com>
4144
4145 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4146 (get_var_value): Constify parameters.
4147 (get_int_var_value): Change prototype.
4148 (to_fixed_range_type): Adjust.
4149 * ada-lang.h (get_int_var_value): Change prototype.
4150
4151 2017-07-20 Pedro Alves <palves@redhat.com>
4152
4153 * dwarf2read.c (dw2_lookup_symbol): Use
4154 SYMBOL_MATCHES_SEARCH_NAME.
4155 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4156
4157 2017-07-20 Pedro Alves <palves@redhat.com>
4158
4159 * block.c (block_iter_name_step, block_iter_name_first)
4160 (block_iter_name_next): Delete.
4161 (block_lookup_symbol_primary): Adjust to use
4162 dict_iter_match_first/dict_iter_match_next.
4163 * block.h (block_iter_name_first, block_iter_name_next): Delete
4164 declarations.
4165 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4166 dict_iter_match_first/dict_iter_match_next.
4167
4168 2017-07-20 Pedro Alves <palves@redhat.com>
4169
4170 * cp-support.c (cp_find_first_component_aux): Add missing case for
4171 end of string.
4172
4173 2017-07-18 David Blaikie <dblaikie@gmail.com>
4174
4175 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4176 of dwo_cu's dwo_file.
4177
4178 2017-07-18 Yao Qi <yao.qi@linaro.org>
4179
4180 * remote.c (store_registers_using_G): Remove one line comment.
4181
4182 2017-07-18 Yao Qi <yao.qi@linaro.org>
4183
4184 * regcache.c (regcache_cpy): Simplify it.
4185 (regcache::cpy_no_passthrough): Remove it.
4186 * regcache.h (cpy_no_passthrough): Remove it.
4187 (regcache_dup, regcache_cpy): Update comments.
4188
4189 2017-07-18 Pedro Alves <palves@redhat.com>
4190
4191 * remote-sim.c (sim_command_completer): Adjust to work with a
4192 completion_tracker instead of a VEC.
4193
4194 2017-07-17 Pedro Alves <palves@redhat.com>
4195
4196 * completer.c (complete_source_filenames): New function.
4197 (complete_address_and_linespec_locations): New function.
4198 (location_completer): Use complete_address_and_linespec_locations.
4199 (completion_tracker::build_completion_result): Honor the tracker's
4200 request to suppress append.
4201 * completer.h (completion_tracker::suppress_append_ws)
4202 (completion_tracker::set_suppress_append_ws): New methods.
4203 (completion_tracker::m_suppress_append_ws): New field.
4204 (complete_source_filenames): New declaration.
4205 * linespec.c (linespec_complete_what): New.
4206 (struct ls_parser) <complete_what, completion_word,
4207 completion_quote_char, completion_quote_end, completion_tracker>:
4208 New fields.
4209 (string_find_incomplete_keyword_at_end): New.
4210 (linespec_lexer_lex_string): Record quote char. If in completion
4211 mode, don't throw.
4212 (linespec_lexer_consume_token): Advance the completion word point.
4213 (linespec_lexer_peek_token): Save/restore completion info.
4214 (save_stream_and_consume_token): New.
4215 (set_completion_after_number): New.
4216 (linespec_parse_basic): Set what to complete next depending on
4217 token. Handle function and label completions specially.
4218 (parse_linespec): Disable objc shortcut in completion mode. Set
4219 what to complete next depending on token type. Skip keyword if in
4220 completion mode.
4221 (complete_linespec_component, linespec_complete): New.
4222 * linespec.h (linespec_complete): Declare.
4223
4224 2017-07-17 Pedro Alves <palves@redhat.com>
4225
4226 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4227 Handle 'operator<' / 'operator<<'.
4228
4229 2017-07-17 Pedro Alves <palves@redhat.com>
4230
4231 * completer.c (collect_explicit_location_matches): Handle
4232 MATCH_LABEL.
4233 (convert_explicit_location_to_linespec): New, factored out from
4234 ...
4235 (convert_explicit_location_to_sals): ... this.
4236 (complete_label): New.
4237 (linespec_complete_label, find_label_symbols_in_block): New.
4238 (find_label_symbols): Add completion_mode parameter and adjust to
4239 call find_label_symbols_in_block.
4240 * linespec.h (linespec_complete_label): Declare.
4241
4242 2017-07-17 Pedro Alves <palves@redhat.com>
4243
4244 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4245 complete_symbol_mode parameter.
4246 * cli/cli-cmds.c (complete_command): Get the completion result out
4247 of the handle_brkchars tracker if used a custom word point.
4248 * completer.c: Include "linespec.h".
4249 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4250 (advance_to_expression_complete_word_point): New.
4251 (completion_tracker::completes_to_completion_word): New.
4252 (complete_files_symbols): Pass down
4253 complete_symbol_mode::EXPRESSION.
4254 (explicit_options, probe_options): New.
4255 (collect_explicit_location_matches): Complete on the
4256 explictit_loc->foo instead of word. Use
4257 linespec_complete_function. Handle MATCH_LINE. Handle offering
4258 keyword and options completions.
4259 (backup_text_ptr): Delete.
4260 (skip_keyword): New.
4261 (complete_explicit_location): Remove 'word' parameter. Add
4262 language, quoted_arg_start and quoted_arg_end parameters.
4263 Rewrite, parsing left to right.
4264 (location_completer): Rewrite.
4265 (location_completer_handle_brkchars): New function.
4266 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4267 (enum complete_line_internal_reason): Adjust comments.
4268 (completion_tracker::discard_completions): New.
4269 (completer_handle_brkchars_func_for_completer): Handle
4270 location_completer.
4271 (gdb_custom_word_point_brkchars)
4272 (gdb_org_rl_basic_quote_characters): New.
4273 (gdb_completion_word_break_characters_throw)
4274 (completion_find_completion_word): Handle trackers that use a
4275 custom word point.
4276 (completion_tracker::advance_custom_word_point_by): New.
4277 (completion_tracker::build_completion_result): Don't rely on
4278 readline appending the quote char.
4279 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4280 use a custom word point.
4281 (gdb_rl_attempted_completion_function): Restore
4282 rl_basic_quote_characters.
4283 * completer.h (class completion_tracker): Extend intro comment.
4284 (completion_tracker::set_quote_char)
4285 (completion_tracker::quote_char)
4286 (completion_tracker::set_use_custom_word_point)
4287 (completion_tracker::use_custom_word_point)
4288 (completion_tracker::custom_word_point)
4289 (completion_tracker::set_custom_word_point)
4290 (completion_tracker::advance_custom_word_point_by)
4291 (completion_tracker::completes_to_completion_word)
4292 (completion_tracker::discard_completions): New methods.
4293 (completion_tracker::m_quote_char)
4294 (completion_tracker::m_use_custom_word_point)
4295 (completion_tracker::m_custom_word_point): New fields.
4296 (advance_to_expression_complete_word_point): Declare.
4297 * f-lang.c (f_collect_symbol_completion_matches): Add
4298 complete_symbol_mode parameter.
4299 * language.h (struct language_defn)
4300 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4301 parameter.
4302 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4303 (linespec_complete_function): New function.
4304 (linespec_lexer_lex_keyword): Adjust.
4305 * linespec.h (linespec_keywords, linespec_complete_function): New
4306 declarations.
4307 * location.c (find_end_quote): New function.
4308 (explicit_location_lex_one): Add explicit_completion_info
4309 parameter. Save quoting info. Don't throw if being called for
4310 completion. Don't handle Ada operators here.
4311 (is_cp_operator, skip_op_false_positives, first_of)
4312 (explicit_location_lex_one_function): New function.
4313 (string_to_explicit_location): Replace 'dont_throw' parameter with
4314 an explicit_completion_info pointer parameter. Handle it. Don't
4315 use explicit_location_lex_one to lex function names. Use
4316 explicit_location_lex_one_function instead.
4317 * location.h (struct explicit_completion_info): New.
4318 (string_to_explicit_location): Replace 'dont_throw' parameter with
4319 an explicit_completion_info pointer parameter.
4320 * symtab.c (default_collect_symbol_completion_matches_break_on):
4321 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4322 (default_collect_symbol_completion_matches)
4323 (collect_symbol_completion_matches): Add complete_symbol_mode
4324 parameter.
4325 (collect_symbol_completion_matches_type): Pass down
4326 complete_symbol_mode::EXPRESSION.
4327 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4328 parameter. Handle LINESPEC mode.
4329 * symtab.h (complete_symbol_mode): New.
4330 (default_collect_symbol_completion_matches_break_on)
4331 (default_collect_symbol_completion_matches)
4332 (collect_symbol_completion_matches)
4333 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4334 parameter.
4335
4336 2017-07-17 Pedro Alves <palves@redhat.com>
4337
4338 * utils.c (enum class strncmp_iw_mode): New.
4339 (strcmp_iw): Rename to ...
4340 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4341 parameters. Handle them.
4342 (strncmp_iw): New.
4343 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4344 * utils.h (strncmp_iw): Declare.
4345 (strcmp_iw): Move describing comments here.
4346
4347 2017-07-17 Pedro Alves <palves@redhat.com>
4348
4349 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4350 CP_OPERATOR_STR.
4351 * c-typeprint.c (is_type_conversion_operator): Use
4352 CP_OPERATOR_STR.
4353 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4354 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4355 CP_OPERATOR_LEN.
4356 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4357 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4358 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4359 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4360 CP_OPERATOR_STR.
4361 * location.c: Include "cp-support.h".
4362 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4363 CP_OPERATOR_STR.
4364 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4365 CP_OPERATOR_LEN.
4366
4367 2017-07-17 Pedro Alves <palves@redhat.com>
4368
4369 * cli/cli-cmds.c (complete_command): Use a completion tracker
4370 along with completion_find_completion_word for handle_brkchars
4371 phase.
4372 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4373 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4374 (struct gdb_rl_completion_word_info): New.
4375 (gdb_rl_find_completion_word): New.
4376 (completion_find_completion_word): New.
4377 * completer.h (completion_find_completion_word): Declare.
4378
4379 2017-07-17 Pedro Alves <palves@redhat.com>
4380
4381 * ada-lang.c (symbol_completion_match): Adjust comments.
4382 (symbol_completion_add): Replace vector parameter with
4383 completion_tracker parameter. Use it.
4384 (ada_make_symbol_completion_list): Rename to...
4385 (ada_collect_symbol_completion_matches): ... this. Add
4386 completion_tracker parameter and use it.
4387 (ada_language_defn): Adjust.
4388 * break-catch-syscall.c (catch_syscall_completer): Adjust
4389 prototype and work with completion_tracker instead of VEC.
4390 * breakpoint.c (condition_completer): Adjust prototype and work
4391 with completion_tracker instead of VEC.
4392 * c-lang.c (c_language_defn, cplus_language_defn)
4393 (asm_language_defn, minimal_language_defn): Adjust to renames.
4394 * cli/cli-cmds.c (complete_command): Rework using
4395 completion_tracker. Catch exceptions when completing.
4396 * cli/cli-decode.c (integer_unlimited_completer)
4397 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4398 with completion_tracker instead of VEC.
4399 * command.h (struct completion_tracker): Forward declare.
4400 (completer_ftype, completer_handle_brkchars_ftype): Change
4401 types.
4402 (complete_on_cmdlist, complete_on_enum): Adjust.
4403 * completer.c: Include <algorithm>.
4404 (struct gdb_completer_state): New.
4405 (current_completion): New global.
4406 (readline_line_completion_function): Delete.
4407 (noop_completer, filename_completer)
4408 (filename_completer_handle_brkchars, complete_files_symbols)
4409 (linespec_location_completer): Adjust to work with a
4410 completion_tracker instead of a VEC.
4411 (string_or_empty): New.
4412 (collect_explicit_location_matches): Adjust to work with a
4413 completion_tracker instead of a VEC.
4414 (explicit_location_completer): Rename to ...
4415 (complete_explicit_location): ... this and adjust to work with a
4416 completion_tracker instead of a VEC.
4417 (location_completer): Adjust to work with a completion_tracker
4418 instead of a VEC.
4419 (add_struct_fields): Adjust to work with a completion_list instead
4420 of VEC.
4421 (expression_completer): Rename to ...
4422 (complete_expression): ... this and adjust to work with a
4423 completion_tracker instead of a VEC. Use complete_files_symbols.
4424 (expression_completer): Reimplement on top of complete_expression.
4425 (symbol_completer): Adjust to work with a completion_tracker
4426 instead of a VEC.
4427 (enum complete_line_internal_reason): Add describing comments.
4428 (complete_line_internal_normal_command): Adjust to work with a
4429 completion_tracker instead of a VEC.
4430 (complete_line_internal): Rename to ...
4431 (complete_line_internal_1): ... this and adjust to work with a
4432 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4433 handle_brkchars phase.
4434 (new_completion_tracker): Delete.
4435 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4436 complete_line_internal_1.
4437 (free_completion_tracker): Delete.
4438 (INITIAL_COMPLETION_HTAB_SIZE): New.
4439 (completion_tracker::completion_tracker)
4440 (completion_tracker::~completion_tracker): New.
4441 (maybe_add_completion): Delete.
4442 (completion_tracker::maybe_add_completion)
4443 (completion_tracker::add_completion)
4444 (completion_tracker::add_completions): New.
4445 (throw_max_completions_reached_error): Delete.
4446 (complete_line): Adjust to work with a completion_tracker instead
4447 of a VEC. Don't create a completion_tracker_t or check for max
4448 completions here.
4449 (command_completer, command_completer_handle_brkchars)
4450 (signal_completer, reg_or_group_completer_1)
4451 (reg_or_group_completer, default_completer_handle_brkchars):
4452 Adjust to work with a completion_tracker.
4453 (gdb_completion_word_break_characters_throw): New.
4454 (gdb_completion_word_break_characters): Reimplement.
4455 (line_completion_function): Delete.
4456 (completion_tracker::recompute_lowest_common_denominator)
4457 (expand_preserving_ws)
4458 (completion_tracker::build_completion_result)
4459 (completion_result::completion_result)
4460 (completion_result::completion_result)
4461 (completion_result::~completion_result)
4462 (completion_result::completion_result)
4463 (completion_result::release_match_list, compare_cstrings)
4464 (completion_result::sort_match_list)
4465 (completion_result::reset_match_list)
4466 (gdb_rl_attempted_completion_function_throw)
4467 (gdb_rl_attempted_completion_function): New.
4468 * completer.h (completion_list, struct completion_result)
4469 (class completion_tracker): New.
4470 (complete_line): Add completion_tracker parameter.
4471 (readline_line_completion_function): Delete.
4472 (gdb_rl_attempted_completion_function): New.
4473 (noop_completer, filename_completer, expression_completer)
4474 (location_completer, symbol_completer, command_completer)
4475 (signal_completer, reg_or_group_completer): Update prototypes.
4476 (completion_tracker_t, new_completion_tracker)
4477 (make_cleanup_free_completion_tracker): Delete.
4478 (enum maybe_add_completion_enum): Delete.
4479 (maybe_add_completion): Delete.
4480 (throw_max_completions_reached_error): Delete.
4481 * corefile.c (complete_set_gnutarget): Adjust to work with a
4482 completion_tracker instead of a VEC.
4483 * cp-abi.c (cp_abi_completer): Adjust to work with a
4484 completion_tracker instead of a VEC.
4485 * d-lang.c (d_language_defn): Adjust.
4486 * disasm.c (disassembler_options_completer): Adjust to work with a
4487 completion_tracker instead of a VEC.
4488 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4489 (f_collect_symbol_completion_matches): ... this. Adjust to work
4490 with a completion_tracker instead of a VEC.
4491 (f_language_defn): Adjust.
4492 * go-lang.c (go_language_defn): Adjust.
4493 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4494 Adjust to work with a completion_tracker instead of a VEC.
4495 * infrun.c (handle_completer): Likewise.
4496 * interps.c (interpreter_completer): Likewise.
4497 * interps.h (interpreter_completer): Likewise.
4498 * language.c (unknown_language_defn, auto_language_defn)
4499 (local_language_defn): Adjust.
4500 * language.h (language_defn::la_make_symbol_completion_list):
4501 Rename to ...
4502 (language_defn::la_collect_symbol_completion_matches): ... this
4503 and adjust to work with a completion_tracker instead of a VEC.
4504 * m2-lang.c (m2_language_defn): Adjust.
4505 * objc-lang.c (objc_language_defn): Adjust.
4506 * opencl-lang.c (opencl_language_defn): Adjust.
4507 * p-lang.c (pascal_language_defn): Adjust.
4508 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4509 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4510 with a completion_tracker.
4511 * rust-lang.c (rust_language_defn): Adjust.
4512 * symtab.c (free_completion_list, do_free_completion_list)
4513 (return_val, completion_tracker): Delete.
4514 (completion_list_add_name, completion_list_add_symbol)
4515 (completion_list_add_msymbol, completion_list_objc_symbol)
4516 (completion_list_add_fields, add_symtab_completions): Add
4517 completion_tracker parameter and use it.
4518 (default_make_symbol_completion_list_break_on_1): Rename to...
4519 (default_collect_symbol_completion_matches_break_on): ... this.
4520 Add completion_tracker parameter and use it instead of allocating
4521 a completion tracker here.
4522 (default_make_symbol_completion_list_break_on): Delete old
4523 implementation.
4524 (default_make_symbol_completion_list): Delete.
4525 (default_collect_symbol_completion_matches): New.
4526 (make_symbol_completion_list): Delete.
4527 (collect_symbol_completion_matches): New.
4528 (make_symbol_completion_type): Rename to ...
4529 (collect_symbol_completion_matches_type): ... this. Add
4530 completion_tracker parameter and use it instead of VEC.
4531 (make_file_symbol_completion_list_1): Rename to...
4532 (collect_file_symbol_completion_matches): ... this. Add
4533 completion_tracker parameter and use it instead of VEC.
4534 (make_file_symbol_completion_list): Delete.
4535 (add_filename_to_list): Use completion_list instead of a VEC.
4536 (add_partial_filename_data::list): Now a completion_list.
4537 (make_source_files_completion_list): Work with a completion_list
4538 instead of a VEC.
4539 * symtab.h: Include "completer.h".
4540 (default_make_symbol_completion_list_break_on)
4541 (default_make_symbol_completion_list, make_symbol_completion_list)
4542 (make_symbol_completion_type, make_file_symbol_completion_list)
4543 (make_source_files_completion_list): Delete.
4544 (default_collect_symbol_completion_matches_break_on)
4545 (default_collect_symbol_completion_matches)
4546 (collect_symbol_completion_matches)
4547 (collect_symbol_completion_matches_type)
4548 (collect_file_symbol_completion_matches)
4549 (make_source_files_completion_list): New.
4550 * top.c (init_main): Don't install a rl_completion_entry_function
4551 hook. Install a rl_attempted_completion_function hook instead.
4552 * tui/tui-layout.c (layout_completer): Adjust to work with a
4553 completion_tracker.
4554 * tui/tui-regs.c (tui_reggroup_completer):
4555 * tui/tui-win.c (window_name_completer, focus_completer)
4556 (winheight_completer): Adjust to work with a completion_tracker.
4557 * value.c: Include "completer.h".
4558 (complete_internalvar): Adjust to work with a completion_tracker.
4559 * value.h (complete_internalvar): Likewise.
4560
4561 2017-07-17 Pedro Alves <palves@redhat.com>
4562
4563 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4564 renames.
4565 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4566 comments to completer_ftype's declaration.
4567 <completer_handle_brkchars>: Change type to
4568 completer_handle_brkchars_ftype.
4569 * command.h (completer_ftype): Add describing comment and give
4570 names to parameters.
4571 (completer_ftype_void): Rename to ...
4572 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4573 (set_cmd_completer_handle_brkchars): Adjust.
4574 * completer.c (filename_completer_handle_brkchars): New function.
4575 (complete_line_internal_normal_command): New function, factored
4576 out from ...
4577 (complete_line_internal): ... here.
4578 (command_completer_handle_brkchars)
4579 (default_completer_handle_brkchars)
4580 (completer_handle_brkchars_func_for_completer): New functions.
4581 * completer.h (set_gdb_completion_word_break_characters): Delete
4582 declaration.
4583 (completer_handle_brkchars_func_for_completer): New declaration.
4584 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4585 completer_handle_brkchars_func_for_completer.
4586
4587 2017-07-17 Pedro Alves <palves@redhat.com>
4588
4589 * completer.c (symbol_completer): New function, based on
4590 make_symbol_completion_list_fn.
4591 * completer.h (symbol_completer): New declaration.
4592 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4593 * python/py-cmd.c (completers): Adjust.
4594 * symtab.c (make_symbol_completion_list_fn): Delete.
4595 * symtab.h (make_symbol_completion_list_fn): Delete.
4596 * cli/cli-decode.c (add_cmd): Adjust.
4597
4598 2017-07-17 Pedro Alves <palves@redhat.com>
4599
4600 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4601 * dwarf2read.c: Include "filename-seen-cache.h".
4602 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4603 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4604 * filename-seen-cache.c: New file.
4605 * filename-seen-cache.h: New file.
4606 * symtab.c: Include "filename-seen-cache.h".
4607 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4608 (create_filename_seen_cache, clear_filename_seen_cache)
4609 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4610 to filename-seen-cache.h/filename-seen-cache.c.
4611 (output_source_filename, sources_info)
4612 (maybe_add_partial_symtab_filename)
4613 (make_source_files_completion_list): Adjust to use
4614 filename_seen_cache.
4615
4616 2017-07-17 Pedro Alves <palves@redhat.com>
4617
4618 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4619 fields.
4620 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4621 dwarf2_debug_sections*)): New.
4622 (dwarf2_per_objfile::dwarf2_per_objfile(const
4623 dwarf2_per_objfile&)): Declare as deleted.
4624 (dwarf2_per_objfile::operator=): Declare as deleted.
4625 (dwarf2_per_objfile::dwarf2_per_objfile)
4626 (dwarf2_per_objfile::~dwarf2_per_objfile)
4627 (dwarf2_per_objfile::free_cached_comp_units): New.
4628 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4629 ctor. Call dwarf2_per_objfile's ctor manually.
4630 (dwarf2_locate_sections): Deleted/refactored as ...
4631 (dwarf2_per_objfile::locate_sections): ... this new method.
4632 (free_cached_comp_units): Defer to
4633 dwarf2_per_objfile::free_cached_comp_units.
4634 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4635
4636 2017-07-14 Tom Tromey <tom@tromey.com>
4637
4638 PR rust/21764:
4639 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4640 parameter.
4641 <UNOP_SIZEOF>: Split into separate case.
4642 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4643
4644 2017-07-14 Tom Tromey <tom@tromey.com>
4645
4646 PR rust/21763:
4647 * symtab.c (symbol_matches_domain): Add language_rust to special
4648 case.
4649 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4650 treat LOC_TYPEDEF symbols as variables.
4651
4652 2017-07-14 Pedro Alves <palves@redhat.com>
4653
4654 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4655 symtabs matching all symtabs with SRCFILE as file name instead of
4656 only considering the first hit, with lookup_symtab.
4657
4658 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4659
4660 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4661 operator_name parameters.
4662 (gen_expr): Update function call.
4663
4664 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4665
4666 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4667 parameter.
4668 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4669 Likewise.
4670 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4671 parameter, use agent_expr::gdbarch instead, update function
4672 calls.
4673 (locexpr_tracepoint_var_ref): Likewise.
4674 (loclist_tracepoint_var_ref): Likewise.
4675 * ax-gdb.c (gen_trace_static_fields): Likewise.
4676 (gen_traced_pop): Likewise.
4677 (gen_frame_args_address): Likewise.
4678 (gen_frame_locals_address): Likewise.
4679 (gen_var_ref): Likewise.
4680 (gen_struct_ref_recursive): Likewise.
4681 (gen_static_field): Likewise.
4682 (gen_maybe_namespace_elt): Likewise.
4683 (gen_expr): Likewise.
4684 (gen_trace_for_var): Likewise.
4685 (gen_trace_for_expr): Likewise.
4686 (gen_trace_for_return_address): Likewise.
4687
4688 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4689
4690 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4691 parameter.
4692 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4693
4694 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4695
4696 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4697 from ax, update calls.
4698 (gen_usual_arithmetic): Likewise.
4699 (gen_integral_promotions): Likewise.
4700 (gen_bitfield_ref): Likewise.
4701 (gen_primitive_field): Likewise.
4702 (gen_struct_ref_recursive): Likewise.
4703 (gen_struct_ref): Likewise.
4704 (gen_maybe_namespace_elt): Likewise.
4705 (gen_struct_elt_for_reference): Likewise.
4706 (gen_namespace_elt): Likewise.
4707 (gen_aggregate_elt_ref): Likewise.
4708 (gen_expr): Get gdbarch from ax, update calls.
4709 (gen_expr_binop_rest): Likewise.
4710
4711 2017-07-13 Pedro Alves <palves@redhat.com>
4712
4713 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4714 as default tdesc.
4715 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4716 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4717 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4718 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4719 tdep.
4720 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4721 Get final tdesc from the tdep.
4722 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4723 default tdesc.
4724 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4725 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4726 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4727 Use it as default tdesc.
4728 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4729 down to amd_init_abi. No longer handle fallback tdesc here.
4730 * amd64-tdep.h (tdesc_x32): Declare.
4731 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4732 parameter.
4733 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4734 as default tdesc.
4735
4736 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4737
4738 * s390-linux-tdep.c (s390_process_record): Add support for
4739 instructions new in arch12.
4740
4741 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4742
4743 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4744 PT_GETFSBASE and PT_GETGSBASE.
4745 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4746 PT_SETGSBASE.
4747
4748 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4749
4750 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4751 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4752 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4753 those rules.
4754 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4755 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4756 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4757 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4758 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4759 * features/i386/amd64.xml: Add 64bit-segments.xml.
4760 * features/i386/amd64-avx-avx512.c: Regenerated.
4761 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4762 * features/i386/amd64-avx-mpx.c: Regenerated.
4763 * features/i386/amd64-avx.c: Regenerated.
4764 * features/i386/amd64-mpx.c: Regenerated.
4765 * features/i386/amd64.c: Regenerated.
4766 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4767 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4768 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4769 * regformats/i386/amd64-avx.dat: Regenerated.
4770 * regformats/i386/amd64-mpx.dat: Regenerated.
4771 * regformats/i386/amd64.dat: Regenerated.
4772
4773 2017-07-10 Yao Qi <yao.qi@linaro.org>
4774
4775 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4776 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4777
4778 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4779
4780 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4781 unsetenv.
4782 * gnulib/aclocal.m4: Regenerate.
4783 * gnulib/config.in: Regenerate.
4784 * gnulib/configure: Regenerate.
4785 * gnulib/import/Makefile.am: Regenerate.
4786 * gnulib/import/Makefile.in: Regenerate.
4787 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4788 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4789 * gnulib/import/m4/environ.m4: New file.
4790 * gnulib/import/m4/setenv.m4: New file.
4791 * gnulib/import/setenv.c: New file.
4792 * gnulib/import/unsetenv.c: New file.
4793
4794 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4795
4796 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4797 address when op is DW_OP_addr.
4798
4799 2017-07-09 Tom Tromey <tom@tromey.com>
4800
4801 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4802 check and apply to outer type.
4803
4804 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4805
4806 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4807 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4808 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4809 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4810
4811 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4812
4813 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4814
4815 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4816
4817 * corelow.c (get_core_siginfo): Remove.
4818 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4819 instead of get_core_siginfo.
4820 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4821 * gdbarch.h: Re-generate.
4822 * gdbarch.c: Re-generate.
4823 * linux-tdep.c (linux_core_xfer_siginfo): New.
4824 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4825
4826 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4827
4828 * corelow.c (thread_section_name): Move to ...
4829 * gdbcore.h (thread_section_name): ... here.
4830
4831 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4832
4833 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4834 (struct siginfo32): New.
4835 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4836 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4837 via ptrace(PT_LWPINFO).
4838
4839 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4840
4841 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4842 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4843 (fbsd_get_siginfo_type): New.
4844 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4845 (_initialize_fbsd_tdep): New.
4846
4847 2017-07-06 David Blaikie <dblaikie@gmail.com>
4848
4849 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4850 a singular dwo_unit*) to support multiple CUs in the same way that
4851 multiple TUs are supported.
4852 (create_cus_hash_table): Replace create_dwo_cu with a function for
4853 parsing multiple CUs from a DWO file.
4854 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4855 create_dwo_cu.
4856 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4857 htab_find, rather than comparing the signature to a singleton CU in
4858 the dwo_file.
4859
4860 2017-07-06 Pedro Alves <palves@redhat.com>
4861
4862 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4863
4864 2017-07-04 Pedro Alves <palves@redhat.com>
4865
4866 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4867 * gdbtypes.h (TYPE_STATIC): Delete.
4868 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4869 is_synchronized, is_native>: Delete.
4870 <dummy>: Bump.
4871 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4872 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4873 (TYPE_FN_FIELD_ABSTRACT): Delete.
4874
4875 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4876
4877 * buffer.h (buffer_finish): Fix spelling mistakes.
4878
4879 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4880
4881 * .dir-locals.el: Automatically switch to C-style comments in
4882 versions of Emacs that support the feature.
4883
4884 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4885 Pedro Alves <palves@redhat.com>
4886
4887 PR cli/21688
4888 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4889 (process_next_line): New variable 'inline_cmd'.
4890 Adjust 'if' clauses for "python", "compile" and "guile" to use
4891 'command_name_equals' and check for '!inline_cmd'.
4892
4893 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4894
4895 PR cli/21688
4896 * cli/cli-script.c (command_name_equals_not_inline): New function.
4897 (process_next_line): Adjust 'if' clauses for "python", "compile"
4898 and "guile" to use command_name_equals_not_inline.
4899
4900 2017-06-29 Pedro Alves <palves@redhat.com>
4901
4902 * completer.c (expression_completer): Call
4903 linespec_location_completer instead of location_completer.
4904
4905 2017-06-29 Pedro Alves <palves@redhat.com>
4906
4907 * completer.c (expression_completer): Remove code that recomputes
4908 'text' from 'word'.
4909
4910 2017-06-29 Yao Qi <yao.qi@linaro.org>
4911
4912 * regformats/regdat.sh: Generate code with
4913 "ifndef IN_PROCESS_AGENT".
4914
4915 2017-06-28 Pedro Alves <palves@redhat.com>
4916
4917 * command.h: Include "common/scoped_restore.h".
4918
4919 2017-06-28 Yao Qi <yao.qi@linaro.org>
4920
4921 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4922 instead of obstack_grow.
4923
4924 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4925
4926 PR gdb/21337
4927 * symfile.c (reread_symbols): Call objfiles_changed just before
4928 read_symbols.
4929
4930 2017-06-27 Pedro Alves <palves@redhat.com>
4931
4932 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4933 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4934 (completion_list_add_symbol, completion_list_add_msymbol):
4935 ... these new functions.
4936 (add_symtab_completions)
4937 (default_make_symbol_completion_list_break_on_1): Adjust.
4938
4939 2017-06-27 Pedro Alves <palves@redhat.com>
4940
4941 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4942 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4943 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4944 dtor.
4945 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4946 'storage_obstack' field an auto_obstack. In-class initialize all
4947 non-bitfield fields. Make minsyms_read bool.
4948 * symfile.c (read_symbols): Adjust.
4949
4950 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4951
4952 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4953 (gdbsim_store_register): Likewise.
4954
4955 2017-06-27 Pedro Alves <palves@redhat.com>
4956
4957 * c-exp.y (name_obstack): Now an auto_obstack.
4958 (yylex): Use auto_obstack::clear.
4959 (c_parse): Use auto_obstack::clear instead of reinitializing and
4960 freeing the obstack.
4961 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4962 * d-exp.y (name_obstack): Now an auto_obstack.
4963 (yylex): Use auto_obstack::clear.
4964 (d_parse): Use auto_obstack::clear instead of reinitializing and
4965 freeing the obstack.
4966 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4967 auto_obstack.
4968 * dwarf2read.c (create_addrmap_from_index)
4969 (dwarf2_build_psymtabs_hard)
4970 (update_enumeration_type_from_children): Likewise.
4971 * gdb_obstack.h (auto_obstack): New type.
4972 * go-exp.y (name_obstack): Now an auto_obstack.
4973 (build_packaged_name): Use auto_obstack::clear.
4974 (go_parse): Use auto_obstack::clear instead of reinitializing and
4975 freeing the obstack.
4976 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4977 auto_obstack.
4978 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4979 * rust-exp.y (work_obstack): Now an auto_obstack.
4980 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4981 reinitializing and freeing the obstack.
4982 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4983 (host_char_to_target): Use auto_obstack.
4984 * utils.h (make_cleanup_obstack_free): Delete declaration.
4985 * valprint.c (generic_emit_char, generic_printstr): Use
4986 auto_obstack.
4987
4988 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4989
4990 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4991 thread.
4992 (darwin_init_thread_list): Don't update dummy thread.
4993 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4994
4995 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4996
4997 * record-full.c (netorder16): Remove.
4998
4999 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5000
5001 * common/diagnostics.h: Define macros for GCC.
5002 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5003 * common/vec.h: Include diagnostics.h.
5004 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5005 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5006 warning.
5007
5008 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5009
5010 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5011 New macro.
5012 * ada-lex.l: Ignore deprecated register warnings.
5013
5014 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5015
5016 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5017 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5018
5019 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5020
5021 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5022 its own line.
5023
5024 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5025
5026 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5027
5028 2017-06-23 Alan Hayward <alan.hayward@arm.com>
5029
5030 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5031 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5032 (xtensa_register_read_masked): Likewise.
5033
5034 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5035
5036 * common/environ.c (gdb_environ::unset): Update comment.
5037
5038 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5039
5040 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5041 registers.
5042
5043 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5044
5045 * record-full.c (record_full_exec_insn): Use byte_vector.
5046
5047 2017-06-22 Yao Qi <yao.qi@linaro.org>
5048
5049 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5050 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5051
5052 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5053
5054 * remote.c (cached_reg): Move from here...
5055 * regcache.h (cached_reg): ...to here.
5056 * python/py-unwind.c (struct reg_info): Remove.
5057 (cached_frame_info): Use cached_reg_t.
5058 (pyuw_prev_register): Likewise.
5059 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5060 (pyuw_dealloc_cache): Free all registers.
5061
5062 2017-06-22 Pedro Alves <palves@redhat.com>
5063 Simon Marchi <simon.marchi@ericsson.com>
5064
5065 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5066 warning.
5067 * common/diagnostics.h: New file.
5068
5069 2017-06-22 Pedro Alves <palves@redhat.com>
5070
5071 * common/agent.h: Add include guards.
5072
5073 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5074
5075 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5076 talk about addressable units instead of bytes.
5077
5078 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5079
5080 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5081 of '::const_iterator'.
5082
5083 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5084
5085 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5086 'unittests/environ-selftests.c'.
5087 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5088 * charset.c (find_charset_names): Declare object 'iconv_env'.
5089 Update code to use 'iconv_env' object. Remove call to
5090 'free_environ'.
5091 * common/environ.c: Include <utility>.
5092 (make_environ): Delete function.
5093 (free_environ): Delete function.
5094 (gdb_environ::clear): New function.
5095 (gdb_environ::operator=): New function.
5096 (gdb_environ::get): Likewise.
5097 (environ_vector): Delete function.
5098 (set_in_environ): Delete function.
5099 (gdb_environ::set): New function.
5100 (unset_in_environ): Delete function.
5101 (gdb_environ::unset): New function.
5102 (gdb_environ::envp): Likewise.
5103 * common/environ.h: Include <vector>.
5104 (struct gdb_environ): Delete; transform into...
5105 (class gdb_environ): ... this class.
5106 (free_environ): Delete prototype.
5107 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5108 environ_vector): Likewise.
5109 * infcmd.c (run_command_1): Update code to call
5110 'envp' from 'gdb_environ' class.
5111 (environment_info): Update code to call methods from 'gdb_environ'
5112 class.
5113 (unset_environment_command): Likewise.
5114 (path_info): Likewise.
5115 (path_command): Likewise.
5116 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5117 (inferior::inferior): Initialize 'environment' using the host's
5118 information.
5119 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5120 Include "environ.h".
5121 (class inferior) <environment>: Change type from 'struct
5122 gdb_environ' to 'gdb_environ'.
5123 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5124 methods from 'gdb_environ' class.
5125 * solib.c (solib_find_1): Likewise
5126 * unittests/environ-selftests.c: New file.
5127
5128 2017-06-20 Yao Qi <yao.qi@linaro.org>
5129
5130 * features/i386/i386-linux.xml: Exchange the order of including
5131 32bit-linux.xml and 32bit-sse.xml.
5132 * features/i386/i386-linux.c: Regenerated.
5133
5134 2017-06-20 Yao Qi <yao.qi@linaro.org>
5135
5136 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5137 Delete copy ctor and assignment operator.
5138 (tdesc_type): Likewise.
5139 (tdesc_feature): Likewise.
5140 (tdesc_free_reg): Remove.
5141 (tdesc_create_reg): Use new.
5142 (tdesc_free_type): Remove.
5143 (tdesc_create_vector): Use new.
5144 (tdesc_create_union): Likewise.
5145 (tdesc_create_flags): Likewise.
5146 (tdesc_create_enum): Likewise.
5147 (tdesc_free_feature): Delete.
5148 (free_target_description): Use delete.
5149
5150 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5151
5152 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5153 registers.
5154
5155 2017-06-19 Pedro Alves <palves@redhat.com>
5156
5157 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5158 after gdb::unlinker.
5159
5160 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5161
5162 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5163 gdb_environ to access an environment variable.
5164
5165 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5166
5167 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5168 gdb_byte*.
5169
5170 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5171
5172 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5173
5174 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5175
5176 * configure: Re-generate.
5177 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5178
5179 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 * configure: Re-generate.
5182 * warning.m4: Pass -Werror to compiler when checking for
5183 supported warning flags.
5184
5185 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5186
5187 * Makefile.in (COMPILE.pre): Add "-x c++".
5188
5189 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5190 Pedro Alves <palves@redhat.com>
5191 Yao Qi <yao.qi@linaro.org>
5192
5193 * defs.h (RequireLongest): New.
5194 (extract_integer): Declare function template.
5195 (extract_signed_integer): Remove the declaration, but define it
5196 static inline.
5197 (extract_unsigned_integer): Likewise.
5198 (store_integer): Declare function template.
5199 (store_signed_integer): Remove the declaration, but define it
5200 static inline.
5201 (store_unsigned_integer): Likewise.
5202 * findvar.c (extract_integer): New function template.
5203 (extract_signed_integer): Remove.
5204 (extract_unsigned_integer): Remove.
5205 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5206 instantiations.
5207 (store_integer): New function template.
5208 (store_signed_integer): Remove.
5209 (store_unsigned_integer): Remove.
5210 (store_integer): Explicit instantiations.
5211 * regcache.c (regcache_raw_read_signed): Update.
5212 (regcache::raw_read): New function.
5213 (regcache::raw_read_signed): Remove.
5214 (regcache::raw_read_unsigned): Remove.
5215 (regcache_raw_read_unsigned): Update.
5216 (regcache_raw_write_unsigned): Update.
5217 (regcache::raw_write_signed): Remove.
5218 (regcache::raw_write): New function.
5219 (regcache_cooked_read_signed): Update.
5220 (regcache::raw_write_unsigned): Remove.
5221 (regcache::cooked_read_signed): Remove.
5222 (regcache_cooked_read_unsigned): Update.
5223 (regcache::cooked_read_unsigned): Remove.
5224 (regcache_cooked_write_signed): Update.
5225 (regcache_cooked_write_unsigned): Update.
5226 * regcache.h (regcache) <raw_read_signed>: Remove.
5227 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5228 <raw_read, raw_write>: New.
5229 <cooked_read_signed, cooked_write_signed>: Remove.
5230 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5231 <cooked_read, cooked_write>: New.
5232 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5233 (sh64_pseudo_register_write): Update.
5234
5235 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5236
5237 * arc-tdep.c (arc_disassembler_options): New variable.
5238 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5239 of default_print_insn.
5240 (arc_delayed_print_insn): Set info->section when needed,
5241 use default_print_insn to retrieve a disassembler.
5242
5243 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5244
5245 PR gdb/21574
5246 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5247 to mention $SHELL and startup-with-shell.
5248
5249 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5250
5251 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5252
5253 2017-06-14 Yao Qi <yao.qi@linaro.org>
5254
5255 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5256 default_print_insn instead of print_insn_aarch64.
5257 * arm-tdep.c (gdb_print_insn_arm): Call
5258 default_print_insn instead of print_insn_big_arm
5259 and print_insn_little_arm.
5260 * i386-tdep.c (i386_print_insn): Call default_print_insn
5261 instead of print_insn_i386.
5262 * ia64-tdep.c (ia64_print_insn): Call
5263 default_print_insn instead of print_insn_ia64.
5264 * mips-tdep.c (gdb_print_insn_mips): Call
5265 default_print_insn instead of print_insn_big_mips
5266 and print_insn_little_mips.
5267 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5268 instead of print_insn_spu.
5269
5270 2017-06-14 Pedro Alves <palves@redhat.com>
5271
5272 * ada-lang.c: Include "common/byte-vector.h".
5273 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5274 * charset.c (wchar_iterator::iterate): Resize the vector instead
5275 of reserving it.
5276 * common/byte-vector.h: Include "common/def-vector.h".
5277 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5278 * cli/cli-dump.c: Include "common/byte-vector.h".
5279 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5280 * common/byte-vector.h: New file.
5281 * common/def-vector.h: New file.
5282 * common/default-init-alloc.h: New file.
5283 * dwarf2loc.c: Include "common/byte-vector.h".
5284 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5285 instead of reserving it.
5286 * dwarf2read.c: Include "common/byte-vector.h".
5287 (data_buf::m_vec): Now a gdb::byte_vector.
5288 * gdb_regex.c: Include "common/def-vector.h".
5289 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5290 * mi/mi-main.c: Include "common/byte-vector.h".
5291 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5292 * printcmd.c: Include "common/byte-vector.h".
5293 (print_scalar_formatted): Use gdb::byte_vector.
5294 * valprint.c: Include "common/byte-vector.h".
5295 (maybe_negate_by_bytes, print_decimal_chars): Use
5296 gdb::byte_vector.
5297
5298 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5299
5300 * darwin-nat.c: Include "nat/fork-inferior.h".
5301
5302 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5303
5304 * configure.nat: Factor out Darwin bits that are not
5305 architecture-specific. Add fork-inferior.o.
5306
5307 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5308
5309 * configure.nat: Factor out AIX bits that are not
5310 architecture-specific. Add fork-inferior.o.
5311
5312 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5313
5314 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5315 (read_pieced_value, write_pieced_value): ...here. Reduce to
5316 wrappers that just call rw_pieced_value.
5317
5318 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5319
5320 * dwarf2loc.c (write_pieced_value): When writing the data for a
5321 memory piece, use write_memory_with_notification instead of
5322 write_memory.
5323
5324 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5325
5326 * valops.c (read_value_memory): Change embedded_offset to
5327 represent a bit offset instead of a byte offset.
5328 * value.h (read_value_memory): Adjust comment.
5329
5330 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5331
5332 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5333 dest_offset_bits and source_offset_bits.
5334 (write_pieced_value): Likewise.
5335
5336 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5337
5338 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5339 given by DW_OP_bit_piece.
5340 (write_pieced_value): Likewise.
5341
5342 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5343
5344 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5345 some other preparations to the places where sufficient information
5346 is available.
5347 (write_pieced_value): Likewise.
5348
5349 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5350
5351 * dwarf2loc.c (bits_to_bytes): New function.
5352 (read_pieced_value): Fix offset calculations for register pieces
5353 on big-endian targets.
5354 (write_pieced_value): Likewise.
5355
5356 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5357
5358 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5359 (write_pieced_value): Likewise.
5360
5361 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5362
5363 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5364 transfer the source value's least significant bits, instead of its
5365 lowest-addressed ones. Rename type_len to max_offset.
5366 (read_pieced_value): Mirror above changes to write_pieced_value as
5367 applicable.
5368
5369 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5370
5371 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5372 truncate full bytes from dest_offset_bits before using it as an
5373 offset into the buffer.
5374
5375 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5376
5377 * dwarf2loc.c (write_pieced_value): Include transfer size in
5378 byte-wise check.
5379
5380 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5381
5382 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5383 calculation of this_size.
5384
5385 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5386
5387 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5388 when targeting a bit-field.
5389 (write_pieced_value): Likewise.
5390
5391 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5392
5393 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5394 (allocate_piece_closure): Drop addr_size parameter.
5395 (dwarf2_evaluate_loc_desc_full): Adjust call to
5396 allocate_piece_closure.
5397
5398 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5399
5400 PR gdb/21226
5401 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5402 the LSB end, independent of endianness.
5403
5404 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5405
5406 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5407 size capping.
5408
5409 2017-06-13 Yao Qi <yao.qi@linaro.org>
5410
5411 * mips-linux-nat.c: Move include features/mips*-linux.c to
5412 mips-linux-tdep.c.
5413 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5414 to mips-linux-tdep.c.
5415 * mips-linux-tdep.c: Include features/mips*-linux.c
5416 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5417 functions.
5418 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5419 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5420 (tdesc_mips64_dsp_linux): Declare.
5421
5422 2017-06-12 Tom Tromey <tom@tromey.com>
5423
5424 * valprint.h (val_print_type_code_int): Remove.
5425 * valprint.c (generic_val_print_int): Always call
5426 val_print_scalar_formatted.
5427 (val_print_type_code_int): Remove.
5428 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5429 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5430 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5431 * ada-valprint.c (ada_val_print_num): Use
5432 val_print_scalar_formatted.
5433
5434 2017-06-12 Tom Tromey <tom@tromey.com>
5435
5436 * printcmd.c (print_scalar_formatted): Unify the two switches.
5437 Don't convert scalars to LONGEST.
5438
5439 2017-06-12 Tom Tromey <tom@tromey.com>
5440
5441 PR exp/16225:
5442 * valprint.h (print_decimal_chars): Update.
5443 * valprint.c (maybe_negate_by_bytes): New function.
5444 (print_decimal_chars): Add "is_signed" argument.
5445 * printcmd.c (print_scalar_formatted): Update.
5446
5447 2017-06-12 Tom Tromey <tom@tromey.com>
5448
5449 PR exp/16225:
5450 * valprint.h (print_binary_chars, print_hex_chars): Update.
5451 * valprint.c (val_print_type_code_int): Update.
5452 (print_binary_chars): Add "zero_pad" argument.
5453 (emit_octal_digit): New function.
5454 (print_octal_chars): Don't zero-pad.
5455 (print_decimal_chars): Likewise.
5456 (print_hex_chars): Add "zero_pad" argument.
5457 * sh64-tdep.c (sh64_do_fp_register): Update.
5458 * regcache.c (regcache::dump): Update.
5459 * printcmd.c (print_scalar_formatted): Update.
5460 * infcmd.c (default_print_one_register_info): Update.
5461
5462 2017-06-12 Pedro Alves <palves@redhat.com>
5463 Alan Hayward <alan.hayward@arm.com>
5464
5465 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5466 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5467 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5468 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5469 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5470
5471 2017-06-12 Pedro Alves <palves@redhat.com>
5472
5473 * dwarf2read.c (mapped_symtab::data): Now a vector of
5474 symtab_index_entry instead of vector of
5475 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5476 whether an element's name is NULL instead of checking whether the
5477 element itself is NULL.
5478 (find_slot): Change return type. Adjust.
5479 (hash_expand, , add_index_entry, uniquify_cu_indices)
5480 (write_hash_table): Adjust.
5481
5482 2017-06-12 Pedro Alves <palves@redhat.com>
5483
5484 * dwarf2read.c (recursively_count_psymbols): New function.
5485 (write_psymtabs_to_index): Call it to compute number of psyms and
5486 pass estimate size of psyms_seen to unordered_set's ctor.
5487
5488 2017-06-12 Pedro Alves <palves@redhat.com>
5489
5490 * dwarf2read.c (write_hash_table): Check if key already exists
5491 before emplacing.
5492
5493 2017-06-12 Pedro Alves <palves@redhat.com>
5494
5495 * dwarf2read.c (data_buf::append_space): Rename to...
5496 (data_buf::grow): ... this, and make private. Adjust all callers.
5497 (data_buf::append_uint): New method.
5498 (add_address_entry, write_one_signatured_type)
5499 (write_psymtabs_to_index): Use it.
5500
5501 2017-06-12 Pedro Alves <palves@redhat.com>
5502
5503 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5504 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5505 (data_buf::file_write): Call ::fwrite directly.
5506
5507 2017-06-12 Pedro Alves <palves@redhat.com>
5508
5509 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5510 std::vector::erase.
5511
5512 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5513
5514 Code cleanup: C++ify .gdb_index producer.
5515 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5516 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5517 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5518 (create_strtab, add_string): Remove.
5519 (file_write, data_buf): New.
5520 (struct symtab_index_entry): Use std::vector for cu_indices.
5521 (struct mapped_symtab): Use std::vector for data.
5522 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5523 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5524 Remove.
5525 (find_slot): Change return type. Update it to the new data structures.
5526 (hash_expand, add_index_entry): Update it to the new data structures.
5527 (offset_type_compare): Remove.
5528 (uniquify_cu_indices): Update it to the new data structures.
5529 (c_str_view, c_str_view_hasher, vector_hasher): New.
5530 (add_indices_to_cpool): Remove.
5531 (write_hash_table): Update it to the new data structures.
5532 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5533 (eq_psymtab_cu_index): Remove.
5534 (psym_index_map): New typedef.
5535 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5536 reference and std::unordered_map for cu_index_htab.
5537 (add_address_entry, add_address_entry_worker, write_address_map)
5538 (write_psymbols): Update it to the new data structures.
5539 (write_obstack): Remove.
5540 (struct signatured_type_index_data): Change types_list to a data_buf
5541 reference and psyms_seen to a std::unordered_set reference.
5542 (write_one_signatured_type, recursively_write_psymbols)
5543 (write_psymtabs_to_index): Update it to the new data structures.
5544
5545 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5546
5547 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5548 separate-debug-file commands.
5549 * symfile.h (separate_debug_file_debug): New global.
5550 * symfile.c (separate_debug_file_debug): New global.
5551 (separate_debug_file_exists, find_separate_debug_file): Add
5552 debug output.
5553 (_initialize_symfile): Add "set debug separate-debug-file"
5554 command.
5555 * build-id.c (build_id_to_debug_bfd,
5556 find_separate_debug_file_by_buildid): Add debug output.
5557
5558 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * gdbarch.sh (displaced_step_free_closure): Remove.
5561 * gdbarch.h, gdbarch.c: Re-generate.
5562 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5563 displaced_step_free_closure.
5564 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5565 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5566 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5567 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5568 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5569 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5570 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5571 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5572 * infrun.c (displaced_step_clear): Call xfree instead of
5573 gdbarch_displaced_step_free_closure.
5574
5575 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5576
5577 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5578 NULL".
5579
5580 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5581
5582 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5583 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5584 (mn10300_push_dummy_call): Likewise.
5585
5586 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5587
5588 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5589
5590 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5591
5592 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5593
5594 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5595
5596 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5597 able to start inferiors using a shell.
5598 (New remote packets): Announce new packet "QStartupWithShell".
5599 * remote.c: Add PACKET_QStartupWithShell.
5600 (extended_remote_create_inferior): Handle new
5601 PACKET_QStartupWithShell.
5602 (remote_protocol_features) <QStartupWithShell>: New entry for
5603 PACKET_QStartupWithShell.
5604 (_initialize_remote): Call "add_packet_config_cmd" for
5605 QStartupShell.
5606
5607 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5608 Pedro Alves <palves@redhat.com>
5609
5610 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5611 and "nat/fork-inferior.h".
5612 * common/common-inferior.h: New file, with contents from
5613 "gdb/inferior.h".
5614 * commom/common-utils.c: Include "common-utils.h".
5615 (stringify_argv): New function.
5616 * common/common-utils.h (stringify_argv): New prototype.
5617 * configure.nat: Add "fork-inferior.o" as a dependency for
5618 "*linux*", "fbsd*" and "nbsd*" hosts.
5619 * corefile.c (get_exec_file): Update comment.
5620 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5621 instead of "startup_inferior".
5622 (darwin_create_inferior): Call "add_thread_silent" after
5623 "fork_inferior".
5624 * fork-child.c: Cleanup unnecessary includes.
5625 (SHELL_FILE): Move to "common/common-fork-child.c".
5626 (environ): Likewise.
5627 (exec_wrapper): Initialize.
5628 (get_exec_wrapper): New function.
5629 (breakup_args): Move to "common/common-fork-child.c"; rename to
5630 "breakup_args_for_exec".
5631 (escape_bang_in_quoted_argument): Move to
5632 "common/common-fork-child.c".
5633 (saved_ui): New variable.
5634 (prefork_hook): New function.
5635 (postfork_hook): Likewise.
5636 (postfork_child_hook): Likewise.
5637 (gdb_startup_inferior): Likewise.
5638 (fork_inferior): Move to "common/common-fork-child.c". Update
5639 function to support gdbserver.
5640 (startup_inferior): Likewise.
5641 * gdbcore.h (get_exec_file): Remove declaration.
5642 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5643 instead of "startup_inferior". Call "add_thread_silent" after
5644 "fork_inferior".
5645 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5646 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5647 instead of "startup_inferior". Call "add_thread_silent" after
5648 "fork_inferior".
5649 * inferior.h: Include "common-inferior.h".
5650 (trace_start_error): Move to "common/common-utils.h".
5651 (trace_start_error_with_name): Likewise.
5652 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5653 (startup_inferior): Likewise.
5654 (gdb_startup_inferior): New prototype.
5655 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5656 * nat/fork-inferior.h: New file.
5657 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5658 instead of "startup_inferior". Call "add_thread_silent" after
5659 "fork_inferior".
5660 * target.h (target_terminal_init): Move prototype to
5661 "target/target.h".
5662 (target_terminal_inferior): Likewise.
5663 (target_terminal_ours): Likewise.
5664 * target/target.h (target_terminal_init): New prototype, moved
5665 from "target.h".
5666 (target_terminal_inferior): Likewise.
5667 (target_terminal_ours): Likewise.
5668 * utils.c (gdb_flush_out_err): New function.
5669
5670 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5671
5672 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5673 * common/common-gdbthread.h: New file, with parts from
5674 "gdb/gdbthread.h".
5675 * gdbthread.h: Include "common-gdbthread.h".
5676 (switch_to_thread): Moved to "common/common-gdbthread.h".
5677
5678 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5679
5680 * Makefile.in (SFILES): Add "common/job-control.c".
5681 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5682 (COMMON_OBS): Add "job-control.o".
5683 * common/job-control.c: New file, with contents from
5684 "gdb/inflow.c".
5685 * common/job-control.h: New file, with contents from "terminal.h".
5686 * fork-child.c: Include "job-control.h".
5687 * inflow.c: Include "job-control.h".
5688 (gdb_setpgid): Move to "common/common-inflow.c".
5689 (_initialize_inflow): Move setting of "job_control" to
5690 "handle_job_control".
5691 * terminal.h (job_control): Moved to "common/common-terminal.h".
5692 (gdb_setpgid): Likewise.
5693 * top.c: Include "job_control.h".
5694 * utils.c: Likewise.
5695 (job_control): Moved to "job-control.c".
5696
5697 2017-06-07 Pedro Alves <palves@redhat.com>
5698
5699 * Makefile.in (SFILES): Add gdb_regex.c.
5700 (COMMON_OBS): Add gdb_regex.o.
5701 * ada-lang.c (ada_add_standard_exceptions)
5702 (ada_add_exceptions_from_frame, name_matches_regex)
5703 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5704 parameter type to compiled_regex. Adjust.
5705 (ada_exceptions_list): Use compiled_regex.
5706 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5707 std::unique_ptr<compiled_regex>.
5708 (exception_catchpoint::~exception_catchpoint): Remove regfree
5709 call.
5710 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5711 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5712 * breakpoint.c (solib_catchpoint::compiled): Now a
5713 std::unique_ptr<compiled_regex>.
5714 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5715 (check_status_catch_solib): Adjust to use compiled_regex.
5716 (add_solib_catchpoint): Adjust to use compiled_regex.
5717 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5718 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5719 compiled_regex reference. Adjust to use it.
5720 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5721 declaration. Include "gdb_regex.h".
5722 (apropos_cmd): Change regex parameter to compiled_regex reference.
5723 * gdb_regex.c: New file.
5724 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5725 declarations.
5726 (class compiled_regex): New.
5727 * linux-tdep.c: Include "common/gdb_optional.h".
5728 (struct mapping_regexes): New, factored out from
5729 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5730 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5731 gdb::optional and remove cleanups. Adjust to compiled_regex.
5732 * probe.c: Include "common/gdb_optional.h".
5733 (collect_probes): Use compiled_regex and gdb::optional and remove
5734 cleanups.
5735 * skip.c: Include "common/gdb_optional.h".
5736 (skiplist_entry::compiled_function_regexp): Now a
5737 gdb::optional<compiled_regex>.
5738 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5739 (free_skiplist_entry): Remove regfree call.
5740 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5741 compiled_regex and gdb::optional.
5742 * symtab.c: Include "common/gdb_optional.h".
5743 (search_symbols): Use compiled_regex and gdb::optional.
5744 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5745 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5746 to gdb_regex.c.
5747
5748 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5749
5750 * regcache.c (regcache::save): Avoid buffer use.
5751 (regcache::dump): Likewise.
5752
5753 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5754
5755 * sh-tdep.c (sh_pseudo_register_read): Remove
5756 MAX_REGISTER_SIZE.
5757 (sh_pseudo_register_write): Likewise.
5758 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5759 (sh64_pseudo_register_write): Likewise
5760
5761 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5762
5763 * aarch64-tdep.c (aarch64_store_return_value): Use
5764 V_REGISTER_SIZE.
5765 (aarch64_pseudo_read_value): Likewise.
5766 (aarch64_pseudo_write): Likewise.
5767
5768 2017-06-06 Yao Qi <yao.qi@linaro.org>
5769
5770 * regformats/regdef.h (set_register_cache): Remove the
5771 declaration.
5772
5773 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5774
5775 * frame.c (frame_unwind_register_signed): Use
5776 frame_unwind_register_value.
5777
5778 2017-06-06 Pedro Alves <palves@redhat.com>
5779
5780 PR breakpoints/21553
5781 * breakpoint.c (create_breakpoints_sal_default)
5782 (init_breakpoint_sal, create_breakpoint_sal): Use
5783 gdb::unique_xmalloc_ptr for string parameters.
5784 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5785 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5786 (base_breakpoint_create_breakpoints_sal)
5787 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5788 (strace_marker_create_breakpoints_sal)
5789 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5790 string parameters.
5791 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5792 gdb::unique_xmalloc_ptr for string parameters.
5793 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5794 parameters.
5795
5796 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5797
5798 * alpha-tdep.c (alpha_register_to_value): Use
5799 get_frame_register_value.
5800 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5801
5802 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5803
5804 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5805 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5806 (ia64_value_to_register): Likewise.
5807 (ia64_extract_return_value): Likewise.
5808 (ia64_store_return_value): Likewise.
5809 (ia64_push_dummy_call): Likewise.
5810
5811 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5812
5813 GDB 8.0 released.
5814
5815 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5816
5817 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5818
5819 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5820
5821 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5822 parameter.
5823 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5824
5825 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5826
5827 * event-loop.c (poll_timers): Unallocate timer using delete
5828 instead of xfree.
5829
5830 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5833 (struct breakpoint) <~breakpoint>: New.
5834 (struct watchpoint): Inherit from breakpoint.
5835 <~watchpoint>: New.
5836 <base>: Remove.
5837 (struct tracepoint): Inherit from breakpoint.
5838 <base>: Remove.
5839 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5840 (struct longjmp_breakpoint): Inherit from breakpoint.
5841 <~longjmp_breakpoint>: New.
5842 <base>: Remove.
5843 (new_breakpoint_from_type): Remove casts.
5844 (watchpoint_in_thread_scope): Remove reference to base field.
5845 (watchpoint_del_at_next_stop): Likewise.
5846 (update_watchpoint): Likewise.
5847 (watchpoint_check): Likewise.
5848 (bpstat_check_watchpoint): Likewise.
5849 (set_longjmp_breakpoint): Likewise.
5850 (struct fork_catchpoint): Inherit from breakpoint.
5851 <base>: Remove.
5852 (struct solib_catchpoint): Inherit from breakpoint.
5853 <~solib_catchpoint>: New.
5854 <base>: Remove.
5855 (dtor_catch_solib): Change to ...
5856 (solib_catchpoint::~solib_catchpoint): ... this.
5857 (breakpoint_hit_catch_solib): Remove reference to base field.
5858 (add_solib_catchpoint): Likewise.
5859 (create_fork_vfork_event_catchpoint): Likewise.
5860 (struct exec_catchpoint): Inherit from breakpoint.
5861 <~exec_catchpoint>: New.
5862 <base>: Remove.
5863 (dtor_catch_exec): Change to ...
5864 (exec_catchpoint::~exec_catchpoint): ... this.
5865 (dtor_watchpoint): Change to ...
5866 (watchpoint::~watchpoint): ... this.
5867 (watch_command_1): Remove reference to base field.
5868 (catch_exec_command_1): Likewise.
5869 (base_breakpoint_dtor): Change to ...
5870 (breakpoint::~breakpoint): ... this.
5871 (base_breakpoint_ops): Remove dtor field value.
5872 (longjmp_bkpt_dtor): Change to ...
5873 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5874 (strace_marker_create_breakpoints_sal): Remove reference to base
5875 field.
5876 (delete_breakpoint): Don't manually call breakpoint destructor.
5877 (create_tracepoint_from_upload): Remove reference to base field.
5878 (trace_pass_set_count): Likewise.
5879 (initialize_breakpoint_ops): Don't initialize
5880 momentary_breakpoint_ops, don't set dtors.
5881 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5882 <~ada_catchpoint>: New.
5883 <base>: Remove.
5884 (create_excep_cond_exprs): Remove reference to base field.
5885 (dtor_exception): Change to ...
5886 (ada_catchpoint::~ada_catchpoint): ... this.
5887 (dtor_catch_exception): Remove.
5888 (dtor_catch_exception_unhandled): Remove.
5889 (dtor_catch_assert): Remove.
5890 (create_ada_exception_catchpoint): Remove reference to base
5891 field.
5892 (initialize_ada_catchpoint_ops): Don't set dtors.
5893 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5894 breakpoint.
5895 <~signal_catchpoint>: New.
5896 <base>: Remove.
5897 (signal_catchpoint_dtor): Change to ...
5898 (signal_catchpoint::~signal_catchpoint): ... this.
5899 (create_signal_catchpoint): Remove reference to base field.
5900 (initialize_signal_catchpoint_ops): Don't set dtor.
5901 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5902 from breakpoint.
5903 <~syscall_catchpoint>: New.
5904 <base>: Remove.
5905 (dtor_catch_syscall): Change to ...
5906 (syscall_catchpoint::~syscall_catchpoint): ... this.
5907 (create_syscall_event_catchpoint): Remove reference to base
5908 field.
5909 (initialize_syscall_catchpoint_ops): Don't set dtor.
5910 * break-catch-throw.c (struct exception_catchpoint): Inherit
5911 from breakpoint.
5912 <~exception_catchpoint>: New.
5913 <base>: Remove.
5914 (dtor_exception_catchpoint): Change to ...
5915 (exception_catchpoint::~exception_catchpoint): ... this.
5916 (handle_gnu_v3_exceptions): Remove reference to base field.
5917 (initialize_throw_catchpoint_ops): Don't set dtor.
5918 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5919 field.
5920 * remote.c (remote_get_tracepoint_status): Likewise.
5921 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5922 * tracefile.c (tracefile_fetch_registers): Likewise.
5923 * tracepoint.c (actions_command): Likewise.
5924 (validate_actionline): Likewise.
5925 (tfind_1): Likewise.
5926 (get_traceframe_location): Likewise.
5927 (find_matching_tracepoint_location): Likewise.
5928 (parse_tracepoint_status): Likewise.
5929 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5930
5931 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * breakpoint.c (struct longjmp_breakpoint): New struct.
5934 (is_tracepoint_type): Change return type to bool.
5935 (is_longjmp_type): New function.
5936 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5937 (set_raw_breakpoint_without_location): Use
5938 new_breakpoint_from_type.
5939 (set_raw_breakpoint): Likewise.
5940
5941 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * breakpoint.c (new_breakpoint_from_type): New function.
5944 (create_breakpoint_sal): Use new_breakpoint_from_type and
5945 unique_ptr.
5946 (create_breakpoint): Likewise.
5947
5948 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5949
5950 * memattr.c (mem_info_command): Rename to ...
5951 (info_mem_command): ... this.
5952 (mem_enable_command): Rename to ...
5953 (enable_mem_command): ... this.
5954 (mem_disable_command): Rename to ...
5955 (disable_mem_command): ... this.
5956 (mem_delete_command): Rename to ...
5957 (delete_mem_command): ... this.
5958 (_initialize_mem): Adjust function names.
5959
5960 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5961
5962 * btrace.c (handle_pt_insn_events): New.
5963 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5964 STATUS. Split into this and ...
5965 (handle_pt_insn_event_flags): ... this.
5966
5967 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5968
5969 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5970 and struct pt_insn.resynced.
5971 * configure: Regenerated.
5972 * config.in: Regenerated.
5973
5974 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5975
5976 * btrace.c (ftrace_find_call_by_number): New function.
5977 (ftrace_new_function): Store objects, not pointers.
5978 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5979 ftrace_new_gap, ftrace_update_function,
5980 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5981 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5982 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5983 btrace_ends_with_single_insn, btrace_call_get): Account for
5984 btrace_thread_info::functions now storing objects.
5985 * btrace.h (struct btrace_thread_info): Add constructor.
5986 (struct btrace_thread_info) <functions>: Make std::vector.
5987 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5988 Initialize with default values.
5989 * record-btrace.c (record_btrace_frame_sniffer): Account for
5990 btrace_thread_info::functions now storing objects.
5991
5992 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5993
5994 * btrace.c: Remove typedef bfun_s.
5995 (ftrace_new_gap): Directly add gaps to the list of gaps.
5996 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5997 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5998 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5999 instead of gdb VEC.
6000
6001 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6002
6003 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6004 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6005 with btrace_thread_info::next_segment and
6006 btrace_thread_info::prev_segment.
6007 * btrace.h: Remove struct btrace_func_link.
6008 (struct btrace_function): Replace pair of function segment pointers
6009 with pair of indices.
6010 * python/py-record-btrace.c (btpy_call_prev_sibling,
6011 btpy_call_next_sibling): Replace references to
6012 btrace_thread_info::segment with btrace_thread_info::next_segment and
6013 btrace_thread_info::prev_segment.
6014 * record-btrace.c (record_btrace_frame_this_id): Use
6015 btrace_find_call_by_number.
6016
6017 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6018
6019 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6020 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6021 btrace_insn_next, btrace_insn_prev): Remove references to
6022 btrace_thread_info::flow.
6023 * btrace.h (struct btrace_function): Remove FLOW.
6024
6025 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6026
6027 * btrace.c (ftrace_find_call_by_number): New function.
6028 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6029 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6030 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6031 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6032 index.
6033 * btrace.h (struct btrace_function): Turn UP into an index.
6034 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6035 as an index.
6036 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6037 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6038 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6039
6040 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6041
6042 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6043 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6044 ftrace_update_function, ftrace_compute_global_level_offset,
6045 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6046 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6047 btrace_insn_end, btrace_is_empty): Remove references to
6048 btrace_thread_info::begin and btrace_thread_info::end.
6049 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6050 (struct btrace_thread_info) <functions>: Adjust comment.
6051 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6052 btrace_thread_info::begin.
6053
6054 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6055
6056 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6057 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6058 ftrace_update_function): Remove arguments that implicitly were always
6059 BTINFO->END.
6060 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6061 Don't pass BTINFO->END.
6062
6063 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6064
6065 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6066 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6067 btrace_find_insn_by_number): Replace function segment pointer with
6068 index.
6069 (btrace_insn_cmp): Simplify.
6070 * btrace.h: (struct btrace_insn_iterator) Rename index to
6071 insn_index. Replace function segment pointer with index into function
6072 segment vector.
6073 * record-btrace.c (record_btrace_call_history): Replace function
6074 segment pointer use with index.
6075 (record_btrace_frame_sniffer): Retrieve function call segment through
6076 vector.
6077 (record_btrace_set_replay): Remove defunc't safety check.
6078
6079 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6080
6081 * btrace.c (btrace_ends_with_single_insn): New function.
6082 (btrace_call_get, btrace_call_number, btrace_call_begin,
6083 btrace_call_end, btrace_call_next, btrace_call_prev,
6084 btrace_find_call_by_number): Use index into call segment vector
6085 instead of pointer.
6086 (btrace_call_cmp): Simplify.
6087 * btrace.h (struct btrace_call_iterator): Replace function call segment
6088 pointer with index into vector.
6089 * record-btrace.c (record_btrace_call_history): Use index instead of
6090 pointer.
6091
6092 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6093
6094 * btrace.c (btrace_insn_begin, btrace_insn_end,
6095 btrace_find_insn_by_number): Add btinfo to iterator.
6096 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6097
6098 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6099
6100 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6101 and save pointers directly.
6102 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6103 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6104 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6105 changed signature of functions.
6106 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6107 (btrace_fetch): Remove code that adds btrace_function pointers to
6108 vector of btrace_functions.
6109 (btrace_clear): Simplify freeing vector of btrace_functions.
6110
6111 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6112
6113 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6114 Replace VEC_* with std::vector functions.
6115 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6116 (struct btrace_thread_info)<functions>: Change type to std::vector.
6117
6118 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6121 "Removed targets and native configurations" up. Merge duplicate
6122 "New commands" sub-sections. Add "New options" sub-sections.
6123
6124 2017-05-26 Alan Hayward <alan.hayward@arm.com>
6125
6126 * defs.h (copy_integer_to_size): New declaration.
6127 * findvar.c (copy_integer_to_size): New function.
6128 (do_cint_test): New selftest function.
6129 (copy_integer_to_size_test): Likewise.
6130 (_initialize_findvar): Likewise.
6131 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6132 (mips_fbsd_collect_reg): Use raw_collect_integer.
6133 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6134 (mips64_fill_gregset): Use raw_collect_integer
6135 (mips64_fill_fpregset): Use raw_supply_integer.
6136 * regcache.c (regcache::raw_supply_integer): New function.
6137 (regcache::raw_collect_integer): Likewise.
6138 * regcache.h: (regcache::raw_supply_integer): New declaration.
6139 (regcache::raw_collect_integer): Likewise.
6140
6141 2017-05-24 Yao Qi <yao.qi@linaro.org>
6142
6143 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6144 (COMMON_OBS): Add gdbarch-selftests.o.
6145 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6146 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6147 * gdbarch-selftests.c: New file.
6148 * regcache.h (regcache) <~regcache>: Mark it virtual if
6149 GDB_SELF_TEST.
6150 <raw_write>: Likewise.
6151
6152 2017-05-24 Yao Qi <yao.qi@linaro.org>
6153
6154 * regcache.c (current_regcache): Change it to
6155 regcache::current_regcache.
6156 (regcache_observer_target_changed): Update.
6157 (regcache_thread_ptid_changed): Make it a regcache static
6158 method.
6159 (regcache_thread_ptid_changed): Update.
6160 (class regcache_access): New.
6161 (current_regcache_test): Update.
6162 (_initialize_regcache): Update.
6163 * regcache.h: Include forward_list.
6164 (regcache): Declare regcache_thread_ptid_changed and declare
6165 registers_changed_ptid as friend.
6166
6167 2017-05-24 Yao Qi <yao.qi@linaro.org>
6168
6169 * i387-tdep.c (i387_register_to_value): Use register_size
6170 instead of TYPE_LENGTH.
6171 * m68k-tdep.c (m68k_register_to_value): Likewise.
6172
6173 2017-05-24 Yao Qi <yao.qi@linaro.org>
6174
6175 * i387-tdep.c (i387_convert_register_p): Return false if type
6176 code isn't TYPE_CODE_FLT.
6177
6178 2017-05-24 Yao Qi <yao.qi@linaro.org>
6179
6180 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6181 length is 4.
6182 (alpha_register_to_value): Remove type length check.
6183 (alpha_value_to_register): Likewise.
6184
6185 2017-05-24 Yao Qi <yao.qi@linaro.org>
6186
6187 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6188 TYPE_CODE_FLT.
6189
6190 2017-05-24 Yao Qi <yao.qi@linaro.org>
6191
6192 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6193 TYPE_CODE_FLT or not.
6194
6195 2017-05-24 Yao Qi <yao.qi@linaro.org>
6196
6197 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6198 * avr-tdep.c (avr_gdbarch_init): Likewise.
6199 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6200 * cris-tdep.c (cris_gdbarch_init): Likewise.
6201 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6202 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6203 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6205 * mep-tdep.c (mep_gdbarch_init): Likewise.
6206 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6207 * mips-tdep.c (mips_gdbarch_init): Likewise.
6208 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6209 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6210 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6211 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6212 * v850-tdep.c (v850_gdbarch_init): Likewise.
6213
6214 2017-05-24 Yao Qi <yao.qi@linaro.org>
6215
6216 * selftest-arch.c (tests_with_arch): Call registers_changed
6217 and reinit_frame_cache.
6218 * selftest.c (run_self_tests): Likewise.
6219
6220 2017-05-24 Yao Qi <yao.qi@linaro.org>
6221
6222 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6223 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6224
6225 2017-05-24 Yao Qi <yao.qi@linaro.org>
6226
6227 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6228 set_gdbarch_print_insn.
6229
6230 2017-05-24 Yao Qi <yao.qi@linaro.org>
6231
6232 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6233 set_gdbarch_print_insn.
6234
6235 2017-05-24 Yao Qi <yao.qi@linaro.org>
6236
6237 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6238 set_gdbarch_print_insn.
6239 * arc-tdep.c (arc_gdbarch_init): Likewise.
6240 * arch-utils.c: include dis-asm.h.
6241 (default_print_insn): New function.
6242 * arch-utils.h (default_print_insn): Declare.
6243 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6244 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6245 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6246 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6247 * frv-tdep.c (frv_gdbarch_init): Likewise.
6248 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6249 * gdbarch.sh (print_insn): Use default_print_insn.
6250 * gdbarch.c: Regenerated.
6251 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6252 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6253 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6254 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6255 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6256 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6257 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6258 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6259 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6260 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6261 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6262 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6263 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6264 * mt-tdep.c (mt_gdbarch_init): Likewise.
6265 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6266 * nios2-tdep.c (nios2_print_insn): Remove.
6267 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6268 * rx-tdep.c (rx_gdbarch_init): Likewise.
6269 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6270 * score-tdep.c (score_print_insn): Remove.
6271 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6272 * sh-tdep.c (sh_gdbarch_init): Likewise.
6273 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6274 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6275 * tic6x-tdep.c (tic6x_print_insn): Remove.
6276 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6277 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6278 * v850-tdep.c (v850_gdbarch_init): Likewise.
6279 * vax-tdep.c (vax_gdbarch_init): Likewise.
6280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6281 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6282
6283 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6284
6285 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6286 (MIPS_FP0_REGNUM): Remove.
6287 (MIPS_FSR_REGNUM): Remove.
6288 (mips_fbsd_supply_fpregs): Use mips_regnum.
6289 (mips_fbsd_supply_gregs): Likewise.
6290 (mips_fbsd_collect_fpregs): Likewise.
6291 (mips_fbsd_collect_gregs): Likewise.
6292
6293 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6294
6295 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6296 (getpfpregs_supplies): New function.
6297 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6298 getfpregs_supplies.
6299 (mips_fbsd_store_inferior_registers): Likewise.
6300
6301 2017-05-22 Pedro Alves <palves@redhat.com>
6302
6303 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6304 maintainer.
6305
6306 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6307
6308 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6309 (store_register): Likewise.
6310 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6311 (get_decimal_float_return_value): Likewise.
6312 (do_ppc_sysv_return_value): Likewise.
6313 (ppc64_sysv_abi_push_integer): Likewise.
6314 (ppc64_sysv_abi_push_freg): Likewise.
6315 (ppc64_sysv_abi_return_value_base): Likewise.
6316 (ppc64_sysv_abi_return_value): Likewise.
6317 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6318 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6319 * rs6000-nat.c: Likewise.
6320 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6321 (rs6000_value_to_register): Likewise.
6322 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6323
6324 2017-05-21 Tom Tromey <tom@tromey.com>
6325
6326 PR rust/21466:
6327 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6328 arrays as "[T]", not "[T; ]".
6329
6330 2017-05-19 Tom Tromey <tom@tromey.com>
6331
6332 PR rust/21484:
6333 * rust-lang.c (exp_descriptor_rust): New function.
6334 (rust_language_defn): Use it.
6335 * p-lang.c (pascal_language_defn): Update.
6336 * opencl-lang.c (opencl_language_defn): Update.
6337 * objc-lang.c (objc_language_defn): Update.
6338 * m2-lang.c (m2_language_defn): Update.
6339 * language.h (struct language_defn)
6340 <la_watch_location_expression>: New member.
6341 * language.c (unknown_language_defn, auto_language_defn)
6342 (local_language_defn): Update.
6343 * go-lang.c (go_language_defn): Update.
6344 * f-lang.c (f_language_defn): Update.
6345 * d-lang.c (d_language_defn): Update.
6346 * c-lang.h (c_watch_location_expression): Declare.
6347 * c-lang.c (c_watch_location_expression): New function.
6348 (c_language_defn, cplus_language_defn, asm_language_defn)
6349 (minimal_language_defn): Use it.
6350 * breakpoint.c (watch_command_1): Call
6351 la_watch_location_expression.
6352 * ada-lang.c (ada_language_defn): Update.
6353
6354 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6355
6356 PR tui/21482
6357 * gdb_curses.h (NOMACROS): Define.
6358 (NCURSES_NOMACROS): Define.
6359
6360 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6361
6362 PR tui/21482
6363 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6364 arg to char *.
6365 * tui/tui-wingeneral.c (box_win): Likewise.
6366 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6367 (tui_show_source_line): Likewise.
6368 (tui_show_exec_info_content): Likewise.
6369
6370 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6371
6372 * sparc-tdep.c (sparc_structure_return_p)
6373 (sparc_arg_on_registers_p): New functions.
6374 (sparc32_store_arguments): Use them.
6375 * sparc64-tdep.c (sparc64_16_byte_align_p)
6376 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6377 Handle TYPE_CODE_ARRAY.
6378
6379 2017-05-17 Yao Qi <yao.qi@linaro.org>
6380
6381 * cli/cli-decode.c (add_alias_cmd): New function.
6382 * command.h (add_alias_cmd): Declare.
6383 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6384 instead call add_alias_cmd.
6385
6386 2017-05-17 Pedro Alves <palves@redhat.com>
6387
6388 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6389 (nat_makefile_frag): ... this. All references updated.
6390 * configure.ac: Likewise.
6391 * configure.nat: Likewise. Enhance comments.
6392 * configure: Regenerate.
6393
6394 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6395
6396 * procfs.c (procfs_create_inferior): Change prototype to match
6397 definition.
6398
6399 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6400
6401 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6402 C++ compiler warning.
6403
6404 2017-05-12 Tom Tromey <tom@tromey.com>
6405
6406 PR rust/21483:
6407 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6408 recurse, just call value_struct_elt directly.
6409
6410 2017-05-12 Tom Tromey <tom@tromey.com>
6411
6412 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6413 OP_RUST_ARRAY>: Fix.
6414
6415 2017-05-12 Tom Tromey <tom@tromey.com>
6416
6417 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6418
6419 2017-05-09 Yao Qi <yao.qi@linaro.org>
6420
6421 * regcache.c: Include <forward_list>.
6422 (struct regcache_list): Remove.
6423 (current_regcache): Update.
6424 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6425 (regcache_thread_ptid_changed): Likewise.
6426 (registers_changed_ptid): Likewise.
6427 (current_regcache_size): Likewise.
6428
6429 2017-05-09 Yao Qi <yao.qi@linaro.org>
6430
6431 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6432 (current_regcache_size): New function.
6433 (current_regcache_test): New function.
6434 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6435
6436 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6437
6438 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6439 (print_gp_register_row): Use get_frame_register_value.
6440
6441 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6442
6443 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6444 (mips_supply_fpregset): Likewise.
6445 (mips64_supply_gregset): Likewise.
6446
6447 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6448
6449 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6450 regcache->raw_supply_zeroed.
6451
6452 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6453
6454 * configure.nat: Rearrange 'case' statements to match
6455 host before cpu.
6456
6457 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6458
6459 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6460 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6461 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6462 "@nat_extra_makefile_frag@".
6463 (Makefile): Remove dependency on "@frags@".
6464 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6465 (data-directory/Makefile): Likewise.
6466 * config/aarch64/linux.mh: Deleted; moved contents to
6467 "gdb/configure.nat".
6468 * config/alpha/alpha-linux.mh: Likewise.
6469 * config/alpha/nbsd.mh: Likewise.
6470 * config/arm/linux.mh: Likewise.
6471 * config/arm/nbsdelf.mh: Likewise.
6472 * config/i386/cygwin.mh: Likewise.
6473 * config/i386/cygwin64.mh: Likewise.
6474 * config/i386/darwin.mh: Likewise.
6475 * config/i386/fbsd.mh: Likewise.
6476 * config/i386/fbsd64.mh: Likewise.
6477 * config/i386/go32.mh: Likewise.
6478 * config/i386/i386gnu.mh: Likewise.
6479 * config/i386/i386sol2.mh: Likewise.
6480 * config/i386/linux.mh: Likewise.
6481 * config/i386/linux64.mh: Likewise.
6482 * config/i386/mingw.mh: Likewise.
6483 * config/i386/mingw64.mh: Likewise.
6484 * config/i386/nbsd64.mh: Likewise.
6485 * config/i386/nbsdelf.mh: Likewise.
6486 * config/i386/nto.mh: Likewise.
6487 * config/i386/obsd.mh: Likewise.
6488 * config/i386/obsd64.mh: Likewise.
6489 * config/i386/sol2-64.mh: Likewise.
6490 * config/ia64/linux.mh: Likewise.
6491 * config/m32r/linux.mh: Likewise.
6492 * config/m68k/linux.mh: Likewise.
6493 * config/m68k/nbsdelf.mh: Likewise.
6494 * config/m68k/obsd.mh: Likewise.
6495 * config/m88k/obsd.mh: Likewise.
6496 * config/mips/fbsd.mh: Likewise.
6497 * config/mips/linux.mh: Likewise.
6498 * config/mips/nbsd.mh: Likewise.
6499 * config/mips/obsd64.mh: Likewise.
6500 * config/pa/linux.mh: Likewise.
6501 * config/pa/nbsd.mh: Likewise.
6502 * config/pa/obsd.mh: Likewise.
6503 * config/powerpc/aix.mh: Likewise.
6504 * config/powerpc/fbsd.mh: Likewise.
6505 * config/powerpc/linux.mh: Likewise.
6506 * config/powerpc/nbsd.mh: Likewise.
6507 * config/powerpc/obsd.mh: Likewise.
6508 * config/powerpc/ppc64-linux.mh: Likewise.
6509 * config/powerpc/spu-linux.mh: Likewise.
6510 * config/s390/linux.mh: Likewise.
6511 * config/sh/nbsd.mh: Likewise.
6512 * config/sparc/fbsd.mh: Likewise.
6513 * config/sparc/linux.mh: Likewise.
6514 * config/sparc/linux64.mh: Likewise.
6515 * config/sparc/nbsd64.mh: Likewise.
6516 * config/sparc/nbsdelf.mh: Likewise.
6517 * config/sparc/obsd64.mh: Likewise.
6518 * config/sparc/sol2.mh: Likewise.
6519 * config/tilegx/linux.mh: Likewise.
6520 * config/vax/nbsdelf.mh: Likewise.
6521 * config/vax/obsd.mh: Likewise.
6522 * config/xtensa/linux.mh: Likewise.
6523 * config/i386/i386gnu.mn: New file, with excerpts from
6524 "config/i386/i386gnu.mh".
6525 * configure: Regenerate.
6526 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6527 *.mh files under "gdb/config".
6528 * configure.nat: New file, with contents from the
6529 "gdb/config/*/*.mh" files.
6530
6531 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6532
6533 * btrace.c (btrace_clear): Free insn vector.
6534
6535 2017-05-05 Pedro Alves <palves@redhat.com>
6536
6537 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6538 * configure: Regenerate.
6539
6540 2017-05-04 Pedro Alves <palves@redhat.com>
6541
6542 * Makefile.in (SFILES): Add progspace-and-thread.c.
6543 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6544 (COMMON_OBS): Add progspace-and-thread.o.
6545 * breakpoint.c: Include "progspace-and-thread.h".
6546 (update_inserted_breakpoint_locations)
6547 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6548 Use scoped_restore_current_pspace_and_thread.
6549 (create_std_terminate_master_breakpoint): Use
6550 scoped_restore_current_program_space.
6551 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6552 (print_breakpoint_location): Use
6553 scoped_restore_current_program_space.
6554 (bp_loc_is_permanent): Use
6555 scoped_restore_current_pspace_and_thread.
6556 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6557 (download_tracepoint_locations): Use
6558 scoped_restore_current_pspace_and_thread.
6559 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6560 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6561 (enum step_over_calls_kind): Moved from inferior.h.
6562 (class scoped_restore_current_thread): New class.
6563 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6564 declaration.
6565 (scoped_restore_current_thread): New class.
6566 * infcmd.c: Include "common/gdb_optional.h".
6567 (continue_1, proceed_after_attach): Use
6568 scoped_restore_current_thread.
6569 (notice_new_inferior): Use scoped_restore_current_thread.
6570 * inferior.c: Include "progspace-and-thread.h".
6571 (restore_inferior, save_current_inferior): Delete.
6572 (add_inferior_command, clone_inferior_command): Use
6573 scoped_restore_current_pspace_and_thread.
6574 * inferior.h (scoped_restore_current_inferior): New class.
6575 * infrun.c: Include "progspace-and-thread.h" and
6576 "common/gdb_optional.h".
6577 (follow_fork_inferior): Use
6578 scoped_restore_current_pspace_and_thread.
6579 (scoped_restore_exited_inferior): New class.
6580 (handle_vfork_child_exec_or_exit): Use
6581 scoped_restore_exited_inferior,
6582 scoped_restore_current_pspace_and_thread,
6583 scoped_restore_current_thread and scoped_restore.
6584 (fetch_inferior_event): Use scoped_restore_current_thread.
6585 * linespec.c (decode_line_full, decode_line_1): Use
6586 scoped_restore_current_program_space.
6587 * mi/mi-main.c: Include "progspace-and-thread.h".
6588 (exec_continue): Use scoped_restore_current_thread.
6589 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6590 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6591 * proc-service.c (ps_pglobal_lookup): Use
6592 scoped_restore_current_program_space.
6593 * progspace-and-thread.c: New file.
6594 * progspace-and-thread.h: New file.
6595 * progspace.c (release_program_space, clone_program_space): Use
6596 scoped_restore_current_program_space.
6597 (restore_program_space, save_current_program_space)
6598 (save_current_space_and_thread): Delete.
6599 (switch_to_program_space_and_thread): Moved to
6600 progspace-and-thread.c.
6601 * progspace.h (save_current_program_space)
6602 (save_current_space_and_thread): Delete declarations.
6603 (scoped_restore_current_program_space): New class.
6604 * remote.c (remote_btrace_maybe_reopen): Use
6605 scoped_restore_current_thread.
6606 * symtab.c: Include "progspace-and-thread.h".
6607 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6608 * thread.c (print_thread_info_1): Use
6609 scoped_restore_current_thread.
6610 (struct current_thread_cleanup): Delete.
6611 (do_restore_current_thread_cleanup)
6612 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6613 (scoped_restore_current_thread::~scoped_restore_current_thread):
6614 ... this new dtor.
6615 (make_cleanup_restore_current_thread): Rename/convert to ...
6616 (scoped_restore_current_thread::scoped_restore_current_thread):
6617 ... this new ctor.
6618 (thread_apply_all_command): Use scoped_restore_current_thread.
6619 (thread_apply_command): Use scoped_restore_current_thread.
6620 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6621 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6622
6623 2017-05-04 Pedro Alves <palves@redhat.com>
6624
6625 * thread.c (make_cleanup_restore_current_thread): Move
6626 find_thread_ptid call before the is_stopped call. Assert that the
6627 thread is found. Replace is_stopped call by checking the thread's
6628 state directly. Remove unnecessary NULL-thread check.
6629
6630 2017-05-04 Pedro Alves <palves@redhat.com>
6631
6632 * corelow.c (thread_section_name): New class.
6633 (get_core_register_section, get_core_siginfo): Use it.
6634
6635 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6636
6637 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6638 (get_core_register_section): Remove xfree of NULL pointer.
6639
6640 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6641
6642 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6643 * regcache.c (regcache::raw_supply_zeroed): New function.
6644 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6645
6646 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6647
6648 * gdbarch.sh: Remove commented out definition of
6649 TARGET_CHAR_BIT.
6650 * gdbarch.h: Re-generate.
6651
6652 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6653
6654 * configure: Regenerate.
6655
6656 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6657
6658 * solib-target.c (solib_target_relocate_section_addresses):
6659 Remove num_section_bases, num_bases, segment_bases variables.
6660
6661 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6662
6663 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6664
6665 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6666
6667 * solib-target.c: Include <vector>
6668 (struct lm_info_target) <~lm_info_target>: Remove.
6669 <segment_bases, section_bases>: Change type to
6670 std::vector<CORE_ADDR>.
6671 (library_list_start_segment, library_list_start_section,
6672 library_list_end_library,
6673 solib_target_relocate_section_addresses): Adjust.
6674
6675 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * gdbarch.sh (software_single_step): Change return type to
6678 std::vector<CORE_ADDR>.
6679 * gdbarch.c, gdbarch.h: Re-generate.
6680 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6681 Adjust.
6682 (arm_deal_with_atomic_sequence_raw): Adjust.
6683 (thumb_get_next_pcs_raw): Adjust.
6684 (arm_get_next_pcs_raw): Adjust.
6685 (arm_get_next_pcs): Adjust.
6686 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6687 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6688 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6689 (alpha_software_single_step): Adjust.
6690 * alpha-tdep.h (alpha_software_single_step): Adjust.
6691 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6692 * arm-tdep.c (arm_software_single_step): Adjust.
6693 (arm_breakpoint_kind_from_current_state): Adjust.
6694 * arm-tdep.h (arm_software_single_step): Adjust.
6695 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6696 * cris-tdep.c (cris_software_single_step): Adjust.
6697 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6698 (micromips_deal_with_atomic_sequence): Adjust.
6699 (deal_with_atomic_sequence): Adjust.
6700 (mips_software_single_step): Adjust.
6701 * mips-tdep.h (mips_software_single_step): Adjust.
6702 * moxie-tdep.c (moxie_software_single_step): Adjust.
6703 * nios2-tdep.c (nios2_software_single_step): Adjust.
6704 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6705 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6706 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6707 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6708 * sparc-tdep.c (sparc_software_single_step): Adjust.
6709 * spu-tdep.c (spu_software_single_step): Adjust.
6710 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6711
6712 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6713
6714 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6715 * gdbarch.h: Re-generate.
6716
6717 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6718
6719 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6720 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6721 * python/py-instruction.c, python/py-instruction.h: New file.
6722 * python/py-record.c: Add py-instruction.h include.
6723 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6724 gdb.RecordInstruction.
6725 * python/python-internal.h: Add gdbpy_initialize_instruction
6726 declaration.
6727 * python/python.c (do_start_initialization): Add
6728 gdbpy_initialize_instruction.
6729
6730 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6731
6732 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6733 Remove.
6734 (btrace_func_from_recpy_func): New function.
6735 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6736 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6737 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6738 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6739 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6740 Also, use new helper functions.
6741 (btpy_list_item): Use new helper functions.
6742 (recpy_bt_function_call_history): Use new type name.
6743 (btpy_call_getset): Remove.
6744 (gdbpy_initialize_btrace): Remove code to initialize
6745 gdb.BtraceFunctionCall.
6746 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6747 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6748 recpy_bt_func_prev, recpy_bt_func_next): New export.
6749 * python/py-record.c (recpy_func_type): New static object.
6750 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6751 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6752 recpy_func_next): New function.
6753 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6754 (recpy_func_getset): New static object.
6755 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6756 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6757
6758 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6759
6760 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6761 (btpy_object, btpy_insn_type, btpy_new): Remove.
6762 (btpy_list_object): Use gdb.RecordInstruction type instead of
6763 gdb.BtraceInstruction type.
6764 (btrace_insn_from_recpy_insn): New function.
6765 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6766 btpy_new.
6767 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6768 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6769 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6770 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6771 instead of btpy_object.
6772 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6773 btpy_insn_data, btpy_insn_decode): Rename to ...
6774 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6775 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6776 recpy_bt_insn_decode): This. Also, use new helper functions.
6777 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6778 recpy_insn_type.
6779 (btpy_insn_getset): Remove.
6780 (gdbpy_initialize_btrace): Remove code to initialize
6781 gdb.BtraceInstruction. Use recpy_element_object.
6782 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6783 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6784 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6785 * python/py-record.c (recpy_insn_type): New static object.
6786 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6787 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6788 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6789 New function.
6790 (recpy_insn_getset): New static object.
6791 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6792 * python/py-record.h (recpy_element_object): New typedef.
6793 (recpy_insn_type, recpy_insn_new): New export.
6794
6795 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6796
6797 * py-record-btrace.c (btpy_insn_new): Removed.
6798 (btpy_insn_or_gap_new): New function.
6799 (btpy_insn_error): Removed.
6800 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6801 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6802 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6803 btpy_insn_or_gap_new instead of btpy_insn_new.
6804 (btpy_insn_getset): Remove btpy_insn_error.
6805 * py-record.c (recpy_gap_type): New static object.
6806 (recpy_gap_object): New typedef.
6807 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6808 recpy_gap_reason_string): New function.
6809 (recpy_gap_getset): New static object.
6810 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6811 * py-record.h (recpy_gap_new): New export.
6812
6813 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6814
6815 * python/py-record.c (recpy_ptid): Remove.
6816 (recpy_record_getset): Remove recpy_ptid.
6817
6818 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6819
6820 * btrace.c (btrace_fetch): Set inferior_ptid.
6821 * python/py-record-btrace.c: Add "py-record.h" include.
6822 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6823 recpy_bt_end, recpy_bt_instruction_history,
6824 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6825 in gdb.Record object instead of current ptid.
6826 * python/py-record.c: Include new "py-record.h" file.
6827 (recpy_record_object): Moved to py-record.h.
6828 * python/py-record.h: New file.
6829
6830 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6831
6832 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6833 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6834 indentation.
6835
6836 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6837
6838 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6839 the past maintainers section.
6840
6841 2017-04-28 Yao Qi <yao.qi@linaro.org>
6842
6843 * infcmd.c (get_return_value): Use regcache ctor, and remove
6844 cleanup.
6845
6846 2017-04-28 Yao Qi <yao.qi@linaro.org>
6847 Pedro Alves <palves@redhat.com>
6848
6849 * regcache.c (regcache::regcache): New tag dispatch ctor.
6850 (do_cooked_read): Moved above.
6851 (regcache_dup): Use the tag dispatch ctor..
6852 * regcache.h (regcache): Declare ctor, delete copy ctor and
6853 assignment operator, remove friend regcache_dup.
6854
6855 2017-04-28 Yao Qi <yao.qi@linaro.org>
6856
6857 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6858 call method save instead of regcache_cpy.
6859 * regcache.h (struct regcache): Make regcache_dup a friend.
6860
6861 2017-04-28 Yao Qi <yao.qi@linaro.org>
6862
6863 * regcache.c (struct regcache): Move to regcache.h
6864 (regcache::arch): New method.
6865 (regcache_get_ptid): Update.
6866 (get_regcache_arch): Call arch method.
6867 (get_regcache_aspace): Call method aspace.
6868 (register_buffer): Change it to method.
6869 (regcache_save): Change it to regcache::save.
6870 (regcache_restore): Likewise.
6871 (regcache_cpy_no_passthrough): Remove the declaration.
6872 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6873 (regcache_cpy_no_passthrough): Change it to method
6874 cpy_no_passthrough.
6875 (regcache_register_status): Change it to method
6876 get_register_status.
6877 (regcache_invalidate): Change it to method invalidate.
6878 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6879 (regcache_raw_update): Change it to method raw_update.
6880 (regcache_raw_read): Likewise.
6881 (regcache_raw_read_signed): Likewise.
6882 (regcache_raw_read_unsigned): Likewise.
6883 (regcache_raw_write_signed): Likewise.
6884 (regcache_raw_write_unsigned): Likewise.
6885 (regcache_cooked_read): Likewise.
6886 (regcache_cooked_read_value): Likewise.
6887 (regcache_cooked_read_signed): Likewise.
6888 (regcache_cooked_read_unsigned): Likewise.
6889 (regcache_cooked_write_signed): Likewise.
6890 (regcache_cooked_write_unsigned): Likewise.
6891 (regcache_raw_set_cached_value): Likewise.
6892 (regcache_raw_write): Likewise.
6893 (regcache_cooked_write): Likewise.
6894 (regcache_xfer_part): Likewise.
6895 (regcache_raw_read_part): Likewise.
6896 (regcache_raw_write_part): Likewise.
6897 (regcache_cooked_read_part): Likewise.
6898 (regcache_cooked_write_part): Likewise.
6899 (regcache_raw_supply): Likewise.
6900 (regcache_raw_collect): Likewise.
6901 (regcache_transfer_regset): Likewise.
6902 (regcache_supply_regset): Likewise.
6903 (regcache_collect_regset): Likewise.
6904 (regcache_debug_print_register): Likewise.
6905 (enum regcache_dump_what): Move it to regcache.h.
6906 (regcache_dump): Change it to method dump.
6907 * regcache.h (enum regcache_dump_what): New.
6908 (class regcache): New.
6909 * target.c (target_fetch_registers): Call method
6910 debug_print_register.
6911 (target_store_registers): Likewise.
6912
6913 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6914
6915 * windows-nat.c (struct lm_info_windows): Initialize field.
6916 (windows_make_so): Allocate lm_info_windows with new.
6917 (windows_free_so): Free lm_info_windows with delete.
6918
6919 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6920
6921 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6922 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6923 cleanup.
6924 (darwin_free_so): Free lm_info_darwin with delete.
6925
6926 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6927
6928 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6929 <l_addr_p>: Change type to bool.
6930 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6931 (svr4_free_so): Free lm_info_svr4 with delete.
6932 (svr4_copy_library_list): Replace memcpy with call to copy
6933 constructor.
6934 (library_list_start_library, svr4_default_sos): Allocate
6935 lm_info_svr4 with new.
6936
6937 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6938
6939 * solib-target.c (struct lm_info_target): Add destructor,
6940 initialize fields.
6941 <name>: Change type to std::string.
6942 (library_list_start_library): Allocate lm_info_target with new.
6943 (solib_target_free_library_list): Free lm_info_target with
6944 delete.
6945 (solib_target_current_sos): Adapt to std::string.
6946 (solib_target_free_so): Free lm_info_target with delete.
6947
6948 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6951 fields.
6952 (frv_current_sos): Allocate lm_info_frv with new.
6953 (frv_relocate_main_executable): Free lm_info_frv with delete,
6954 allocate with new.
6955 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6956
6957 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6958
6959 * solib-frv.c (struct lm_info_frv): Fix indentation.
6960
6961 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6964 map field.
6965 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6966 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6967 and allocate with new.
6968 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6969
6970 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6971
6972 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6973 <filename, member_name>: Change type to std::string.
6974 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6975 (library_list_start_library): Allocate lm_info_aix with new.
6976 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6977 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6978 with copy constructor.
6979
6980 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6981
6982 * solist.h (struct lm_info): Remove.
6983 (struct lm_info_base): New class.
6984 (struct so_list) <lm_info>: Change type to lm_info_base *.
6985 * nto-tdep.c (struct lm_info): Remove.
6986 (lm_addr): Adjust.
6987 * solib-aix.c (struct lm_info): Rename to ...
6988 (struct lm_info_aix): ... this. Extend lm_info_base.
6989 (lm_info_p): Rename to ...
6990 (lm_info_aix_p): ... this, and adjust.
6991 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6992 solib_aix_parse_libraries, library_list_start_library,
6993 solib_aix_free_library_list, solib_aix_parse_libraries,
6994 solib_aix_get_library_list,
6995 solib_aix_relocate_section_addresses, solib_aix_free_so,
6996 solib_aix_get_section_offsets,
6997 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6998 Adjust.
6999 (struct solib_aix_inferior_data) <library_list>: Adjust.
7000 * solib-darwin.c (struct lm_info): Rename to ...
7001 (struct lm_info_darwin): ... this. Extend lm_info_base.
7002 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7003 * solib-dsbt.c (struct lm_info): Rename to ...
7004 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7005 (struct dsbt_info) <main_executable_lm_info): Adjust.
7006 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7007 dsbt_relocate_section_addresses): Adjust.
7008 * solib-frv.c (struct lm_info): Rename to ...
7009 (struct lm_info_frv): ... this. Extend lm_info_base.
7010 (main_executable_lm_info): Adjust.
7011 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7012 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7013 find_canonical_descriptor_in_load_object,
7014 frv_fdpic_find_canonical_descriptor): Adjust.
7015 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7016 to lm_info_svr4.
7017 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7018 svr4_clear_so, svr4_copy_library_list,
7019 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7020 svr4_current_sos, svr4_fetch_objfile_link_map,
7021 solist_update_incremental): Adjust.
7022 * solib-svr4.h (struct lm_info_svr4): Move here from
7023 solib-svr4.c.
7024 * solib-target.c (struct lm_info): Rename to ...
7025 (struct lm_info_target): ... this. Extend lm_info_base.
7026 (lm_info_p): Rename to ...
7027 (lm_info_target_p): ... this.
7028 (solib_target_parse_libraries, library_list_start_segment,
7029 library_list_start_section, library_list_start_library,
7030 library_list_end_library, solib_target_free_library_list,
7031 solib_target_current_sos, solib_target_free_so,
7032 solib_target_relocate_section_addresses): Adjust.
7033 * windows-nat.c (struct lm_info): Rename to ...
7034 (struct lm_info_windows): ... this. Extend lm_info_base.
7035 (windows_make_so, handle_load_dll, handle_unload_dll,
7036 windows_xfer_shared_libraries): Adjust.
7037
7038 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * solib-darwin.c (struct darwin_so_list): Remove.
7041 (darwin_current_sos): Allocate an so_list object instead of a
7042 darwin_so_list, separately allocate an lm_info object.
7043 (darwin_free_so): Free lm_info.
7044
7045 2017-04-28 John Baldwin <jhb@FreeBSD.org>
7046
7047 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7048 with fprintf_filtered.
7049
7050 2017-04-28 Yao Qi <yao.qi@linaro.org>
7051
7052 * regcache.c (regcache::regcache): New function.
7053 (regcache::~regcache): New function.
7054 (regcache_xmalloc_1): Remove.
7055 (regcache_xmalloc): Call new regcache.
7056 (regcache_xfree): Call delete regcache.
7057 (get_thread_arch_aspace_regcache): Call new regcache.
7058
7059 2017-04-28 Yao Qi <yao.qi@linaro.org>
7060
7061 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7062 lwp instead of ptid_get_lwp.
7063
7064 2017-04-28 Yao Qi <yao.qi@linaro.org>
7065
7066 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7067 lwp_info instead of getting from inferior_ptid.
7068
7069 2017-04-27 Keith Seitz <keiths@redhat.com>
7070
7071 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7072 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7073 (CV_CONVERSION_BADNESS): Define.
7074 (rank_one_type): Remove overly restrictive rvalue reference
7075 rank checks.
7076 Add cv-qualifier checks and subranks for type equality.
7077 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7078 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7079 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7080
7081 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7084 count when creating the object.
7085
7086 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7087 Ulrich Weigand <uweigand@de.ibm.com>
7088
7089 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7090 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7091 is used in AIX.
7092 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7093 (process_xcoff_symbol): Likewise.
7094 (scan_xcoff_symtab): Likewise.
7095
7096 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7097
7098 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7099 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7100 (ia64_access_reg): Use get_frame_register_unsigned.
7101 (ia64_access_rse_reg): Likewise.
7102 (ia64_libunwind_frame_prev_register): Likewise.
7103
7104 2017-04-26 Jiong Wang <jiong.wang@arm.com>
7105
7106 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7107 * gdbarch.c: Regenerated.
7108 * gdbarch.h: Regenerated.
7109 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7110 visibility external.
7111 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7112 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7113 (enum cfa_how_kind): Move to ...
7114 (struct dwarf2_frame_state_reg_info): Likewise.
7115 (struct dwarf2_frame_state): Likewise.
7116 * dwarf2-frame.h: ... here.
7117 (dwarf2_frame_state_alloc_regs): New declaration.
7118 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7119 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7120
7121 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7122
7123 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7124 regcache_raw_read_unsigned.
7125 (xtensa_pseudo_register_write): Likewise.
7126
7127 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7128
7129 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7130 (nds32_pseudo_register_write): Likewise.
7131
7132 2017-04-25 Yao Qi <yao.qi@linaro.org>
7133
7134 * regcache.c (struct regcache) <readonly_p>: Change its type
7135 to bool.
7136 (regcache_xmalloc_1): Update parameter type and callers update.
7137
7138 2017-04-25 Yao Qi <yao.qi@linaro.org>
7139
7140 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7141 set_gdbarch_wchar_bit.
7142 * arm-tdep.c (arm_gdbarch_init): Likewise.
7143
7144 2017-04-25 Pedro Alves <palves@redhat.com>
7145
7146 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7147 (BothAreRelocatable, memcopy, memmove): Don't define.
7148 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7149 macros.
7150
7151 2017-04-25 Pedro Alves <palves@redhat.com>
7152
7153 * common/common-defs.h: Include "common/poison.h".
7154 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7155 and adjust.
7156 * common/poison.h: New file.
7157 * common/traits.h: Include <type_traits>.
7158 (Not, Or, Requires): New, moved from common/function-view.h.
7159
7160 2017-04-25 Pedro Alves <palves@redhat.com>
7161
7162 * breakpoint.h (struct breakpoint): In-class initialize all
7163 fields. Make boolean fields "bool".
7164 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7165 memset call and initializations no longer necessary.
7166
7167 2017-04-25 Pedro Alves <palves@redhat.com>
7168
7169 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7170 reference.
7171 (pt_btrace_insn): New function.
7172 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7173
7174 2017-04-25 Pedro Alves <palves@redhat.com>
7175
7176 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7177 "base" field and inherit from "bp_location" instead. Add
7178 non-default ctor.
7179 (allocate_location_exception): Use new non-default ctor.
7180 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7181 (init_bp_location): Convert to ...
7182 (bp_location::bp_location): ... this new ctor, and remove memset
7183 call.
7184 (base_breakpoint_allocate_location): Use the new non-default ctor.
7185 * breakpoint.h (bp_location): Now a class. Declare default and
7186 non-default ctors. In-class initialize all members.
7187 (init_bp_location): Remove declaration.
7188
7189 2017-04-25 Pedro Alves <palves@redhat.com>
7190
7191 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7192 assignment operator.
7193
7194 2017-04-24 Yao Qi <yao.qi@linaro.org>
7195
7196 * doublest.c (convert_doublest_to_floatformat): Call
7197 floatformat_totalsize_bytes.
7198
7199 2017-04-22 Tom Tromey <tom@tromey.com>
7200
7201 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7202 ui_out_emit_list.
7203 * stack.c (print_frame): Use ui_out_emit_list.
7204 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7205 ui_out_emit_list.
7206 * mi/mi-main.c (print_one_inferior)
7207 (mi_cmd_data_list_register_names)
7208 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7209 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7210 ui_out_emit_list.
7211 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7212 (mi_output_solib_attribs): Use ui_out_emit_list,
7213 ui_out_emit_tuple.
7214 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7215 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7216 (mi_cmd_stack_list_args, list_args_or_locals): Use
7217 ui_out_emit_list.
7218 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7219 * breakpoint.c (print_solib_event, output_thread_groups): Use
7220 ui_out_emit_list.
7221
7222 2017-04-22 Tom Tromey <tom@tromey.com>
7223
7224 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7225 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7226 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7227
7228 2017-04-22 Tom Tromey <tom@tromey.com>
7229
7230 * tracepoint.c (tvariables_info_1)
7231 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7232
7233 2017-04-22 Tom Tromey <tom@tromey.com>
7234
7235 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7236 annotate_arg_emitter.
7237 * breakpoint.c (print_mention_watchpoint)
7238 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7239 * annotate.h (struct annotate_arg_emitter): New.
7240
7241 2017-04-22 Tom Tromey <tom@tromey.com>
7242
7243 * record-btrace.c (record_btrace_insn_history)
7244 (record_btrace_insn_history_range, record_btrace_call_history)
7245 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7246 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7247 ui_out_emit_tuple.
7248 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7249 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7250 * skip.c (skip_info): Use ui_out_emit_tuple.
7251 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7252 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7253 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7254 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7255 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7256 ui_out_emit_tuple.
7257 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7258 (output_register, mi_cmd_data_read_memory)
7259 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7260 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7261 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7262 Use ui_out_emit_tuple.
7263 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7264 ui_out_emit_tuple.
7265 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7266 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7267 * linux-thread-db.c (info_auto_load_libthread_db): Use
7268 ui_out_emit_tuple.
7269 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7270 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7271 * disasm.c (do_mixed_source_and_assembly_deprecated)
7272 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7273 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7274 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7275 * breakpoint.c (print_one_breakpoint_location)
7276 (print_one_breakpoint): Use ui_out_emit_tuple.
7277 * auto-load.c (print_script, info_auto_load_cmd): Use
7278 ui_out_emit_tuple.
7279 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7280
7281 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7282
7283 * thread.c (print_thread_info_1): Remove dead code.
7284
7285 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7286
7287 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7288 GDB_SELF_TEST.
7289 * arm-tdep.c (selftests::arm_record_test): Likewise.
7290
7291 2017-04-21 Yao Qi <yao.qi@linaro.org>
7292
7293 * regcache.c (regcache_restore): Remove argument 2. Replace
7294 argument 3 with regcache. Get register status from
7295 src->register_status and get register contents from
7296 register_buffer (src, regnum).
7297 (regcache_cpy): Update.
7298
7299 2017-04-19 Pedro Alves <palves@redhat.com>
7300
7301 * gdbthread.h (thread): Add missing closing parenthesis in
7302 comment.
7303
7304 2017-04-19 Pedro Alves <palves@redhat.com>
7305
7306 * common/refcounted-object.h: New file.
7307 * gdbthread.h: Include "common/refcounted-object.h".
7308 (thread_info): Inherit from refcounted_object and add comments.
7309 (thread_info::incref, thread_info::decref)
7310 (thread_info::m_refcount): Delete.
7311 (thread_info::deletable): Use the refcounted_object::refcount()
7312 method.
7313 * inferior.c (current_inferior_): Add comment.
7314 (set_current_inferior): Increment/decrement refcounts.
7315 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7316 not-deletable instead of comparing with the current inferior.
7317 (initialize_inferiors): Increment the initial inferior's refcount.
7318 * inferior.h (struct inferior): Forward declare.
7319 Include "common/refcounted-object.h".
7320 (current_inferior, set_current_inferior): Move declaration to
7321 before struct inferior's definition, and fix comment.
7322 (inferior): Inherit from refcounted_object. Add comments.
7323 * thread.c (switch_to_thread_no_regs): Reference the thread's
7324 inferior pointer directly instead of doing a ptid lookup.
7325 (switch_to_no_thread): New function.
7326 (switch_to_thread(thread_info *)): New function, factored out
7327 from ...
7328 (switch_to_thread(ptid_t)): ... this.
7329 (restore_current_thread): Delete.
7330 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7331 fields, and add 'inf' field.
7332 (do_restore_current_thread_cleanup): Check whether old->inf is
7333 alive instead of looking up an inferior by ptid. Use
7334 switch_to_thread and switch_to_no_thread.
7335 (restore_current_thread_cleanup_dtor): Use old->inf directly
7336 instead of lookup up an inferior by id. Decref the inferior.
7337 Don't restore 'removable'.
7338 (make_cleanup_restore_current_thread): Same the inferior pointer
7339 in old, instead of the inferior number. Incref the inferior.
7340 Don't save/clear 'removable'.
7341
7342 2017-04-19 Pedro Alves <palves@redhat.com>
7343
7344 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7345 unittests/scoped_restore-selftests.c.
7346 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7347 * common/scoped_restore.h (scoped_restore_base): Make "class".
7348 (scoped_restore_base::release): New public method.
7349 (scoped_restore_base::scoped_restore_base): New protected ctor.
7350 (scoped_restore_base::m_saved_var): New protected field.
7351 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7352 scoped_restore_base base class instead of m_saved_var directly.
7353 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7354 (scoped_restore_tmpl::scoped_restore_tmpl(const
7355 scoped_restore_tmpl<T>&)): Likewise.
7356 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7357 method.
7358 (scoped_restore_tmpl::saved_var): New method.
7359 (scoped_restore_tmpl::m_saved_var): Delete.
7360 * inferior.h (inferior::detaching): Now a bool.
7361 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7362 cleanup.
7363 * unittests/scoped_restore-selftests.c: New file.
7364
7365 2017-04-19 Pedro Alves <palves@redhat.com>
7366
7367 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7368 Re-sort in alphabetic order.
7369
7370 2017-04-18 Pedro Alves <palves@redhat.com>
7371
7372 * xml-support.c (obstack_xml_printf): Delete.
7373 * xml-support.h (obstack_xml_printf): Delete.
7374
7375 2017-04-18 Pedro Alves <palves@redhat.com>
7376
7377 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7378 vdebug, verror, body_text, start_element, end_element, name,
7379 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7380 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7381 is_xinclude>: Make private and add m_ prefix.
7382 (gdb_xml_parser::body_text): New method, based on ...
7383 (gdb_xml_body_text): ... this. Adjust.
7384 (gdb_xml_parser::vdebug): New method, based on ...
7385 (gdb_xml_debug): ... this. Adjust.
7386 (gdb_xml_parser::verror): New method, based on ...
7387 (gdb_xml_error): ... this. Adjust.
7388 (gdb_xml_parser::start_element): New method, based on ...
7389 (gdb_xml_start_element): ... this. Adjust.
7390 (gdb_xml_start_element_wrapper): Defer to
7391 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7392 (gdb_xml_parser::end_element): New method, based on ...
7393 (gdb_xml_end_element_wrapper): ... this. Adjust.
7394 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7395 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7396 (gdb_xml_parser::use_dtd): New method, based on ...
7397 (gdb_xml_use_dtd): ... this. Adjust.
7398 (gdb_xml_parser::parse): New method, based on ...
7399 (gdb_xml_parse): ... this. Adjust.
7400 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7401 (xinclude_start_include): Adjust to call the parser's name method.
7402 (xml_xinclude_default, xml_xinclude_start_doctype)
7403 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7404 method.
7405 (xml_process_xincludes): Adjust to call parser methods.
7406 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7407 declarations.
7408
7409 2017-04-18 Pedro Alves <palves@redhat.com>
7410
7411 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7412 gdb::optional<std::string>.
7413 * xml-support.c: Include <string>.
7414 (scope_level::scope_level(scope_level &&))
7415 (scope_level::~scope_level): Delete.
7416 (scope_level::body): Now a std::string.
7417 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7418 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7419 parameter.
7420 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7421 (xinclude_parsing_data::output): Now a std::string reference.
7422 (xinclude_start_include): Adjust.
7423 (xml_xinclude_default): Adjust.
7424 (xml_process_xincludes): Add 'output' parameter, and return bool.
7425 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7426 and return bool.
7427 * xml-tdesc.c: Include <unordered_map> and <string>.
7428 (tdesc_xml_cache): Delete.
7429 (tdesc_xml_cache_s): Delete.
7430 (xml_cache): Now an std::unordered_map.
7431 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7432 (target_fetch_description_xml): Change return type to
7433 gdb::optional<std::string>, and adjust.
7434 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7435 (target_fetch_description_xml): Change return type to
7436 gdb::optional<std::string>.
7437
7438 2017-04-18 Pedro Alves <palves@redhat.com>
7439
7440 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7441 unittests/optional-selftests.c.
7442 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7443 * unittests/optional-selftests.c: New file.
7444 * unittests/optional/assignment/1.cc: New file.
7445 * unittests/optional/assignment/2.cc: New file.
7446 * unittests/optional/assignment/3.cc: New file.
7447 * unittests/optional/assignment/4.cc: New file.
7448 * unittests/optional/assignment/5.cc: New file.
7449 * unittests/optional/assignment/6.cc: New file.
7450 * unittests/optional/assignment/7.cc: New file.
7451 * unittests/optional/cons/copy.cc: New file.
7452 * unittests/optional/cons/default.cc: New file.
7453 * unittests/optional/cons/move.cc: New file.
7454 * unittests/optional/cons/value.cc: New file.
7455 * unittests/optional/in_place.cc: New file.
7456 * unittests/optional/observers/1.cc: New file.
7457 * unittests/optional/observers/2.cc: New file.
7458
7459 2017-04-18 Pedro Alves <palves@redhat.com>
7460
7461 * common/gdb_optional.h: Include common/traits.h.
7462 (in_place_t): New type.
7463 (in_place): New constexpr variable.
7464 (optional::optional): Remove member initialization of
7465 m_instantiated.
7466 (optional::optional(in_place_t...)): New constructor.
7467 (optional::~optional): Use reset.
7468 (optional::optional(const optional&)): New.
7469 (optional::optional(const optional&&)): New.
7470 (optional::optional(T &)): New.
7471 (optional::optional(T &&)): New.
7472 (operator::operator=(const optional &)): New.
7473 (operator::operator=(optional &&)): New.
7474 (operator::operator= (const T &))
7475 (operator::operator= (T &&))
7476 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7477 (operator::reset): New.
7478 (operator::m_instantiated):: Add in-class initializer.
7479 * common/traits.h: Include <type_traits>.
7480 (struct And): New types.
7481
7482 2017-04-18 Pedro Alves <palves@redhat.com>
7483
7484 * xml-support.c: Include <vector>.
7485 (scope_level::scope_level(const gdb_xml_element *))
7486 (scope_level::scope_level(scope_level&&)): New.
7487 (scope_level::~scope_level): New.
7488 (scope_level_s): Delete.
7489 (gdb_xml_parser::scopes): Now a std::vector.
7490 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7491 Use std::vector.
7492 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7493 scope cleanup code.
7494 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7495 of the scopes member. Use std::vector::emplace_back.
7496
7497 2017-04-18 Pedro Alves <palves@redhat.com>
7498
7499 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7500 a bool.
7501 (gdb_xml_end_element): Change type of first parameter.
7502 (gdb_xml_cleanup): Rename to ...
7503 (gdb_xml_parser::~gdb_xml_parser): ... this.
7504 (gdb_xml_create_parser_and_cleanup): Delete with ...
7505 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7506 to this new ctor.
7507 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7508 using gdb_xml_create_parser_and_cleanup.
7509 (xinclude_parsing_data): Add ctor/dtor.
7510 (xml_xinclude_cleanup): Delete.
7511 (xml_process_xincludes): Create a local xinclude_parsing_data
7512 instead of heap-allocating one. Create a local gdb_xml_parser
7513 instead of heap-allocating one with
7514 gdb_xml_create_parser_and_cleanup.
7515
7516 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7517
7518 PR threads/20743
7519 * fbsd-nat.c (resume_one_thread_cb): Remove.
7520 (resume_all_threads_cb): Remove.
7521 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7522 iterate_over_threads.
7523
7524 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7525
7526 * NEWS: Create a new section for the next release branch.
7527 Rename the section of the current branch, now that it has
7528 been cut.
7529
7530 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7531
7532 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7533 * version.in: Bump version to 8.0.50.DATE-git.
7534
7535 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7536
7537 PR gdb/21385
7538 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7539 independently of the host, and fix build breakage on Cygwin.
7540
7541 2017-04-13 Pedro Alves <palves@redhat.com>
7542
7543 * inferior.c (free_inferior): Convert to ...
7544 (inferior::~inferior): ... this dtor.
7545 (inferior::inferior): New ctor, factored out from ...
7546 (add_inferior_silent): ... here. Allocate the inferior with a new
7547 expression.
7548 (delete_inferior): Call delete instead of free_inferior.
7549 * inferior.h (gdb_environ, continuation): Forward declare.
7550 (inferior): Now a class. Add in-class initialization to all
7551 members. Make boolean fields bool, except 'detaching'.
7552 (inferior::inferior): New explicit ctor.
7553 (inferior::~inferior): New.
7554
7555 2017-04-13 Pedro Alves <palves@redhat.com>
7556
7557 * inferior.c (init_inferior_list): Delete.
7558 * inferior.h (init_inferior_list): Delete.
7559
7560 2017-04-13 Pedro Alves <palves@redhat.com>
7561
7562 PR threads/13217
7563 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7564 (top level): Call it twice, with different thread sets.
7565
7566 2017-04-13 Pedro Alves <palves@redhat.com>
7567
7568 * thread.c: Include <algorithm>.
7569 (thread_array_cleanup): Delete.
7570 (scoped_inc_dec_ref): New class.
7571 (live_threads_count): New function.
7572 (set_thread_refcount): Delete.
7573 (tp_array_compar_ascending): Now a bool.
7574 (tp_array_compar): Convert to a std::sort comparison function.
7575 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7576 and live_threads_count.
7577
7578 2017-04-13 Pedro Alves <palves@redhat.com>
7579
7580 * infrun.c (follow_fork_inferior): Also switch the current
7581 inferior.
7582
7583 2017-04-13 Pedro Alves <palves@redhat.com>
7584
7585 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7586 before calling create_internal_breakpoint.
7587
7588 2017-04-13 Pedro Alves <palves@redhat.com>
7589
7590 * fork-child.c (execv_argv): New class.
7591 (breakup_args): Refactored as ...
7592 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7593 Copy arguments to storage and replace separators with NULL
7594 terminators in place.
7595 (escape_bang_in_quoted_argument): Adjust to return bool.
7596 (execv_argv::execv_argv): New ctor.
7597 (execv_argv::init_for_shell): New method, factored out from
7598 fork_inferior. Don't strdup strings into the vector.
7599 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7600 Remove free_vector_argv call.
7601
7602 2017-04-13 Yao Qi <yao.qi@linaro.org>
7603
7604 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7605 tdep->rx_psw_type.
7606
7607 2017-04-13 Yao Qi <yao.qi@linaro.org>
7608
7609 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7610 * rx-tdep.c (rx_gdbarch_init): Likewise.
7611
7612 2017-04-13 Pedro Alves <palves@redhat.com>
7613
7614 * breakpoint.h (struct breakpoint): Reindent.
7615
7616 2017-04-13 Pedro Alves <palves@redhat.com>
7617
7618 * breakpoint.c (bp_location): Rename to ...
7619 (bp_locations): ... this. All references updated.
7620 (bp_location_count): Rename to ...
7621 (bp_locations_count): ... this. All references updated.
7622 (bp_location_placed_address_before_address_max): Rename to ...
7623 (bp_locations_placed_address_before_address_max): ... this. All
7624 references updated.
7625 (bp_location_shadow_len_after_address_max): Rename to ...
7626 (bp_locations_shadow_len_after_address_max): ... this. All
7627 references updated.
7628 (bp_location_compare_addrs): Rename to ...
7629 (bp_locations_compare_addrs): ... this. All references updated.
7630 (bp_location_compare):Rename to ...
7631 (bp_locations_compare): ... this. All references updated.
7632 (bp_location_target_extensions_update): Rename to ...
7633 (bp_locations_target_extensions_update): ... this. All references
7634 updated.
7635
7636 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7637
7638 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7639 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7640 'sgtty.h'.
7641 * common/gdb_termios.h: New file, with parts of "terminal.h".
7642 * inflow.c: Include "gdb_termios.h".
7643 * ser-unix.c: Include "gdb_termios.h".
7644 * terminal.h: Move terminal-related defines to
7645 "common/gdb_termios.h".
7646
7647 2017-04-12 Tom Tromey <tom@tromey.com>
7648
7649 * probe.c (parse_probes): Update.
7650 * location.h (delete_event_location): Don't declare.
7651 (event_location_deleter::operator()): Update.
7652 * location.c (event_location_deleter::operator()): Rename from
7653 delete_event_location.
7654 * linespec.h (linespec_result) <location>: Change type to
7655 event_location_up.
7656 * linespec.c (canonicalize_linespec, event_location_to_sals)
7657 (decode_objc): Update.
7658 (linespec_result): Don't call delete_event_location.
7659 * breakpoint.c (create_breakpoints_sal)
7660 (bkpt_probe_create_sals_from_location)
7661 (strace_marker_create_sals_from_location): Update.
7662
7663 2017-04-12 Tom Tromey <tom@tromey.com>
7664
7665 * linespec.h (struct linespec_result): Add constructor and
7666 destructor.
7667 (init_linespec_result, destroy_linespec_result)
7668 (make_cleanup_destroy_linespec_result): Don't declare.
7669 * linespec.c (init_linespec_result): Remove.
7670 (linespec_result::~linespec_result): Rename from
7671 destroy_linespec_result. Update.
7672 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7673 Remove.
7674 * breakpoint.c (create_breakpoint, break_range_command)
7675 (decode_location_default): Update.
7676 * ax-gdb.c (agent_command_1): Update.
7677
7678 2017-04-12 Tom Tromey <tom@tromey.com>
7679
7680 * remote.c (remote_download_tracepoint): Update.
7681 * python/py-breakpoint.c (bppy_get_location): Update.
7682 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7683 (gdbscm_breakpoint_location): Update.
7684 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7685 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7686 Change type to event_location_up.
7687 * breakpoint.c (create_overlay_event_breakpoint)
7688 (create_longjmp_master_breakpoint)
7689 (create_std_terminate_master_breakpoint)
7690 (create_exception_master_breakpoint)
7691 (breakpoint_event_location_empty_p, print_breakpoint_location)
7692 (print_one_breakpoint_location, create_thread_event_breakpoint)
7693 (init_breakpoint_sal, create_breakpoint)
7694 (print_recreate_ranged_breakpoint, break_range_command)
7695 (init_ada_exception_breakpoint, say_where): Update.
7696 (base_breakpoint_dtor): Don't call delete_event_location.
7697 (bkpt_print_recreate, tracepoint_print_recreate)
7698 (dprintf_print_recreate, update_static_tracepoint)
7699 (breakpoint_re_set_default): Update.
7700
7701 2017-04-12 Tom Tromey <tom@tromey.com>
7702
7703 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7704 type of "to_do". Update.
7705 (compute_stack_depth): Use std::vector.
7706
7707 2017-04-12 Tom Tromey <tom@tromey.com>
7708
7709 * printcmd.c (find_instruction_backward): Use std::vector.
7710
7711 2017-04-12 Tom Tromey <tom@tromey.com>
7712
7713 * symfile.c (objfilep): Remove typedef.
7714 (reread_symbols): Use a std::vector.
7715
7716 2017-04-12 Tom Tromey <tom@tromey.com>
7717
7718 * mi/mi-main.c (exec_direction_forward): Remove.
7719 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7720 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7721 scoped_restore.
7722 * guile/guile.c (guile_repl_command, guile_command)
7723 (gdbscm_execute_gdb_command): Use scoped_restore.
7724 * go-exp.y (go_parse): Use scoped_restore.
7725 * d-exp.y (d_parse): Use scoped_restore.
7726 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7727 * c-exp.y (c_parse): Use scoped_restore.
7728
7729 2017-04-12 Tom Tromey <tom@tromey.com>
7730
7731 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7732 (mi_parse): Update return type.
7733 (mi_parse_free): Remove.
7734 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7735 (mi_parse::~mi_parse): Rename from mi_parse_free.
7736 (mi_parse_cleanup): Remove.
7737 (mi_parse): Return a unique_ptr. Use new.
7738 * mi/mi-main.c (mi_execute_command): Update.
7739
7740 2017-04-12 Tom Tromey <tom@tromey.com>
7741
7742 * location.c (explicit_location_lex_one): Return a
7743 unique_xmalloc_ptr.
7744 (string_to_explicit_location): Update. Remove cleanups.
7745
7746 2017-04-12 Tom Tromey <tom@tromey.com>
7747
7748 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7749 (compare_value_and_voffset): Change type. Update.
7750 (compute_vtable_size): Change type of "offset_vec".
7751 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7752 (gnuv3_get_typeid): Remove extraneous declaration.
7753
7754 2017-04-12 Tom Tromey <tom@tromey.com>
7755
7756 * charset.h (wchar_iterator): Fix comment.
7757
7758 2017-04-12 Tom Tromey <tom@tromey.com>
7759
7760 * charset.c (iconv_wrapper): New class.
7761 (cleanup_iconv): Remove.
7762 (convert_between_encodings): Use it.
7763
7764 2017-04-12 Tom Tromey <tom@tromey.com>
7765
7766 * symfile.h (increment_reading_symtab): Update type.
7767 * symfile.c (decrement_reading_symtab): Remove.
7768 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7769 * psymtab.c (psymtab_to_symtab): Update.
7770 * dwarf2read.c (dw2_instantiate_symtab): Update.
7771
7772 2017-04-12 Tom Tromey <tom@tromey.com>
7773
7774 * jit.c (struct jit_reader): Declare separately. Add constructor
7775 and destructor. Change type of "handle".
7776 (loaded_jit_reader): Define separately.
7777 (jit_reader_load): Update. New "new".
7778 (jit_reader_unload_command): Use "delete".
7779 * gdb-dlfcn.h (struct dlclose_deleter): New.
7780 (gdb_dlhandle_up): New typedef.
7781 (gdb_dlopen, gdb_dlsym): Update types.
7782 (gdb_dlclose): Remove.
7783 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7784 (gdb_dlsym): Change type of "handle".
7785 (make_cleanup_dlclose): Remove.
7786 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7787 * compile/compile-c-support.c (load_libcc): Update.
7788
7789 2017-04-12 Tom Tromey <tom@tromey.com>
7790
7791 * symtab.h (find_pcs_for_symtab_line): Change return type.
7792 * symtab.c (find_pcs_for_symtab_line): Change return type.
7793 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7794 type of "vec". Update.
7795 (ltpy_get_pcs_for_line): Update.
7796 * linespec.c (decode_digits_ordinary): Update.
7797
7798 2017-04-12 Tom Tromey <tom@tromey.com>
7799
7800 * tracepoint.c (actions_command): Update.
7801 * python/python.c (python_command, python_interactive_command):
7802 Update.
7803 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7804 * guile/guile.c (guile_command): Update.
7805 * defs.h (read_command_lines, read_command_lines_1): Return
7806 command_line_up.
7807 (command_lines_deleter): New struct.
7808 (command_line_up): New typedef.
7809 * compile/compile.c (compile_code_command)
7810 (compile_print_command): Update.
7811 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7812 command_line_up.
7813 (make_cleanup_free_command_lines): Remove.
7814 * cli/cli-script.c (get_command_line, read_command_lines_1)
7815 (copy_command_lines): Return command_line_up.
7816 (while_command, if_command, read_command_lines, define_command)
7817 (document_command): Update.
7818 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7819 Remove.
7820 * breakpoint.h (breakpoint_set_commands): Change type of
7821 "commands".
7822 * breakpoint.c (breakpoint_set_commands): Change type of
7823 "commands". Update.
7824 (do_map_commands_command, update_dprintf_command_list)
7825 (create_tracepoint_from_upload): Update.
7826
7827 2017-04-12 Tom Tromey <tom@tromey.com>
7828
7829 * tracepoint.c (scope_info): Update.
7830 * spu-tdep.c (spu_catch_start): Update.
7831 * python/python.c (gdbpy_decode_line): Update.
7832 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7833 * python/py-breakpoint.c (bppy_init): Update.
7834 * probe.c (parse_probes): Update.
7835 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7836 * location.h (event_location_deleter): New struct.
7837 (event_location_up): New typedef.
7838 (new_linespec_location, new_address_location, new_probe_location)
7839 (new_explicit_location, copy_event_location)
7840 (string_to_event_location, string_to_event_location_basic)
7841 (string_to_explicit_location): Update return type.
7842 (make_cleanup_delete_event_location): Remove.
7843 * location.c (new_linespec_location, new_address_location)
7844 (new_probe_location, new_explicit_location, copy_event_location):
7845 Return event_location_up.
7846 (delete_event_location_cleanup)
7847 (make_cleanup_delete_event_location): Remove.
7848 (string_to_explicit_location, string_to_event_location_basic)
7849 (string_to_event_location): Return event_location_up.
7850 * linespec.c (canonicalize_linespec, event_location_to_sals)
7851 (decode_line_with_current_source)
7852 (decode_line_with_last_displayed, decode_objc): Update.
7853 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7854 * completer.c (location_completer): Update.
7855 * cli/cli-cmds.c (edit_command, list_command): Update.
7856 * breakpoint.c (create_overlay_event_breakpoint)
7857 (create_longjmp_master_breakpoint)
7858 (create_std_terminate_master_breakpoint)
7859 (create_exception_master_breakpoint)
7860 (create_thread_event_breakpoint): Update.
7861 (init_breakpoint_sal): Update. Remove some dead code.
7862 (create_breakpoint_sal): Change type of "location". Update.
7863 (create_breakpoints_sal, create_breakpoint, break_command_1)
7864 (dprintf_command, break_range_command, until_break_command)
7865 (init_ada_exception_breakpoint)
7866 (strace_marker_create_sals_from_location)
7867 (update_static_tracepoint, trace_command, ftrace_command)
7868 (strace_command, create_tracepoint_from_upload): Update.
7869 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7870 * ax-gdb.c (agent_command_1): Update.
7871
7872 2017-04-12 Pedro Alves <palves@redhat.com>
7873
7874 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7875 * configure.tgt: Handle i[34567]86-*-go32* and
7876 i[34567]86-*-msdosdjgpp*.
7877 * i386-tdep.c (i386_svr4_reg_to_regnum):
7878 Make extern.
7879 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7880 i386-go32-tdep.c.
7881 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7882 * i386-go32-tdep.c: New file.
7883 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7884 declarations.
7885
7886 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7887
7888 * aix-thread.c (pd_status2str): Change return type to const char *.
7889
7890 2017-04-12 Pedro Alves <palves@redhat.com>
7891
7892 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7893 calls to set_gdbarch_gnu_triplet_regexp.
7894
7895 2017-04-12 Pedro Alves <palves@redhat.com>
7896
7897 PR gdb/21323
7898 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7899 New enum value.
7900 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7901 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7902 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7903 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7904 * gdbarch.h, gdbarch.c: Regenerate.
7905 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7906 gdbarch_wchar_bit and gdbarch_wchar_signed.
7907 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7908 * arm-tdep.c (arm_gdbarch_init): Likewise.
7909 * avr-tdep.c (avr_gdbarch_init): Likewise.
7910 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7911 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7912 * i386-tdep.c (i386_go32_init_abi): Likewise.
7913 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7914 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7915 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7916 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7917 * sh-tdep.c (sh_gdbarch_init): Likewise.
7918 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7919 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7920 * windows-tdep.c (windows_init_abi): Likewise.
7921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7922
7923 2017-04-12 Pedro Alves <palves@redhat.com>
7924
7925 PR c++/21323
7926 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7927 cplus_primitive_type_char32_t>: New enum values.
7928 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7929 and cplus_primitive_type_char32_t.
7930 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7931 32, use the archtecture's built-in type for char16_t and char32_t,
7932 respectively. Otherwise, fallback to init_integer_type as before,
7933 but make the type unsigned, and issue a complaint.
7934 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7935
7936 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7937
7938 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7939 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7940
7941 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7942
7943 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7944 'const char *'.
7945
7946 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7947
7948 * common/common-utils.c (free_vector_argv): New function.
7949 * common/common-utils.h: Include <vector>.
7950 (free_vector_argv): New prototype.
7951 * darwin-nat.c (darwin_create_inferior): Rewrite function
7952 prototype in order to constify "exec_file" and accept a
7953 "std::string" for "allargs".
7954 * fork-child.c: Include <vector>.
7955 (breakup_args): Rewrite function, using C++.
7956 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7957 and accept "std::string" for "allargs". Update the code to
7958 calculate "argv" based on "allargs". Update calls to "exec_fun"
7959 and "execvp".
7960 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7961 order to constify "exec_file" and accept a "std::string" for
7962 "allargs".
7963 * go32-nat.c (go32_create_inferior): Likewise.
7964 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7965 * infcmd.c (run_command_1): Constify "exec_file". Use
7966 "std::string" for inferior arguments.
7967 * inferior.h (fork_inferior): Update prototype.
7968 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7969 prototype in order to constify "exec_file" and accept a
7970 "std::string" for "allargs".
7971 * nto-procfs.c (procfs_create_inferior): Likewise.
7972 * procfs.c (procfs_create_inferior): Likewise.
7973 * remote-sim.c (gdbsim_create_inferior): Likewise.
7974 * remote.c (extended_remote_run): Update code to accept
7975 "std::string" as argument.
7976 (extended_remote_create_inferior): Rewrite function prototype in
7977 order to constify "exec_file" and accept a "std::string" for
7978 "allargs".
7979 * rs6000-nat.c (super_create_inferior): Likewise.
7980 (rs6000_create_inferior): Likewise.
7981 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7982 * windows-nat.c (windows_create_inferior): Likewise.
7983
7984 2017-04-11 Pedro Alves <palves@redhat.com>
7985
7986 * thread.c: Fix whitespace throughout.
7987
7988 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7989
7990 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7991
7992 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7993
7994 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7995
7996 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7997
7998 PR gdb/21364
7999 * osdata.c (info_osdata): Check if 'type' is an empty string
8000 instead of NULL.
8001
8002 2017-04-10 Pedro Alves <palves@redhat.com>
8003
8004 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8005 (ptid_to_global_thread_id, in_thread_list)
8006 (do_captured_list_thread_ids, set_resumed, set_running)
8007 (set_executing, set_stop_requested, finish_thread_state)
8008 (validate_registers_access, can_access_registers_ptid)
8009 (print_thread_info_1, switch_to_thread)
8010 (do_restore_current_thread_cleanup)
8011 (make_cleanup_restore_current_thread, thread_command)
8012 (thread_name_command): Use operator== instead of ptid_equal.
8013
8014 2017-04-10 Pedro Alves <palves@redhat.com>
8015
8016 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8017 (current_thread_cleanup_chain): Delete.
8018 (restore_current_thread_cleanup_dtor)
8019 (make_cleanup_restore_current_thread): Remove references to
8020 current_thread_cleanup_chain.
8021
8022 2017-04-10 Alan Hayward <alan.hayward@arm.com>
8023
8024 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8025 REG_UNKNOWN.
8026
8027 2017-04-10 Yao Qi <yao.qi@linaro.org>
8028
8029 PR gdb/19942
8030 * gdbthread.h (thread_info::deletable): New method.
8031 (thread_info::incref): New method.
8032 (thread_info::decref): New method.
8033 (thread_info::refcount): Move it to private.
8034 * infrun.c (save_stop_context): Call inc_refcount.
8035 (release_stop_context_cleanup): Likewise.
8036 * thread.c (set_thread_exited): New function.
8037 (init_thread_list): Delete "tp" only it is deletable, otherwise
8038 call set_thread_exited.
8039 (delete_thread_1): Call set_thread_exited.
8040 (current_thread_cleanup) <inferior_pid>: Remove.
8041 <thread>: New field.
8042 (restore_current_thread_ptid_changed): Removed.
8043 (do_restore_current_thread_cleanup): Adjust.
8044 (restore_current_thread_cleanup_dtor): Don't call
8045 find_thread_ptid.
8046 (set_thread_refcount): Use dec_refcount.
8047 (make_cleanup_restore_current_thread): Adjust.
8048 (thread_apply_all_command): Call inc_refcount.
8049 (_initialize_thread): Don't call
8050 observer_attach_thread_ptid_changed.
8051
8052 2017-04-10 Yao Qi <yao.qi@linaro.org>
8053
8054 * thread.c (delete_thread_1): Hoist code on marking thread as
8055 exited.
8056
8057 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8058
8059 * windows-nat.c (windows_detach): Initialize ptid with
8060 minus_one_ptid.
8061
8062 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8063
8064 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8065
8066 2017-04-07 Alan Hayward <alan.hayward@arm.com>
8067
8068 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8069 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8070 (bfin_pseudo_register_write): Likewise
8071
8072 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8073
8074 * common/ptid.h (struct ptid): Change to...
8075 (class ptid_t): ... this.
8076 <ptid_t>: New constructors.
8077 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8078 matches>: New methods.
8079 <make_null, make_minus_one>: New static methods.
8080 <pid>: Rename to...
8081 <m_pid>: ...this.
8082 <lwp>: Rename to...
8083 <m_lwp>: ...this.
8084 <tid>: Rename to...
8085 <m_tid>: ...this.
8086 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8087 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8088 as references, move comment to class ptid_t.
8089 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8090 ptid_t static methods.
8091 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8092 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8093 Take ptid arguments as references, implement using ptid_t methods.
8094 * unittests/ptid-selftests.c: New file.
8095 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8096 unittests/ptid-selftests.c.
8097 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8098
8099 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8100
8101 * python/python.c (python_run_simple_file): Cast mode literal to
8102 non-const char pointer as expected by PyFile_FromString.
8103
8104 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8105
8106 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8107 minus_one_ptid and null_ptid.
8108
8109 2017-04-05 Pedro Alves <palves@redhat.com>
8110
8111 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8112 * configure: Regenerate.
8113
8114 2017-04-05 Pedro Alves <palves@redhat.com>
8115
8116 * ada-exp.y (yyerror): Constify.
8117 * ada-lang.c (bound_name, get_selections)
8118 (ada_variant_discrim_type)
8119 (ada_variant_discrim_name, ada_value_struct_elt)
8120 (ada_lookup_struct_elt_type, is_unchecked_variant)
8121 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8122 (catch_ada_exception_command_split)
8123 (catch_ada_assert_command_split, catch_assert_command)
8124 (ada_op_name): Constify.
8125 * ada-lang.h (ada_yyerror, get_selections)
8126 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8127 * arc-tdep.c (arc_print_frame_cache): Constify.
8128 * arm-tdep.c (arm_skip_stub): Constify.
8129 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8130 (gen_aggregate_elt_ref): Constify.
8131 * bcache.c (print_bcache_statistics): Constify.
8132 * bcache.h (print_bcache_statistics): Constify.
8133 * break-catch-throw.c (catch_exception_command_1):
8134 * breakpoint.c (struct ep_type_description::description):
8135 Constify.
8136 (add_solib_catchpoint): Constify.
8137 (catch_fork_command_1): Add cast.
8138 (add_catch_command): Constify.
8139 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8140 Constify.
8141 * bsd-uthread.c (bsd_uthread_state): Constify.
8142 * buildsym.c (patch_subfile_names): Constify.
8143 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8144 Constify.
8145 * c-exp.y (yyerror): Constify.
8146 (token::oper): Constify.
8147 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8148 * c-varobj.c (cplus_describe_child): Constify.
8149 * charset.c (find_charset_names): Add cast.
8150 (find_charset_names): Constify array and add const_cast.
8151 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8152 (edit_command): Constify.
8153 * cli/cli-decode.c (lookup_cmd): Constify.
8154 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8155 Constify.
8156 (struct dump_context): Constify.
8157 (add_dump_command, restore_command): Constify.
8158 * cli/cli-script.c (get_command_line): Constify.
8159 * cli/cli-script.h (get_command_line): Constify.
8160 * cli/cli-utils.c (check_for_argument): Constify.
8161 * cli/cli-utils.h (check_for_argument): Constify.
8162 * coff-pe-read.c (struct read_pe_section_data): Constify.
8163 * command.h (lookup_cmd): Constify.
8164 * common/print-utils.c (decimal2str): Constify.
8165 * completer.c (gdb_print_filename): Constify.
8166 * corefile.c (set_gnutarget): Constify.
8167 * cp-name-parser.y (yyerror): Constify.
8168 * cp-valprint.c (cp_print_class_member): Constify.
8169 * cris-tdep.c (cris_register_name, crisv32_register_name):
8170 Constify.
8171 * d-exp.y (yyerror): Constify.
8172 (struct token::oper): Constify.
8173 * d-lang.h (d_yyerror): Constify.
8174 * dbxread.c (struct header_file_location::name): Constify.
8175 (add_old_header_file, add_new_header_file, last_function_name)
8176 (dbx_next_symbol_text, add_bincl_to_list)
8177 (find_corresponding_bincl_psymtab, set_namestring)
8178 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8179 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8180 * defs.h (command_line_input, print_address_symbolic)
8181 (deprecated_readline_begin_hook): Constify.
8182 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8183 Constify.
8184 * event-top.c (handle_line_of_input): Constify and add cast.
8185 * exceptions.c (catch_errors): Constify.
8186 * exceptions.h (catch_errors): Constify.
8187 * expprint.c (print_subexp_standard, op_string, op_name)
8188 (op_name_standard, dump_raw_expression, dump_raw_expression):
8189 * expression.h (op_name, op_string, dump_raw_expression):
8190 Constify.
8191 * f-exp.y (yyerror): Constify.
8192 (struct token::oper): Constify.
8193 (struct f77_boolean_val::name): Constify.
8194 * f-lang.c (f_word_break_characters): Constify.
8195 * f-lang.h (f_yyerror): Constify.
8196 * fork-child.c (fork_inferior): Add cast.
8197 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8198 (new_variant): Constify.
8199 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8200 * gdbarch.c: Regenerate.
8201 * gdbcore.h (set_gnutarget): Constify.
8202 * go-exp.y (yyerror): Constify.
8203 (token::oper): Constify.
8204 * go-lang.h (go_yyerror): Constify.
8205 * go32-nat.c (go32_sysinfo): Constify.
8206 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8207 * guile/scm-cmd.c (cmdscm_function): Constify.
8208 * guile/scm-param.c (pascm_param_value): Constify.
8209 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8210 (h8300sx_register_name): Constify.
8211 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8212 Constify.
8213 * ia64-tdep.c (ia64_register_names): Constify.
8214 * infcmd.c (construct_inferior_arguments): Constify.
8215 (path_command, attach_post_wait): Constify.
8216 * language.c (show_range_command, show_case_command)
8217 (unk_lang_error): Constify.
8218 * language.h (language_defn::la_error)
8219 (language_defn::la_name_of_this): Constify.
8220 * linespec.c (decode_line_2): Constify.
8221 * linux-thread-db.c (thread_db_err_str): Constify.
8222 * lm32-tdep.c (lm32_register_name): Constify.
8223 * m2-exp.y (yyerror): Constify.
8224 * m2-lang.h (m2_yyerror): Constify.
8225 * m32r-tdep.c (m32r_register_names): Constify and make static.
8226 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8227 * m88k-tdep.c (m88k_register_name): Constify.
8228 * macroexp.c (appendmem): Constify.
8229 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8230 (upgrade_type, parse_external, parse_partial_symbols)
8231 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8232 (new_symbol): Constify.
8233 * memattr.c (mem_info_command): Constify.
8234 * mep-tdep.c (register_name_from_keyword): Constify.
8235 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8236 Constify.
8237 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8238 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8239 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8240 cast.
8241 (mi_execute_async_cli_command): Constify.
8242 * mips-tdep.c (mips_register_name): Constify.
8243 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8244 (am33_register_name, am33_2_register_name)
8245 * moxie-tdep.c (moxie_register_names): Constify.
8246 * nat/linux-osdata.c (osdata_type): Constify fields.
8247 * nto-tdep.c (nto_parse_redirection): Constify.
8248 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8249 (lookup_child_selector): Constify.
8250 (objc_methcall::name): Constify.
8251 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8252 (lookup_struct_typedef): Constify.
8253 * objfiles.c (pc_in_section): Constify.
8254 * objfiles.h (pc_in_section): Constify.
8255 * p-exp.y (struct token::oper): Constify.
8256 (yyerror): Constify.
8257 * p-lang.h (pascal_yyerror): Constify.
8258 * parser-defs.h (op_name_standard): Constify.
8259 (op_print::string): Constify.
8260 (exp_descriptor::op_name): Constify.
8261 * printcmd.c (print_address_symbolic): Constify.
8262 * psymtab.c (print_partial_symbols): Constify.
8263 * python/py-breakpoint.c (stop_func): Constify.
8264 (bppy_get_expression): Constify.
8265 * python/py-cmd.c (cmdpy_completer::name): Constify.
8266 (cmdpy_function): Constify.
8267 * python/py-event.c (evpy_add_attribute)
8268 (gdbpy_initialize_event_generic): Constify.
8269 * python/py-event.h (evpy_add_attribute)
8270 (gdbpy_initialize_event_generic): Constify.
8271 * python/py-evts.c (add_new_registry): Constify.
8272 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8273 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8274 * python/py-inferior.c (get_buffer): Add cast.
8275 * python/py-param.c (parm_constant::name): Constify.
8276 * python/py-unwind.c (fprint_frame_id): Constify.
8277 * python/python.c (gdbpy_parameter_value): Constify.
8278 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8279 * remote.c (memory_packet_config::name): Constify.
8280 (show_packet_config_cmd, remote_write_bytes)
8281 (remote_buffer_add_string):
8282 * reverse.c (exec_reverse_once): Constify.
8283 * rs6000-tdep.c (variant::name, variant::description): Constify.
8284 * rust-exp.y (rustyyerror): Constify.
8285 * rust-lang.c (rust_op_name): Constify.
8286 * rust-lang.h (rustyyerror): Constify.
8287 * serial.h (serial_ops::name): Constify.
8288 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8289 (sh_sh3e_register_name, sh_sh2e_register_name)
8290 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8291 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8292 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8293 (sh_sh4al_dsp_register_name): Constify.
8294 * sh64-tdep.c (sh64_register_name): Constify.
8295 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8296 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8297 * stabsread.c (patch_block_stabs, read_type_number)
8298 (ref_map::stabs, ref_add, process_reference)
8299 (symbol_reference_defined, define_symbol, define_symbol)
8300 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8301 (read_one_struct_field, read_struct_fields, read_baseclasses)
8302 (read_tilde_fields, read_struct_type, read_array_type)
8303 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8304 (read_huge_number, read_range_type, read_args, common_block_start)
8305 (find_name_end): Constify.
8306 * stabsread.h (common_block_start, define_symbol)
8307 (process_one_symbol, symbol_reference_defined, ref_add):
8308 * symfile.c (get_section_index, add_symbol_file_command):
8309 * symfile.h (get_section_index): Constify.
8310 * target-descriptions.c (tdesc_type::name): Constify.
8311 (tdesc_free_type): Add cast.
8312 * target.c (find_default_run_target):
8313 (add_deprecated_target_alias, find_default_run_target)
8314 (target_announce_detach): Constify.
8315 (do_option): Constify.
8316 * target.h (add_deprecated_target_alias): Constify.
8317 * thread.c (print_thread_info_1): Constify.
8318 * top.c (deprecated_readline_begin_hook, command_line_input):
8319 Constify.
8320 (init_main): Add casts.
8321 * top.h (handle_line_of_input): Constify.
8322 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8323 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8324 (tfind_command): Rename to ...
8325 (tfind_command_1): ... this and constify.
8326 (tfind_command): New function.
8327 (tfind_end_command, tfind_start_command): Adjust.
8328 (encode_source_string): Constify.
8329 * tracepoint.h (encode_source_string): Constify.
8330 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8331 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8332 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8333 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8334 * tui/tui-win.c (parse_scrolling_args): Constify.
8335 * tui/tui-windata.c (tui_erase_data_content): Constify.
8336 * tui/tui-windata.h (tui_erase_data_content): Constify.
8337 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8338 * tui/tui.c (tui_enable): Add cast.
8339 * utils.c (defaulted_query): Constify.
8340 (init_page_info): Add cast.
8341 (puts_debug, subset_compare): Constify.
8342 * utils.h (subset_compare): Constify.
8343 * varobj.c (varobj_format_string): Constify.
8344 * varobj.h (varobj_format_string): Constify.
8345 * vax-tdep.c (vax_register_name): Constify.
8346 * windows-nat.c (windows_detach): Constify.
8347 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8348 * xml-support.c (gdb_xml_end_element): Constify.
8349 * xml-tdesc.c (tdesc_start_reg): Constify.
8350 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8351 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8352 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8353
8354 2017-04-05 Pedro Alves <palves@redhat.com>
8355
8356 * proc-api.c (struct trans): Constify.
8357 (procfs_note): Constify.
8358 * proc-events.c (struct trans, syscall_table):
8359 * proc-flags.c (struct trans): Constify.
8360 * proc-utils.h (procfs_note): Constify.
8361 * proc-why.c (struct trans): Constify.
8362 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8363 (procfs_detach): Constify.
8364 * sol-thread.c (struct string_map): Constify.
8365 (td_err_string, td_state_string): Constify.
8366
8367 2017-04-05 Pedro Alves <palves@redhat.com>
8368
8369 * proc-api.c (procfs_filename): Don't initialize
8370 procfs_filename.
8371 (prepare_to_trace): Assume procfs_filename is non-NULL.
8372 (_initialize_proc_api): Give procfs_filename a default value here.
8373
8374 2017-04-05 Pedro Alves <palves@redhat.com>
8375
8376 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8377 'cond_string' parameter.
8378 (extract_exception_regexp): Constify 'string' parameter.
8379 (catch_exception_command_1): Constify.
8380 * breakpoint.c (init_catchpoint)
8381 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8382 parameter.
8383 (ep_parse_optional_if_clause, catch_fork_command_1)
8384 (catch_exec_command_1): Constify.
8385 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8386 parameter.
8387 (ep_parse_optional_if_clause): Constify.
8388 * cli/cli-utils.c (remove_trailing_whitespace)
8389 (check_for_argument): Constify.
8390 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8391 non-const overload.
8392 (check_for_argument): Likewise.
8393
8394 2017-04-05 Pedro Alves <palves@redhat.com>
8395
8396 * event-top.c (command_line_handler): Add cast to execute_command
8397 call.
8398 * record-btrace.c (cmd_record_btrace_bts_start)
8399 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8400 (cmd_record_btrace_start): Add cast to execute_command call.
8401 * record-full.c (record_full_goto_insn):
8402 * record.c (record_start, record_stop): Add cast to
8403 execute_command_to_string calls.
8404 (cmd_record_start): Add cast to execute_command calls.
8405
8406 2017-04-05 Pedro Alves <palves@redhat.com>
8407
8408 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8409 static inline function.
8410 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8411 array and use gdb_PyArg_ParseTupleAndKeywords.
8412 * python/py-cmd.c (cmdpy_init): Likewise.
8413 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8414 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8415 (infpy_search_memory): Likewise.
8416 * python/py-objfile.c (objfpy_add_separate_debug_file)
8417 (gdbpy_lookup_objfile): Likewise.
8418 * python/py-symbol.c (gdbpy_lookup_symbol)
8419 (gdbpy_lookup_global_symbol): Likewise.
8420 * python/py-type.c (gdbpy_lookup_type): Likewise.
8421 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8422 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8423 Likewise.
8424
8425 2017-04-05 Pedro Alves <palves@redhat.com>
8426
8427 * python/python-internal.h (gdb_PyGetSetDef): New type.
8428 * python/py-block.c (block_object_getset)
8429 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8430 * python/py-event.c (event_object_getset)
8431 (finish_breakpoint_object_getset): Likewise.
8432 * python/py-inferior.c (inferior_object_getset): Likewise.
8433 * python/py-infthread.c (thread_object_getset): Likewise.
8434 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8435 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8436 * python/py-objfile.c (objfile_getset): Likewise.
8437 * python/py-progspace.c (pspace_getset): Likewise.
8438 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8439 Likewise.
8440 * python/py-record.c (recpy_record_getset): Likewise.
8441 * python/py-symbol.c (symbol_object_getset): Likewise.
8442 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8443 Likewise.
8444 * python/py-type.c (type_object_getset, field_object_getset):
8445 Likewise.
8446 * python/py-value.c (value_object_getset): Likewise.
8447
8448 2017-04-05 Pedro Alves <palves@redhat.com>
8449
8450 * python/python-internal.h (gdb_PyObject_CallMethod)
8451 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8452 New functions.
8453 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8454 (PySys_GetObject, PySys_SetPath): New macros.
8455
8456 2017-04-05 Pedro Alves <palves@redhat.com>
8457
8458 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8459 info_osdata_command.
8460 * osdata.c (info_osdata_command): Rename to ...
8461 (info_osdata): ... this. Constify 'type' parameter, and remove
8462 the 'from_tty' parameter. Accept NULL TYPE.
8463 (info_osdata_command): New function.
8464 * osdata.h (info_osdata_command): Remove declaration.
8465 (info_osdata): New declaration.
8466
8467 2017-04-05 Pedro Alves <palves@redhat.com>
8468
8469 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8470 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8471 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8472 parameter.
8473 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8474 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8475 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8476 parameter.
8477 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8478 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8479 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8480 (mi_cmd_file_list_exec_source_files)
8481 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8482 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8483 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8484 parameter.
8485 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8486 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8487 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8488 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8489 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8490 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8491 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8492 'command' parameter.
8493 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8494 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8495 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8496 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8497 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8498 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8499 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8500 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8501 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8502 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8503 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8504 parameter.
8505 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8506 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8507 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8508 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8509 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8510 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8511 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8512 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8513 (mi_cmd_data_list_changed_registers)
8514 (mi_cmd_data_write_register_values)
8515 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8516 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8517 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8518 (mi_cmd_list_features, mi_cmd_list_target_features)
8519 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8520 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8521 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8522 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8523 (mi_cmd_trace_frame_collected): Constify 'command'
8524 parameter.
8525 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8526 'command' parameter.
8527
8528 2017-04-05 Pedro Alves <palves@redhat.com>
8529
8530 * ada-lang.c (ada_completer_word_break_characters): Now a const
8531 array.
8532 (ada_get_gdb_completer_word_break_characters): Constify.
8533 * completer.c (gdb_completer_command_word_break_characters)
8534 (gdb_completer_file_name_break_characters)
8535 (gdb_completer_quote_characters): Now const arrays.
8536 (get_gdb_completer_quote_characters): Constify.
8537 (set_rl_completer_word_break_characters): New function.
8538 (set_gdb_completion_word_break_characters)
8539 (complete_line_internal): Use it.
8540 * completer.h (get_gdb_completer_quote_characters): Constify.
8541 (set_rl_completer_word_break_characters): Declare.
8542 * f-lang.c (f_word_break_characters): Constify.
8543 * language.c (default_word_break_characters): Constify.
8544 * language.h (language_defn::la_word_break_characters): Constify.
8545 (default_word_break_characters): Constify.
8546 * top.c (init_main): Use set_rl_completer_word_break_characters.
8547
8548 2017-04-05 Pedro Alves <palves@redhat.com>
8549
8550 * aix-thread.c (aix_thread_pid_to_str)
8551 (aix_thread_extra_thread_info): Constify.
8552 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8553 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8554 (bsd_uthread_pid_to_str): Constify.
8555 * corelow.c (core_pid_to_str): Constify.
8556 * darwin-nat.c (darwin_pid_to_str): Constify.
8557 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8558 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8559 Constify.
8560 * gnu-nat.c (gnu_pid_to_str): Constify.
8561 * go32-nat.c (go32_pid_to_str): Constify.
8562 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8563 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8564 * inferior.c (inferior_pid_to_str): Constify.
8565 * linux-nat.c (linux_nat_pid_to_str): Constify.
8566 * linux-tdep.c (linux_core_pid_to_str): Constify.
8567 * linux-thread-db.c (thread_db_pid_to_str)
8568 (thread_db_extra_thread_info): Constify.
8569 * nto-tdep.c (nto_extra_thread_info): Constify.
8570 * nto-tdep.h (nto_extra_thread_info): Constify.
8571 * obsd-nat.c (obsd_pid_to_str): Constify.
8572 * procfs.c (procfs_pid_to_str): Constify.
8573 * ravenscar-thread.c (ravenscar_extra_thread_info)
8574 (ravenscar_pid_to_str): Constify.
8575 * remote-sim.c (gdbsim_pid_to_str): Constify.
8576 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8577 Constify.
8578 * sol-thread.c (solaris_pid_to_str): Constify.
8579 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8580 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8581 * target.c (default_pid_to_str, target_pid_to_str)
8582 (normal_pid_to_str, default_pid_to_str): Constify.
8583 * target.h (target_ops::to_pid_to_str)
8584 (target_ops::to_extra_thread_info): Constify.
8585 (target_pid_to_str, normal_pid_to_str): Constify.
8586 * windows-nat.c (windows_pid_to_str): Constify.
8587 * gdbarch.sh (core_pid_to_str): Constify.
8588 * target-delegates.c: Regenerate.
8589 * gdbarch.h, gdbarch.c: Regenerate.
8590
8591 2017-04-05 Pedro Alves <palves@redhat.com>
8592
8593 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8594 the memory of the temporary warning_pre_print override.
8595 * utils.c (warning_pre_print): Constify.
8596 * utils.h (warning_pre_print): Constify.
8597
8598 2017-04-05 Pedro Alves <palves@redhat.com>
8599
8600 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8601 (shell_command): New function.
8602 (make_command): Use std::string.
8603 (init_cli_cmds): Register shell_command instead of shell_escape.
8604
8605 2017-04-05 Pedro Alves <palves@redhat.com>
8606
8607 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8608 * tracepoint.c (default_collect): Don't initialize.
8609
8610 2017-04-05 Pedro Alves <palves@redhat.com>
8611
8612 * macroexp.c (macro_buffer::shared): Now a bool.
8613 (init_buffer): Update.
8614 (init_shared_buffer): Constify 'addr' parameter.
8615 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8616 casts.
8617
8618 2017-04-05 Pedro Alves <palves@redhat.com>
8619
8620 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8621 * disasm.c (set_disassembler_options): Constify local.
8622 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8623
8624 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8625
8626 PR gdb/21352
8627 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8628 option.
8629
8630 2017-04-05 Yao Qi <yao.qi@linaro.org>
8631
8632 * frame.c (frame_unwind_register_unsigned): Call
8633 frame_unwind_register_value.
8634
8635 2017-04-05 Yao Qi <yao.qi@linaro.org>
8636
8637 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8638 Use gdb_test_multiple, and don't match anchor.
8639
8640 2017-04-05 Pedro Alves <palves@redhat.com>
8641
8642 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8643 (Write After Approval): Remove Simon Marchi.
8644
8645 2017-04-05 Pedro Alves <palves@redhat.com>
8646
8647 * common/gdb_optional.h (optional::optional): Make constexpr and
8648 initialize m_dummy.
8649
8650 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8651
8652 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8653 (amd64fbsd_jmp_buf_reg_offset): Remove.
8654 (amd64fbsd_supply_uthread): Remove function.
8655 (amd64fbsd_collect_uthread): Remove function.
8656 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8657 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8658 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8659 (fbsd-nat.c): Update comment.
8660 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8661 (i386fbsd_jmp_buf_reg_offset): Remove.
8662 (i386fbsd_supply_uthread): Remove function.
8663 (i386fbsd_collect_uthread): Remove function.
8664 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8665
8666 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8667
8668 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8669 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8670 * NEWS: Mention that support for FreeBSD/alpha was removed.
8671 * alpha-fbsd-tdep.c: Delete file.
8672 * config/alpha/fbsd.mh: Delete file.
8673 * configure.host: Delete alpha*-*-freebsd* and
8674 alpha*-*-kfreebsd*-gnu.
8675 * configure.tgt: Delete alpha*-*-freebsd* and
8676 alpha*-*-kfreebsd*-gnu.
8677
8678 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8679
8680 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8681 amd64bsd_store_inferior_registers): Use ptid from regcache.
8682
8683 2017-04-04 Pedro Alves <palves@redhat.com>
8684
8685 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8686 data fields, make them private and add "m_" prefixes.
8687 (lnp_state_machine::lnp_state_machine): New ctor.
8688 (record_line, check_line_address, handle_set_discriminator)
8689 (handle_set_address, handle_advance_pc, handle_special_opcode)
8690 (handle_advance_line, handle_set_file, handle_negate_stmt)
8691 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8692 (end_sequence, advance_line): New methods.
8693 (m_gdbarch, m_record_lines_p): New fields.
8694 (lnp_reader_state): Delete.
8695 (dwarf_record_line): Rename to ...
8696 (lnp_state_machine::record_line): ... adjust.
8697 (init_lnp_state_machine): Delete.
8698 (lnp_state_machine::lnp_state_machine): New.
8699 (check_line_address): Rename to ...
8700 (lnp_state_machine::check_line_address): This.
8701 (dwarf_decode_lines_1): Remove reference to "reader_state".
8702 Adjust lnp_state_machine having a non-default ctor. Use bool.
8703 State machine internal state manipulation moved to
8704 lnp_state_machine methods.
8705
8706 2017-04-04 Pedro Alves <palves@redhat.com>
8707
8708 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8709 unittests/offset-type-selftests.c.
8710 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8711 * common/offset-type.h: New file.
8712 * common/preprocessor.h: New file.
8713 * common/traits.h: New file.
8714 * common/valid-expr.h: New file.
8715 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8716 sect_offset and cu_offset strong typedefs throughout.
8717 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8718 typedefs throughout.
8719 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8720 sect_offset and cu_offset strong typedefs throughout.
8721 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8722 typedefs throughout.
8723 * gdbtypes.h: Include "common/offset-type.h".
8724 (cu_offset): Now an offset type (strong typedef) instead of a
8725 struct.
8726 (sect_offset): Likewise.
8727 (union call_site_parameter_u): Rename "param_offset" field to
8728 "param_cu_off".
8729 * unittests/offset-type-selftests.c: New file.
8730
8731 2017-04-04 Pedro Alves <palves@redhat.com>
8732
8733 * common/underlying.h: New file.
8734 * dwarf2read.c: Include "common/gdb_optional.h" and
8735 "common/underlying.h".
8736 (dir_index, file_name_index): New types.
8737 (file_entry): Use them.
8738 (file_entry::include): Use to_underlying.
8739 (line_header::add_file_name): Use dir_index.
8740 (read_formatted_entries): Use gdb::optional. Read form before
8741 writting to file_entry.
8742 (dwarf_decode_line_header): Use dir_index.
8743 (lnp_state_machine::current_file): Use to_underlying.
8744 (lnp_state_machine::file): Change type to file_name_index.
8745 (dwarf_record_line): Use to_underlying.
8746 (init_lnp_state_machine): Use file_name_index.
8747 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8748
8749 2017-04-04 Pedro Alves <palves@redhat.com>
8750
8751 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8752 operator bool, has_value and get methods.
8753
8754 2017-04-04 Pedro Alves <palves@redhat.com>
8755
8756 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8757 fields.
8758 (line_header): Initialize all data fields. Change type of
8759 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8760 Change type of include_dirs to std::vector<const char *>. Remove
8761 num_include_dirs, include_dirs_size. Change type of file_names to
8762 std::vector<file_entry>. Remove num_file_names, file_names_size.
8763 (line_header::line_header): New.
8764 (line_header::add_include_dir, line_header::add_file_name): New
8765 methods.
8766 (line_header::include_dir_at): Remove NULL check.
8767 (line_header::file_name_at): Add const overload.
8768 (line_header_up): New unique_ptr typedef.
8769 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8770 std::vector. Remove free_line_header call.
8771 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8772 free_line_header call.
8773 (free_cu_line_header): Delete.
8774 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8775 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8776 Adjust to use std::vector.
8777 (free_line_header): Delete.
8778 (free_line_header_voidp): Use delete.
8779 (add_include_dir): Replace with ...
8780 (line_header::add_include_dir): ... this method. Use std::vector.
8781 (add_file_name): Replace with ...
8782 (line_header::add_file_name): ... this method. Use std::vector.
8783 (add_include_dir_stub): Delete.
8784 (read_formatted_entries): Remove memset.
8785 (dwarf_decode_line_header): Return a line_header_up instead of a
8786 raw pointer. Remove cleanup handling. Pass lambdas to
8787 read_formatted_entries. Adjust to use line_header methods.
8788 (dwarf_decode_lines_1): Adjust to use line_header methods.
8789 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8790 use std::vector.
8791
8792 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8793
8794 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8795 instead of struct ptid.
8796
8797 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8798
8799 * frame.c (get_frame_register_bytes): Unwind using value.
8800 (put_frame_register_bytes): Likewise.
8801
8802 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8803
8804 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8805 aggregate-like.
8806
8807 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8808
8809 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8810
8811 2017-03-29 Yao Qi <yao.qi@linaro.org>
8812
8813 * gdbthread.h (struct thread_info): Declare constructor and
8814 destructor. Add some in-class member initializers.
8815 * thread.c (free_thread): Remove.
8816 (init_thread_list): Call delete instead of free_thread.
8817 (new_thread): Call thread_info constructor.
8818 (thread_info::thread_info): New function.
8819 (thread_info::~thread_info): New function.
8820 (delete_thread_1): Call delete instead of free_thread.
8821 (make_cleanup_restore_current_thread): Move tp and frame to
8822 inner block.
8823
8824 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8825
8826 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8827 (arc_skip_prologue): Likewise.
8828 (arc_make_frame_cache): Likewise.
8829 (arc_pv_get_operand): New function.
8830 (arc_is_in_prologue): Likewise.
8831 (arc_analyze_prologue): Likewise.
8832 (arc_print_frame_cache): Likewise.
8833 (MAX_PROLOGUE_LENGTH): New constant.
8834
8835 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8836
8837 * configure.tgt: Add arc-insn.o.
8838 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8839 (dump_arc_instruction_command): New function.
8840 (arc_fprintf_disasm): Likewise.
8841 (arc_disassemble_info): Likewise.
8842 (arc_insn_get_operand_value): Likewise.
8843 (arc_insn_get_operand_value_signed): Likewise.
8844 (arc_insn_get_memory_base_reg): Likewise.
8845 (arc_insn_get_memory_offset): Likewise.
8846 (arc_insn_get_branch_target): Likewise.
8847 (arc_insn_dump): Likewise.
8848 (arc_insn_get_linear_next_pc): Likewise.
8849 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8850 (arc_disassemble_info): Likewise.
8851 (arc_insn_get_branch_target): Likewise.
8852 (arc_insn_get_linear_next_pc): Likewise.
8853 * NEWS: Mention new "maint print arc arc-instruction".
8854
8855 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8856
8857 * arc-tdep (maintenance_print_arc_list): New variable.
8858 (maintenance_print_arc_command): New function.
8859
8860 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8861
8862 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8863 Add "limm" and "reserved".
8864 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8865 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8866 * arc-tdep.h (arc_regnum): Likewise.
8867
8868 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8869
8870 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8871 for THREADPTR register.
8872 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8873 register.
8874 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8875 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8876 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8877
8878 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8879
8880 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8881 registers above gdbarch_num_regs (gdbarch) as privileged in
8882 call0 ABI.
8883
8884 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8885
8886 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8887 for a single specified register or for all registers in
8888 a0_base..a0_base + C0_NREGS range.
8889 (supply_gregset_reg): Call regcache_raw_supply for a single
8890 specified register or for all registers in a0_base..a0_base +
8891 C0_NREGS range.
8892
8893 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8894
8895 * arch/xtensa.h (C0_NREGS): Add definition.
8896 * xtensa-tdep.c (C0_NREGS): Remove definition.
8897
8898 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8899
8900 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8901 Drop xtensa_default_isa initialization.
8902 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8903
8904 2017-03-27 Pedro Alves <palves@redhat.com>
8905
8906 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8907 (file_entry::include_dir): New method.
8908 (line_header::include_dir_at, line_header::file_name_at): New
8909 methods.
8910 (setup_type_unit_groups, setup_type_unit_groups)
8911 (psymtab_include_file_name): Simplify using the new methods.
8912 (lnp_state_machine) <the_line_header>: New field.
8913 <file>: Add comment.
8914 (lnp_state_machine::current_file): New method.
8915 (dwarf_record_line): Simplify using the new methods.
8916 (init_lnp_state_machine): Initialize the "the_line_header" field.
8917 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8918 Simplify using the new methods.
8919
8920 2017-03-27 Pedro Alves <palves@redhat.com>
8921
8922 * cp-name-parser.y (make_empty): Delete.
8923 (demangler_special, nested_name, ptr_operator, array_indicator)
8924 (direct_declarator, declarator_1): Use fill_comp instead of
8925 make_empty.
8926
8927 2017-03-27 Pedro Alves <palves@redhat.com>
8928
8929 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8930 to ATTRIBUTE_PRINTF.
8931 * solib-target.c (library_list_start_list): Print "string" not
8932 "version".
8933 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8934 gdb_xml_error call.
8935
8936 2017-03-27 Pedro Alves <palves@redhat.com>
8937
8938 * dwarf2read.c (struct file_and_directory): New.
8939 (dwarf2_get_dwz_file): Adjust to use std::string.
8940 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8941 (find_file_and_directory): Adjust to return a file_and_directory
8942 object.
8943 (read_file_scope): Adjust to use file_and_directory. Remove
8944 make_cleanup/do_cleanups calls.
8945 (open_and_init_dwp_file): Adjust to use std::string. Remove
8946 make_cleanup/do_cleanups calls.
8947 * python/python.c (do_start_initialization): Adjust to ldirname
8948 returning a std::string.
8949 * utils.c (ldirname): Now returns a std::string.
8950 * utils.h (ldirname): Change return type to std::string.
8951 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8952 returning a std::string.
8953 * xml-tdesc.c (file_read_description_xml): Likewise.
8954
8955 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8956
8957 * regcache.c (regcache_debug_print_register): New function.
8958 * regcache.h (regcache_debug_print_register): New declaration.
8959 * target.c (debug_print_register): Remove.
8960 (target_fetch_registers): Call regcache_debug_print_register.
8961 (target_store_registers): Likewise.
8962
8963 2017-03-24 Pádraig Brady <pbrady@fb.com>
8964
8965 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8966 reference beyond the 'lh->include_dirs' array before accessing to
8967 it.
8968 (psymtab_include_file_name): Likewise.
8969 (dwarf_decode_lines_1): Likewise.
8970 (dwarf_decode_lines): Likewise.
8971 (file_file_name): Likewise.
8972
8973 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8974
8975 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8976 inferior_ptid.
8977 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8978 ps_lsetfpregs): Likewise.
8979 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8980 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8981 ps_lsetfpregs): Likewise.
8982 * target.c (target_fetch_registers, target_store_registers):
8983 Remove asserts.
8984
8985 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8986
8987 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8988
8989 2017-03-23 Yao Qi <yao.qi@linaro.org>
8990
8991 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8992 (_initialize_aarch64_tdep): Register it.
8993 (aarch64_record_load_store): Handle PRFM instruction.
8994 (aarch64_process_record_test): New function.
8995
8996 2017-03-23 Yao Qi <yao.qi@linaro.org>
8997
8998 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8999 indentation.
9000
9001 2017-03-23 Yao Qi <yao.qi@linaro.org>
9002
9003 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9004
9005 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9006
9007 python/python.c (do_start_initialization): Fix memory leak.
9008
9009 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9012 using get_ptrace_pid.
9013 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9014 inferior_ptid.
9015 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9016 inferior_ptid instead of pid.
9017
9018 2017-03-22 Yao Qi <yao.qi@linaro.org>
9019
9020 * aarch64-tdep.c: Wrap locally used classes in anonymous
9021 namespace.
9022 * arm-tdep.c: Likewise.
9023 * linespec.c: Likewise.
9024 * ui-out.c: Likewise.
9025
9026 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
9027
9028 PR gdb/19637
9029 * python/lib/gdb/printer/bound_registers.py: Import sys.
9030
9031 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9032
9033 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9034 windows_thread_info parameter and use it instead of
9035 current_thread.
9036 (windows_fetch_inferior_registers): Don't set current_thread,
9037 pass the thread to do_windows_fetch_inferior_registers. Use
9038 ptid from regcache instead of inferior_ptid.
9039 (do_windows_store_inferior_registers): Add windows_thread_info
9040 parameter and use it instead of current_thread.
9041 (windows_store_inferior_registers): Don't set current_thread,
9042 pass the thread to do_windows_store_inferior_registers. Use
9043 ptid from regcache instead of inferior_ptid.
9044
9045 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9046
9047 * ser-mingw.c (ser_windows_raw): Remove reference to
9048 struct serial::current_timeout.
9049
9050 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9051
9052 PR tdep/20928
9053 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9054 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9055 (sparc64_fsr_type): Fix %fsr decoding.
9056
9057 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9058
9059 * python/py-record-btrace.c (btpy_insn_data): Change return type
9060 for Python 2.
9061
9062 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9063
9064 * spu-linux-nat.c (spu_fetch_inferior_registers,
9065 spu_store_inferior_registers): Use ptid from regcache, set and
9066 restore inferior_ptid.
9067 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9068 Likewise.
9069
9070 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9071
9072 * i386-linux-nat.c (fetch_register, store_register,
9073 i386_linux_fetch_inferior_registers,
9074 i386_linux_store_inferior_registers): Use ptid from regcache.
9075 * ia64-linux-nat.c (ia64_linux_fetch_register,
9076 ia64_linux_store_register): Likewise.
9077 * inf-ptrace.c (inf_ptrace_fetch_register,
9078 inf_ptrace_store_register): Likewise.
9079 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9080 m32r_linux_store_inferior_registers): Likewise.
9081 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9082 m68kbsd_store_inferior_registers): Likewise.
9083 * m68k-linux-nat.c (fetch_register, store_register,
9084 m68k_linux_fetch_inferior_registers,
9085 m68k_linux_store_inferior_registers): Likewise.
9086 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9087 m88kbsd_store_inferior_registers): Likewise.
9088 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9089 mips_fbsd_store_inferior_registers): Likewise.
9090 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9091 mips64_linux_regsets_store_registers): Likewise.
9092 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9093 mipsnbsd_store_inferior_registers): Likewise.
9094 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9095 mips64obsd_store_inferior_registers): Likewise.
9096 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9097 Likewise.
9098 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9099 ppcfbsd_store_inferior_registers): Likewise.
9100 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9101 ppc_linux_store_inferior_registers): Likewise.
9102 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9103 ppcnbsd_store_inferior_registers): Likewise.
9104 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9105 ppcobsd_store_registers): Likewise.
9106 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9107 Likewise.
9108 * ravenscar-thread.c (ravenscar_fetch_registers,
9109 ravenscar_store_registers, ravenscar_prepare_to_store):
9110 Likewise.
9111 * record-btrace.c (record_btrace_fetch_registers,
9112 record_btrace_store_registers, record_btrace_prepare_to_store):
9113 Likewise.
9114 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9115 Lookup inferior using ptid from regcache, instead of
9116 current_inferior.
9117 * remote.c (remote_fetch_registers, remote_store_registers): Use
9118 ptid from regcache.
9119 * rs6000-nat.c (fetch_register, store_register): Likewise.
9120 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9121 s390_linux_store_inferior_registers): Likewise.
9122 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9123 shnbsd_store_inferior_registers): Likewise.
9124 * sol-thread.c (sol_thread_fetch_registers,
9125 sol_thread_store_registers): Likewise.
9126 * sparc-nat.c (sparc_fetch_inferior_registers,
9127 sparc_store_inferior_registers): Likewise.
9128 * tilegx-linux-nat.c (fetch_inferior_registers,
9129 store_inferior_registers): Likewise.
9130 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9131 vaxbsd_store_inferior_registers): Likewise.
9132 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9133 store_xtregs): Likewise.
9134
9135 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9136
9137 PR gdb/14441
9138 * NEWS: Mention support for rvalue references in GDB and python.
9139 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9140 supports both lvalue and rvalue references.
9141
9142 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9143
9144 PR gdb/14441
9145 * gdbtypes.c (rank_one_type): Implement overloading
9146 resolution rules regarding rvalue references.
9147
9148 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9149
9150 PR gdb/14441
9151 * aarch64-tdep.c (aarch64_type_align)
9152 (aarch64_extract_return_value, aarch64_store_return_value): Change
9153 lvalue reference type checks to general reference type checks.
9154 * amd64-tdep.c (amd64_classify): Likewise.
9155 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9156 Likewise.
9157 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9158 (arm_store_return_value): Likewise.
9159 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9160 * c-typeprint.c (c_print_type): Likewise.
9161 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9162 (cplus_number_of_children, cplus_describe_child): Likewise.
9163 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9164 * completer.c (expression_completer): Likewise.
9165 * cp-support.c (make_symbol_overload_list_adl_namespace):
9166 Likewise.
9167 * darwin-nat-info.c (info_mach_region_command): Likewise.
9168 * dwarf2loc.c (entry_data_value_coerce_ref)
9169 (value_of_dwarf_reg_entry): Likewise.
9170 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9171 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9172 Likewise.
9173 * findvar.c (extract_typed_address, store_typed_address):
9174 Likewise.
9175 * gdbtypes.c (rank_one_type): Likewise.
9176 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9177 * infcall.c (value_arg_coerce): Likewise.
9178 * language.c (pointer_type): Likewise.
9179 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9180 Likewise.
9181 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9182 * mn10300-tdep.c (mn10300_type_align): Likewise.
9183 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9184 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9185 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9186 Likewise.
9187 * printcmd.c (print_formatted, x_command): Likewise.
9188 * python/py-type.c (typy_get_composite, typy_template_argument):
9189 Likewise.
9190 * python/py-value.c (valpy_referenced_value)
9191 (valpy_get_dynamic_type, value_has_field): Likewise.
9192 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9193 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9194 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9195 * spu-tdep.c (spu_scalar_value_p): Likewise.
9196 * symtab.c (lookup_symbol_aux): Likewise.
9197 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9198 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9199 Likewise.
9200 * valops.c (value_cast_pointers, value_cast)
9201 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9202 (value_struct_elt, value_struct_elt_bitpos)
9203 (value_find_oload_method_list, find_overload_match)
9204 (value_rtti_indirect_type): Likewise.
9205 * valprint.c (val_print_scalar_type_p, generic_val_print):
9206 Likewise.
9207 * value.c (value_actual_type, value_as_address, unpack_long)
9208 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9209 (coerce_ref): Likewise.
9210 * varobj.c (varobj_get_value_type): Likewise.
9211
9212 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9213
9214 PR gdb/14441
9215 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9216 table of constants.
9217 * python/lib/gdb/command/explore.py: Support exploring values
9218 of rvalue reference types.
9219 * python/lib/gdb/types.py: Implement get_basic_type() for
9220 rvalue reference types.
9221 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9222 constant.
9223 * python/py-value.c (valpy_getitem): Add an rvalue reference
9224 check.
9225 (valpy_reference_value): Add new parameter "refcode".
9226 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9227 New wrappers for valpy_reference_value().
9228 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9229 (gdbpy_invoke_xmethod): Likewise.
9230
9231 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9232
9233 PR gdb/14441
9234 * dwarf2read.c (process_die, read_type_die_1): Handle the
9235 DW_TAG_rvalue_reference_type DIE.
9236 (read_tag_reference_type): Add new parameter "refcode".
9237
9238 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9239
9240 PR gdb/14441
9241 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9242 (c_type_print_modifier, c_type_print_varspec_suffix)
9243 (c_type_print_base): Support printing rvalue reference types.
9244 * c-valprint.c (c_val_print, c_value_print): Support printing
9245 rvalue reference values.
9246
9247 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9248
9249 PR gdb/14441
9250 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9251 typename.
9252 * cp-support.c (replace_typedefs): Handle
9253 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9254 * python/py-type.c (typy_lookup_type): Likewise.
9255
9256 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9257
9258 PR gdb/14441
9259 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9260 * parse.c (insert_type): Change assert statement.
9261 (follow_types): Handle rvalue reference types.
9262 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9263 constant.
9264
9265 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9266
9267 PR gdb/14441
9268 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9269 value_ref() interface.
9270 * c-valprint.c (c_value_print): Likewise.
9271 * infcall.c (value_arg_coerce): Likewise.
9272 * python/py-value.c (valpy_reference_value): Likewise.
9273 * valops.c (value_cast, value_reinterpret_cast)
9274 (value_dynamic_cast, typecmp): Likewise.
9275 (value_ref): Parameterize by kind of return value reference type.
9276 * value.h (value_ref): Add new parameter "refcode".
9277
9278 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9279
9280 PR gdb/14441
9281 * dwarf2read.c (read_tag_reference_type): Use
9282 lookup_lvalue_reference_type() instead of lookup_reference_type().
9283 * eval.c (evaluate_subexp_standard): Likewise.
9284 * f-exp.y: Likewise.
9285 * gdbtypes.c (make_reference_type, lookup_reference_type):
9286 Generalize with rvalue reference types.
9287 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9288 convenience wrappers for lookup_reference_type().
9289 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9290 reference kind parameter.
9291 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9292 wrappers for lookup_reference_type().
9293 * guile/scm-type.c (gdbscm_type_reference): Use
9294 lookup_lvalue_reference_type() instead of lookup_reference_type().
9295 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9296 * parse.c (follow_types): Likewise.
9297 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9298 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9299 Likewise.
9300 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9301 (gdbpy_invoke_xmethod): Likewise.
9302 * stabsread.c: Provide extra argument to make_reference_type()
9303 call.
9304 * valops.c (value_ref, value_rtti_indirect_type): Use
9305 lookup_lvalue_reference_type() instead of lookup_reference_type().
9306
9307 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9308
9309 PR gdb/14441
9310 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9311 (TYPE_IS_REFERENCE): New macro.
9312 (struct type): Add rvalue_reference_type field.
9313 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9314
9315 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9316
9317 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9318 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9319 New function definition.
9320 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9321 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9322 New function declaration.
9323 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9324 * mi/mi-interp.h: New file.
9325 * solib.c (info_sharedlibrary_command): Replace for loop with
9326 ALL_SO_LIBS macro
9327 * solib.h (update_solib_list): New function declaration.
9328 (so_list_head): Move macro.
9329 * solist.h (ALL_SO_LIBS): New macro.
9330
9331 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9332
9333 * infcmd.c (post_create_inferior): Remove unused argument in
9334 call to solib_add.
9335 * remote.c (remote_start_remote): Likewise.
9336 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9337 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9338 (enable_break): Likewise.
9339 * solib.c (update_solib_list): Remove unused target argument
9340 and its documentation.
9341 (solib_add): Remove unused target argument. Remove unused
9342 argument in call to update_solib_list.
9343 (info_sharedlibrary_command): Remove unused argument in call
9344 to update_solib_list.
9345 (sharedlibrary_command): Remove unused argument in call to
9346 solib_add.
9347 (handle_solib_event): Likewise.
9348 (reload_shared_libraries): Likewise.
9349 * solib.h (solib_add): Remove unused target argument.
9350
9351 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9352
9353 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9354 (s390_displaced_step_fixup): Cover relative branches with the
9355 default fixup handling. This fixes lack of support for some
9356 relative branch instructions.
9357
9358 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9359
9360 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9361 ptid from regcache.
9362
9363 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9364
9365 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9366 i386_darwin_store_inferior_registers): Use ptid from regcache.
9367
9368 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9369
9370 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9371 i386bsd_store_inferior_registers): Use ptid from regcache.
9372
9373 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9374
9375 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9376 hppaobsd_store_registers): Use ptid from regcache.
9377
9378 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9379
9380 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9381 hppanbsd_store_registers): Use ptid from regcache.
9382
9383 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9384
9385 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9386 from regcache. Use get_ptrace_pid.
9387
9388 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9389
9390 * corelow.c (get_core_register_section): Use ptid from regcache,
9391 update doc.
9392
9393 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9394
9395 * bsd-uthread.c (bsd_uthread_fetch_registers,
9396 bsd_uthread_store_registers): Use ptid from regcache, set and
9397 restore inferior_ptid.
9398
9399 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9400
9401 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9402 fetch_fp_regs, store_register, store_regs, store_fp_register,
9403 store_fp_regs): Use ptid from regcache.
9404
9405 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9406
9407 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9408 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9409 store_vfp_regs): Use ptid from regcache.
9410
9411 2017-03-17 Pedro Alves <palves@redhat.com>
9412
9413 PR remote/21188
9414 * ser-base.c (ser_base_wait_for): Add comment.
9415 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9416 version.
9417 * ser-unix.c (hardwire_raw): Remove reference to
9418 scb->current_timeout.
9419 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9420 (hardwire_ops): Install ser_base_readchar instead of
9421 hardwire_readchar.
9422 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9423 Remove fields.
9424
9425 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9426
9427 PR gdb/19637
9428 * python/lib/gdb/printer/bound_registers.py: Add support for
9429 Python 3.
9430
9431 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9432
9433 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9434 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9435 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9436 byte_offset to subobj_byte_offset. Fix the handling of
9437 DWARF_VALUE_STACK on big-endian targets when coming via an
9438 implicit pointer.
9439 (dwarf2_evaluate_loc_desc): Adjust call to
9440 dwarf2_evaluate_loc_desc_full.
9441 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9442 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9443
9444 2017-03-16 Yao Qi <yao.qi@linaro.org>
9445
9446 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9447 and REVSH instructions.
9448
9449 2017-03-16 Yao Qi <yao.qi@linaro.org>
9450
9451 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9452 (arm_record_test): Declare.
9453 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9454 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9455 align with the manual.
9456 (thumb_record_misc): Adjust the code order to align with the
9457 manual.
9458 (thumb2_record_decode_insn_handler): Fix instruction matching.
9459 (instruction_reader_thumb): New class.
9460 (arm_record_test): New function.
9461
9462 2017-03-16 Yao Qi <yao.qi@linaro.org>
9463
9464 * arm-tdep.c (abstract_memory_reader): New class.
9465 (instruction_reader): New class.
9466 (extract_arm_insn): Add argument 'reader'. Callers updated.
9467 (decode_insn): Likewise.
9468
9469 2017-03-16 Doug Evans <dje@google.com>
9470
9471 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9472 member. Change type of TYPE member to SCM. All uses updated.
9473 (lsscm_make_lazy_string_smob): Add assert.
9474 (lsscm_make_lazy_string): Flag bad length values.
9475 (lsscm_elt_type): New function.
9476 (gdbscm_lazy_string_to_value): Rewrite to use
9477 lsscm_safe_lazy_string_to_value.
9478 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9479 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9480 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9481 in incoming type.
9482 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9483 * guile/scm-type.c (tyscm_scm_to_type): New function.
9484
9485 2017-03-15 Doug Evans <dje@google.com>
9486
9487 PR python/17728, python/18439, python/18779
9488 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9489 member. Change type of TYPE member to PyObject *. All uses updated.
9490 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9491 (gdbpy_create_lazy_string_object): Flag bad length values.
9492 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9493 Handle typedefs in incoming type.
9494 (stpy_lazy_string_elt_type): New function.
9495 (gdbpy_extract_lazy_string): Call it.
9496 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9497 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9498 typedefs in incoming type.
9499
9500 2017-03-16 Doug Evans <dje@google.com>
9501
9502 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9503 * guile/scm-type.c (tyscm_scm_to_type): New function.
9504
9505 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9506
9507 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9508 "ULONGEST" for "skip".
9509
9510 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9511
9512 PR gdb/21220
9513 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9514 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9515 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9516 over ptrace peek/poke until end of buffer or error.
9517
9518 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9519
9520 * parse.c (length_of_subexp): Make static.
9521 * parser-defs.h (length_of_subexp): Remove.
9522
9523 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9524
9525 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9526 as well.
9527
9528 2017-03-14 Pedro Alves <palves@redhat.com>
9529
9530 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9531 (main): Use std::unique_ptr. Remove calls to
9532 cp_demangled_name_parse_free.
9533
9534 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9537 alphabsd_store_inferior_registers): Use regcache->ptid instead
9538 of inferior_ptid.
9539
9540 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9541
9542 * aix-thread.c (aix_thread_fetch_registers,
9543 aix_thread_store_registers): Use regcache->ptid instead of
9544 inferior_ptid.
9545
9546 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9547
9548 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9549 store_gregs_to_thread, fetch_fpregs_from_thread,
9550 store_fpregs_to_thread): Use regcache->ptid instead of
9551 inferior_ptid.
9552
9553 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9554
9555 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9556 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9557 instead of inferior_ptid.
9558
9559 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9560
9561 * target.c (target_fetch_registers, target_store_registers): Add
9562 assert.
9563
9564 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9565
9566 * regcache.h (regcache_get_ptid): New function.
9567 * regcache.c (regcache_get_ptid): New function.
9568
9569 2017-03-13 Mark Wielaard <mark@klomp.org>
9570
9571 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9572
9573 2017-03-10 Keith Seitz <keiths@redhat.com>
9574
9575 PR c++/8218
9576 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9577
9578 2017-03-08 Pedro Alves <palves@redhat.com>
9579
9580 PR gdb/18360
9581 * infrun.c (start_step_over, do_target_resume, resume)
9582 (restart_threads): Assert we're not resuming a thread that is
9583 meant to be stopped.
9584 (infrun_thread_stop_requested_callback): Delete.
9585 (infrun_thread_stop_requested): If the thread is internally
9586 stopped, queue a pending stop event and clear the thread's
9587 inline-frame state.
9588 (handle_stop_requested): New function.
9589 (handle_syscall_event, handle_inferior_event_1): Use
9590 handle_stop_requested.
9591 (handle_stop_requested): New function.
9592 (handle_signal_stop): Set the thread's stop_signal here instead of
9593 at caller.
9594 (finish_step_over): Clear step over info unconditionally.
9595 (handle_signal_stop): If the user had interrupted the event
9596 thread, consider the stop a random signal.
9597 (handle_signal_stop) <signal arrived while stepping over
9598 breakpoint>: Don't restart threads here.
9599 (stop_waiting): Don't clear step-over info here.
9600
9601 2017-03-08 Pedro Alves <palves@redhat.com>
9602
9603 PR 21206
9604 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9605 goes to argument 2, not 1.
9606
9607 2017-03-08 Pedro Alves <palves@redhat.com>
9608
9609 PR cli/21218
9610 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9611 display_gdb_prompt.
9612 (command_line_input): Add comment.
9613
9614 2017-03-08 Pedro Alves <palves@redhat.com>
9615
9616 PR tui/21216
9617 * tui/tui-file.c (tui_file::write): New.
9618 * tui/tui-file.h (tui_file): Override "write".
9619 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9620 factored out from ...
9621 (tui_puts): ... here.
9622 (tui_putc): Use them.
9623 (tui_write): New function.
9624 * tui/tui-io.h (tui_write): Declare.
9625
9626 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9627
9628 * Makefile.in (SFILES): Replace "environ.c" with
9629 "common/environ.c".
9630 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9631 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9632 to...
9633 * common/environ.c: ... here.
9634 * environ.h: Moved to...
9635 * common/environ.h: ... here.
9636
9637 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9638
9639 * gdbarch.sh (pstring_ptr): New static function.
9640 (gdbarch_disassembler_options): Use it.
9641 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9642 not valid_disassembler_option->name.
9643 * gdbarch.c: Regenerate.
9644
9645 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9646
9647 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9648
9649 2017-03-07 Pedro Alves <palves@redhat.com>
9650
9651 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9652
9653 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9654
9655 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9656 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9657 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9658 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9659
9660 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9661
9662 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9663
9664 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9665
9666 * remote.c (remote_add_target_side_commands): Use range-based
9667 for loop.
9668
9669 2017-03-03 Yao Qi <yao.qi@linaro.org>
9670
9671 PR gdb/21165
9672 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9673 value is lazy.
9674 * valprint.c (common_val_print): Likewise.
9675
9676 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9677
9678 * NEWS: Mention new set/show disassembler-options commands.
9679 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9680 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9681 (prospective_options): New static variable.
9682 (gdb_disassembler::gdb_disassembler): Initialize
9683 m_di.disassembler_options.
9684 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9685 (get_disassembler_options): New function.
9686 (set_disassembler_options): Likewise.
9687 (set_disassembler_options_sfunc): Likewise.
9688 (show_disassembler_options_sfunc): Likewise.
9689 (disassembler_options_completer): Likewise.
9690 (_initialize_disasm): Likewise.
9691 * disasm.h (get_disassembler_options): New prototype.
9692 (set_disassembler_options): Likewise.
9693 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9694 (gdbarch_verify_disassembler_options): Likewise.
9695 * gdbarch.c: Regenerate.
9696 * gdbarch.h: Likewise.
9697 * arm-tdep.c (num_disassembly_options): Delete.
9698 (set_disassembly_style): Likewise.
9699 (arm_disassembler_options): New static variable.
9700 (set_disassembly_style_sfunc): Convert short style name into long
9701 option name. Call set_disassembler_options.
9702 (show_disassembly_style_sfunc): New function.
9703 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9704 set_gdbarch_verify_disassembler_options.
9705 (_initialize_arm_tdep): Delete regnames variable and update callers.
9706 (arm_disassembler_options): Initialize.
9707 (disasm_options): New variable.
9708 (num_disassembly_options): Rename from this...
9709 (num_disassembly_styles): ...to this. Compute by scanning through
9710 disasm_options.
9711 (valid_disassembly_styles): Initialize using disasm_options.
9712 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9713 set_arm_regname_option.
9714 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9715 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9716 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9717 set_gdbarch_verify_disassembler_options.
9718 * s390-tdep.c (s390_disassembler_options): New static variable.
9719 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9720 set_gdbarch_verify_disassembler_options.
9721
9722 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9723
9724 * remote.c (remote_add_target_side_condition): Remove "struct"
9725 keyword from range-based for loop.
9726
9727 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9728
9729 * remote.c (remote_add_target_side_condition): Use range-based
9730 for loop. Update comment.
9731
9732 2017-02-27 Yao Qi <yao.qi@linaro.org>
9733
9734 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9735
9736 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9737
9738 * regcache.c (regcache_raw_update): New function.
9739 (regcache_raw_read): Move code to regcache_raw_update.
9740 * regcache.h (regcache_raw_update): New declaration.
9741 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9742
9743 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9744
9745 * dwarf2read.c (create_debug_type_hash_table): Initialize
9746 header.signature and header.type_offset_in_tu.
9747
9748 2017-02-24 Pedro Alves <palves@redhat.com>
9749
9750 * symtab.c (make_file_symbol_completion_list_1): Use
9751 add_symtab_completions.
9752
9753 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9754
9755 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9756
9757 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9758
9759 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9760 I386_MAX_REGISTER_SIZE.
9761 (i386_pseudo_register_write): Likewise.
9762 (i386_process_record): Likewise.
9763 * i387-tdep.c (i387_supply_xsave): Likewise.
9764 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9765 (store_register): Likewise.
9766
9767 2017-02-23 Pedro Alves <palves@redhat.com>
9768
9769 * ada-lang.c: Include "common/function-view.h".
9770 (ada_iterate_over_symbols): Adjust to use function_view as
9771 callback type.
9772 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9773 (ada_make_symbol_completion_list): Use a lambda.
9774 (ada_exc_search_name_matches): Delete.
9775 (name_matches_regex): New.
9776 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9777 * compile/compile-c-support.c: Include "common/function-view.h".
9778 (print_one_macro): Change prototype to accept a ui_file pointer.
9779 (write_macro_definitions): Use a lambda.
9780 * dwarf2read.c: Include "common/function-view.h".
9781 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9782 (dw2_expand_symtabs_matching): Adjust to use function_view as
9783 callback type.
9784 * language.h: Include "common/function-view.h".
9785 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9786 function_view as callback type.
9787 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9788 * linespec.c: Include "common/function-view.h".
9789 (collect_info::add_symbol): New method.
9790 (struct symbol_and_data_callback, iterate_inline_only, struct
9791 symbol_matcher_data, iterate_name_matcher): Delete.
9792 (iterate_over_all_matching_symtabs): Adjust to use function_view
9793 as callback type and lambdas.
9794 (iterate_over_file_blocks): Adjust to use function_view as
9795 callback type.
9796 (decode_compound_collector): Now a class with private fields.
9797 (decode_compound_collector::release_symbols): New method.
9798 (collect_one_symbol): Rename to...
9799 (decode_compound_collector::operator()): ... this and adjust.
9800 (lookup_prefix_sym): decode_compound_collector construction bits
9801 move to decode_compound_collector ctor. Pass the
9802 decode_compound_collector object directly as callback. Remove
9803 cleanups and use decode_compound_collector::release_symbols
9804 instead.
9805 (symtab_collector): Now a class with private fields.
9806 (symtab_collector::release_symtabs): New method.
9807 (add_symtabs_to_list): Rename to...
9808 (symtab_collector::operator()): ... this and adjust.
9809 (collect_symtabs_from_filename): symtab_collector construction
9810 bits move to symtab_collector ctor. Pass the symtab_collector
9811 object directly as callback. Remove cleanups and use
9812 symtab_collector::release_symtabs instead.
9813 (collect_symbols): Delete.
9814 (add_matching_symbols_to_info): Use lambdas.
9815 * macrocmd.c (print_macro_callback): Delete.
9816 (info_macro_command): Use a lambda.
9817 (info_macros_command): Pass print_macro_definition as callable
9818 directly.
9819 (print_one_macro): Remove 'ignore' parameter.
9820 (macro_list_command): Adjust.
9821 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9822 (macro_for_each_data::user_data): Delete field.
9823 (foreach_macro): Adjust to call the function_view.
9824 (macro_for_each): Adjust to use function_view as callback type.
9825 (foreach_macro_in_scope): Adjust to call the function_view.
9826 (macro_for_each_in_scope): Adjust to use function_view as callback
9827 type.
9828 * macrotab.h: Include "common/function-view.h".
9829 (macro_callback_fn): Declare a prototype instead of a pointer.
9830 Remove "user_data" parameter.
9831 (macro_for_each, macro_for_each_in_scope): Adjust to use
9832 function_view as callback type.
9833 * psymtab.c (partial_map_expand_apply)
9834 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9835 Adjust to use function_view as callback type and to return bool.
9836 (psym_expand_symtabs_matching): Adjust to use function_view as
9837 callback types.
9838 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9839 to use function_view as callback type and to return bool.
9840 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9841 callback types.
9842 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9843 as callback types.
9844 * symfile.h: Include "common/function-view.h".
9845 (expand_symtabs_file_matcher_ftype)
9846 (expand_symtabs_symbol_matcher_ftype)
9847 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9848 return bool.
9849 (quick_symbol_functions::map_symtabs_matching_filename)
9850 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9851 function_view as callback type and return bool.
9852 (expand_symtabs_matching): Adjust to use function_view as callback
9853 type.
9854 (maintenance_expand_name_matcher)
9855 (maintenance_expand_file_matcher): Delete.
9856 (maintenance_expand_symtabs): Use lambdas.
9857 * symtab.c (iterate_over_some_symtabs): Adjust to use
9858 function_view as callback types and return bool.
9859 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9860 of a cleanup.
9861 (lookup_symtab_callback): Delete.
9862 (lookup_symtab): Use a lambda.
9863 (iterate_over_symbols): Adjust to use function_view as callback
9864 type.
9865 (struct search_symbols_data, search_symbols_file_matches)
9866 (search_symbols_name_matches): Delete.
9867 (search_symbols): Use a pair of lambdas.
9868 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9869 (symtab_expansion_callback): Delete.
9870 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9871 * symtab.h: Include "common/function-view.h".
9872 (iterate_over_some_symtabs): Adjust to use function_view as
9873 callback type and return bool.
9874 (iterate_over_symtabs): Adjust to use function_view as callback
9875 type.
9876 (symbol_found_callback_ftype): Remove 'data' parameter and return
9877 bool.
9878 (iterate_over_symbols): Adjust to use function_view as callback
9879 type.
9880
9881 2017-02-23 Pedro Alves <palves@redhat.com>
9882
9883 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9884 (%.o) <unittests/%.c>: New pattern.
9885 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9886 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9887 * common/function-view.h: New file.
9888 * unittests/function-view-selftests.c: New file.
9889 * configure: Regenerate.
9890
9891 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9892
9893 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9894 inferior_ptid.
9895 * go32-nat.c (go32_thread_alive): Likewise.
9896
9897 2017-02-23 Yao Qi <yao.qi@linaro.org>
9898
9899 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9900 delete.
9901
9902 2017-02-23 Yao Qi <yao.qi@linaro.org>
9903
9904 * varobj.c (varobj_clear_saved_item): Use delete instead of
9905 xfree.
9906 (update_dynamic_varobj_children): Likewise.
9907
9908 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9909
9910 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9911
9912 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9913
9914 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9915 m_enum_value to 0 in default constructor.
9916
9917 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9918
9919 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9920 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9921 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9922 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9923 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9924 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9925 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9926 IS_STORE_CONDITIONAL_INSN.
9927
9928 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9929
9930 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9931
9932 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9933
9934 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9935
9936 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9937
9938 * dwarf2read.c (skip_one_die, read_attribute_value)
9939 (dwarf2_const_value_attr, dump_die_shallow)
9940 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9941 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9942
9943 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9944
9945 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9946 (dwarf_parse_macro_header): Accept DWARF version 5.
9947 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9948
9949 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9950
9951 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9952 DW_AT_GNU_*.
9953 * common/common-exceptions.h (enum errors): Likewise.
9954 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9955 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9956 (dwarf_expr_context::execute_stack_op): Likewise.
9957 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9958 Likewise.
9959 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9960 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9961 (show_entry_values_debug, call_site_to_target_addr)
9962 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9963 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9964 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9965 (value_of_dwarf_block_entry, indirect_pieced_value)
9966 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9967 (disassemble_dwarf_expression): Likewise.
9968 * dwarf2read.c (process_die, inherit_abstract_dies)
9969 (read_call_site_scope): Likewise.
9970 * gdbtypes.h (struct func_type, struct call_site_parameter)
9971 (struct call_site): Likewise.
9972 * stack.c (read_frame_arg): Likewise.
9973 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9974
9975 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * defs.h (read_unsigned_leb128): New declaration.
9978 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9979 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9980 (dwarf2_find_location_expression): Call also
9981 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9982 * dwarf2loc.h (dwarf2_version): New declaration.
9983 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9984 rnglists.
9985 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9986 .debug_rnglists.
9987 (struct dwop_section_names): Add loclists_dwo.
9988 (dwop_section_names): Add .debug_loclists.dwo.
9989 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9990 (struct dwarf2_per_cu_data): Add dwarf_version.
9991 (struct dwo_sections): Add loclists.
9992 (struct attr_abbrev): Add implicit_const.
9993 (read_indirect_line_string): New declaration.
9994 (read_unsigned_leb128): Delete declaration.
9995 (rcuh_kind): New definition.
9996 (read_and_check_comp_unit_head): Change parameter
9997 is_debug_types_section to section_kind.
9998 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9999 (read_comp_unit_head): Change parameter abfd to section, add parameter
10000 section_kind. Handle DWARF-5.
10001 (error_check_comp_unit_head): Accept also DWARF version 5.
10002 (read_and_check_comp_unit_head): Change parameter
10003 is_debug_types_section to section_kind.
10004 (read_and_check_type_unit_head): Delete function.
10005 (read_abbrev_offset): Handle DWARF-5.
10006 (create_debug_type_hash_table): Add parameter section_kind. Process
10007 only DW_UT_type. Use signature and type_offset_in_tu from struct
10008 comp_unit_head.
10009 (create_debug_types_hash_table): Update create_debug_type_hash_table
10010 caller.
10011 (create_all_type_units): Call create_debug_type_hash_table.
10012 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10013 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10014 caller.
10015 (skip_one_die): Handle DW_FORM_implicit_const.
10016 (dwarf2_rnglists_process): New function.
10017 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10018 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10019 (read_attribute_value): Handle DW_FORM_implicit_const,
10020 DW_FORM_line_strp.
10021 (read_attribute): Handle DW_FORM_implicit_const.
10022 (read_indirect_string_at_offset_from): New function from
10023 read_indirect_string_at_offset.
10024 (read_indirect_string_at_offset): Call
10025 read_indirect_string_at_offset_from.
10026 (read_indirect_line_string_at_offset): New function.
10027 (read_indirect_string): New function comment.
10028 (read_indirect_line_string): New function.
10029 (read_unsigned_leb128): Make it global.
10030 (dwarf2_string_attr): Handle DWARF-5.
10031 (add_include_dir_stub, read_formatted_entries): New functions.
10032 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10033 Handle DWARF-5.
10034 (per_cu_header_read_in): Update read_comp_unit_head caller.
10035 (dwarf2_version): New function.
10036 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10037 rnglists.
10038 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10039 fields.
10040
10041 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10042
10043 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10044
10045 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10046
10047 * dwarf2read.c (dwarf2_ranges_process): New function from
10048 dwarf2_ranges_read.
10049 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10050 dwarf2_ranges_process.
10051
10052 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 * dwarf2read.c (create_debug_type_hash_table): New function from
10055 create_debug_types_hash_table.
10056 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10057 (create_all_type_units, open_and_init_dwo_file): Update
10058 create_debug_types_hash_table callers.
10059
10060 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10061
10062 PR gdb/16188
10063 * fork-child.c (trace_start_error): Fix thinko. va_end should
10064 refer to 'ap', not 'args'.
10065
10066 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10067 Pedro Alves <palves@redhat.com>
10068
10069 PR gdb/16188
10070 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10071 calls succeeded.
10072 * fork-child.c (trace_start_error): New function.
10073 (trace_start_error_with_name): Likewise.
10074 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10075 * inf-ptrace.c (inf_ptrace_me): Likewise.
10076 * inferior.h (trace_start_error): New prototype.
10077 (trace_start_error_with_name): Likewise.
10078
10079 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10080
10081 PR gdb/21164
10082 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10083 NULL before using it.
10084 * symmisc.c (maintenance_print_symbols): Likewise.
10085 (maintenance_print_msymbols): Likewise.
10086
10087 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10088
10089 * NEWS: Add record Python bindings entry.
10090
10091 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10092
10093 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10094 py-record-full.o.
10095 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10096 * python/py-record-btrace.c, python/py-record-btrace.h,
10097 python/py-record-full.c, python/py-record-full.h: New file.
10098 * python/py-record.c: Add include for py-record-btrace.h and
10099 py-record-full.h.
10100 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10101 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10102 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10103 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10104 New definition.
10105 (gdbpy_initialize_btrace): New export.
10106 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10107
10108 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10109
10110 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10111 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10112 * python/py-record.c: New file.
10113 * python/python-internal.h (gdbpy_start_recording,
10114 gdbpy_current_recording, gdpy_stop_recording,
10115 gdbpy_initialize_record): New export.
10116 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10117 (python_GdbMethods): Add gdbpy_start_recording,
10118 gdbpy_current_recording and gdbpy_stop_recording.
10119
10120 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10121
10122 * record-btrace.c (record_btrace_record_method): New function.
10123 (init_record_btrace_ops): Initialize to_record_method.
10124 * record-full.c (record_full_record_method): New function.
10125 (init_record_full_ops, init_record_full_core_ops): Add
10126 record_full_record_method.
10127 * record.h (enum record_method): New enum.
10128 * target-debug.h (target_debug_print_enum_record_method: New define.
10129 * target-delegates.c: Regenerate.
10130 * target.c (target_record_method): New function.
10131 * target.h: Include record.h.
10132 (struct target_ops) <to_record_method>: New field.
10133 (target_record_method): New export.
10134
10135 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10136
10137 * record.h (record_start, record_stop): New export.
10138 * record.c (record_start, record_stop): New function.
10139
10140 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10141
10142 * btrace.c (btrace_fetch): Copy function call segments pointer
10143 into a vector.
10144 (btrace_clear): Clear the vector.
10145 (btrace_find_insn_by_number): Use binary search to find the correct
10146 function call segment.
10147 * btrace.h (brace_fun_p): New typedef.
10148 (struct btrace_thread_info) <functions>: New field.
10149
10150 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10151
10152 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10153 * btrace.c (btrace_decode_error): ... here. New function.
10154 * btrace.h (btrace_decode_error): New export.
10155
10156 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10157
10158 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10159 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10160 btrace_find_insn_by_number): Remove special case for gaps.
10161 * btrace.h (btrace_insn_get_error): New export.
10162 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10163 * record-btrace.c (btrace_insn_history): Print number for gaps.
10164 (record_btrace_info, record_btrace_goto): Handle gaps.
10165
10166 2017-02-14 Tom Tromey <tom@tromey.com>
10167
10168 PR python/13598:
10169 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10170 event.
10171 * python/py-evts.c (gdbpy_initialize_py_events): Add
10172 before_prompt registry.
10173 * python/py-events.h (events_object) <before_prompt>: New field.
10174
10175 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10176
10177 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10178
10179 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10180
10181 * symfile (_initialize_symfile): Add usage text to the load command's
10182 help text.
10183
10184 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10185
10186 * utils.c (defaulted_query): Don't query on secondary UIs.
10187
10188 2017-02-10 Tom Tromey <tom@tromey.com>
10189
10190 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10191
10192 2017-02-10 Tom Tromey <tom@tromey.com>
10193
10194 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10195 "cleanup" local.
10196 * python/py-type.c (typy_legacy_template_argument): Remove
10197 unnecessary "cleanup" local.
10198
10199 2017-02-10 Tom Tromey <tom@tromey.com>
10200
10201 * python/python.c (do_start_initialization): New function, from
10202 _initialize_python.
10203 (_initialize_python): Call do_start_initialization.
10204 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10205 goto.
10206
10207 2017-02-10 Tom Tromey <tom@tromey.com>
10208
10209 * python/py-prettyprint.c (pretty_print_one_value): Use
10210 gdbpy_ref.
10211
10212 2017-02-10 Tom Tromey <tom@tromey.com>
10213
10214 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10215 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10216 gdbpy_ref.
10217 * python/py-type.c (field_new): Use gdbpy_ref.
10218 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10219 gdbpy_ref.
10220 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10221 (py_free_pspace): Likewise.
10222 (pspace_to_pspace_object): Likewise.
10223 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10224 (py_free_objfile): Likewise.
10225 (objfile_to_objfile_object): Likewise.
10226 * python/py-inferior.c (delete_thread_object): Use
10227 gdbpy_ref.
10228 (infpy_read_memory): Likewise.
10229 (py_free_inferior): Likewise.
10230 * python/py-evtregistry.c (create_eventregistry_object): Use
10231 gdbpy_ref.
10232 * python/py-event.c (create_event_object): Use gdbpy_ref.
10233
10234 2017-02-10 Tom Tromey <tom@tromey.com>
10235
10236 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10237 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10238 used.
10239 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10240 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10241 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10242 python/py-framefilter.c, python/py-function.c,
10243 python/py-inferior.c, python/py-infevents.c,
10244 python/py-linetable.c, python/py-newobjfileevent.c,
10245 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10246 python/py-signalevent.c, python/py-stopevent.c,
10247 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10248 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10249 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10250 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10251
10252 2017-02-10 Tom Tromey <tom@tromey.com>
10253
10254 * ui-out.h (ui_out_emit_type): New class.
10255 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10256 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10257 and ui_out_emit_tuple.
10258 (enumerate_locals): Likewise.
10259 (py_mi_print_variables, py_print_locals, py_print_args): Use
10260 ui_out_emit_list.
10261 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10262 ui_out_emit_list.
10263 * common/gdb_optional.h: New file.
10264
10265 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10266
10267 * MAINTAINERS (Write After Approval): Update my e-mail address.
10268
10269 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10270
10271 PR gdb/21122
10272 * breakpoint.c (_initialize_breakpoint): Update the help description
10273 of the 'commands' command to indicate that it takes a list argument.
10274
10275 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10276
10277 * interps.c (current_interp_set_logging): Remove "return".
10278
10279 2017-02-09 Gary Benson <gbenson@redhat.com>
10280
10281 * symtab.c (add_symtab_completions): Prevent NULL pointer
10282 dereference.
10283
10284 2017-02-08 Pedro Alves <palves@redhat.com>
10285
10286 * interps.c (interp::interp): Remove reference to quiet_p.
10287 (interp_set): Make static. Remove dead "Switching to" output
10288 code.
10289 (interp_quiet_p, interp_set_quiet): Delete.
10290 (interpreter_exec_cmd): Don't set the interpreter quiet.
10291 * interps.h (interp_quiet_p): Make static.
10292 (class interp) <quiet_p>: Remove field
10293
10294 2017-02-08 Jerome Guitton <guitton@adacore.com>
10295
10296 * cli/cli-decode.c (find_command_name_length): Make it extern.
10297 * cli/cli-decode.h (find_command_name_length): Declare.
10298 * cli/cli-script.c (command_name_equals, line_first_arg):
10299 New functions.
10300 (process_next_line): Use cli-decode to parse command names.
10301 (build_command_line): Make args a constant pointer.
10302
10303 2017-02-08 Jerome Guitton <guitton@adacore.com>
10304
10305 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10306 Remove case-insensitive search.
10307
10308 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10309
10310 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10311 at the end of the line. Avoids an ARI warning.
10312
10313 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10314
10315 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10316 rdseed instructions.
10317 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10318
10319 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10320
10321 PR tdep/20936
10322 Provide and use sparc32 and sparc64 target description XML files.
10323 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10324 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10325 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10326 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10327 * features/sparc/sparc32-solaris.xml: New file.
10328 * features/sparc/sparc64-solaris.xml: New file.
10329 * features/sparc/sparc32-solaris.c: Generated.
10330 * features/sparc/sparc64-solaris.c: Generated.
10331 * sparc-tdep.h: Account for differences in target descriptions.
10332 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10333 (sparc32_register_type): Use target provided registers.
10334 (validate_tdesc_registers): New function.
10335 (sparc32_gdbarch_init): Use tdesc_has_registers.
10336 Set pseudoregister functions.
10337 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10338 (sparc64_register_type): Use target provided registers.
10339 (sparc64_init_abi): Set pseudoregister functions.
10340
10341 2017-02-03 Tom Tromey <tom@tromey.com>
10342
10343 PR rust/21097:
10344 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10345 with a single member.
10346
10347 2017-02-03 Pedro Alves <palves@redhat.com>
10348
10349 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10350 (cli_interp_base::~cli_interp_base): New.
10351 (cli_interp): New struct.
10352 (as_cli_interp): Cast the interp itself to cli_interp.
10353 (cli_interpreter_pre_command_loop): Rename to ...
10354 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10355 parameter.
10356 (cli_interpreter_init): Rename to ...
10357 (cli_interp::init): ... this. Remove 'self' parameter. Use
10358 boolean. Make extern.
10359 (cli_interpreter_resume): Rename to ...
10360 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10361 extern.
10362 (cli_interpreter_suspend): Rename to ...
10363 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10364 extern.
10365 (cli_interpreter_exec): Rename to ...
10366 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10367 extern.
10368 (cli_interpreter_supports_command_editing): Rename to ...
10369 (cli_interp_base::supports_command_editing): ... this. Remove
10370 'interp' parameter. Make extern.
10371 (cli_ui_out): Rename to ...
10372 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10373 Make extern.
10374 (cli_set_logging): Rename to ...
10375 (cli_interp_base::set_logging): ... this. Remove 'interp'
10376 parameter. Make extern.
10377 (cli_interp_procs): Delete.
10378 (cli_interp_factory): Adjust to use "new".
10379 * cli/cli-interp.h: Include "interps.h".
10380 (struct cli_interp_base): New struct.
10381 * interps.c (struct interp): Delete. Fields moved to interps.h.
10382 (interp_new): Delete.
10383 (interp::interp, interp::~interp): New.
10384 (interp_set): Use bool, and return void. Assume the interpreter
10385 has suspend, init and resume methods, and that the all return
10386 void.
10387 (set_top_level_interpreter): interp_set returns void.
10388 (interp_ui_out): Adapt.
10389 (current_interp_set_logging): Adapt.
10390 (interp_data): Delete.
10391 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10392 (interp_exec): Adapt.
10393 (top_level_interpreter_data): Delete.
10394 * interps.h (interp_init_ftype, interp_resume_ftype)
10395 (interp_suspend_ftype, interp_exec_ftype)
10396 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10397 (class interp): New.
10398 (interp_new): Delete.
10399 (interp_set): Now returns void. Use bool.
10400 (interp_data, top_level_interpreter_data): Delete.
10401 * mi/mi-common.h: Include interps.h.
10402 (class mi_interp): Inherit from interp. Define a ctor. Declare
10403 init, resume, suspect, exec, interp_ui_out, set_logging and
10404 pre_command_loop methods.
10405 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10406 (mi_interpreter_init): Rename to ...
10407 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10408 bool, return void and make extern. Adjust.
10409 (mi_interpreter_resume): ... Rename to ...
10410 (mi_interp::resume): ... this. Remove the 'data' parameter,
10411 return void and make extern. Adjust.
10412 (mi_interpreter_suspend): ... Rename to ...
10413 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10414 return void and make extern. Adjust.
10415 (mi_interpreter_exec): ... Rename to ...
10416 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10417 extern. Adjust.
10418 (mi_interpreter_pre_command_loop): ... Rename to ...
10419 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10420 parameter and make extern.
10421 (mi_on_normal_stop_1): Adjust.
10422 (mi_ui_out): Rename to ...
10423 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10424 parameter and make extern. Adjust.
10425 (mi_set_logging): Rename to ...
10426 (mi_interp::set_logging): ... this. Remove the 'interp'
10427 parameter and make extern. Adjust.
10428 (mi_interp_procs): Delete.
10429 (mi_interp_factory): Adjust to use 'new'.
10430 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10431 (mi_print_exception, mi_execute_command, mi_load_progress):
10432 Adjust.
10433 * tui/tui-interp.c (tui_interp): New class.
10434 (as_tui_interp): Return a tui_interp pointer.
10435 (tui_on_normal_stop, tui_on_signal_received)
10436 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10437 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10438 to use interp::interp_ui_out.
10439 (tui_init): Rename to ...
10440 (tui_interp::init): ... this. Remove the 'self' parameter, use
10441 bool, return void and make extern. Adjust.
10442 (tui_resume): Rename to ...
10443 (tui_interp::resume): ... this. Remove the 'data' parameter,
10444 return void and make extern. Adjust.
10445 (tui_suspend): Rename to ...
10446 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10447 return void and make extern. Adjust.
10448 (tui_ui_out): Rename to ...
10449 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10450 parameter, and make extern. Adjust.
10451 (tui_exec): Rename to ...
10452 (tui_interp::exec): ... this. Remove the 'data' parameter and
10453 make extern.
10454 (tui_interp_procs): Delete.
10455 (tui_interp_factory): Use "new".
10456
10457 2017-02-02 Tom Tromey <tom@tromey.com>
10458
10459 * rust-exp.y (ends_raw_string, space_then_number)
10460 (rust_identifier_start_p): Return bool.
10461 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10462 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10463 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10464 (rust_chartype_p): Return bool.
10465 (val_print_struct, rust_print_struct_def, rust_print_type):
10466 Update.
10467 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10468 Return bool.
10469
10470 2017-02-02 Tom Tromey <tom@tromey.com>
10471
10472 * rust-lang.c: Reindent.
10473
10474 2017-02-02 Tom Tromey <tom@tromey.com>
10475
10476 * rust-lang.h (rust_crate_for_block): Update.
10477 * rust-lang.c (rust_crate_for_block): Return std::string.
10478 (rust_get_disr_info): Use std:;string, not
10479 gdb::unique_xmalloc_ptr.
10480 * rust-exp.y (crate_name): Update.
10481
10482 2017-02-02 Pedro Alves <palves@redhat.com>
10483
10484 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10485 field out of gdb_disassembler_test and make it static.
10486
10487 2017-02-02 Pedro Alves <palves@redhat.com>
10488
10489 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10490 mi1_interp and mi_interp fields.
10491
10492 2017-02-02 Pedro Alves <palves@redhat.com>
10493
10494 * cli/cli-interp.c (struct saved_output_files, saved_output):
10495 Moved from cli/cli-logging.c.
10496 (cli_set_logging): New function.
10497 (cli_interp_procs): Install cli_set_logging.
10498 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10499 Declare.
10500 * cli/cli-logging.c (struct saved_output_files, saved_output):
10501 Moved to cli/cli-interp.c.
10502 (pop_output_files): Don't save outputs here.
10503 (make_logging_output): New function.
10504 (handle_redirections): Don't build tee nor save previous outputs
10505 here.
10506 * interps.c (current_interp_set_logging): Change prototype.
10507 Assume there's always a set_logging_proc method installed.
10508 * interps.h (interp_set_logging_ftype): Change prototype.
10509 (current_interp_set_logging): Change prototype and adjust comment.
10510 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10511 use make_logging_output.
10512 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10513 2017-02-02 Pedro Alves <palves@redhat.com>
10514
10515 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10516 from ...
10517 (set_logging_overwrite): ... here.
10518 (logging_no_redirect_file): Delete.
10519 (set_logging_redirect): Don't handle redirection on the fly.
10520 Instead warn that "logging off" / "logging on" is necessary.
10521 (pop_output_files): Delete references to logging_no_redirect_file.
10522 (show_logging_command): Always speak in terms of what will happen
10523 once logging is reenabled.
10524
10525 2017-02-02 Pedro Alves <palves@redhat.com>
10526
10527 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10528
10529 2017-02-02 Pedro Alves <palves@redhat.com>
10530
10531 * disasm.c (gdb_pretty_print_insn): Rename to ...
10532 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10533 Remove gdbarch parameter. Adapt to clear the object's buffers
10534 instead of allocating new buffers, and to print using the object's
10535 gdb_disassembler instead of calling gdb_print_insn.
10536 (dump_insns): Use gdb_pretty_print_disassembler.
10537 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10538 (gdb_pretty_print_disassembler): New class.
10539 * record-btrace.c (btrace_insn_history): Use
10540 gdb_pretty_print_disassembler.
10541
10542 2017-02-02 Pedro Alves <palves@redhat.com>
10543
10544 * ada-lang.c (type_as_string): Use string_file.
10545 * ada-valprint.c (ada_print_floating): Use string_file.
10546 * ada-varobj.c (ada_varobj_scalar_image)
10547 (ada_varobj_get_value_image): Use string_file.
10548 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10549 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10550 * breakpoint.c (update_inserted_breakpoint_locations)
10551 (insert_breakpoint_locations, reattach_breakpoints)
10552 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10553 (print_it_watchpoint): Use string_file.
10554 (save_breakpoints): Use stdio_file.
10555 * c-exp.y (oper): Use string_file.
10556 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10557 tee_file.
10558 (pop_output_files): Use delete.
10559 (handle_redirections): Use stdio_file and tee_file.
10560 * cli/cli-setshow.c (do_show_command): Use string_file.
10561 * compile/compile-c-support.c (c_compute_program): Use
10562 string_file.
10563 * compile/compile-c-symbols.c (generate_vla_size): Take a
10564 'string_file &' instead of a 'ui_file *'.
10565 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10566 of a 'ui_file *'. Use string_file.
10567 (generate_c_for_variable_locations): Take a 'string_file &'
10568 instead of a 'ui_file *'.
10569 * compile/compile-internal.h (generate_c_for_for_one_variable):
10570 Take a 'string_file &' instead of a 'ui_file *'.
10571 * compile/compile-loc2c.c (push, pushf, unary, binary)
10572 (print_label, pushf_register_address, pushf_register)
10573 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10574 'ui_file *'. Adjust.
10575 * compile/compile.c (compile_to_object): Use string_file.
10576 * compile/compile.h (compile_dwarf_expr_to_c)
10577 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10578 'ui_file *'.
10579 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10580 (replace_typedefs_qualified_name): Use string_file and
10581 obstack_copy0.
10582 * disasm.c (gdb_pretty_print_insn): Use string_file.
10583 (gdb_disassembly): Adjust reference the null_stream global.
10584 (do_ui_file_delete): Delete.
10585 (gdb_insn_length): Use null_stream.
10586 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10587 * dwarf2loc.c (dwarf2_compile_property_to_c)
10588 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10589 'string_file &' instead of a 'ui_file *'.
10590 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10591 * dwarf2read.c (do_ui_file_peek_last): Delete.
10592 (dwarf2_compute_name): Use string_file.
10593 * event-top.c (gdb_setup_readline): Use stdio_file.
10594 * gdbarch.sh (verify_gdbarch): Use string_file.
10595 * gdbtypes.c (safe_parse_type): Use null_stream.
10596 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10597 string_file.
10598 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10599 'string_file *' instead of a 'ui_file *'.
10600 (gdbscm_arch_disassemble): Use string_file.
10601 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10602 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10603 inherits from ui_file.
10604 (ioscm_file_port_delete, ioscm_file_port_rewind)
10605 (ioscm_file_port_put): Delete.
10606 (ioscm_file_port_write): Rename to ...
10607 (ioscm_file_port::write): ... this. Remove file_port_magic
10608 checks.
10609 (ioscm_file_port_new): Delete.
10610 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10611 ui_file_up.
10612 * guile/scm-type.c (tyscm_type_name): Use string_file.
10613 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10614 Use string_file.
10615 * infcmd.c (print_return_value_1): Use string_file.
10616 * infrun.c (print_target_wait_results): Use string_file.
10617 * language.c (add_language): Use string_file.
10618 * location.c (explicit_to_string_internal): Use string_file.
10619 * main.c (captured_main_1): Use null_file.
10620 * maint.c (maintenance_print_architecture): Use stdio_file.
10621 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10622 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10623 event_channel>: Change type to mi_console_file pointer.
10624 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10625 (mi_console_file_delete): Delete.
10626 (struct mi_console_file): Delete.
10627 (mi_console_file_magic): Delete.
10628 (mi_console_file_new): Delete.
10629 (mi_console_file::mi_console_file): New.
10630 (mi_console_file_delete): Delete.
10631 (mi_console_file_fputs): Delete.
10632 (mi_console_file::write): New.
10633 (mi_console_raw_packet): Delete.
10634 (mi_console_file::flush): New.
10635 (mi_console_file_flush): Delete.
10636 (mi_console_set_raw): Rename to ...
10637 (mi_console_file::set_raw): ... this.
10638 * mi/mi-console.h (class mi_console_file): New class.
10639 (mi_console_file_new, mi_console_set_raw): Delete.
10640 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10641 (mi_set_logging): Use delete and tee_file. Adjust.
10642 * mi/mi-main.c (output_register): Use string_file.
10643 (mi_cmd_data_evaluate_expression): Use string_file.
10644 (mi_cmd_data_read_memory): Use string_file.
10645 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10646 * mi/mi-out.c (mi_ui_out::main_stream): New.
10647 (mi_ui_out::rewind): Use main_stream and
10648 string_file.
10649 (mi_ui_out::put): Use main_stream and string_file.
10650 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10651 Allocate a 'string_file' instead.
10652 (mi_out_new): Don't allocate a mem_fileopen stream here.
10653 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10654 (mi_ui_out::main_stream): Declare method.
10655 * printcmd.c (eval_command): Use string_file.
10656 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10657 * python/py-arch.c (archpy_disassemble): Use string_file.
10658 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10659 * python/py-frame.c (frapy_str): Use string_file.
10660 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10661 Use string_file.
10662 * python/py-type.c (typy_str): Use string_file.
10663 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10664 * python/py-value.c (valpy_str): Use string_file.
10665 * record-btrace.c (btrace_insn_history): Use string_file.
10666 * regcache.c (regcache_print): Use stdio_file.
10667 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10668 * remote.c (escape_buffer): Use string_file.
10669 * rust-lang.c (rust_get_disr_info): Use string_file.
10670 * serial.c (serial_open_ops_1): Use stdio_file.
10671 (do_serial_close): Use delete.
10672 * stack.c (print_frame_arg): Use string_file.
10673 (print_frame_args): Remove local mem_fileopen stream, not used.
10674 (print_frame): Use string_file.
10675 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10676 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10677 Take a 'string_file *' instead of a 'ui_file *'.
10678 * top.c (new_ui): Use stdio_file and stderr_file.
10679 (free_ui): Use delete.
10680 (execute_command_to_string): Use string_file.
10681 (quit_confirm): Use string_file.
10682 * tracepoint.c (collection_list::append_exp): Use string_file.
10683 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10684 * tui/tui-file.c: Don't include "ui-file.h".
10685 (enum streamtype, struct tui_stream): Delete.
10686 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10687 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10688 (tui_file::tui_file): New method.
10689 (tui_file_fputs): Delete.
10690 (tui_file_get_strbuf): Delete.
10691 (tui_file::puts): New method.
10692 (tui_file_adjust_strbuf): Delete.
10693 (tui_file_flush): Delete.
10694 (tui_file::flush): New method.
10695 * tui/tui-file.h: Tweak intro comment.
10696 Include ui-file.h.
10697 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10698 (tui_file_adjust_strbuf): Delete declarations.
10699 (class tui_file): New class.
10700 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10701 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10702 (tui_register_format): Use string_stream.
10703 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10704 (tui_get_function_from_frame): Use string_file.
10705 * typeprint.c (type_to_string): Use string_file.
10706 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10707 (null_stream): New global.
10708 (ui_file_delete): Delete.
10709 (ui_file::ui_file): New.
10710 (null_file_isatty): Delete.
10711 (ui_file::~ui_file): New.
10712 (null_file_rewind): Delete.
10713 (ui_file::printf): New.
10714 (null_file_put): Delete.
10715 (null_file_flush): Delete.
10716 (ui_file::putstr): New.
10717 (null_file_write): Delete.
10718 (ui_file::putstrn): New.
10719 (null_file_read): Delete.
10720 (ui_file::putc): New.
10721 (null_file_fputs): Delete.
10722 (null_file_write_async_safe): Delete.
10723 (ui_file::vprintf): New.
10724 (null_file_delete): Delete.
10725 (null_file::write): New.
10726 (null_file_fseek): Delete.
10727 (null_file::puts): New.
10728 (ui_file_data): Delete.
10729 (null_file::write_async_safe): New.
10730 (gdb_flush, ui_file_isatty): Adjust.
10731 (ui_file_put, ui_file_rewind): Delete.
10732 (ui_file_write): Adjust.
10733 (ui_file_write_for_put): Delete.
10734 (ui_file_write_async_safe, ui_file_read): Adjust.
10735 (ui_file_fseek): Delete.
10736 (fputs_unfiltered): Adjust.
10737 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10738 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10739 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10740 (set_ui_file_data): Delete.
10741 (string_file::~string_file, string_file::write)
10742 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10743 (do_ui_file_as_string, ui_file_as_string): Delete.
10744 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10745 (struct mem_file): Delete.
10746 (mem_file_new): Delete.
10747 (stdio_file::stdio_file): New.
10748 (mem_file_delete): Delete.
10749 (stdio_file::stdio_file): New.
10750 (mem_fileopen): Delete.
10751 (stdio_file::~stdio_file): New.
10752 (mem_file_rewind): Delete.
10753 (stdio_file::set_stream): New.
10754 (mem_file_put): Delete.
10755 (stdio_file::open): New.
10756 (mem_file_write): Delete.
10757 (stdio_file_magic, struct stdio_file): Delete.
10758 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10759 (stdio_file::flush): New.
10760 (stdio_file_read): Rename to ...
10761 (stdio_file::read): ... this. Adjust.
10762 (stdio_file_write): Rename to ...
10763 (stdio_file::write): ... this. Adjust.
10764 (stdio_file_write_async_safe): Rename to ...
10765 (stdio_file::write_async_safe) ... this. Adjust.
10766 (stdio_file_fputs): Rename to ...
10767 (stdio_file::puts) ... this. Adjust.
10768 (stdio_file_isatty): Delete.
10769 (stdio_file_fseek): Delete.
10770 (stdio_file::isatty): New.
10771 (stderr_file_write): Rename to ...
10772 (stderr_file::write) ... this. Adjust.
10773 (stderr_file_fputs): Rename to ...
10774 (stderr_file::puts) ... this. Adjust.
10775 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10776 (stderr_file::stderr_file): New.
10777 (tee_file_magic): Delete.
10778 (struct tee_file): Delete.
10779 (tee_file::tee_file): New.
10780 (tee_file_new): Delete.
10781 (tee_file::~tee_file): New.
10782 (tee_file_delete): Delete.
10783 (tee_file_flush): Rename to ...
10784 (tee_file::flush): ... this. Adjust.
10785 (tee_file_write): Rename to ...
10786 (tee_file::write): ... this. Adjust.
10787 (tee_file::write_async_safe): New.
10788 (tee_file_fputs): Rename to ...
10789 (tee_file::puts): ... this. Adjust.
10790 (tee_file_isatty): Rename to ...
10791 (tee_file::isatty): ... this. Adjust.
10792 * ui-file.h (struct obstack, struct ui_file): Don't
10793 forward-declare.
10794 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10795 (ui_file_write_ftype)
10796 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10797 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10798 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10799 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10800 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10801 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10802 (set_ui_file_fseek): Delete.
10803 (ui_file_data, ui_file_delete, ui_file_rewind)
10804 (struct ui_file): New.
10805 (ui_file_up): New.
10806 (class null_file): New.
10807 (null_stream): Declare.
10808 (ui_file_write_for_put, ui_file_put): Delete.
10809 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10810 Delete.
10811 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10812 (gdb_fopen, tee_file_new): Delete.
10813 (struct string_file): New.
10814 (struct stdio_file): New.
10815 (stdio_file_up): New.
10816 (struct stderr_file): New.
10817 (class tee_file): New.
10818 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10819 of a 'ui_file *'. Adjust.
10820 * ui-out.h (class ui_out) <field_stream>: Likewise.
10821 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10822 (null_stream): Delete.
10823 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10824 Adjust.
10825 * utils.h (struct ui_file): Delete forward declaration..
10826 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10827 (error_stream): Take a 'string_file &' instead of a
10828 'ui_file *'.
10829 * varobj.c (varobj_value_get_print_value): Use string_file.
10830 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10831 * gdbarch.c: Regenerate.
10832
10833 2017-02-02 Pedro Alves <palves@redhat.com>
10834
10835 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10836 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10837 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10838 Adjust to call gdb_print_insn instead of
10839 gdb_disassembler::print_insn.
10840 (dump_insns, do_mixed_source_and_assembly_deprecated)
10841 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10842 'gdbarch' parameter. Remove gdb_disassembler parameter.
10843 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10844 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10845 declaration.
10846 (gdb_pretty_print_insn): Re-add declaration.
10847 * record-btrace.c (btrace_insn_history): Don't allocate a
10848 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10849
10850 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10851
10852 * disasm.h (gdb_disassembly): Remove file_string parameter.
10853 * disasm.c (gdb_disassembly): Likewise.
10854 * cli/cli-cmds.c (print_disassembly): Adapt.
10855 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10856 * stack.c (do_gdb_disassembly): Likewise.
10857
10858 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10859
10860 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10861 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10862 targets. And if the implicit value is longer than needed, extract
10863 the first bytes instead of the "least significant" ones.
10864
10865 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10868 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10869 (btrace_fetch): Assert can_access_registers_ptid.
10870 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10871 validate_registers_access.
10872
10873 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10874
10875 * gdbthread.h (can_access_registers_ptid): New.
10876 * thread.c (can_access_registers_ptid): New.
10877
10878 2017-02-01 Pedro Alves <palves@redhat.com>
10879
10880 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10881
10882 2017-01-31 Pedro Alves <palves@redhat.com>
10883
10884 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10885 Fix typos.
10886
10887 2017-01-31 Pedro Alves <palves@redhat.com>
10888
10889 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10890 not used.
10891
10892 2017-01-31 Pedro Alves <palves@redhat.com>
10893
10894 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10895
10896 2017-01-31 Pedro Alves <palves@redhat.com>
10897
10898 * common/scoped_restore.h
10899 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10900 change the value's parameter type to T2.
10901 (make_scoped_restore): Likewise.
10902
10903 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10904 Richard Henderson <rth@redhat.com>
10905
10906 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10907 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10908 GS_BASE for older kernels.
10909 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10910 GS_BASE for older kernels.
10911 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10912 and GS_BASE to the offset table.
10913 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10914 system register group.
10915 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10916 for older kernels.
10917 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10918 amd64 ABI.
10919 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10920 AMD64_GSBASE_REGNUM.
10921 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10922 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10923 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10924 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10925 i386/64bit-segments.xml in those rules.
10926 * features/i386/64bit-segments.xml: New file.
10927 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10928 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10929 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10930 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10931 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10932 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10933 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10934 * features/i386/amd64-avx-linux.c: Regenerated.
10935 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10936 * features/i386/amd64-avx-mpx.c: Regenerated.
10937 * features/i386/amd64-avx512-linux.c: Regenerated.
10938 * features/i386/amd64-linux.c: Regenerated.
10939 * features/i386/amd64-mpx-linux.c: Regenerated.
10940 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10941 * features/i386/i386-avx-mpx.c: Regenerated.
10942 * features/i386/x32-avx-linux.c: Regenerated.
10943 * features/i386/x32-avx512-linux.c: Regenerated.
10944 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10945 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10946 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10947 * regformats/i386/amd64-linux.dat: Regenerated.
10948 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10949 * regformats/i386/x32-avx-linux.dat: Regenerated.
10950 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10951 * regformats/i386/x32-linux.dat: Regenerated.
10952
10953 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10954
10955 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10956 Set to AMD64_NUM_REGS.
10957
10958 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10959
10960 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10961 that checks validity of a register number.
10962
10963 2017-01-27 Kees Cook <keescook@google.com>
10964
10965 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10966 fetch_fpregs if target has fpa registers.
10967 (arm_linux_store_inferior_registers): Call store_fpregs if target
10968 has fpa registers.
10969
10970 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10971
10972 * cris-tdep.c (cris_gdbarch_init): Remove check for
10973 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10974
10975 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10976
10977 * corelow.c (get_core_register_section): Check for regset
10978 existence before checking for REGSET_VARIABLE_SIZE.
10979
10980 2017-01-26 Yao Qi <yao.qi@linaro.org>
10981 Pedro Alves <palves@redhat.com>
10982
10983 PR gdb/20939
10984 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10985 call memory_error, save memaddr instead.
10986 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10987 negative, cal memory_error.
10988 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10989
10990 2017-01-26 Yao Qi <yao.qi@linaro.org>
10991
10992 * disasm-selftests.c (memory_error_test): New function.
10993 (_initialize_disasm_selftests): Register memory_error_test.
10994
10995 2017-01-26 Yao Qi <yao.qi@linaro.org>
10996
10997 * Makefile.in (SFILES): Add disasm-selftests.c and
10998 selftest-arch.c.
10999 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11000 * disasm-selftests.c: New file.
11001 * selftest-arch.c: New file.
11002 * selftest-arch.h: New file.
11003
11004 2017-01-26 Yao Qi <yao.qi@linaro.org>
11005
11006 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11007 to bfd_arch_mep. Don't return 0 if section is not
11008 found. Call print_insn_mep.
11009
11010 2017-01-26 Pedro Alves <palves@redhat.com>
11011 Yao Qi <yao.qi@linaro.org>
11012
11013 * arm-tdep.c: Include "disasm.h".
11014 (gdb_print_insn_arm): Update code to get gdbarch.
11015 * disasm.c (dis_asm_read_memory): Change it to
11016 gdb_disassembler::dis_asm_read_memory.
11017 (dis_asm_memory_error): Likewise.
11018 (dis_asm_print_address): Likewise.
11019 (gdb_pretty_print_insn): Change it to
11020 gdb_disassembler::pretty_print_insn.
11021 (dump_insns): Add one argument gdb_disassemlber. All
11022 callers updated.
11023 (do_mixed_source_and_assembly_deprecated): Likewise.
11024 (do_mixed_source_and_assembly): Likewise.
11025 (do_assembly_only): Likewise.
11026 (gdb_disassembler::gdb_disassembler): New.
11027 (gdb_disassembler::print_insn): New.
11028 * disasm.h (class gdb_disassembler): New.
11029 (gdb_pretty_print_insn): Remove declaration.
11030 (gdb_disassemble_info): Likewise.
11031 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11032 (gdbscm_disasm_read_memory_worker): Update.
11033 (gdbscm_disasm_read_memory): Update.
11034 (gdbscm_disasm_memory_error): Remove.
11035 (gdbscm_disasm_print_address): Remove.
11036 (gdbscm_disassembler::gdbscm_disassembler): New.
11037 (gdbscm_print_insn_from_port): Update.
11038 * mips-tdep.c: Include disasm.h.
11039 (gdb_print_insn_mips): Update code to get gdbarch.
11040 * record-btrace.c (btrace_insn_history): Update.
11041 * spu-tdep.c: Include disasm.h.
11042 (struct spu_dis_asm_data): Remove.
11043 (struct spu_dis_asm_info): New.
11044 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11045 SPU id.
11046 (gdb_print_insn_spu): Cast disassemble_info to
11047 spu_dis_asm_info.
11048
11049 2017-01-26 Yao Qi <yao.qi@linaro.org>
11050
11051 * disasm.c (do_ui_file_delete): Delete.
11052 (gdb_insn_length): Move code creating stream to ...
11053 * utils.c (null_stream): ... here. New function.
11054 * utils.h (null_stream): Declare.
11055
11056 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11057
11058 * python/py-inferior.c (find_thread_object): Return directly
11059 from the loop. Remove "found" variable.
11060
11061 2017-01-21 Joel Brobecker <brobecker@adacore.com>
11062
11063 GDB 7.12.1 released.
11064
11065 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11066
11067 * python/py-function.c (fnpy_call): Reorder declarations to have
11068 the gdbpy_enter object declared first.
11069 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11070
11071 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11072
11073 PR python/21068
11074 * python/python-internal.h (PyMem_RawMalloc): Define for
11075 Python < 3.4.
11076 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11077 PyMem_RawMalloc instead of PyMem_Malloc.
11078
11079 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11080 Luis Machado <lgustavo@codesourcery.com>
11081
11082 * NEWS (New commands): Mention flash-erase.
11083 (New MI commands): Mention target-flash-erase.
11084 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11085 command.
11086 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11087 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11088 * target.c (flash_erase_command): New function.
11089 (initialize_targets): Add new flash-erase command.
11090 * target.h (flash_erase_command): New declaration.
11091
11092 2017-01-20 Joel Brobecker <brobecker@adacore.com>
11093
11094 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11095 HAVE_SYS_PROCFS_H is defined.
11096
11097 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11098
11099 * remote.c (struct cached_reg): Change data into a pointer.
11100 * (stop_reply_dtr): Free data pointers before deleting vector.
11101 (process_stop_reply): Likewise.
11102 (remote_parse_stop_reply): Allocate space for data
11103
11104 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11105
11106 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11107 MAX_REGISTER_SIZE.
11108 (amd64_pseudo_register_read_value): Likewise.
11109 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11110 (store_register_using_P): Likewise.
11111 * regcache.c (regcache_xfer_part): Likewise.
11112
11113 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11114
11115 Split real and pseudo registers.
11116 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11117 (sparc32_pseudo_regnum): New enum.
11118 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11119 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11120 (SPARC32_CP0_REGISTERS): New macro.
11121 (sparc32_pseudo_register_name): New function.
11122 (sparc32_register_name): Use sparc32_pseudo_register_name.
11123 (sparc32_pseudo_register_type): New function.
11124 (sparc32_register_type): Use sparc32_pseudo_register_type.
11125 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11126 pseudo register numbers.
11127 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11128 (SPARC64_CP0_REGISTERS): New macro.
11129 (sparc64_pseudo_register_name): New function.
11130 (sparc64_register_name): Use sparc64_pseudo_register_name.
11131 (sparc64_pseudo_register_type): New function.
11132 (sparc64_register_type): Use sparc64_pseudo_register_type.
11133 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11134 pseudo register numbers.
11135 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11136 sparc64_store_arguments): Handle pseudo register numbers.
11137
11138 2017-01-13 Yao Qi <yao.qi@linaro.org>
11139
11140 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11141 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11142 output.
11143 (getpkt_or_notif_sane_1): Likewise.
11144
11145 2017-01-13 Yao Qi <yao.qi@linaro.org>
11146
11147 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11148 of CC. Pass "-x c++-header" instead of "-x c".
11149
11150 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11151
11152 * remote.c (remote_can_async_p): Update comment.
11153
11154 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11155
11156 * linux-nat.c (linux_nat_can_async_p): Update comment.
11157
11158 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11159
11160 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11161
11162 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11163
11164 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11165
11166 2017-01-10 Tom Tromey <tom@tromey.com>
11167
11168 * python/py-type.c (typy_legacy_template_argument): Update.
11169 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11170 ~demangle_parse_info): Declare new members.
11171 (cp_demangled_name_to_comp): Return unique_ptr.
11172 (cp_demangled_name_parse_free)
11173 (make_cleanup_cp_demangled_name_parse_free)
11174 (cp_new_demangle_parse_info): Remove.
11175 * cp-support.c (do_demangled_name_parse_free_cleanup)
11176 (make_cleanup_cp_demangled_name_parse_free): Remove.
11177 (inspect_type, cp_canonicalize_string_full)
11178 (cp_canonicalize_string): Update.
11179 (mangled_name_to_comp): Change return type.
11180 (cp_class_name_from_physname, method_name_from_physname)
11181 (cp_func_name, cp_remove_params): Update.
11182 * cp-name-parser.y (demangle_parse_info): New constructor, from
11183 cp_new_demangle_parse_info.
11184 (~demangle_parse_info): New destructor, from
11185 cp_demangled_name_parse_free.
11186 (cp_merge_demangle_parse_infos): Update.
11187 (cp_demangled_name_to_comp): Change return type.
11188
11189 2017-01-10 Tom Tromey <tom@tromey.com>
11190
11191 * top.c (prevent_dont_repeat): Change return type.
11192 * python/python.c (execute_gdb_command): Use std::string.
11193 Update.
11194 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11195 * command.h (prevent_dont_repeat): Change return type.
11196 * breakpoint.c (bpstat_do_actions_1): Update.
11197
11198 2017-01-10 Tom Tromey <tom@tromey.com>
11199
11200 * value.h (scoped_value_mark::~scoped_value_mark): Call
11201 free_to_mark.
11202 (scoped_value_mark::free_to_mark): New method.
11203 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11204 scoped_value_mark.
11205
11206 2017-01-10 Tom Tromey <tom@tromey.com>
11207
11208 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11209 (valpy_reference_value, valpy_const_value, valpy_get_address)
11210 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11211 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11212 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11213 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11214 scoped_value_mark.
11215 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11216 * value.h (scoped_value_mark): New class.
11217
11218 2017-01-10 Tom Tromey <tom@tromey.com>
11219
11220 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11221 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11222 * psymtab.c (discard_psymtabs_upto): Remove.
11223 (make_cleanup_discard_psymtabs): Remove.
11224 (struct psymtab_state): Remove.
11225
11226 2017-01-10 Tom Tromey <tom@tromey.com>
11227
11228 * record-full.c (record_full_save_cleanups): Remove.
11229 (record_full_save): Use gdb::unlinker.
11230 * gcore.c (do_bfd_delete_cleanup): Remove.
11231 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11232 cleanups.
11233 * dwarf2read.c (unlink_if_set): Remove.
11234 (write_psymtabs_to_index): Use gdb::unlinker.
11235 * common/gdb_unlinker.h: New file.
11236
11237 2017-01-10 Tom Tromey <tom@tromey.com>
11238
11239 * windows-tdep.c (windows_xfer_shared_library): Update.
11240 * windows-nat.c (windows_make_so): Update.
11241 * utils.h (make_cleanup_bfd_unref): Remove.
11242 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11243 * symfile.h (symfile_bfd_open)
11244 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11245 * symfile.c (read_symbols, symbol_file_add)
11246 (separate_debug_file_exists): Update.
11247 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11248 (generic_load, reread_symbols): Update.
11249 * symfile-mem.c (symbol_file_add_from_memory): Update.
11250 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11251 (spu_symbol_file_add_from_memory): Update.
11252 * solist.h (struct target_so_ops) <bfd_open>: Return
11253 gdb_bfd_ref_ptr.
11254 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11255 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11256 gdb_bfd_ref_ptr.
11257 (solib_map_sections, reload_shared_libraries_1): Update.
11258 * solib-svr4.c (enable_break): Update.
11259 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11260 * solib-frv.c (enable_break2): Update.
11261 * solib-dsbt.c (enable_break): Update.
11262 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11263 gdb_bfd_ref_ptr.
11264 (darwin_solib_get_all_image_info_addr_at_init): Update.
11265 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11266 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11267 * record-full.c (record_full_save): Update.
11268 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11269 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11270 * minidebug.c (find_separate_debug_file_in_section): Return
11271 gdb_bfd_ref_ptr.
11272 * machoread.c (macho_add_oso_symfile): Change abfd to
11273 gdb_bfd_ref_ptr.
11274 (macho_symfile_read_all_oso): Update.
11275 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11276 (macho_symfile_read): Update.
11277 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11278 (jit_bfd_try_read_symtab): Update.
11279 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11280 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11281 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11282 gdb_bfd_ref_ptr.
11283 (gdb_bfd_ref_policy): New struct.
11284 (gdb_bfd_ref_ptr): New typedef.
11285 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11286 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11287 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11288 gdb_bfd_ref_ptr.
11289 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11290 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11291 (gcore_command): Update.
11292 * exec.c (exec_file_attach): Update.
11293 * elfread.c (elf_symfile_read): Update.
11294 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11295 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11296 (open_and_init_dwo_file): Update.
11297 (open_dwp_file): Return gdb_bfd_ref_ptr.
11298 (open_and_init_dwp_file): Update.
11299 * corelow.c (core_open): Update.
11300 * compile/compile-object-load.c (compile_object_load): Update.
11301 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11302 * coffread.c (coff_symfile_read): Update.
11303 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11304 gdb_bfd_ref_ptr. Rename.
11305 (dump_bfd_file, restore_command): Update.
11306 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11307 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11308 (find_separate_debug_file_by_buildid): Update.
11309
11310 2017-01-10 Tom Tromey <tom@tromey.com>
11311
11312 * common/gdb_ref_ptr.h: New file.
11313 * python/py-ref.h (struct gdbpy_ref_policy): New.
11314 (gdbpy_ref): Now a typedef.
11315
11316 2017-01-10 Tom Tromey <tom@tromey.com>
11317
11318 * utils.h (make_cleanup_htab_delete): Don't declare.
11319 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11320 Remove.
11321 * linespec.c (decode_compound_collector): Add constructor,
11322 destructor.
11323 (lookup_prefix_sym): Remove cleanup.
11324 (symtab_collector): Add constructor, destructor.
11325 (collect_symtabs_from_filename): Remove cleanup.
11326 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11327 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11328 Use htab_up.
11329 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11330 * dwarf2read.c (dw2_expand_symtabs_matching)
11331 (dw2_map_symbol_filenames, dwarf_decode_macros)
11332 (write_psymtabs_to_index): Use htab_up.
11333 * dwarf2loc.c (func_verify_no_selftailcall)
11334 (call_site_find_chain_1, func_verify_no_selftailcall)
11335 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11336 std::vector, gdb::unique_xmalloc_ptr.
11337 (call_sitep): Remove typedef.
11338 (dwarf2_locexpr_baton_eval): Remove unused variable.
11339
11340 2017-01-10 Tom Tromey <tom@tromey.com>
11341
11342 * python/python-internal.h (make_cleanup_py_decref)
11343 (make_cleanup_py_xdecref): Don't declare.
11344 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11345 (py_xdecref, make_cleanup_py_xdecref): Remove.
11346
11347 2017-01-10 Tom Tromey <tom@tromey.com>
11348
11349 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11350 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11351
11352 2017-01-10 Tom Tromey <tom@tromey.com>
11353
11354 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11355
11356 2017-01-10 Tom Tromey <tom@tromey.com>
11357
11358 * python/py-utils.c (unicode_to_encoded_string)
11359 (python_string_to_target_string)
11360 (python_string_to_target_python_string)
11361 (python_string_to_host_string, gdbpy_obj_to_string)
11362 (get_addr_from_python): Use gdbpy_ref.
11363
11364 2017-01-10 Tom Tromey <tom@tromey.com>
11365
11366 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11367 gdbpy_ref.
11368
11369 2017-01-10 Tom Tromey <tom@tromey.com>
11370
11371 * python/python.c (eval_python_command, gdbpy_decode_line)
11372 (gdbpy_run_events, gdbpy_start_type_printers)
11373 (gdbpy_apply_type_printers): Use gdbpy_ref.
11374
11375 2017-01-10 Tom Tromey <tom@tromey.com>
11376
11377 * python/py-param.c (get_doc_string, compute_enum_values): Use
11378 gdbpy_ref.
11379
11380 2017-01-10 Tom Tromey <tom@tromey.com>
11381
11382 * python/py-inferior.c (find_thread_object, build_inferior_list):
11383 Use gdbpy_ref.
11384
11385 2017-01-10 Tom Tromey <tom@tromey.com>
11386
11387 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11388
11389 2017-01-10 Tom Tromey <tom@tromey.com>
11390
11391 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11392 gdbpy_ref.
11393
11394 2017-01-10 Tom Tromey <tom@tromey.com>
11395
11396 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11397 extra incref.
11398 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11399 Use gdbpy_ref.
11400
11401 2017-01-10 Tom Tromey <tom@tromey.com>
11402
11403 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11404 gdbpy_ref.
11405
11406 2017-01-10 Tom Tromey <tom@tromey.com>
11407
11408 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11409 decref results of PyArg_ParseTupleAndKeywords.
11410
11411 2017-01-10 Tom Tromey <tom@tromey.com>
11412
11413 * python/python.c (python_run_simple_file): Use
11414 unique_xmalloc_ptr, gdbpy_ref.
11415
11416 2017-01-10 Tom Tromey <tom@tromey.com>
11417
11418 * python/py-prettyprint.c (print_stack_unless_memory_error)
11419 (print_string_repr, print_children): Use gdbpy_ref.
11420 (dummy_python_frame): New class.
11421 (dummy_python_frame::dummy_python_frame): Rename from
11422 push_dummy_python_frame.
11423 (py_restore_tstate): Remove.
11424
11425 2017-01-10 Tom Tromey <tom@tromey.com>
11426
11427 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11428
11429 2017-01-10 Tom Tromey <tom@tromey.com>
11430
11431 * python/python.c (ensure_python_env, restore_python_env):
11432 Remove.
11433 * python/python-internal.h (ensure_python_env): Don't declare.
11434 * varobj.h (varobj_ensure_python_env): Don't declare.
11435 * varobj.c (varobj_ensure_python_env): Remove.
11436
11437 2017-01-10 Tom Tromey <tom@tromey.com>
11438
11439 * varobj.c (varobj_value_get_print_value): Use
11440 gdbpy_enter_varobj.
11441
11442 2017-01-10 Tom Tromey <tom@tromey.com>
11443
11444 * python/py-prettyprint.c (print_string_repr, print_children):
11445 Update.
11446 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11447 of "encoding".
11448 * varobj.c (varobj_value_get_print_value): Update.
11449 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11450
11451 2017-01-10 Tom Tromey <tom@tromey.com>
11452
11453 * varobj.c (varobj_get_display_hint)
11454 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11455 (varobj_set_visualizer, free_variable): Use
11456 gdbpy_enter_varobj.
11457
11458 2017-01-10 Tom Tromey <tom@tromey.com>
11459
11460 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11461 (do_finish_initialization): New function. Use gdbpy_ref.
11462 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11463 do_finish_initialization.
11464
11465 2017-01-10 Tom Tromey <tom@tromey.com>
11466
11467 * python/py-param.c (get_set_value, get_show_value): Use
11468 gdbpy_enter, gdbpy_ref.
11469
11470 2017-01-10 Tom Tromey <tom@tromey.com>
11471
11472 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11473
11474 2017-01-10 Tom Tromey <tom@tromey.com>
11475
11476 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11477
11478 2017-01-10 Tom Tromey <tom@tromey.com>
11479
11480 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11481 Use gdbpy_enter_varobj.
11482
11483 2017-01-10 Tom Tromey <tom@tromey.com>
11484
11485 * varobj.c (gdbpy_enter_varobj): New constructor.
11486 * python/python-internal.h (gdbpy_enter_varobj): New class.
11487 * python/py-varobj.c (py_varobj_get_iterator): Use
11488 gdbpy_enter_varobj.
11489
11490 2017-01-10 Tom Tromey <tom@tromey.com>
11491
11492 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11493 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11494 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11495 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11496 unique_xmalloc_ptr.
11497 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11498
11499 2017-01-10 Tom Tromey <tom@tromey.com>
11500
11501 * python/py-xmethods.c (invoke_match_method): Use
11502 gdbpy_ref.
11503
11504 2017-01-10 Tom Tromey <tom@tromey.com>
11505
11506 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11507 gdbpy_enter, gdbpy_ref.
11508
11509 2017-01-10 Tom Tromey <tom@tromey.com>
11510
11511 * python/python.c (python_interactive_command): Use gdbpy_enter.
11512
11513 2017-01-10 Tom Tromey <tom@tromey.com>
11514
11515 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11516 gdbpy_ref.
11517
11518 2017-01-10 Tom Tromey <tom@tromey.com>
11519
11520 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11521 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11522
11523 2017-01-10 Tom Tromey <tom@tromey.com>
11524
11525 * utils.h (htab_deleter): New struct.
11526 (htab_up): New typedef.
11527 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11528 gdbpy_enter, gdbpy_ref, htab_up.
11529
11530 2017-01-10 Tom Tromey <tom@tromey.com>
11531
11532 * python/py-unwind.c (pending_frame_invalidate): Remove.
11533 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11534
11535 2017-01-10 Tom Tromey <tom@tromey.com>
11536
11537 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11538 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11539
11540 2017-01-10 Tom Tromey <tom@tromey.com>
11541
11542 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11543
11544 2017-01-10 Tom Tromey <tom@tromey.com>
11545
11546 * python/python.c (gdbpy_eval_from_control_command)
11547 (gdbpy_source_script, gdbpy_run_events)
11548 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11549 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11550 gdbpy_enter.
11551
11552 2017-01-10 Tom Tromey <tom@tromey.com>
11553
11554 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11555
11556 2017-01-10 Tom Tromey <tom@tromey.com>
11557
11558 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11559
11560 2017-01-10 Tom Tromey <tom@tromey.com>
11561
11562 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11563 (python_on_inferior_call_pre, python_on_inferior_call_post)
11564 (python_on_memory_change, python_on_register_change)
11565 (python_inferior_exit, python_new_objfile, add_thread_object)
11566 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11567
11568 2017-01-10 Tom Tromey <tom@tromey.com>
11569
11570 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11571 (bpfinishpy_handle_exit): Use gdbpy_enter.
11572
11573 2017-01-10 Tom Tromey <tom@tromey.com>
11574
11575 * python/py-cmd.c (cmdpy_destroyer)
11576 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11577 gdbpy_enter.
11578
11579 2017-01-10 Tom Tromey <tom@tromey.com>
11580
11581 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11582 gdbpy_enter.
11583 (gdbpy_breakpoint_has_cond): Likewise.
11584
11585 2017-01-10 Tom Tromey <tom@tromey.com>
11586
11587 * python/python.c (gdbpy_enter): New constructor.
11588 (~gdbpy_enter): New destructor.
11589 (restore_python_env, ensure_python_env): Rewrite.
11590 * python/python-internal.h (gdbpy_enter): New class.
11591
11592 2017-01-10 Tom Tromey <tom@tromey.com>
11593
11594 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11595
11596 2017-01-10 Tom Tromey <tom@tromey.com>
11597
11598 * python/py-value.c (value_has_field, get_field_flag)
11599 (get_field_type, valpy_getitem, convert_value_from_python): Use
11600 gdbpy_ref.
11601
11602 2017-01-10 Tom Tromey <tom@tromey.com>
11603
11604 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11605 gdbpy_ref.
11606
11607 2017-01-10 Tom Tromey <tom@tromey.com>
11608
11609 * python/py-prettyprint.c (search_pp_list)
11610 (find_pretty_printer_from_objfiles)
11611 (find_pretty_printer_from_progspace)
11612 (find_pretty_printer_from_gdb, find_pretty_printer)
11613 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11614 gdbpy_ref.
11615
11616 2017-01-10 Tom Tromey <tom@tromey.com>
11617
11618 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11619
11620 2017-01-10 Tom Tromey <tom@tromey.com>
11621
11622 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11623 (ltpy_get_all_source_lines): Use gdbpy_ref.
11624
11625 2017-01-10 Tom Tromey <tom@tromey.com>
11626
11627 * python/py-framefilter.c (extract_sym, extract_value)
11628 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11629 gdbpy_ref.
11630
11631 2017-01-10 Tom Tromey <tom@tromey.com>
11632
11633 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11634
11635 2017-01-10 Tom Tromey <tom@tromey.com>
11636
11637 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11638
11639 2017-01-10 Tom Tromey <tom@tromey.com>
11640
11641 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11642 gdbpy_ref.
11643
11644 2017-01-10 Tom Tromey <tom@tromey.com>
11645
11646 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11647
11648 2017-01-10 Tom Tromey <tom@tromey.com>
11649
11650 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11651 (typy_range): Use gdbpy_ref.
11652
11653 2017-01-10 Tom Tromey <tom@tromey.com>
11654
11655 * python/py-threadevent.c (create_thread_event_object): Use
11656 gdbpy_ref.
11657 * python/py-stopevent.c (create_stop_event_object): Simplify.
11658 (emit_stop_event): Use gdbpy_ref.
11659 * python/py-signalevent.c (create_signal_event_object): Use
11660 gdbpy_ref.
11661 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11662 (emit_new_objfile_event, create_clear_objfiles_event_object)
11663 (emit_clear_objfiles_event): Use gdbpy_ref.
11664 * python/py-infevents.c (create_inferior_call_event_object)
11665 (create_register_changed_event_object)
11666 (create_memory_changed_event_object, emit_inferior_call_event)
11667 (emit_memory_changed_event, emit_register_changed_event): Use
11668 gdbpy_ref.
11669 * python/py-exitedevent.c (create_exited_event_object)
11670 (emit_exited_event): Use gdbpy_ref.
11671 * python/py-event.h (evpy_emit_event): Remove
11672 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11673 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11674 * python/py-continueevent.c (emit_continue_event): Use
11675 gdbpy_ref.
11676 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11677 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11678 gdbpy_ref.
11679 * python/py-bpevent.c (create_breakpoint_event_object): Use
11680 gdbpy_ref.
11681
11682 2017-01-10 Tom Tromey <tom@tromey.com>
11683
11684 * python/py-ref.h: New file.
11685
11686 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11687
11688 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11689 void.
11690 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11691 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11692 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11693 * ui-out.c (ui_out::redirect): Likewise.
11694 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11695 * cli/cli-logging.c (set_logging_redirect): Update call site of
11696 ui_out::redirect.
11697 (handle_redirections): Likewise.
11698 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11699 * top.c (execute_command_to_string): Likewise.
11700 * utils.c (do_ui_out_redirect_pop): Likewise.
11701
11702 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11703
11704 * stack.c (_initialize_stack): Update "frame" command help message.
11705
11706 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11707
11708 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11709
11710 2017-01-06 Yao Qi <yao.qi@linaro.org>
11711
11712 * x86-linux-nat.h: Include gdb_proc_service.h.
11713
11714 2017-01-06 Yao Qi <yao.qi@linaro.org>
11715
11716 * ser-base.h: Include serial.h.
11717
11718 2017-01-06 Yao Qi <yao.qi@linaro.org>
11719
11720 * ppc-linux-tdep.h: Include ppc-tdep.h.
11721
11722 2017-01-06 Yao Qi <yao.qi@linaro.org>
11723
11724 * nat/amd64-linux-siginfo.h: Include signal.h.
11725
11726 2017-01-06 Yao Qi <yao.qi@linaro.org>
11727
11728 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11729
11730 2017-01-06 Yao Qi <yao.qi@linaro.org>
11731
11732 * mi/mi-parse.h: Include mi-cmds.h.
11733
11734 2017-01-06 Yao Qi <yao.qi@linaro.org>
11735
11736 * inf-loop.c: Don't include "target.h".
11737 * inf-loop.h: Include it here.
11738
11739 2017-01-06 Yao Qi <yao.qi@linaro.org>
11740
11741 * dfp.h: Include "dboulest.h" and "expression.h".
11742
11743 2017-01-06 Yao Qi <yao.qi@linaro.org>
11744
11745 * ax-gdb.h: Include "ax.h".
11746
11747 2017-01-06 Yao Qi <yao.qi@linaro.org>
11748
11749 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11750 with nat/gdb_ptrace.h.
11751
11752 2017-01-05 Yao Qi <yao.qi@linaro.org>
11753
11754 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11755 new line.
11756 (mips64_fbsd_sigframe_init): Likewise.
11757
11758 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11759
11760 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11761 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11762
11763 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11764
11765 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11766 * NEWS: Mention new FreeBSD/mips native configuration.
11767 * config/mips/fbsd.mh: New file.
11768 * configure.host: Add mips*-*-freebsd*.
11769 * mips-fbsd-nat.c: New file.
11770
11771 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11772
11773 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11774 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11775 * NEWS: Mention new FreeBSD/mips target.
11776 * configure.tgt: Add mips*-*-freebsd*.
11777 * mips-fbsd-tdep.c: New file.
11778 * mips-fbsd-tdep.h: New file.
11779
11780 2017-01-04 Yao Qi <yao.qi@linaro.org>
11781
11782 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11783 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11784
11785 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11786
11787 Update copyright year range in all GDB files.
11788
11789 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11790
11791 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11792
11793 For older changes see ChangeLog-2016.
11794 \f
11795 Local Variables:
11796 mode: change-log
11797 left-margin: 8
11798 fill-column: 74
11799 version-control: never
11800 coding: utf-8
11801 End:
This page took 0.450842 seconds and 5 git commands to generate.