Remove file and line from struct complain
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-05-23 Tom Tromey <tom@tromey.com>
2
3 * complaints.c (struct complain) <file, line>: Remove.
4 (find_complaint): Remove file, line parameters.
5 (complaint_internal): Update.
6
7 2018-05-23 Tom Tromey <tom@tromey.com>
8
9 * complaints.c (vcomplaint): Remove.
10 (complaint_internal) Merge in contents of vcomplaint.
11
12 2018-05-23 Tom Tromey <tom@tromey.com>
13
14 * complaints.c (struct complaints) <explanation>: Remove.
15 (symfile_explanations): Remove.
16 (symfile_complaint_book): Update.
17 (vcomplaint): Update.
18 (struct explanation): Remove.
19
20 2018-05-23 Tom Tromey <tom@tromey.com>
21
22 * complaints.c (symfile_complaints): Remove.
23 (complaint_internal): Remove "complaints" parameter.
24 (clear_complaints, vcomplaint): Remove "c" parameter.
25 (get_complaints): Remove.
26 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
27 (dwarf2_debug_line_missing_file_complaint)
28 (dwarf2_debug_line_missing_end_sequence_complaint)
29 (dwarf2_complex_location_expr_complaint)
30 (dwarf2_const_value_length_mismatch_complaint)
31 (dwarf2_section_buffer_overflow_complaint)
32 (dwarf2_macro_malformed_definition_complaint)
33 (dwarf2_invalid_attrib_class_complaint)
34 (create_addrmap_from_index, dw2_symtab_iter_next)
35 (dw2_expand_marked_cus)
36 (dw2_debug_names_iterator::find_vec_in_debug_names)
37 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
38 (create_debug_type_hash_table, init_cutu_and_read_dies)
39 (partial_die_parent_scope, add_partial_enumeration)
40 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
41 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
42 (read_import_statement, read_file_scope, create_dwo_cu_reader)
43 (create_cus_hash_table, create_dwp_hash_table)
44 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
45 (dwarf2_rnglists_process, dwarf2_ranges_process)
46 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
47 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
48 (handle_struct_member_die, process_structure_scope)
49 (read_array_type, read_common_block, read_module_type)
50 (read_tag_pointer_type, read_typedef, read_base_type)
51 (read_subrange_type, load_partial_dies, partial_die_info::read)
52 (partial_die_info::read, partial_die_info::read)
53 (partial_die_info::read, read_checked_initial_length_and_offset)
54 (dwarf2_string_attr, read_formatted_entries)
55 (dwarf_decode_line_header)
56 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
57 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
58 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
59 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
60 (get_signatured_type, get_DW_AT_signature_type)
61 (decode_locdesc, file_file_name, consume_improper_spaces)
62 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
63 (dwarf_decode_macro_bytes, dwarf_decode_macros)
64 (dwarf2_symbol_mark_computed, set_die_type)
65 (read_attribute_value): Update.
66 * stap-probe.c (handle_stap_probe, get_stap_base_address):
67 Update.
68 * dbxread.c (unknown_symtype_complaint)
69 (lbrac_mismatch_complaint, repeated_header_complaint)
70 (set_namestring, function_outside_compilation_unit_complaint)
71 (read_dbx_symtab, process_one_symbol): Update.
72 * gdbtypes.c (stub_noname_complaint): Update.
73 * windows-nat.c (handle_unload_dll): Update.
74 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
75 (decode_base_type): Update.
76 * xcoffread.c (bf_notfound_complaint, ef_complaint)
77 (eb_complaint, record_include_begin, record_include_end)
78 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
79 (process_xcoff_symbol, read_symbol)
80 (function_outside_compilation_unit_complaint)
81 (scan_xcoff_symtab): Update.
82 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
83 * buildsym.c (finish_block_internal, make_blockvector)
84 (end_symtab_get_static_block, augment_type_symtab): Update.
85 * dtrace-probe.c (dtrace_process_dof)
86 (dtrace_static_probe_ops::get_probes): Update.
87 * complaints.h (struct complaint): Don't declare.
88 (symfile_complaints): Remove.
89 (complaint_internal): Remove "complaints" parameter.
90 (complaint): Likewise.
91 (clear_complaints): Likewise.
92 * symfile.c (syms_from_objfile_1, finish_new_objfile)
93 (reread_symbols): Update.
94 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
95 (dwarf2_frame_cache, decode_frame_entry): Update.
96 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
97 * objc-lang.c (lookup_objc_class, lookup_child_selector)
98 (info_selectors_command): Update.
99 * macrotab.c (macro_include, check_for_redefinition)
100 (macro_undef): Update.
101 * objfiles.c (filter_overlapping_sections): Update.
102 * stabsread.c (invalid_cpp_abbrev_complaint)
103 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
104 (define_symbol, error_type, read_type, rs6000_builtin_type)
105 (stabs_method_name_from_physname, read_member_functions)
106 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
107 (attach_fields_to_type, complain_about_struct_wipeout)
108 (read_range_type, read_args, common_block_start)
109 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
110 Update.
111 * mdebugread.c (index_complaint, unknown_ext_complaint)
112 (basic_type_complaint, bad_tag_guess_complaint)
113 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
114 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
115 (parse_procedure, parse_lines)
116 (function_outside_compilation_unit_complaint)
117 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
118 (bad_tag_guess_complaint, reg_value_complaint): Update.
119 * cp-support.c (demangled_name_complaint): Update.
120 * macroscope.c (sal_macro_scope): Update.
121 * dwarf-index-write.c (class debug_names): Update.
122
123 2018-05-23 Tom Tromey <tom@tromey.com>
124
125 * complaints.c (clear_complaints): Remove "noisy" parameter.
126 * complaints.h (clear_complaints): Update.
127 * symfile.c (syms_from_objfile_1, finish_new_objfile)
128 (reread_symbols): Update.
129
130 2018-05-23 Tom Tromey <tom@tromey.com>
131
132 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
133 SUBSEQUENT_MESSAGE.
134 (vcomplaint, clear_complaints): Update.
135 (symfile_explanations): Remove some messages.
136
137 2018-05-23 Tom Tromey <tom@tromey.com>
138
139 * complaints.c (internal_complaint): Remove.
140 * complaints.h (internal_complaint): Remove.
141
142 2018-05-22 Maciej W. Rozycki <macro@mips.com>
143
144 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
145
146 2018-05-22 Pedro Alves <palves@redhat.com>
147
148 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
149 (remote_fileio_badfd, remote_fileio_return_errno)
150 (remote_fileio_return_success, remote_fileio_func_open)
151 (remote_fileio_func_open, remote_fileio_func_close)
152 (remote_fileio_func_read, remote_fileio_func_write)
153 (remote_fileio_func_lseek, remote_fileio_func_rename)
154 (remote_fileio_func_unlink, remote_fileio_func_stat)
155 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
156 (remote_fileio_func_isatty, remote_fileio_func_system): Add
157 remote_target parameter.
158 (remote_fio_func_map) <func>: Add remote_target parameter.
159 (do_remote_fileio_request, remote_fileio_request):
160 * remote-fileio.h (remote_fileio_request):
161 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
162 remote_target parameter.
163 (remote_notif_process, handle_notification): Adjust to pass down
164 the remote.
165 (remote_notif_state_allocate): Add remote_target parameter. Save
166 it.
167 * remote-notif.h (struct remote_target): Forward declare.
168 (struct notif_client) <parse, ack, can_get_pending_events>: Add
169 remote_target parameter.
170 (struct remote_notif_state) <remote>: New field.
171 (remote_notif_ack, remote_notif_parse): Add remote_target
172 parameter.
173 (remote_notif_state_allocate, remote_notif_state_allocate): Add
174 remote_target parameter.
175 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
176 (threads_listing_context, rmt_thread_action, protocol_feature)
177 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
178 (packet_result, struct threads_listing_context, remote_state):
179 Move definitions and declarations higher up.
180 (remote_target) <~remote_target>: Declare.
181 (remote_download_command_source, remote_file_put, remote_file_get)
182 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
183 (remote_hostio_pread_vFile, remote_hostio_send_command)
184 (remote_hostio_set_filesystem, remote_hostio_open)
185 (remote_hostio_close, remote_hostio_unlink, remote_state)
186 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
187 (get_memory_write_packet_size, get_memory_read_packet_size)
188 (append_pending_thread_resumptions, remote_detach_1)
189 (append_resumption, remote_resume_with_vcont)
190 (add_current_inferior_and_thread, wait_ns, wait_as)
191 (process_stop_reply, remote_notice_new_inferior)
192 (process_initial_stop_replies, remote_add_thread)
193 (btrace_sync_conf, remote_btrace_maybe_reopen)
194 (remove_new_fork_children, kill_new_fork_children)
195 (discard_pending_stop_replies, stop_reply_queue_length)
196 (check_pending_events_prevent_wildcard_vcont)
197 (discard_pending_stop_replies_in_queue, stop_reply)
198 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
199 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
200 (remote_interrupt_as, remote_interrupt_ns)
201 (remote_get_noisy_reply, remote_query_attached)
202 (remote_add_inferior, remote_current_thread, get_current_thread)
203 (set_thread, set_general_thread, set_continue_thread)
204 (set_general_process, write_ptid)
205 (remote_unpack_thread_info_response, remote_get_threadinfo)
206 (parse_threadlist_response, remote_get_threadlist)
207 (remote_threadlist_iterator, remote_get_threads_with_ql)
208 (remote_get_threads_with_qxfer)
209 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
210 (get_offsets, remote_check_symbols, remote_supported_packet)
211 (remote_query_supported, remote_packet_size)
212 (remote_serial_quit_handler, remote_detach_pid)
213 (remote_vcont_probe, remote_resume_with_hc)
214 (send_interrupt_sequence, interrupt_query)
215 (remote_notif_get_pending_events, fetch_register_using_p)
216 (send_g_packet, process_g_packet, fetch_registers_using_g)
217 (store_register_using_P, store_registers_using_G)
218 (set_remote_traceframe, check_binary_download)
219 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
220 (remote_xfer_live_readonly_partial, remote_read_bytes)
221 (remote_send_printf, remote_flash_write, readchar)
222 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
223 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
224 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
225 (extended_remote_disable_randomization, extended_remote_run)
226 (send_environment_packet, extended_remote_environment_support)
227 (extended_remote_set_inferior_cwd, remote_write_qxfer)
228 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
229 (packet_command): Now methods of ...
230 (remote_target): ... this class.
231 (m_remote_state) <remote_target>: New field.
232 (struct remote_state) <stop_reply_queue,
233 remote_async_inferior_event_token, wait_forever_enabled_p>: New
234 fields.
235 (remote_state::remote_state): Allocate stop_reply_queue.
236 (remote_state): Delete global.
237 (get_remote_state_raw): Delete.
238 (remote_target::get_remote_state): Allocate m_remote_state on
239 demand.
240 (get_current_remote_target): New.
241 (remote_ops, extended_remote_ops): Delete.
242 (wait_forever_enabled_p, remote_async_inferior_event_token):
243 Delete, moved to struct remote_state.
244 (remote_target::close): Delete self. Destruction bits split to
245 ...
246 (remote_target::~remote_target): ... this.
247 (show_memory_packet_size): Adjust to use
248 get_current_remote_target.
249 (struct protocol_feature) <func>: Add remote_target parameter.
250 All callers adjusted.
251 (curr_quit_handler_target): New.
252 (remote_serial_quit_handler): Reimplement.
253 (remote_target::open_1): Adjust to use get_current_remote_target.
254 Heap-allocate remote_target/extended_remote_target instances.
255 (vcont_builder::vcont_builder): Add remote_target parameter, and
256 save it in m_remote. All callers adjusted.
257 (vcont_builder::m_remote): New field.
258 (vcont_builder::restart, vcont_builder::flush)
259 (vcont_builder::push_action): Use it.
260 (remote_target::commit_resume): Use it.
261 (struct queue_iter_param) <remote>: New field.
262 (remote_target::remove_new_fork_children): Fill in 'remote' field.
263 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
264 (check_pending_event_prevents_wildcard_vcont_callback)
265 (remote_target::check_pending_events_prevent_wildcard_vcont)
266 (remote_target::discard_pending_stop_replies)
267 (remote_target::discard_pending_stop_replies_in_queue)
268 (remote_target::remote_notif_remove_queued_reply): Fill in
269 'remote' field.
270 (remote_notif_get_pending_events): New.
271 (remote_target::readchar, remote_target::remote_serial_write):
272 Save/restore curr_quit_handler_target.
273 (putpkt): New.
274 (kill_new_fork_children): Fill in 'remote' field.
275 (packet_command): Use get_current_remote_target, defer to
276 remote_target method of same name.
277 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
278 parameter, and save it in m_remote. All callers adjusted.
279 (scoped_remote_fd::release): Use m_remote.
280 (scoped_remote_fd::m_remote): New field.
281 (remote_file_put, remote_file_get, remote_file_delete): Use
282 get_current_remote_target, defer to remote_target method of same
283 name.
284 (remote_btrace_reset): Add remote_state paremeter. Update all
285 callers.
286 (remote_async_inferior_event_handler). Pass down 'data'.
287 (remote_new_objfile): Use get_current_remote_target.
288 (remote_target::vcont_r_supported): New.
289 (set_range_stepping): Use get_current_remote_target and
290 remote_target::vcont_r_supported.
291 (_initialize_remote): Don't allocate 'remote_state' and
292 'stop_reply_queue' globals.
293 * remote.h (struct remote_target): Forward declare.
294 (getpkt, putpkt, remote_notif_get_pending_events): Add
295 'remote_target' parameter.
296
297 2018-05-22 Pedro Alves <palves@redhat.com>
298
299 * remote.c (vcont_builder): Now a class. Make all data members
300 private.
301 (vcont_builder) <vcont_builder, restart, flush, push_action>:
302 Declare methods.
303 (vcont_builder_restart): Rename to ...
304 (vcont_builder::restart): ... this.
305 (vcont_builder_flush): Rename to ...
306 (vcont_builder::flush): ... this.
307 (vcont_builder_push_action): Rename to ...
308 (vcont_builder::push_action): ... this.
309 (remote_target::commit_resume): Adjust.
310
311 2018-05-22 Pedro Alves <palves@redhat.com>
312
313 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
314 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
315 (get_fixed_memory_packet_size): New.
316 (get_memory_packet_size): Use it.
317 (set_memory_packet_size): Don't override the config size with
318 DEFAULT_MAX_MEMORY_PACKET_SIZE.
319 (show_memory_packet_size): Use get_fixed_memory_packet_size.
320 Don't refer to get_memory_packet_size if not connected to a remote
321 target. Show "(default)" if configured size is 0.
322
323 2018-05-22 Pedro Alves <palves@redhat.com>
324
325 * remote.c (remote_target::mourn_inferior): Move
326 discard_pending_stop_replies call here from ...
327 (_initialize_remote): ... here.
328
329 2018-05-22 Pedro Alves <palves@redhat.com>
330
331 * remote.c (compare_section_command): Remove set_general_process
332 call.
333
334 2018-05-22 Pedro Alves <palves@redhat.com>
335
336 * remote.c (struct packet_reg, struct remote_arch_state):
337 Move higher up in the file.
338 (remote_state) <m_arch_states>: Store remote_arch_state values
339 instead of remote_arch_state pointers.
340 (remote_state::get_remote_arch_state): Adjust.
341
342 2018-05-22 Pedro Alves <palves@redhat.com>
343
344 * remote.c: Include <unordered_map>.
345 (remote_state): Now a class.
346 (remote_state) <get_remote_arch_state>: Declare method.
347 <get_remote_arch_state>: New field.
348 (remote_arch_state) <remote_arch_state>: Declare ctor.
349 <regs>: Now a unique_ptr.
350 (remote_gdbarch_data_handle): Delete.
351 (get_remote_arch_state): Delete.
352 (remote_state::get_remote_arch_state): New.
353 (get_remote_state): Adjust to call remote_state's
354 get_remote_arch_state method.
355 (init_remote_state): Delete, bits factored out to ...
356 (remote_arch_state::remote_arch_state): ... this new method.
357 (get_remote_packet_size, get_memory_packet_size)
358 (process_g_packet, remote_target::fetch_registers)
359 (remote_target::prepare_to_store, store_registers_using_G)
360 (remote_target::store_registers, remote_target::get_trace_status):
361 Adjust to call remote_state's method.
362 (_initialize_remote): Remove reference to
363 remote_gdbarch_data_handle.
364
365 2018-05-22 Pedro Alves <palves@redhat.com>
366
367 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
368 pread>: New method declarations.
369 (remote_target::open_1): Adjust.
370 (readahead_cache_invalidate): Rename to ...
371 (readahead_cache::invalidate): ... this, and adjust to be a class
372 method.
373 (readahead_cache_invalidate_fd): Rename to ...
374 (readahead_cache::invalidate_fd): ... this, and adjust to be a
375 class method.
376 (remote_hostio_pwrite): Adjust.
377 (remote_hostio_pread_from_cache): Rename to ...
378 (readahead_cache::pread): ... this, and adjust to be a class
379 method.
380 (remote_hostio_close): Adjust.
381
382 2018-05-22 Pedro Alves <palves@redhat.com>
383
384 * remote.c (remote_hostio_close_cleanup): Delete.
385 (class scoped_remote_fd): New.
386 (remote_file_put, remote_file_get): Use it.
387
388 2018-05-22 Pedro Alves <palves@redhat.com>
389
390 (struct vCont_action_support): Use bool and initialize all fields.
391 (struct readahead_cache): Initialize all fields.
392 (remote_state): Use bool and initialize all fields.
393 (remote_state::remote_state, remote_state::~remote_state): New.
394 (new_remote_state): Delete.
395 (_initialize_remote): Use new to allocate remote_state.
396
397 2018-05-22 Pedro Alves <palves@redhat.com>
398 張俊芝 <zjz@zjz.name>
399
400 PR gdb/22973
401 * c-exp.y: Include "c-support.h".
402 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
403 of tolower. Use c_ident_is_alpha to scan names.
404 * c-lang.c: Include "c-support.h".
405 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
406 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
407 * c-support.h: New file, with bits factored out from ...
408 * cp-name-parser.y: ... this file.
409 Include "c-support.h".
410 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
411 c-support.h and renamed.
412 (symbol_end, yylex): Adjust.
413
414 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
415
416 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
417 parameter type to CORE_ADDR.
418 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
419 parameter type in declaration to CORE_ADDR.
420 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
421 target_auxv_search to get AT_HWCAP and use the result to get the
422 target description.
423 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
424 to CORE_ADDR. Remove the cast of the return value to unsigned
425 long. Fix error predicate of target_auxv_search.
426 (ppc_linux_nat_target::read_description): Change the type of the
427 hwcap variable to CORE_ADDR.
428
429 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
430
431 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
432 if the size of fpscr is larger than 32 bits.
433
434 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
435
436 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
437 (ppc32_linux_vsxregmap): New global.
438 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
439 regcache_supply_regset, and regcache_collect_regset.
440 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
441 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
442 (fetch_vsx_register, store_vsx_register): Remove.
443 (fetch_vsx_registers): Add regno parameter. Get regset using
444 ppc_linux_vsxregset. Use regset to supply registers.
445 (store_vsx_registers): Add regno parameter. Get regset using
446 ppc_linux_vsxregset. Use regset to collect registers.
447 (fetch_register): Call fetch_vsx_registers instead of
448 fetch_vsx_register.
449 (store_register): Call store_vsx_registers instead of
450 store_vsx_register.
451 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
452 new regno parameter.
453 (store_ppc_registers): Call store_vsx_registers with -1 for the
454 new regno parameter.
455 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
456 (ppc_collect_vsxregset): Remove.
457
458 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
459
460 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
461 offset fields.
462 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
463 for vector register offset fields.
464 (ppc64_fbsd_reg_offsets): Likewise.
465 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
466 to vector register offset fields.
467 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
468 to vector register offset fields.
469 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
470 vector register offset fields.
471 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
472 initializers for vector register offset fields.
473 (rs6000_aix64_reg_offsets): Likewise.
474 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
475 (ppc_supply_vrregset): Remove.
476 (ppc_collect_vrregset): Remove.
477 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
478 (ppc_linux_vrregset) : New function.
479 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
480 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
481 (ppc32_linux_vrregset): Remove.
482 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
483 and use result instead of ppc32_linux_vrregset.
484 (ppc32_linux_reg_offsets): Remove initializers for vector register
485 offset fields.
486 (ppc64_linux_reg_offsets): Likewise.
487 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
488 * ppc-linux-nat.c: Include regset.h.
489 (gdb_vrregset_t): Adjust comment to account for little-endian
490 mode.
491 (supply_vrregset, fill_vrregset): Remove.
492 (fetch_altivec_register, store_altivec_register): Remove.
493 (fetch_altivec_registers): Add regno parameter. Get regset using
494 ppc_linux_vrregset. Use regset to supply registers.
495 (store_altivec_registers): Add regno parameter. Get regset using
496 ppc_linux_vrregset. Use regset to collect registers.
497 (fetch_register): Call fetch_altivec_registers instead of
498 fetch_altivec_register.
499 (store_register): Call store_altivec_registers instead of
500 store_altivec_register.
501 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
502 the new regno parameter.
503 (store_ppc_registers): Call store_altivec_registers with -1 for
504 the new regno parameter.
505
506 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
507
508 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
509 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
510 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
511 (gdb_vrregset_t): Change array type size to
512 PPC_LINUX_SIZEOF_VRREGSET.
513 (gdb_vsxregset_t): Change array type size to
514 PPC_LINUX_SIZEOF_VSXREGSET.
515 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
516 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
517 PPC_LINUX_SIZEOF_VSXREGSET.
518
519 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
520
521 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
522 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
523 nat/ppc-linux.c.
524 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
525 ppc_linux_target_wordsize with tid.
526 (ppc_linux_nat_target::read_description): Call ppc_linux_target
527 wordsize with tid.
528 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
529 (ppc64_64bit_inferior_p): Add static and inline specifiers.
530 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
531 tid parameter. Remove static specifier.
532 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
533 (ppc_linux_target_wordsize): New declaration.
534
535 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
536
537 * arch/ppc-linux-common.c: New file.
538 * arch/ppc-linux-common.h: New file.
539 * arch/ppc-linux-tdesc.h: New file.
540 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
541 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
542 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
543 arch/ppc-linux-tdesc.h.
544 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
545 arch/ppc-linux-tdesc.h.
546 (ppc_linux_nat_target::read_description): Remove target
547 description matching code. Fill a ppc_linux_features struct and
548 call ppc_linux_match_description with it. Move comment about ISA
549 2.05 to ppc-linux-common.c.
550 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
551 arch/ppc-linux-tdesc.h.
552 (ppc_linux_core_read_description): Remove target description
553 matching code. Fill a ppc_linux_features struct and call
554 ppc_linux_match_description with it.
555 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
556 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
557 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
558 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
559 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
560 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
561 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
562 (tdesc_powerpc_e500l): Remove.
563
564 2018-05-22 Joel Brobecker <brobecker@adacore.com>
565
566 * ada-lang.c (catch_assert_command): Pass empty string instead
567 of NULL for excep_string argument.
568
569 2018-05-22 Maciej W. Rozycki <macro@mips.com>
570
571 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
572 the width of the requested register exceeds the width of the
573 `ptrace' data type.
574
575 2018-05-21 Tom Tromey <tom@tromey.com>
576
577 * printcmd.c (output_command): Remove.
578 (output_command_const): Rename to output_command.
579 * valprint.h (output_command): Rename from output_command_const.
580 * tracepoint.c (trace_dump_actions): Call output_command.
581
582 2018-05-21 Tom Tromey <tom@tromey.com>
583
584 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
585 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
586 * ada-lang.h (create_ada_exception_catchpoint): Update.
587 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
588 std::string.
589 (create_excep_cond_exprs, ~ada_catchpoint)
590 (should_stop_exception, print_one_exception)
591 (print_mention_exception, print_recreate_exception): Update.
592 (ada_get_next_arg): Remove.
593 (catch_ada_exception_command_split): Use std::string. Change type
594 of "excep_string", "cond_string".
595 (catch_ada_exception_command): Update.
596 (create_ada_exception_catchpoint): Change type of excep_string.
597 (ada_exception_sal): Remove excep_string parameter.
598 (~ada_catchpoint): Remove.
599
600 2018-05-21 Tom Tromey <tom@tromey.com>
601
602 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
603 cleanup.
604
605 2018-05-21 Tom Tromey <tom@tromey.com>
606
607 * ada-lang.c (ada_exception_message_1, ada_exception_message):
608 Return unique_xmalloc_ptr.
609 (print_it_exception): Update.
610
611 2018-05-21 Tom Tromey <tom@tromey.com>
612
613 * tracepoint.c (trace_dump_actions): Use std::string.
614
615 2018-05-21 Tom Tromey <tom@tromey.com>
616
617 * symfile.c (reread_symbols): Use std::string for original_name.
618
619 2018-05-21 Tom Tromey <tom@tromey.com>
620
621 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
622 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
623 constructor.
624
625 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
628 instance to...
629 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
630 * objfiles.c (get_objfile_bfd_data): Allocate
631 objfile_per_bfd_storage with obstack_new when allocating on
632 obstack.
633
634 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
635
636 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
637 OBSTACK_ZALLOC.
638 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
639 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
640 * mdebugread.c (mdebug_build_psymtabs): Likewise.
641 (add_pending): Likewise.
642 (parse_symbol): Likewise.
643 (parse_partial_symbols): Likewise.
644 (psymtab_to_symtab_1): Likewise.
645 (new_psymtab): Likewise.
646 (elfmdebug_build_psymtabs): Likewise.
647 * minsyms.c (terminate_minimal_symbol_table): Likewise.
648 * objfiles.c (get_objfile_bfd_data): Likewise.
649 (objfile_register_static_link): Likewise.
650 * psymtab.c (allocate_psymtab): Likewise.
651 * stabsread.c (read_member_functions): Likewise.
652 * xcoffread.c (xcoff_end_psymtab): Likewise.
653
654 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
655
656 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
657 compiler supports std::is_trivially_constructible.
658 * common/poison.h: Include obstack.h.
659 (IsMallocable): Define to is_trivially_constructible if the
660 compiler supports it, define to true_type otherwise.
661 (xobnew): New.
662 (XOBNEW): Redefine.
663 (xobnewvec): New.
664 (XOBNEWVEC): Redefine.
665 * gdb_obstack.h (obstack_zalloc): New.
666 (OBSTACK_ZALLOC): Redefine.
667 (obstack_calloc): New.
668 (OBSTACK_CALLOC): Redefine.
669 (obstack_new): New.
670 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
671 (gdbarch_obstack): New declaration in gdbarch.h, definition in
672 gdbarch.c.
673 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
674 obstack_calloc/obstack_zalloc.
675 (gdbarch_obstack_zalloc): Remove.
676 * target-descriptions.c (tdesc_data_init): Use obstack_new.
677
678 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
679
680 * stack.c (backtrace_command_1): Remove useless variable int i.
681
682 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
683
684 * stack.c (print_frame_info): Fix comment.
685
686 2018-05-18 Tom Tromey <tom@tromey.com>
687
688 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
689 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
690 (~dwarf2_per_objfile): Update
691 (dwarf2_get_dwz_file): Use new.
692 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
693 unique_ptr.
694
695 2018-05-18 Tom Tromey <tom@tromey.com>
696
697 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
698 unique_ptr.
699 * dwarf2read.c (struct dwp_file): Add constructor and
700 initializers.
701 (open_and_init_dwp_file): Return a unique_ptr.
702 (dwarf2_per_objfile, create_dwp_hash_table)
703 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
704 (lookup_dwo_unit_in_dwp): Update.
705 (open_and_init_dwp_file, get_dwp_file): Update.
706
707 2018-05-18 Tom Tromey <tom@tromey.com>
708
709 * dwarf2read.c (dwarf2_per_objfile): Update.
710 (struct mapped_index): Add initializers.
711 (dwarf2_read_index): Use new.
712 (dw2_symtab_iter_init): Update.
713 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
714 unique_ptr.
715
716 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
717
718 * dwarf2read.c (mapped_index) <total_size>: Remove.
719
720 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
721
722 * unittests/format_pieces-selftests.c (test_format_specifier):
723 Add ARI comments.
724
725 2018-05-18 Tom Tromey <tom@tromey.com>
726
727 * c-typeprint.c (maybe_print_hole): New function.
728 (c_print_type_struct_field_offset): Update.
729 (c_type_print_base_struct_union): Call maybe_print_hole.
730
731 2018-05-17 Keith Seitz <keiths@redhat.com>
732
733 * breakpoint.c (build_bpstat_chain): New function, moved from
734 bpstat_stop_status.
735 (bpstat_stop_status): Add optional parameter, `stop_chain'.
736 If no stop chain is passed, call build_bpstat_chain to build it.
737 * breakpoint.h (build_bpstat_chain): Declare.
738 (bpstat_stop_status): Move documentation here from breakpoint.c.
739 * infrun.c (handle_signal_stop): Before eliding inlined frames,
740 build the stop chain and pass it to skip_inline_frames.
741 Pass this stop chain to bpstat_stop_status.
742 * inline-frame.c: Include breakpoint.h.
743 (stopped_by_user_bp_inline_frame): New function.
744 (skip_inline_frames): Add parameter `stop_chain'.
745 Move documention to inline-frame.h.
746 If non-NULL, use stopped_by_user_bp_inline_frame to determine
747 whether the frame should be elided.
748 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
749 Add moved documentation and update for new parameter.
750
751 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
752
753 PR cli/14975
754 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
755 unittests/format_pieces-selftests.c.
756 * common/format.h (format_piece) <operator==>: New.
757 (format_pieces) <operator[]>: Remove.
758 * common/format.c (format_pieces::format_pieces): Handle \e.
759 * unittests/format_pieces-selftests.c: New.
760
761 2018-05-17 Tom Tromey <tom@tromey.com>
762
763 PR symtab/23010:
764 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
765 (dw2_instantiate_symtab): Add skip_partial parameter.
766 (dw2_find_last_source_symtab, dw2_map_expand_apply)
767 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
768 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
769 (dw2_expand_symtabs_matching_one)
770 (dw2_find_pc_sect_compunit_symtab)
771 (dw2_debug_names_lookup_symbol)
772 (dw2_debug_names_expand_symtabs_for_function): Update.
773 (init_cutu_and_read_dies): Add skip_partial parameter.
774 (process_psymtab_comp_unit, build_type_psymtabs_1)
775 (process_skeletonless_type_unit, load_partial_comp_unit)
776 (psymtab_to_symtab_1): Update.
777 (load_full_comp_unit): Add skip_partial parameter.
778 (process_imported_unit_die, dwarf2_read_addr_index)
779 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
780 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
781 (read_signatured_type): Update.
782
783 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
784
785 * value.c (release_value): Remove unused variable.
786 (record_latest_value): Likewise.
787 (access_value_history): Likewise.
788 (preserve_values): Likewise.
789
790 2018-05-17 Tom Tromey <tom@tromey.com>
791
792 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
793 Initialize.
794
795 2018-05-16 Maciej W. Rozycki <macro@mips.com>
796
797 PR gdb/22286
798 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
799 Also handle registers whose width is not a multiple of
800 PTRACE_TYPE_RET.
801 (linux_nat_trad_target::store_register): Likewise.
802
803 2018-05-16 Tom Tromey <tom@tromey.com>
804
805 * gdbcore.h (core_bfd): Redefine.
806 * corelow.c (core_target::close): Update.
807 (core_target_open): Update.
808 * progspace.h (struct program_space) <cbfd>: Now a
809 gdb_bfd_ref_ptr.
810
811 2018-05-16 Tom Tromey <tom@tromey.com>
812
813 PR cli/19551:
814 * symfile-add-flags.h (enum symfile_add_flags)
815 <SYMFILE_NOT_FILENAME>: New constant.
816 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
817 objfile name from BFD.
818 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
819 * minidebug.c (find_separate_debug_file_in_section): Put
820 ".gnu_debugdata" into BFD's file name.
821
822 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
823
824 * regcache.c (regcache_read_ftype, regcache_write_ftype):
825 Remove.
826
827 2018-05-15 Tamar Christina <tamar.christina@arm.com>
828
829 PR binutils/21446
830 * aarch64-tdep.c (aarch64_analyze_prologue,
831 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
832 Indicate not interested in errors.
833
834 2018-05-15 Maciej W. Rozycki <macro@mips.com>
835
836 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
837 Supply the MIPS_ZERO_REGNUM register.
838
839 2018-05-15 Maciej W. Rozycki <macro@mips.com>
840
841 * mips-tdep.c (mask_address_var): Make variable static.
842
843 2018-05-14 Tom Tromey <tom@tromey.com>
844
845 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
846
847 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
850 FXSAVE_ADDR for the mxcsr register.
851
852 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
853
854 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
855
856 2018-05-11 Pedro Alves <palves@redhat.com>
857
858 * corelow.c (core_target) <core_target>: No longer inline.
859 Initialize m_core_gdbarch, m_core_vec and build the section table
860 here.
861 <~core_target>: New.
862 <core_gdbarch, get_core_register_section>: New methods.
863 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
864 factored out from ...
865 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
866 (core_ops): Delete.
867 (sniff_core_bfd): Add gdbarch parameter.
868 (core_close): Delete, merged into ...
869 (core_target::close): ... here. Delete self.
870 (core_close_cleanup): Delete.
871 (core_target_open): Allocate a core_target on the heap. Use a
872 unique_ptr instead of a cleanup. Bits moved into the core_target
873 ctor. Adjust to use core_target methods instead of globals.
874 (get_core_register_section): Rename to ...
875 (core_target::get_core_register_section): ... this and adjust.
876 (struct get_core_registers_cb_data): New.
877 (get_core_registers_cb): Use it. Use bool.
878 (core_target::fetch_registers, core_target::files_info)
879 (core_target::xfer_partial, core_target::read_description)
880 (core_target::pid_to, core_target::thread_name): Adjust to
881 reference class fields instead of globals.
882 * target.h (struct target_ops_deleter, target_ops_up): New.
883
884 2018-05-11 Pedro Alves <palves@redhat.com>
885
886 * corefile.c (core_file_command): Move to corelow.c.
887 * corelow.c (the_core_target): Delete.
888 (core_file_command): Moved from corefile.c. Check exec_bfd
889 instead of the_core_target. Use target_detach instead of calling
890 into the_core_target directly.
891 (maybe_say_no_core_file_now): New.
892 (core_target::detach): Use it.
893 (_initialize_corelow): Remove references to the_core_target.
894 * gdbcore.h (the_core_target): Delete.
895
896 2018-05-11 Tom Tromey <tromey@redhat.com>
897 Pedro Alves <palves@redhat.com>
898
899 * corefile.c (core_bfd): Remove.
900 * gdbcore.h (core_bfd): Now a macro.
901 * progspace.h (struct program_space) <cbfd>: New field.
902
903 2018-05-11 Tom Tromey <tom@tromey.com>
904
905 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
906 gdb::def_vector.
907
908 2018-05-10 Tom Tromey <tom@tromey.com>
909
910 * configure: Rebuild.
911 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
912
913 2018-05-10 Joel Brobecker <brobecker@adacore.com>
914
915 PR server/23158:
916 * regformats/regdat.sh: Adjust script, following the addition
917 of the new expedite_regs parameter to init_target_desc.
918
919 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
920
921 PR gdb/23127
922 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
923 set_gdbarch_significant_addr_bit.
924 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
925 set_gdbarch_significant_addr_bit.
926 * utils.c (address_significant): Update to sign extend addr.
927
928 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
929
930 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
931 (xtensa_linux_init_abi): Limit tdep->num_regs by
932 tdep->num_nopriv_regs.
933 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
934 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
935 not initialized.
936
937 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
938
939 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
940
941 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
942
943 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
944 (I387_MXCSR_INIT_VAL): New constant.
945 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
946 buffer if it was supplied by the inferior.
947 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
948 (i387_xsave_get_clear_bv): New function.
949 (i387_supply_xsave): Only read x87 control registers from the
950 xsave buffer if the feature is enabled, and the state will have
951 been written, otherwise, provide a suitable default.
952 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
953 including x87 control registers. Update control registers if they
954 have changed from the default value, and mark features as enabled
955 as required.
956 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
957
958 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
959
960 * spu-tdep.c (info_spu_event_command): Fix output formatting.
961
962 2018-05-07 Tom Tromey <tom@tromey.com>
963
964 * configure: Rebuild.
965 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
966
967 2018-05-07 Tom Tromey <tom@tromey.com>
968
969 PR tdep/20362:
970 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
971 bit. Use correct value for VDIV.
972
973 2018-05-04 Tom Tromey <tom@tromey.com>
974
975 * configure: Rebuild.
976 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
977
978 2018-05-04 Tom Tromey <tom@tromey.com>
979
980 * linux-record.c (record_linux_system_call) <case
981 RECORD_SYS_RECVFROM>: Add "break".
982
983 2018-05-04 Tom Tromey <tom@tromey.com>
984
985 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
986 Add missing "break".
987 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
988 Add missing "break".
989
990 2018-05-04 Tom Tromey <tom@tromey.com>
991
992 * rs6000-tdep.c (ppc_process_record_op4)
993 (ppc_process_record_op63): Add fall-through comment.
994
995 2018-05-04 Tom Tromey <tom@tromey.com>
996
997 * i386-tdep.c (i386_process_record): Add fall-through comment.
998
999 2018-05-04 Tom Tromey <tom@tromey.com>
1000
1001 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
1002 comment.
1003
1004 2018-05-04 Tom Tromey <tom@tromey.com>
1005
1006 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
1007 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
1008 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
1009 comment.
1010 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
1011 comment.
1012 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
1013 comment.
1014
1015 2018-05-04 Tom Tromey <tom@tromey.com>
1016
1017 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
1018
1019 2018-05-04 Tom Tromey <tom@tromey.com>
1020
1021 * s390-tdep.c (s390_process_record): Fix fall-through comments.
1022 * xcoffread.c (scan_xcoff_symtab): Move comment later.
1023 * symfile.c (section_is_mapped): Fix fall-through comment.
1024 * stabsread.c (define_symbol, read_member_functions): Fix
1025 fall-through comment.
1026 * s390-linux-tdep.c (s390_process_record): Fix fall-through
1027 comment.
1028 * remote.c (remote_wait_as): Fix fall-through comment.
1029 * p-exp.y (yylex): Fix fall-through comment.
1030 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
1031 comment.
1032 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
1033 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
1034 * jv-exp.y (yylex): Fix fall-through comment.
1035 * go-exp.y (lex_one_token): Fix fall-through comment.
1036 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
1037 fall-through comment.
1038 * f-exp.y (yylex): Fix fall-through comment.
1039 * dwarf2read.c (process_die): Fix fall-through comments.
1040 * dbxread.c (process_one_symbol): Fix fall-through comment.
1041 * d-exp.y (lex_one_token): Fix fall-through comment.
1042 * cp-name-parser.y (yylex): Fix fall-through comment.
1043 * coffread.c (coff_symtab_read): Fix fall-through comment.
1044 * c-exp.y (lex_one_token): Fix fall-through comment.
1045 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
1046 comment.
1047 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
1048 comment.
1049
1050 2018-05-04 Tom Tromey <tom@tromey.com>
1051
1052 PR python/22730:
1053 * NEWS: Mention gdb.execute change.
1054 * gdbcmd.h (execute_control_command): Don't declare.
1055 * python/python.c (execute_gdb_command): Use read_command_lines_1,
1056 execute_control_commands, execute_control_commands_to_string.
1057 * cli/cli-script.h (execute_control_commands)
1058 (execute_control_commands_to_string): Declare.
1059 (execute_control_command): Add from_tty parameter.
1060 * cli/cli-script.c (execute_control_commands)
1061 (execute_control_commands_to_string): New functions.
1062 (execute_user_command): Use execute_control_commands.
1063 (execute_control_command_1): Add "from_tty" parameter. Update.
1064 (execute_control_command): Likewise.
1065
1066 2018-05-04 Tom Tromey <tom@tromey.com>
1067
1068 PR python/22731:
1069 * NEWS: Mention that breakpoint commands are writable.
1070 * python/py-breakpoint.c (bppy_set_commands): New function.
1071 (breakpoint_object_getset) <"commands">: Use it.
1072
1073 2018-05-04 Tom Tromey <tom@tromey.com>
1074
1075 * tracepoint.c (actions_command): Update.
1076 * mi/mi-cmd-break.c (mi_command_line_array)
1077 (mi_command_line_array_cnt, mi_command_line_array_ptr)
1078 (mi_read_next_line): Remove.
1079 (mi_cmd_break_commands): Update.
1080 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
1081 function_view.
1082 * cli/cli-script.c (get_command_line): Update.
1083 (process_next_line): Use function_view. Constify.
1084 (recurse_read_control_structure, read_command_lines)
1085 (read_command_lines_1): Change argument types to function_view.
1086 (do_define_command, document_command): Update.
1087 * breakpoint.h (check_tracepoint_command): Don't declare.
1088 * breakpoint.c (check_tracepoint_command): Remove.
1089 (commands_command_1, create_tracepoint_from_upload): Update.
1090
1091 2018-05-04 Tom Tromey <tom@tromey.com>
1092
1093 PR gdb/11750:
1094 * cli/cli-script.h (enum command_control_type) <define_control>:
1095 New constant.
1096 * cli/cli-script.c (multi_line_command_p): Handle define_control.
1097 (build_command_line, execute_control_command_1)
1098 (process_next_line): Likewise.
1099 (do_define_command): New function, extracted from define_command.
1100 (define_command): Use it.
1101
1102 2018-05-04 Tom Tromey <tom@tromey.com>
1103
1104 * tracepoint.c (actions_command): Update.
1105 * cli/cli-script.h (read_command_lines): Update.
1106 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
1107 (MAX_TMPBUF): Remove define.
1108 (define_command): Use string_printf.
1109 (document_command): Likewise.
1110 * breakpoint.c (commands_command_1): Update.
1111
1112 2018-05-04 Tom Tromey <tom@tromey.com>
1113
1114 * top.c (execute_command): Update.
1115 * cli/cli-script.h (print_command_lines): Now varargs.
1116 * cli/cli-script.c (print_command_lines): Now varargs.
1117 (execute_control_command_1) <case while_control, case if_control>:
1118 Update.
1119
1120 2018-05-04 Tom Tromey <tom@tromey.com>
1121
1122 * tracepoint.c (all_tracepoint_actions): Rename from
1123 all_tracepoint_actions_and_cleanup. Change return type.
1124 (actions_command, encode_actions_1, encode_actions)
1125 (trace_dump_actions, tdump_command): Update.
1126 * remote.c (remote_download_command_source): Update.
1127 * python/python.c (gdbpy_eval_from_control_command)
1128 (python_command, python_interactive_command): Update.
1129 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
1130 * guile/guile.c (guile_command)
1131 (gdbscm_eval_from_control_command, guile_command): Update.
1132 * compile/compile.c (compile_code_command)
1133 (compile_print_command, compile_to_object): Update.
1134 * cli/cli-script.h (struct command_lines_deleter): New.
1135 (counted_command_line): New typedef.
1136 (struct command_line): Add constructor, destructor.
1137 <body_list>: Remove.
1138 <body_list_0, body_list_1>: New members.
1139 (command_line_up): Remove typedef.
1140 (read_command_lines, read_command_lines_1, get_command_line):
1141 Update.
1142 (copy_command_lines): Don't declare.
1143 * cli/cli-script.c (build_command_line): Use "new".
1144 (get_command_line): Return counted_command_line.
1145 (print_command_lines, execute_user_command)
1146 (execute_control_command_1, while_command, if_command): Update.
1147 (realloc_body_list): Remove.
1148 (process_next_line, recurse_read_control_structure): Update.
1149 (read_command_lines, read_command_lines_1): Return counted_command_line.
1150 (free_command_lines): Use "delete".
1151 (copy_command_lines): Remove.
1152 (define_command, document_command, show_user_1): Update.
1153 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
1154 a counted_command_line.
1155 * breakpoint.h (counted_command_line): Remove typedef.
1156 (breakpoint_set_commands): Update.
1157 * breakpoint.c (check_no_tracepoint_commands)
1158 (validate_commands_for_breakpoint): Update.
1159 (breakpoint_set_commands): Change commands to be a
1160 counted_command_line.
1161 (commands_command_1, update_dprintf_command_list)
1162 (create_tracepoint_from_upload): Update.
1163
1164 2018-05-04 Tom Tromey <tom@tromey.com>
1165
1166 * cli/cli-decode.h (cmd_list_element): New constructor.
1167 (~cmd_list_element): New destructor.
1168 (struct cmd_list_element): Add initializers.
1169 * cli/cli-decode.c (do_add_cmd): Use "new".
1170 (delete_cmd): Use "delete".
1171
1172 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1173 Pedro Alves <palves@redhat.com>
1174
1175 PR breakpoints/19806 and support for PR external/20207.
1176 * NEWS: Mention Aarch64 watchpoint improvements.
1177 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
1178 watchpoints and PR external/20207 watchpoints.
1179 * nat/aarch64-linux-hw-point.c
1180 (kernel_supports_any_contiguous_range): New.
1181 (aarch64_watchpoint_offset): New.
1182 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
1183 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
1184 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
1185 (aarch64_align_watchpoint): New parameters aligned_offset_p and
1186 next_addr_orig_p. Support PR external/20207 watchpoints.
1187 (aarch64_downgrade_regs): New.
1188 (aarch64_dr_state_insert_one_point): New parameters offset and
1189 addr_orig.
1190 (aarch64_dr_state_remove_one_point): Likewise.
1191 (aarch64_handle_breakpoint): Update caller.
1192 (aarch64_handle_aligned_watchpoint): Likewise.
1193 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
1194 aligned_offset.
1195 (aarch64_linux_set_debug_regs): Remove const from state. Call
1196 aarch64_downgrade_regs.
1197 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
1198 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
1199 (DR_CONTROL_MASK): ... this.
1200 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
1201 (unsigned int aarch64_watchpoint_offset): New prototype.
1202 (aarch64_linux_set_debug_regs): Remove const from state.
1203 * utils.c (align_up, align_down): Move to ...
1204 * common/common-utils.c (align_up, align_down): ... here.
1205 * utils.h (align_up, align_down): Move to ...
1206 * common/common-utils.h (align_up, align_down): ... here.
1207
1208 2018-05-04 Joel Brobecker <brobecker@adacore.com>
1209
1210 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
1211 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
1212 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
1213 Re-implement to match the ABI as summarized in GCC's
1214 gcc/config/sparc/sparc.c. All callers updated.
1215 (sparc32_store_arguments): Remove assertion.
1216
1217 2018-05-04 Tom Tromey <tom@tromey.com>
1218
1219 * printcmd.c: Don't include tui.h.
1220 (decode_format): Use skip_spaces.
1221
1222 2018-05-04 Tom Tromey <tom@tromey.com>
1223
1224 PR gdb/22619:
1225 * printcmd.c (last_count): New global.
1226 (x_command): Use saved count when repeating.
1227
1228 2018-05-04 Tom Tromey <tom@tromey.com>
1229
1230 * nto-procfs.c (do_closedir_cleanup): Remove.
1231 (procfs_pidlist): Use gdb_dir_up.
1232 * procfs.c (do_closedir_cleanup): Remove.
1233 (proc_update_threads): Use gdb_dir_up.
1234 * common/filestuff.h (struct gdb_dir_deleter): New.
1235 (gdb_dir_up): New typedef.
1236
1237 2018-05-04 Tom Tromey <tom@tromey.com>
1238
1239 * ada-lang.c (print_mention_exception): Use std::string.
1240
1241 2018-05-04 Tom Tromey <tom@tromey.com>
1242
1243 * ada-lang.c (create_excep_cond_exprs): Update.
1244 (ada_exception_catchpoint_cond_string): Use std::string.
1245
1246 2018-05-04 Tom Tromey <tom@tromey.com>
1247
1248 * ada-lang.c (xget_renaming_scope): Return std::string.
1249 (old_renaming_is_invisible): Update.
1250
1251 2018-05-04 Tom Tromey <tom@tromey.com>
1252
1253 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
1254 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
1255
1256 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1257
1258 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
1259
1260 2018-05-04 Tom Tromey <tom@tromey.com>
1261
1262 * remote.c (remote_query_supported_append): Change type.
1263 (remote_check_symbols): Update.
1264
1265 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
1266
1267 PR gdb/11420
1268 * configure.ac: Prepend libpython.
1269 * python/python-config.py: Likewise.
1270 * configure: Regenerate.
1271
1272 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
1273
1274 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
1275
1276 2018-05-03 Pedro Alves <palves@redhat.com>
1277
1278 * s390-linux-nat.c
1279 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
1280 override. Write 'true' instead of '1'.
1281 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
1282 declaration.
1283
1284 2018-05-02 Pedro Alves <palves@redhat.com>
1285
1286 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
1287 add_inf_child_target.
1288 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
1289 add_inf_child_target.
1290 * aix-thread.c (aix_thread_target_info): New.
1291 (aix_thread_target) <shortname, longname, doc>: Delete.
1292 <info>: New.
1293 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
1294 add_inf_child_target.
1295 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1296 add_inf_child_target.
1297 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
1298 add_inf_child_target.
1299 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
1300 add_inf_child_target.
1301 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
1302 add_inf_child_target.
1303 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
1304 add_inf_child_target.
1305 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
1306 add_inf_child_target.
1307 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
1308 add_inf_child_target.
1309 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
1310 add_inf_child_target.
1311 * bfd-target.c (target_bfd_target_info): New.
1312 (target_bfd) <shortname, longname, doc>: Delete.
1313 <info>: New.
1314 * bsd-kvm.c (bsd_kvm_target_info): New.
1315 (bsd_kvm_target) <shortname, longname, doc>: Delete.
1316 <info>: New.
1317 (bsd_kvm_target::open): Rename to ...
1318 (bsd_kvm_target_open): ... this. Adjust.
1319 * bsd-uthread.c (bsd_uthread_target_info): New.
1320 (bsd_uthread_target) <shortname, longname, doc>: Delete.
1321 <info>: New.
1322 * corefile.c (core_file_command): Adjust.
1323 * corelow.c (core_target_info): New.
1324 (core_target) <shortname, longname, doc>: Delete.
1325 <info>: New.
1326 (core_target::open): Rename to ...
1327 (core_target_open): ... this. Adjust.
1328 * ctf.c (ctf_target_info): New.
1329 (ctf_target) <shortname, longname, doc>: Delete.
1330 <info>: New.
1331 (ctf_target::open): Rename to ...
1332 (ctf_target_open): ... this.
1333 (_initialize_ctf): Adjust.
1334 * exec.c (exec_target_info): New.
1335 (exec_target) <shortname, longname, doc>: Delete.
1336 <info>: New.
1337 (exec_target::open): Rename to ...
1338 (exec_target_open): ... this.
1339 * gdbcore.h (core_target_open): Declare.
1340 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
1341 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
1342 add_inf_child_target.
1343 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
1344 add_inf_child_target.
1345 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
1346 add_inf_child_target.
1347 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
1348 add_inf_child_target.
1349 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
1350 add_inf_child_target.
1351 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
1352 add_inf_child_target.
1353 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
1354 add_inf_child_target.
1355 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
1356 add_inf_child_target.
1357 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
1358 add_inf_child_target.
1359 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
1360 add_inf_child_target.
1361 * inf-child.c (inf_child_target_info): New.
1362 (inf_child_target::info): New.
1363 (inf_child_open_target): Remove 'target' parameter. Use
1364 get_native_target instead.
1365 (inf_child_target::open): Delete.
1366 (add_inf_child_target): New.
1367 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
1368 Delete.
1369 <info>: New.
1370 (add_inf_child_target): Declare.
1371 (inf_child_open_target): Declare.
1372 * linux-thread-db.c (thread_db_target_info): New.
1373 (thread_db_target) <shortname, longname, doc>: Delete.
1374 <info>: New.
1375 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
1376 add_inf_child_target.
1377 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
1378 add_inf_child_target.
1379 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
1380 add_inf_child_target.
1381 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
1382 add_inf_child_target.
1383 * make-target-delegates (print_class): Adjust.
1384 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
1385 add_inf_child_target.
1386 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
1387 add_inf_child_target.
1388 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
1389 add_inf_child_target.
1390 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
1391 add_inf_child_target.
1392 * nto-procfs.c (nto_native_target_info): New.
1393 (nto_procfs_target_native) <shortname, longname, doc>:
1394 Delete.
1395 <info>: New.
1396 (nto_procfs_target_info): New.
1397 (nto_procfs_target_procfs) <shortname, longname, doc>:
1398 Delete.
1399 <info>: New.
1400 (init_procfs_targets): Adjust.
1401 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
1402 add_inf_child_target.
1403 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
1404 add_inf_child_target.
1405 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
1406 add_inf_child_target.
1407 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
1408 add_inf_child_target.
1409 * ravenscar-thread.c (ravenscar_target_info): New.
1410 (ravenscar_thread_target) <shortname, longname, doc>:
1411 Delete.
1412 <info>: New.
1413 * record-btrace.c (record_btrace_target_info):
1414 (record_btrace_target) <shortname, longname, doc>: Delete.
1415 <info>: New.
1416 (record_btrace_target::open): Rename to ...
1417 (record_btrace_target_open): ... this. Adjust.
1418 * record-full.c (record_longname, record_doc): New.
1419 (record_full_base_target) <shortname, longname, doc>: Delete.
1420 <info>: New.
1421 (record_full_target_info): New.
1422 (record_full_target): <shortname>: Delete.
1423 <info>: New.
1424 (record_full_core_open_1, record_full_open_1): Update comments.
1425 (record_full_base_target::open): Rename to ...
1426 (record_full_open): ... this.
1427 (cmd_record_full_restore): Update.
1428 (_initialize_record_full): Update.
1429 * remote-sim.c (remote_sim_target_info): New.
1430 (gdbsim_target) <shortname, longname, doc>: Delete.
1431 <info>: New.
1432 (gdbsim_target::open): Rename to ...
1433 (gdbsim_target_open): ... this.
1434 (_initialize_remote_sim): Adjust.
1435 * remote.c (remote_doc): New.
1436 (remote_target_info): New.
1437 (remote_target) <shortname, longname, doc>: Delete.
1438 <info>: New.
1439 (extended_remote_target_info): New.
1440 (extended_remote_target) <shortname, longname, doc>: Delete.
1441 <info>: New.
1442 (remote_target::open_1): Make static. Adjust.
1443 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
1444 * s390-linux-nat.c (_initialize_s390_nat): Use
1445 add_inf_child_target.
1446 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
1447 add_inf_child_target.
1448 * sol-thread.c (thread_db_target_info): New.
1449 (sol_thread_target) <shortname, longname, doc>: Delete.
1450 <info>: New.
1451 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
1452 add_inf_child_target.
1453 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
1454 add_inf_child_target.
1455 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
1456 add_inf_child_target.
1457 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
1458 add_inf_child_target.
1459 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
1460 add_inf_child_target.
1461 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
1462 add_inf_child_target.
1463 * spu-linux-nat.c (_initialize_spu_nat): Use
1464 add_inf_child_target.
1465 * spu-multiarch.c (spu_multiarch_target_info): New.
1466 (spu_multiarch_target) <shortname, longname, doc>: Delete.
1467 <info>: New.
1468 * target-delegates.c: Regenerate.
1469 * target.c: Include <unordered_map>.
1470 (target_ops_p): Delete.
1471 (DEF_VEC_P(target_ops_p)): Delete.
1472 (target_factories): New.
1473 (test_target_info): New.
1474 (test_target_ops::info): New.
1475 (open_target): Adjust to use target_factories.
1476 (add_target_with_completer): Rename to ...
1477 (add_target): ... this. Change prototype. Register target_info
1478 and open callback in target_factories. Register target_info in
1479 command context instead of target_ops.
1480 (add_target): Delete old implementation.
1481 (add_deprecated_target_alias): Change prototype. Adjust.
1482 (the_native_target): New.
1483 (set_native_target, get_native_target): New.
1484 (find_default_run_target): Use the_native_target.
1485 (find_attach_target, find_run_target): Simplify.
1486 (target_ops::open): Delete.
1487 (dummy_target_info): New.
1488 (dummy_target::shortname, dummy_target::longname)
1489 (dummy_target::doc): Delete.
1490 (dummy_target::info): New.
1491 (debug_target::shortname, debug_target::longname)
1492 (debug_target::doc): Delete.
1493 (debug_target::info): New.
1494 * target.h (struct target_info): New.
1495 (target_ops::~target_ops): Add comment.
1496 (target_ops::info): New.
1497 (target_ops::shortname, target_ops::longname, target_ops::doc): No
1498 longer virtual. Implement in terms of target_info.
1499 (set_native_target, get_native_target): Declare.
1500 (target_open_ftype): New.
1501 (add_target, add_target_with_completer)
1502 (add_deprecated_target_alias): Change prototype.
1503 (test_target) <shortname, longname, doc>: Delete.
1504 <info>: New.
1505 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
1506 add_inf_child_target.
1507 * tracefile-tfile.c (tfile_target_info): New.
1508 (tfile_target) <shortname, longname, doc>: Delete.
1509 <info>: New.
1510 (tfile_target::open): Rename to ...
1511 (tfile_target_open): ... this.
1512 (_initialize_tracefile_tfile): Adjust.
1513 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
1514 add_inf_child_target.
1515 * windows-nat.c (_initialize_windows_nat): Use
1516 add_inf_child_target.
1517 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
1518 add_inf_child_target.
1519
1520 2018-05-02 Pedro Alves <palves@redhat.com>
1521
1522 * linux-nat.h (linux_nat_target) <low_new_thread,
1523 low_delete_thread, low_new_fork, low_forget_process,
1524 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
1525 New virtual methods.
1526 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
1527 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
1528 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
1529 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
1530 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
1531 Delete.
1532 * linux-fork.c (delete_fork): Adjust to call low method.
1533 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
1534 (linux_nat_new_fork, linux_nat_forget_process_hook)
1535 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
1536 (linux_nat_status_is_event):
1537 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
1538 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
1539 to call low method.
1540 (sigtrap_is_event): Rename to ...
1541 (linux_nat_target::low_status_is_event): ... this.
1542 (linux_nat_set_status_is_event): Delete.
1543 (save_stop_reason, linux_nat_wait_1)
1544 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
1545 low methods.
1546 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
1547 (linux_nat_set_new_fork, linux_nat_set_forget_process)
1548 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
1549 (linux_nat_set_prepare_to_resume): Delete.
1550 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
1551 low virtual methods.
1552 * amd64-linux-nat.c: Likewise.
1553 * arm-linux-nat.c: Likewise.
1554 * i386-linux-nat.c: Likewise.
1555 * ia64-linux-nat.c: Likewise.
1556 * mips-linux-nat.c: Likewise.
1557 * ppc-linux-nat.c: Likewise.
1558 * s390-linux-nat.c: Likewise.
1559 * sparc64-linux-nat.c: Likewise.
1560 * x86-linux-nat.c: Likewise.
1561 * x86-linux-nat.h: Include "nat/x86-linux.h".
1562 (x86_linux_nat_target) <low_new_fork, low_forget_process,
1563 low_prepare_to_resume, low_new_thread, low_delete_thread>:
1564 Override methods.
1565
1566 2018-05-02 Pedro Alves <palves@redhat.com>
1567
1568 * target.h (target_ops)
1569 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
1570 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
1571 stopped_by_watchpoint, have_continuable_watchpoint,
1572 stopped_data_address, watchpoint_addr_within_range,
1573 can_accel_watchpoint_condition, can_run, thread_alive,
1574 has_all_memory, has_memory, has_stack, has_registers,
1575 has_execution, can_async_p, is_async_p, supports_non_stop,
1576 always_non_stop_p, can_execute_reverse, supports_multi_process,
1577 supports_enable_disable_tracepoint,
1578 supports_disable_randomization, supports_string_tracing,
1579 supports_evaluation_of_breakpoint_conditions,
1580 can_run_breakpoint_commands, filesystem_is_local,
1581 can_download_tracepoint, get_trace_state_variable_value,
1582 set_trace_notes, get_tib_address, use_agent, can_use_agent,
1583 record_is_replaying, record_will_replay,
1584 augmented_libraries_svr4_read>: Adjust to return bool.
1585 * aarch64-linux-nat.c: All implementations adjusted.
1586 * aix-thread.c: All implementations adjusted.
1587 * arm-linux-nat.c: All implementations adjusted.
1588 * breakpoint.c: All implementations adjusted.
1589 * bsd-kvm.c: All implementations adjusted.
1590 * bsd-uthread.c: All implementations adjusted.
1591 * corelow.c: All implementations adjusted.
1592 * ctf.c: All implementations adjusted.
1593 * darwin-nat.c: All implementations adjusted.
1594 * darwin-nat.h: All implementations adjusted.
1595 * exec.c: All implementations adjusted.
1596 * fbsd-nat.c: All implementations adjusted.
1597 * fbsd-nat.h: All implementations adjusted.
1598 * gnu-nat.c: All implementations adjusted.
1599 * gnu-nat.h: All implementations adjusted.
1600 * go32-nat.c: All implementations adjusted.
1601 * ia64-linux-nat.c: All implementations adjusted.
1602 * inf-child.c: All implementations adjusted.
1603 * inf-child.h: All implementations adjusted.
1604 * inf-ptrace.c: All implementations adjusted.
1605 * inf-ptrace.h: All implementations adjusted.
1606 * linux-nat.c: All implementations adjusted.
1607 * linux-nat.h: All implementations adjusted.
1608 * mips-linux-nat.c: All implementations adjusted.
1609 * nto-procfs.c: All implementations adjusted.
1610 * ppc-linux-nat.c: All implementations adjusted.
1611 * procfs.c: All implementations adjusted.
1612 * ravenscar-thread.c: All implementations adjusted.
1613 * record-btrace.c: All implementations adjusted.
1614 * record-full.c: All implementations adjusted.
1615 * remote-sim.c: All implementations adjusted.
1616 * remote.c: All implementations adjusted.
1617 * s390-linux-nat.c: All implementations adjusted.
1618 * sol-thread.c: All implementations adjusted.
1619 * spu-multiarch.c: All implementations adjusted.
1620 * target-delegates.c: All implementations adjusted.
1621 * target.c: All implementations adjusted.
1622 * target.h: All implementations adjusted.
1623 * tracefile-tfile.c: All implementations adjusted.
1624 * tracefile.c: All implementations adjusted.
1625 * tracefile.h: All implementations adjusted.
1626 * windows-nat.c: All implementations adjusted.
1627 * x86-linux-nat.h: All implementations adjusted.
1628 * x86-nat.h: All implementations adjusted.
1629
1630 2018-05-02 Pedro Alves <palves@redhat.com>
1631
1632 * make-target-delegates (scan_target_h): Don't trim lines here.
1633 Replace sequences of tabs and/or whitespace with a single
1634 whitespace.
1635 (top level, parsing methods): Trim each line before processing it
1636 here.
1637
1638 2018-05-02 Pedro Alves <palves@redhat.com>
1639 John Baldwin <jhb@freebsd.org>
1640
1641 * target.h (enum strata) <debug_stratum>: New.
1642 (struct target_ops) <all delegation methods>: Replace by C++
1643 virtual methods, and drop "to_" prefix. All references updated
1644 throughout.
1645 <to_shortname, to_longname, to_doc, to_data,
1646 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
1647 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
1648 virtual methods. All references updated throughout.
1649 <can_attach, supports_terminal_ours, can_create_inferior,
1650 get_thread_control_capabilities, attach_no_wait>: New
1651 virtual methods.
1652 <insert_breakpoint, remove_breakpoint>: Now
1653 TARGET_DEFAULT_NORETURN methods.
1654 <info_proc>: Now returns bool.
1655 <to_magic>: Delete.
1656 (OPS_MAGIC): Delete.
1657 (current_target): Delete. All references replaced by references
1658 to ...
1659 (target_stack): ... this. New.
1660 (target_shortname, target_longname): Adjust.
1661 (target_can_run): Now a function declaration.
1662 (default_child_has_all_memory, default_child_has_memory)
1663 (default_child_has_stack, default_child_has_registers)
1664 (default_child_has_execution): Remove target_ops parameter.
1665 (complete_target_initialization): Delete.
1666 (memory_breakpoint_target): New template class.
1667 (test_target_ops): Refactor as a C++ class with virtual methods.
1668 * make-target-delegates (NAME_PART): Tighten.
1669 (POINTER_PART, CP_SYMBOL): New.
1670 (SIMPLE_RETURN_PART): Reimplement.
1671 (VEC_RETURN_PART): Expect less.
1672 (RETURN_PART, VIRTUAL_PART): New.
1673 (METHOD): Adjust to C++ virtual methods.
1674 (scan_target_h): Remove reference to C99.
1675 (dname): Output "target_ops::" prefix.
1676 (write_function_header): Adjust to output a C++ class method.
1677 (write_declaration): New.
1678 (write_delegator): Adjust to output a C++ class method.
1679 (tdname): Output "dummy_target::" prefix.
1680 (write_tdefault, write_debugmethod): Adjust to output a C++ class
1681 method.
1682 (tdefault_names, debug_names): Delete.
1683 (return_types, tdefaults, styles, argtypes_array): New.
1684 (top level): All methods are delegators.
1685 (print_class): New.
1686 (top level): Print dummy_target and debug_target classes.
1687 * target-delegates.c: Regenerate.
1688 * target-debug.h (target_debug_print_enum_info_proc_what)
1689 (target_debug_print_thread_control_capabilities)
1690 (target_debug_print_thread_info_p): New.
1691 * target.c (dummy_target): Delete.
1692 (the_dummy_target, the_debug_target): New.
1693 (target_stack): Now extern.
1694 (set_targetdebug): Push/unpush debug target.
1695 (default_child_has_all_memory, default_child_has_memory)
1696 (default_child_has_stack, default_child_has_registers)
1697 (default_child_has_execution): Remove target_ops parameter.
1698 (complete_target_initialization): Delete.
1699 (add_target_with_completer): No longer call
1700 complete_target_initialization.
1701 (target_supports_terminal_ours): Use regular delegation.
1702 (update_current_target): Delete.
1703 (push_target): No longer check magic number. Don't call
1704 update_current_target.
1705 (unpush_target): Don't call update_current_target.
1706 (target_is_pushed): No longer check magic number.
1707 (target_require_runnable): Skip for all stratums over
1708 process_stratum.
1709 (target_ops::info_proc): New.
1710 (target_info_proc): Use find_target_at and
1711 find_default_run_target.
1712 (target_supports_disable_randomization): Use regular delegation.
1713 (target_get_osdata): Use find_target_at.
1714 (target_ops::open, target_ops::close, target_ops::can_attach)
1715 (target_ops::attach, target_ops::can_create_inferior)
1716 (target_ops::create_inferior, target_ops::can_run)
1717 (target_can_run): New.
1718 (default_fileio_target): Use regular delegation.
1719 (target_ops::fileio_open, target_ops::fileio_pwrite)
1720 (target_ops::fileio_pread, target_ops::fileio_fstat)
1721 (target_ops::fileio_close, target_ops::fileio_unlink)
1722 (target_ops::fileio_readlink): New.
1723 (target_fileio_open_1, target_fileio_unlink)
1724 (target_fileio_readlink): Always call the target method. Handle
1725 FILEIO_ENOSYS.
1726 (return_zero, return_zero_has_execution): Delete.
1727 (init_dummy_target): Delete.
1728 (dummy_target::dummy_target, dummy_target::shortname)
1729 (dummy_target::longname, dummy_target::doc)
1730 (debug_target::debug_target, debug_target::shortname)
1731 (debug_target::longname, debug_target::doc): New.
1732 (target_supports_delete_record): Use regular delegation.
1733 (setup_target_debug): Delete.
1734 (maintenance_print_target_stack): Skip debug_stratum.
1735 (initialize_targets): Instantiate the_dummy_target and
1736 the_debug_target.
1737 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
1738 use target_stack.
1739 (target_auxv_search, fprint_target_auxv): Adjust.
1740 (info_auxv_command): Adjust to use target_stack.
1741 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
1742 * exceptions.c (print_flush): Handle a NULL target_stack.
1743 * regcache.c (target_ops_no_register): Refactor as class with
1744 virtual methods.
1745
1746 * exec.c (exec_target): New class.
1747 (exec_ops): Now an exec_target.
1748 (exec_open, exec_close_1, exec_get_section_table)
1749 (exec_xfer_partial, exec_files_info, exec_has_memory)
1750 (exec_make_note_section): Refactor as exec_target methods.
1751 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
1752 Delete.
1753 (exec_target::find_memory_regions): New.
1754 (_initialize_exec): Don't call init_exec_ops.
1755 * gdbcore.h (exec_file_clear): Delete.
1756
1757 * corefile.c (core_target): Delete.
1758 (core_file_command): Adjust.
1759 * corelow.c (core_target): New class.
1760 (the_core_target): New.
1761 (core_close): Remove target_ops parameter.
1762 (core_close_cleanup): Adjust.
1763 (core_target::close): New.
1764 (core_open, core_detach, get_core_registers, core_files_info)
1765 (core_xfer_partial, core_thread_alive, core_read_description)
1766 (core_pid_to_str, core_thread_name, core_has_memory)
1767 (core_has_stack, core_has_registers, core_info_proc): Rework as
1768 core_target methods.
1769 (ignore, core_remove_breakpoint, init_core_ops): Delete.
1770 (_initialize_corelow): Initialize the_core_target.
1771 * gdbcore.h (core_target): Delete.
1772 (the_core_target): New.
1773
1774 * ctf.c: (ctf_target): New class.
1775 (ctf_ops): Now a ctf_target.
1776 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
1777 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
1778 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
1779 methods.
1780 (init_ctf_ops): Delete.
1781 (_initialize_ctf): Don't call it.
1782 * tracefile-tfile.c (tfile_target): New class.
1783 (tfile_ops): Now a tfile_target.
1784 (tfile_open, tfile_close, tfile_files_info)
1785 (tfile_get_tracepoint_status, tfile_trace_find)
1786 (tfile_fetch_registers, tfile_xfer_partial)
1787 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
1788 Refactor as tfile_target methods.
1789 (tfile_xfer_partial_features): Remove target_ops parameter.
1790 (init_tfile_ops): Delete.
1791 (_initialize_tracefile_tfile): Don't call it.
1792 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
1793 (tracefile_has_stack, tracefile_has_registers)
1794 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
1795 tracefile_target methods.
1796 (init_tracefile_ops): Delete.
1797 (tracefile_target::tracefile_target): New.
1798 * tracefile.h: Include "target.h".
1799 (tracefile_target): New class.
1800 (init_tracefile_ops): Delete.
1801
1802 * spu-multiarch.c (spu_multiarch_target): New class.
1803 (spu_ops): Now a spu_multiarch_target.
1804 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
1805 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1806 (spu_search_memory, spu_mourn_inferior): Refactor as
1807 spu_multiarch_target methods.
1808 (init_spu_ops): Delete.
1809 (_initialize_spu_multiarch): Remove references to init_spu_ops,
1810 complete_target_initialization.
1811
1812 * ravenscar-thread.c (ravenscar_thread_target): New class.
1813 (ravenscar_ops): Now a ravenscar_thread_target.
1814 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
1815 (ravenscar_thread_alive, ravenscar_pid_to_str)
1816 (ravenscar_fetch_registers, ravenscar_store_registers)
1817 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
1818 (ravenscar_stopped_by_hw_breakpoint)
1819 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
1820 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
1821 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
1822 methods.
1823 (init_ravenscar_thread_ops): Delete.
1824 (_initialize_ravenscar): Remove references to
1825 init_ravenscar_thread_ops and complete_target_initialization.
1826
1827 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
1828 (bsd_uthread_target): New class.
1829 (bsd_uthread_ops): Now a bsd_uthread_target.
1830 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
1831 (bsd_uthread_close, bsd_uthread_mourn_inferior)
1832 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
1833 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
1834 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
1835 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
1836 (bsd_uthread_target): Delete function.
1837 (_initialize_bsd_uthread): Remove reference to
1838 complete_target_initialization.
1839
1840 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
1841 (target_bfd): ... this new class.
1842 (target_bfd_xfer_partial, target_bfd_get_section_table)
1843 (target_bfd_close): Refactor as target_bfd methods.
1844 (target_bfd::~target_bfd): New.
1845 (target_bfd_reopen): Adjust.
1846 (target_bfd::close): New.
1847
1848 * record-btrace.c (record_btrace_target): New class.
1849 (record_btrace_ops): Now a record_btrace_target.
1850 (record_btrace_open, record_btrace_stop_recording)
1851 (record_btrace_disconnect, record_btrace_close)
1852 (record_btrace_async, record_btrace_info)
1853 (record_btrace_insn_history, record_btrace_insn_history_range)
1854 (record_btrace_insn_history_from, record_btrace_call_history)
1855 (record_btrace_call_history_range)
1856 (record_btrace_call_history_from, record_btrace_record_method)
1857 (record_btrace_is_replaying, record_btrace_will_replay)
1858 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1859 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
1860 (record_btrace_store_registers, record_btrace_prepare_to_store)
1861 (record_btrace_to_get_unwinder)
1862 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
1863 (record_btrace_commit_resume, record_btrace_wait)
1864 (record_btrace_stop, record_btrace_can_execute_reverse)
1865 (record_btrace_stopped_by_sw_breakpoint)
1866 (record_btrace_supports_stopped_by_sw_breakpoint)
1867 (record_btrace_stopped_by_hw_breakpoint)
1868 (record_btrace_supports_stopped_by_hw_breakpoint)
1869 (record_btrace_update_thread_list, record_btrace_thread_alive)
1870 (record_btrace_goto_begin, record_btrace_goto_end)
1871 (record_btrace_goto, record_btrace_stop_replaying_all)
1872 (record_btrace_execution_direction)
1873 (record_btrace_prepare_to_generate_core)
1874 (record_btrace_done_generating_core): Refactor as
1875 record_btrace_target methods.
1876 (init_record_btrace_ops): Delete.
1877 (_initialize_record_btrace): Remove reference to
1878 init_record_btrace_ops.
1879 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
1880 the execution_direction global.
1881 (record_full_base_target, record_full_target)
1882 (record_full_core_target): New classes.
1883 (record_full_ops): Now a record_full_target.
1884 (record_full_core_ops): Now a record_full_core_target.
1885 (record_full_target::detach, record_full_target::disconnect)
1886 (record_full_core_target::disconnect)
1887 (record_full_target::mourn_inferior, record_full_target::kill):
1888 New.
1889 (record_full_open, record_full_close, record_full_async): Refactor
1890 as methods of the record_full_base_target class.
1891 (record_full_resume, record_full_commit_resume): Refactor
1892 as methods of the record_full_target class.
1893 (record_full_wait, record_full_stopped_by_watchpoint)
1894 (record_full_stopped_data_address)
1895 (record_full_stopped_by_sw_breakpoint)
1896 (record_full_supports_stopped_by_sw_breakpoint)
1897 (record_full_stopped_by_hw_breakpoint)
1898 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
1899 methods of the record_full_base_target class.
1900 (record_full_store_registers, record_full_xfer_partial)
1901 (record_full_insert_breakpoint, record_full_remove_breakpoint):
1902 Refactor as methods of the record_full_target class.
1903 (record_full_can_execute_reverse, record_full_get_bookmark)
1904 (record_full_goto_bookmark, record_full_execution_direction)
1905 (record_full_record_method, record_full_info, record_full_delete)
1906 (record_full_is_replaying, record_full_will_replay)
1907 (record_full_goto_begin, record_full_goto_end, record_full_goto)
1908 (record_full_stop_replaying): Refactor as methods of the
1909 record_full_base_target class.
1910 (record_full_core_resume, record_full_core_kill)
1911 (record_full_core_fetch_registers)
1912 (record_full_core_prepare_to_store)
1913 (record_full_core_store_registers, record_full_core_xfer_partial)
1914 (record_full_core_insert_breakpoint)
1915 (record_full_core_remove_breakpoint)
1916 (record_full_core_has_execution): Refactor
1917 as methods of the record_full_core_target class.
1918 (record_full_base_target::supports_delete_record): New.
1919 (init_record_full_ops): Delete.
1920 (init_record_full_core_ops): Delete.
1921 (record_full_save): Refactor as method of the
1922 record_full_base_target class.
1923 (_initialize_record_full): Remove references to
1924 init_record_full_ops and init_record_full_core_ops.
1925
1926 * remote.c (remote_target, extended_remote_target): New classes.
1927 (remote_ops): Now a remote_target.
1928 (extended_remote_ops): Now an extended_remote_target.
1929 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
1930 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
1931 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
1932 (remote_pass_signals, remote_set_syscall_catchpoint)
1933 (remote_program_signals, )
1934 (remote_thread_always_alive): Remove target_ops parameter.
1935 (remote_thread_alive, remote_thread_name)
1936 (remote_update_thread_list, remote_threads_extra_info)
1937 (remote_static_tracepoint_marker_at)
1938 (remote_static_tracepoint_markers_by_strid)
1939 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
1940 (remote_open): Refactor as methods of remote_target.
1941 (extended_remote_open, extended_remote_detach)
1942 (extended_remote_attach, extended_remote_post_attach):
1943 (extended_remote_supports_disable_randomization)
1944 (extended_remote_create_inferior): : Refactor as method of
1945 extended_remote_target.
1946 (remote_set_permissions, remote_open_1, remote_detach)
1947 (remote_follow_fork, remote_follow_exec, remote_disconnect)
1948 (remote_resume, remote_commit_resume, remote_stop)
1949 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
1950 (remote_terminal_ours, remote_wait, remote_fetch_registers)
1951 (remote_prepare_to_store, remote_store_registers)
1952 (remote_flash_erase, remote_flash_done, remote_files_info)
1953 (remote_kill, remote_mourn, remote_insert_breakpoint)
1954 (remote_remove_breakpoint, remote_insert_watchpoint)
1955 (remote_watchpoint_addr_within_range)
1956 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
1957 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
1958 (remote_supports_stopped_by_sw_breakpoint)
1959 (remote_stopped_by_hw_breakpoint)
1960 (remote_supports_stopped_by_hw_breakpoint)
1961 (remote_stopped_by_watchpoint, remote_stopped_data_address)
1962 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1963 (remote_verify_memory): Refactor as methods of remote_target.
1964 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
1965 parameter.
1966 (remote_xfer_partial, remote_get_memory_xfer_limit)
1967 (remote_search_memory, remote_rcmd, remote_memory_map)
1968 (remote_pid_to_str, remote_get_thread_local_address)
1969 (remote_get_tib_address, remote_read_description): Refactor as
1970 methods of remote_target.
1971 (remote_target::fileio_open, remote_target::fileio_pwrite)
1972 (remote_target::fileio_pread, remote_target::fileio_close): New.
1973 (remote_hostio_readlink, remote_hostio_fstat)
1974 (remote_filesystem_is_local, remote_can_execute_reverse)
1975 (remote_supports_non_stop, remote_supports_disable_randomization)
1976 (remote_supports_multi_process, remote_supports_cond_breakpoints)
1977 (remote_supports_enable_disable_tracepoint)
1978 (remote_supports_string_tracing)
1979 (remote_can_run_breakpoint_commands, remote_trace_init)
1980 (remote_download_tracepoint, remote_can_download_tracepoint)
1981 (remote_download_trace_state_variable, remote_enable_tracepoint)
1982 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
1983 (remote_trace_start, remote_get_trace_status)
1984 (remote_get_tracepoint_status, remote_trace_stop)
1985 (remote_trace_find, remote_get_trace_state_variable_value)
1986 (remote_save_trace_data, remote_get_raw_trace_data)
1987 (remote_set_disconnected_tracing, remote_core_of_thread)
1988 (remote_set_circular_trace_buffer, remote_traceframe_info)
1989 (remote_get_min_fast_tracepoint_insn_len)
1990 (remote_set_trace_buffer_size, remote_set_trace_notes)
1991 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
1992 (remote_disable_btrace, remote_teardown_btrace)
1993 (remote_read_btrace, remote_btrace_conf)
1994 (remote_augmented_libraries_svr4_read, remote_load)
1995 (remote_pid_to_exec_file, remote_can_do_single_step)
1996 (remote_execution_direction, remote_thread_handle_to_thread_info):
1997 Refactor as methods of remote_target.
1998 (init_remote_ops, init_extended_remote_ops): Delete.
1999 (remote_can_async_p, remote_is_async_p, remote_async)
2000 (remote_thread_events, remote_upload_tracepoints)
2001 (remote_upload_trace_state_variables): Refactor as methods of
2002 remote_target.
2003 (_initialize_remote): Remove references to init_remote_ops and
2004 init_extended_remote_ops.
2005
2006 * remote-sim.c (gdbsim_target): New class.
2007 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
2008 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2009 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
2010 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
2011 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
2012 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
2013 Refactor as methods of gdbsim_target.
2014 (gdbsim_ops): Now a gdbsim_target.
2015 (init_gdbsim_ops): Delete.
2016 (gdbsim_cntrl_c): Adjust.
2017 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
2018
2019 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
2020 (the_amd64_linux_nat_target): New.
2021 (amd64_linux_fetch_inferior_registers)
2022 (amd64_linux_store_inferior_registers): Refactor as methods of
2023 amd64_linux_nat_target.
2024 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
2025 * i386-linux-nat.c: Don't include "linux-nat.h".
2026 (i386_linux_nat_target): New class.
2027 (the_i386_linux_nat_target): New.
2028 (i386_linux_fetch_inferior_registers)
2029 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
2030 as methods of i386_linux_nat_target.
2031 (_initialize_i386_linux_nat): Adjust. Set linux_target.
2032 * inf-child.c (inf_child_ops): Delete.
2033 (inf_child_fetch_inferior_registers)
2034 (inf_child_store_inferior_registers): Delete.
2035 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
2036 methods of inf_child_target.
2037 (inf_child_target::supports_terminal_ours)
2038 (inf_child_target::terminal_init)
2039 (inf_child_target::terminal_inferior)
2040 (inf_child_target::terminal_ours_for_output)
2041 (inf_child_target::terminal_ours, inf_child_target::interrupt)
2042 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
2043 New.
2044 (inf_child_open, inf_child_disconnect, inf_child_close)
2045 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
2046 (inf_child_post_startup_inferior, inf_child_can_run)
2047 (inf_child_pid_to_exec_file): Refactor as methods of
2048 inf_child_target.
2049 (inf_child_follow_fork): Delete.
2050 (inf_child_target::can_create_inferior)
2051 (inf_child_target::can_attach): New.
2052 (inf_child_target::has_all_memory, inf_child_target::has_memory)
2053 (inf_child_target::has_stack, inf_child_target::has_registers)
2054 (inf_child_target::has_execution): New.
2055 (inf_child_fileio_open, inf_child_fileio_pwrite)
2056 (inf_child_fileio_pread, inf_child_fileio_fstat)
2057 (inf_child_fileio_close, inf_child_fileio_unlink)
2058 (inf_child_fileio_readlink, inf_child_use_agent)
2059 (inf_child_can_use_agent): Refactor as methods of
2060 inf_child_target.
2061 (return_zero, inf_child_target): Delete.
2062 (inf_child_target::inf_child_target): New.
2063 * inf-child.h: Include "target.h".
2064 (inf_child_target): Delete function prototype.
2065 (inf_child_target): New class.
2066 (inf_child_open_target, inf_child_mourn_inferior)
2067 (inf_child_maybe_unpush_target): Delete.
2068 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
2069 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
2070 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
2071 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
2072 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
2073 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
2074 (inf_ptrace_wait, inf_ptrace_xfer_partial)
2075 (inf_ptrace_thread_alive, inf_ptrace_files_info)
2076 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
2077 methods of inf_ptrace_target.
2078 (inf_ptrace_target): Delete function.
2079 * inf-ptrace.h: Include "inf-child.h".
2080 (inf_ptrace_target): Delete function declaration.
2081 (inf_ptrace_target): New class.
2082 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
2083 * linux-nat.c (linux_target): New.
2084 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
2085 (linux_nat_target::~linux_nat_target): New.
2086 (linux_child_post_attach, linux_child_post_startup_inferior)
2087 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
2088 (linux_child_remove_fork_catchpoint)
2089 (linux_child_insert_vfork_catchpoint)
2090 (linux_child_remove_vfork_catchpoint)
2091 (linux_child_insert_exec_catchpoint)
2092 (linux_child_remove_exec_catchpoint)
2093 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
2094 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
2095 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
2096 (linux_nat_stopped_data_address)
2097 (linux_nat_stopped_by_sw_breakpoint)
2098 (linux_nat_supports_stopped_by_sw_breakpoint)
2099 (linux_nat_stopped_by_hw_breakpoint)
2100 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
2101 (linux_nat_kill, linux_nat_mourn_inferior)
2102 (linux_nat_xfer_partial, linux_nat_thread_alive)
2103 (linux_nat_update_thread_list, linux_nat_pid_to_str)
2104 (linux_nat_thread_name, linux_child_pid_to_exec_file)
2105 (linux_child_static_tracepoint_markers_by_strid)
2106 (linux_nat_is_async_p, linux_nat_can_async_p)
2107 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
2108 (linux_nat_supports_multi_process)
2109 (linux_nat_supports_disable_randomization, linux_nat_async)
2110 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
2111 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
2112 (linux_nat_fileio_open, linux_nat_fileio_readlink)
2113 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
2114 methods of linux_nat_target.
2115 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
2116 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
2117 parameter.
2118 (check_stopped_by_watchpoint): Adjust.
2119 (linux_xfer_partial): Delete.
2120 (linux_target_install_ops, linux_target, linux_nat_add_target):
2121 Delete.
2122 (linux_nat_target::linux_nat_target): New.
2123 * linux-nat.h: Include "inf-ptrace.h".
2124 (linux_nat_target): New.
2125 (linux_target, linux_target_install_ops, linux_nat_add_target):
2126 Delete function declarations.
2127 (linux_target): Declare global.
2128 * linux-thread-db.c (thread_db_target): New.
2129 (thread_db_target::thread_db_target): New.
2130 (thread_db_ops): Delete.
2131 (the_thread_db_target): New.
2132 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
2133 (thread_db_update_thread_list, thread_db_pid_to_str)
2134 (thread_db_extra_thread_info)
2135 (thread_db_thread_handle_to_thread_info)
2136 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
2137 (thread_db_resume): Refactor as methods of thread_db_target.
2138 (init_thread_db_ops): Delete.
2139 (_initialize_thread_db): Remove reference to init_thread_db_ops.
2140 * x86-linux-nat.c: Don't include "linux-nat.h".
2141 (super_post_startup_inferior): Delete.
2142 (x86_linux_nat_target::~x86_linux_nat_target): New.
2143 (x86_linux_child_post_startup_inferior)
2144 (x86_linux_read_description, x86_linux_enable_btrace)
2145 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
2146 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
2147 methods of x86_linux_nat_target.
2148 (x86_linux_create_target): Delete. Bits folded ...
2149 (x86_linux_add_target): ... here. Now takes a linux_nat_target
2150 pointer.
2151 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
2152 (x86_linux_nat_target): New class.
2153 (x86_linux_create_target): Delete.
2154 (x86_linux_add_target): Now takes a linux_nat_target pointer.
2155 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
2156 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
2157 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
2158 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
2159 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
2160 make extern.
2161 (x86_use_watchpoints): Delete.
2162 * x86-nat.h: Include "breakpoint.h" and "target.h".
2163 (x86_use_watchpoints): Delete.
2164 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
2165 (x86_stopped_by_watchpoint, x86_stopped_data_address)
2166 (x86_insert_watchpoint, x86_remove_watchpoint)
2167 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
2168 (x86_stopped_by_hw_breakpoint): New declarations.
2169 (x86_nat_target): New template class.
2170
2171 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
2172 (the_ppc_linux_nat_target): New.
2173 (ppc_linux_fetch_inferior_registers)
2174 (ppc_linux_can_use_hw_breakpoint)
2175 (ppc_linux_region_ok_for_hw_watchpoint)
2176 (ppc_linux_ranged_break_num_registers)
2177 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2178 (ppc_linux_insert_mask_watchpoint)
2179 (ppc_linux_remove_mask_watchpoint)
2180 (ppc_linux_can_accel_watchpoint_condition)
2181 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
2182 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
2183 (ppc_linux_watchpoint_addr_within_range)
2184 (ppc_linux_masked_watch_num_registers)
2185 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
2186 (ppc_linux_read_description): Refactor as methods of
2187 ppc_linux_nat_target.
2188 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
2189
2190 * procfs.c (procfs_xfer_partial): Delete forward declaration.
2191 (procfs_target): New class.
2192 (the_procfs_target): New.
2193 (procfs_target): Delete function.
2194 (procfs_auxv_parse, procfs_attach, procfs_detach)
2195 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
2196 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
2197 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
2198 (procfs_create_inferior, procfs_update_thread_list)
2199 (procfs_thread_alive, procfs_pid_to_str)
2200 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
2201 (procfs_stopped_data_address, procfs_insert_watchpoint)
2202 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
2203 (proc_find_memory_regions, procfs_info_proc)
2204 (procfs_make_note_section): Refactor as methods of procfs_target.
2205 (_initialize_procfs): Adjust.
2206 * sol-thread.c (sol_thread_target): New class.
2207 (sol_thread_ops): Now a sol_thread_target.
2208 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
2209 (sol_thread_fetch_registers, sol_thread_store_registers)
2210 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
2211 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
2212 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
2213 (init_sol_thread_ops): Delete.
2214 (_initialize_sol_thread): Adjust. Remove references to
2215 init_sol_thread_ops and complete_target_initialization.
2216
2217 * windows-nat.c (windows_nat_target): New class.
2218 (windows_fetch_inferior_registers)
2219 (windows_store_inferior_registers, windows_resume, windows_wait)
2220 (windows_attach, windows_detach, windows_pid_to_exec_file)
2221 (windows_files_info, windows_create_inferior)
2222 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
2223 (windows_close, windows_pid_to_str, windows_xfer_partial)
2224 (windows_get_tib_address, windows_get_ada_task_ptid)
2225 (windows_thread_name, windows_thread_alive): Refactor as
2226 windows_nat_target methods.
2227 (do_initial_windows_stuff): Adjust.
2228 (windows_target): Delete function.
2229 (_initialize_windows_nat): Adjust.
2230
2231 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
2232 (darwin_mourn_inferior, darwin_kill_inferior)
2233 (darwin_create_inferior, darwin_attach, darwin_detach)
2234 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
2235 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
2236 (darwin_supports_multi_process): Refactor as darwin_nat_target
2237 methods.
2238 (darwin_resume_to, darwin_files_info): Delete.
2239 (_initialize_darwin_inferior): Rename to ...
2240 (_initialize_darwin_nat): ... this. Adjust to C++ification.
2241 * darwin-nat.h: Include "inf-child.h".
2242 (darwin_nat_target): New class.
2243 (darwin_complete_target): Delete.
2244 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
2245 (darwin_target): New.
2246 (i386_darwin_fetch_inferior_registers)
2247 (i386_darwin_store_inferior_registers): Refactor as methods of
2248 darwin_nat_target.
2249 (darwin_complete_target): Delete, with ...
2250 (_initialize_i386_darwin_nat): ... bits factored out here.
2251
2252 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
2253 (the_alpha_linux_nat_target): New.
2254 (alpha_linux_register_u_offset): Refactor as
2255 alpha_linux_nat_target method.
2256 (_initialize_alpha_linux_nat): Adjust.
2257 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
2258 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
2259 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
2260 methods of linux_nat_trad_target.
2261 (linux_trad_target): Delete.
2262 * linux-nat-trad.h (linux_trad_target): Delete function.
2263 (linux_nat_trad_target): New class.
2264 * mips-linux-nat.c (mips_linux_nat_target): New class.
2265 (super_fetch_registers, super_store_registers, super_close):
2266 Delete.
2267 (the_mips_linux_nat_target): New.
2268 (mips64_linux_regsets_fetch_registers)
2269 (mips64_linux_regsets_store_registers)
2270 (mips64_linux_fetch_registers, mips64_linux_store_registers)
2271 (mips_linux_register_u_offset, mips_linux_read_description)
2272 (mips_linux_can_use_hw_breakpoint)
2273 (mips_linux_stopped_by_watchpoint)
2274 (mips_linux_stopped_data_address)
2275 (mips_linux_region_ok_for_hw_watchpoint)
2276 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
2277 (mips_linux_close): Refactor as methods of mips_linux_nat.
2278 (_initialize_mips_linux_nat): Adjust to C++ification.
2279
2280 * aix-thread.c (aix_thread_target): New class.
2281 (aix_thread_ops): Now an aix_thread_target.
2282 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
2283 (aix_thread_fetch_registers, aix_thread_store_registers)
2284 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
2285 (aix_thread_thread_alive, aix_thread_pid_to_str)
2286 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
2287 Refactor as methods of aix_thread_target.
2288 (init_aix_thread_ops): Delete.
2289 (_initialize_aix_thread): Remove references to init_aix_thread_ops
2290 and complete_target_initialization.
2291 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
2292 (rs6000_nat_target): New class.
2293 (the_rs6000_nat_target): New.
2294 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
2295 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
2296 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
2297 (super_create_inferior): Delete.
2298 (_initialize_rs6000_nat): Adjust to C++ification.
2299
2300 * arm-linux-nat.c (arm_linux_nat_target): New class.
2301 (the_arm_linux_nat_target): New.
2302 (arm_linux_fetch_inferior_registers)
2303 (arm_linux_store_inferior_registers, arm_linux_read_description)
2304 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
2305 (arm_linux_remove_hw_breakpoint)
2306 (arm_linux_region_ok_for_hw_watchpoint)
2307 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
2308 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
2309 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
2310 arm_linux_nat_target.
2311 (_initialize_arm_linux_nat): Adjust to C++ification.
2312
2313 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
2314 (the_aarch64_linux_nat_target): New.
2315 (aarch64_linux_fetch_inferior_registers)
2316 (aarch64_linux_store_inferior_registers)
2317 (aarch64_linux_child_post_startup_inferior)
2318 (aarch64_linux_read_description)
2319 (aarch64_linux_can_use_hw_breakpoint)
2320 (aarch64_linux_insert_hw_breakpoint)
2321 (aarch64_linux_remove_hw_breakpoint)
2322 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
2323 (aarch64_linux_region_ok_for_hw_watchpoint)
2324 (aarch64_linux_stopped_data_address)
2325 (aarch64_linux_stopped_by_watchpoint)
2326 (aarch64_linux_watchpoint_addr_within_range)
2327 (aarch64_linux_can_do_single_step): Refactor as methods of
2328 aarch64_linux_nat_target.
2329 (super_post_startup_inferior): Delete.
2330 (_initialize_aarch64_linux_nat): Adjust to C++ification.
2331
2332 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
2333 (the_hppa_linux_nat_target): New.
2334 (hppa_linux_fetch_inferior_registers)
2335 (hppa_linux_store_inferior_registers): Refactor as methods of
2336 hppa_linux_nat_target.
2337 (_initialize_hppa_linux_nat): Adjust to C++ification.
2338
2339 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
2340 (the_ia64_linux_nat_target): New.
2341 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
2342 (ia64_linux_stopped_data_address)
2343 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
2344 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
2345 ia64_linux_nat_target methods.
2346 (super_xfer_partial): Delete.
2347 (_initialize_ia64_linux_nat): Adjust to C++ification.
2348
2349 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
2350 (the_m32r_linux_nat_target): New.
2351 (m32r_linux_fetch_inferior_registers)
2352 (m32r_linux_store_inferior_registers): Refactor as
2353 m32r_linux_nat_target methods.
2354 (_initialize_m32r_linux_nat): Adjust to C++ification.
2355
2356 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
2357 (the_m68k_linux_nat_target): New.
2358 (m68k_linux_fetch_inferior_registers)
2359 (m68k_linux_store_inferior_registers): Refactor as
2360 m68k_linux_nat_target methods.
2361 (_initialize_m68k_linux_nat): Adjust to C++ification.
2362
2363 * s390-linux-nat.c (s390_linux_nat_target): New class.
2364 (the_s390_linux_nat_target): New.
2365 (s390_linux_fetch_inferior_registers)
2366 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
2367 (s390_insert_watchpoint, s390_remove_watchpoint)
2368 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
2369 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
2370 (s390_auxv_parse, s390_read_description): Refactor as methods of
2371 s390_linux_nat_target.
2372 (_initialize_s390_nat): Adjust to C++ification.
2373
2374 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
2375 (the_sparc_linux_nat_target): New.
2376 (_initialize_sparc_linux_nat): Adjust to C++ification.
2377 * sparc-nat.c (sparc_fetch_inferior_registers)
2378 (sparc_store_inferior_registers): Remove target_ops parameter.
2379 * sparc-nat.h (sparc_fetch_inferior_registers)
2380 (sparc_store_inferior_registers): Remove target_ops parameter.
2381 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
2382 (the_sparc64_linux_nat_target): New.
2383 (_initialize_sparc64_linux_nat): Adjust to C++ification.
2384
2385 * spu-linux-nat.c (spu_linux_nat_target): New class.
2386 (the_spu_linux_nat_target): New.
2387 (spu_child_post_startup_inferior, spu_child_post_attach)
2388 (spu_child_wait, spu_fetch_inferior_registers)
2389 (spu_store_inferior_registers, spu_xfer_partial)
2390 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
2391 methods.
2392 (_initialize_spu_nat): Adjust to C++ification.
2393
2394 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
2395 (the_tilegx_linux_nat_target): New.
2396 (fetch_inferior_registers, store_inferior_registers):
2397 Refactor as methods.
2398 (_initialize_tile_linux_nat): Adjust to C++ification.
2399
2400 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
2401 (the_xtensa_linux_nat_target): New.
2402 (xtensa_linux_fetch_inferior_registers)
2403 (xtensa_linux_store_inferior_registers): Refactor as
2404 xtensa_linux_nat_target methods.
2405 (_initialize_xtensa_linux_nat): Adjust to C++ification.
2406
2407 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
2408 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
2409 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
2410 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
2411 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
2412 (fbsd_stopped_by_sw_breakpoint)
2413 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
2414 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
2415 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
2416 (fbsd_post_startup_inferior, fbsd_post_attach)
2417 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
2418 (fbsd_set_syscall_catchpoint)
2419 (super_xfer_partial, super_resume, super_wait)
2420 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
2421 (fbsd_handle_debug_trap): Remove target_ops parameter.
2422 (fbsd_nat_add_target): Delete.
2423 * fbsd-nat.h: Include "inf-ptrace.h".
2424 (fbsd_nat_add_target): Delete.
2425 (USE_SIGTRAP_SIGINFO): Define.
2426 (fbsd_nat_target): New class.
2427
2428 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
2429 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
2430 (amd64bsd_target): Delete.
2431 * amd64-bsd-nat.h: New file.
2432 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
2433 "x86-bsd-nat.h".
2434 (amd64_fbsd_nat_target): New class.
2435 (the_amd64_fbsd_nat_target): New.
2436 (amd64fbsd_read_description): Refactor as method of
2437 amd64_fbsd_nat_target.
2438 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
2439 (_initialize_amd64fbsd_nat): Adjust to C++ification.
2440 * amd64-nat.h (amd64bsd_target): Delete function declaration.
2441 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
2442 (i386bsd_store_inferior_registers): Remove target_ops parameter.
2443 (i386bsd_target): Delete.
2444 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
2445 (i386bsd_fetch_inferior_registers)
2446 (i386bsd_store_inferior_registers): Declare.
2447 (i386_bsd_nat_target): New class.
2448 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
2449 (the_i386_fbsd_nat_target): New.
2450 (i386fbsd_resume, i386fbsd_read_description): Refactor as
2451 i386_fbsd_nat_target methods.
2452 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
2453 (_initialize_i386fbsd_nat): Adjust to C++ification.
2454 * x86-bsd-nat.c (super_mourn_inferior): Delete.
2455 (x86bsd_mourn_inferior, x86bsd_target): Delete.
2456 (_initialize_x86_bsd_nat): Adjust to C++ification.
2457 * x86-bsd-nat.h: Include "x86-nat.h".
2458 (x86bsd_target): Delete declaration.
2459 (x86bsd_nat_target): New class.
2460
2461 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
2462 (the_aarch64_fbsd_nat_target): New.
2463 (aarch64_fbsd_fetch_inferior_registers)
2464 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
2465 aarch64_fbsd_nat_target.
2466 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
2467 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
2468 (the_alpha_bsd_nat_target): New.
2469 (alphabsd_fetch_inferior_registers)
2470 (alphabsd_store_inferior_registers): Refactor as
2471 alpha_bsd_nat_target methods.
2472 (_initialize_alphabsd_nat): Refactor as methods of
2473 alpha_bsd_nat_target.
2474 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
2475 (the_amd64_nbsd_nat_target): New.
2476 (_initialize_amd64nbsd_nat): Adjust to C++ification.
2477 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
2478 (the_amd64_obsd_nat_target): New.
2479 (_initialize_amd64obsd_nat): Adjust to C++ification.
2480 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
2481 (the_arm_fbsd_nat_target): New.
2482 (arm_fbsd_fetch_inferior_registers)
2483 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
2484 (_initialize_arm_fbsd_nat): Refactor as methods of
2485 arm_fbsd_nat_target.
2486 (_initialize_arm_fbsd_nat): Adjust to C++ification.
2487 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
2488 (the_arm_netbsd_nat_target): New.
2489 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
2490 arm_netbsd_nat_target.
2491 (_initialize_arm_netbsd_nat): Adjust to C++ification.
2492 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
2493 (the_hppa_nbsd_nat_target): New.
2494 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
2495 hppa_nbsd_nat_target methods.
2496 (_initialize_hppanbsd_nat): Adjust to C++ification.
2497 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
2498 (the_hppa_obsd_nat_target): New.
2499 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
2500 methods of hppa_obsd_nat_target.
2501 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
2502 add_target.
2503 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
2504 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
2505 add_target.
2506 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
2507 (_initialize_i386obsd_nat): Use add_target.
2508 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
2509 (the_m68k_bsd_nat_target): New.
2510 (m68kbsd_fetch_inferior_registers)
2511 (m68kbsd_store_inferior_registers): Refactor as methods of
2512 m68k_bsd_nat_target.
2513 (_initialize_m68kbsd_nat): Adjust to C++ification.
2514 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
2515 (the_mips_fbsd_nat_target): New.
2516 (mips_fbsd_fetch_inferior_registers)
2517 (mips_fbsd_store_inferior_registers): Refactor as methods of
2518 mips_fbsd_nat_target.
2519 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
2520 add_target.
2521 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
2522 (the_mips_nbsd_nat_target): New.
2523 (mipsnbsd_fetch_inferior_registers)
2524 (mipsnbsd_store_inferior_registers): Refactor as methods of
2525 mips_nbsd_nat_target.
2526 (_initialize_mipsnbsd_nat): Adjust to C++ification.
2527 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
2528 (the_mips64_obsd_nat_target): New.
2529 (mips64obsd_fetch_inferior_registers)
2530 (mips64obsd_store_inferior_registers): Refactor as methods of
2531 mips64_obsd_nat_target.
2532 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
2533 add_target.
2534 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
2535 nbsd_nat_target.
2536 * nbsd-nat.h: Include "inf-ptrace.h".
2537 (nbsd_nat_target): New class.
2538 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
2539 (obsd_wait): Refactor as methods of obsd_nat_target.
2540 (obsd_add_target): Delete.
2541 * obsd-nat.h: Include "inf-ptrace.h".
2542 (obsd_nat_target): New class.
2543 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
2544 (the_ppc_fbsd_nat_target): New.
2545 (ppcfbsd_fetch_inferior_registers)
2546 (ppcfbsd_store_inferior_registers): Refactor as methods of
2547 ppc_fbsd_nat_target.
2548 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
2549 add_target.
2550 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
2551 (the_ppc_nbsd_nat_target): New.
2552 (ppcnbsd_fetch_inferior_registers)
2553 (ppcnbsd_store_inferior_registers): Refactor as methods of
2554 ppc_nbsd_nat_target.
2555 (_initialize_ppcnbsd_nat): Adjust to C++ification.
2556 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
2557 (the_ppc_obsd_nat_target): New.
2558 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
2559 methods of ppc_obsd_nat_target.
2560 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
2561 add_target.
2562 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
2563 (the_sh_nbsd_nat_target): New.
2564 (shnbsd_fetch_inferior_registers)
2565 (shnbsd_store_inferior_registers): Refactor as methods of
2566 sh_nbsd_nat_target.
2567 (_initialize_shnbsd_nat): Adjust to C++ification.
2568 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
2569 (inf_ptrace_xfer_partial): Delete.
2570 (sparc_xfer_partial, sparc_target): Delete.
2571 * sparc-nat.h (sparc_fetch_inferior_registers)
2572 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
2573 (sparc_target): Delete function declaration.
2574 (sparc_target): New template class.
2575 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
2576 (_initialize_sparcnbsd_nat): Adjust to C++ification.
2577 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
2578 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
2579 add_target.
2580 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
2581 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
2582 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
2583 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
2584 add_target.
2585 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
2586 (the_vax_bsd_nat_target): New.
2587 (vaxbsd_fetch_inferior_registers)
2588 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
2589 methods.
2590 (_initialize_vaxbsd_nat): Adjust to C++ification.
2591
2592 * bsd-kvm.c (bsd_kvm_target): New class.
2593 (bsd_kvm_ops): Now a bsd_kvm_target.
2594 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
2595 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
2596 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
2597 bsd_kvm_target.
2598 (bsd_kvm_return_one): Delete.
2599 (bsd_kvm_add_target): Adjust to C++ification.
2600
2601 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
2602 (nto_procfs_target_procfs): New classes.
2603 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
2604 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
2605 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
2606 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
2607 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
2608 (procfs_remove_hw_breakpoint, procfs_resume)
2609 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
2610 (procfs_kill_inferior, procfs_store_registers)
2611 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
2612 as methods of nto_procfs_target.
2613 (nto_procfs_ops): Now an nto_procfs_target_procfs.
2614 (nto_native_ops): Delete.
2615 (procfs_open, procfs_native_open): Delete.
2616 (nto_native_ops): Now an nto_procfs_target_native.
2617 (init_procfs_targets): Adjust to C++ification.
2618 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
2619 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
2620 Refactor as methods of nto_procfs_target.
2621
2622 * go32-nat.c (go32_nat_target): New class.
2623 (the_go32_nat_target): New.
2624 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
2625 (go32_store_registers, go32_xfer_partial, go32_files_info)
2626 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
2627 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
2628 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
2629 (go32_pid_to_str): Refactor as methods of go32_nat_target.
2630 (go32_target): Delete.
2631 (_initialize_go32_nat): Adjust to C++ification.
2632
2633 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
2634 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
2635 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
2636 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
2637 gnu_nat_target.
2638 (gnu_target): Delete.
2639 * gnu-nat.h (gnu_target): Delete.
2640 (gnu_nat_target): New class.
2641 * i386-gnu-nat.c (gnu_base_target): New.
2642 (i386_gnu_nat_target): New class.
2643 (the_i386_gnu_nat_target): New.
2644 (_initialize_i386gnu_nat): Adjust to C++ification.
2645
2646 2018-05-02 Pedro Alves <palves@redhat.com>
2647
2648 * bfd-target.c (target_bfd_xclose): Rename to ...
2649 (target_bfd_close): ... this.
2650 (target_bfd_reopen): Adjust.
2651 * target.c (target_close): Remove references to to_xclose.
2652 * target.h (target_ops::to_xclose): Delete.
2653 (target_ops::to_close): Update comments.
2654
2655 2018-05-02 Pedro Alves <palves@redhat.com>
2656
2657 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
2658 "linux-nat.h".
2659 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
2660 * inf-ptrace.c (inf_ptrace_register_u_offset)
2661 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
2662 (inf_ptrace_store_register, inf_ptrace_store_registers)
2663 (inf_ptrace_trad_target): Move to ...
2664 * linux-nat-trad.c: ... this new file.
2665 * linux-nat-trad.h: New file.
2666 * linux-nat.c (linux_target_install_ops): Make extern.
2667 (linux_trad_target): Delete.
2668 * linux-nat.h (linux_trad_target): Delete declaration.
2669 (linux_target_install_ops): Declare.
2670 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
2671 "linux-nat.h".
2672
2673 2018-05-02 Pedro Alves <palves@redhat.com>
2674
2675 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
2676 procfs_target/add_target here.
2677 * procfs.c (procfs_target): Make static.
2678 (_initialize_procfs): Call add_target here.
2679 * procfs.h (struct target_ops): Remove forward declaration.
2680 (procfs_target): Remove declaration.
2681 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
2682
2683 2018-05-02 Pedro Alves <palves@redhat.com>
2684
2685 * procfs.c (procfs_stopped_by_watchpoint)
2686 (procfs_insert_watchpoint, procfs_remove_watchpoint)
2687 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
2688 Forward declare.
2689 (procfs_use_watchpoints): Delete, move contents...
2690 (procfs_target): ... here.
2691 * procfs.h (procfs_use_watchpoints): Delete declaration.
2692 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
2693 procfs_use_watchpoints.
2694 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
2695 procfs_use_watchpoints.
2696
2697 2018-05-02 Tom Tromey <tom@tromey.com>
2698
2699 PR python/20084:
2700 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
2701 and var_zuinteger_unlimited.
2702 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
2703 and PARAM_ZUINTEGER_UNLIMITED.
2704 (set_parameter_value): Handle var_zuinteger and
2705 var_zuinteger_unlimited.
2706 (add_setshow_generic): Likewise.
2707 (parmpy_init): Likewise.
2708
2709 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
2710
2711 PR rust/23124
2712 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
2713 pointer is not null before dereferencing it.
2714
2715 2018-04-30 Tom Tromey <tom@tromey.com>
2716
2717 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
2718 is_mi_like_p.
2719
2720 2018-04-30 Tom Tromey <tom@tromey.com>
2721
2722 * breakpoint.c (mention): Remove use of is_mi_like_p.
2723 (print_mention_ranged_breakpoint): Likewise.
2724 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
2725 of is_mi_like_p.
2726
2727 2018-04-30 Tom Tromey <tom@tromey.com>
2728
2729 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
2730
2731 2018-04-30 Tom Tromey <tom@tromey.com>
2732
2733 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
2734 (info_spu_event_command): Remove some uses of is_mi_like_p.
2735
2736 2018-04-30 Tom Tromey <tom@tromey.com>
2737
2738 * python/py-framefilter.c (py_print_single_arg)
2739 (enumerate_locals, py_print_args, py_print_frame): Remove some
2740 uses of is_mi_like_p.
2741
2742 2018-04-30 Tom Tromey <tom@tromey.com>
2743
2744 * ui-out.c: Update.
2745 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
2746 * ui-out.h (ui_out::is_mi_like_p): Now const.
2747 (ui_out::do_is_mi_like_p): Now const.
2748 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
2749
2750 2018-04-30 Tom Tromey <tom@tromey.com>
2751
2752 * varobj.c (varobj_set_visualizer): Use new_reference.
2753 * python/python.c (gdbpy_decode_line): Use new_reference.
2754 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
2755 new_reference.
2756
2757 2018-04-30 Tom Tromey <tom@tromey.com>
2758
2759 * varobj.c (install_new_value): Use new_reference.
2760 * value.h (value_incref): Return void. Swap intro comment with
2761 value_decref.
2762 * value.c (set_value_parent): Use new_reference.
2763 (value_incref): Return void. Update intro comment.
2764 (release_value): Use new_reference.
2765 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
2766
2767 2018-04-30 Tom Tromey <tom@tromey.com>
2768
2769 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
2770 * gdb_bfd.h (new_bfd_ref): Remove.
2771 (gdb_bfd_open): Update comment.
2772 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2773 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
2774 (gdb_bfd_fdopenr): Use new_reference.
2775 * exec.c (exec_file_attach): Use new_reference.
2776
2777 2018-04-30 Tom Tromey <tom@tromey.com>
2778
2779 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
2780 method.
2781
2782 2018-04-30 Tom Tromey <tom@tromey.com>
2783
2784 * jit.c (jit_read_code_entry): Use type_align.
2785 * i386-tdep.c (i386_gdbarch_init): Don't call
2786 set_gdbarch_long_long_align_bit.
2787 * gdbarch.sh: Remove long_long_align_bit.
2788 * gdbarch.c, gdbarch.h: Rebuild.
2789 * arc-tdep.c (arc_type_align): New function.
2790 (arc_gdbarch_init): Use arc_type_align. Don't call
2791 set_gdbarch_long_long_align_bit.
2792
2793 2018-04-30 Tom Tromey <tom@tromey.com>
2794
2795 * rust-lang.c (rust_type_alignment): Remove.
2796 (rust_composite_type): Use type_align.
2797
2798 2018-04-30 Tom Tromey <tom@tromey.com>
2799
2800 * NEWS: Mention Type.align.
2801 * python/py-type.c (typy_get_alignof): New function.
2802 (type_object_getset): Add "alignof".
2803
2804 2018-04-30 Tom Tromey <tom@tromey.com>
2805
2806 PR exp/17095:
2807 * NEWS: Update.
2808 * std-operator.def (UNOP_ALIGNOF): New operator.
2809 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
2810 New.
2811 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
2812 * c-lang.c (c_op_print_tab): Add alignof.
2813 * c-exp.y (ALIGNOF): New token.
2814 (exp): Add "ALIGNOF" production.
2815 (ident_tokens): Add _Alignof and alignof.
2816
2817 2018-04-30 Tom Tromey <tom@tromey.com>
2818
2819 * i386-tdep.c (i386_type_align): New function.
2820 (i386_gdbarch_init): Update.
2821 * gdbarch.sh (type_align): New method.
2822 * gdbarch.c, gdbarch.h: Rebuild.
2823 * arch-utils.h (default_type_align): Declare.
2824 * arch-utils.c (default_type_align): New function.
2825 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
2826 (struct type) <align_log2>: New field.
2827 <instance_flags>: Now a bitfield.
2828 (TYPE_RAW_ALIGN): New macro.
2829 (type_align, type_raw_align, set_type_align): Declare.
2830 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
2831 functions.
2832 * dwarf2read.c (quirk_rust_enum): Set type alignment.
2833 (get_alignment, maybe_set_alignment): New functions.
2834 (read_structure_type, read_enumeration_type, read_array_type)
2835 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
2836 (read_subrange_type, read_base_type): Set type alignment.
2837
2838 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
2839
2840 * dwarf2read.c (read_index_from_section): Use bool.
2841
2842 2018-04-29 Fabian Groffen <grobian@gentoo.org>
2843
2844 PR gdb/22950
2845 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
2846 with #ifdef.
2847
2848 2018-04-29 John Reiser <jreiser@BitWagon.com>
2849
2850 PR build/22873
2851 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
2852 last step, and do it atomically.
2853
2854 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
2855
2856 * compile/compile-c-types.c (convert_int, convert_float):
2857 Update for C FE v1.
2858
2859 2018-04-27 Tom Tromey <tom@tromey.com>
2860
2861 PR rust/22545:
2862 * rust-lang.c (rust_inclusive_range_type_p): New function.
2863 (rust_range): Handle inclusive ranges.
2864 (rust_compute_range): Likewise.
2865 * rust-exp.y (struct rust_op) <inclusive>: New field.
2866 (DOTDOTEQ): New constant.
2867 (range_expr): Add "..=" productions.
2868 (operator_tokens): Add "..=" token.
2869 (ast_range): Add "inclusive" parameter.
2870 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
2871 ranges.
2872 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
2873 bounds values.
2874 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
2875 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
2876 Update comments.
2877 * expprint.c (print_subexp_standard): Handle new bounds values.
2878 (dump_subexp_body_standard): Likewise.
2879
2880 2018-04-27 Tom Tromey <tom@tromey.com>
2881
2882 * configure: Rebuild.
2883 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
2884 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
2885 "OVERRIDE".
2886 (class symbol_needs_eval_context): Likewise.
2887 * dwarf2read.c (mock_mapped_index::symbol_name_count)
2888 (mock_mapped_index::symbol_name_at): Use "override". Remove
2889 "virtual".
2890 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
2891 "override".
2892 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
2893 * aarch64-tdep.c (instruction_reader::read): Use "override".
2894 (instruction_reader_test::read): Likewise.
2895 * arm-tdep.c (instruction_reader::read): Use "override".
2896 (instruction_reader_thumb::read): Likewise.
2897
2898 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
2899
2900 PR remote/9665
2901 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
2902 instead of remote_send.
2903 (remote_send): Remove.
2904
2905 2018-04-26 Pedro Alves <palves@redhat.com>
2906
2907 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
2908 find_function_start_sal instead of find_pc_line.
2909
2910 2018-04-26 Pedro Alves <palves@redhat.com>
2911
2912 * breakpoint.c (set_breakpoint_location_function): Handle
2913 mst_data_gnu_ifunc.
2914 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
2915 * elfread.c (elf_symtab_read): Give data symbols with
2916 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
2917 (elf_rel_plt_read): Update comment.
2918 * linespec.c (convert_linespec_to_sals): Handle
2919 mst_data_gnu_ifunc.
2920 (minsym_found): Handle mst_data_gnu_ifunc.
2921 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
2922 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
2923 * parse.c (find_minsym_type_and_address): Handle
2924 mst_data_gnu_ifunc.
2925 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
2926 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
2927 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
2928 comment.
2929 <mst_data_gnu_ifunc>: New enumerator.
2930
2931 2018-04-26 Pedro Alves <palves@redhat.com>
2932
2933 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
2934 (lookup_minimal_symbol_by_pc_section): ... this. Replace
2935 'want_trampoline' parameter by a lookup_msym_prefer parameter.
2936 Handle it.
2937 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
2938 (lookup_minimal_symbol_by_pc): Adjust.
2939 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
2940 (lookup_solib_trampoline_symbol_by_pc): Adjust.
2941 * minsyms.h (lookup_msym_prefer): New enum.
2942 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
2943 parameter by a lookup_msym_prefer parameter.
2944
2945 2018-04-26 Pedro Alves <palves@redhat.com>
2946
2947 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
2948 ends in "@plt" instead of looking at the symbol's section.
2949
2950 2018-04-26 Pedro Alves <palves@redhat.com>
2951
2952 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
2953 all references.
2954 (find_pc_partial_function_gnu_ifunc): Rename to ...
2955 (find_pc_partial_function): ... this, and remove references to
2956 'is_gnu_ifunc_p'.
2957 (find_pc_partial_function): Delete old implementation.
2958 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
2959
2960 2018-04-26 Pedro Alves <palves@redhat.com>
2961
2962 * linespec.c (struct bound_minimal_symbol_search_key): New.
2963 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
2964 skip first line if we found a GNU ifunc minimal symbol by name.
2965 (compare_msymbols): Change parameters to work with a destructured
2966 lhs minsym.
2967 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
2968 functions.
2969
2970 2018-04-26 Pedro Alves <palves@redhat.com>
2971
2972 * breakpoint.c (set_breakpoint_location_function): Don't resolve
2973 ifunc targets here. Instead, if we have an ifunc minsym, use its
2974 address/name.
2975 (add_location_to_breakpoint): Store the minsym and the objfile in
2976 the breakpoint location.
2977 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
2978 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
2979 Record the minsym in the sal.
2980 * symtab.h (symtab_and_line) <msymbol>: New field.
2981
2982 2018-04-26 Pedro Alves <palves@redhat.com>
2983
2984 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
2985 unless we actually resolved the ifunc.
2986
2987 2018-04-26 Pedro Alves <palves@redhat.com>
2988
2989 * c-exp.y (variable production): Prefer ifunc minsyms over
2990 regular function symbols.
2991 * symtab.c (find_gnu_ifunc): New function.
2992 * minsyms.h (lookup_msym_prefer): New enum.
2993 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
2994 parameter by a lookup_msym_prefer parameter.
2995 * symtab.h (find_gnu_ifunc): New declaration.
2996
2997 2018-04-26 Pedro Alves <palves@redhat.com>
2998
2999 * blockframe.c (find_gnu_ifunc_target_type): New function.
3000 (find_function_type): New.
3001 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
3002 return a value with a memory address.
3003 (eval_call): For calls to GNU ifunc functions, try to find the
3004 type of the target function from the type that the resolver
3005 returns.
3006 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
3007 symbols.
3008 * infcall.c (find_function_return_type): Delete.
3009 (find_function_addr): Add 'function_type' parameter. For calls to
3010 GNU ifunc functions, try to find the type of the target function
3011 from the type that the resolver returns, and return it via
3012 FUNCTION_TYPE.
3013 (call_function_by_hand_dummy): Adjust to use the function type
3014 returned by find_function_addr.
3015 (find_function_addr): Add 'function_type' parameter and move
3016 description here.
3017 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
3018 declarations.
3019
3020 2018-04-26 Pedro Alves <palves@redhat.com>
3021
3022 * c-exp.y (variable production): Skip finding an alias for ifunc
3023 symbols.
3024
3025 2018-04-26 Pedro Alves <palves@redhat.com>
3026
3027 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
3028
3029 2018-04-25 Pedro Alves <palves@redhat.com>
3030
3031 * infcmd.c (kill_command): Print the pid as string, not the whole
3032 thread's ptid. Add comment. s/has been killed/killed/ in output
3033 message.
3034 * remote.c (remote_detach_1): Print the pid as string, not the
3035 whole thread's ptid.
3036
3037 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3038 Sergio Durigan Junior <sergiodj@redhat.com>
3039 Pedro Alves <palves@redhat.com>
3040
3041 * infcmd.c (kill_command): Print message when inferior has
3042 been killed.
3043 * inferior.c (print_inferior_events): Remove 'static'. Set as
3044 '1'.
3045 (add_inferior): Improve message printed when
3046 'print_inferior_events' is on.
3047 (exit_inferior): Remove message printed when
3048 'print_inferior_events' is on.
3049 (detach_inferior): Improve message printed when
3050 'print_inferior_events' is on.
3051 (initialize_inferiors): Use 'add_inferior_silent' to set
3052 'current_inferior_'.
3053 * inferior.h (print_inferior_events): Declare here as
3054 'extern'.
3055 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
3056 '[Detaching...]' messages when 'print_inferior_events' is on.
3057 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
3058 as prefix/suffix for messages. Remove periods. Fix erroneous
3059 'Detaching after fork from child...', replace it by '... from
3060 parent...'.
3061 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
3062 prefix/suffix when printing 'Detaching...' messages. Print
3063 them when 'print_inferior_events' is on.
3064 * remote.c (remote_detach_1): Print message when detaching
3065 from inferior and '!is_fork_parent'.
3066
3067 2018-04-24 Tom Tromey <tom@tromey.com>
3068
3069 * cli-out.h: Reindent.
3070
3071 2018-04-24 Tom Tromey <tom@tromey.com>
3072
3073 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
3074 (cli_ui_out::do_field_string): Use fputs_filtered.
3075 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
3076
3077 2018-04-23 Tom Tromey <tom@tromey.com>
3078
3079 * guile/scm-frame.c (gdbscm_frame_read_var): Use
3080 gdb::unique_xmalloc_ptr.
3081
3082 2018-04-23 Tom Tromey <tom@tromey.com>
3083
3084 * configure: Rebuild.
3085
3086 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
3087
3088 PR gdb/23095
3089 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
3090 prepare_for_testing. Set normal_bp to r_debug_state if target
3091 is bsd.
3092
3093 2018-04-21 Pedro Alves <palves@redhat.com>
3094 Rajendra SY <rajendra.sy@gmail.com>
3095
3096 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
3097 * remote.c (extended_remote_attach): In all-stop mode, mark the
3098 thread as executing.
3099
3100 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3101
3102 * thread.c (thread_apply_all_command): Fix comment.
3103 (thread_command): Fix comment.
3104
3105 2018-04-10 Alan Hayward <alan.hayward@arm.com>
3106
3107 * common/tdesc.h (tdesc_create_feature): Remove xml filename
3108 parameter.
3109 * features/aarch64-core.c (create_feature_aarch64_core):
3110 Regenerate.
3111 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
3112 Likewise.
3113 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
3114 Likewise.
3115 * features/i386/32bit-avx512.c
3116 (create_feature_i386_32bit_avx512): Likewise.
3117 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
3118 Likewise.
3119 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
3120 Likewise.
3121 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
3122 Likewise.
3123 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
3124 Likewise.
3125 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
3126 Likewise.
3127 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
3128 Likewise.
3129 * features/i386/64bit-avx512.c
3130 (create_feature_i386_64bit_avx512): Likewise.
3131 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
3132 Likewise.
3133 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
3134 Likewise.
3135 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
3136 Likewise.
3137 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
3138 Likewise.
3139 * features/i386/64bit-segments.c
3140 (create_feature_i386_64bit_segments): Likewise.
3141 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
3142 Likewise.
3143 * features/i386/x32-core.c
3144 (create_feature_i386_x32_core): Likewise.
3145 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
3146 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
3147 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
3148 * target-descriptions.c: In generated code, don't pass xml
3149 filename.
3150
3151 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3152
3153 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
3154 (print_xml_feature::visit_post): Likewise.
3155 (print_xml_feature::visit): Likewise.
3156 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
3157 (print_xml_feature): Add new class.
3158 * regformats/regdat.sh: Null xmltarget on feature targets.
3159 * target-descriptions.c (struct target_desc): Add xmltarget.
3160 (maintenance_check_tdesc_xml_convert): Add unittest function.
3161 (tdesc_get_features_xml): Add function to get xml.
3162 (maintenance_check_xml_descriptions): Test xml generation.
3163 * xml-tdesc.c (string_read_description_xml): Add function.
3164 * xml-tdesc.h (string_read_description_xml): Add declaration.
3165
3166 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3167
3168 * features/Makefile: Add feature marker to targets with new style
3169 target descriptions.
3170 * regformats/aarch64.dat: Regenerate.
3171 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
3172 * regformats/i386/amd64-avx-linux.dat: Likewise.
3173 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
3174 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
3175 * regformats/i386/amd64-linux.dat: Likewise.
3176 * regformats/i386/amd64-mpx-linux.dat: Likewise.
3177 * regformats/i386/amd64.dat: Likewise.
3178 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
3179 * regformats/i386/i386-avx-linux.dat: Likewise.
3180 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
3181 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
3182 * regformats/i386/i386-linux.dat: Likewise.
3183 * regformats/i386/i386-mmx-linux.dat: Likewise.
3184 * regformats/i386/i386-mpx-linux.dat: Likewise.
3185 * regformats/i386/i386.dat: Likewise.
3186 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
3187 * regformats/i386/x32-avx-linux.dat: Likewise.
3188 * regformats/i386/x32-linux.dat: Likewise.
3189 * regformats/tic6x-c62x-linux.dat: Likewise.
3190 * regformats/tic6x-c64x-linux.dat: Likewise.
3191 * regformats/tic6x-c64xp-linux.dat: Likewise.
3192 * regformats/regdat.sh: Parse feature marker.
3193
3194 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3195
3196 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
3197 (tdesc_osabi_name): Likewise.
3198 * target-descriptions.c (tdesc_architecture_name): Add new
3199 function.
3200 (tdesc_osabi_name): Likewise.
3201
3202 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3203
3204 * common/tdesc.c (tdesc_predefined_type): Move to here.
3205 (tdesc_named_type): Likewise.
3206 (tdesc_create_vector): Likewise.
3207 (tdesc_create_struct): Likewise.
3208 (tdesc_set_struct_size): Likewise.
3209 (tdesc_create_union): Likewise.
3210 (tdesc_create_flags): Likewise.
3211 (tdesc_create_enum): Likewise.
3212 (tdesc_add_field): Likewise.
3213 (tdesc_add_typed_bitfield): Likewise.
3214 (tdesc_add_bitfield): Likewise.
3215 (tdesc_add_flag): Likewise.
3216 (tdesc_add_enum_value): Likewise.
3217 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
3218 (struct tdesc_type_vector): Likewise.
3219 (struct tdesc_type_field): Likewise.
3220 (struct tdesc_type_with_fields): Likewise.
3221 (tdesc_create_enum): Add declaration.
3222 (tdesc_add_typed_bitfield): Likewise.
3223 (tdesc_add_enum_value): Likewise.
3224 * target-descriptions.c (tdesc_type_field): Move from here.
3225 (tdesc_type_builtin): Likewise.
3226 (tdesc_type_vector): Likewise.
3227 (tdesc_type_with_fields): Likewise.
3228 (tdesc_predefined_types): Likewise.
3229 (tdesc_named_type): Likewise.
3230 (tdesc_create_vector): Likewise.
3231 (tdesc_create_struct): Likewise.
3232 (tdesc_set_struct_size): Likewise.
3233 (tdesc_create_union): Likewise.
3234 (tdesc_create_flags): Likewise.
3235 (tdesc_create_enum): Likewise.
3236 (tdesc_add_field): Likewise.
3237 (tdesc_add_typed_bitfield): Likewise.
3238 (tdesc_add_bitfield): Likewise.
3239 (tdesc_add_flag): Likewise.
3240 (tdesc_add_enum_value): Likewise.
3241 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
3242 (tdesc_add_typed_bitfield): Likewise.
3243 (tdesc_add_enum_value): Likewise.
3244
3245 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3246
3247 * common/tdesc.c (tdesc_feature::accept): Move to here.
3248 (tdesc_feature::operator==): Likewise.
3249 (tdesc_create_reg): Likewise.
3250 * common/tdesc.h (tdesc_type_kind): Likewise.
3251 (struct tdesc_type): Likewise.
3252 (struct tdesc_feature): Likewise.
3253 * regformats/regdat.sh: Create a feature.
3254 * target-descriptions.c (tdesc_type_kind): Move from here.
3255 (tdesc_type): Likewise.
3256 (tdesc_type_up): Likewise.
3257 (tdesc_feature): Likewise.
3258 (tdesc_create_reg): Likewise.
3259
3260 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3261
3262 * Makefile.in: Add arch/tdesc.c
3263 * common/tdesc.c: New file.
3264 * common/tdesc.h (tdesc_element_visitor): Move to here.
3265 (tdesc_element): Likewise.
3266 (tdesc_reg): Likewise.
3267 (tdesc_reg_up): Likewise.
3268 * regformats/regdef.h (reg): Add offset to constructors.
3269 * target-descriptions.c (tdesc_element_visitor): Move from here.
3270 (tdesc_element): Likewise.
3271 (tdesc_reg): Likewise.
3272 (tdesc_reg_up): Likewise.
3273
3274 2018-04-17 Tom Tromey <tom@tromey.com>
3275
3276 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
3277 discriminant field.
3278
3279 2018-04-17 Tom Tromey <tom@tromey.com>
3280
3281 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
3282
3283 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284
3285 * symtab.c (print_symbol_info): Skip printing filename and line
3286 number when `last' is NULL.
3287 (symtab_symbol_info): Use empty string instead of NULL for first
3288 invocation of print_symbol_info.
3289 (rbreak_command): Pass NULL to `last' parameter of
3290 print_symbol_info.
3291
3292 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
3293
3294 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
3295 instead of nullptr.
3296
3297 2018-04-16 Pedro Alves <palves@redhat.com>
3298
3299 * MAINTAINERS (sh): Remove.
3300 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
3301 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
3302 (ALLDEPFILES): Remove sh64-tdep.c.
3303 * NEWS: Mentions that support for SH-5/SH64 is removed.
3304 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
3305 (sh*-*-openbsd*): Ditto.
3306 (sh64-*-elf*): Remove.
3307 (sh*): Remove.
3308 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
3309 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
3310 * sh-tdep.c: No longer include "sh64-tdep.h".
3311 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
3312 * sh64-tdep.c, sh64-tdep.h: Remove files.
3313
3314 2018-04-16 Pedro Alves <palves@redhat.com>
3315
3316 * MAINTAINERS: Remove m88k.
3317 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
3318 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
3319 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
3320 * NEWS: Mention that support for m88k was removed.
3321 * configure.host (m88*-*-*): Remove support.
3322 * configure.nat (m88k-*-*): Remove support.
3323 * configure.tgt (m88*-*-openbsd*): Remove.
3324 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
3325
3326 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * configure.tgt (x86_tobjs): New variable.
3329 (amd64_tobjs, i386_tobjs): Use it.
3330
3331 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3332
3333 * symtab.c (print_symbol_info): Precede the symbol definition by
3334 the line number when available.
3335 * NEWS: Advertise this enhancement.
3336
3337 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
3338
3339 * NEWS (New options): announce set/show record btrace cpu.
3340 * btrace.c: Include record-btrace.h.
3341 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
3342 the vendor is unknown.
3343 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
3344 Maybe overwrite the btrace configuration's cpu.
3345 (btrace_compute_ftrace): Add cpu parameter. Update callers.
3346 (btrace_fetch): Add cpu parameter. Update callers.
3347 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
3348 Maybe overwrite the btrace configuration's cpu. Skip enabling
3349 errata workarounds if the vendor is unknown.
3350 * python/py-record-btrace.c: Include record-btrace.h.
3351 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
3352 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
3353 * record-btrace.c (record_btrace_cpu_state_kind): New.
3354 (record_btrace_cpu): New.
3355 (set_record_btrace_cpu_cmdlist): New.
3356 (record_btrace_get_cpu): New.
3357 (require_btrace_thread, record_btrace_info)
3358 (record_btrace_resume_thread): Call record_btrace_get_cpu.
3359 (cmd_set_record_btrace_cpu_none): New.
3360 (cmd_set_record_btrace_cpu_auto): New.
3361 (cmd_set_record_btrace_cpu): New.
3362 (cmd_show_record_btrace_cpu): New.
3363 (_initialize_record_btrace): Initialize set/show record btrace cpu
3364 commands.
3365 * record-btrace.h (record_btrace_get_cpu): New.
3366
3367 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
3368
3369 * record.c (set_record_command): Fix typo in message.
3370
3371 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
3372
3373 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
3374
3375 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
3376
3377 * infrun.c (process_event_stop_test): Call
3378 gdbarch_in_indirect_branch_thunk.
3379 * gdbarch.sh (in_indirect_branch_thunk): New.
3380 * gdbarch.c: Regenerated.
3381 * gdbarch.h: Regenerated.
3382 * x86-tdep.h: New.
3383 * x86-tdep.c: New.
3384 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
3385 (HFILES_NO_SRCDIR): Add x86-tdep.h.
3386 (ALLDEPFILES): Add x86-tdep.c.
3387 * arch-utils.h (default_in_indirect_branch_thunk): New.
3388 * arch-utils.c (default_in_indirect_branch_thunk): New.
3389 * i386-tdep: Include x86-tdep.h.
3390 (i386_in_indirect_branch_thunk): New.
3391 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
3392 function.
3393 * amd64-tdep: Include x86-tdep.h.
3394 (amd64_in_indirect_branch_thunk): New.
3395 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
3396
3397 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3398
3399 PR gdb/23053
3400 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
3401 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
3402 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
3403 regression.
3404
3405 2018-04-12 Tom Tromey <tom@tromey.com>
3406
3407 * rust-lang.c (rust_print_struct_def): Remove univariant code.
3408 (rust_evaluate_subexp): Likewise.
3409
3410 2018-04-12 Pedro Alves <palves@redhat.com>
3411
3412 * procfs.c (procfs_detach): Make forward declaration's prototype
3413 match definition's protototype.
3414 (proc_get_LDT_entry): Remove stale do_cleanups call.
3415
3416 2018-04-12 Pedro Alves <palves@redhat.com>
3417
3418 * target.h (target_ops::to_has_exited): Delete.
3419 (target_has_exited): Delete.
3420 * target-delegates.c: Regenerate.
3421
3422 2018-04-11 Pedro Alves <palves@redhat.com>
3423
3424 * target.c (fileio_fh_t::t): Add comment.
3425 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
3426 (target_fileio_close): Handle a NULL target.
3427 (invalidate_fileio_fh): New.
3428 (target_close): Call it.
3429 * remote.c (remote_hostio_send_command): No longer check whether
3430 remote_desc is open.
3431
3432 2018-04-11 Pedro Alves <palves@redhat.com>
3433
3434 * target.c (fileio_fh_t): Make it a named struct instead of a
3435 typedef.
3436 (fileio_fh_t::is_closed): New method.
3437 (DEF_VEC_O (fileio_fh_t)): Remove.
3438 (fileio_fhandles): Now a std::vector.
3439 (is_closed_fileio_fh): Delete.
3440 (acquire_fileio_fd): Adjust. Rename parameters.
3441 (release_fileio_fd): Adjust.
3442 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
3443 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
3444 (target_fileio_close): Adjust.
3445
3446 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
3447
3448 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
3449 index.
3450
3451 2018-04-10 Pedro Alves <palves@redhat.com>
3452
3453 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
3454 (scoped_finish_thread_state): New class.
3455 * infcmd.c (run_command_1): Use it instead of finish_thread_state
3456 cleanup.
3457 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
3458 (fetch_inferior_event, normal_stop): Likewise.
3459 * thread.c (finish_thread_state_cleanup): Delete.
3460
3461 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3462 Pedro Alves <palves@redhat.com>
3463
3464 * value.c: Include "selftest.h" and "common/array-view.h".
3465 (struct range) <operator ==>: New.
3466 (test_ranges_contain): New.
3467 (check_ranges_vector): New.
3468 (test_insert_into_bit_range_vector): New.
3469 (_initialize_values): Register selftests.
3470 * common/array-view.h (operator==, operator!=): New.
3471
3472 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * common/gdb_vecs.h (unordered_remove): Add overload that takes
3475 an iterator.
3476 * inline-frame.c: Include <algorithm>.
3477 (struct inline_state): Add constructor.
3478 (inline_state_s): Remove.
3479 (DEF_VEC_O(inline_state_s)): Remove.
3480 (inline_states): Change type to std::vector.
3481 (find_inline_frame_state): Adjust to std::vector.
3482 (allocate_inline_frame_state): Remove.
3483 (clear_inline_frame_state): Adjust to std::vector.
3484 (skip_inline_frames): Adjust to std::vector.
3485
3486 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3487
3488 * tracepoint.h (struct trace_state_variable): Add constructor.
3489 <name>: Change type to std::string.
3490 * tracepoint.c (tsv_s): Remove.
3491 (DEF_VEC_O(tsv_s)): Remove.
3492 (tvariables): Change to std::vector.
3493 (create_trace_state_variable): Adjust to std::vector.
3494 (find_trace_state_variable): Likewise.
3495 (find_trace_state_variable_by_number): Likewise.
3496 (delete_trace_state_variable): Likewise.
3497 (trace_variable_command): Adjust to std::string.
3498 (delete_trace_variable_command): Likewise.
3499 (tvariables_info_1): Adjust to std::vector.
3500 (save_trace_state_variables): Likewise.
3501 (start_tracing): Likewise.
3502 (merge_uploaded_trace_state_variables): Adjust to std::vector
3503 and std::string.
3504 * target.h (struct target_ops)
3505 <to_download_trace_state_variable>: Pass reference to
3506 trace_state_variable.
3507 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
3508 * target-delegates.c: Re-generate.
3509 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
3510 (mi_tsv_deleted): Likewise.
3511 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3512 * remote.c (remote_download_trace_state_variable): Change
3513 pointer to reference and adjust.
3514 * make-target-delegates (parse_argtypes): Handle references.
3515 (write_function_header): Likewise.
3516 (munge_type): Likewise.
3517
3518 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3521 string_view-selftests.c.
3522 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
3523 testsuite.
3524 * unittests/basic_string_view/cons/char/1.cc: Likewise.
3525 * unittests/basic_string_view/cons/char/2.cc: Likewise.
3526 * unittests/basic_string_view/cons/char/3.cc: Likewise.
3527 * unittests/basic_string_view/element_access/char/1.cc:
3528 Likewise.
3529 * unittests/basic_string_view/element_access/char/empty.cc:
3530 Likewise.
3531 * unittests/basic_string_view/element_access/char/front_back.cc:
3532 Likewise.
3533 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
3534 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
3535 Likewise.
3536 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
3537 Likewise.
3538 * unittests/basic_string_view/modifiers/swap/char/1.cc:
3539 Likewise.
3540 * unittests/basic_string_view/operations/compare/char/1.cc:
3541 Likewise.
3542 * unittests/basic_string_view/operations/compare/char/13650.cc:
3543 Likewise.
3544 * unittests/basic_string_view/operations/copy/char/1.cc:
3545 Likewise.
3546 * unittests/basic_string_view/operations/data/char/1.cc:
3547 Likewise.
3548 * unittests/basic_string_view/operations/find/char/1.cc:
3549 Likewise.
3550 * unittests/basic_string_view/operations/find/char/2.cc:
3551 Likewise.
3552 * unittests/basic_string_view/operations/find/char/3.cc:
3553 Likewise.
3554 * unittests/basic_string_view/operations/find/char/4.cc:
3555 Likewise.
3556 * unittests/basic_string_view/operations/rfind/char/1.cc:
3557 Likewise.
3558 * unittests/basic_string_view/operations/rfind/char/2.cc:
3559 Likewise.
3560 * unittests/basic_string_view/operations/rfind/char/3.cc:
3561 Likewise.
3562 * unittests/basic_string_view/operations/substr/char/1.cc:
3563 Likewise.
3564 * unittests/basic_string_view/operators/char/2.cc: Likewise.
3565 * unittests/string_view-selftests.c: New file.
3566
3567 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * unittests/basic_string_view/capacity/1.cc: New file.
3570 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
3571 * unittests/basic_string_view/cons/char/1.cc: New file.
3572 * unittests/basic_string_view/cons/char/2.cc: New file.
3573 * unittests/basic_string_view/cons/char/3.cc: New file.
3574 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
3575 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
3576 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
3577 * unittests/basic_string_view/element_access/char/1.cc: New file.
3578 * unittests/basic_string_view/element_access/char/2.cc: New file.
3579 * unittests/basic_string_view/element_access/char/empty.cc: New file.
3580 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
3581 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
3582 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
3583 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
3584 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
3585 * unittests/basic_string_view/include.cc: New file.
3586 * unittests/basic_string_view/inserters/char/1.cc: New file.
3587 * unittests/basic_string_view/inserters/char/2.cc: New file.
3588 * unittests/basic_string_view/inserters/char/3.cc: New file.
3589 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
3590 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
3591 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
3592 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
3593 * unittests/basic_string_view/literals/types.cc: New file.
3594 * unittests/basic_string_view/literals/values.cc: New file.
3595 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
3596 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
3597 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
3598 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
3599 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
3600 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
3601 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
3602 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
3603 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
3604 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
3605 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
3606 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
3607 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
3608 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
3609 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
3610 * unittests/basic_string_view/operations/data/char/1.cc: New file.
3611 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
3612 * unittests/basic_string_view/operations/find/char/1.cc: New file.
3613 * unittests/basic_string_view/operations/find/char/2.cc: New file.
3614 * unittests/basic_string_view/operations/find/char/3.cc: New file.
3615 * unittests/basic_string_view/operations/find/char/4.cc: New file.
3616 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
3617 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
3618 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
3619 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
3620 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
3621 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
3622 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
3623 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
3624 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
3625 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
3626 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
3627 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
3628 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
3629 * unittests/basic_string_view/operators/char/2.cc: New file.
3630 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
3631 * unittests/basic_string_view/range_access/char/1.cc: New file.
3632 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
3633 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
3634 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
3635 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
3636 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
3637 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
3638 * unittests/basic_string_view/requirements/typedefs.cc: New file.
3639 * unittests/basic_string_view/typedefs.cc: New file.
3640 * unittests/basic_string_view/types/1.cc: New file.
3641
3642 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3643
3644 * common/gdb_string_view.h: Remove libstdc++ implementation
3645 details, adjust to gdb reality.
3646 * common/gdb_string_view.tcc: Likewise.
3647 * cli/cli-script.c (struct string_view): Remove.
3648 (user_args) <m_args>: Change element type to gdb::string_view.
3649 (user_args::insert_args): Adjust.
3650
3651 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3652
3653 * common/gdb_string_view.h: New file.
3654 * common/gdb_string_view.tcc: New file.
3655
3656 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3657
3658 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
3659 * configure: Re-generate.
3660
3661 2018-04-09 Pedro Alves <palves@redhat.com>
3662
3663 * gdbarch.sh: Include "observable.h" instead of "observer.h".
3664 (set_target_gdbarch): Call
3665 gdb::observers::architecture_changed.notify instead of
3666 observer_notify_architecture_changed.
3667
3668 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * tracepoint.c (struct current_traceframe_cleanup): Remove.
3671 (do_restore_current_traceframe_cleanup): Remove.
3672 (restore_current_traceframe_cleanup_dtor): Remove.
3673 (make_cleanup_restore_current_traceframe): Remove.
3674 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
3675 New.
3676 * tracepoint.h (struct scoped_restore_current_traceframe): New.
3677 * infrun.c (fetch_inferior_event): Use
3678 scoped_restore_current_traceframe.
3679
3680 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3681
3682 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
3683 Remove.
3684 <n_allocated_type_units>: Remove.
3685 <all_type_units>: Change to std::vector.
3686 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
3687 to std::vector change.
3688 (dwarf2_per_objfile::get_cutu): Likewise.
3689 (dwarf2_per_objfile::get_tu): Likewise.
3690 (create_signatured_type_table_from_index): Likewise.
3691 (create_signatured_type_table_from_debug_names): Likewise.
3692 (dw2_symtab_iter_next): Likewise.
3693 (dw2_print_stats): Likewise.
3694 (dw2_expand_all_symtabs): Likewise.
3695 (dw2_expand_marked_cus): Likewise.
3696 (dw2_debug_names_iterator::next): Likewise.
3697 (dwarf2_initialize_objfile): Likewise.
3698 (add_signatured_type_cu_to_table): Likewise.
3699 (create_all_type_units): Likewise.
3700 (add_type_unit): Likewise.
3701 (struct tu_abbrev_offset): Add constructor.
3702 (build_type_psymtabs_1): Adjust to std::vector change.
3703 (print_tu_stats): Likewise.
3704 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
3705 (write_debug_names): Likewise.
3706
3707 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3708
3709 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
3710 Make an std::vector.
3711 <n_comp_units>: Remove.
3712 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
3713 to std::vector change.
3714 (dwarf2_per_objfile::get_cutu): Likewise.
3715 (dwarf2_per_objfile::get_cu): Likewise.
3716 (create_cus_from_index): Likewise.
3717 (create_addrmap_from_index): Likewise.
3718 (create_addrmap_from_aranges): Likewise.
3719 (dwarf2_read_index): Likewise.
3720 (dw2_find_last_source_symtab): Likewise.
3721 (dw2_map_symtabs_matching_filename): Likewise.
3722 (dw2_symtab_iter_next): Likewise.
3723 (dw2_print_stats): Likewise.
3724 (dw2_expand_all_symtabs): Likewise.
3725 (dw2_expand_symtabs_with_fullname): Likewise.
3726 (dw2_expand_marked_cus): Likewise.
3727 (dw2_map_symbol_filenames): Likewise.
3728 (create_cus_from_debug_names): Likewise.
3729 (dwarf2_read_debug_names): Likewise.
3730 (dw2_debug_names_iterator::next): Likewise.
3731 (dwarf2_initialize_objfile): Likewise.
3732 (set_partial_user): Likewise.
3733 (dwarf2_build_psymtabs_hard): Likewise.
3734 (read_comp_units_from_section): Remove arguments, adjust to
3735 std::vector change.
3736 (create_all_comp_units): Adjust to std::vector and
3737 read_comp_units_from_section changes.
3738 (dwarf2_find_containing_comp_unit): Adjust to std::vector
3739 change.
3740 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
3741 (psyms_seen_size): Likewise.
3742 (write_gdbindex): Likewise.
3743 (write_debug_names): Likewise.
3744
3745 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3746
3747 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
3748 with dwarf2_per_objfile.
3749 (create_cus_from_index): Likewise.
3750 (create_signatured_type_table_from_index): Likewise.
3751 (dwarf2_read_index): Likewise.
3752 (dwarf2_initialize_objfile): Likewise.
3753 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
3754 per_cu rather than get_dwarf2_per_objfile.
3755
3756 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3757
3758 * dwarf2read.h (struct signatured_type): Forward declare.
3759 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
3760 New methods.
3761 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
3762 (dw2_get_cutu): ...this.
3763 (dwarf2_per_objfile::get_cu): Rename from...
3764 (dw2_get_cu): ...this.
3765 (dwarf2_per_objfile::get_tu): New.
3766 (create_addrmap_from_index): Adjust.
3767 (create_addrmap_from_aranges): Adjust.
3768 (dw2_find_last_source_symtab): Adjust.
3769 (dw2_map_symtabs_matching_filename): Adjust.
3770 (dw2_symtab_iter_next): Adjust.
3771 (dw2_print_stats): Adjust.
3772 (dw2_expand_all_symtabs): Adjust.
3773 (dw2_expand_symtabs_with_fullname): Adjust.
3774 (dw2_expand_marked_cus): Adjust.
3775 (dw_expand_symtabs_matching_file_matcher): Adjust.
3776 (dw2_map_symbol_filenames): Adjust.
3777 (dw2_debug_names_iterator::next): Adjust.
3778 (dwarf2_initialize_objfile): Adjust.
3779 (set_partial_user): Adjust.
3780 (dwarf2_build_psymtabs_hard): Adjust.
3781
3782 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3783
3784 * dwarf2read.c (create_signatured_type_table_from_debug_names):
3785 Remove unused variables.
3786 (dw2_map_symtabs_matching_filename): Likewise.
3787 (dwarf2_record_block_ranges): Likewise.
3788 (dwarf2_read_addr_index): Likewise.
3789 (follow_die_offset): Likewise.
3790
3791 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
3794 to symbol_file_add_main.
3795
3796 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3797
3798 PR mi/22299
3799 * mi/mi-console.c (do_fputc_async_safe): New.
3800 (mi_console_file::write_async_safe): New.
3801 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
3802 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
3803 New.
3804 * ui-file.c (ui_file::putstrn): Adjust call to
3805 fputstrn_unfiltered.
3806 * utils.c (printchar): Replace do_fputs and do_fprintf
3807 parameters by do_fputc.
3808 (fputstr_filtered): Adjust call to printchar.
3809 (fputstr_unfiltered): Likewise.
3810 (fputstrn_filtered): Likewise.
3811 (fputstrn_unfiltered): Add do_fputc parameter, pass to
3812 printchar.
3813 * utils.h (do_fputc_ftype): New typedef.
3814 (fputstrn_unfiltered): Add do_fputc parameter.
3815
3816 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * regformats/i386/i386-avx.dat: Remove.
3819
3820 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
3821
3822 PR gdb/22979
3823 * amd64-tdep.c (amd64_none_init_abi): New function.
3824 (amd64_x32_none_init_abi): New function.
3825 (_initialize_amd64_tdep): Register handlers for x86-64 and
3826 x64_32 with GDB_OSABI_NONE.
3827 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
3828 GDB_OSABI_NONE osabi.
3829
3830 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
3831
3832 PR gdb/22980
3833 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
3834 GDB_OSABI_NONE.
3835 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
3836 * osabi.c (gdb_osabi_names): Add "unknown" entry.
3837
3838 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
3839
3840 * common/byte-vector.h (char_vector): New type.
3841 * target.h (target_read_alloc): Return
3842 gdb::optional<byte_vector>.
3843 (target_read_stralloc): Return gdb::optional<char_vector>.
3844 (target_get_osdata): Return gdb::optional<char_vector>.
3845 * target.c (target_read_alloc_1): Templatize. Replacement
3846 manual memory management with vector.
3847 (target_read_alloc): Change return type, adjust.
3848 (target_read_stralloc): Change return type, adjust.
3849 (target_get_osdata): Change return type, adjust.
3850 * auxv.c (struct auxv_info) <length>: Remove.
3851 <data>: Change type to gdb::optional<byte_vector>.
3852 (auxv_inferior_data_cleanup): Free auxv_info with delete.
3853 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
3854 (target_auxv_search): Adjust.
3855 (fprint_target_auxv): Adjust.
3856 * avr-tdep.c (avr_io_reg_read_command): Adjust.
3857 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
3858 (linux_make_corefile_notes): Adjust.
3859 * osdata.c (get_osdata): Adjust.
3860 * remote.c (remote_get_threads_with_qxfer): Adjust.
3861 (remote_memory_map): Adjust.
3862 (remote_traceframe_info): Adjust.
3863 (btrace_read_config): Adjust.
3864 (remote_read_btrace): Adjust.
3865 (remote_pid_to_exec_file): Adjust.
3866 * solib-aix.c (solib_aix_get_library_list): Adjust.
3867 * solib-dsbt.c (decode_loadmap): Don't free buf.
3868 (dsbt_get_initial_loadmaps): Adjust.
3869 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
3870 * solib-target.c (solib_target_current_sos): Adjust.
3871 * tracepoint.c (sdata_make_value): Adjust.
3872 * xml-support.c (xinclude_start_include): Adjust.
3873 (xml_fetch_content_from_file): Adjust.
3874 * xml-support.h (xml_fetch_another): Change return type.
3875 (xml_fetch_content_from_file): Change return type.
3876 * xml-syscall.c (xml_init_syscalls_info): Adjust.
3877 * xml-tdesc.c (file_read_description_xml): Adjust.
3878 (fetch_available_features_from_target): Change return type.
3879 (target_fetch_description_xml): Adjust.
3880 (target_read_description_xml): Adjust.
3881
3882 2018-04-06 Tom Tromey <tom@tromey.com>
3883
3884 * value.c (~value): Update.
3885 (struct value) <contents>: Now unique_xmalloc_ptr.
3886 (value_contents_bits_eq, allocate_value_contents)
3887 (value_contents_raw, value_contents_all_raw)
3888 (value_contents_for_printing, value_contents_for_printing_const)
3889 (set_value_enclosing_type): Update.
3890
3891 2018-04-06 Tom Tromey <tom@tromey.com>
3892
3893 * value.c (range_s): Remove typedef, VEC.
3894 (struct range): Add operator<.
3895 (range_lessthan): Remove.
3896 (ranges_contain): Change type.
3897 (~value): Update.
3898 (struct value) <unavailable, optimized_out>: Now std::vector.
3899 (value_entirely_available)
3900 (value_entirely_covered_by_range_vector)
3901 (value_entirely_unavailable, value_entirely_optimized_out):
3902 Update.
3903 (insert_into_bit_range_vector): Change argument type.
3904 (find_first_range_overlap): Likewise.
3905 (struct ranges_and_idx, value_contents_bits_eq)
3906 (require_not_optimized_out, require_available): Update.
3907 (ranges_copy_adjusted): Change argument types.
3908 (value_optimized_out, value_copy, value_fetch_lazy): Update.
3909
3910 2018-04-06 Tom Tromey <tom@tromey.com>
3911
3912 * value.c (~value): Update.
3913 (struct value) <parent>: Now a value_ref_ptr.
3914 (value_parent, set_value_parent, value_address, value_copy):
3915 Update.
3916
3917 2018-04-06 Tom Tromey <tom@tromey.com>
3918
3919 * value.c (struct value): Add constructor, destructor, and member
3920 initializers.
3921 (allocate_value_lazy, value_decref): Update.
3922
3923 2018-04-06 Tom Tromey <tom@tromey.com>
3924
3925 * value.c (struct value) <released, next>: Remove.
3926 (all_values): Now a std::vector.
3927 (allocate_value_lazy): Update.
3928 (value_next): Remove.
3929 (value_mark, value_free_to_mark, release_value)
3930 (value_release_to_mark): Update.
3931
3932 2018-04-06 Tom Tromey <tom@tromey.com>
3933
3934 * value.h (fetch_subexp_value, value_release_to_mark): Update.
3935 (free_value_chain): Remove.
3936 * value.c (free_value_chain): Remove.
3937 (value_release_to_mark): Return a std::vector.
3938 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
3939 std::vector.
3940 (check_condition): Update.
3941 * eval.c (fetch_subexp_value): Change "val_chain" to a
3942 std::vector.
3943 * breakpoint.c (update_watchpoint): Update.
3944 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
3945
3946 2018-04-06 Tom Tromey <tom@tromey.com>
3947
3948 * value.h (free_all_values): Remove.
3949 * value.c (free_all_values): Remove.
3950
3951 2018-04-06 Tom Tromey <tom@tromey.com>
3952
3953 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
3954 (value_history_chain, value_history_count): Remove.
3955 (value_history): New global.
3956 (record_latest_value, access_value_history, show_values)
3957 (preserve_values): Update.
3958
3959 2018-04-06 Tom Tromey <tom@tromey.com>
3960
3961 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
3962 * varobj.c (varobj_set_display_format, varobj_set_value)
3963 (install_default_visualizer, construct_visualizer)
3964 (install_new_value, ~varobj, varobj_get_value_type)
3965 (my_value_of_variable, varobj_editable_p): Update.
3966 * c-varobj.c (c_describe_child, c_value_of_variable)
3967 (cplus_number_of_children, cplus_describe_child): Update.
3968 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
3969 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
3970 (ada_value_of_variable, ada_value_is_changeable_p): Update.
3971
3972 2018-04-06 Tom Tromey <tom@tromey.com>
3973
3974 * printcmd.c (last_examine_address): Change type to
3975 value_ref_ptr.
3976 (do_examine, x_command): Update.
3977
3978 2018-04-06 Tom Tromey <tom@tromey.com>
3979
3980 * value.c (release_value): Update.
3981 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
3982 (struct bpstats) <val>: Now a value_ref_ptr.
3983 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
3984 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
3985 (~watchpoint, print_it_watchpoint, watch_command_1)
3986 (invalidate_bp_value_on_memory_change): Update.
3987
3988 2018-04-06 Tom Tromey <tom@tromey.com>
3989
3990 * varobj.c (varobj_clear_saved_item)
3991 (update_dynamic_varobj_children, install_new_value, ~varobj):
3992 Update.
3993 * value.h (value_incref): Move declaration earlier.
3994 (value_decref): Rename from value_free.
3995 (struct value_ref_policy): New.
3996 (value_ref_ptr): New typedef.
3997 (struct value_deleter): Remove.
3998 (gdb_value_up): Remove typedef.
3999 (release_value): Change return type.
4000 (release_value_or_incref): Remove.
4001 * value.c (set_value_parent): Update.
4002 (value_incref): Change return type.
4003 (value_decref): Rename from value_free.
4004 (value_free_to_mark, free_all_values, free_value_chain): Update.
4005 (release_value): Return value_ref_ptr.
4006 (release_value_or_incref): Remove.
4007 (record_latest_value, set_internalvar, clear_internalvar):
4008 Update.
4009 * stack.c (info_frame_command): Don't call value_free.
4010 * python/py-value.c (valpy_dealloc, valpy_new)
4011 (value_to_value_object): Update.
4012 * printcmd.c (do_examine): Update.
4013 * opencl-lang.c (lval_func_free_closure): Update.
4014 * mi/mi-main.c (register_changed_p): Don't call value_free.
4015 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
4016 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
4017 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
4018 value_free.
4019 * guile/scm-value.c (vlscm_free_value_smob)
4020 (vlscm_scm_from_value): Update.
4021 * frame.c (frame_register_unwind, frame_unwind_register_signed)
4022 (frame_unwind_register_unsigned, get_frame_register_bytes)
4023 (put_frame_register_bytes): Don't call value_free.
4024 * findvar.c (address_from_register): Don't call value_free.
4025 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
4026 * dwarf2loc.c (entry_data_value_free_closure)
4027 (value_of_dwarf_reg_entry, free_pieced_value_closure)
4028 (dwarf2_evaluate_loc_desc_full): Update.
4029 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
4030 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
4031 (~watchpoint, watch_command_1)
4032 (invalidate_bp_value_on_memory_change): Update.
4033 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
4034
4035 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
4036
4037 PR gdb/23022
4038 * warning.m4: Add -Wno-error=deprecated-register.
4039 * configure: Re-generate.
4040
4041 2018-04-05 Tom Tromey <tom@tromey.com>
4042
4043 * linespec.h: Remove include of "vec.h".
4044
4045 2018-04-05 Tom Tromey <tom@tromey.com>
4046
4047 * linespec.c (typep): Remove typedef.
4048 (find_methods, find_superclass_methods): Take a std::vector.
4049 (find_method): Use std::vector.
4050
4051 2018-04-05 Tom Tromey <tom@tromey.com>
4052
4053 * utils.c (compare_strings): Remove.
4054 * utils.h (compare_strings): Remove.
4055 * objc-lang.h (find_imps): Update.
4056 * objc-lang.c (find_methods): Take a std::vector.
4057 (uniquify_strings, find_imps): Likewise.
4058 * linespec.c (find_methods): Take a std::vector.
4059 (decode_objc): Use std::vector.
4060 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
4061 a std::vector.
4062 (find_method, find_function_symbols): Use std::vector.
4063
4064 2018-04-05 Tom Tromey <tom@tromey.com>
4065
4066 * completer.c (completion_tracker::completion_tracker): Remove
4067 cast.
4068 (completion_tracker::discard_completions): Likewise.
4069 * breakpoint.c (ambiguous_names_p): Remove cast.
4070 * ada-lang.c (_initialize_ada_language): Remove cast.
4071 * utils.h (streq): Update.
4072 (streq_hash): Add new declaration.
4073 * utils.c (streq): Return bool.
4074 (streq_hash): New function.
4075
4076 2018-04-05 Tom Tromey <tom@tromey.com>
4077
4078 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
4079 Remove a string copy.
4080
4081 2018-04-05 Tom Tromey <tom@tromey.com>
4082
4083 * linespec.c (filter_results): Use std::vector.
4084 (decode_line_2, decode_line_full): Update.
4085
4086 2018-04-05 Tom Tromey <tom@tromey.com>
4087
4088 * linespec.c (canonical_to_fullform): Return std::string.
4089 (filter_results): Update.
4090 (struct decode_line_2_item): Add constructor.
4091 <fullform, displayform>: Now std::string.
4092 (decode_line_2_compare_items): Now a std::sort comparator.
4093 (decode_line_2): Update.
4094
4095 2018-04-05 Tom Tromey <tom@tromey.com>
4096
4097 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
4098 (unexpected_linespec_error): Update.
4099 (linespec_parse_basic, parse_linespec): Update.
4100
4101 2018-04-05 Tom Tromey <tom@tromey.com>
4102
4103 * linespec.c (linespec_parse_basic): Reindent.
4104
4105 2018-04-05 Tom Tromey <tom@tromey.com>
4106
4107 * minsyms.h (iterate_over_minimal_symbols): Update.
4108 * minsyms.c (iterate_over_minimal_symbols): Take a
4109 gdb::function_view.
4110 * linespec.c (struct collect_minsyms): Remove.
4111 (compare_msyms): Now a std::sort comparator.
4112 (add_minsym): Add parameters.
4113 (search_minsyms_for_name): Update. Use std::vector.
4114
4115 2018-04-03 Tom Tromey <tom@tromey.com>
4116
4117 * mipsread.c (read_alphacoff_dynamic_symtab): Use
4118 gdb::byte_vector.
4119
4120 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
4121
4122 * MAINTAINERS (Write After Approval): Add Weimin Pan.
4123
4124 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
4125
4126 PR gdb/16959
4127 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
4128 printing static type.
4129
4130 2018-04-01 Tom Tromey <tom@tromey.com>
4131
4132 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
4133 (rs6000_xfer_shared_libraries): Update.
4134
4135 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
4136
4137 * common/gdb_vecs.h (char_ptr): Remove.
4138 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
4139
4140 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4141
4142 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
4143 with std::vector.
4144 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
4145
4146 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * tracepoint.h (struct uploaded_tp): Initialize fields.
4149 <actions, step_actions, cmd_strings>: Change type to
4150 std::vector<char *>.
4151 * tracepoint.c (get_uploaded_tp): Allocate with new.
4152 (free_uploaded_tps): Free with delete.
4153 (parse_tracepoint_definition): Adjust to std::vector change.
4154 * breakpoint.c (read_uploaded_action): Likewise.
4155 (create_tracepoint_from_upload): Likewise.
4156 * ctf.c (ctf_write_uploaded_tp): Likewise.
4157 (SET_ARRAY_FIELD): Likewise.
4158 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
4159
4160 2018-03-30 Tom Tromey <tom@tromey.com>
4161
4162 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
4163 std::unique_ptr.
4164 (svr4_keep_data_in_core): Update.
4165 (svr4_read_so_list): Update.
4166
4167 2018-03-30 Tom Tromey <tom@tromey.com>
4168
4169 * windows-nat.c (handle_output_debug_string, handle_exception):
4170 Update.
4171 * target.h (target_read_string): Update.
4172 * target.c (target_read_string): Change "string" to
4173 unique_xmalloc_ptr.
4174 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4175 Update.
4176 * solib-frv.c (frv_current_sos): Update.
4177 * solib-dsbt.c (dsbt_current_sos): Update.
4178 * solib-darwin.c (darwin_current_sos): Update.
4179 * linux-thread-db.c (inferior_has_bug): Update.
4180 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
4181 Update. Remove alloca.
4182 * ada-lang.c (ada_main_name): Update.
4183
4184 2018-03-30 Tom Tromey <tom@tromey.com>
4185
4186 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
4187 (struct dwo_file_deleter): New.
4188 (dwo_file_up): New typedef.
4189 (open_and_init_dwo_file): Use dwo_file_up.
4190 (free_dwo_file_cleanup): Remove.
4191
4192 2018-03-30 Tom Tromey <tom@tromey.com>
4193
4194 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
4195 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
4196
4197 2018-03-30 Tom Tromey <tom@tromey.com>
4198
4199 * dwarf2read.c (class free_cached_comp_units): New class.
4200 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
4201 (free_cached_comp_units): Remove function.
4202
4203 2018-03-30 Tom Tromey <tom@tromey.com>
4204
4205 * utils.h (make_cleanup_unpush_target): Remove.
4206 * inf-ptrace.c (struct target_unpusher): New.
4207 (target_unpush_up) New typedef.
4208 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
4209 target_unpush_up.
4210 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
4211
4212 2018-03-27 Tom Tromey <tom@tromey.com>
4213
4214 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
4215
4216 2018-03-27 Pedro Alves <palves@redhat.com>
4217 Tom Tromey <tom@tromey.com>
4218
4219 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
4220 destructor. Now a class.
4221 (gdb_readline_wrapper_cleanup): Remove function.
4222 (gdb_readline_wrapper): Remove cleanups.
4223
4224 2018-03-27 Tom Tromey <tom@tromey.com>
4225
4226 * typeprint.h (struct type_print_options) <local_typedefs,
4227 global_typedefs>: Remove "struct" keyword.
4228 (class typedef_hash_table): New class.
4229 (recursively_update_typedef_hash, add_template_parameters)
4230 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
4231 (find_typedef_in_hash): Don't declare.
4232 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
4233 (typedef_hash_table::recursively_update): Rename from
4234 recursively_update_typedef_hash. Now a member.
4235 (typedef_hash_table::add_template_parameters): Rename from
4236 add_template_parameters. Now a member.
4237 (typedef_hash_table::typedef_hash_table): Now a constructor;
4238 rename from create_typedef_hash.
4239 (typedef_hash_table::~typedef_hash_table): Now a destructor;
4240 rename from free_typedef_hash.
4241 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
4242 (do_free_global_table): Remove.
4243 (typedef_hash_table::typedef_hash_table): New constructor; renamed
4244 from copy_type_recursive.
4245 (create_global_typedef_table): Remove.
4246 (typedef_hash_table::find_global_typedef): Now a member of
4247 typedef_hash_table.
4248 (typedef_hash_table::find_typedef): Rename from
4249 find_typedef_in_hash; now a member.
4250 (whatis_exp): Update.
4251 * extension.h (struct ext_lang_type_printers): Add constructor and
4252 destructor.
4253 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
4254 declare.
4255 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
4256 Now a constructor; rename from start_ext_lang_type_printers.
4257 (ext_lang_type_printers): Now a destructor; rename from
4258 free_ext_lang_type_printers.
4259 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
4260 Update.
4261 (c_type_print_base_struct_union): Update. Remove cleanups.
4262
4263 2018-03-27 Tom Tromey <tom@tromey.com>
4264
4265 * dwarf-index-write.c: Include <cmath>.
4266
4267 2018-03-27 Joel Brobecker <brobecker@adacore.com>
4268
4269 * NEWS: Add entry describing new "set|show varsize-limit" command.
4270 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
4271 command.
4272 * printcmd.c (_initialize_printcmd): Add "set var" alias of
4273 "set variable".
4274
4275 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
4276
4277 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
4278 dwarf-index-write.c
4279 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
4280 * dwarf-index-common.c: New file.
4281 * dwarf-index-common.h: New file.
4282 * dwarf-index-write.c: New file.
4283 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
4284 (struct dwarf2_section_info): Move from here.
4285 (dwarf2_section_info_def): Likewise.
4286 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
4287 (offset_type): Likewise.
4288 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
4289 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
4290 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
4291 (byte_swap): Likewise.
4292 (MAYBE_SWAP): Likewise.
4293 (dwarf2_per_cu_ptr): Likewise.
4294 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
4295 (struct tu_stats): Likewise.
4296 (struct dwarf2_per_objfile): Likewise.
4297 (struct dwarf2_per_cu_data): Likewise.
4298 (struct signatured_type): Likewise.
4299 (sig_type_ptr): Likewise.
4300 (DEF_VEC_P (sig_type_ptr)): Likewise.
4301 (INDEX4_SUFFIX): Likewise.
4302 (INDEX5_SUFFIX): Likewise.
4303 (DEBUG_STR_SUFFIX): Likewise.
4304 (dwarf2_read_section): Make non-static.
4305 (mapped_index_string_hash): Move from here.
4306 (dwarf5_djb_hash): Likewise.
4307 (file_write): Likewise.
4308 (class data_buf): Likewise.
4309 (struct symtab_index_entry): Likewise.
4310 (struct mapped_symtab): Likewise.
4311 (find_slot): Likewise.
4312 (hash_expand): Likewise.
4313 (add_index_entry): Likewise.
4314 (uniquify_cu_indices): Likewise.
4315 (class c_str_view): Likewise.
4316 (class c_str_view_hasher): Likewise.
4317 (class vector_hasher): Likewise.
4318 (write_hash_table): Likewise.
4319 (psym_index_map): Likewise.
4320 (struct addrmap_index_data): Likewise.
4321 (add_address_entry): Likewise.
4322 (add_address_entry_worker): Likewise.
4323 (write_address_map): Likewise.
4324 (symbol_kind): Likewise.
4325 (write_psymbols): Likewise.
4326 (struct signatured_type_index_data): Likewise.
4327 (write_one_signatured_type): Likewise.
4328 (recursively_count_psymbols): Likewise.
4329 (recursively_write_psymbols): Likewise.
4330 (class debug_names): Likewise.
4331 (check_dwarf64_offsets): Likewise.
4332 (psyms_seen_size): Likewise.
4333 (write_gdbindex): Likewise.
4334 (write_debug_names): Likewise.
4335 (assert_file_size): Likewise.
4336 (write_psymtabs_to_index): Likewise.
4337 (save_gdb_index_command): Likewise.
4338 (_initialize_dwarf2_read): Don't register the "save gdb-index"
4339 command.
4340 * dwarf2read.h: New file.
4341
4342 2018-03-27 Joel Brobecker <brobecker@adacore.com>
4343
4344 PR gdb/22670
4345 * dwarf2read.c (dwarf2_physname): Do not return the demangled
4346 symbol name if the CU's language stores symbol names in linkage
4347 format.
4348 * language.h (struct language_defn)
4349 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
4350 all instances of this struct.
4351
4352 2018-03-26 Tom Tromey <tom@tromey.com>
4353
4354 * stack.c (backtrace_command_1): Remove verbose code.
4355
4356 2018-03-26 Tom Tromey <tom@tromey.com>
4357
4358 * python/py-framefilter.c (py_print_type): Don't catch
4359 exceptions. Return void.
4360 (py_print_value): Likewise.
4361 (py_print_single_arg): Likewise.
4362 (enumerate_args): Don't catch exceptions.
4363 (py_print_args): Likewise.
4364 (py_print_frame): Likewise.
4365 (gdbpy_apply_frame_filter): Catch exceptions here.
4366
4367 2018-03-26 Tom Tromey <tom@tromey.com>
4368
4369 * stack.c (_initialize_stack): Remove trailing newlines from help
4370 text. Add "Usage" line to "backtrace" help.
4371
4372 2018-03-26 Tom Tromey <tom@tromey.com>
4373
4374 PR python/16486:
4375 * python/py-framefilter.c (py_print_args): Call wrap_hint.
4376
4377 2018-03-26 Tom Tromey <tom@tromey.com>
4378
4379 * python/py-framefilter.c (py_print_single_arg): Return
4380 EXT_LANG_BT_ERROR from catch.
4381
4382 2018-03-26 Tom Tromey <tom@tromey.com>
4383
4384 PR backtrace/15584:
4385 * stack.c (backtrace_command_1): Move some code into no-filters
4386 "if".
4387
4388 2018-03-26 Tom Tromey <tom@tromey.com>
4389
4390 * python/py-framefilter.c (throw_quit_or_print_exception): New
4391 function.
4392 (gdbpy_apply_frame_filter): Use it.
4393
4394 2018-03-26 Tom Tromey <tom@tromey.com>
4395
4396 PR cli/17716:
4397 * python/py-framefilter.c (py_print_type, py_print_value)
4398 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
4399 RETURN_MASK_ERROR.
4400
4401 2018-03-26 Tom Tromey <tom@tromey.com>
4402
4403 * python/py-framefilter.c (enumerate_args): Use
4404 gdb::unique_xmalloc_ptr.
4405
4406 2018-03-26 Tom Tromey <tom@tromey.com>
4407
4408 * python/py-framefilter.c (py_print_frame): Return
4409 EXT_LANG_BT_OK.
4410 (gdbpy_apply_frame_filter): Update comment.
4411 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
4412 Remove.
4413 <EXT_LANG_BT_NO_FILTERS>: Change value.
4414
4415 2018-03-26 Tom Tromey <tom@tromey.com>
4416
4417 PR backtrace/15582:
4418 * stack.c (backtrace_command): Parse "hide" argument.
4419 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
4420 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
4421 constant.
4422
4423 2018-03-26 Tom Tromey <tom@tromey.com>
4424
4425 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
4426 add "flags".
4427 (backtrace_command): Remove "fulltrace", add "flags".
4428
4429 2018-03-26 Tom Tromey <tom@tromey.com>
4430
4431 * stack.c (backtrace_command): Rewrite command line parsing.
4432
4433 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
4434
4435 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
4436
4437 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
4438
4439 * filename-seen-cache.h: Add include guard.
4440
4441 2018-03-26 Keith Seitz <keiths@redhat.com>
4442
4443 * symfile.c (place_section): Remove "struct" from section_addr_info
4444 in comment.
4445 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
4446 "struct" keyword from section_addr_info.
4447
4448 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4449
4450 * regformats/regdef.h (reg): Add constructors.
4451
4452 2018-03-25 Pedro Alves <palves@redhat.com>
4453
4454 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
4455 if then/else bodies in var_func_name extraction.
4456
4457 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
4458
4459 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
4460 lookup_minimal_symbol() to find symbol entry.
4461 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
4462
4463 2018-03-23 Keith Seitz <keiths@redhat.com>
4464
4465 PR c++/22968
4466 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
4467 nested type definitions for C++, too.
4468
4469 2018-03-23 Tom Tromey <tom@tromey.com>
4470
4471 * machoread.c (struct oso_el): Add a constructor. Don't define as
4472 a typedef.
4473 (macho_register_oso): Remove.
4474 (macho_symtab_read): Take a std::vector.
4475 (oso_el_compare_name): Now a std::sort comparator.
4476 (macho_symfile_read_all_oso): Take a std::vector.
4477 (macho_symfile_read): Use std::vector. Remove cleanups.
4478
4479 2018-03-22 Tom Tromey <tom@tromey.com>
4480
4481 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
4482 (record_full_goto_bookmark): Use std::string.
4483
4484 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4485
4486 PR tdep/18295
4487 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
4488 a single mask.
4489
4490 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4491
4492 * rs6000-tdep.c (store_insn_p): New function.
4493 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
4494 and cr_reg to their unshifted values. Use store_insn_p to
4495 match LR saves using either R1 or fdata->alloca_reg. Use
4496 store_insn_p to match CR saves. Set alloca_reg_offset
4497 when alloca_reg and framep are set. Remove lr_reg shift
4498 when assigning to fdata->lr_register.
4499
4500 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4501
4502 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
4503 command line args instead of emitting a warning.
4504
4505 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
4506
4507 * tracepoint.h (struct static_tracepoint_marker): Initialize
4508 fields, define default constructor, move constructor and move
4509 assignment, disable the rest.
4510 <str_id, extra>: Make std::string.
4511 (release_static_tracepoint_marker): Remove.
4512 (free_current_marker): Remove.
4513 * tracepoint.c (free_current_marker): Remove.
4514 (parse_static_tracepoint_marker_definition): Adjust to
4515 std::string, use new hex2str overload.
4516 (release_static_tracepoint_marker): Remove.
4517 (print_one_static_tracepoint_marker): Get marker by reference
4518 and adjust to std::string.
4519 (info_static_tracepoint_markers_command): Adjust to std::vector
4520 changes
4521 * target.h (static_tracepoint_marker_p): Remove typedef.
4522 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
4523 (struct target_ops) <to_static_tracepoint_marker_at>: Return
4524 bool.
4525 <to_static_tracepoint_markers_by_strid>: Return std::vector.
4526 * target-debug.h
4527 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
4528 (target_debug_print_std_vector_static_tracepoint_marker): New.
4529 (target_debug_print_struct_static_tracepoint_marker_p): Rename
4530 to...
4531 (target_debug_print_static_tracepoint_marker_p): ... this.
4532 * target-delegates.c: Re-generate.
4533 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
4534 Make std::string.
4535 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
4536 (decode_static_tracepoint_spec): Adjust to std::vector.
4537 (tracepoint_print_one_detail): Adjust to std::string.
4538 (strace_marker_decode_location): Adjust to std::string.
4539 (update_static_tracepoint): Adjust to std::string, remove call
4540 to release_static_tracepoint_marker.
4541 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4542 Adjust to std::vector.
4543 * remote.c (remote_static_tracepoint_marker_at): Return bool.
4544 (remote_static_tracepoint_markers_by_strid): Adjust to
4545 std::vector.
4546 * common/rsp-low.h (hex2str): New overload with explicit count
4547 of bytes.
4548 * common/rsp-low.c (hex2str): New overload with explicit count
4549 of bytes.
4550 * unittests/rsp-low-selftests.c (test_hex2str): New function.
4551 (_initialize_rsp_low_selftests): Add test_hex2str test.
4552 * unittests/tracepoint-selftests.c
4553 (test_parse_static_tracepoint_marker_definition): Adjust to
4554 std::string.
4555
4556 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
4557
4558 * tracepoint.c (parse_static_tracepoint_marker_definition):
4559 Consider case where the definition is followed by more
4560 definitions.
4561 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4562 tracepoint-selftests.c.
4563 * unittests/tracepoint-selftests.c: New.
4564
4565 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4566
4567 * MAINTAINERS (Write After Approval): Add Pedro Franco de
4568 Carvalho.
4569
4570 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
4571
4572 * symtab.c (find_pc_sect_line): fixed indentation.
4573
4574 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
4575
4576 * symtab.c (find_pc_sect_line): now uses binary search.
4577
4578 2018-03-19 Tom Tromey <tom@tromey.com>
4579
4580 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
4581 "IDENT" production.
4582
4583 2018-03-19 Pedro Alves <palves@redhat.com>
4584 Tom Tromey <tom@tromey.com>
4585
4586 * unittests/observable-selftests.c: New file.
4587 * common/observable.h: New file.
4588 * observable.h: New file.
4589 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
4590 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
4591 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
4592 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
4593 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
4594 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
4595 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
4596 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
4597 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
4598 python/py-breakpoint.c, python/py-finishbreakpoint.c,
4599 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
4600 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
4601 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
4602 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
4603 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
4604 tui/tui-interp.c, valops.c: Update all users.
4605 * tui/tui-hooks.c (tui_bp_created_observer)
4606 (tui_bp_deleted_observer, tui_bp_modified_observer)
4607 (tui_inferior_exit_observer, tui_before_prompt_observer)
4608 (tui_normal_stop_observer, tui_register_changed_observer):
4609 Remove.
4610 (tui_observers_token): New global.
4611 (attach_or_detach, tui_attach_detach_observers): New functions.
4612 (tui_install_hooks, tui_remove_hooks): Use
4613 tui_attach_detach_observers.
4614 * record-btrace.c (record_btrace_thread_observer): Remove.
4615 (record_btrace_thread_observer_token): New global.
4616 * observer.sh: Remove.
4617 * observer.c: Rename to observable.c.
4618 * observable.c (namespace gdb_observers): Define new objects.
4619 (observer_debug): Move into gdb_observers namespace.
4620 (struct observer, struct observer_list, xalloc_observer_list_node)
4621 (xfree_observer_list_node, generic_observer_attach)
4622 (generic_observer_detach, generic_observer_notify): Remove.
4623 (_initialize_observer): Update.
4624 Don't include observer.inc.
4625 * Makefile.in (generated_files): Remove observer.h, observer.inc.
4626 (clean mostlyclean): Likewise.
4627 (observer.h, observer.inc): Remove targets.
4628 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
4629 (COMMON_SFILES): Use observable.c, not observer.c.
4630 * .gitignore: Remove observer.h.
4631
4632 2018-03-18 Tom Tromey <tom@tromey.com>
4633
4634 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
4635 gdb::def_vector.
4636 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
4637
4638 2018-03-17 Tom Tromey <tom@tromey.com>
4639
4640 * auto-load.c (auto_load_objfile_script_1): Use std::string.
4641
4642 2018-03-17 Tom Tromey <tom@tromey.com>
4643
4644 * target.c (class scoped_target_fd): New.
4645 (target_fileio_close_cleanup): Remove.
4646 (target_fileio_read_alloc_1): Use scoped_target_fd.
4647
4648 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * silent-rules.mk: New.
4651 * Makefile.in: Include silent-rules.mk
4652 (srcdir, VPATH, top_srcdir): Move up.
4653 (COMPILE): Add ECHO_CXX.
4654 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
4655 (init.c): Add ECHO_INIT_C.
4656 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4657 (version.c): Add ECHO_GEN.
4658 (printcmd.o): Add ECHO_CXX.
4659 (target-float.o): Add ECHO_CXX.
4660 (ada-exp.o): Add ECHO_CXX.
4661 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
4662 (insight$(EXEEXT)): Add ECHO_CXXLD.
4663 * gnulib/configure.ac: Add AM_SILENT_RULES.
4664 * gnulib/aclocal.m4: Re-generate.
4665 * gnulib/configure: Re-generate.
4666 * gnulib/import/Makefile.in: Re-generate.
4667
4668 2018-03-16 Tom Tromey <tom@tromey.com>
4669
4670 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
4671 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
4672 * utils.c (do_free_section_addr_info)
4673 (make_cleanup_free_section_addr_info): Remove.
4674 * symfile.h (struct other_sections): Add constructor.
4675 (struct section_addr_info): Remove.
4676 (section_addr_info): New typedef.
4677 (struct sym_fns) <sym_offsets>: Change type of parameter.
4678 (build_section_addr_info_from_objfile)
4679 (relative_addr_info_to_section_offsets, addr_info_make_relative)
4680 (default_symfile_offsets, symbol_file_add)
4681 (symbol_file_add_from_bfd)
4682 (build_section_addr_info_from_section_table): Update.
4683 (alloc_section_addr_info, free_section_addr_info): Don't declare.
4684 * symfile.c (alloc_section_addr_info): Remove.
4685 (build_section_addr_info_from_section_table): Change return type.
4686 Update.
4687 (build_section_addr_info_from_bfd)
4688 (build_section_addr_info_from_objfile): Likewise.
4689 (free_section_addr_info): Remove.
4690 (relative_addr_info_to_section_offsets): Change type of "addrs".
4691 (addrs_section_compar): Now a std::sort comparator.
4692 (addrs_section_sort): Change return type.
4693 (addr_info_make_relative): Change type of "addrs". Update.
4694 (default_symfile_offsets, syms_from_objfile_1)
4695 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
4696 (symbol_file_add_separate): Update.
4697 (symbol_file_add): Change type of "addrs". Update.
4698 (add_symbol_file_command): Update. Remove cleanups.
4699 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
4700 cleanups.
4701 * symfile-debug.c (debug_sym_offsets): Change type of "info".
4702 * solib.c (solib_read_symbols): Update.
4703 * objfiles.c (objfile_relocate): Update. Remove cleanups.
4704 * machoread.c (macho_symfile_offsets): Update.
4705 * jit.c (jit_bfd_try_read_symtab): Update.
4706
4707 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4710 unittests/utils-selftests.c.
4711 * unittests/utils-selftests.c: New file.
4712
4713 2018-03-14 Tom Tromey <tom@tromey.com>
4714
4715 PR cli/14977:
4716 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
4717 for NULL.
4718
4719 2018-03-14 Tom Tromey <tom@tromey.com>
4720
4721 PR cli/19918:
4722 * printcmd.c (printf_pointer): Allow "-" in format.
4723
4724 2018-03-14 Tom Tromey <tom@tromey.com>
4725
4726 * printcmd.c (_initialize_printcmd): Add usage to printf.
4727
4728 2018-03-14 Yao Qi <qiyao@sourceware.org>
4729
4730 * MAINTAINERS: Update my email address.
4731
4732 2018-03-13 Tom Tromey <tom@tromey.com>
4733
4734 * machoread.c (macho_check_dsym): Change filenamep to a
4735 std::string*.
4736 (macho_symfile_read): Update.
4737 * symfile.c (load_command): Use std::string.
4738
4739 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
4740
4741 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
4742 to error message string.
4743 (riscv_register_name): Use xsnprintf instead of sprintf.
4744 (riscv_insn::fetch_instruction): Use gdb_assert instead of
4745 internal_error.
4746 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
4747 error.
4748 (riscv_push_dummy_call): Likewise.
4749
4750 2018-03-12 Tom Tromey <tom@tromey.com>
4751
4752 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
4753 Use gdb::byte_vector.
4754 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
4755
4756 2018-03-12 Yao Qi <yao.qi@linaro.org>
4757
4758 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
4759 parameter type to readable_regcache.
4760 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
4761 the declaration.
4762
4763 2018-03-11 Tom Tromey <tom@tromey.com>
4764
4765 * dwarf2read.c (struct nextfield): Add initializers.
4766 (struct nextfnfield): Remove.
4767 (struct fnfieldlist): Add initializers. Remove "length" and
4768 "head", use std::vector.
4769 (struct decl_field_list): Remove.
4770 (struct field_info): Add initializers.
4771 <fields, baseclasses>: Now std::vector.
4772 <nbaseclasses, nfnfields, typedef_field_list_count,
4773 nested_types_list_count>: Remove.
4774 (dwarf2_add_field, dwarf2_add_type_defn)
4775 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
4776 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
4777 (process_structure_scope): Update.
4778
4779 2018-03-11 Tom Tromey <tom@tromey.com>
4780
4781 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
4782 for use by std::sort.
4783 (build_type_psymtabs_1): Use std::vector.
4784
4785 2018-03-09 Eli Zaretskii <eliz@gnu.org>
4786
4787 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
4788 and LIBMPFR in the printed configuration.
4789
4790 2018-03-08 Tom Tromey <tom@tromey.com>
4791
4792 * source.c (get_filename_and_charpos): Use scoped_fd.
4793 * nto-procfs.c (procfs_open_1): Use scoped_fd.
4794 (procfs_pidlist): Likewise.
4795 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
4796 (iterate_over_mappings): Likewise.
4797
4798 2018-03-08 Tom Tromey <tom@tromey.com>
4799
4800 * infcall.c (struct call_return_meta_info)
4801 <stack_temporaries_enabled>: Remove.
4802 (get_call_return_value, call_function_by_hand_dummy): Update.
4803 * thread.c (disable_thread_stack_temporaries): Remove.
4804 (enable_thread_stack_temporaries): Remove.
4805 (thread_stack_temporaries_enabled_p): Return bool.
4806 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
4807 (get_last_thread_stack_temporary): Update.
4808 * eval.c (evaluate_subexp): Update.
4809 * gdbthread.h (class enable_thread_stack_temporaries): Now a
4810 class, not a function.
4811 (value_ptr, value_vec): Remove typedefs.
4812 (class thread_info) <stack_temporaries_enabled>: Now bool.
4813 <stack_temporaries>: Now a std::vector.
4814 (thread_stack_temporaries_enabled_p)
4815 (value_in_thread_stack_temporaries): Return bool.
4816
4817 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 * remote.c (putpkt_binary): Fix omitted bytes reporting.
4820 (getpkt_or_notif_sane_1): Likewise.
4821
4822 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4823
4824 * build-id.c (build_id_to_debug_bfd): Use std::string.
4825
4826 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4827
4828 * build-id.c (find_separate_debug_file_by_buildid): Return
4829 std::string.
4830 * build-id.h (find_separate_debug_file_by_buildid): Return
4831 std::string.
4832 * coffread.c (coff_symfile_read): Adjust to std::string.
4833 * elfread.c (elf_symfile_read): Adjust to std::string.
4834 * symfile.c (separate_debug_file_exists): Change parameter to
4835 std::string.
4836 (find_separate_debug_file): Return std::string.
4837 (find_separate_debug_file_by_debuglink): Return std::string.
4838 * symfile.h (find_separate_debug_file_by_debuglink): Return
4839 std::string.
4840
4841 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * common/xml-utils.c (xml_escape_text): Move code to...
4844 (xml_escape_text_append): ... this new function.
4845 * common/xml-utils.h (xml_escape_text_append): New declaration.
4846 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
4847 New function.
4848 (_initialize_xml_utils): register test_xml_escape_text_append as
4849 a selftest.
4850
4851 2018-03-07 Alan Hayward <alan.hayward@arm.com>
4852
4853 * defs.h: Remove MAX_REGISTER_SIZE.
4854 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
4855 asserts.
4856 * python/py-unwind.c (pyuw_sniffer): Likewise.
4857
4858 2018-03-07 Tom Tromey <tom@tromey.com>
4859
4860 * linux-tdep.c (linux_info_proc): Update.
4861 * target.h (struct target_ops) <to_fileio_readlink>: Return
4862 optional<string>.
4863 (target_fileio_readlink): Return optional<string>.
4864 * remote.c (remote_hostio_readlink): Return optional<string>.
4865 * inf-child.c (inf_child_fileio_readlink): Return
4866 optional<string>.
4867 * target.c (target_fileio_readlink): Return optional<string>.
4868
4869 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4870
4871 * regcache.c (cooked_read_test): Add riscv to the list of
4872 architectures that have a save_reggroup.
4873
4874 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4875
4876 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
4877 value is not a dynamic class object.
4878
4879 2018-03-06 Tom Tromey <tom@tromey.com>
4880
4881 * rust-exp.y: Formatting fixes.
4882
4883 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * riscv-tdep.c (riscv_register_name): Remove target description
4886 support.
4887 (riscv_gdbarch_init): Remove target description check.
4888
4889 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
4892 comment.
4893 * riscv-tdep.h: Likewise.
4894
4895 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4896
4897 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
4898 (riscv_pseudo_register_write): Delete.
4899 (riscv_gdbarch_init): Remove all use of pseudo registers.
4900
4901 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
4902
4903 * record-btrace.c (btrace_print_lines): Replace cleanup
4904 parameter with RAII equivalents.
4905 (btrace_insn_history): Replace cleanup with RAII equivalents.
4906 * ui-out.h (make_cleanup_ui_out_list_begin_end,
4907 make_cleanup_ui_out_tuple_begin_end): Remove.
4908 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
4909 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
4910 make_cleanup_ui_out_list_begin_end): Remove.
4911
4912 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
4915 parameter types to std::vector. Use bool.
4916 (record_btrace_wait): Replace VEC(tp_t) with
4917 std::vector<thread_info *>.
4918 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
4919
4920 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
4921
4922 * record-btrace.c (record_btrace_disable_callback): Remove.
4923 (struct scoped_btrace_disable): New.
4924 (record_btrace_open): Use scoped_btrace_disable.
4925
4926 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
4929 reading values from registers.
4930
4931 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4932
4933 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
4934 where appropriate.
4935
4936 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
4939 change parameter type. Use GDB's print functions, and use
4940 core_addr_to_string where appropriate.
4941 (riscv_push_dummy_call): Use core_addr_to_string where
4942 appropriate, update call to riscv_print_arg_location, and reindent
4943 a few lines.
4944 (riscv_return_value): Update call to riscv_print_arg_location.
4945
4946 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4947 Tim Newsome <tim@sifive.com>
4948 Albert Ou <a0u@eecs.berkeley.edu>
4949 Darius Rad <darius@bluespec.com>
4950
4951 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
4952 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
4953 (ALLDEPFILES): Add riscv-tdep.c
4954 * configure.tgt: Add riscv support.
4955 * riscv-tdep.c: New file.
4956 * riscv-tdep.h: New file.
4957 * NEWS: Mention new target.
4958 * MAINTAINERS: Add entry for riscv.
4959
4960 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4961
4962 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
4963 fields within aggregates.
4964
4965 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4966
4967 * record-btrace.c (btrace_print_lines): Change type of flags to
4968 gdb_disassembly_flags.
4969
4970 2018-03-04 John Baldwin <jhb@FreeBSD.org>
4971
4972 * fbsd-nat.c: Include "inf-ptrace.h".
4973 (USE_SIGTRAP_SIGINFO): Conditionally define.
4974 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
4975 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
4976 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
4977 function.
4978 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
4979 Likewise.
4980 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
4981 Likewise.
4982 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
4983 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
4984 "supports_stopped_by_hw_breakpoint" target methods.
4985
4986 2018-03-04 John Baldwin <jhb@FreeBSD.org>
4987
4988 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
4989 * fbsd-nat.c (debug_fbsd_nat): New variable.
4990 (show_fbsd_nat_debug): New function.
4991 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
4992 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
4993
4994 2018-03-04 John Baldwin <jhb@FreeBSD.org>
4995
4996 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
4997 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
4998 prototype.
4999 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
5000 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
5001 method.
5002
5003 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
5006 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
5007
5008 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5009
5010 * charset.c (struct charset_vector): New.
5011 (charsets): Change type to charset_vector.
5012 (find_charset_names): Adjust.
5013 (add_one): Adjust.
5014 (_initialize_charset): Adjust.
5015
5016 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5017
5018 * progspace.h (struct program_space) <deleted_solibs>: Change
5019 type to std::vector<std::string>.
5020 * progspace.c (clear_program_space_solib_cache): Adjust.
5021 * breakpoint.c (print_solib_event): Adjust.
5022 (check_status_catch_solib): Adjust.
5023 * solib.c (update_solib_list): Adjust.
5024 * ui-out.h (class ui_out) <field_string>: New overload.
5025 * ui-out.c (ui_out::field_string): New overload.
5026
5027 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * progspace.h (struct program_space): Add constructor and
5030 destructor, initialize fields.
5031 (add_program_space): Remove.
5032 * progspace.c (add_program_space): Rename to...
5033 (program_space::program_space): ... this.
5034 (release_program_space): Rename to...
5035 (program_space::~program_space): ... this.
5036 (delete_program_space): Use delete to delete program_space.
5037 (initialize_progspace): Use new to allocate program_space.
5038 * inferior.c (add_inferior_with_spaces): Likewise.
5039 (clone_inferior_command): Likewise.
5040 * infrun.c (follow_fork_inferior): Likewise.
5041 (handle_vfork_child_exec_or_exit): Likewise.
5042
5043 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5044
5045 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
5046 (delim_string_to_char_ptr_vec): Return std::vector of
5047 gdb::unique_xmalloc_ptr.
5048 (dirnames_to_char_ptr_vec_append): Take std::vector of
5049 gdb::unique_xmalloc_ptr.
5050 (dirnames_to_char_ptr_vec): Return std::vector of
5051 gdb::unique_xmalloc_ptr.
5052 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
5053 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
5054 (delim_string_to_char_ptr_vec): Return an std::vector of
5055 gdb::unique_xmalloc_ptr, adjust the code.
5056 (dirnames_to_char_ptr_vec_append): Take an std::vector of
5057 gdb::unique_xmalloc_ptr, adjust the code.
5058 (dirnames_to_char_ptr_vec): Return an std::vector of
5059 gdb::unique_xmalloc_ptr, adjust the code.
5060 * auto-load.c (auto_load_safe_path_vec): Change type to
5061 std::vector of gdb::unique_xmalloc_ptr.
5062 (auto_load_expand_dir_vars): Return an std::vector of
5063 gdb::unique_xmalloc_ptr, adjust the code.
5064 (auto_load_safe_path_vec_update): Adjust.
5065 (filename_is_in_auto_load_safe_path_vec): Adjust.
5066 (auto_load_objfile_script_1): Adjust.
5067 * build-id.c (build_id_to_debug_bfd): Adjust.
5068 * linux-thread-db.c (thread_db_load_search): Adjust.
5069 * source.c (add_path): Adjust.
5070 (openp): Adjust.
5071 * symfile.c (find_separate_debug_file): Adjust.
5072 * utils.c (do_free_char_ptr_vec): Remove.
5073 (make_cleanup_free_char_ptr_vec): Remove.
5074
5075 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
5076
5077 PR gdb/22907
5078 * common/pathstuff.c: Conditionally include "<windows.h>".
5079
5080 2018-03-01 Georg Sauthoff <mail@georg.so>
5081
5082 PR gdb/22888
5083 * gcore.in: Quote variables and switch interpreter to bash.
5084
5085 2018-03-01 Tom Tromey <tom@tromey.com>
5086
5087 * dwarf2read.c (alloc_discriminant_info): Fix default_index
5088 assertion. Add assertion for discriminant_index.
5089 (quirk_rust_enum): Use correct base type name in univariant case.
5090
5091 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * record.c (get_call_history_modifiers): Return a
5094 record_print_flags.
5095 (cmd_record_call_history): Adjust.
5096 * record-btrace.c (record_btrace_call_history): Adjust.
5097 (record_btrace_call_history_range): Adjust.
5098 (record_btrace_call_history_from): Adjust.
5099 * target-debug.h (target_debug_print_record_print_flags): New.
5100 * target-delegates.c: Re-generate.
5101 * target.c (target_call_history): Change flags type.
5102 (target_call_history_from): Likewise.
5103 (target_call_history_range): Likewise.
5104 * target.h (struct target_ops) <target_call_history>: Likewise.
5105 (target_call_history_from): Likewise.
5106 (target_call_history_range): Likewise.
5107
5108 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5109 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 * common/common-utils.c: Include "sys/stat.h".
5112 (is_regular_file): Move here from "source.c"; change return
5113 type to "bool".
5114 * common/common-utils.h (is_regular_file): New prototype.
5115 * common/pathstuff.c (contains_dir_separator): New function.
5116 * common/pathstuff.h (contains_dir_separator): New prototype.
5117 * source.c: Don't include "sys/stat.h".
5118 (is_regular_file): Move to "common/common-utils.c".
5119
5120 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5121
5122 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
5123 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
5124 * auto-load.c: Include "common/pathstuff.h".
5125 * common/common-def.h (current_directory): Move here.
5126 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
5127 function.
5128 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
5129 prototype.
5130 * common/pathstuff.c: New file.
5131 * common/pathstuff.h: New file.
5132 * compile/compile.c: Include "common/pathstuff.h".
5133 * defs.h (current_directory): Move to "common/common-defs.h".
5134 * dwarf2read.c: Include "common/pathstuff.h".
5135 * exec.c: Likewise.
5136 * guile/scm-safe-call.c: Likewise.
5137 * linux-thread-db.c: Likewise.
5138 * main.c: Likewise.
5139 * nto-tdep.c: Likewise.
5140 * objfiles.c: Likewise.
5141 * source.c: Likewise.
5142 * symtab.c: Likewise.
5143 * utils.c: Include "common/pathstuff.h".
5144 (gdb_realpath): Move to "common/pathstuff.c".
5145 (gdb_realpath_keepfile): Likewise.
5146 (gdb_abspath): Likewise.
5147 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
5148 (gdb_realpath_keepfile): Likewise.
5149 (gdb_abspath): Likewise.
5150
5151 2018-02-28 John Baldwin <jhb@FreeBSD.org>
5152
5153 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
5154 wildcard process pid for super_resume for kernels with a
5155 specific bug.
5156
5157 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
5158
5159 * compile/compile.c (get_args): Add additional comments
5160 explaining function.
5161
5162 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
5163 Tom Tromey <tom@tromey.com>
5164
5165 * target.h (memory_write_request_s): Remove typedef. Don't define
5166 VEC.
5167 (target_write_memory_blocks): Change argument to std::vector.
5168 (struct memory_write_request): Add constructor.
5169 * target-memory.c (compare_block_starting_address): Return bool.
5170 Change argument types.
5171 (claim_memory): Change arguments to use std::vector.
5172 (split_regular_and_flash_blocks, blocks_to_erase)
5173 (compute_garbled_blocks): Likewise.
5174 (cleanup_request_data, cleanup_write_requests_vector): Remove.
5175 (target_write_memory_blocks): Change argument to std::vector.
5176 * symfile.c (struct load_section_data): Add constructor and
5177 destructor. Use std::vector for "requests".
5178 (struct load_progress_data): Add initializers.
5179 (load_section_callback): Update. Use "new".
5180 (clear_memory_write_data): Remove.
5181 (generic_load): Update.
5182
5183 2018-02-27 Alan Hayward <alan.hayward@arm.com>
5184
5185 * arch/aarch64.h: Use common/tdesc.h.
5186
5187 2018-02-26 Maciej W. Rozycki <macro@mips.com>
5188
5189 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
5190 architecture with a 64-bit ABI.
5191
5192 2018-02-26 Maciej W. Rozycki <macro@mips.com>
5193
5194 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
5195 ahead of target description loading.
5196
5197 2018-02-26 Tom Tromey <tom@tromey.com>
5198
5199 * stack.c (backtrace_command_1): Update.
5200 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
5201 of "flags".
5202 * python/py-framefilter.c (py_print_frame)
5203 (gdbpy_apply_frame_filter): Change type of "flags".
5204 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
5205 of "flags".
5206 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
5207 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
5208 * extension.h (enum frame_filter_flag): Rename from
5209 frame_filter_flags.
5210 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
5211 (apply_ext_lang_frame_filter): Change type of "flags".
5212 * extension.c (apply_ext_lang_frame_filter): Change type of
5213 "flags".
5214 * extension-priv.h (struct extension_language_ops)
5215 <apply_frame_filter>: Change type of "flags".
5216
5217 2018-02-26 Tom Tromey <tom@tromey.com>
5218
5219 PR python/16497:
5220 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
5221 off-by-one in py_end computation.
5222 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
5223 PRINT_MORE_FRAMES.
5224 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
5225 constant.
5226
5227 2018-02-26 Tom Tromey <tom@tromey.com>
5228
5229 * dwarf2read.c (struct variant_field): New.
5230 (struct nextfield) <variant>: New field.
5231 (dwarf2_add_field): Handle DW_TAG_variant_part.
5232 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
5233 discriminated union.
5234 (read_structure_type): Handle DW_TAG_variant_part.
5235 (handle_struct_member_die): New function, extracted from
5236 process_structure_scope. Handle DW_TAG_variant.
5237 (process_structure_scope): Handle discriminated unions. Call
5238 handle_struct_member_die.
5239
5240 2018-02-26 Tom Tromey <tom@tromey.com>
5241
5242 * rust-lang.h (rust_last_path_segment): Declare.
5243 * rust-lang.c (rust_last_path_segment): Now public. Change
5244 contract.
5245 (struct disr_info): Remove.
5246 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
5247 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
5248 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
5249 (rust_enum_p, rust_enum_variant): New function.
5250 (rust_underscore_fields): Remove "offset" parameter.
5251 (rust_print_enum): New function.
5252 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
5253 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
5254 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
5255 enums.
5256 (rust_internal_print_type): New function, from rust_print_type.
5257 Remove enum code.
5258 (rust_print_type): Call rust_internal_print_type.
5259 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
5260 Update enum handling.
5261 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
5262 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
5263 (rust_union_quirks): New functions.
5264 (process_full_comp_unit, process_full_type_unit): Call
5265 rust_union_quirks.
5266 (process_structure_scope): Update rust_unions if necessary.
5267
5268 2018-02-26 Tom Tromey <tom@tromey.com>
5269
5270 * value.h (value_union_variant): Declare.
5271 * valops.c (value_union_variant): New function.
5272 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
5273 (struct discriminant_info): New.
5274 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
5275 enumerator.
5276 (struct main_type) <flag_discriminated_union>: New field.
5277
5278 2018-02-26 Tom Tromey <tom@tromey.com>
5279
5280 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5281 unittests/unpack-selftests.c.
5282 * unittests/unpack-selftests.c: New file.
5283 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
5284
5285 2018-02-26 Yao Qi <yao.qi@linaro.org>
5286
5287 * dwarf2read.c (struct partial_die_info) <read>: New method.
5288 (read_partial_die): Remove the declaration.
5289 (load_partial_dies): Update.
5290 (partial_die_info::partial_die_info):
5291 (read_partial_die): Change it to partial_die_info::read.
5292
5293 2018-02-26 Yao Qi <yao.qi@linaro.org>
5294
5295 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
5296 (fixup_partial_die): Remove declaration.
5297 (scan_partial_symbols): Update.
5298 (partial_die_parent_scope): Likewise.
5299 (partial_die_full_name): Likewise.
5300 (fixup_partial_die): Change it to partial_die_info::fixup.
5301
5302 2018-02-26 Yao Qi <yao.qi@linaro.org>
5303
5304 * dwarf2read.c (read_partial_die): Update the declaration.
5305 (load_partial_dies): Caller update.
5306 (read_partial_die): Remove one argument abbrev_len.
5307
5308 2018-02-26 Yao Qi <yao.qi@linaro.org>
5309
5310 * dwarf2read.c (struct partial_die_info): Add ctor, delete
5311 assignment operator.
5312 (load_partial_dies): Use ctor and copy ctor.
5313 (read_partial_die): Update.
5314 (dwarf2_cu::find_partial_die): Use ctor.
5315
5316 2018-02-26 Yao Qi <yao.qi@linaro.org>
5317
5318 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
5319 (find_partial_die_in_comp_unit): Change it to
5320 dwarf2_cu::find_partial_die.
5321 (find_partial_die): Update.
5322
5323 2018-02-26 Yao Qi <yao.qi@linaro.org>
5324
5325 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
5326 is NULL.
5327
5328 2018-02-26 Yao Qi <yao.qi@linaro.org>
5329
5330 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
5331
5332 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5333
5334 * arch/amd64.h: Use common/tdesc.h.
5335 * arch/i386.c: Likewise.
5336 * arch/i386.h: Likewise.
5337 * arch/tic6x.c: Likewise.
5338 * arch/tdesc.h: Move file from here...
5339 * common/tdesc.h: ...to here.
5340 * features/aarch64-core.c: Regenerate.
5341 * features/aarch64-fpu.c: Regenerate.
5342 * features/i386/32bit-avx.c: Regenerate.
5343 * features/i386/32bit-avx512.c: Regenerate.
5344 * features/i386/32bit-core.c: Regenerate.
5345 * features/i386/32bit-linux.c: Regenerate.
5346 * features/i386/32bit-mpx.c: Regenerate.
5347 * features/i386/32bit-pkeys.c: Regenerate.
5348 * features/i386/32bit-sse.c: Regenerate.
5349 * features/i386/64bit-avx.c: Regenerate.
5350 * features/i386/64bit-avx512.c: Regenerate.
5351 * features/i386/64bit-core.c: Regenerate.
5352 * features/i386/64bit-linux.c: Regenerate.
5353 * features/i386/64bit-mpx.c: Regenerate.
5354 * features/i386/64bit-pkeys.c: Regenerate.
5355 * features/i386/64bit-segments.c: Regenerate.
5356 * features/i386/64bit-sse.c: Regenerate.
5357 * features/i386/x32-core.c: Regenerate.
5358 * features/tic6x-c6xp.c: Regenerate.
5359 * features/tic6x-core.c: Regenerate.
5360 * features/tic6x-gp.c: Regenerate.
5361 * target-descriptions.c: Use common/tdesc.h.
5362 * target-descriptions.h: Likewise.
5363
5364 2018-02-24 Tom Tromey <tom@tromey.com>
5365
5366 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5367 (try_thread_db_load_from_dir, thread_db_load_search): Use
5368 std::string.
5369 (info_auto_load_libthread_db_compare): Return bool. Change
5370 argument types.
5371 (info_auto_load_libthread_db): Use std::vector, std::string.
5372 Remove cleanups.
5373
5374 2018-02-24 Tom Tromey <tom@tromey.com>
5375
5376 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
5377 std::string.
5378 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
5379 std::string*.
5380 * gdbarch.c: Rebuild.
5381 * gdbarch.h: Rebuild.
5382 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
5383 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
5384 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
5385 std::string*.
5386
5387 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 * gdbtypes.h (sect_offset): Change type to uint64_t.
5390 (sect_offset_str): New function.
5391 * dwarf2read.c (create_addrmap_from_aranges): Use
5392 sect_offset_str.
5393 (error_check_comp_unit_head): Likewise.
5394 (create_debug_type_hash_table): Likewise.
5395 (read_cutu_die_from_dwo): Likewise.
5396 (init_cutu_and_read_dies): Likewise.
5397 (init_cutu_and_read_dies_no_follow): Likewise.
5398 (process_psymtab_comp_unit_reader): Likewise.
5399 (partial_die_parent_scope): Likewise.
5400 (peek_die_abbrev): Likewise.
5401 (process_queue): Likewise.
5402 (dwarf2_physname): Likewise.
5403 (read_namespace_alias): Likewise.
5404 (read_import_statement): Likewise.
5405 (create_dwo_cu_reader): Likewise.
5406 (create_cus_hash_table): Likewise.
5407 (lookup_dwo_cutu): Likewise.
5408 (inherit_abstract_dies): Likewise.
5409 (read_func_scope): Likewise.
5410 (read_call_site_scope): Likewise.
5411 (dwarf2_add_member_fn): Likewise.
5412 (read_common_block): Likewise.
5413 (read_module_type): Likewise.
5414 (read_typedef): Likewise.
5415 (read_subrange_type): Likewise.
5416 (load_partial_dies): Likewise.
5417 (read_partial_die): Likewise.
5418 (find_partial_die): Likewise.
5419 (read_str_index): Likewise.
5420 (dwarf2_string_attr): Likewise.
5421 (build_error_marker_type): Likewise.
5422 (lookup_die_type): Likewise.
5423 (dump_die_shallow): Likewise.
5424 (follow_die_ref): Likewise.
5425 (dwarf2_fetch_die_loc_sect_off): Likewise.
5426 (dwarf2_fetch_constant_bytes): Likewise.
5427 (follow_die_sig): Likewise.
5428 (get_signatured_type): Likewise.
5429 (get_DW_AT_signature_type): Likewise.
5430 (dwarf2_find_containing_comp_unit): Likewise.
5431 (set_die_type): Likewise.
5432
5433 2018-02-21 John Baldwin <jhb@FreeBSD.org>
5434
5435 * arch/aarch64.c: Include "common-defs.h".
5436 * arch/amd64.c: Likewise.
5437 * arch/i386.c: Likewise.
5438
5439 2018-02-21 Tom Tromey <tom@tromey.com>
5440
5441 * value.h: (extract_field_op): Update.
5442 * eval.c (extract_field_op): Return a const char *.
5443 * expression.h (parse_expression_for_completion): Update.
5444 * completer.c (complete_expression): Update.
5445 (add_struct_fields): Make fieldname const.
5446 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
5447 (mark_completion_tag, parse_exp_in_context_1): Update.
5448 (parse_expression_for_completion): Change "name" to
5449 unique_xmalloc_ptr*.
5450
5451 2018-02-21 Tom Tromey <tom@tromey.com>
5452
5453 * infcall.c (call_function_by_hand_dummy): Use std::vector.
5454
5455 2018-02-21 Yao Qi <yao.qi@linaro.org>
5456
5457 * avr-tdep.c (avr_read_pc): Change parameter type to
5458 readable_regcache.
5459 * gdbarch.sh (read_pc): Likewise.
5460 * gdbarch.c: Re-generated.
5461 * gdbarch.h: Re-generated.
5462 * hppa-tdep.c (hppa_read_pc): Change parameter type to
5463 readable_regcache.
5464 * ia64-tdep.c (ia64_read_pc): Likewise.
5465 * mips-tdep.c (mips_read_pc): Likewise.
5466 * spu-tdep.c (spu_read_pc): Likewise.
5467
5468 2018-02-21 Yao Qi <yao.qi@linaro.org>
5469
5470 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
5471 * regcache-dump.c: New file.
5472 * regcache.c: Move register_dump to regcache-dump.c.
5473 (maintenance_print_registers): Likewise.
5474 (maintenance_print_raw_registers): Likewise.
5475 (maintenance_print_cooked_registers): Likewise.
5476 (maintenance_print_register_groups): Likewise.
5477 (maintenance_print_remote_registers): Likewise.
5478 (_initialize_regcache): Likewise.
5479 * regcache.h (register_dump): Moved from regcache.c.
5480
5481 2018-02-21 Yao Qi <yao.qi@linaro.org>
5482
5483 * regcache.c (regcache::regcache): Update.
5484 (regcache::invalidate): Move it to detached_regcache::invalidate.
5485 (get_thread_arch_aspace_regcache): Update.
5486 (regcache::raw_update): Update.
5487 (regcache::cooked_read): Remove some code.
5488 (regcache::cooked_read_value): Likewise.
5489 (regcache::raw_write): Remove assert on m_readonly_p.
5490 (regcache::raw_supply_integer): Move it to
5491 detached_regcache::raw_supply_integer.
5492 (regcache::raw_supply_zeroed): Likewise.
5493 * regcache.h (detached_regcache) <raw_supply_integer>: New
5494 declaration.
5495 <raw_supply_zeroed, invalidate>: Likewise.
5496 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
5497 <invalidate>: Likewise.
5498 <m_readonly_p>: Removed.
5499
5500 2018-02-21 Yao Qi <yao.qi@linaro.org>
5501
5502 * infcmd.c (get_return_value): Let stop_regs point to
5503 get_current_regcache.
5504 * regcache.c (regcache::regcache): Remove.
5505 (register_dump_reg_buffer): New class.
5506 (regcache_print): Adjust.
5507 * regcache.h (regcache): Remove constructors.
5508
5509 2018-02-21 Yao Qi <yao.qi@linaro.org>
5510
5511 * regcache.c (class register_dump): New class.
5512 (register_dump_regcache, register_dump_none): New class.
5513 (register_dump_remote, register_dump_groups): New class.
5514 (regcache_print): Update.
5515 * regcache.h (regcache_dump_what): Move it to regcache.c.
5516 (regcache) <dump>: Remove.
5517
5518 2018-02-21 Yao Qi <yao.qi@linaro.org>
5519
5520 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
5521 reg_buffer_rw *.
5522 (jit_unwind_reg_set_impl): Call raw_supply.
5523 (jit_frame_sniffer): Use reg_buffer_rw.
5524 * record-full.c (record_full_core_regbuf): Change its type.
5525 (record_full_core_open_1): Use reg_buffer_rw.
5526 (record_full_close): Likewise.
5527 (record_full_core_fetch_registers): Use regcache->raw_supply.
5528 (record_full_core_store_registers): Likewise.
5529 * regcache.c (regcache::get_register_status): Move it to
5530 reg_buffer.
5531 (regcache_raw_set_cached_value): Remove.
5532 (regcache::raw_set_cached_value): Remove.
5533 (regcache::raw_write): Call raw_supply.
5534 (regcache::raw_supply): Move it to reg_buffer_rw.
5535 * regcache.h (regcache_raw_set_cached_value): Remove.
5536 (reg_buffer_rw): New class.
5537
5538 2018-02-21 Yao Qi <yao.qi@linaro.org>
5539
5540 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
5541 readonly_detached_regcache.
5542 (dummy_frame_prev_register): Use regcache->cooked_read.
5543 * frame.c (frame_save_as_regcache): Change return type.
5544 (frame_pop): Update.
5545 * frame.h (frame_save_as_regcache): Update declaration.
5546 * inferior.h (get_infcall_suspend_state_regcache): Update
5547 declaration.
5548 * infrun.c (infcall_suspend_state) <registers>: use
5549 readonly_detached_regcache.
5550 (save_infcall_suspend_state): Don't use regcache_dup.
5551 (get_infcall_suspend_state_regcache): Change return type.
5552 * linux-fork.c (struct fork_info) <savedregs>: Change to
5553 readonly_detached_regcache.
5554 <pc>: New field.
5555 (fork_save_infrun_state): Don't use regcache_dup.
5556 (info_checkpoints_command): Adjust.
5557 * mi/mi-main.c (register_changed_p): Update declaration.
5558 (mi_cmd_data_list_changed_registers): Use
5559 readonly_detached_regcache.
5560 (register_changed_p): Change parameter type to
5561 readonly_detached_regcache.
5562 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
5563 readonly_detached_regcache.
5564 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
5565 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
5566 New.
5567 (regcache::save): Move it to reg_buffer.
5568 (regcache::restore): Change parameter type.
5569 (regcache_dup): Remove.
5570 * regcache.h (reg_buffer) <save>: New method.
5571 (readonly_detached_regcache): New class.
5572 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
5573 readonly_detached_regcache.
5574 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
5575
5576 2018-02-21 Yao Qi <yao.qi@linaro.org>
5577
5578 * frame.c (frame_save_as_regcache): Use regcache method save.
5579 (frame_pop): Use regcache method restore.
5580 * infrun.c (restore_infcall_suspend_state): Likewise.
5581 * linux-fork.c (fork_load_infrun_state): Likewise.
5582 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
5583 save.
5584 * regcache.c (regcache_save): Remove.
5585 (regcache::restore): More asserts.
5586 (regcache_cpy): Remove.
5587 * regcache.h (regcache_save): Remove the declaration.
5588 (regcache::restore): Move from private to public.
5589 Remove the friend declaration of regcache_cpy.
5590 (regcache_cpy): Remove declaration.
5591
5592 2018-02-21 Yao Qi <yao.qi@linaro.org>
5593
5594 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
5595 parameter type to 'readable_regcache *'.
5596 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
5597 * arm-tdep.c (arm_neon_quad_read): Likewise.
5598 (arm_pseudo_read): Likewise.
5599 * avr-tdep.c (avr_pseudo_register_read): Likewise.
5600 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
5601 * frv-tdep.c (frv_pseudo_register_read): Likewise.
5602 * gdbarch.c: Re-generated.
5603 * gdbarch.h: Re-generated.
5604 * gdbarch.sh (pseudo_register_read): Change parameter type to
5605 'readable_regcache *'.
5606 (pseudo_register_read_value): Likewise.
5607 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
5608 (h8300_pseudo_register_read): Likewise.
5609 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
5610 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
5611 (i386_pseudo_register_read_into_value): Likewise.
5612 (i386_pseudo_register_read_value): Likewise.
5613 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
5614 declaration.
5615 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
5616 * m32c-tdep.c (m32c_raw_read): Likewise.
5617 (m32c_read_flg): Likewise.
5618 (m32c_banked_register): Likewise.
5619 (m32c_banked_read): Likewise.
5620 (m32c_sb_read): Likewise.
5621 (m32c_part_read): Likewise.
5622 (m32c_cat_read): Likewise.
5623 (m32c_r3r2r1r0_read): Likewise.
5624 (m32c_pseudo_register_read): Likewise.
5625 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
5626 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
5627 (mep_pseudo_cr64_read): Likewise.
5628 (mep_pseudo_register_read): Likewise.
5629 * mips-tdep.c (mips_pseudo_register_read): Likewise.
5630 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
5631 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
5632 * regcache.c (regcache::raw_read): Move it to readable_regcache.
5633 (regcache::cooked_read): Likewise.
5634 (regcache::cooked_read_value): Likewise.
5635 (regcache_cooked_read_signed):
5636 (regcache::cooked_read): Likewise.
5637 * regcache.h (readable_regcache): New class.
5638 (regcache): Inherit readable_regcache. Move some methods to
5639 readable_regcache.
5640 * rl78-tdep.c (rl78_pseudo_register_read): Change
5641 parameter type to 'readable_regcache *'.
5642 * rs6000-tdep.c (do_regcache_raw_read): Remove.
5643 (e500_pseudo_register_read): Change parameter type to
5644 'readable_regcache *'.
5645 (dfp_pseudo_register_read): Likewise.
5646 (vsx_pseudo_register_read): Likewise.
5647 (efpr_pseudo_register_read): Likewise.
5648 * s390-tdep.c (s390_pseudo_register_read): Likewise.
5649 * sh-tdep.c (sh_pseudo_register_read): Likewise.
5650 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
5651 (sh64_pseudo_register_read): Likewise.
5652 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
5653 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
5654 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
5655 (spu_pseudo_register_read): Likewise.
5656 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
5657 (xtensa_pseudo_register_read): Likewise.
5658
5659 2018-02-21 Yao Qi <yao.qi@linaro.org>
5660
5661 * regcache.c (regcache::regcache): Call reg_buffer ctor.
5662 (regcache::arch): Move it to reg_buffer::arch.
5663 (regcache::register_buffer): Likewise.
5664 (regcache::assert_regnum): Likewise.
5665 (regcache::num_raw_registers): Likewise.
5666 * regcache.h (reg_buffer): New class.
5667 (regcache): Inherit reg_buffer.
5668
5669 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
5670
5671 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
5672 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
5673
5674 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
5675
5676 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
5677
5678 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5679
5680 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
5681 (SFILES): Remove common/*.c files.
5682 (COMMON_OBS): Remove some *.o files built from common/*.c files.
5683 * common/common.host: Add common reference.
5684 * configure.ac: Likewise.
5685 * configure: Regenerate.
5686
5687 2018-02-16 Yao Qi <yao.qi@linaro.org>
5688
5689 * block.c (block_namespace_info): Inherit allocate_on_obstack.
5690 (block_initialize_namespace): Use new.
5691 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
5692 (dwarf2_free_objfile): Use delete.
5693 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
5694 (copy_type_recursive): Use new.
5695 * gdb_obstack.h (allocate_on_obstack): New.
5696
5697 2018-02-15 Yao Qi <yao.qi@linaro.org>
5698
5699 PR gdb/22849
5700 * inferior.c (exit_inferior_1): Reset inf->control.
5701
5702 2018-02-15 Joel Brobecker <brobecker@adacore.com>
5703
5704 * ada-lang.c (ada_to_fixed_value_create): Delete advance
5705 declaration.
5706
5707 2018-02-14 Pedro Alves <palves@redhat.com>
5708
5709 * frame-unwind.c (frame_unwind_try_unwinder): Always call
5710 frame_cleanup_after_sniffer on exception.
5711
5712 2018-02-14 Tom Tromey <tom@tromey.com>
5713
5714 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
5715 const.
5716 (solib_bfd_open): Make pathname const.
5717 * solib.c (solib_bfd_open): Make pathname const.
5718 * solib-spu.c (spu_bfd_fopen): Make name const.
5719 (spu_bfd_open): Make pathname const.
5720 * solib-darwin.c (darwin_bfd_open): Make pathname const.
5721 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
5722
5723 2018-02-14 Tom Tromey <tom@tromey.com>
5724
5725 * symfile.c (symfile_bfd_open): Update.
5726 * source.h (openp, source_full_path_of, find_and_open_source):
5727 Change argument type to unique_xmalloc_ptr.
5728 * source.c (openp): Take a unique_xmalloc_ptr.
5729 (source_full_path_of, find_and_open_source): Likewise.
5730 (open_source_file, symtab_to_fullname): Update.
5731 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
5732 unique_xmalloc_ptr.
5733 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
5734 (exec_file_find): Update.
5735 * psymtab.c (psymtab_to_fullname): Update.
5736 * nto-tdep.h (nto_find_and_open_solib): Update.
5737 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
5738 unique_xmalloc_ptr.
5739 * exec.c (exec_file_attach): Update.
5740 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
5741 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
5742
5743 2018-02-14 Tom Tromey <tom@tromey.com>
5744
5745 * solib.c: Include source.h.
5746 * nto-tdep.c: Include source.h.
5747 * mi/mi-cmd-env.c: Include source.h.
5748 * infcmd.c: Include source.h.
5749 * exec.c: Include source.h.
5750 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
5751 (add_path, directory_switch, source_path, init_source_path): Move
5752 declarations...
5753 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
5754 (add_path, directory_switch, source_path, init_source_path):
5755 ...here.
5756
5757 2018-02-14 Tom Tromey <tom@tromey.com>
5758
5759 * solist.h (exec_file_find, solib_find): Return
5760 unique_xmalloc_ptr.
5761 (solib_bfd_fopen): Take a const char *.
5762 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
5763 (exec_file_find, solib_find): Likewise.
5764 (solib_bfd_fopen): Do not take ownership of "pathname".
5765 (solib_bfd_open): Use unique_xmalloc_ptr.
5766 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
5767 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
5768 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
5769 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
5770
5771 2018-02-14 Joel Brobecker <brobecker@adacore.com>
5772
5773 * ada-lang.c (name_match_type_from_name): Remove reference to
5774 ada_name_for_lookup in function's documentation.
5775 * ada-lang.h (ada_name_for_lookup): Delete declaration.
5776
5777 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
5778
5779 * defs.h (enum openp_flags): New enum.
5780 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
5781 Move to enum openp_flags.
5782 (openp_flags): New enum flags.
5783 (openp): Change parameter type to openp_flags.
5784 * source.c (openp): Change parameter type to openp_flags.
5785 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
5786 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
5787
5788 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
5791 per-command.
5792
5793 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
5796 into...
5797 (class dwarf2_queue_guard): ...the destructor of this new class.
5798 (dw2_do_instantiate_symtab): Create instance of the new class
5799 dwarf2_queue_guard, remove cleanup.
5800
5801 2018-02-09 Tom Tromey <tom@tromey.com>
5802
5803 * source.c (find_source_lines): Don't reference past the end of
5804 the vector.
5805
5806 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5807
5808 * remote.c (remote_btrace_maybe_reopen): Change error message.
5809 * btrace.c (btrace_enable): Likewise.
5810 (parse_xml_btrace): Likewise.
5811 (parse_xml_btrace_conf): Likewise.
5812
5813 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5814
5815 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
5816 (linux_enable_pt, linux_enable_bts): Call
5817 diagnose_perf_event_open_fail.
5818
5819 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5820
5821 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
5822 Remove parameter and change return type. Update callers. Move it.
5823 (linux_enable_bts, linux_enable_pt): Improve error message.
5824 (linux_enable_pt): Remove zero buffer size check.
5825 (linux_enable_btrace): Improve error messages. Remove NULL return
5826 check.
5827
5828 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5829
5830 * btrace.c (btrace_enable): Remove target_supports_btrace call.
5831 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
5832 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
5833 (linux_supports_pt, linux_supports_btrace): Remove.
5834 (linux_enable_bts): Call cpu_supports_bts.
5835 * nat/linux-btrace.h (linux_supports_btrace): Remove.
5836 * remote.c (remote_supports_btrace): Remove.
5837 (init_remote_ops): Remove remote_supports_btrace.
5838 * target-delegates.c: Regenerated.
5839 * target.c (target_supports_btrace): Remove.
5840 * target.h (target_ops) <to_supports_btrace>: Remove
5841 (target_supports_btrace): Remove.
5842 * x86-linux-nat.c (x86_linux_create_target): Remove
5843 linux_supports_btrace.
5844
5845 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5846
5847 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
5848 btrace failed.
5849 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
5850 exception and use message in own exception.
5851
5852 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5853
5854 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
5855 (perf_event_pt_event_type): Use gdb_file_up.
5856 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
5857 scoped_fd, and scoped_mmap.
5858
5859 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5860
5861 * common/scoped_mmap.h: New.
5862 * unittests/scoped_mmap-selftest.c: New.
5863 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5864 unittests/scoped_mmap-selftest.c.
5865
5866 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5867
5868 * common/scoped_fd.h: New.
5869 * unittests/scoped_fd-selftest.c: New.
5870 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5871 unittests/scoped_fd-selftest.c.
5872
5873 2018-02-09 Tom Tromey <tom@tromey.com>
5874
5875 * auto-load.c (auto_load_section_scripts): Use
5876 gdb::unique_xmalloc_ptr.
5877
5878 2018-02-09 Tom Tromey <tom@tromey.com>
5879
5880 * auto-load.c (execute_script_contents): Use std::string.
5881
5882 2018-02-09 Joel Brobecker <brobecker@adacore.com>
5883
5884 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
5885 Python function, rather than a new command.
5886
5887 2018-02-08 Tom Tromey <tom@tromey.com>
5888
5889 * solib.c (solib_find_1): Use std::string.
5890 (solib_bfd_fopen): Use unique_xmalloc_ptr.
5891
5892 2018-02-08 Tom Tromey <tom@tromey.com>
5893
5894 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
5895
5896 2018-02-08 Tom Tromey <tom@tromey.com>
5897
5898 * source.c (find_source_lines): Use gdb::def_vector.
5899
5900 2018-02-08 Tom Tromey <tom@tromey.com>
5901
5902 * macrocmd.c (struct temporary_macro_definition): New.
5903 (macro_define_command): Use temporary_macro_definition. Remove
5904 cleanups.
5905 (free_macro_definition_ptr): Remove.
5906
5907 2018-02-08 Tom Tromey <tom@tromey.com>
5908
5909 * macroexp.c (maybe_expand): Use std::string.
5910
5911 2018-02-08 Tom Tromey <tom@tromey.com>
5912
5913 * macroexp.c (struct macro_buffer): Add initializers for some
5914 members.
5915 (init_buffer, init_shared_buffer, free_buffer)
5916 (free_buffer_return_text): Remove.
5917 (macro_buffer): New constructors.
5918 (~macro_buffer): New destructor.
5919 (macro_buffer::set_shared): New method.
5920 (macro_buffer::resize_buffer, macro_buffer::appendc)
5921 (macro_buffer::appendmem): Now methods, not free functions.
5922 (set_token, append_tokens_without_splicing, stringify)
5923 (macro_stringify): Update.
5924 (gather_arguments): Change return type. Remove argc_p argument,
5925 add args_ptr argument. Use std::vector.
5926 (substitute_args): Remove argc argument. Accept std::vector.
5927 (expand): Update. Use std::vector.
5928 (scan, macro_expand, macro_expand_next): Update.
5929
5930 2018-02-08 Tom Tromey <tom@tromey.com>
5931
5932 * symtab.c (default_collect_symbol_completion_matches_break_on):
5933 Use unique_xmalloc_ptr.
5934 * macroscope.h: (sal_macro_scope, user_macro_scope)
5935 (default_macro_scope): Return unique_xmalloc_ptr.
5936 * macroscope.c (sal_macro_scope, user_macro_scope)
5937 (default_macro_scope): Return unique_xmalloc_ptr.
5938 * macroexp.h (macro_expand, macro_expand_once): Return
5939 unique_xmalloc_ptr.
5940 * macroexp.c (macro_expand, macro_expand_once): Return
5941 unique_xmalloc_ptr.
5942 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5943 (info_macro_command, info_macros_command): Use
5944 unique_xmalloc_ptr.
5945 * compile/compile-c-support.c (write_macro_definitions): Use
5946 unique_xmalloc_ptr.
5947 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
5948
5949 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
5950
5951 * value.c (value_static_field): Assign field type instead of
5952 containing type when returning an optimized out value.
5953
5954 2018-02-06 Yao Qi <yao.qi@linaro.org>
5955
5956 * ft32-tdep.c (ft32_read_pc): Remove.
5957 (ft32_write_pc): Remove.
5958 (ft32_gdbarch_init): Update.
5959 * m32r-tdep.c (m32r_read_pc): Remove.
5960 (m32r_gdbarch_init): Update.
5961 * mep-tdep.c (mep_read_pc): Remove.
5962 (mep_gdbarch_init): Update.
5963 * microblaze-tdep.c (microblaze_write_pc): Remove.
5964 (microblaze_gdbarch_init): Update.
5965 * mn10300-tdep.c (mn10300_read_pc): Remove.
5966 (mn10300_write_pc): Remove.
5967 (mn10300_gdbarch_init): Update.
5968 * moxie-tdep.c (moxie_read_pc): Remove.
5969 (moxie_write_pc): Remove.
5970 (moxie_gdbarch_init): Update.
5971
5972 2018-02-06 Yao Qi <yao.qi@linaro.org>
5973
5974 * expprint.c (print_subexp_standard): Handle
5975 OP_F77_UNDETERMINED_ARGLIST.
5976 (dump_subexp_body_standard): Likewise.
5977
5978 2018-02-05 Alan Hayward <alan.hayward@arm.com>
5979
5980 * target-descriptions.c (tdesc_element_visitor) Add empty
5981 implementations.
5982 (tdesc_type): Move make_gdb_type from here.
5983 (tdesc_type_builtin): Likewise.
5984 (tdesc_type_vector): Likewise.
5985 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
5986 (make_gdb_type_struct): Move from tdesc_type_with_fields.
5987 (make_gdb_type_union): Likewise.
5988 (make_gdb_type_flags): Likewise.
5989 (make_gdb_type_enum): Likewise.
5990 (make_gdb_type): New function.
5991 (tdesc_register_type): Use static make_gdb_type.
5992
5993 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
5994
5995 * infcmd.c (default_print_one_register_info): Align natural-format
5996 column values consistently one under another.
5997 (pad_to_column): New function.
5998
5999 2018-02-05 Joel Brobecker <brobecker@adacore.com>
6000
6001 * dwarf2read.c (dwarf2_physname): Move commment.
6002
6003 2018-02-01 Leszek Swirski <leszeks@google.com>
6004
6005 * varobj.c (varobj_formatted_print_options): Allow recursive
6006 pretty printing if pretty printing is enabled.
6007
6008 2018-02-01 Leszek Swirski <leszeks@google.com>
6009
6010 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
6011 names after a structop as a filename.
6012
6013 2018-02-01 Yao Qi <yao.qi@linaro.org>
6014
6015 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
6016 (arm_record_coproc_data_proc): Likewise.
6017
6018 2018-02-01 Yao Qi <yao.qi@linaro.org>
6019
6020 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
6021
6022 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
6023
6024 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
6025 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
6026
6027 2018-01-31 Pedro Alves <palves@redhat.com>
6028
6029 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
6030 * inflow.c (child_terminal_save_inferior): Wrap reference to
6031 tcgetpgrp in HAVE_TERMIOS_H.
6032 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
6033 _WIN32.
6034 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
6035 always iterate over all inferiors.
6036 (gdbsim_cntrl_c): Adjust.
6037 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
6038
6039 2018-01-31 Joel Brobecker <brobecker@adacore.com>
6040
6041 * gdbtypes.c (lookup_array_range_type): Make sure the array's
6042 index type is objfile-owned if the element type is as well.
6043
6044 2018-01-31 Joel Brobecker <brobecker@adacore.com>
6045
6046 GDB 8.1 released.
6047
6048 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
6049
6050 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
6051 "features/s390x-linux64.c".
6052 (_initialize_s390_linux_tdep): Remove initialization of tdescs
6053 s390_linux32 and s390x_linux64.
6054 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
6055 default tdesc.
6056 * s390-tdep.c: Include "features/s390-linux32.c" and
6057 "features/s390x-linux64.c".
6058 (s390_tdesc_valid): Add check for tdesc_has_registers.
6059 (s390_gdbarch_init): Make sure there is always a valid tdesc.
6060 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
6061 tdesc_s390x_linux64.
6062 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
6063 tdesc_s390x_linux64 to...
6064 * s390-tdep.h: ...here.
6065
6066 2018-01-30 Pedro Alves <palves@redhat.com>
6067
6068 PR gdb/13211
6069 * config.in, configure: Regenerate.
6070 * configure.ac: Check for getpgid.
6071 * go32-nat.c (go32_pass_ctrlc): New.
6072 (go32_target): Install it.
6073 * inf-child.c (inf_child_target): Install
6074 child_terminal_save_inferior, child_pass_ctrlc and
6075 child_interrupt.
6076 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
6077 (inf_ptrace_target): No longer install it.
6078 * infcmd.c (interrupt_target_1): Adjust.
6079 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
6080 (child_interrupt): Declare.
6081 (inferior::terminal_state): New.
6082 * inflow.c (struct terminal_info): Update comments.
6083 (inferior_process_group): Delete.
6084 (terminal_is_ours): Delete.
6085 (gdb_tty_state): New.
6086 (child_terminal_init): Adjust.
6087 (is_gdb_terminal, sharing_input_terminal_1)
6088 (sharing_input_terminal): New functions.
6089 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
6090 Set the process's actual process group in the foreground if
6091 possible. Handle is_ours_for_output/is_ours distinction. Don't
6092 mark terminal as the inferior's if not sharing GDB's terminal.
6093 Don't check attach_flag.
6094 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
6095 pass down a target_terminal_state.
6096 (child_terminal_save_inferior): New, factored out from ...
6097 (child_terminal_ours_1): ... this. Handle
6098 target_terminal_state::is_ours_for_output.
6099 (child_interrupt, child_pass_ctrlc): New.
6100 (inflow_inferior_exit): Clear the inferior's terminal_state.
6101 (copy_terminal_info): Copy the inferior's terminal state.
6102 (_initialize_inflow): Remove reference to terminal_is_ours.
6103 * inflow.h (inferior_process_group): Delete.
6104 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
6105 * procfs.c (procfs_target): Don't install procfs_interrupt.
6106 (procfs_interrupt): Delete.
6107 * remote.c (remote_serial_quit_handler): Adjust.
6108 (remote_interrupt): Remove ptid parameter. Adjust.
6109 * target-delegates.c: Regenerate.
6110 * target.c: Include "terminal.h".
6111 (target_terminal::terminal_state): Rename to ...
6112 (target_terminal::m_terminal_state): ... this.
6113 (target_terminal::init): Adjust.
6114 (target_terminal::inferior): Adjust to per-inferior
6115 terminal_state.
6116 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
6117 (target_terminal::ours, target_terminal::ours_for_output): Use
6118 target_terminal_is_ours_kind.
6119 (target_interrupt): Remove ptid parameter. Adjust.
6120 (default_target_pass_ctrlc): Adjust.
6121 * target.h (target_ops::to_terminal_save_inferior): New field.
6122 (target_ops::to_interrupt): Remove ptid_t parameter.
6123 (target_interrupt): Remove ptid_t parameter. Update comment.
6124 (target_pass_ctrlc): Update comment.
6125 * target/target.h (target_terminal_state): New scoped enum,
6126 factored out of ...
6127 (target_terminal::terminal_state): ... here.
6128 (target_terminal::inferior): Update comments.
6129 (target_terminal::restore_inferior): New.
6130 (target_terminal::is_inferior, target_terminal::is_ours)
6131 (target_terminal::is_ours_for_output): Adjust.
6132 (target_terminal::scoped_restore_terminal_state): Adjust to
6133 rename, and call restore_inferior() instead of inferior().
6134 (target_terminal::scoped_restore_terminal_state::m_state): Change
6135 type.
6136 (target_terminal::terminal_state): Rename to ...
6137 (target_terminal::m_terminal_state): ... this and change type.
6138
6139 2018-01-30 Pedro Alves <palves@redhat.com>
6140
6141 * linux-nat.c (wait_for_signal): New function.
6142 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
6143 directly.
6144 (async_terminal_is_ours)
6145 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
6146 (linux_nat_add_target): Don't override
6147 to_terminal_inferior/to_terminal_ours.
6148
6149 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
6150
6151 * remote.c (remote_follow_fork): Don't call "detach_inferior".
6152
6153 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
6154
6155 * dwarf2read.c (free_dwo_files): Add forward-declaration.
6156 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
6157 dwarf2_per_objfile_free here.
6158 (dwarf2_per_objfile_free): Remove.
6159 (_initialize_dwarf2_read): Don't register
6160 dwarf2_per_objfile_free as a registry cleanup.
6161
6162 2018-01-27 Eli Zaretskii <eliz@gnu.org>
6163
6164 Avoid compilation errors in MinGW native builds
6165
6166 The error is triggered by including python-internal.h, and the
6167 error message is:
6168
6169 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
6170 from build-gnulib/import/math.h:27,
6171 from d:/usr/Python26/include/pyport.h:235,
6172 from d:/usr/Python26/include/Python.h:58,
6173 from python/python-internal.h:94,
6174 from python/py-arch.c:24:
6175 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
6176 using ::hypot;
6177 ^~~~~
6178
6179 This happens because Python headers define 'hypot' to expand t
6180 '_hypot' in the Windows builds.
6181 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
6182 'hypoth'. This avoids a compilation error.
6183
6184 2018-01-26 Alan Hayward <alan.hayward@arm.com>
6185
6186 * MAINTAINERS (Write After Approval): Fix ordering.
6187
6188 2018-01-26 Alan Hayward <alan.hayward@arm.com>
6189
6190 * MAINTAINERS (Write After Approval): Add Alan Hayward.
6191
6192 2018-01-26 Alan Modra <amodra@gmail.com>
6193
6194 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
6195 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
6196 Remove nop. Make const. Comment.
6197 (powerpc32_plt_stub_so_2): New.
6198 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
6199 Correct count. Update uses.
6200 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
6201 Move common code reading PLT entry word. Correct
6202 powerpc32_plt_stub PLT address calculation.
6203 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
6204 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
6205 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
6206 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
6207 (ppc64_standard_linkage8): Likewise.
6208 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
6209 Correct insns description.
6210 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6211
6212 2018-01-24 Pedro Alves <palves@redhat.com>
6213
6214 GCC PR libstdc++/83906
6215 * gdbtypes.c (operator==(const dynamic_prop &,
6216 const dynamic_prop &)): New.
6217 (operator==(const range_bounds &, const range_bounds &)): New.
6218 (check_types_equal): Use them instead of memcmp.
6219 * gdbtypes.h (operator==(const dynamic_prop &,
6220 const dynamic_prop &)): Declare.
6221 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
6222 (operator==(const range_bounds &, const range_bounds &)): Declare.
6223 (operator!=(const range_bounds &, const range_bounds &)): Declare.
6224
6225 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6226
6227 * s390-linux-tdep.c (s390_record_address_mask)
6228 (s390_record_calc_disp_common, s390_record_calc_disp)
6229 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
6230 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
6231 (s390_process_record): Move to s390-tdep.c.
6232 (s390_linux_init_abi_any): Adjust.
6233 * s390-tdep.c (s390_record_address_mask)
6234 (s390_record_calc_disp_common, s390_record_calc_disp)
6235 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
6236 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
6237 (s390_process_record): Moved from s390-linux-tdep.c
6238 (s390_gdbarch_init): Adjust.
6239
6240 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6241
6242 * s390-linux-nat.c (s390-tdep.h): New include.
6243 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
6244 (HFILES_NO_SRCDIR): Add s390-tdep.h.
6245 (ALLDEPFILES): Add s390-tdep.c.
6246 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
6247 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
6248 * s390-tdep.h: ...this. New file.
6249 * s390-linux-tdep.c (s390-tdep.h): New include.
6250 (_initialize_s390_tdep): Rename to...
6251 (_initialize_s390_linux_tdep): ...this and adjust.
6252 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
6253 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
6254 s390-tdep.h.
6255 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
6256 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
6257 (s390_is_partial_instruction, s390_software_single_step)
6258 (is_non_branch_ril, s390_displaced_step_copy_insn)
6259 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
6260 (s390_prologue_data, s390_addr, s390_store, s390_load)
6261 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
6262 (s390_register_call_saved, s390_guess_tracepoint_registers)
6263 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
6264 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
6265 (s390_pseudo_register_name, s390_pseudo_register_type)
6266 (s390_pseudo_register_read, s390_pseudo_register_write)
6267 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
6268 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
6269 (s390_addr_bits_remove, s390_address_class_type_flags)
6270 (s390_address_class_type_flags_to_name)
6271 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
6272 (s390_function_arg_float, s390_function_arg_vector)
6273 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
6274 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
6275 (s390_frame_align, s390_register_return_value, s390_return_value)
6276 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
6277 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
6278 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
6279 (s390_trad_frame_prev_register, s390_unwind_cache)
6280 (s390_prologue_frame_unwind_cache)
6281 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
6282 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
6283 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
6284 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
6285 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
6286 (s390_frame_base_address, s390_local_base_address)
6287 (s390_frame_base, s390_gcc_target_options)
6288 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
6289 (s390_validate_reg_range, s390_tdesc_valid)
6290 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
6291 * s390-tdep.c: ...this. New file.
6292
6293 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6294
6295 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
6296 (s390_process_record, s390_gdbarch_tdep_alloc)
6297 (s390_linux_init_abi_any): Use/set new hook.
6298
6299 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6300
6301 * s390-linux-tdep.c (osabi.h): New include.
6302 (s390_linux_init_abi_31, s390_linux_init_abi_64)
6303 (s390_linux_init_abi_any): New functions.
6304 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
6305
6306 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6307
6308 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
6309 tdesc_has_registers check
6310
6311 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6312
6313 * s390-linux-tdep.c (s390_tdesc_valid): New function.
6314 (s390_validate_reg_range): New macro.
6315 (s390_gdbarch_init): Adjust.
6316
6317 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6318
6319 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
6320 (s390_gdbarch_tdep_alloc): Adjust.
6321 (s390_gdbarch_init): Adjust.
6322
6323 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6324
6325 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
6326 <have_tdb>: Change type to bool.
6327 (s390_gdbarch_tdep_alloc): Adjust.
6328 (s390_gdbarch_init): Adjust.
6329
6330 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6331
6332 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
6333 (gdbarch_tdep) <have_upper, have_vx>: New fields.
6334 (s390_gdbarch_tdep_alloc): New function.
6335 (s390_gdbarch_init): Allocate tdep at start and use its fields
6336 instead of separate variables.
6337
6338 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
6339
6340 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
6341 when looking for cached gdbarch and add comment for remaining.
6342
6343 2018-01-22 Pedro Alves <palves@redhat.com>
6344 Sergio Durigan Junior <sergiodj@redhat.com>
6345
6346 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
6347 case.
6348
6349 2018-01-22 Maciej W. Rozycki <macro@mips.com>
6350
6351 * MAINTAINERS: Update my company e-mail address.
6352
6353 2018-01-22 Yao Qi <yao.qi@linaro.org>
6354
6355 * regcache.c (cooked_write_test): New function.
6356 (_initialize_regcache): Register the test.
6357
6358 2018-01-22 Yao Qi <yao.qi@linaro.org>
6359
6360 * ia64-tdep.c (ia64_pseudo_register_read): Call
6361 regcache->cooked_read instead of regcache_cooked_read_unsigned.
6362 * m32c-tdep.c (m32c_cat_read): Likewise.
6363 (m32c_r3r2r1r0_read): Likewise.
6364 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
6365 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
6366
6367 2018-01-22 Yao Qi <yao.qi@linaro.org>
6368
6369 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
6370 method raw_read instead of regcache_raw_read.
6371 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
6372 * arm-tdep.c (arm_neon_quad_read): Likewise.
6373 * avr-tdep.c (avr_pseudo_register_read): Likewise.
6374 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
6375 * frv-tdep.c (frv_pseudo_register_read): Likewise.
6376 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
6377 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
6378 (i386_pseudo_register_read_into_value): Likewise.
6379 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
6380 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
6381 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
6382 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
6383 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
6384 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
6385 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
6386 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
6387 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
6388
6389 2018-01-22 Yao Qi <yao.qi@linaro.org>
6390
6391 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
6392 * configure.tgt: Remove target mt.
6393 * mt-tdep.c: Remove.
6394 * regcache.c (cooked_read_test): Remove the check for mt.
6395
6396 2018-01-22 Yao Qi <yao.qi@linaro.org>
6397
6398 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
6399 instead of gdbarch_pseudo_register_read_value.
6400
6401 2018-01-22 Joel Brobecker <brobecker@adacore.com>
6402
6403 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
6404 language is Ada.
6405
6406 2018-01-22 Joel Brobecker <brobecker@adacore.com>
6407
6408 * linespec.c (create_sals_line_offset): Remove code that preserved
6409 the symtab_and_line's line number.
6410
6411 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 * varobj.c (varobj_create): Don't set valid_block when creating a
6414 floating varobj.
6415
6416 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6417
6418 * varobj.c (varobj_create): Remove out of date comment.
6419
6420 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 PR mi/20395
6423 * ada-exp.y (write_var_from_sym): Pass extra parameter when
6424 updating innermost block.
6425 * parse.c (innermost_block_tracker::update): Take extra type
6426 parameter, and check types match before updating innermost block.
6427 (write_dollar_variable): Update innermost block for registers.
6428 * parser-defs.h (enum innermost_block_tracker_type): New enum.
6429 (innermost_block_tracker::innermost_block_tracker): Initialise
6430 m_types member.
6431 (innermost_block_tracker::reset): Take type parameter.
6432 (innermost_block_tracker::update): Take type parameter, and pass
6433 type through as needed.
6434 (innermost_block_tracker::m_types): New member.
6435 * varobj.c (varobj_create): Pass type when reseting innermost
6436 block.
6437
6438 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
6441 * ada-lang.c (resolve_subexp): Likewise.
6442 * breakpoint.c (set_breakpoint_condition) Likewise.
6443 (watch_command_1) Likewise.
6444 * c-exp.y (variable): Likewise.
6445 * d-exp.y (PrimaryExpression): Likewise.
6446 * f-exp.y (variable): Likewise.
6447 * go-exp.y (variable): Likewise.
6448 * m2-exp.y (variable): Likewise.
6449 * objfiles.c (objfile::~objfile): Likewise.
6450 * p-exp.y (variable): Likewise.
6451 * parse.c (innermost_block): Change type.
6452 * parser-defs.h (class innermost_block_tracker): New.
6453 (innermost_block): Change to innermost_block_tracker.
6454 * printcmd.c (display_command): Switch to innermost_block API.
6455 (do_one_display): Likewise.
6456 * rust-exp.y (do_one_display): Likewise.
6457 * symfile.c (clear_symtab_users): Likewise.
6458 * varobj.c (varobj_create): Switch to innermost_block API, replace
6459 use of innermost_block with block stored on varobj object.
6460
6461 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * expression.h (innermost_block): Remove declaration.
6464 * varobj.c: Add 'parser-defs.h' include.
6465
6466 2018-01-19 Tom Tromey <tom@tromey.com>
6467
6468 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
6469 symbols in the static and global blocks.
6470
6471 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6472
6473 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
6474 gdb_ptrace.h, and move including gdb_wait.h ...
6475 * nat/linux-ptrace.h: ... to here.
6476
6477 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
6478
6479 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
6480 inf_ptrace_detach_success.
6481 (inf_ptrace_detach_success): Add inferior parameter, use it
6482 instead of inferior_ptid, pass it to detach_inferior.
6483 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
6484 parameter.
6485 * inferior.c (detach_inferior): Add overload that takes an
6486 inferior object.
6487 * inferior.h (detach_inferior): Likewise.
6488 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
6489 use inferior_ptid, adjust call to inf_ptrace_detach_success.
6490 * linux-thread-db.c (thread_db_detach): Use inf parameter.
6491
6492 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
6493
6494 * target.h (struct target_ops) <to_detach>: Add inferior
6495 parameter.
6496 (target_detach): Likewise.
6497 * target.c (dispose_inferior): Pass inferior down.
6498 (target_detach): Pass inferior down. Assert that it is equal to
6499 the current inferior.
6500 * aix-thread.c (aix_thread_detach): Pass inferior down.
6501 * corefile.c (core_file_command): Pass current_inferior() down.
6502 * corelow.c (core_detach): Add inferior parameter.
6503 * darwin-nat.c (darwin_detach): Likewise.
6504 * gnu-nat.c (gnu_detach): Likewise.
6505 * inf-ptrace.c (inf_ptrace_detach): Likewise.
6506 * infcmd.c (detach_command): Pass current_inferior() down to
6507 target_detach.
6508 * infrun.c (follow_fork_inferior): Pass parent_inf to
6509 target_detach.
6510 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
6511 target_detach.
6512 * linux-nat.c (linux_nat_detach): Add inferior parameter.
6513 * linux-thread-db.c (thread_db_detach): Likewise.
6514 * nto-procfs.c (procfs_detach): Likewise.
6515 * procfs.c (procfs_detach): Likewise.
6516 * record.c (record_detach): Likewise.
6517 * record.h (struct inferior): Forward-declare.
6518 (record_detach): Add inferior parameter.
6519 * remote-sim.c (gdbsim_detach): Likewise.
6520 * remote.c (remote_detach_1): Likewise.
6521 (remote_detach): Likewise.
6522 (extended_remote_detach): Likewise.
6523 * sol-thread.c (sol_thread_detach): Likewise.
6524 * target-debug.h (target_debug_print_inferior_p): New macro.
6525 * target-delegates.c: Re-generate.
6526 * top.c (kill_or_detach): Pass inferior down to target_detach.
6527 * windows-nat.c (windows_detach): Add inferior parameter.
6528
6529 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
6530
6531 * target.h (struct target_ops) <to_detach>: Remove args
6532 parameter.
6533 (target_detach): Likewise.
6534 * target.c (dispose_inferior): Adjust.
6535 (target_detach): Remove args parameter, adjust.
6536 * aix-thread.c (aix_thread_detach): Adjust.
6537 * corefile.c (core_file_command): Adjust.
6538 * corelow.c (core_detach): Adjust.
6539 * darwin-nat.c (darwin_detach): Adjust.
6540 * gnu-nat.c (gnu_detach): Adjust.
6541 * inf-ptrace.c (inf_ptrace_detach): Adjust.
6542 * infcmd.c (detach_command): Adjust
6543 * infrun.c (follow_fork_inferior): Adjust.
6544 (handle_vfork_child_exec_or_exit): Adjust.
6545 * linux-fork.c (linux_fork_detach): Remove args parameter.
6546 * linux-fork.h (linux_fork_detach): Likewise.
6547 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
6548 * linux-thread-db.c (thread_db_detach): Likewise.
6549 * nto-procfs.c (procfs_detach): Likewise.
6550 * procfs.c (procfs_detach): Likewise.
6551 (do_detach): Remove signo parameter.
6552 * record.c (record_detach): Remove args parameter.
6553 * record.h (record_detach): Likewise.
6554 * remote-sim.c (gdbsim_detach): Likewise.
6555 * remote.c (remote_detach_1): Likewise.
6556 (remote_detach): Likewise.
6557 (extended_remote_detach): Likewise.
6558 * sol-thread.c (sol_thread_detach): Likewise.
6559 * target-delegates.c: Re-generate.
6560 * top.c (struct qt_args) <args>: Remove field.
6561 (kill_or_detach): Don't pass args.
6562 (quit_force): Don't set args.
6563 * windows-nat.c (windows_detach): Remove args parameter.
6564
6565 2018-01-19 Yao Qi <yao.qi@linaro.org>
6566
6567 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
6568 (arm_linux_init_abi): Install it.
6569
6570 2018-01-19 Yao Qi <yao.qi@linaro.org>
6571
6572 * osabi.c (gdb_osabi_names): Extend the regexp for
6573 arm-linux-gnueabihf.
6574
6575 2018-01-18 Yao Qi <yao.qi@linaro.org>
6576
6577 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
6578 m_abbrevs.
6579 (abbrev_table::add_abbrev): Update.
6580 (abbrev_table::lookup_abbrev): Update.
6581
6582 2018-01-18 Yao Qi <yao.qi@linaro.org>
6583
6584 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
6585
6586 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6587
6588 * compile/compile.c (compile_to_object): Convert "triplet_rx"
6589 to "std::string".
6590
6591 2018-01-17 Tom Tromey <tom@tromey.com>
6592
6593 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
6594
6595 2018-01-17 Tom Tromey <tom@tromey.com>
6596
6597 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
6598 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
6599 (create_array_type_with_stride): Update.
6600 * dwarf2read.c (set_die_type): Update.
6601
6602 2018-01-17 Tom Tromey <tom@tromey.com>
6603
6604 * dwarf2read.c (delayed_method_info): Remove typedef.
6605 (dwarf2_cu::method_info): Now a std::vector.
6606 (add_to_method_list): Update.
6607 (free_delayed_list): Remove.
6608 (compute_delayed_physnames): Update.
6609 (process_full_comp_unit, process_full_type_unit): Clear the method
6610 list. Remove cleanups.
6611 (psymtab_include_file_name): Add name_holder parameter. Use
6612 unique_xmalloc_ptr.
6613 (dwarf_decode_lines): Update.
6614
6615 2018-01-17 Tom Tromey <tom@tromey.com>
6616 Simon Marchi <simon.marchi@ericsson.com>
6617
6618 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
6619 (dwarf2_per_objfile::free_cached_comp_units)
6620 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
6621 (init_cutu_and_read_dies_no_follow): Update.
6622 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
6623 (dwarf2_cu::~dwarf2_cu): New.
6624 (free_heap_comp_unit, free_stack_comp_unit): Remove.
6625 (age_cached_comp_units, free_one_cached_comp_unit): Update.
6626
6627 2018-01-17 Tom Tromey <tom@tromey.com>
6628 Simon Marchi <simon.marchi@ericsson.com>
6629
6630 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
6631 (struct die_reader_specs) <abbrev_table>: New member.
6632 (struct abbrev_table): Add constructor.
6633 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
6634 <abbrev_obstack>: Now an auto_obstack.
6635 (abbrev_table_up): New typedef.
6636 (init_cu_die_reader): Add abbrev_table parameter.
6637 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
6638 Add result_dwo_abbrev_table.
6639 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
6640 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
6641 Update.
6642 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
6643 parameter.
6644 (skip_children): Update.
6645 (abbrev_table::alloc_abbrev): Rename from
6646 abbrev_table_alloc_abbrev.
6647 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
6648 (abbrev_table::lookup_abbrev): Rename from
6649 abbrev_table_lookup_abbrev.
6650 (abbrev_table_read_table): Return abbrev_table_up.
6651 (abbrev_table_free, abbrev_table_free_cleanup)
6652 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
6653 (load_partial_dies): Update.
6654
6655 2018-01-17 Tom Tromey <tom@tromey.com>
6656
6657 * dwarf2read.c (dwarf2_compute_name): Update comment.
6658 (read_func_scope, read_variable): Update.
6659 (new_symbol): Remove.
6660 (new_symbol_full): Rename to new_symbol.
6661
6662 2018-01-17 Mike Gulick <mgulick@mathworks.com>
6663
6664 PR gdb/16577
6665 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
6666 a warning instead of throwing an error, set section size to 0 and return
6667 NULL.
6668 * gdb_bfd.h (gdb_bfd_map_section): Update description.
6669
6670 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6671
6672 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
6673 std::string.
6674 (linux_ptrace_attach_fail_reason_string): Likewise.
6675 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
6676 Likewise.
6677 (linux_ptrace_attach_fail_reason_string): Likewise.
6678 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
6679
6680 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6681
6682 * linux-nat.c (linux_nat_attach): Remove xstrdup.
6683
6684 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6685
6686 PR gdb/21559
6687 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6688 checking for fs_base/gs_base fields in struct user_regs_struct.
6689 * configure: Regenerate.
6690
6691 2018-01-17 Yao Qi <yao.qi@linaro.org>
6692
6693 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
6694 function.
6695 (aarch64_linux_init_abi): Install it to gdbarch hook
6696 gcc_target_options.
6697
6698 2018-01-15 Pedro Alves <palves@redhat.com>
6699
6700 * common/signals-state-save-restore.c
6701 (save_original_signals_state): Fix typos.
6702
6703 2017-01-12 Tom Tromey <tom@tromey.com>
6704 Sergio Durigan Junior <sergiodj@redhat.com>
6705
6706 * Makefile.in (install-only): Install gdb-add-index.
6707
6708 2018-01-12 John Baldwin <jhb@FreeBSD.org>
6709
6710 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
6711
6712 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6713
6714 * infrun.c (keep_going_pass_signal): Clear step-over info when
6715 insert_breakpoints fails.
6716
6717 2018-01-11 Pedro Alves <palves@redhat.com>
6718
6719 PR gdb/22583
6720 * infrun.c (resume): Rename to ...
6721 (resume_1): ... this.
6722 (resume): Reimplement as wrapper around resume_1.
6723
6724 2018-01-11 Pedro Alves <palves@redhat.com>
6725
6726 PR remote/22597
6727 * remote.c (remote_parse_stop_reply): Default to the last-set
6728 general thread instead of to 'magic_null_ptid'.
6729
6730 2018-01-10 Pedro Alves <palves@redhat.com>
6731
6732 * language.h (language_get_symbol_name_matcher): Rename ...
6733 (get_symbol_name_matcher): ... this.
6734 * language.c (language_get_symbol_name_matcher): Ditto.
6735 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
6736 callers adjusted.
6737
6738 2018-01-10 Pedro Alves <palves@redhat.com>
6739
6740 PR gdb/22670
6741 * dwarf2read.c
6742 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
6743 Adjust to use language_get_symbol_name_matcher instead of
6744 language_defn::la_get_symbol_name_matcher.
6745 * language.c (language_get_symbol_name_matcher): If in Ada mode
6746 and the lookup name is a verbatim match, return Ada's matcher.
6747 * language.h (language_get_symbol_name_matcher): Adjust comment.
6748 (ada_lookup_name_info::verbatim_p):: New method.
6749
6750 2018-01-10 Pedro Alves <palves@redhat.com>
6751
6752 PR gdb/22670
6753 * ada-lang.c (ada_collect_symbol_completion_matches): If the
6754 minsym's language is language_auto or language_cplus, pass down
6755 language_ada instead.
6756 * symtab.c (compare_symbol_name): Don't frob symbol language here.
6757
6758 2018-01-10 Pedro Alves <palves@redhat.com>
6759
6760 PR gdb/22670
6761 * minsyms.c (linkage_name_str): New function.
6762 (iterate_over_minimal_symbols): Use it.
6763
6764 2018-01-09 John Baldwin <jhb@FreeBSD.org>
6765
6766 * NEWS: Document that 'info proc' now works on FreeBSD.
6767
6768 2018-01-09 John Baldwin <jhb@FreeBSD.org>
6769
6770 * configure.ac: Check for kinfo_getfile in libutil.
6771 * configure: Regenerate.
6772 * config.in: Regenerate.
6773 * fbsd-nat.c: Include "fbsd-tdep.h".
6774 (fbsd_fetch_cmdline): New.
6775 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
6776 rather than calling error.
6777 (fbsd_info_proc): New.
6778 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
6779 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
6780 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
6781
6782 2018-01-09 John Baldwin <jhb@FreeBSD.org>
6783
6784 * fbsd-nat.c (struct free_deleter): Remove.
6785 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
6786
6787 2018-01-09 John Baldwin <jhb@FreeBSD.org>
6788
6789 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
6790 NULL for an empty pathname.
6791
6792 2018-01-09 John Baldwin <jhb@FreeBSD.org>
6793
6794 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
6795 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
6796 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6797 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6798 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
6799 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
6800 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
6801 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
6802 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
6803 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
6804 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
6805 (fbsd_core_fetch_timeval, fbsd_print_sigset)
6806 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
6807 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
6808 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
6809
6810 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
6811
6812 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
6813 (gnu_xfer_auxv): New function.
6814 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
6815 TARGET_OBJECT_AUXV.
6816
6817 2018-01-08 Yao Qi <yao.qi@linaro.org>
6818 Simon Marchi <simon.marchi@ericsson.com>
6819
6820 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
6821 common/selftest.c.
6822 (COMMON_OBS): Remove selftest.o.
6823 * configure.ac: Append selftest-arch.c and common/selftest.c to
6824 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
6825 * configure: Re-generated.
6826 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
6827 GDB_SELF_TEST.
6828 (maintenance_info_selftests): Likewise.
6829
6830 2018-01-08 Xavier Roirand <roirand@adacore.com>
6831
6832 * ada-valprint.c (val_print_packed_array_elements): Use
6833 proper number of elements when printing an array indexed
6834 by an enumeration type.
6835
6836 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
6839 (dw2_get_file_names_reader): Adjust.
6840 (lookup_dwo_signatured_type): Adjust.
6841 (lookup_dwp_signatured_type): Adjust.
6842 (lookup_signatured_type): Adjust.
6843 (create_type_unit_group): Adjust.
6844 (get_type_unit_group): Adjust.
6845 (process_psymtab_comp_unit_reader): Adjust.
6846 (build_type_psymtabs_reader): Adjust.
6847 (scan_partial_symbols): Adjust.
6848 (add_partial_symbol): Adjust.
6849 (add_partial_subprogram): Adjust.
6850 (peek_die_abbrev): Adjust.
6851 (fixup_go_packaging): Adjust.
6852 (process_imported_unit_die): Adjust.
6853 (dwarf2_compute_name): Adjust.
6854 (dwarf2_physname): Adjust.
6855 (read_import_statement): Adjust.
6856 (handle_DW_AT_stmt_list): Adjust.
6857 (read_file_scope): Adjust.
6858 (read_func_scope): Adjust.
6859 (read_lexical_block_scope): Adjust.
6860 (read_call_site_scope): Adjust.
6861 (read_variable): Adjust.
6862 (dwarf2_rnglists_process): Adjust.
6863 (dwarf2_ranges_process): Adjust.
6864 (dwarf2_ranges_read): Adjust.
6865 (dwarf2_get_pc_bounds): Adjust.
6866 (dwarf2_record_block_ranges): Adjust.
6867 (dwarf2_add_field): Adjust.
6868 (dwarf2_add_member_fn): Adjust.
6869 (read_structure_type): Adjust.
6870 (process_structure_scope): Adjust.
6871 (read_enumeration_type): Adjust.
6872 (read_array_type): Adjust.
6873 (mark_common_block_symbol_computed): Adjust.
6874 (read_common_block): Adjust.
6875 (read_namespace_type): Adjust.
6876 (read_namespace): Adjust.
6877 (read_module_type): Adjust.
6878 (read_tag_pointer_type): Adjust.
6879 (read_tag_ptr_to_member_type): Adjust.
6880 (read_tag_string_type): Adjust.
6881 (read_subroutine_type): Adjust.
6882 (read_typedef): Adjust.
6883 (read_base_type): Adjust.
6884 (attr_to_dynamic_prop): Adjust.
6885 (read_subrange_type): Adjust.
6886 (read_unspecified_type): Adjust.
6887 (dwarf2_read_abbrevs): Adjust.
6888 (load_partial_dies): Adjust.
6889 (read_partial_die): Adjust.
6890 (find_partial_die): Adjust.
6891 (guess_partial_die_structure_name): Adjust.
6892 (fixup_partial_die): Adjust.
6893 (read_attribute_value): Adjust.
6894 (read_addr_index): Adjust.
6895 (read_addr_index_from_leb128): Adjust.
6896 (read_str_index): Adjust.
6897 (dwarf2_string_attr): Adjust.
6898 (get_debug_line_section): Adjust.
6899 (dwarf_decode_line_header): Adjust.
6900 (lnp_state_machine::check_line_address): Adjust.
6901 (dwarf_decode_lines_1): Adjust.
6902 (dwarf_decode_lines): Adjust.
6903 (dwarf2_start_symtab): Adjust.
6904 (var_decode_location): Adjust.
6905 (new_symbol_full): Adjust.
6906 (dwarf2_const_value_data): Adjust.
6907 (dwarf2_const_value_attr): Adjust.
6908 (dwarf2_const_value): Adjust.
6909 (die_type): Adjust.
6910 (die_containing_type): Adjust.
6911 (build_error_marker_type): Adjust.
6912 (lookup_die_type): Adjust.
6913 (guess_full_die_structure_name): Adjust.
6914 (anonymous_struct_prefix): Adjust.
6915 (determine_prefix): Adjust.
6916 (dwarf2_name): Adjust.
6917 (follow_die_ref_or_sig): Adjust.
6918 (follow_die_offset): Adjust.
6919 (follow_die_ref): Adjust.
6920 (follow_die_sig_1): Adjust.
6921 (follow_die_sig): Adjust.
6922 (get_signatured_type): Adjust.
6923 (get_DW_AT_signature_type): Adjust.
6924 (decode_locdesc): Adjust.
6925 (dwarf_decode_macros): Adjust.
6926 (cu_debug_loc_section): Adjust.
6927 (fill_in_loclist_baton): Adjust.
6928 (dwarf2_symbol_mark_computed): Adjust.
6929 (init_one_comp_unit): Don't assign
6930 dwarf2_cu::dwarf2_per_objfile.
6931 (set_die_type): Adjust.
6932
6933 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
6934
6935 * dwarf2read.c (struct mapped_debug_names): Add constructor.
6936 <dwarf2_per_objfile>: New field.
6937 (dwarf2_per_objfile): Remove global.
6938 (get_dwarf2_per_objfile): New function.
6939 (set_dwarf2_per_objfile): New function.
6940 (dwarf2_build_psymtabs_hard): Change objfile parameter to
6941 dwarf2_per_objfile.
6942 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
6943 (read_abbrev_offset): Likewise.
6944 (read_indirect_string): Likewise.
6945 (read_indirect_line_string): Likewise.
6946 (read_indirect_string_at_offset): Likewise.
6947 (read_indirect_string_from_dwz): Likewise.
6948 (dwarf2_find_containing_comp_unit): Change objfile parameter to
6949 dwarf2_per_objfile.
6950 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
6951 (create_all_comp_units): Change objfile parameter to
6952 dwarf2_per_objfile.
6953 (create_all_type_units): Likewise.
6954 (process_queue): Add dwarf2_per_objfile parameter.
6955 (read_and_check_comp_unit_head): Likewise.
6956 (lookup_dwo_unit_in_dwp): Likewise.
6957 (get_dwp_file): Likewise.
6958 (process_cu_includes): Likewise.
6959 (struct free_dwo_file_cleanup_data): New struct.
6960 (dwarf2_has_info): Use get_dwarf2_per_objfile and
6961 set_dwarf2_per_objfile.
6962 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
6963 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
6964 context, adjust calls.
6965 (dw2_instantiate_symtab): Likewise.
6966 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
6967 (dw2_get_cu): Likewise.
6968 (create_cu_from_index_list): Change objfile parameter to
6969 dwarf2_per_objfile.
6970 (create_cus_from_index_list): Get dwarf2_per_objfile from
6971 context, adjust calls.
6972 (create_cus_from_index): Likewise.
6973 (create_signatured_type_table_from_index): Change objfile
6974 parameter to dwarf2_per_objfile.
6975 (create_signatured_type_table_from_debug_names): Change objfile
6976 parameter to dwarf2_per_objfile.
6977 (create_addrmap_from_index): Likewise.
6978 (create_addrmap_from_aranges): Likewise.
6979 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
6980 (dw2_setup): Remove.
6981 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
6982 context.
6983 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
6984 get_dwarf2_per_objfile.
6985 (dw2_forget_cached_source_info): Likewise.
6986 (dw2_map_symtabs_matching_filename): Likewise.
6987 (struct dw2_symtab_iterator) <index>: Remove.
6988 <dwarf2_per_objfile>: New field.
6989 (dw2_symtab_iter_init): Replace index parameter with
6990 dwarf2_per_objfile.
6991 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
6992 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
6993 (dw2_print_stats): Likewise.
6994 (dw2_dump): Likewise.
6995 (dw2_expand_symtabs_for_function): Likewise.
6996 (dw2_expand_all_symtabs): Likewise.
6997 (dw2_expand_symtabs_with_fullname): Likewise.
6998 (dw2_expand_marked_cus): Replace index and objfile parameters
6999 with dwarf2_per_objfile.
7000 (dw_expand_symtabs_matching_file_matcher): Add
7001 dwarf2_per_objfile parameter and adjust calls.
7002 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
7003 adjust calls.
7004 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
7005 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
7006 adjust calls.
7007 (create_cus_from_debug_names_list): Replace objfile parameter
7008 with dwarf2_per_objfile and adjust calls.
7009 (create_cus_from_debug_names): Likewise.
7010 (dwarf2_read_debug_names): Likewise.
7011 (mapped_debug_names::namei_to_name): Adjust call.
7012 (dw2_debug_names_iterator::next): Likewise.
7013 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7014 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
7015 (dw2_debug_names_dump): Likewise.
7016 (dw2_debug_names_expand_symtabs_for_function): Likewise.
7017 (dw2_debug_names_expand_symtabs_matching): Likewise.
7018 (dwarf2_initialize_objfile): Likewise.
7019 (dwarf2_build_psymtabs): Likewise.
7020 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
7021 this_cu.
7022 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
7023 (read_and_check_comp_unit_head): Likewise.
7024 (read_abbrev_offset): Likewise.
7025 (create_debug_type_hash_table): Likewise.
7026 (create_debug_types_hash_table): Likewise.
7027 (create_all_type_units): Replace objfile parameter with
7028 dwarf2_per_objfile.
7029 (add_type_unit): Add dwarf2_per_objfile parameter.
7030 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
7031 with dwarf2_per_objfile.
7032 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
7033 (lookup_dwp_signatured_type): Likewise.
7034 (lookup_signatured_type): Likewise.
7035 (read_cutu_die_from_dwo): Likewise.
7036 (init_tu_and_read_dwo_dies): Likewise.
7037 (init_cutu_and_read_dies): Likewise.
7038 (init_cutu_and_read_dies_no_follow): Likewise.
7039 (allocate_type_unit_groups_table): Add objfile parameter.
7040 (create_type_unit_group): Use dwarf2_per_objfile from cu.
7041 (get_type_unit_group): Likewise.
7042 (process_psymtab_comp_unit): Update call.
7043 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
7044 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
7045 (print_tu_stats): Likewise.
7046 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
7047 in void* parameter.
7048 (build_type_psymtabs): Change objfile parameter to
7049 dwarf2_per_objfile.
7050 (process_skeletonless_type_unit): Use dwarf2_per_objfile
7051 passed in void* parameter.
7052 (process_skeletonless_type_units): Change objfile parameter to
7053 dwarf2_per_objfile.
7054 (set_partial_user): Likewise.
7055 (dwarf2_build_psymtabs_hard): Likewise.
7056 (read_comp_units_from_section): Likewise.
7057 (create_all_comp_units): Likewise.
7058 (scan_partial_symbols): Update calls.
7059 (add_partial_symbol): Likewise.
7060 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
7061 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
7062 (process_queue): Add dwarf2_per_objfile parameter.
7063 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
7064 (compute_compunit_symtab_includes): Likewise.
7065 (process_cu_includes): Add dwarf2_per_objfile parameter.
7066 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
7067 (process_full_type_unit): Likewise.
7068 (process_imported_unit_die): Update call.
7069 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
7070 (read_file_scope): Likewise.
7071 (allocate_dwo_file_hash_table): Add objfile parameter.
7072 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
7073 (create_cus_hash_table): Likewise.
7074 (create_dwp_hash_table): Likewise.
7075 (create_dwo_unit_in_dwp_v1): Likewise.
7076 (create_dwp_v2_section): Likewise.
7077 (create_dwo_unit_in_dwp_v2): Likewise.
7078 (lookup_dwo_unit_in_dwp): Likewise.
7079 (try_open_dwop_file): Likewise.
7080 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
7081 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
7082 cleanup to include a reference to dwarf2_per_objfile.
7083 (open_dwp_file): Add dwarf2_per_objfile parameter.
7084 (open_and_init_dwp_file): Likewise.
7085 (get_dwp_file): Likewise.
7086 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
7087 (queue_and_load_all_dwo_tus): Update call.
7088 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
7089 data.
7090 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
7091 (dwarf2_ranges_process): Likewise.
7092 (dwarf2_get_pc_bounds): Likewise.
7093 (mark_common_block_symbol_computed): Likewise.
7094 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
7095 (dwarf2_read_abbrevs): Update call.
7096 (read_partial_die): Use dwarf2_per_objfile from cu.
7097 (find_partial_die): Likewise.
7098 (fixup_partial_die): Likewise.
7099 (read_attribute_value): Likewise.
7100 (read_indirect_string_at_offset_from): Add objfile parameter.
7101 (read_indirect_string_at_offset): Add dwarf2_per_objfile
7102 parameter.
7103 (read_indirect_string_from_dwz): Add objfile parameter.
7104 (read_indirect_string): Add objfile parameter.
7105 (read_addr_index_1): Add dwarf2_per_objfile parameter.
7106 (read_addr_index): Use dwarf2_per_objfile from cu.
7107 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
7108 call dw2_setup.
7109 (read_str_index): Use dwarf2_per_objfile from cu.
7110 (get_debug_line_section): Likewise.
7111 (read_formatted_entries): Add dwarf2_per_objfile parameter.
7112 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
7113 (new_symbol_full): Use dwarf2_per_objfile from cu.
7114 (build_error_marker_type): Likewise.
7115 (lookup_die_type): Likewise.
7116 (determine_prefix): Likewise.
7117 (follow_die_offset): Likewise.
7118 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
7119 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
7120 (dwarf2_fetch_die_type_sect_off): Likewise.
7121 (dwarf2_get_die_type): Likewise.
7122 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
7123 (get_signatured_type): Likewise.
7124 (get_DW_AT_signature_type): Likewise.
7125 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
7126 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
7127 (cu_debug_loc_section): Likewise.
7128 (fill_in_loclist_baton): Likewise.
7129 (dwarf2_symbol_mark_computed): Likewise.
7130 (dwarf2_find_containing_comp_unit): Change objfile parameter to
7131 dwarf2_per_objfile.
7132 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
7133 parameter.
7134 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
7135 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
7136 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
7137 (set_die_type): Use dwarf2_free_objfile from cu.
7138 (get_die_type_at_offset): Likewise.
7139 (dwarf2_per_objfile_free): Don't assign global variable.
7140 (debug_names) <constructor>: Add dwarf2_per_objfile
7141 parameter, update m_debugstrlookup construction.
7142 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
7143 parameter.
7144 <m_dwarf2_per_objfile>: New field.
7145 <lookup>: Use m_dwarf2_per_objfile.
7146 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
7147 (psyms_seen_size): Likewise.
7148 (write_gdbindex): Replace objfile parameter with
7149 dwarf2_per_objfile.
7150 (write_debug_names): Likewise.
7151 (write_psymtabs_to_index): Likewise.
7152 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
7153 calls.
7154
7155 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
7158 <dwarf2_per_objfile>: New field.
7159 (struct dwarf2_per_cu_data) <objfile>: Remove.
7160 <dwarf2_per_objfile>: New field.
7161 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
7162 of objfile.
7163 (create_signatured_type_table_from_index): Likewise.
7164 (create_debug_type_hash_table): Likewise.
7165 (fill_in_sig_entry_from_dwo_entry): Likewise.
7166 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
7167 (create_type_unit_group): Assign dwarf2_per_objfile instead of
7168 objfile.
7169 (create_partial_symtab): Access objfile through
7170 dwarf2_per_objfile.
7171 (process_psymtab_comp_unit_reader): Likewise.
7172 (read_comp_units_from_section): Likewise.
7173 (scan_partial_symbols): Likewise.
7174 (add_partial_symbol): Likewise.
7175 (add_partial_subprogram): Likewise.
7176 (peek_die_abbrev): Likewise.
7177 (fixup_go_packaging): Likewise.
7178 (process_full_comp_unit): Likewise.
7179 (process_full_type_unit): Likewise.
7180 (process_imported_unit_die): Likewise.
7181 (dwarf2_compute_name): Likewise.
7182 (dwarf2_physname): Likewise.
7183 (read_import_statement): Likewise.
7184 (create_cus_hash_table): Assign dwarf2_physname instead of
7185 objfile.
7186 (read_func_scope): Access objfile through dwarf2_per_objfile.
7187 (read_lexical_block_scope): Likewise.
7188 (read_call_site_scope): Likewise.
7189 (read_variable): Likewise.
7190 (dwarf2_rnglists_process): Likewise.
7191 (dwarf2_ranges_process): Likewise.
7192 (dwarf2_ranges_read): Likewise.
7193 (dwarf2_record_block_ranges): Likewise.
7194 (dwarf2_add_field): Likewise.
7195 (dwarf2_add_member_fn): Likewise.
7196 (read_structure_type): Likewise.
7197 (process_structure_scope): Likewise.
7198 (read_enumeration_type): Likewise.
7199 (read_array_type): Likewise.
7200 (read_common_block): Likewise.
7201 (read_namespace_type): Likewise.
7202 (read_namespace): Likewise.
7203 (read_module_type): Likewise.
7204 (read_tag_pointer_type): Likewise.
7205 (read_tag_ptr_to_member_type): Likewise.
7206 (read_tag_string_type): Likewise.
7207 (read_subroutine_type): Likewise.
7208 (read_typedef): Likewise.
7209 (read_base_type): Likewise.
7210 (attr_to_dynamic_prop): Likewise.
7211 (read_subrange_type): Likewise.
7212 (read_unspecified_type): Likewise.
7213 (load_partial_dies): Likewise.
7214 (read_partial_die): Likewise.
7215 (find_partial_die): Likewise.
7216 (guess_partial_die_structure_name): Likewise.
7217 (fixup_partial_die): Likewise.
7218 (read_attribute_value): Likewise.
7219 (read_addr_index_from_leb128): Likewise.
7220 (dwarf2_read_addr_index): Likewise.
7221 (dwarf2_string_attr): Likewise.
7222 (lnp_state_machine::check_line_address): Likewise.
7223 (dwarf_decode_lines_1): Likewise.
7224 (dwarf_decode_lines): Likewise.
7225 (dwarf2_start_symtab): Likewise.
7226 (var_decode_location): Likewise.
7227 (new_symbol_full): Likewise.
7228 (dwarf2_const_value_data): Likewise.
7229 (dwarf2_const_value_attr): Likewise.
7230 (dwarf2_const_value): Likewise.
7231 (die_type): Likewise.
7232 (die_containing_type): Likewise.
7233 (lookup_die_type): Likewise.
7234 (guess_full_die_structure_name): Likewise.
7235 (anonymous_struct_prefix): Likewise.
7236 (dwarf2_name): Likewise.
7237 (follow_die_ref_or_sig): Likewise.
7238 (follow_die_offset): Likewise.
7239 (follow_die_ref): Likewise.
7240 (dwarf2_fetch_die_loc_sect_off): Likewise.
7241 (dwarf2_fetch_constant_bytes): Likewise.
7242 (dwarf2_fetch_die_type_sect_off): Likewise.
7243 (dwarf2_get_die_type): Likewise.
7244 (follow_die_sig): Likewise.
7245 (decode_locdesc): Likewise.
7246 (dwarf2_per_cu_objfile): Likewise.
7247 (dwarf2_per_cu_text_offset): Likewise.
7248 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
7249 objfile.
7250 (set_die_type): Access objfile through
7251 dwarf2_per_objfile.
7252
7253 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
7254
7255 * valprint.c (converted_character_d): Remove typedef.
7256 (DEF_VEC_O (converted_character_d)): Remove.
7257 (count_next_character): Use std::vector.
7258 (print_converted_chars_to_obstack): Likewise.
7259 (generic_printstr): Likewise.
7260
7261 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
7262
7263 * xml-support.h (struct gdb_xml_value): Add constructor.
7264 <value>: Change type to unique_xmalloc_ptr.
7265 (gdb_xml_value_s): Remove typedef.
7266 (DEF_VEC_O (gdb_xml_value_s)): Remove.
7267 (gdb_xml_element_start_handler): Change parameter type to
7268 std::vector.
7269 (xml_find_attribute): Likewise.
7270 * xml-support.c (xml_find_attribute): Change parameter type to
7271 std::vector and adjust.
7272 (gdb_xml_values_cleanup): Remove.
7273 (gdb_xml_parser::start_element): Adjust to std::vector.
7274 (xinclude_start_include): Change paraeter type to std::vector
7275 and adjust.
7276 * btrace.c (check_xml_btrace_version): Likewise.
7277 (parse_xml_btrace_block): Likewise.
7278 (parse_xml_btrace_pt_config_cpu): Likewise.
7279 (parse_xml_btrace_pt): Likewise.
7280 (parse_xml_btrace_conf_bts): Likewise.
7281 (parse_xml_btrace_conf_pt): Likewise.
7282 * memory-map.c (memory_map_start_memory): Likewise.
7283 (memory_map_start_property): Likewise.
7284 * osdata.c (osdata_start_osdata): Likewise.
7285 (osdata_start_item): Likewise.
7286 (osdata_start_column): Likewise.
7287 * remote.c (start_thread): Likewise.
7288 * solib-aix.c (library_list_start_library): Likewise.
7289 (library_list_start_list): Likewise.
7290 * solib-svr4.c (library_list_start_library): Likewise.
7291 (svr4_library_list_start_list): Likewise.
7292 * solib-target.c (library_list_start_segment): Likewise.
7293 (library_list_start_section): Likewise.
7294 (library_list_start_library): Likewise.
7295 (library_list_start_list): Likewise.
7296 * tracepoint.c (traceframe_info_start_memory): Likewise.
7297 (traceframe_info_start_tvar): Likewise.
7298 * xml-syscall.c (syscall_start_syscall): Likewise.
7299 * xml-tdesc.c (tdesc_start_target): Likewise.
7300 (tdesc_start_feature): Likewise.
7301 (tdesc_start_reg): Likewise.
7302 (tdesc_start_union): Likewise.
7303 (tdesc_start_struct): Likewise.
7304 (tdesc_start_flags): Likewise.
7305 (tdesc_start_enum): Likewise.
7306 (tdesc_start_field): Likewise.
7307 (tdesc_start_enum_value): Likewise.
7308 (tdesc_start_vector): Likewise.
7309
7310 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
7311
7312 * extension.h (struct xmethod_worker) <clone>: Remove.
7313 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
7314 Remove.
7315 (python_xmethod_worker::clone): Remove.
7316 * valops.c (find_overload_match): Use std::move instead of
7317 clone.
7318
7319 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
7320
7321 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
7322 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
7323 <free_xmethod_worker_data>: Remove.
7324 <get_matching_xmethod_workers>: Chance VEC to std::vector.
7325 <get_xmethod_arg_types>: Remove.
7326 <get_xmethod_result_type>: Remove.
7327 <invoke_xmethod>: Remove.
7328 * extension.c (new_xmethod_worker): Remove.
7329 (clone_xmethod_worker): Remove.
7330 (get_matching_xmethod_workers): Return void, pass std::vector by
7331 pointer.
7332 (get_xmethod_arg_types): Rename to...
7333 (xmethod_worker::get_arg_types): ... this, and adjust.
7334 (get_xmethod_result_type): Rename to...
7335 (xmethod_worker::get_result_type): ... this, and adjust.
7336 (invoke_xmethod): Remove.
7337 (free_xmethod_worker): Remove.
7338 (free_xmethod_worker_vec): Remove.
7339 * extension.h (enum ext_lang_rc): Move here from
7340 extension-priv.h.
7341 (struct xmethod_worker): Add constructor and destructor.
7342 <data>: Remove.
7343 <value>: Remove.
7344 <invoke, clone, do_get_result_type, do_get_arg_types>: New
7345 virtual pure methods.
7346 <get_arg_types, get_result_type>: New methods.
7347 (xmethod_worker_ptr): Remove typedef.
7348 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
7349 (xmethod_worker_vec): Remove typedef.
7350 (xmethod_worker_up): New typedef.
7351 (invoke_xmethod): Remove.
7352 (clone_xmethod_worker): Remove.
7353 (free_xmethod_worker): Remove.
7354 (free_xmethod_worker_vec): Remove.
7355 (get_xmethod_arg_types): Remove.
7356 (get_xmethod_result_type): Remove.
7357 * valops.c (find_method_list): Use std::vector, don't use
7358 intermediate vector.
7359 (value_find_oload_method_list): Use std::vector.
7360 (find_overload_match): Use std::vector.
7361 (find_oload_champ): Use std::vector.
7362 * value.c (value_free): Use operator delete.
7363 (value_of_xmethod): Rename to...
7364 (value_from_xmethod): ... this. Don't assign
7365 xmethod_worker::value, take rvalue-reference.
7366 (result_type_of_xmethod): Adjust.
7367 (call_xmethod): Adjust.
7368 * value.h: Include extension.h.
7369 (struct xmethod_worker): Don't forward-declare.
7370 (value_of_xmethod): Rename to...
7371 (value_from_xmethod): ... this, take rvalue-reference.
7372 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
7373 (struct python_xmethod_worker): ... this, add constructor and
7374 destructor.
7375 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
7376 (gdbpy_free_xmethod_worker_data): Rename to...
7377 (python_xmethod_worker::~python_xmethod_worker): ... this and
7378 adjust.
7379 (gdbpy_clone_xmethod_worker_data): Rename to...
7380 (python_xmethod_worker::clone): ... this and adjust.
7381 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
7382 temporary vector.
7383 (gdbpy_get_xmethod_arg_types): Rename to...
7384 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
7385 (gdbpy_get_xmethod_result_type): Rename to...
7386 (python_xmethod_worker::do_get_result_type): ... this and
7387 adjust.
7388 (gdbpy_invoke_xmethod): Rename to...
7389 (python_xmethod_worker::invoke): ... this and adjust.
7390 (new_python_xmethod_worker): Rename to...
7391 (python_xmethod_worker::python_xmethod_worker): ... this and
7392 adjust.
7393 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
7394 Remove.
7395 (gdbpy_free_xmethod_worker_data): Remove.
7396 (gdbpy_get_matching_xmethod_workers): Use std::vector.
7397 (gdbpy_get_xmethod_arg_types): Remove.
7398 (gdbpy_get_xmethod_result_type): Remove.
7399 (gdbpy_invoke_xmethod): Remove.
7400 * python/python.c (python_extension_ops): Remove obsolete
7401 callbacks.
7402
7403 2018-01-05 Pedro Alves <palves@redhat.com>
7404
7405 PR gdb/18653
7406 * common/signals-state-save-restore.c
7407 (save_original_signals_state): New parameter 'quiet'. Warn if we
7408 find a custom handler preinstalled, instead of internal erroring.
7409 But only warn if !quiet.
7410 * common/signals-state-save-restore.h
7411 (save_original_signals_state): New parameter 'quiet'.
7412 * main.c (captured_main_1): Move save_original_signals_state call
7413 after option handling, and pass QUIET.
7414
7415 2018-01-05 Pedro Alves <palves@redhat.com>
7416
7417 * spu-tdep.c (spu_catch_start): Pass
7418 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
7419
7420 2018-01-05 Pedro Alves <palves@redhat.com>
7421
7422 PR gdb/22670
7423 * ada-lang.c (literal_symbol_name_matcher): New function.
7424 (ada_get_symbol_name_matcher): Use it for
7425 symbol_name_match_type::SEARCH_NAME.
7426 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
7427 it down instead of assuming symbol_name_match_type::FULL.
7428 * block.h (block_lookup_symbol): New parameter 'match_type'.
7429 * c-valprint.c (print_unpacked_pointer): Use
7430 lookup_symbol_search_name instead of lookup_symbol.
7431 * compile/compile-object-load.c (get_out_value_type): Pass down
7432 symbol_name_match_type::SEARCH_NAME.
7433 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
7434 symbol_name_match_type::FULL.
7435 * cp-support.c (cp_get_symbol_name_matcher): Handle
7436 symbol_name_match_type::SEARCH_NAME.
7437 * infrun.c (insert_exception_resume_breakpoint): Use
7438 lookup_symbol_search_name.
7439 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
7440 * psymtab.c (maintenance_check_psymtabs): Use
7441 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
7442 * stack.c (print_frame_args): Use lookup_symbol_search_name and
7443 SYMBOL_SEARCH_NAME.
7444 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
7445 if symbol_name_match_type::SEARCH_NAME.
7446 (lookup_symbol_in_language): Pass down
7447 symbol_name_match_type::FULL.
7448 (lookup_symbol_search_name): New.
7449 (lookup_language_this): Pass down
7450 symbol_name_match_type::SEARCH_NAME.
7451 (lookup_symbol_aux, lookup_local_symbol): New parameter
7452 'match_type'. Pass it down.
7453 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
7454 (lookup_symbol_search_name): New declaration.
7455 (lookup_symbol_in_block): New 'match_type' parameter.
7456
7457 2018-01-05 Pedro Alves <palves@redhat.com>
7458
7459 PR gdb/22670
7460 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
7461 ada_lookup_symbol.
7462 (ada_lookup_symbol): Reimplement in terms of
7463 ada_lookup_symbol_list, bits factored out from
7464 ada_lookup_encoded_symbol.
7465
7466 2018-01-05 Joel Brobecker <brobecker@adacore.com>
7467
7468 * ada-exp.y (write_object_renaming): When subscripting an array
7469 using a symbol as the index, pass the block in call to
7470 ada_lookup_encoded_symbol when looking that symbol up.
7471
7472 2018-01-05 Jerome Guitton <guitton@adacore.com>
7473
7474 * ada-lang.c (ada_array_length): Use ada_index_type instead of
7475 TYPE_INDEX_TYPE.
7476
7477 2018-01-05 Joel Brobecker <brobecker@adacore.com>
7478
7479 * ada-lang.c (ada_to_fixed_value_create): Add handling of
7480 the case where VALUE_LVAL (val0) is not lval_memory.
7481
7482 2018-01-05 Xavier Roirand <roirand@adacore.com>
7483
7484 * ada-valprint.c (print_optional_low_bound): Handle
7485 character-indexed array printing like boolean-indexed array
7486 printing.
7487
7488 2018-01-05 Joel Brobecker <brobecker@adacore.com>
7489
7490 * NEWS: Create a new section for the next release branch.
7491 Rename the section of the current branch, now that it has
7492 been cut.
7493
7494 2018-01-05 Joel Brobecker <brobecker@adacore.com>
7495
7496 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
7497 * version.in: Bump version to 8.1.50.DATE-git.
7498
7499 2018-01-03 Xavier Roirand <roirand@adacore.com>
7500
7501 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
7502 Add field.
7503 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
7504 Add field.
7505 (default_exception_support_info) <catch_handlers_sym>: Add field.
7506 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
7507 (ada_exception_name_addr_1): Add "catch handlers" handling.
7508 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
7509 Update all callers.
7510 (create_excep_cond_exprs) <ex>: Add parameter.
7511 (re_set_exception): Update create_excep_cond_exprs call.
7512 (print_it_exception, print_one_exception, print_mention_exception)
7513 (print_recreate_exception): Add "catch handler" handling.
7514 (allocate_location_catch_handlers, re_set_catch_handlers)
7515 (check_status_catch_handlers, print_it_catch_handlers)
7516 (print_one_catch_handlers, print_mention_catch_handlers)
7517 (print_recreate_catch_handlers): New function.
7518 (catch_handlers_breakpoint_ops): New variable.
7519 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
7520 Add parameter. Add "catch handler" handling.
7521 (ada_exception_sym_name, ada_exception_breakpoint_ops):
7522 Add "catch handler" handling.
7523 (ada_exception_catchpoint_cond_string): Add "catch handler"
7524 handling.
7525 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
7526 call.
7527 (catch_ada_handlers_command): New function.
7528 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
7529 operations structure.
7530 (_initialize_ada_language): Add "catch handlers" command entry.
7531 * NEWS: Document "catch handlers" feature.
7532
7533 2018-01-02 Joel Brobecker <brobecker@adacore.com>
7534
7535 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
7536 account when creating the array type of the slice.
7537 (ada_value_slice): Likewise.
7538
7539 2018-01-02 Joel Brobecker <brobecker@adacore.com>
7540
7541 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
7542 New enum value.
7543 (create_array_type_with_stride): Add byte_stride_prop parameter.
7544 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
7545 New parameter. Update all callers in this file.
7546 (array_type_has_dynamic_stride): New function.
7547 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
7548 of arrays with dynamic byte strides.
7549 * dwarf2read.c (read_array_type): Add support for dynamic
7550 DW_AT_byte_stride attributes.
7551
7552 2018-01-02 Joel Brobecker <brobecker@adacore.com>
7553
7554 * dwarf2read.c (read_unspecified_type): Treat
7555 DW_TAG_enumeration_type DIEs from Ada units as stubs.
7556
7557 2018-01-01 Joel Brobecker <brobecker@adacore.com>
7558
7559 Update copyright year range in all GDB files.
7560
7561 2018-01-01 Joel Brobecker <brobecker@adacore.com>
7562
7563 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
7564 and gdb/testsuite/gdb.base/step-line.c.
7565
7566 2018-01-01 Joel Brobecker <brobecker@adacore.com>
7567
7568 * copyright.py (main): Dump the contents of
7569 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
7570 even if BY_HAND is empty.
7571
7572 2018-01-01 Joel Brobecker <brobecker@adacore.com>
7573
7574 * top.c (print_gdb_version): Update Copyright year in version
7575 message.
7576
7577 2018-01-01 Joel Brobecker <brobecker@adacore.com>
7578
7579 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
7580
7581 For older changes see ChangeLog-2017.
7582 \f
7583 Local Variables:
7584 mode: change-log
7585 left-margin: 8
7586 fill-column: 74
7587 version-control: never
7588 coding: utf-8
7589 End:
This page took 0.188983 seconds and 4 git commands to generate.