Use policies for code generation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-08-10 Keith Seitz <keiths@redhat.com>
2
3 * compile/compile-c-support.c (add_code_header, add_code_footer):
4 Move into policy class.
5 (c_push_user_expression, pop_user_expression_nop)
6 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
7 (compile_program): New host class.
8 (c_compile_program): New typedef.
9 (c_compute_porgram): Use c_compile_program.
10
11 2018-08-10 Keith Seitz <keiths@redhat.com>
12
13 * compile/compile-internal.h (compile_instance::~compile_instance):
14 Remove calls to htab_delete.
15 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
16 * compile.c (compile_instance::compile_instance): Initialize
17 htab unique pointers.
18 (compile_instance::get_cached_type, compile_instance::insert_type)
19 (compile_instance::error_symbol_once): Update for unique_ptr.
20
21 2018-08-10 Keith Seitz <keiths@redhat.com>
22
23 * compile/compile-c-symbols.c (struct symbol_error)
24 (hash_symbol_error, eq_symbol_error, del_symbol_error)
25 (compile_instance::insert_symbol_error)
26 (compile_instance::error_symbol_once): Move to ...
27 * compile/compile.c: ... here.
28
29 2018-08-10 Keith Seitz <keiths@redhat.com>
30
31 * compile/compile-c-support.c (c_get_compile_context): Use `new'
32 instead of `new_compile_instance'.
33 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
34 Update description.
35 If the symbol error map is not initialized, create it.
36 (generate_c_for_for_one_symbol): Do not check/initialize
37 the symbol error map.
38 * compile/compile-c-types.c (compile_c_instance): Make a class.
39 Update all callers.
40 (compile_instance::compile_instance): Initialize the type cache.
41 (get_cached_type): New function.
42 (insert_type): Update description.
43 (compile_c_instance::m_default_cflags): Define.
44 (convert_type): Update description. Use get_cached_type.
45 (delete_instance): Moved to destructor.
46 (new_compile_instance): Moved to constructor.
47 * compile/compile-c.h (compile_c_instance): Make class inheriting
48 from compile_instance.
49 <base>: Remove field.
50 <type_map, symbol_err_map>: Move to base class.
51 <c_plugin>: Rename to `m_plugin' and remove pointer type.
52 * compile/compile-internal.h (compile_instance): Make class.
53 <type_map_t, symbol_err_map_t>: Define.
54 <fe>: Rename to `m_gcc_fe'.
55 <scope, block, gcc_target_options>: Add `m_' prefix.
56 <m_type_map, m_symbol_err_map>: New fields, moved from
57 compile_c_instance.
58 <destroy>: Remove.
59 (convert_type, new_compile_instance): Remove.
60 * compile/compile.c (cleanup_compile_instance): Remove.
61 (compile_to_object): Use unique_ptr to eliminate cleanups.
62 (compile_instance::set_print_callback, compile_instance::version)
63 (compile_instance::set_verbose)
64 (compile_instance::set_driver_filename)
65 (compile_instance::set_triplet_regexp)
66 (compile_instance::set_arguments)
67 (compile_instance::set_source_file)
68 (compile_instance::compile): Define.
69
70 2018-08-10 Keith Seitz <keiths@redhat.com>
71
72 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
73 * compile/compile-c-types.c: Define GCC_METHODN macros and include
74 gcc-c-fe.def to define C plugin.
75 (delete_instance): Delete `c_plugin'.
76 (new_compile_instance): Initialize `c_plugin'.
77 * compile/compile-c.h: Include gcc_c_plugin.h.
78 (struct compile_c_instance) <c_plugin>: New member.
79 * gcc-c-plugin.h: New file.
80 Update all callers with API change.
81
82 2018-08-10 Keith Seitz <keiths@redhat.com>
83
84 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
85 (HFILES_NO_SRCDIR): ... to here.
86 Add compile-internal.h and compile-c.h.
87 * compile/compile-c-support.c: Include compile-c.h.
88 * compile/compile-c-symbols.c: Include compile-c.h.
89 (generate_c_for_variable_locations): Update comment.
90 * compile/compile-c-types.c: Include compile-c.h.
91 * compile/compile-c.h: New file -- moved C language declarations
92 from other files here.
93 * compile/compile-internal.h: Do not include hashtab.h or
94 common/enum-flags.h.
95 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
96 (gcc_convert_symbol, gcc_symbol_address)
97 (generate_c_for_variable_locations, c_get_mode_for_size)
98 (c_get_range_decl_name): Definitions moved to compile-c.h.
99 * compile/compile-loc2c.c: Include compile-c.h.
100
101 2018-08-10 Keith Seitz <keiths@redhat.com>
102
103 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
104 (c_symbol_substitution_name): ... this.
105 Update all callers.
106
107 2018-08-10 Keith Seitz <keiths@redhat.com>
108
109 * compile/compile-c-support.c (c_compute_program): Use
110 unique_xmalloc_ptr to eliminate cleanup.
111 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
112 Return a unique_xmalloc_ptr and eliminate cleanup.
113 * compile/compile-internal.h (generate_c_for_variable_locations):
114 Return unique_xmalloc_ptr and update description.
115
116 2018-08-10 Alan Hayward <alan.hayward@arm.com>
117
118 * corelow.c (core_target::get_core_register_section): Rename
119 min_size to section_min_size.
120
121 2018-08-09 Jim Wilson <jimw@sifive.com>
122
123 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
124 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
125 * NEWS: Mention new GNU/Linux RISC-V target.
126 * configure.host: Add riscv*-*-linux*.
127 * configure.nat: Add riscv*.
128 * configure.tgt: Add riscv*-*-linux*.
129 * riscv-linux-nat.c: New file.
130 * riscv-linux-tdep.c: New file.
131
132 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * infrun.c (resume): Make static, add forward declaration.
135 (proceed): Update header comment.
136 * infrun.h (resume): Delete declaration.
137
138 2018-08-09 Tom Tromey <tom@tromey.com>
139
140 * riscv-tdep.h: Minor formatting fixes.
141
142 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
143
144 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
145 * dwarf-index-cache.c (create_dir_and_check): Likewise.
146 (test_mkdir_recursive): Likewise.
147 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
148
149 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * valarith.c (value_subscripted_rvalue): If an array is not in
152 memory, and we don't know the upper bound, then we can't know that
153 the requested element exists or not.
154
155 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
156
157 * target.c (str_comma_list_concat_elem): Fix typo in comment.
158 (target_options_to_string): Add comment.
159
160 2018-08-08 Tom Tromey <tom@tromey.com>
161
162 * unittests/scoped_mmap-selftests.c: Check result of "write".
163
164 2018-08-08 Jim Wilson <jimw@sifive.com>
165
166 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
167 (decode_register_index_short): New.
168 (decode_j_type_insn, decode_cj_type_insn): New.
169 (decode_b_type_insn, decode_cb_type_insn): New.
170 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
171 local xlen. Check xlen when decoding ambiguous compressed insns. In
172 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
173 is_c_sw_insn instead of is_sw_insn.
174 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
175 (riscv_software_single_step): New.
176 * riscv-tdep.h (riscv_software_single_step): Declare.
177
178 * riscv-tdep.c (riscv_isa_xlen): Drop static.
179 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
180
181 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 PR gdb/18050:
184 * target.c (dispose_inferior): Don't dispose of inferiors that are
185 already killed.
186
187 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
188
189 * remote.c (remote_target::download_tracepoint): Change char* to
190 const char*.
191
192 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * target.h (target_options_to_string): Return an std::string.
195 * target.c (str_comma_list_concat_elem): Return void, use
196 std::string.
197 (do_option): Likewise.
198 (target_options_to_string): Return an std::string.
199 * linux-nat.c (linux_nat_target::wait): Adjust.
200 * target-debug.h (target_debug_print_options): Adjust.
201
202 2018-08-07 Tom Tromey <tom@tromey.com>
203
204 * Makefile.in (CPPFLAGS): New variable.
205 (INTERNAL_CPPFLAGS): Use it.
206
207 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
208
209 * NEWS: Mention the index cache.
210
211 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
212
213 * common/pathstuff.h (get_standard_cache_dir): New.
214 * common/pathstuff.c (get_standard_cache_dir): New.
215 * build-id.h (build_id_to_string): New.
216 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
217 DEBUG_STR_SUFFIX): Move to here.
218 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
219 DEBUG_STR_SUFFIX): Move from there.
220 (write_psymtabs_to_index): Make non-static, add basename
221 parameter. Write to temporary files, rename when done.
222 (save_gdb_index_command): Adjust call to
223 write_psymtabs_to_index.
224 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
225 field.
226 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
227 (get_gdb_index_contents_from_cache): New.
228 (get_gdb_index_contents_from_cache_dwz): New.
229 (dwarf2_initialize_objfile): Read index from cache.
230 (dwarf2_build_psymtabs): Save to index.
231 * dwarf-index-cache.h: New file.
232 * dwarf-index-cache.c: New file.
233 * dwarf-index-write.h: New file.
234
235 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
236
237 * gnulib/aclocal.m4: Re-generate.
238 * gnulib/config.in: Re-generate.
239 * gnulib/configure: Re-generate.
240 * gnulib/import/Makefile.am: Re-generate.
241 * gnulib/import/Makefile.in: Re-generate.
242 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
243 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
244 * gnulib/import/m4/mkdir.m4: New file.
245 * gnulib/import/mkdir.c: New file.
246 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
247 module.
248
249 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
250
251 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
252 * common/scoped_mmap.c: New file.
253 * common/scoped_mmap.h (destroy): New method.
254 (~scoped_mmap, reset): Use destroy.
255 (scoped_mmap): New move constructor.
256 (mmap_file): New declaration.
257 * unittests/scoped_mmap-selftests.c (test_normal,
258 test_invalid_filename, run_tests): New functions.
259 (_initialize_scoped_mmap_selftests): Register selftest.
260
261 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
262
263 * dwarf2read.c (read_gdb_index_from_section): Rename to...
264 (read_gdb_index_from_buffer): ... this. Remove section
265 parameter, add buffer parameter.
266 (get_gdb_index_contents_ftype,
267 get_gdb_index_contents_dwz_ftype): New typedefs.
268 (dwarf2_read_gdb_index): Add callback parameters to get the
269 index contents.
270 (get_gdb_index_contents_from_section): New.
271 (dwarf2_initialize_objfile): Update call to
272 dwarf2_read_gdb_index.
273
274 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
275
276 * common/filestuff.h (gdb_fopen_cloexec): New overload.
277 (gdb_open_cloexec): Likewise.
278 * nat/linux-osdata.c (command_from_pid): Use string_printf.
279 (commandline_from_pid): Likewise.
280 (linux_xfer_osdata_threads): Likewise.
281 (linux_xfer_osdata_fds): Likewise.
282 * ada-lang.c (is_package_name): Likewise.
283 * auxv.c (procfs_xfer_auxv): Likewise.
284 * breakpoint.c (print_one_breakpoint_location): Use
285 uiout::field_fmt.
286 (print_one_catch_solib): Use string_printf.
287 * coff-pe-read.c (add_pe_exported_sym): Likewise.
288 (add_pe_forwarded_sym): Likewise.
289 * dwarf2read.c (create_type_unit_group): Likewise.
290 (build_error_marker_type): Likewise.
291 * infcall.c (get_function_name): Likewise.
292 * valprint.c (print_converted_chars_to_obstack): Likewise.
293 * xtensa-tdep.c (xtensa_register_type): Likewise.
294
295 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
296
297 * remote.c (remote_target::download_tracepoint): Fix format
298 string errors.
299
300 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
301
302 * tracefile.c: Include common/byte-vector.h.
303 (trace_save): Change type of buf to gdb::byte_vector. Initialize
304 with trace_regblock_size if needed. Update uses of buf.
305
306 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
307
308 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
309 std::vector<unsigned char>.
310 * tracepoint.c (collection_list::collection_list): Remove
311 m_regs_mask initializer from initializer list. Resize
312 m_regs_mask using the largest remote register number.
313 (collection_list::add_remote_register): Remove size check on
314 m_regs_mask. Use at to access element.
315 (collection_list::stringify): Change type of temp_buf to
316 gdb::char_vector. Update uses of temp_buf. Resize if needed to
317 stringify the register mask. Use pack_hex_byte for the register
318 mask.
319
320 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
321
322 * tracepoint.h (class collection_list) <add_register>: Remove.
323 <add_remote_register, add_ax_registers, add_local_register>:
324 Declare.
325 <add_memrange>: Add scope parameter.
326 * tracepoint.c (encode_actions_1): Likewise.
327 (collection_list::add_register): Rename to ...
328 (collection_list::add_remote_register): ... this. Update
329 comment.
330 (collection_list::add_ax_registers, add_local_register): New
331 methods.
332 (collection_list::add_memrange): Add scope parameter. Call
333 add_local_register instead of add_register.
334 (finalize_tracepoint_aexpr): New function.
335 (collection_list::collect_symbol): Update calls to add_memrange.
336 Call add_local_register instead of add_register. Call
337 add_ax_registers. Call finalize_tracepoint_aexpr.
338 (encode_actions_1): Get remote regnos for $reg action. Call
339 add_remote_register, add_ax_registers, and add_local_register.
340 Update call to add_memrange. Call finalize_tracepoint_aexpr.
341 (validate_actionline): Call finalize_tracepoint_aexpr.
342
343 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
344
345 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
346 Replace array buf with gdb::char_vector buf, of size
347 get_remote_packet_size (). Replace references to buf and
348 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
349 and xsnprintf with snprintf. Raise errors if the buffer is too
350 small.
351
352 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
353
354 * remote.c (remote_target::download_tracepoint): Fix the has_more
355 predicate in the QTDP action list iteration.
356
357 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
358
359 * remote.c (remote_target::download_tracepoint): Fix indentation
360 in for block.
361
362 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
363
364 * proc-api.c (_initialize_proc_api): Remove c, unused.
365 * procfs.c (procfs_init_inferior): Remove signals, unused.
366 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
367 unused.
368
369 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
370 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
373 'W_STOPCODE (0)' as this could be ambiguous.
374
375 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
376
377 * ser-tcp.c (net_open): Fix thinko when deciding whether to
378 disable TCP's Nagle algorithm (use "ai_protocol" instead of
379 "ai_socktype").
380
381 2018-08-02 Tom Tromey <tom@tromey.com>
382
383 PR symtab/16842.
384 * dwarf2read.c (read_func_scope): Set symtab on template parameter
385 symbols.
386 (process_structure_scope): Likewise.
387
388 2018-08-02 Xavier Roirand <roirand@adacore.com>
389
390 PR gdb/22629:
391 * darwin-nat.c (darwin_kill_inferior): Fix handling of
392 kill inferior.
393
394 2018-08-02 Tom Tromey <tom@tromey.com>
395
396 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
397 (darwin_suspend_inferior, darwin_resume_inferior)
398 (darwin_decode_notify_message, darwin_resume_inferior_threads)
399 (darwin_check_new_threads): Check result of get_darwin_inferior.
400
401 2018-07-31 Joel Brobecker <brobecker@adacore.com>
402
403 GDB 8.1.1 released.
404
405 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
406
407 * varobj.c (varobj_get_path_expr_parent): Report an error if
408 parent is a dynamic varobj.
409
410 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
411
412 * gnulib/aclocal.m4: Re-generate.
413 * gnulib/config.in: Re-generate.
414 * gnulib/configure: Re-generate.
415 * gnulib/import/Makefile.in: Re-generate.
416 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
417 * gnulib/import/m4/onceonly.m4: Re-generate.
418
419 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
420
421 * target-descriptions.c (struct xml_test_tdesc): New.
422 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
423 (record_xml_tdesc): Update.
424 (maintenance_check_xml_descriptions): Update.
425 * target-descriptions.h (record_xml_tdesc): Update comment.
426
427 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
430 checking array bounds are defined.
431
432 2018-07-30 Tom Tromey <tom@tromey.com>
433
434 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
435 irreflexivity violation.
436
437 2018-07-30 Tom Tromey <tom@tromey.com>
438
439 * cli/cli-decode.c (lookup_cmd): Remove lint code.
440 * value.c (unpack_long): Remove lint code.
441 * valops.c (value_ind): Remove lint code.
442 * valarith.c (value_x_binop, value_x_unop, value_equal)
443 (value_pos): Remove lint code.
444
445 2018-07-28 Tom de Vries <tdevries@suse.de>
446
447 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
448 with undefined upper bound as <optimized out>.
449
450 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
451
452 * gcore.in: Rename variable "name" to "prefix". Expand
453 "usage" text.
454
455 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
456
457 * windows-nat.c (windows_nat_target::create_inferior): Update to
458 call close() in global namespace.
459
460 2018-07-26 Tom Tromey <tom@tromey.com>
461
462 * dwarf-index-write.c (add_address_entry): Don't add objfile
463 offsets.
464 * dbxread.c (find_stab_function): Rename from
465 find_stab_function_addr. Return a bound_minimal_symbol.
466 (read_dbx_symtab): Use raw_text_low, raw_text_high.
467 Don't add objfile offsets.
468 (end_psymtab): Use raw_text_low, raw_text_high,
469 MSYMBOL_VALUE_RAW_ADDRESS.
470 (read_ofile_symtab): Update.
471 (process_one_symbol): Update.
472 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
473 offsets.
474 (dw2_relocate): Remove.
475 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
476 searching addrmap.
477 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
478 Update.
479 (process_psymtab_comp_unit_reader, add_partial_symbol)
480 (add_partial_subprogram, dwarf2_ranges_read): Update.
481 (load_partial_dies): Update.
482 (add_address_entry): Don't add objfile offsets.
483 (dwarf2_build_include_psymtabs): Update.
484 (create_addrmap_from_aranges): Don't add objfile offsets.
485 (dw2_find_pc_sect_compunit_symtab): Update.
486 * mdebugread.c (parse_symbol): Don't add objfile offsets.
487 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
488 Update.
489 (parse_partial_symbols): Don't add objfile offsets. Use
490 raw_text_low, raw_text_high. Update.
491 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
492 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
493 or call 'relocate' quick function. Clear psymbol_map.
494 * psympriv.h (struct partial_symbol) <address>: Add section
495 offset.
496 <set_unrelocated_address>: Rename from set_address.
497 <raw_text_low, raw_text_high>: New methods.
498 <text_low, text_high>: Add objfile parameter.
499 (add_psymbol_to_bcache): Add 'section' parameter. Call
500 set_unrelocated_address.
501 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
502 (find_pc_psymbol): Update.
503 (fixup_psymbol_section, relocate_psymtabs): Remove.
504 (dump_psymtab, psym_functions): Update.
505 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
506 parameter.
507 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
508 (start_psymtab_common): Update.
509 * symfile-debug.c (debug_qf_relocate): Remove.
510 (debug_sym_quick_functions): Update.
511 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
512 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
513 Update.
514
515 2018-07-26 Tom Tromey <tromey@redhat.com>
516
517 * dbxread.c (end_psymtab): Use text_high_valid and
518 text_low_valid.
519 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
520 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
521 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
522 Update comment.
523 <text_low_valid, text_high_valid>: New fields.
524 <set_text_low, set_text_high>: Update.
525 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
526
527 2018-07-26 Tom Tromey <tom@tromey.com>
528
529 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
530 Update.
531 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
532 textlow and texthigh fields.
533 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
534 Update.
535 * mdebugread.c (parse_lines, parse_partial_symbols)
536 (psymtab_to_symtab_1): Update.
537 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
538 Rename fields. Update comment. Now private.
539 <text_low, text_high, set_text_low, set_text_high>: New methods.
540 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
541 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
542 (start_psymtab_common, maintenance_info_psymtabs)
543 (maintenance_check_psymtabs): Update.
544 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
545 texthigh fields.
546 (scan_xcoff_symtab): Update.
547
548 2018-07-26 Tom Tromey <tromey@redhat.com>
549
550 * psympriv.h (struct partial_symbol) <unrelocated_address,
551 address, set_address>: New methods.
552 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
553 (fixup_psymbol_section, relocate_psymtabs): Update.
554 (print_partial_symbols): Add 'objfile' parameter. Update.
555 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
556 Update.
557
558 2018-07-26 Tom Tromey <tom@tromey.com>
559
560 * dwarf-index-write.c (write_psymbols, debug_names::insert)
561 (debug_names::write_psymbols): Update.
562 * psympriv.h (struct partial_symbol): Derive from
563 general_symbol_info.
564 <obj_section>: New method.
565 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
566 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
567 (find_pc_sect_psymbol, fixup_psymbol_section)
568 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
569 (print_partial_symbols, recursively_search_psymtabs)
570 (compare_psymbols, psymbol_hash, psymbol_compare)
571 (add_psymbol_to_bcache, maintenance_check_psymtabs)
572 (psymbol_name_matches, psym_fill_psymbol_map): Update.
573
574 2018-07-26 Tom Tromey <tromey@redhat.com>
575
576 * dbxread.c (end_psymtab): Remove dead code.
577
578 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
581 DWARF unwinders are disabled.
582 * dwarf2-frame.c: Add dwarf2read.h include.
583 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
584 disabled.
585 (dwarf2_frame_unwinders_enabled_p): Define.
586 (show_dwarf_unwinders_enabled_p): New function.
587 (_initialize_dwarf2_frame): Register switch to control DWARF
588 unwinder use.
589 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
590 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
591 (show_dwarf_cmdlist): Remove static keyword.
592 * dwarf2read.h (set_dwarf_cmdlist): Declare.
593 (show_dwarf_cmdlist): Declare.
594 * NEWS: Document new feature.
595
596 2018-07-26 Tom de Vries <tdevries@suse.de>
597
598 PR breakpoints/23366
599 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
600
601 2018-07-26 Tom de Vries <tdevries@suse.de>
602
603 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
604 DW_AT_count can't be translated to a dynamic prop.
605
606 2018-07-25 Tom de Vries <tdevries@suse.de>
607
608 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
609 try/catch.
610
611 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
612
613 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
614
615 2018-07-25 Joel Brobecker <brobecker@adacore.com>
616
617 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
618
619 2018-07-24 Keith Seitz <keiths@redhat.comt
620
621 PR symtab/23010
622 * dwarf2read.c (dw2_add_symbol_to_list): New function.
623 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
624 instead of add_symbol_to_list.
625 (read_file_scope): Call prepare_one_comp_unit before reading
626 any other DIEs.
627
628 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
629
630 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
631
632 2018-07-24 Tom Tromey <tom@tromey.com>
633
634 * utils.c (malloc, realloc, free): Don't declare.
635 * configure, config.in: Rebuild.
636 * configure.ac: Don't check for declarations of free, malloc, or
637 realloc.
638
639 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * aarch64-linux-nat.c
642 (aarch64_linux_nat_target::stopped_data_address): Remove unused
643 variable.
644 * arm-linux-nat.c (fetch_regs): Likewise.
645 (store_regs): Likewise.
646 (fetch_vfp_regs): Likewise.
647 (store_vfp_regs): Likewise.
648 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
649 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
650 (arm_linux_nat_target::insert_watchpoint): Likewise.
651 (arm_linux_nat_target::remove_watchpoint): Likewise.
652 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
653 Likewise.
654 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
655 Likewise.
656 * ppc-linux-nat.c (fetch_register): Likewise.
657 (fetch_all_gp_regs): Likewise.
658 (fetch_ppc_registers): Likewise.
659 (store_all_gp_regs): Likewise.
660 (store_ppc_registers): Likewise.
661 (hwdebug_insert_point): Likewise.
662 (can_use_watchpoint_cond_accel): Likewise.
663 * remote-sim.c (gdb_os_write_stdout): Likewise.
664
665 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
666 Tom Tromey <tom@tromey.com>
667
668 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
669 test for it.
670 * configure: Rebuild.
671
672 2018-07-22 Tom Tromey <tom@tromey.com>
673
674 * regformats/regdat.sh: Define xmltarget_${name} inside
675 #ifndef IN_PROCESS_AGENT.
676
677 2018-07-22 Tom Tromey <tom@tromey.com>
678
679 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
680
681 2018-07-22 Tom Tromey <tom@tromey.com>
682
683 * symfile.c (reread_symbols): Notify iter, not objfile.
684
685 2018-07-22 Tom Tromey <tom@tromey.com>
686
687 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
688 Use arch_ops.
689 (ravenscar_thread_target::prepare_to_store): Likewise.
690
691 2018-07-22 Tom Tromey <tom@tromey.com>
692
693 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
694 unused variable. Call value_fetch_lazy when needed.
695 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
696 Remove unused variable. Call value_fetch_lazy when needed.
697
698 2018-07-22 Tom Tromey <tom@tromey.com>
699
700 * m32c-tdep.c (mark_dma): Return void.
701 (make_regs): Remove unused declarations.
702
703 2018-07-22 Tom Tromey <tom@tromey.com>
704
705 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
706 cmdscm_get_valid_command_smob_arg_unsafe for effect.
707 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
708 bkscm_get_valid_block_smob_arg_unsafe for effect.
709
710 2018-07-22 Tom Tromey <tom@tromey.com>
711
712 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
713 value_type.
714
715 2018-07-22 Tom Tromey <tom@tromey.com>
716
717 * windows-nat.c (saved_context): Conditionally define.
718 * remote.c (remote_target::remote_btrace_maybe_reopen):
719 Conditionally declare "warned".
720 * inflow.c (sigquit_ours): Conditionally define.
721 (new_tty): Move "tty" declaration inside #if.
722 * guile/guile.c (guile_datadir): Conditionally define.
723 * charset.c (set_be_le_names): Move some declarations inside #if.
724 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
725 #if.
726 (parse_xml_btrace_conf): Likewise.
727
728 2018-07-22 Tom Tromey <tom@tromey.com>
729
730 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
731
732 2018-07-22 Tom Tromey <tom@tromey.com>
733
734 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
735 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
736 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
737 * buildsym-legacy.c (get_macro_table): Remove unused variable.
738 * stack.c (frame_apply_level_command): Remove unused variable.
739 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
740 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
741 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
742 unused variable.
743 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
744 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
745 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
746 variable.
747 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
748 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
749 variable.
750 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
751 Remove unused variable.
752 * cli/cli-script.c (recurse_read_control_structure): Remove unused
753 variable.
754 * common/tdesc.c (print_xml_feature::visit): Remove unused
755 variable.
756 * compile/compile-object-load.c (store_regs): Remove unused
757 variables.
758 * complaints.c (clear_complaints): Remove unused variable.
759 * corelow.c (core_target_open): Remove unused variable.
760 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
761 variable.
762 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
763 variable.
764 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
765 variable.
766 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
767 variable.
768 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
769 variable.
770 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
771 variable.
772 * ia64-tdep.c (examine_prologue): Remove unused variable.
773 * infcall.c (run_inferior_call): Remove unused variable.
774 * inferior.c (exit_inferior): Remove unused variable.
775 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
776 * linespec.c (decode_line_2): Remove unused variable.
777 * linux-nat.c (super_close): Remove.
778 * linux-tdep.c (linux_info_proc): Remove unused variable.
779 * mi/mi-main.c (mi_execute_command): Remove unused variable.
780 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
781 Remove unused variable.
782 * parse.c (find_minsym_type_and_address): Remove unused variable.
783 * printcmd.c (info_symbol_command, printf_floating): Remove unused
784 variable.
785 * python/py-breakpoint.c (bppy_set_commands): Remove unused
786 variable.
787 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
788 variables.
789 * record-btrace.c (record_btrace_target::store_registers): Remove
790 unused variable.
791 (cmd_show_record_btrace_cpu): Remove unused variable.
792 * riscv-tdep.c (riscv_register_reggroup_p)
793 (riscv_push_dummy_call, riscv_return_value): Remove unused
794 variable.
795 * rust-exp.y (literal): Remove unused variable.
796 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
797 unused variable.
798 <STRUCTOP_ANONYMOUS>: Likewise.
799 * s390-linux-tdep.c (s390_linux_init_abi_31)
800 (s390_linux_init_abi_64): Remove unused variable.
801 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
802 (file_select_thread, net_windows_open, _initialize_ser_windows):
803 Remove unused variables.
804 * symtab.c (find_pc_sect_line): Remove unused variable.
805 * target-memory.c (compute_garbled_blocks): Remove unused
806 variable.
807 (target_write_memory_blocks): Remove unused variable.
808 * target.c (target_stack::unpush): Remove unused variables.
809 * tracepoint.c (start_tracing, all_tracepoint_actions)
810 (merge_uploaded_trace_state_variables)
811 (print_one_static_tracepoint_marker): Remove unused variable.
812 * unittests/basic_string_view/element_access/char/1.cc (test01):
813 Remove unused variable.
814 * windows-nat.c (windows_continue, windows_add_all_dlls)
815 (do_initial_windows_stuff, windows_nat_target::create_inferior):
816 Remove unused variables.
817
818 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
821 attr_profile in HAVE_ELF.
822 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
823 HAVE_ELF.
824
825 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
826
827 * frame.c (frame_register_unwind): Change parameter name.
828 (frame_unwind_register): Likewise.
829 (frame_unwind_register_value): Likewise.
830 (frame_unwind_register_signed): Likewise.
831 (frame_unwind_register_unsigned): Likewise.
832 * frame.h (frame_register_unwind): Likewise.
833 (frame_unwind_register): Likewise.
834 (frame_unwind_register_value): Likewise.
835 (frame_unwind_register_signed): Likewise.
836 (frame_unwind_register_unsigned): Likewise.
837 (frame_unwind_arch): Likewise.
838
839 2018-07-20 Maciej W. Rozycki <macro@mips.com>
840
841 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
842 ISA maintenance.
843
844 2018-07-20 Maciej W. Rozycki <macro@mips.com>
845
846 * mips-linux-nat.c (mips_linux_nat_target::read_description):
847 Call `get_ptrace_pid' rather than extracting the ptrace PID by
848 hand.
849
850 2018-07-20 Keith Seitz <keiths@redhat.com>
851
852 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
853 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
854 m_compunit_symtab, m_language>: Add "m_" prefix.
855 Update all uses.
856 * buildsym.c: Update all uses.
857
858 2018-07-20 Tom Tromey <tom@tromey.com>
859
860 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
861 * buildsym.h (record_line_ftype): Remove typedef.
862
863 2018-07-20 Tom Tromey <tom@tromey.com>
864
865 * buildsym-legacy.h (augment_type_symtab): Don't declare.
866 (end_expandable_symtab): Likewise.
867 (end_symtab_get_static_block): Likewise.
868 (end_symtab_from_static_block): Likewise.
869 * buildsym-legacy.c (augment_type_symtab): Remove.
870 (end_expandable_symtab): Remove.
871 (end_symtab_get_static_block): Remove.
872 (end_symtab_from_static_block): Remove.
873
874 2018-07-20 Tom Tromey <tom@tromey.com>
875
876 * dwarf2read.c: Include buildsym.h.
877 (struct dwarf2_cu) <builder>: New method.
878 (fixup_go_packaging): Update.
879 (process_full_comp_unit, process_full_type_unit): Update. Don't
880 use scoped_free_pendings.
881 (using_directives): Add "cu" parameter, remove "language".
882 (read_import_statement, setup_type_unit_groups, )
883 (read_func_scope, read_lexical_block_scope)
884 (dwarf2_record_block_ranges, read_namespace): Update.
885 (lnp_state_machine::lnp_state_machine): Add cu parameter.
886 (lnp_state_machine::handle_end_sequence): Update.
887 (class lnp_state_machine) <m_cu>: New member.
888 <m_record_line_callback>: Remove.
889 <m_currently_recording_lines>: New member.
890 (lnp_state_machine::handle_set_file): Update.
891 (noop_record_line): Remove.
892 (dwarf_record_line_p): Add cu parameter.
893 (dwarf_record_line_1, dwarf_finish_line): Likewise.
894 (lnp_state_machine::record_line)
895 (lnp_state_machine::lnp_state_machine)
896 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
897 (dwarf_decode_lines): Update.
898 (dwarf2_start_subfile): Add cu parameter.
899 (dwarf2_start_symtab, new_symbol): Update.
900 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
901 Remove dwarf2_per_objfile parameter.
902 (dwarf_decode_macros): Update.
903
904 2018-07-20 Tom Tromey <tom@tromey.com>
905
906 * stabsread.c (define_symbol): Update.
907 * buildsym-legacy.h (get_buildsym_compunit): Declare.
908 * dwarf2read.c (new_symbol): Update.
909 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
910 * cp-namespace.c: Include buildsym.h.
911 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
912 * buildsym-legacy.c (get_buildsym_compunit): New function.
913
914 2018-07-20 Tom Tromey <tom@tromey.com>
915
916 * xcoffread.c: Include buildsym-legacy.h.
917 * windows-nat.c: Include buildsym-legacy.h.
918 * stabsread.c: Include buildsym-legacy.h.
919 * mdebugread.c: Include buildsym-legacy.h.
920 * buildsym-legacy.h: New file.
921 * buildsym-legacy.c: New file, from buildsym.c.
922 * go32-nat.c: Include buildsym-legacy.h.
923 * dwarf2read.c: Include buildsym-legacy.h.
924 * dbxread.c: Include buildsym-legacy.h.
925 * cp-namespace.c: Include buildsym-legacy.h.
926 * coffread.c: Include buildsym-legacy.h.
927 * buildsym.h: Move some contents to buildsym-legacy.h.
928 * buildsym.c: Include buildsym-legacy.h. Move many functions to
929 buildsym-legacy.c.
930 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
931
932 2018-07-20 Tom Tromey <tom@tromey.com>
933
934 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
935 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
936 (buildsym_compunit::buildsym_compunit)
937 (buildsym_compunit::~buildsym_compunit)
938 (buildsym_compunit::get_macro_table): Define.
939
940 2018-07-20 Tom Tromey <tom@tromey.com>
941
942 * buildsym.c (reset_symtab_globals): Remove.
943 (buildsym_compunit::end_symtab_from_static_block): Update.
944 (buildsym_compunit::augment_type_symtab): Update.
945 (end_symtab_from_static_block): Call free_buildsym_compunit.
946 (augment_type_symtab, end_symtab, end_expandable_symtab):
947 Likewise.
948
949 2018-07-20 Tom Tromey <tom@tromey.com>
950
951 * arch-utils.c: Do not include buildsym.h.
952 * mipsread.c: Do not include buildsym.h.
953 * machoread.c: Do not include buildsym.h.
954 * elfread.c: Do not include buildsym.h.
955
956 2018-07-20 Tom Tromey <tom@tromey.com>
957
958 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
959 initialization.
960 (buildsym_compunit): Add new constructor.
961 (struct buildsym_compunit) <get_last_source_file, finish_block,
962 record_block_range, start_subfile, patch_subfile_names,
963 push_subfile, pop_subfile, record_line, get_compunit_symtab,
964 set_last_source_start_addr, get_last_source_start_addr,
965 get_local_using_directives, set_local_using_directives,
966 get_global_using_directives, outermost_context_p,
967 get_current_context_stack, get_context_stack_depth,
968 get_current_subfile, get_local_symbols, get_file_symbols,
969 get_global_symbols, record_debugformat, record_producer,
970 push_context, pop_context, end_symtab_get_static_block,
971 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
972 New public methods.
973 <record_pending_block, finish_block_internal, make_blockvector,
974 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
975 private methods.
976 Update all users.
977
978 2018-05-22 Tom Tromey <tom@tromey.com>
979
980 * buildsym.c (record_pending_block): Move earlier. Remove objfile
981 parameter.
982 (finish_block_internal): Update.
983
984 2018-07-20 Tom Tromey <tom@tromey.com>
985
986 * buildsym.c (record_pending_block): Move earlier. Remove objfile
987 parameter.
988 (finish_block_internal): Update.
989
990 2018-07-20 Tom Tromey <tom@tromey.com>
991
992 * buildsym.h (EXTERN): Don't define or undef.
993 * buildsym.c (EXTERN): Don't define.
994
995 2018-07-20 Tom Tromey <tom@tromey.com>
996
997 * buildsym.c: Remove TODO comment.
998
999 2018-07-20 Tom Tromey <tom@tromey.com>
1000
1001 * coffread.c (coff_symtab_read): Update.
1002 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1003 (xcoff_new_init): Update.
1004 * mipsread.c (mipscoff_new_init): Update.
1005 * mdebugread.c (mdebug_build_psymtabs): Update.
1006 * elfread.c (elf_new_init): Update.
1007 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1008 Update.
1009 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1010 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1011 (stabsect_build_psymtabs): Update.
1012 * buildsym.h (buildsym_init): Don't declare.
1013 * buildsym.c: Update comment.
1014 (prepare_for_building): Remove.
1015 (start_symtab, restart_symtab): Update.
1016 (reset_symtab_globals): Update comment.
1017 (buildsym_init): Remove.
1018
1019 2018-07-20 Tom Tromey <tom@tromey.com>
1020
1021 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
1022 * stabsread.c (patch_block_stabs, define_symbol, read_type)
1023 (read_enum_type, common_block_start, common_block_end)
1024 (cleanup_undefined_types_1, finish_global_stabs): Update.
1025 * mdebugread.c (psymtab_to_symtab_1): Update.
1026 * dwarf2read.c (fixup_go_packaging, read_func_scope)
1027 (read_lexical_block_scope, new_symbol): Update.
1028 * dbxread.c (process_one_symbol): Update.
1029 * coffread.c (coff_symtab_read, process_coff_symbol)
1030 (coff_read_enum_type): Update.
1031 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
1032 declare.
1033 (get_local_symbols, get_file_symbols, get_global_symbols): New
1034 functions.
1035 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
1036 m_global_symbols.
1037 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
1038 (~scoped_free_pendings): Update.
1039 (finish_block, prepare_for_building, reset_symtab_globals)
1040 (end_symtab_get_static_block, end_symtab_with_blockvector)
1041 (augment_type_symtab, push_context): Update.
1042 (get_local_symbols, get_file_symbols, get_global_symbols): New
1043 functions.
1044 (buildsym_init): Update.
1045
1046 2018-07-20 Tom Tromey <tom@tromey.com>
1047
1048 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
1049 (process_full_type_unit): Likewise.
1050 (dwarf2_start_symtab): Set list_in_scope.
1051
1052 2018-07-20 Tom Tromey <tom@tromey.com>
1053
1054 * dwarf2read.c (process_psymtab_comp_unit_reader)
1055 (build_type_psymtabs_reader): Do not set list_in_scope.
1056
1057 2018-07-20 Tom Tromey <tom@tromey.com>
1058
1059 * buildsym.c (free_pendings): Remove.
1060 (add_symbol_to_list, scoped_free_pendings)
1061 (finish_block_internal, buildsym_init): Update.
1062
1063 2018-07-20 Tom Tromey <tom@tromey.com>
1064
1065 * xcoffread.c (read_xcoff_symtab): Update.
1066 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
1067 Update.
1068 * dbxread.c (process_one_symbol): Update.
1069 * coffread.c (coff_symtab_read): Update.
1070 * buildsym.h (finish_block): Update.
1071 * buildsym.c (finish_block): Remove "listhead" argument.
1072 (end_symtab_get_static_block): Update.
1073
1074 2018-07-20 Tom Tromey <tom@tromey.com>
1075
1076 * buildsym.h (class scoped_free_pendings): Remove constructor.
1077 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
1078 method.
1079 <m_pending_block_obstack, m_pending_blocks>: New members.
1080 (pending_block_obstack, pending_blocks): Remove.
1081 (scoped_free_pendings::scoped_free_pendings): Default.
1082 (~scoped_free_pendings): Update.
1083 (free_pending_blocks): Remove.
1084 (finish_block_internal, record_pending_block, make_blockvector)
1085 (end_symtab_get_static_block, augment_type_symtab, push_context)
1086 (buildsym_init): Update.
1087
1088 2018-07-20 Tom Tromey <tom@tromey.com>
1089
1090 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
1091 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
1092 members.
1093 (pending_addrmap, pending_addrmap_obstack)
1094 (pending_addrmap_interesting): Remove.
1095 (scoped_free_pendings, record_block_range, make_blockvector)
1096 (prepare_for_building, reset_symtab_globals, buildsym_init):
1097 Update.
1098
1099 2018-07-20 Tom Tromey <tom@tromey.com>
1100
1101 * xcoffread.c (process_linenos): Update.
1102 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
1103 * mdebugread.c (psymtab_to_symtab_1): Update.
1104 * dwarf2read.c (setup_type_unit_groups)
1105 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
1106 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
1107 * dbxread.c (process_one_symbol): Update.
1108 * coffread.c (coff_symtab_read, enter_linenos)
1109 (process_coff_symbol): Update.
1110 * buildsym.h (current_subfile): Don't declare.
1111 (get_current_subfile): Declare.
1112 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
1113 member.
1114 (start_subfile, free_buildsym_compunit, push_subfile)
1115 (prepare_for_building, start_symtab): Update.
1116 (get_current_subfile): New function.
1117
1118 2018-07-20 Tom Tromey <tom@tromey.com>
1119
1120 * coffread.c (coff_symtab_read): Update.
1121 * xcoffread.c (read_xcoff_symtab): Update.
1122 * dwarf2read.c (new_symbol): Update.
1123 (read_func_scope, read_lexical_block_scope): Update.
1124 * dbxread.c (process_one_symbol): Update.
1125 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1126 (outermost_context_p): Remove macro.
1127 (outermost_context_p, get_current_context_stack)
1128 (get_context_stack_depth): Declare.
1129 (pop_context): Return struct context_stack.
1130 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1131 member.
1132 (context_stack_size): Remove.
1133 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1134 (prepare_for_building, end_symtab_get_static_block)
1135 (augment_type_symtab, push_context): Update.
1136 (pop_context): Return struct context_stack.
1137 (outermost_context_p, get_current_context_stack)
1138 (get_context_stack_depth): New functions.
1139 (buildsym_init): Update.
1140
1141 2018-07-20 Tom Tromey <tom@tromey.com>
1142
1143 * rust-exp.y: Now a pure parser. Update all rules.
1144 (%union): Move earlier.
1145 (current_parser, work_obstack): Remove globals.
1146 (rust_parser, ~rust_parser): Update.
1147 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1148 lex_character, lex_number, lex_string, lex_identifier,
1149 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1150 convert_name, convert_params_to_expression,
1151 convert_ast_to_expression, ast_basic_type, ast_operation,
1152 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1153 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1154 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1155 ast_array_type, ast_slice_type, ast_reference_type,
1156 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1157 (rust_parse): Update.
1158 (rustyyerror, rustyylex): Add parser parameter.
1159 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1160 (rust_lex_stringish_test, rust_lex_test_sequence)
1161 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1162 (rust_lex_test_push_back, rust_lex_tests): Update.
1163
1164 2018-07-19 Pedro Alves <palves@redhat.com>
1165
1166 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1167 gdb::unique_xmalloc_ptr.
1168 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1169 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1170 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1171 copy-initialization.
1172 * guile/scm-pretty-print.c (ppscm_print_children): Use
1173 gdb::unique_xmalloc_ptr instead of cleanups.
1174 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1175 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1176 gdb::unique_xmalloc_ptr.
1177 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1178 Adjust to use gdb::unique_xmalloc_ptr.
1179 * guile/scm-utils.c (extract_arg): Adjust.
1180 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1181 gdb::unique_xmalloc_ptr instead of a cleanup.
1182
1183 2018-07-19 Tom Tromey <tom@tromey.com>
1184
1185 * utils.c (do_value_free_to_mark)
1186 (make_cleanup_value_free_to_mark): Remove.
1187 * utils.h (make_cleanup_value_free_to_mark): Remove.
1188
1189 2018-07-19 Pedro Alves <palves@redhat.com>
1190
1191 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1192 forwarding reference.
1193
1194 2018-07-18 Pedro Alves <palves@redhat.com>
1195
1196 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1197 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1198 cleanup.
1199
1200 2018-07-18 Pedro Alves <palves@redhat.com>
1201
1202 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1203 exceptions.
1204 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1205 (gdbscm_wrap): New.
1206 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1207 directly instead of a cleanup.
1208 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1209 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1210 (vlscm_binop_gdbthrow): New, factored out from ...
1211 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1212 (vlscm_rich_compare): Use gdbscm_wrap.
1213 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1214 instead of a cleanup.
1215 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1216 cleanup.
1217 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1218 Use xfree directly instead of a cleanup.
1219 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1220 Adjust to use gdbscm_wrap and scoped_value_mark.
1221 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1222 (gdbscm_value_address, gdbscm_value_dereference)
1223 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1224 scoped_value_mark.
1225 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1226 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1227 scoped_value_mark.
1228 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1229 gdbscm_wrap and scoped_value_mark.
1230 (gdbscm_value_to_string): Use xfree directly instead of a
1231 cleanup. Move 'buffer' unique_ptr to TRY scope.
1232 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1233 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1234 scoped_value_mark.
1235 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1236 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1237 scoped_value_mark.
1238 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1239 gdbscm_wrap.
1240
1241 2018-07-18 Tom de Vries <tdevries@suse.de>
1242
1243 * findvar.c (default_read_var_value): Also resolve dynamic type for
1244 LOC_OPTIMIZED_OUT vars.
1245
1246 2018-07-18 Maciej W. Rozycki <macro@mips.com>
1247
1248 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1249 decoding.
1250
1251 2018-07-17 Tom Tromey <tom@tromey.com>
1252
1253 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1254 (compute_enum_list, pascm_set_param_value_x)
1255 (gdbscm_parameter_value): Update.
1256 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1257 (gdbscm_scm_to_host_string): Update.
1258 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1259 Update.
1260 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1261 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1262 * guile/scm-string.c (gdbscm_scm_to_string): Return
1263 unique_xmalloc_ptr.
1264 (gdbscm_scm_to_host_string): Likewise.
1265
1266 2018-07-17 Tom Tromey <tom@tromey.com>
1267
1268 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1269 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1270 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1271 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1272 unique_xmalloc_ptr.
1273
1274 2018-07-17 Tom Tromey <tom@tromey.com>
1275
1276 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1277 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1278 Update.
1279 * guile/scm-cmd.c (cmdscm_function): Update.
1280 * guile/scm-pretty-print.c
1281 (ppscm_print_exception_unless_memory_error): Update.
1282 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1283 Return unique_xmalloc_ptr.
1284
1285 2018-07-17 Tom Tromey <tom@tromey.com>
1286
1287 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1288 Use string_printf.
1289
1290 2018-07-17 Jim Wilson <jimw@sifive.com>
1291
1292 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1293 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1294 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1295 unecessary braces after EF_RISCV_RVC test. Delete call to
1296 set_gdbarch_decr_pc_after_break.
1297
1298 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1299 RISCV_LAST_FP_REGNUM + 1.
1300 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1301
1302 2018-07-17 Tom Tromey <tom@tromey.com>
1303
1304 * configure.ac: Remove --disable-gdbcli.
1305 * configure: Rebuild.
1306 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1307 (SUBDIR_CLI_CFLAGS): Remove.
1308 (SFILES): Use SUBDIR_CLI_SRCS.
1309 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1310
1311 2018-07-17 Tom Tromey <tom@tromey.com>
1312
1313 PR gdb/18624:
1314 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1315
1316 2018-07-16 Jim Wilson <jimw@sifive.com>
1317
1318 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1319
1320 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1321
1322 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1323 variable.
1324 (libunwind_frame_sniffer): Likewise.
1325 (libunwind_frame_prev_register): Likewise.
1326 (libunwind_sigtramp_frame_sniffer): Likewise.
1327 * ia64-tdep.c (ia64_access_reg): Likewise.
1328 (ia64_access_rse_reg): Likewise.
1329 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1330 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1331
1332 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1333
1334 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1335
1336 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1337
1338 * remote-sim.c (gdbsim_target::close,
1339 gdbsim_target::mourn_inferior): Remove unused variables.
1340
1341 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * ia64-tdep.c (ktab_buf): New global.
1344 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1345 (get_kernel_table): Adjust.
1346
1347 2018-07-16 Tom Tromey <tom@tromey.com>
1348
1349 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1350 * dwarf2read.c (using_directives, new_symbol): Use
1351 outermost_context_p.
1352 * dbxread.c (process_one_symbol): Use outermost_context_p.
1353 * coffread.c (coff_symtab_read): Use outermost_context_p.
1354
1355 2018-07-16 Tom Tromey <tom@tromey.com>
1356
1357 * dwarf2read.c (using_directives, read_func_scope)
1358 (read_lexical_block_scope): Update.
1359 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1360 * buildsym.h (local_using_directives, global_using_directives):
1361 Don't declare.
1362 (get_local_using_directives, set_local_using_directives)
1363 (get_global_using_directives): Declare.
1364 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1365 m_global_using_directives>: New members.
1366 (finish_block_internal, prepare_for_building)
1367 (reset_symtab_globals, end_symtab_get_static_block)
1368 (push_context): Update.
1369 (get_local_using_directives, set_local_using_directives)
1370 (get_global_using_directives): New functions.
1371 (buildsym_init): Update.
1372
1373 2018-07-16 Tom Tromey <tom@tromey.com>
1374
1375 * xcoffread.c (xcoff_initial_scan): Don't call
1376 free_pending_blocks.
1377 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1378 * buildsym.h (class scoped_free_pendings): Add constructor.
1379 (free_pending_blocks): Don't declare.
1380 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1381 (free_pending_blocks): Now static.
1382
1383 2018-07-16 Tom Tromey <tom@tromey.com>
1384
1385 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1386 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1387 member.
1388 (struct subfile_stack): Remove.
1389 (subfile_stack): Remove.
1390 (push_subfile, pop_subfile, buildsym_init): Update.
1391
1392 2018-07-16 Tom Tromey <tom@tromey.com>
1393
1394 * buildsym.c (push_subfile): Use gdb_assert.
1395 (pop_subfile): Use gdb_assert.
1396
1397 2018-07-16 Tom Tromey <tom@tromey.com>
1398
1399 * buildsym.h (merge_symbol_lists): Remove.
1400 * buildsym.c (merge_symbol_lists): Remove.
1401
1402 2018-07-16 Tom Tromey <tom@tromey.com>
1403
1404 * stabsread.c (scan_file_globals): Update comment.
1405 * stabsread.h (scan_file_globals): Move from buildsym.h.
1406 * buildsym.h (scan_file_globals): Move to stabsread.h.
1407
1408 2018-07-16 Tom Tromey <tom@tromey.com>
1409
1410 * xcoffread.c (xcoff_new_init): Update.
1411 * mipsread.c (mipscoff_new_init): Update.
1412 * mdebugread.c (mdebug_build_psymtabs): Update.
1413 * elfread.c (elf_new_init): Update.
1414 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1415 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1416 * buildsym.h (buildsym_new_init): Don't declare.
1417 * buildsym.c (buildsym_new_init): Remove.
1418
1419 2018-07-16 Tom Tromey <tom@tromey.com>
1420
1421 * stabsread.h (within_function): Move from buildsym.h.
1422 * stabsread.c (start_stabs): Clear within_function.
1423 * coffread.c (coff_start_symtab): Clear within_function.
1424 * buildsym.h (within_function): Move to stabsread.h.
1425 * buildsym.c (prepare_for_building): Update.
1426
1427 2018-07-16 Tom Tromey <tom@tromey.com>
1428
1429 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1430 * dwarf2read.c (dwarf2_start_symtab): Don't set
1431 processing_gcc_compilation.
1432 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1433
1434 2018-07-16 Tom Tromey <tom@tromey.com>
1435
1436 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1437 (next_symbol_text_func): Move from buildsym.h.
1438 * stabsread.c (hashname): Move from buildsym.c.
1439 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1440 (next_symbol_text_func, hashname): Move to stabsread.h.
1441 * buildsym.c: Don't include bcache.h
1442 (hashname): Move to stasbread.c.
1443
1444 2018-07-16 Tom Tromey <tom@tromey.com>
1445
1446 * buildsym.h (context_stack_size): Don't declare.
1447 * buildsym.c (context_stack_size): New global.
1448
1449 2018-07-16 Tom Tromey <tom@tromey.com>
1450
1451 * dbxread.c (processing_acc_compilation): New global.
1452 * buildsym.h (processing_acc_compilation): Don't declare.
1453
1454 2018-07-16 Tom Tromey <tom@tromey.com>
1455
1456 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1457 * dbxread.c (read_ofile_symtab): Update.
1458 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1459 * buildsym.h (last_source_start_addr): Remove.
1460 (set_last_source_start_addr, get_last_source_start_addr):
1461 Declare.
1462 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1463 parameter.
1464 (struct buildsym_compunit) <m_last_source_start_addr>: New
1465 member.
1466 (prepare_for_building): Remove start_addr parameter.
1467 (start_symtab, restart_symtab, end_symtab_get_static_block)
1468 (end_symtab_with_blockvector): Update.
1469 (set_last_source_start_addr, get_last_source_start_addr): New
1470 functions.
1471
1472 2018-07-16 Tom Tromey <tom@tromey.com>
1473
1474 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1475 member.
1476 (have_line_numbers): Remove.
1477 (record_line, prepare_for_building, end_symtab_get_static_block)
1478 (augment_type_symtab): Update.
1479
1480 2018-07-16 Tom Tromey <tom@tromey.com>
1481
1482 * buildsym.c (~buildsym_compunit): Free the macro table.
1483 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1484 methods.
1485 <m_pending_macros>: New member.
1486 (pending_macros): Remove.
1487 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1488 (reset_symtab_globals, end_symtab_get_static_block)
1489 (end_symtab_with_blockvector, augment_type_symtab)
1490 (buildsym_init): Update.
1491
1492 2018-07-16 Tom Tromey <tom@tromey.com>
1493
1494 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1495 parameter.
1496 (buildsym_compunit::set_last_source_file): New method.
1497 <m_last_source_file>: New member.
1498 (prepare_for_building): Remove "name" parameter.
1499 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1500 (last_source_file): Remove.
1501 (set_last_source_file, get_last_source_file): Update.
1502
1503 2018-07-16 Tom Tromey <tom@tromey.com>
1504
1505 * buildsym.c (prepare_for_building): Add assert.
1506
1507 2018-07-16 Tom Tromey <tom@tromey.com>
1508
1509 * buildsym.c (~buildsym_compunit): Update.
1510 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1511 (start_subfile, patch_subfile_names)
1512 (end_symtab_with_blockvector): Update.
1513
1514 2018-07-16 Tom Tromey <tom@tromey.com>
1515
1516 * buildsym.c (struct buildsym_compunit): Add constructor,
1517 destructor, initializers.
1518 (start_buildsym_compunit): Remove.
1519 (free_buildsym_compunit): Use "delete".
1520 (start_symtab, restart_symtab): Use "new".
1521
1522 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1523
1524 * symfile.c (set_objfile_default_section_offset): Remove struct
1525 keyword.
1526
1527 2018-07-14 Stafford Horne <shorne@gmail.com>
1528
1529 * (Responsible Maintainers): Add myself as or1k maintainer.
1530
1531 2018-07-13 Tom Tromey <tom@tromey.com>
1532
1533 * symfile.c (set_objfile_default_section_offset): Use extra braces
1534 around initializer.
1535
1536 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1537
1538 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1539 non-branching basr.
1540
1541 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1542
1543 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1544 unittests/cli-utils-selftests.c
1545 * unittests/cli-utils-selftests.c: New file.
1546
1547 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1548
1549 * NEWS: Mention new commands. Mention change to 'thread apply'.
1550
1551 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1552
1553 * thread.c (thr_try_catch_cmd): New function.
1554 (thread_apply_all_command): Handle qcs flags.
1555 (thread_apply_command): Handle qcs flags.
1556 (taas_command): New function.
1557 (tfaas_command): New function.
1558 (_initialize_thread): Update to setup the new commands 'taas
1559 and 'tfaas'. Change doc string for 'thread apply'.
1560
1561 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1562
1563 * stack.c: (trailing_outermost_frame): New function, mostly
1564 extracted from backtrace_command_1.
1565 (leading_innermost_frame): New function.
1566 (backtrace_command_1): Update to call trailing_outermost_frame.
1567 (frame_apply_command_count): New function.
1568 (frame_apply_level_command): New function.
1569 (frame_apply_all_command): New function.
1570 (frame_apply_command): New function.
1571 (faas_command): New function.
1572 (frame_cmd_list): New variable.
1573 (_initialize_stack): Update to setup the new commands 'frame apply'
1574 and 'faas'.
1575
1576 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1577
1578 * cli-utils.c (number_or_range_parser::get_number): Only handle
1579 numbers or convenience var as numbers.
1580 (parse_flags): New function.
1581 (parse_flags_qcs): New function.
1582 (number_or_range_parser::finished): Ensure parsing end is detected
1583 before end of string.
1584 * cli-utils.h (parse_flags): New function.
1585 (parse_flags_qcs): New function.
1586 (number_or_range_parser): Remove m_finished bool.
1587 (number_or_range_parser::skip_range): Set m_in_range to false.
1588
1589 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
1590
1591 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
1592 on Windows.
1593
1594 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1595 Jan Kratochvil <jan.kratochvil@redhat.com>
1596 Paul Fertser <fercerpav@gmail.com>
1597 Tsutomu Seki <sekiriki@gmail.com>
1598 Pedro Alves <palves@redhat.com>
1599
1600 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1601 'unittests/parse-connection-spec-selftests.c'.
1602 (COMMON_SFILES): Add 'common/netstuff.c'.
1603 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
1604 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
1605 * common/netstuff.c: New file.
1606 * common/netstuff.h: New file.
1607 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
1608 (wait_for_connect): Update comment. New parameter
1609 'gdb::optional<int> sock' instead of 'struct serial *scb'.
1610 Use 'sock' directly instead of 'scb->fd'.
1611 (try_connect): New function, with code from 'net_open'.
1612 (net_open): Rewrite main loop to deal with multiple
1613 sockets/addresses. Handle IPv6-style hostnames; implement
1614 support for IPv6 connections.
1615 * unittests/parse-connection-spec-selftests.c: New file.
1616
1617 2018-07-11 Pedro Alves <palves@redhat.com>
1618
1619 PR gdb/23377
1620 * remote.c (remote_target::remote_detach_pid): Call
1621 set_current_process.
1622
1623 2018-07-11 Pedro Alves <palves@redhat.com>
1624
1625 * h8300-tdep.c (h8300_gdbarch_init): Remove
1626 set_gdbarch_ecoff_reg_to_regnum calls.
1627
1628 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1629
1630 PR c++/23373
1631 * c-typeprint.c (c_type_print_base_struct_union): Don't print
1632 offsets/sizes for static members of a class/struct.
1633
1634 2018-07-11 Alan Hayward <alan.hayward@arm.com>
1635
1636 * target-descriptions.c (tdesc_register_bitsize): Rename.
1637 * target-descriptions.h (tdesc_register_bitsize): Likewise.
1638 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
1639 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
1640
1641 2018-07-10 Tom Tromey <tom@tromey.com>
1642
1643 * breakpoint.c (moribund_locations): Now static and a
1644 std::vector.
1645 (breakpoint_init_inferior, moribund_breakpoint_here_p)
1646 (build_bpstat_chain, update_global_location_list)
1647 (breakpoint_retire_moribund): Update.
1648 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
1649 VEC.
1650
1651 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
1654 (riscv_register_reggroup_p): Use new function, remove unneeded
1655 parenthesis.
1656 (riscv_push_dummy_call): Extend assert to compare against xlen or
1657 flen based on register type.
1658
1659 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
1662
1663 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * remote.c (show_hardware_watchpoint_limit): New function.
1666 (show_hardware_watchpoint_length_limit): New function.
1667 (show_hardware_breakpoint_limit): New function.
1668 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
1669 where appropriate, update help text.
1670
1671 2018-07-09 Tom Tromey <tom@tromey.com>
1672
1673 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
1674 (CLIBS): Don't mention NAT_CLIBS.
1675
1676 2018-07-09 Tom Tromey <tom@tromey.com>
1677
1678 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
1679 (LIBGDB_OBS, clean mostlyclean): Update.
1680 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
1681
1682 2018-07-09 Tom Tromey <tom@tromey.com>
1683
1684 * Makefile.in (%.c: %.y): Use ECHO_YACC.
1685 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
1686 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
1687
1688 2018-07-09 Tom Tromey <tom@tromey.com>
1689
1690 * Makefile.in (ALLDEPFILES): Remove exec.c.
1691 (COMMON_OBS): Remove exec.o.
1692 (COMMON_SFILES): Add exec.c.
1693
1694 2018-07-09 Tom Tromey <tom@tromey.com>
1695
1696 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
1697
1698 2018-07-09 Tom Tromey <tom@tromey.com>
1699
1700 * Makefile.in (clean mostlyclean): Remove stamp-version.
1701 (version.c): Depend on stamp-version.
1702 (stamp-version): New rule, from version.c rule.
1703
1704 2018-07-09 Tom Tromey <tom@tromey.com>
1705
1706 * Makefile.in (init.c): Depend on stamp-init.
1707 (stamp-init): New rule, from init.c rule.
1708 (clean mostlyclean): Remove stamp-init.
1709
1710 2018-07-09 Tom Tromey <tom@tromey.com>
1711
1712 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
1713 SUBDIR_GCC_COMPILE_SRCS.
1714
1715 2018-07-09 Tom Tromey <tom@tromey.com>
1716
1717 * Makefile.in (init.c): Remove some unused sed rules.
1718
1719 2018-07-09 Tom Tromey <tom@tromey.com>
1720
1721 * Makefile.in (TSOBS): Remove.
1722 (INIT_FILES): Update.
1723 (LIBGDB_OBS): Update.
1724 (COMMON_SFILES): Add inflow.c.
1725 (SFILES): Remove inflow.c.
1726
1727 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1728
1729 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
1730
1731 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
1732
1733 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
1734 get_saveloc_name, is_signal_frame_name, step_name,
1735 init_remote_name, create_addr_space_name,
1736 destroy_addr_space_name, search_unwind_table_name,
1737 find_dyn_list_name): Constify.
1738
1739 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
1740
1741 * darwin-nat.c (darwin_pthread_kill): New function.
1742 (darwin_resume_thread): Use darwin_pthread_kill.
1743
1744 2018-07-05 Tom de Vries <tdevries@suse.de>
1745
1746 * macroexp.c (macro_buffer) <operator=>: New member function.
1747
1748 2018-07-04 Tom Tromey <tom@tromey.com>
1749
1750 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
1751
1752 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
1755 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
1756 * maint.c: Likewise.
1757 * top.c: Likewise.
1758
1759 2018-07-04 Joel Brobecker <brobecker@adacore.com>
1760
1761 * NEWS: Create a new section for the next release branch.
1762 Rename the section of the current branch, now that it has
1763 been cut.
1764
1765 2018-07-04 Joel Brobecker <brobecker@adacore.com>
1766
1767 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
1768 * version.in: Bump version to 8.2.50.DATE-git.
1769
1770 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1771 Pedro Alves <palves@redhat.com>
1772
1773 * linux-nat.c (linux_init_ptrace): Rename to ...
1774 (linux_init_ptrace_procfs): ... this. Call
1775 linux_proc_init_warnings.
1776 (linux_nat_target::post_attach)
1777 (linux_nat_target::post_startup_inferior): Adjust.
1778 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
1779 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
1780
1781 2018-07-04 Tom de Vries <tdevries@suse.de>
1782
1783 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
1784 check ...
1785 (read_comp_unit_head): ... here.
1786
1787 2018-07-03 Tom Tromey <tom@tromey.com>
1788
1789 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
1790 (stop_tracing, tstatus_command)
1791 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
1792 (print_one_static_tracepoint_marker): Update.
1793 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
1794 std::vector.
1795 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
1796 VEC.
1797 (all_tracepoints, static_tracepoints_here): Return std::vector.
1798
1799 2018-07-03 Tom Tromey <tom@tromey.com>
1800
1801 * common/ptid.c (ptid_equal): Remove.
1802 * common/ptid.h (ptid_equal): Don't declare.
1803 * ada-tasks.c: Update.
1804 * breakpoint.c: Update.
1805 * common/agent.c: Update.
1806 * corelow.c: Update.
1807 * darwin-nat-info.c: Update.
1808 * darwin-nat.c: Update.
1809 * dcache.c: Update.
1810 * dtrace-probe.c: Update.
1811 * dummy-frame.c: Update.
1812 * fbsd-nat.c: Update.
1813 * frame.c: Update.
1814 * gdbthread.h: Update.
1815 * gnu-nat.c: Update.
1816 * go32-nat.c: Update.
1817 * inf-loop.c: Update.
1818 * inf-ptrace.c: Update.
1819 * infcall.c: Update.
1820 * infcmd.c: Update.
1821 * inflow.c: Update.
1822 * infrun.c: Update.
1823 * linux-fork.c: Update.
1824 * linux-nat.c: Update.
1825 * linux-thread-db.c: Update.
1826 * mi/mi-cmd-var.c: Update.
1827 * mi/mi-interp.c: Update.
1828 * mi/mi-main.c: Update.
1829 * nto-procfs.c: Update.
1830 * ppc-linux-tdep.c: Update.
1831 * procfs.c: Update.
1832 * python/py-inferior.c: Update.
1833 * python/py-record-btrace.c: Update.
1834 * python/py-record.c: Update.
1835 * ravenscar-thread.c: Update.
1836 * regcache.c: Update.
1837 * remote-sim.c: Update.
1838 * remote.c: Update.
1839 * sol-thread.c: Update.
1840 * solib.c: Update.
1841 * target.c: Update.
1842 * tui/tui-stack.c: Update.
1843 * varobj.c: Update.
1844 * windows-nat.c: Update.
1845 * windows-tdep.c: Update.
1846
1847 2018-07-03 Tom Tromey <tom@tromey.com>
1848
1849 * common/ptid.c (ptid_match): Remove.
1850 * common/ptid.h (ptid_match): Don't declare.
1851 * fbsd-nat.c: Update.
1852 * infcmd.c: Update.
1853 * infrun.c: Update.
1854 * linux-nat.c: Update.
1855 * record-btrace.c: Update.
1856 * regcache.c: Update.
1857 * remote.c: Update.
1858
1859 2018-07-03 Tom Tromey <tom@tromey.com>
1860
1861 * common/ptid.c (ptid_tid_p): Remove.
1862 * common/ptid.h (ptid_tid_p): Don't declare.
1863 * sol-thread.c: Update.
1864
1865 2018-07-03 Tom Tromey <tom@tromey.com>
1866
1867 * common/ptid.c (ptid_lwp_p): Remove.
1868 * common/ptid.h (ptid_lwp_p): Don't declare.
1869 * fbsd-nat.c: Update.
1870 * linux-nat.c: Update.
1871 * nat/linux-procfs.c: Update.
1872 * nat/x86-linux-dregs.c: Update.
1873 * sol-thread.c: Update.
1874
1875 2018-07-03 Tom Tromey <tom@tromey.com>
1876
1877 * common/ptid.c (ptid_is_pid): Remove.
1878 * common/ptid.h (ptid_is_pid): Don't declare.
1879 * infrun.c: Update.
1880 * linux-nat.c: Update.
1881 * mi/mi-interp.c: Update.
1882 * remote.c: Update.
1883 * thread.c: Update.
1884
1885 2018-07-03 Tom Tromey <tom@tromey.com>
1886
1887 * common/ptid.c (ptid_get_tid): Remove.
1888 * common/ptid.h (ptid_get_tid): Don't declare.
1889 * ada-tasks.c: Update.
1890 * aix-thread.c: Update.
1891 * bsd-uthread.c: Update.
1892 * darwin-nat.c: Update.
1893 * fbsd-nat.c: Update.
1894 * i386-darwin-nat.c: Update.
1895 * infrun.c: Update.
1896 * linux-tdep.c: Update.
1897 * nto-procfs.c: Update.
1898 * ppc-ravenscar-thread.c: Update.
1899 * python/py-infthread.c: Update.
1900 * ravenscar-thread.c: Update.
1901 * sol-thread.c: Update.
1902 * sparc-ravenscar-thread.c: Update.
1903 * windows-nat.c: Update.
1904
1905 2018-07-03 Tom Tromey <tom@tromey.com>
1906
1907 * common/ptid.c (ptid_get_lwp): Remove.
1908 * common/ptid.h (ptid_get_lwp): Don't declare.
1909 * aarch64-linux-nat.c: Update.
1910 * ada-tasks.c: Update.
1911 * aix-thread.c: Update.
1912 * amd64-linux-nat.c: Update.
1913 * arm-linux-nat.c: Update.
1914 * corelow.c: Update.
1915 * fbsd-nat.c: Update.
1916 * fbsd-tdep.c: Update.
1917 * gnu-nat.c: Update.
1918 * i386-cygwin-tdep.c: Update.
1919 * i386-gnu-nat.c: Update.
1920 * i386-linux-nat.c: Update.
1921 * ia64-linux-nat.c: Update.
1922 * inf-ptrace.c: Update.
1923 * infrun.c: Update.
1924 * linux-fork.c: Update.
1925 * linux-nat.c: Update.
1926 * linux-tdep.c: Update.
1927 * linux-thread-db.c: Update.
1928 * mips-linux-nat.c: Update.
1929 * nat/aarch64-linux-hw-point.c: Update.
1930 * nat/aarch64-linux.c: Update.
1931 * nat/linux-btrace.c: Update.
1932 * nat/linux-osdata.c: Update.
1933 * nat/linux-procfs.c: Update.
1934 * nat/x86-linux-dregs.c: Update.
1935 * obsd-nat.c: Update.
1936 * ppc-fbsd-nat.c: Update.
1937 * ppc-linux-nat.c: Update.
1938 * procfs.c: Update.
1939 * python/py-infthread.c: Update.
1940 * ravenscar-thread.c: Update.
1941 * remote.c: Update.
1942 * s390-linux-nat.c: Update.
1943 * sol-thread.c: Update.
1944 * sol2-tdep.c: Update.
1945 * spu-linux-nat.c: Update.
1946 * x86-linux-nat.c: Update.
1947 * xtensa-linux-nat.c: Update.
1948
1949 2018-07-03 Tom Tromey <tom@tromey.com>
1950
1951 * common/ptid.c (ptid_get_pid): Remove.
1952 * common/ptid.h (ptid_get_pid): Don't declare.
1953 * aarch64-linux-nat.c: Update.
1954 * ada-lang.c: Update.
1955 * aix-thread.c: Update.
1956 * alpha-bsd-nat.c: Update.
1957 * amd64-fbsd-nat.c: Update.
1958 * amd64-linux-nat.c: Update.
1959 * arm-linux-nat.c: Update.
1960 * arm-nbsd-nat.c: Update.
1961 * auxv.c: Update.
1962 * break-catch-syscall.c: Update.
1963 * breakpoint.c: Update.
1964 * bsd-uthread.c: Update.
1965 * corelow.c: Update.
1966 * ctf.c: Update.
1967 * darwin-nat.c: Update.
1968 * fbsd-nat.c: Update.
1969 * fbsd-tdep.c: Update.
1970 * gcore.c: Update.
1971 * gnu-nat.c: Update.
1972 * hppa-nbsd-nat.c: Update.
1973 * hppa-obsd-nat.c: Update.
1974 * i386-fbsd-nat.c: Update.
1975 * ia64-linux-nat.c: Update.
1976 * inf-ptrace.c: Update.
1977 * infcmd.c: Update.
1978 * inferior.c: Update.
1979 * inferior.h: Update.
1980 * inflow.c: Update.
1981 * infrun.c: Update.
1982 * linux-fork.c: Update.
1983 * linux-nat.c: Update.
1984 * linux-tdep.c: Update.
1985 * linux-thread-db.c: Update.
1986 * m68k-bsd-nat.c: Update.
1987 * mi/mi-interp.c: Update.
1988 * mi/mi-main.c: Update.
1989 * mips-linux-nat.c: Update.
1990 * mips-nbsd-nat.c: Update.
1991 * mips64-obsd-nat.c: Update.
1992 * nat/aarch64-linux-hw-point.c: Update.
1993 * nat/aarch64-linux.c: Update.
1994 * nat/linux-btrace.c: Update.
1995 * nat/linux-osdata.c: Update.
1996 * nat/linux-procfs.c: Update.
1997 * nat/x86-linux-dregs.c: Update.
1998 * nto-procfs.c: Update.
1999 * obsd-nat.c: Update.
2000 * ppc-linux-nat.c: Update.
2001 * ppc-nbsd-nat.c: Update.
2002 * ppc-obsd-nat.c: Update.
2003 * proc-service.c: Update.
2004 * procfs.c: Update.
2005 * python/py-inferior.c: Update.
2006 * python/py-infthread.c: Update.
2007 * ravenscar-thread.c: Update.
2008 * record.c: Update.
2009 * remote-sim.c: Update.
2010 * remote.c: Update.
2011 * rs6000-nat.c: Update.
2012 * s390-linux-nat.c: Update.
2013 * sh-nbsd-nat.c: Update.
2014 * sol-thread.c: Update.
2015 * sparc-nat.c: Update.
2016 * sparc64-tdep.c: Update.
2017 * spu-linux-nat.c: Update.
2018 * spu-tdep.c: Update.
2019 * target-debug.h: Update.
2020 * target.c: Update.
2021 * thread.c: Update.
2022 * tid-parse.c: Update.
2023 * tracefile-tfile.c: Update.
2024 * vax-bsd-nat.c: Update.
2025 * windows-nat.c: Update.
2026 * x86-linux-nat.c: Update.
2027 * x86-nat.c: Update.
2028
2029 2018-07-03 Tom Tromey <tom@tromey.com>
2030
2031 * common/ptid.c (pid_to_ptid): Remove.
2032 * common/ptid.h (pid_to_ptid): Don't declare.
2033 * aix-thread.c: Update.
2034 * arm-linux-nat.c: Update.
2035 * common/ptid.c: Update.
2036 * common/ptid.h: Update.
2037 * corelow.c: Update.
2038 * ctf.c: Update.
2039 * darwin-nat.c: Update.
2040 * fbsd-nat.c: Update.
2041 * fork-child.c: Update.
2042 * gnu-nat.c: Update.
2043 * go32-nat.c: Update.
2044 * inf-ptrace.c: Update.
2045 * infcmd.c: Update.
2046 * inferior.c: Update.
2047 * infrun.c: Update.
2048 * linux-fork.c: Update.
2049 * linux-nat.c: Update.
2050 * nat/aarch64-linux-hw-point.c: Update.
2051 * nat/fork-inferior.c: Update.
2052 * nat/x86-linux-dregs.c: Update.
2053 * nto-procfs.c: Update.
2054 * obsd-nat.c: Update.
2055 * procfs.c: Update.
2056 * progspace.c: Update.
2057 * remote.c: Update.
2058 * rs6000-nat.c: Update.
2059 * s390-linux-nat.c: Update.
2060 * sol-thread.c: Update.
2061 * spu-linux-nat.c: Update.
2062 * target.c: Update.
2063 * top.c: Update.
2064 * tracefile-tfile.c: Update.
2065 * windows-nat.c: Update.
2066
2067 2018-07-03 Tom Tromey <tom@tromey.com>
2068
2069 * common/ptid.h (ptid_build): Don't declare.
2070 * common/ptid.c (ptid_build): Remove.
2071 * aix-thread.c: Update.
2072 * bsd-kvm.c: Update.
2073 * bsd-uthread.c: Update.
2074 * common/agent.c: Update.
2075 * common/ptid.c: Update.
2076 * common/ptid.h: Update.
2077 * corelow.c: Update.
2078 * darwin-nat.c: Update.
2079 * fbsd-nat.c: Update.
2080 * gnu-nat.c: Update.
2081 * linux-fork.c: Update.
2082 * linux-nat.c: Update.
2083 * linux-thread-db.c: Update.
2084 * nat/linux-osdata.c: Update.
2085 * nat/linux-procfs.c: Update.
2086 * nto-procfs.c: Update.
2087 * obsd-nat.c: Update.
2088 * proc-service.c: Update.
2089 * procfs.c: Update.
2090 * ravenscar-thread.c: Update.
2091 * remote-sim.c: Update.
2092 * remote.c: Update.
2093 * sol-thread.c: Update.
2094 * target.c: Update.
2095 * windows-nat.c: Update.
2096
2097 2018-07-03 Tom Tromey <tom@tromey.com>
2098
2099 * infrun.c (follow_exec): Use exit_inferior_silent.
2100 * inferior.c (exit_inferior_num_silent): Remove.
2101 * inferior.h (exit_inferior_num_silent): Don't declare.
2102
2103 2018-07-03 Tom Tromey <tom@tromey.com>
2104
2105 PR cli/23340:
2106 * darwin-nat.c (darwin_attach_pid): Reset inferior and
2107 inferior_ptid on error.
2108
2109 2018-07-02 Maciej W. Rozycki <macro@mips.com>
2110 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 PR tdep/8282
2113 * disasm.h (gdb_disassembler): Add
2114 `m_disassembler_options_holder'. member
2115 * disasm.c (get_all_disassembler_options): New function.
2116 (gdb_disassembler::gdb_disassembler): Use it.
2117 (gdb_buffered_insn_length_init_dis): Likewise.
2118 (gdb_buffered_insn_length): Adjust accordingly.
2119 (set_disassembler_options): Handle options with arguments.
2120 (show_disassembler_options_sfunc): Likewise. Add a leading new
2121 line if showing options with descriptions.
2122 (disassembler_options_completer): Adapt to using the
2123 `disasm_options_and_args_t' structure.
2124 * mips-tdep.c (mips_disassembler_options): New variable.
2125 (mips_disassembler_options_o32): Likewise.
2126 (mips_disassembler_options_n32): Likewise.
2127 (mips_disassembler_options_n64): Likewise.
2128 (gdb_print_insn_mips): Don't set `disassembler_options'.
2129 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2130 functions.
2131 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2132 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2133 `gdbarch_disassembler_options_implicit' and
2134 `gdbarch_valid_disassembler_options'.
2135 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2136 `disasm_options_and_args_t' structure.
2137 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2138 method.
2139 (valid_disassembler_options): Switch from `disasm_options_t' to
2140 the `disasm_options_and_args_t' structure.
2141 * NEWS: Document `set disassembler-options' support for the MIPS
2142 target.
2143 * gdbarch.h: Regenerate.
2144 * gdbarch.c: Regenerate.
2145
2146 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2147
2148 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2149
2150 2018-06-29 Joel Brobecker <brobecker@adacore.com>
2151
2152 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2153 parameter in call to amd64_target_description.
2154 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2155 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2156 (amd64fbsd_init_abi): Likewise.
2157 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2158 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2159 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2160 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2161
2162 2018-06-29 Pedro Alves <palves@redhat.com>
2163
2164 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2165 "segments" parameter.
2166 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2167 (_initialize_amd64_tdep): Update call to
2168 amd64_create_target_description.
2169 (amd64_target_description): Add "segments" parameter. Adjust
2170 the implementation to use it.
2171 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2172 call to amd64_create_target_description.
2173 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2174 * gdb/arch/amd64.h (amd64_create_target_description): Add
2175 "segments" register.
2176 * gdb/arch/amd64.c (amd64_create_target_description): Add
2177 "segments" parameter. Call create_feature_i386_64bit_segments
2178 only if SEGMENTS is true.
2179 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2180 call to amd64_create_target_description.
2181
2182 2018-06-29 Pedro Alves <palves@redhat.com>
2183
2184 * thread.c (thread_target_id_str): New, factored out from ...
2185 (print_thread_info_1): ... here. Use it to compute the max
2186 "Target Id" column width.
2187
2188 2018-06-29 Pedro Alves <palves@redhat.com>
2189
2190 * remote.c (remote_target::extra_thread_info): Delete
2191 'display_buf' and 'n' locals. from the cache, regardless of
2192 packet mechanims is in use. Use cache for qThreadExtra and qP
2193 methods too.
2194
2195 2018-06-29 Pedro Alves <palves@redhat.com>
2196
2197 * blockframe.c (find_pc_sect_containing_function): New function.
2198 * breakpoint.c (print_breakpoint_location): Don't call
2199 find_pc_sect_function.
2200 * linespec.c (create_sals_line_offset): Record the location's
2201 symbol in the sal.
2202 * linespec.c (convert_address_location_to_sals): Fill in sal's
2203 symbol with find_pc_sect_containing_function.
2204 * symtab.c (find_function_start_sal): Rename to ...
2205 (find_function_start_sal_1): ... this.
2206 (find_function_start_sal): Reimplement as wrapper around
2207 find_function_start_sal_1, and use
2208 find_pc_sect_containing_function to fill in the sal's symbol.
2209 (find_function_start_sal(symbol*, bool)): Adjust.
2210 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2211 comments.
2212 (find_pc_sect_containing_function): Declare.
2213
2214 2018-06-29 Pedro Alves <palves@redhat.com>
2215
2216 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2217 true if the the location has no symbol.
2218
2219 2018-06-28 Tom Tromey <tom@tromey.com>
2220
2221 * NEWS: Mention --enable-codesign.
2222 * silent-rules.mk (ECHO_SIGN): New variable.
2223 * configure.ac: Add --enable-codesign.
2224 * configure: Rebuild.
2225 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2226 (gdb$(EXEEXT)): Optionally invoke codesign.
2227
2228 2018-06-28 Pedro Alves <palves@redhat.com>
2229
2230 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2231 comments.
2232 (switch_to_thread_no_regs): Adjust comment.
2233 * infcmd.c (stop_pc): Delete.
2234 (post_create_inferior, info_program_command): Replace references
2235 to stop_pc with references to thread_info->suspend.stop_pc.
2236 * inferior.h (stop_pc): Delete declaration.
2237 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2238 (handle_inferior_event_1, handle_signal_stop)
2239 (process_event_stop_test, keep_going_stepped_thread)
2240 (handle_step_into_function, handle_step_into_function_backward)
2241 (print_stop_location): Replace references to stop_pc with
2242 references to thread_info->suspend.stop_pc.
2243 (struct infcall_suspend_state) <stop_pc>: Delete field.
2244 (save_infcall_suspend_state, restore_infcall_suspend_state):
2245 Remove references to inf_stat->stop_pc.
2246 * linux-fork.c (fork_load_infrun_state): Likewise.
2247 * record-btrace.c (record_btrace_set_replay): Likewise.
2248 * record-full.c (record_full_goto_entry): Likewise.
2249 * remote.c (print_one_stopped_thread): Likewise.
2250 * target.c (target_resume): Extend comment.
2251 * thread.c (set_executing_thread): New.
2252 (set_executing): Use it.
2253 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2254 Remove references to stop_pc.
2255
2256 2018-06-28 Pedro Alves <palves@redhat.com>
2257
2258 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2259 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2260
2261 2018-06-28 Tom Tromey <tom@tromey.com>
2262
2263 * coffread.c (coff_symfile_finish): Update.
2264 * xcoffread.c (xcoff_symfile_finish): Update.
2265 * elfread.c (elf_symfile_finish): Update.
2266 * symfile.h (dwarf2_free_objfile): Don't declare.
2267 * dwarf2read.c (_initialize_dwarf2_read): Use
2268 register_objfile_data_with_cleanup.
2269 (dwarf2_free_objfile): Now static. Change signature.
2270
2271 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2272
2273 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2274 option "-o" to add-symbol-file-load to add an offset to each
2275 section's load address.
2276 * symfile.c (set_objfile_default_section_offset): New function.
2277
2278 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2279
2280 * symfile.c (add_symbol_file_command): Make sure that sections
2281 with the same name are sorted in the same order.
2282
2283 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2284
2285 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2286 require the second argument. If omitted, load sections at the
2287 addresses specified in the file.
2288
2289 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2290
2291 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2292 (_initialize_symfile): Add option "-o" to symbol-file to add an
2293 offset to each section of the symbol file.
2294
2295 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2296
2297 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2298
2299 2018-06-27 Tom Tromey <tom@tromey.com>
2300
2301 * stack.c (_initialize_stack): Update "func" help text.
2302
2303 2018-06-27 Tom Tromey <tom@tromey.com>
2304
2305 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2306 std::vector.
2307 (unwind_infopy_str, pyuw_create_unwind_info)
2308 (unwind_infopy_add_saved_register, pyuw_sniffer)
2309 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2310 Update.
2311 (struct saved_reg): Add constructor.
2312 <value>: Now a gdbpy_ref<>.
2313
2314 2018-06-27 Tom Tromey <tom@tromey.com>
2315
2316 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2317
2318 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2319
2320 * gdb-gdb.py.in: Format using autopep8.
2321
2322 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2323
2324 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2325 (type_lookup_function): Recognize CORE_ADDR values.
2326
2327 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2328
2329 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2330 print tag_name.
2331
2332 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2333
2334 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2335 <__lt__>: Add.
2336
2337 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2338
2339 * gdb-gdb.py: Move to...
2340 * gdb-gdb.py.in: ... here.
2341 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2342 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2343 dependencies.
2344 (distclean): Remove gdb-gdb.py when cleaning.
2345 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2346 * configure: Re-generate.
2347
2348 2018-06-27 Pedro Alves <palves@redhat.com>
2349
2350 * proc-service.c (get_ps_regcache): New.
2351 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2352 (ps_lsetfpregs): Use it.
2353
2354 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
2355
2356 PR gdb/21695
2357 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2358 (dwarf_decode_lines_1): Adjust.
2359
2360 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2361
2362 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2363 override.
2364 <info_proc>: Likewise.
2365
2366 2018-06-26 Joel Brobecker <brobecker@adacore.com>
2367
2368 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2369 to windows_fetch_one_register, and only handle the case of
2370 fetching one register. Move the code that reloads the context
2371 and iterates over all registers if R is negative to...
2372 (windows_nat_target::fetch_registers): ... here.
2373 (do_windows_store_inferior_registers): Rename to
2374 windows_store_one_register, and only handle the case of storing
2375 one register. Move the code that handles the case where r is
2376 negative to...
2377 (windows_nat_target::store_registers) ... here.
2378
2379 2018-06-26 Tom Tromey <tom@tromey.com>
2380
2381 PR rust/22574:
2382 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2383 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2384 Update.
2385 (rust_internal_print_type): Add podata parameter.
2386 (rust_print_type): Update.
2387
2388 2018-06-26 Tom Tromey <tom@tromey.com>
2389
2390 * typeprint.h (struct print_offset_data) <update, finish,
2391 maybe_print_hole>: New methods.
2392 <indentation>: New constant.
2393 * typeprint.c (print_offset_data::indentation): Define.
2394 (print_offset_data::maybe_print_hole, print_offset_data::update)
2395 (print_offset_data::finish): Move from c-typeprint.c and rename.
2396 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2397 (print_spaces_filtered_with_print_options): Update.
2398 (c_print_type_union_field_offset, maybe_print_hole)
2399 (c_print_type_struct_field_offset): Move to typeprint.c and
2400 rename.
2401 (c_type_print_base_struct_union): Update.
2402
2403 2018-06-25 Pedro Alves <palves@redhat.com>
2404
2405 * gdbthread.h (thread_info_ref, delete_thread)
2406 (delete_thread_silent, first_thread_of_inferior)
2407 (any_thread_of_inferior, switch_to_thread)
2408 (enable_thread_stack_temporaries)
2409 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2410 (get_last_thread_stack_temporary)
2411 (value_in_thread_stack_temporaries, can_access_registers_thread):
2412 Spell out "struct thread_info" instead of just "thread_info".
2413 * inferior.h (notice_new_inferior): Likewise.
2414
2415 2018-06-25 Pedro Alves <palves@redhat.com>
2416
2417 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2418 pass thread_info pointer to delete_thread.
2419 (windows_nat_target::detach): Pass inferior pointer to
2420 detach_inferior.
2421 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2422 delete_thread.
2423 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2424 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2425 and pass a thread_info pointer to delete_thread.
2426 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2427 pass thread_info pointer to delete_thread.
2428 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2429 delete_thread_silent call.
2430 * procfs.c (procfs_target::detach): Pass inferior pointer to
2431 detach_inferior.
2432 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2433 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2434 delete_thread_silent call.
2435 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2436 pass thread_info pointer to delete_thread.
2437 (windows_nat_target::detach): Pass inferior pointer to
2438 delete_inferior.
2439
2440 2018-06-22 Alan Hayward <alan.hayward@arm.com>
2441
2442 * regcache.c (readable_regcache::read_part): Fix asserts.
2443 (reg_buffer::raw_collect_part): New function.
2444 (regcache::write_part): Fix asserts.
2445 (reg_buffer::raw_supply_part): New function.
2446 (regcache::transfer_regset_register): New helper function.
2447 (regcache::transfer_regset): Call new functions.
2448 (regcache_supply_regset): Use gdb_byte*.
2449 (regcache::supply_regset): Likewise.
2450 (regcache_collect_regset): Likewise.
2451 (regcache::collect_regset): Likewise.
2452 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2453 (reg_buffer::raw_supply_part): Likewise.
2454 (regcache::transfer_regset_register): Likewise.
2455 (regcache::transfer_regset): Use gdb_byte*.
2456
2457 2018-06-22 Alan Hayward <alan.hayward@arm.com>
2458
2459 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2460
2461 2018-06-21 Pedro Alves <palves@redhat.com>
2462
2463 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2464 instead of a ptid_t. All callers adjusted.
2465 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2466 adjusted.
2467 (print_ada_task_info, display_current_task_id, task_command_1):
2468 Adjust.
2469 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2470 inferior_thread.
2471 (breakpoint_kind): Adjust.
2472 (remove_breakpoints_pid): Rename to ...
2473 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2474 pointer. All callers adjusted.
2475 (bpstat_clear_actions): Use inferior_thread.
2476 (get_bpstat_thread): New.
2477 (bpstat_do_actions): Use it.
2478 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2479 to take a thread_info pointer. All callers adjusted.
2480 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2481 (breakpoint_re_set_thread): Use inferior_thread.
2482 * breakpoint.h (struct inferior): Forward declare.
2483 (bpstat_stop_status): Update.
2484 (remove_breakpoints_pid): Delete.
2485 (remove_breakpoints_inf): New.
2486 * bsd-uthread.c (bsd_uthread_target::wait)
2487 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2488 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2489 (maint_btrace_packet_history_cmd)
2490 (maint_btrace_clear_packet_history_cmd): Adjust.
2491 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2492 inferior_thread.
2493 * cli/cli-interp.c: Include "inferior.h".
2494 * common/refcounted-object.h (struct
2495 refcounted_object_ref_policy): New.
2496 * compile/compile-object-load.c: Include gdbthread.h.
2497 (store_regs): Use inferior_thread.
2498 * corelow.c (core_target::close): Use current_inferior.
2499 (core_target_open): Adjust to use first_thread_of_inferior and use
2500 the current inferior.
2501 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2502 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2503 <thread>: ... this new field. All references adjusted.
2504 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2505 Take a thread_info pointer instead of a ptid_t.
2506 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2507 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2508 thread_info pointer instead of a ptid_t.
2509 * elfread.c: Include "inferior.h".
2510 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2511 Use inferior_thread.
2512 * eval.c (evaluate_subexp): Likewise.
2513 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2514 inferior_thread.
2515 * gdb_proc_service.h (struct thread_info): Forward declare.
2516 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2517 <thread>: ... this new field. All references adjusted.
2518 * gdbarch.h, gdbarch.c: Regenerate.
2519 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2520 'thread' parameter. All implementations and callers adjusted.
2521 * gdbthread.h (thread_info) <set_running>: New method.
2522 (delete_thread, delete_thread_silent): Take a thread_info pointer
2523 instead of a ptid.
2524 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2525 (first_thread_of_process): Delete, replaced by ...
2526 (first_thread_of_inferior): ... this new function. All callers
2527 adjusted.
2528 (any_live_thread_of_process): Delete, replaced by ...
2529 (any_live_thread_of_inferior): ... this new function. All callers
2530 adjusted.
2531 (switch_to_thread, switch_to_no_thread): Declare.
2532 (is_executing): Delete.
2533 (enable_thread_stack_temporaries): Update comment.
2534 <enable_thread_stack_temporaries>: Take a thread_info pointer
2535 instead of a ptid_t. Incref the thread.
2536 <~enable_thread_stack_temporaries>: Decref the thread.
2537 <m_ptid>: Delete
2538 <m_thr>: New.
2539 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2540 (get_last_thread_stack_temporary)
2541 (value_in_thread_stack_temporaries, can_access_registers_thread):
2542 Take a thread_info pointer instead of a ptid_t. All callers
2543 adjusted.
2544 * infcall.c (get_call_return_value): Use inferior_thread.
2545 (run_inferior_call): Work with thread pointers instead of ptid_t.
2546 (call_function_by_hand_dummy): Work with thread pointers instead
2547 of ptid_t. Use thread_info_ref.
2548 * infcmd.c (proceed_thread_callback): Access thread's state
2549 directly.
2550 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2551 access thread's state directly.
2552 (continue_command): Use inferior_thread.
2553 (info_program_command): Use find_thread_ptid and access thread
2554 state directly.
2555 (proceed_after_attach_callback): Use thread state directly.
2556 (notice_new_inferior): Take a thread_info pointer instead of a
2557 ptid_t. All callers adjusted.
2558 (exit_inferior): Take an inferior pointer instead of a pid. All
2559 callers adjusted.
2560 (exit_inferior_silent): New.
2561 (detach_inferior): Delete.
2562 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2563 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2564 (detach_inferior_command, kill_inferior_command): Use
2565 find_inferior_id instead of valid_gdb_inferior_id and
2566 gdb_inferior_id_to_pid.
2567 (inferior_command): Use inferior and thread pointers.
2568 * inferior.h (struct thread_info): Forward declare.
2569 (notice_new_inferior): Take a thread_info pointer instead of a
2570 ptid_t. All callers adjusted.
2571 (detach_inferior): Delete declaration.
2572 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2573 instead of a pid. All callers adjusted.
2574 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2575 (valid_gdb_inferior_id): Delete.
2576 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2577 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2578 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
2579 ...
2580 <inf>: ... this new field.
2581 <step_ptid>: Delete, replaced by ...
2582 <step_thread>: ... this new field.
2583 (get_displaced_stepping_state): Take an inferior pointer instead
2584 of a pid. All callers adjusted.
2585 (displaced_step_in_progress_any_inferior): Adjust.
2586 (displaced_step_in_progress_thread): Take a thread pointer instead
2587 of a ptid_t. All callers adjusted.
2588 (displaced_step_in_progress, add_displaced_stepping_state): Take
2589 an inferior pointer instead of a pid. All callers adjusted.
2590 (get_displaced_step_closure_by_addr): Adjust.
2591 (remove_displaced_stepping_state): Take an inferior pointer
2592 instead of a pid. All callers adjusted.
2593 (displaced_step_prepare_throw, displaced_step_prepare)
2594 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
2595 All callers adjusted.
2596 (start_step_over): Adjust.
2597 (infrun_thread_ptid_changed): Remove bit updating ptids in the
2598 displaced step queue.
2599 (do_target_resume): Adjust.
2600 (fetch_inferior_event): Use inferior_thread.
2601 (context_switch, get_inferior_stop_soon): Take an
2602 execution_control_state pointer instead of a ptid_t. All callers
2603 adjusted.
2604 (switch_to_thread_cleanup): Delete.
2605 (stop_all_threads): Use scoped_restore_current_thread.
2606 * inline-frame.c: Include "gdbthread.h".
2607 (inline_state) <inline_state>: Take a thread pointer instead of a
2608 ptid_t. All callers adjusted.
2609 <ptid>: Delete, replaced by ...
2610 <thread>: ... this new field.
2611 (find_inline_frame_state): Take a thread pointer instead of a
2612 ptid_t. All callers adjusted.
2613 (skip_inline_frames, step_into_inline_frame)
2614 (inline_skipped_frames, inline_skipped_symbol): Take a thread
2615 pointer instead of a ptid_t. All callers adjusted.
2616 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
2617 (inline_skipped_frames, inline_skipped_symbol): Likewise.
2618 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
2619 pointers directly.
2620 * linux-nat.c (get_detach_signal): Likewise.
2621 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
2622 (thread_db_notice_clone): Adjust.
2623 (thread_db_find_new_threads_silently)
2624 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
2625 a thread pointer instead of a ptid_t. All callers adjusted.
2626 * mi/mi-cmd-var.c: Include "inferior.h".
2627 (mi_cmd_var_update_iter): Update to use thread pointers.
2628 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
2629 inferior directly.
2630 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
2631 out to ...
2632 (mi_output_running): ... this new function.
2633 (mi_on_resume_1): Adjust to use it.
2634 (mi_user_selected_context_changed): Adjust to use inferior_thread.
2635 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
2636 directly.
2637 (interrupt_thread_callback): : Adjust to use thread and inferior
2638 pointers.
2639 * proc-service.c: Include "gdbthread.h".
2640 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
2641 * progspace-and-thread.c: Include "inferior.h".
2642 * progspace.c: Include "inferior.h".
2643 * python/py-exitedevent.c (create_exited_event_object): Adjust to
2644 hold a reference to an inferior_object.
2645 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
2646 inferior_thread.
2647 * python/py-inferior.c (struct inferior_object): Give the type a
2648 tag name instead of a typedef.
2649 (python_on_normal_stop): No need to check if the current thread is
2650 listed.
2651 (inferior_to_inferior_object): Change return type to
2652 inferior_object. All callers adjusted.
2653 (find_thread_object): Delete, bits factored out to ...
2654 (thread_to_thread_object): ... this new function.
2655 * python/py-infthread.c (create_thread_object): Use
2656 inferior_to_inferior_object.
2657 (thpy_is_stopped): Use thread pointer directly.
2658 (gdbpy_selected_thread): Use inferior_thread.
2659 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
2660 field, replaced with ...
2661 <thread>: ... this new field. All users adjusted.
2662 (btpy_insn_or_gap_new): Drop const.
2663 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
2664 callers adjusted.
2665 * python/py-record.c: Include "gdbthread.h".
2666 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2667 a ptid_t. All callers adjusted.
2668 (gdbpy_current_recording): Use inferior_thread.
2669 * python/py-record.h (recpy_record_object) <ptid>: Delete
2670 field, replaced with ...
2671 <thread>: ... this new field. All users adjusted.
2672 (recpy_element_object) <ptid>: Delete
2673 field, replaced with ...
2674 <thread>: ... this new field. All users adjusted.
2675 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2676 a ptid_t. All callers adjusted.
2677 * python/py-threadevent.c: Include "gdbthread.h".
2678 (get_event_thread): Use thread_to_thread_object.
2679 * python/python-internal.h (struct inferior_object): Forward
2680 declare.
2681 (find_thread_object, find_inferior_object): Delete declarations.
2682 (thread_to_thread_object, inferior_to_inferior_object): New
2683 declarations.
2684 * record-btrace.c: Include "inferior.h".
2685 (require_btrace_thread): Use inferior_thread.
2686 (record_btrace_frame_sniffer)
2687 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
2688 (get_thread_current_frame): Use scoped_restore_current_thread and
2689 switch_to_thread.
2690 (get_thread_current_frame): Use thread pointer directly.
2691 (record_btrace_replay_at_breakpoint): Use thread's inferior
2692 pointer directly.
2693 * record-full.c: Include "inferior.h".
2694 * regcache.c: Include "gdbthread.h".
2695 (get_thread_arch_regcache): Use the inferior's address space
2696 directly.
2697 (get_thread_regcache, registers_changed_thread): New.
2698 * regcache.h (get_thread_regcache(thread_info *thread)): New
2699 overload.
2700 (registers_changed_thread): New.
2701 (remote_target) <remote_detach_1>: Swap order of parameters.
2702 (remote_add_thread): <remote_add_thread>: Return the new thread.
2703 (get_remote_thread_info(ptid_t)): New overload.
2704 (remote_target::remote_notice_new_inferior): Use thread pointers
2705 directly.
2706 (remote_target::process_initial_stop_replies): Use
2707 thread_info::set_running.
2708 (remote_target::remote_detach_1, remote_target::detach)
2709 (extended_remote_target::detach): Adjust.
2710 * stack.c (frame_show_address): Use inferior_thread.
2711 * target-debug.h (target_debug_print_thread_info_pp): New.
2712 * target-delegates.c: Regenerate.
2713 * target.c (default_thread_address_space): Delete.
2714 (memory_xfer_partial_1): Use current_inferior.
2715 (target_detach): Use current_inferior.
2716 (target_thread_address_space): Delete.
2717 (generic_mourn_inferior): Use current_inferior.
2718 * target.h (struct target_ops) <thread_address_space>: Delete.
2719 (target_thread_address_space): Delete.
2720 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
2721 pointers directly.
2722 (delete_thread_1, delete_thread, delete_thread_silent): Take a
2723 thread pointer instead of a ptid_t. Adjust all callers.
2724 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
2725 (first_thread_of_process): Delete, replaced by ...
2726 (first_thread_of_inferior): ... this new function. All callers
2727 adjusted.
2728 (any_thread_of_process): Rename to ...
2729 (any_thread_of_inferior): ... this, and take an inferior pointer.
2730 (any_live_thread_of_process): Rename to ...
2731 (any_live_thread_of_inferior): ... this, and take an inferior
2732 pointer.
2733 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2734 (value_in_thread_stack_temporaries)
2735 (get_last_thread_stack_temporary): Take a thread pointer instead
2736 of a ptid_t. Adjust all callers.
2737 (thread_info::set_running): New.
2738 (validate_registers_access): Use inferior_thread.
2739 (can_access_registers_ptid): Rename to ...
2740 (can_access_registers_thread): ... this, and take a thread
2741 pointer.
2742 (print_thread_info_1): Adjust to compare thread pointers instead
2743 of ptids.
2744 (switch_to_no_thread, switch_to_thread): Make extern.
2745 (scoped_restore_current_thread::~scoped_restore_current_thread):
2746 Use m_thread pointer directly.
2747 (scoped_restore_current_thread::scoped_restore_current_thread):
2748 Use inferior_thread.
2749 (thread_command): Use thread pointer directly.
2750 (thread_num_make_value_helper): Use inferior_thread.
2751 * top.c (execute_command): Use inferior_thread.
2752 * tui/tui-interp.c: Include "inferior.h".
2753 * varobj.c (varobj_create): Use inferior_thread.
2754 (value_of_root_1): Use find_thread_global_id instead of
2755 global_thread_id_to_ptid.
2756
2757 2018-06-21 Alan Hayward <alan.hayward@arm.com>
2758
2759 * regcache.c (readable_regcache::read_part): Avoid memcpy when
2760 possible.
2761 (regcache::write_part): Likewise.
2762 (readable_regcache::cooked_read_part): Update comment.
2763 (readable_regcache::cooked_write_part): Likewise.
2764 * regcache.h: (readable_regcache::read_part): Likewise.
2765 (regcache::write_part): Likewise.
2766
2767 2018-06-21 Richard Bunt <richard.bunt@arm.com>
2768 Dirk Schubert <dirk.schubert@arm.com>
2769
2770 * aarch64-linux-nat.c (post_attach): New.
2771 (aarch64_linux_nat_target::post_attach): Override post_attach to
2772 record the number of hardware debug registers.
2773
2774 2018-06-20 Tom Tromey <tom@tromey.com>
2775
2776 * python/py-param.c (add_setshow_generic): Make parameters const.
2777 (parmpy_init): Update.
2778
2779 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2780
2781 * regcache.h (regcache_cooked_read_ftype): Rename to...
2782 (register_read_ftype): ...this, change type to function_view.
2783 (class reg_buffer) <save>: Remove src parameter.
2784 (readonly_detached_regcache) <readonly_detached_regcache>: Make
2785 parameter non-const in first overload. Remove src parameter in
2786 second overload.
2787 * regcache.c (do_cooked_read): Remove.
2788 (readonly_detached_regcache::readonly_detached_regcache): Make
2789 parameter non-const, adjust call to other constructor.
2790 (reg_buffer::save): Remove src parameter.
2791 * frame.c (do_frame_register_read): Remove.
2792 (frame_save_as_regcache): Use lambda function.
2793 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
2794 parameter to ppu2spu_data *.
2795 (ppu2spu_sniffer): Use lambda function.
2796
2797 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * record-full.c (record_full_target::insert_breakpoint): Remove
2800 "struct" keyword, add const.
2801
2802 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2803
2804 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
2805 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
2806 * configure.ac: Remove AC_PREREQ, add missing quoting.
2807 * gnulib/configure.ac: Modernize usage of
2808 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
2809 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
2810 (AUTOMAKE_VERSION): Bump to 1.15.1.
2811 * configure: Re-generate.
2812 * config.in: Re-generate.
2813 * aclocal.m4: Re-generate.
2814 * gnulib/aclocal.m4: Re-generate.
2815 * gnulib/config.in: Re-generate.
2816 * gnulib/configure: Re-generate.
2817 * gnulib/import/Makefile.in: Re-generate.
2818
2819 2018-06-19 Pedro Alves <palves@redhat.com>
2820
2821 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
2822 (lookup_minimal_symbol_by_pc_section): ... here with
2823 gdb_assert_not_reached added.
2824
2825 2018-06-19 Pedro Alves <palves@redhat.com>
2826
2827 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
2828 parameter with a block parameter. Compare location's block symbol
2829 with the frame's block instead of addresses.
2830 (skip_inline_frames): Pass the current block instead of the
2831 frame's address. Break out as soon as we determine the frame
2832 should not be skipped.
2833
2834 2018-06-18 Tom Tromey <tom@tromey.com>
2835
2836 * solib-aix.c (solib_aix_get_section_offsets): Return
2837 unique_xmalloc_ptr.
2838 (solib_aix_solib_create_inferior_hook): Update.
2839
2840 2018-06-18 Tom Tromey <tom@tromey.com>
2841
2842 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
2843
2844 2018-06-18 Tom Tromey <tom@tromey.com>
2845
2846 * solib-frv.c (frv_relocate_main_executable): Use
2847 unique_xmalloc_ptr.
2848 * solib-dsbt.c (dsbt_relocate_main_executable): Use
2849 unique_xmalloc_ptr.
2850
2851 2018-06-18 Tom Tromey <tom@tromey.com>
2852
2853 * objfiles.h (inhibit_section_map_updates): Update.
2854 (resume_section_map_updates, resume_section_map_updates_cleanup):
2855 Remove.
2856 * solib-svr4.c (svr4_handle_solib_event): Update.
2857 * objfiles.c (inhibit_section_map_updates): Return
2858 scoped_restore_tmpl<int>.
2859 (resume_section_map_updates, resume_section_map_updates_cleanup):
2860 Remove.
2861
2862 2018-06-18 Tom Tromey <tom@tromey.com>
2863
2864 * valprint.h (read_string): Update.
2865 * valprint.c (read_string): Change type of "buffer".
2866 (val_print_string): Update.
2867 * python/py-value.c (valpy_string): Update.
2868 * language.h (struct language_defn) <la_get_string>: Change
2869 type of "buffer".
2870 (default_get_string, c_get_string): Update.
2871 * language.c (default_get_string): Change type of "buffer".
2872 * guile/scm-value.c (gdbscm_value_to_string): Update.
2873 * c-lang.c (c_get_string): Change type of "buffer".
2874
2875 2018-06-18 Tom Tromey <tom@tromey.com>
2876
2877 * ser-mingw.c (struct pipe_state_destroyer): New.
2878 (pipe_state_up): New typedef.
2879 (cleanup_pipe_state): Remove.
2880 (pipe_windows_open): Use pipe_state_up. Don't release argv.
2881
2882 2018-06-18 Tom Tromey <tom@tromey.com>
2883
2884 * rust-lang.h (rust_yyerror): Don't declare.
2885 * rust-lang.c (rust_language_defn): Update.
2886 * rust-exp.y (yyerror): Now static.
2887 * parse.c (parse_exp_in_context_1): Update.
2888 * p-lang.h (p_yyerror): Don't declare.
2889 * p-lang.c (p_language_defn): Update.
2890 * p-exp.y (yyerror): Now static.
2891 * opencl-lang.c (opencl_language_defn): Update.
2892 * objc-lang.c (objc_language_defn): Update.
2893 * m2-lang.h (m2_yyerror): Don't declare.
2894 * m2-lang.c (m2_language_defn): Update.
2895 * m2-exp.y (yyerror): Now static.
2896 * language.h (struct language_defn) <la_error>: Remove.
2897 * language.c (unk_lang_error): Remove.
2898 (unknown_language_defn, auto_language_defn): Remove.
2899 * go-lang.h (go_yyerror): Don't declare.
2900 * go-lang.c (go_language_defn): Update.
2901 * go-exp.y (yyerror): Now static.
2902 * f-lang.h (f_yyerror): Don't declare.
2903 * f-lang.c (f_language_defn): Update.
2904 * f-exp.y (yyerror): Now static.
2905 * d-lang.h (d_yyerror): Don't declare.
2906 * d-lang.c (d_language_defn): Update.
2907 * d-exp.y (yyerror): Now static.
2908 * c-lang.h (c_yyerror): Don't declare.
2909 * c-lang.c (c_language_defn, cplus_language_defn)
2910 (asm_language_defn, minimal_language_defn): Update.
2911 * c-exp.y (yyerror): Now static.
2912 * ada-lang.h (ada_yyerror): Don't declare.
2913 * ada-lang.c (ada_language_defn): Update.
2914 * ada-exp.y (yyerror): Now static.
2915
2916 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2917
2918 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
2919 (store_sveregs_to_thread): Likewise.
2920 (aarch64_linux_fetch_inferior_registers): Check for SVE.
2921 (aarch64_linux_store_inferior_registers): Likewise.
2922 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
2923 function.
2924 (aarch64_sve_regs_copy_to_regcache): Likewise.
2925 (aarch64_sve_regs_copy_from_regcache): Likewise.
2926 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
2927 declaration.
2928 (aarch64_sve_regs_copy_to_regcache): Likewise.
2929 (aarch64_sve_regs_copy_from_regcache): Likewise.
2930 (sve_context): Structure from Linux headers.
2931 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
2932 (SVE_SIG_ZREG_SIZE): Likewise.
2933 (SVE_SIG_PREG_SIZE): Likewise.
2934 (SVE_SIG_FFR_SIZE): Likewise.
2935 (SVE_SIG_REGS_OFFSET): Likewise.
2936 (SVE_SIG_ZREGS_OFFSET): Likewise.
2937 (SVE_SIG_ZREG_OFFSET): Likewise.
2938 (SVE_SIG_ZREGS_SIZE): Likewise.
2939 (SVE_SIG_PREGS_OFFSET): Likewise.
2940 (SVE_SIG_PREG_OFFSET): Likewise.
2941 (SVE_SIG_PREGS_SIZE): Likewise.
2942 (SVE_SIG_FFR_OFFSET): Likewise.
2943 (SVE_SIG_REGS_SIZE): Likewise.
2944 (SVE_SIG_CONTEXT_SIZE): Likewise.
2945 (SVE_PT_REGS_MASK): Likewise.
2946 (SVE_PT_REGS_FPSIMD): Likewise.
2947 (SVE_PT_REGS_SVE): Likewise.
2948 (SVE_PT_VL_INHERIT): Likewise.
2949 (SVE_PT_VL_ONEXEC): Likewise.
2950 (SVE_PT_REGS_OFFSET): Likewise.
2951 (SVE_PT_FPSIMD_OFFSET): Likewise.
2952 (SVE_PT_FPSIMD_SIZE): Likewise.
2953 (SVE_PT_SVE_ZREG_SIZE): Likewise.
2954 (SVE_PT_SVE_PREG_SIZE): Likewise.
2955 (SVE_PT_SVE_FFR_SIZE): Likewise.
2956 (SVE_PT_SVE_FPSR_SIZE): Likewise.
2957 (SVE_PT_SVE_FPCR_SIZE): Likewise.
2958 (__SVE_SIG_TO_PT): Likewise.
2959 (SVE_PT_SVE_OFFSET): Likewise.
2960 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
2961 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
2962 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
2963 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
2964 (SVE_PT_SVE_PREG_OFFSET): Likewise.
2965 (SVE_PT_SVE_PREGS_SIZE): Likewise.
2966 (SVE_PT_SVE_FFR_OFFSET): Likewise.
2967 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
2968 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
2969 (SVE_PT_SVE_SIZE): Likewise.
2970 (SVE_PT_SIZE): Likewise.
2971 (HAS_SVE_STATE): New define.
2972
2973 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2974
2975 * nat/aarch64-sve-linux-sigcontext.h: New file.
2976 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
2977 new files.
2978 (SVE_VQ_MIN): Likewise.
2979 (SVE_VQ_MAX): Likewise.
2980 (SVE_VL_MIN): Likewise.
2981 (SVE_VL_MAX): Likewise.
2982 (SVE_NUM_ZREGS): Likewise.
2983 (SVE_NUM_PREGS): Likewise.
2984 (sve_vl_valid): Likewise.
2985 (struct user_sve_header): Likewise.
2986
2987 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
2988 Richard Bunt <Richard.Bunt@arm.com>
2989
2990 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
2991 was requested by GDB.
2992
2993 2018-06-15 Tom de Vries <tdevries@suse.de>
2994
2995 * MAINTAINERS (Write After Approval): Add Tom de Vries.
2996
2997 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * gnulib/update-gnulib.sh: Print expected versions of
3000 autoconf/aclocal.
3001
3002 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3003
3004 * arch-utils.c (default_type_align): Use type_length_units.
3005 * gdbtypes.c (type_align): Use type_length_units.
3006
3007 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3008
3009 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3010 of 'define' command.
3011
3012 2018-06-14 Tom de Vries <tdevries@suse.de>
3013
3014 PR cli/22573
3015 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
3016 get_no_prettyformat_print_options.
3017
3018 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
3019
3020 * sparc-nat.h: Include target.h.
3021 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
3022 <fetch_registers>: Remove this argument in function call.
3023 <store_registers>: Remove this argument in function call, remove
3024 extra semicolon.
3025 <low_forget_process>: Call sparc64_forget_process instead of
3026 sparc_forget_process.
3027
3028 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3029
3030 * procfs.c (_initialize_procfs): Use add_inf_child_target.
3031 (procfs_target::make_corefile_notes): Adjust to new
3032 target_read_alloc return type.
3033
3034 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3035 Stephen Roberts <stephen.roberts@arm.com>
3036
3037 PR gdb/22882
3038 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
3039 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
3040 Move should_notify_stop local into more inner scope.
3041
3042 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3043 Stephen Roberts <stephen.roberts@arm.com>
3044
3045 PR gdb/22882
3046 * infrun.c (resume_1): Add call to mark_async_event_handler.
3047
3048 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3049
3050 * infrun.c (do_target_wait): Change old version of $pc printed.
3051
3052 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
3053
3054 * dwarf2read.c (read_index_from_section): Rename to...
3055 (read_gdb_index_from_section): ... this, update all callers.
3056 (dwarf2_read_index): Rename to...
3057 (dwarf2_read_gdb_index): ... this, update all callers.
3058
3059 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
3060
3061 * gdb/hppa-linux-nat.c
3062 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
3063 hppa_linux_nat_target::fetch_registers.
3064
3065 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3066
3067 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
3068 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
3069 (AARCH64_DWARF_SVE_FFR): Likewise.
3070 (AARCH64_DWARF_SVE_P0): Likewise.
3071 (AARCH64_DWARF_SVE_Z0): Likewise.
3072
3073 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3074
3075 * common/common-regcache.h (raw_compare): New function.
3076 * regcache.c (regcache::raw_compare): Likewise.
3077 * regcache.h (regcache::raw_compare): New declaration.
3078
3079 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3080
3081 * common/common-regcache.h (reg_buffer_common): New structure.
3082 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
3083 (reg_buffer::raw_supply): Likewise.
3084 (reg_buffer::raw_supply_integer): Likewise.
3085 (reg_buffer::raw_supply_zeroed): Likewise.
3086 (reg_buffer::raw_collect): Likewise.
3087 (reg_buffer::raw_collect_integer): Likewise.
3088 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
3089 (reg_buffer::raw_supply): Likewise.
3090 (reg_buffer::raw_supply_integer): Likewise.
3091 (reg_buffer::raw_supply_zeroed): Likewise.
3092 (reg_buffer::raw_collect): Likewise.
3093 (reg_buffer::raw_collect_integer): Likewise.
3094
3095 2018-06-10 Tom Tromey <tom@tromey.com>
3096
3097 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
3098 (class remote_state) <stop_reply_queue>: Now std::vector.
3099 (remote_state::~remote_state)
3100 (remote_target::stop_reply_queue_length): Update.
3101 (struct queue_iter_param, remove_child_of_pending_fork)
3102 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
3103 (check_pending_event_prevents_wildcard_vcont_callback)
3104 (remove_stop_reply_for_inferior)
3105 (remove_stop_reply_of_remote_state)
3106 (remote_notif_remove_once_on_match)
3107 (stop_reply_match_ptid_and_ws)
3108 (remote_kill_child_of_pending_fork): Remove.
3109 (remote_target::remove_new_fork_children)
3110 (remote_target::check_pending_events_prevent_wildcard_vcont)
3111 (remote_target::discard_pending_stop_replies)
3112 (remote_target::discard_pending_stop_replies_in_queue)
3113 (remote_target::remote_notif_remove_queued_reply)
3114 (remote_target::queued_stop_reply)
3115 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3116 (remote_target::wait, remote_target::kill_new_fork_children)
3117 (remote_target::async): Update.
3118
3119 2018-06-10 Tom Tromey <tom@tromey.com>
3120
3121 * record-full.c (record_full_arch_list_cleanups): Remove.
3122 (record_full_message): Use try/catch.
3123 (record_full_wait_cleanups): Remove.
3124 (record_full_wait_1): Use try/catch.
3125 (record_full_restore): Likewise.
3126
3127 2018-06-10 Tom Tromey <tom@tromey.com>
3128
3129 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3130 declare VEC. Add constructor.
3131 <in_target_beneath>: Now bool.
3132 (record_full_breakpoints): Now a std::vector, static.
3133 (record_full_sync_record_breakpoints)
3134 (record_full_init_record_breakpoints)
3135 (record_full_target::insert_breakpoint)
3136 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3137
3138 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3139
3140 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3141 * serial.c (serial_interface_lookup): Remove struct keyword.
3142
3143 2018-06-10 Tom Tromey <tom@tromey.com>
3144
3145 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3146 method.
3147 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3148 a method.
3149 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3150 method.
3151 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3152 "beneath" as a method.
3153 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3154 Use "beneath" as a method.
3155
3156 2018-06-10 Tom Tromey <tom@tromey.com>
3157
3158 * tracefile.c (struct trace_file_writer_deleter): New.
3159 <operator()>: Rename from trace_file_writer_xfree.
3160 (trace_file_writer_up): New typedef.
3161 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3162
3163 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3164
3165 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3166 <m_registers, m_register_status>: Change type to
3167 std::unique_ptr.
3168 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3169 XCNEWVEC.
3170
3171 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3172
3173 * common/common-regcache.h (enum register_status): Add
3174 underlying type "signed char".
3175 * regcache.h (reg_buffer) <m_register_status>: Change type to
3176 register_status *.
3177 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3178 register_status instead of signed char.
3179 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3180 (reg_buffer::get_register_status): Remove cast.
3181 (readable_regcache::raw_read): Remove cast.
3182 (readable_regcache::cooked_read): Remove cast.
3183
3184 2018-06-09 Tom Tromey <tom@tromey.com>
3185
3186 * source.c (reverse_search_command, forward_search_command): Use
3187 scoped_fd.
3188
3189 2018-06-09 Tom Tromey <tom@tromey.com>
3190
3191 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3192 (serial_ops_list): Now static, std::vector.
3193 (serial_interface_lookup, serial_add_interface): Update.
3194
3195 2018-06-09 Tom Tromey <tom@tromey.com>
3196
3197 * dwarf2read.c (process_cu_includes): Update.
3198 (process_full_comp_unit): Update.
3199 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3200 std::vector.
3201
3202 2018-06-08 Paul Koning <paul_koning@dell.com>
3203
3204 PR gdb/23252
3205
3206 * python/python.c (do_start_initialization):
3207 Avoid call to internal Python API.
3208 (init__gdb_module): New function.
3209
3210 2018-06-08 Gary Benson <gbenson@redhat.com>
3211
3212 * linux-thread-db.c (valprint.h): New include.
3213 (struct check_thread_db_info): New structure.
3214 (check_thread_db_on_load, tdb_testinfo): New static globals.
3215 (check_thread_db, check_thread_db_callback): New functions.
3216 (try_thread_db_load_1): Run integrity checks if requested.
3217 (maintenance_check_libthread_db): New function.
3218 (_initialize_thread_db): Register "maint check libthread-db"
3219 and "maint set/show check-libthread-db".
3220 * NEWS: Mention the above new commands.
3221
3222 2018-06-08 Tom Tromey <tom@tromey.com>
3223
3224 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3225 now a method.
3226
3227 2018-06-08 Tom Tromey <tom@tromey.com>
3228
3229 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3230
3231 2018-06-08 Tom Tromey <tom@tromey.com>
3232
3233 * common/btrace-common.h (struct btrace_data): Add constructor,
3234 destructor, move assignment operator.
3235 <empty, clear, fini>: New methods.
3236 <format>: Initialize.
3237 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3238 (btrace_data_empty): Don't declare.
3239 * common/btrace-common.c (btrace_data_init): Remove.
3240 (btrace_data::fini): Rename from btrace_data_fini.
3241 (btrace_data::empty): Rename from btrace_data_empty.
3242 (btrace_data::clear): Rename from btrace_data_clear. Return
3243 bool.
3244 * btrace.h (make_cleanup_btrace_data): Don't declare.
3245 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3246 (parse_xml_btrace): Update.
3247 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3248 (maint_btrace_clear_packet_history_cmd): Update.
3249
3250 2018-06-07 Pedro Alves <palves@redhat.com>
3251
3252 * target.h (target_ops) <beneath>: Now a method. All references
3253 updated.
3254 (class target_stack): New.
3255 * target.c (g_target_stack): New.
3256 (g_current_top_target): Delete.
3257 (current_top_target): Get the top target out of g_target_stack.
3258 (target_stack::push, target_stack::unpush): New.
3259 (push_target, unpush_target): Reimplement.
3260 (target_is_pushed): Reimplement in terms of g_target_stack.
3261 (target_ops::beneath, target_stack::find_beneath): New.
3262
3263 2018-06-07 Pedro Alves <palves@redhat.com>
3264
3265 * target.h (find_target_beneath): Delete declaration.
3266 * target.c (find_target_beneath): Delete definition.
3267 * aix-thread.c: All callers of find_target_beneath adjusted to
3268 call target_ops::beneath instead.
3269 * bsd-uthread.c: Likewise.
3270 * linux-thread-db.c: Likewise.
3271 * ravenscar-thread.c: Likewise.
3272 * sol-thread.c: Likewise.
3273 * spu-multiarch.c: Likewise.
3274
3275 2018-06-07 Pedro Alves <palves@redhat.com>
3276
3277 * target.h (target_ops) <beneath>: Now a method. All references
3278 updated.
3279 (target_ops) <m_beneath>: New.
3280 * target.c (target_ops::beneath): New.
3281 * corelow.c: Adjust all references to target_ops::beneath.
3282 * linux-thread-db.c: Likewise.
3283 * make-target-delegates: Likewise.
3284 * record-btrace.c: Likewise.
3285 * record-full.c: Likewise.
3286 * remote.c: Likewise.
3287 * target.c: Likewise.
3288 * target-delegates.c: Regenerate.
3289
3290 2018-06-07 Pedro Alves <palves@redhat.com>
3291
3292 * target.h (target_stack): Delete.
3293 (current_top_target): Declare function.
3294 * target.c (target_stack): Delete.
3295 (g_current_top_target): New.
3296 (current_top_target): New function.
3297 * auxv.c: Use current_top_target instead of target_stack
3298 throughout.
3299 * avr-tdep.c: Likewise.
3300 * breakpoint.c: Likewise.
3301 * corefile.c: Likewise.
3302 * elfread.c: Likewise.
3303 * eval.c: Likewise.
3304 * exceptions.c: Likewise.
3305 * frame.c: Likewise.
3306 * gdbarch-selftests.c: Likewise.
3307 * gnu-v3-abi.c: Likewise.
3308 * ia64-tdep.c: Likewise.
3309 * ia64-vms-tdep.c: Likewise.
3310 * infcall.c: Likewise.
3311 * infcmd.c: Likewise.
3312 * infrun.c: Likewise.
3313 * linespec.c: Likewise.
3314 * linux-tdep.c: Likewise.
3315 * minsyms.c: Likewise.
3316 * ppc-linux-nat.c: Likewise.
3317 * ppc-linux-tdep.c: Likewise.
3318 * procfs.c: Likewise.
3319 * regcache.c: Likewise.
3320 * remote.c: Likewise.
3321 * rs6000-tdep.c: Likewise.
3322 * s390-linux-nat.c: Likewise.
3323 * s390-tdep.c: Likewise.
3324 * solib-aix.c: Likewise.
3325 * solib-darwin.c: Likewise.
3326 * solib-dsbt.c: Likewise.
3327 * solib-spu.c: Likewise.
3328 * solib-svr4.c: Likewise.
3329 * solib-target.c: Likewise.
3330 * sparc-tdep.c: Likewise.
3331 * sparc64-tdep.c: Likewise.
3332 * spu-tdep.c: Likewise.
3333 * symfile.c: Likewise.
3334 * symtab.c: Likewise.
3335 * target-descriptions.c: Likewise.
3336 * target-memory.c: Likewise.
3337 * target.c: Likewise.
3338 * target.h: Likewise.
3339 * tracefile-tfile.c: Likewise.
3340 * tracepoint.c: Likewise.
3341 * valops.c: Likewise.
3342 * valprint.c: Likewise.
3343 * value.c: Likewise.
3344 * windows-tdep.c: Likewise.
3345 * mi/mi-main.c: Likewise.
3346
3347 2018-06-07 Tom Tromey <tom@tromey.com>
3348
3349 * valprint.h (build_address_symbolic): Declare.
3350 * printcmd.c (print_address_symbolic): Update.
3351 (build_address_symbolic): Change "name" and "filename" to
3352 std::string.
3353 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3354 Update.
3355 * defs.h (build_address_symbolic): Remove declaration.
3356
3357 2018-06-07 Alan Hayward <alan.hayward@arm.com>
3358
3359 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3360 (aarch64_vnv_type): Add function.
3361 (aarch64_pseudo_register_name): Add V regs for SVE.
3362 (aarch64_pseudo_register_type): Likewise.
3363 (aarch64_pseudo_register_reggroup_p): Likewise.
3364 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3365 (aarch64_pseudo_read_value): Add V regs for SVE.
3366 (aarch64_pseudo_write_2): Use V0 offset for SVE
3367 (aarch64_pseudo_write): Add V regs for SVE.
3368 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3369
3370 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3371
3372 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3373 (sve_vl_from_vq): Likewise.
3374
3375 2018-06-05 Tom Tromey <tom@tromey.com>
3376
3377 * cli/cli-cmds.c (show_version): Update.
3378 * top.c (print_gdb_version): Add "interactive" parameter.
3379 Update.
3380 * main.c (captured_main_1): Update.
3381 * top.h (print_gdb_version): Add "interactive" parameter and a
3382 comment.
3383
3384 2018-06-05 David Malcolm <dmalcolm@redhat.com>
3385
3386 * common/enum-flags.h: Add trailing semicolon to example in
3387 comment.
3388
3389 2018-06-05 Tom Tromey <tom@tromey.com>
3390
3391 PR cli/12326:
3392 * NEWS: Add entry about pager.
3393 * utils.c (pagination_disabled_for_command): New global.
3394 (prompt_for_continue): Allow "c" response to prompt.
3395 (reinitialize_more_filter): Clear
3396 pagination_disabled_for_command.
3397 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3398
3399 2018-06-04 Tom Tromey <tom@tromey.com>
3400
3401 * ada-lang.h (ada_lookup_symbol_list): Update.
3402 * ada-lang.c (resolve_subexp): Update.
3403 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3404 parameter.
3405 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3406 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3407 results parameter to std::vector.
3408 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3409 Update.
3410 * ada-exp.y (block_lookup): Update.
3411 (select_possible_type_sym): Change type of syms. Remove nsyms
3412 parameter.
3413 (write_var_or_type, write_name_assoc): Update.
3414
3415 2018-06-04 Joel Brobecker <brobecker@adacore.com>
3416
3417 * windows-nat.c (windows_nat_target::xfer_partial): Return
3418 TARGET_XFER_E_IO if we need to delegate to the target beneath
3419 but BENEATH is NULL.
3420
3421 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3422
3423 * Makefile.in (config.status): Add configure.nat as a
3424 dependency.
3425
3426 2018-06-04 Tom Tromey <tom@tromey.com>
3427
3428 * cp-name-parser.y (cpname_state): Add method declarations.
3429 (HANDLE_QUAL): Update.
3430 (cpname_state::d_grab, cpname_state::fill_comp)
3431 (cpname_state::make_operator, cpname_state::make_dtor)
3432 (cpname_state::make_builtin_type, cpname_state::make_name)
3433 (cpname_state::d_qualify, cpname_state::d_int_type)
3434 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3435 (%union): Move earlier.
3436
3437 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3438
3439 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3440
3441 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3442
3443 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3444 (aarch64_pseudo_write_1): Likewise.
3445 (aarch64_pseudo_read_value): Use helper.
3446 (aarch64_pseudo_write): Likewise.
3447
3448 2018-06-04 Pedro Alves <palves@redhat.com>
3449
3450 * darwin-nat.c (darwin_ops): Delete.
3451 (darwin_attach_pid): Use get_native_target.
3452
3453 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3454
3455 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3456 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3457
3458 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3459
3460 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3461 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3462 (aarch64_gdbarch_init): Check for SVE.
3463 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3464
3465 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3466
3467 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3468 * aarch64-tdep.h (aarch64_read_description): Likewise.
3469 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3470 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3471 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3472 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3473 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3474
3475 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3476
3477 * value.c (value_fetch_lazy_bitfield): New.
3478 (value_fetch_lazy_memory): New.
3479 (value_fetch_lazy_register): New.
3480 (value_fetch_lazy): Factor out to smaller functions.
3481
3482 2018-06-01 Tom Tromey <tom@tromey.com>
3483
3484 * cp-name-parser.y (backslashable, represented): Now const.
3485
3486 2018-06-01 Tom Tromey <tom@tromey.com>
3487
3488 * cp-name-parser.y: Include parser-defs.h.
3489 (parser_fprintf): Remove declaration.
3490
3491 2018-06-01 Tom Tromey <tom@tromey.com>
3492
3493 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3494 %parse-param.
3495 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3496 (global_result): Remove globals.
3497 (struct cpname_state): New.
3498 (yyparse): Don't declare.
3499 (yylex, yyerror): Move declarations after %union.
3500 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3501 (make_name): Add state parameter.
3502 Update all callers.
3503 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3504 parameter.
3505 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3506 Update.
3507 (yylex): Add lvalp, state parameters.
3508 (yyerror): Add state parameter.
3509 (cp_demangled_name_to_comp): Update.
3510
3511 2018-06-01 Tom Tromey <tom@tromey.com>
3512
3513 * cp-name-parser.y (parser_fprintf): Declare.
3514 (GDB_YY_REMAP_PREFIX): Define.
3515 Include yy-remap.h. Don't redefine yy* identifiers.
3516
3517 2018-06-01 Tom Tromey <tom@tromey.com>
3518
3519 * python/py-type.c (typy_legacy_template_argument): Update.
3520 * cp-support.h (cp_demangled_name_to_comp): Update.
3521 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3522 parameter to be a "std::string *".
3523 (main): Update.
3524
3525 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3526
3527 * ada-lex.l: Include "diagnostics.h" instead of
3528 "common/diagnostics.h".
3529 * unittests/environ-selftests.c: Likewise.
3530 * common/diagnostics.h: Moved to ../include.
3531
3532 2018-06-01 Joel Brobecker <brobecker@adacore.com>
3533
3534 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3535 to language_mode_manual while calling breakpoint_re_set_one.
3536
3537 2018-06-01 Tom Tromey <tom@tromey.com>
3538
3539 * valops.c (value_cast_structs, destructor_name_p): Update.
3540 * symtab.c (gdb_mangle_name): Update.
3541 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3542 Update.
3543 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3544 (pascal_object_print_value_fields, pascal_object_print_value):
3545 Update.
3546 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3547 * linespec.c (find_methods): Update.
3548 * gdbtypes.h (type_name_no_tag): Remove.
3549 (type_name_or_error): Rename from type_name_no_tag_or_error.
3550 * gdbtypes.c (type_name_no_tag): Remove.
3551 (type_name_or_error): Rename from type_name_no_tag_or_error.
3552 (lookup_struct_elt_type, check_typedef): Update.
3553 * expprint.c (print_subexp_standard): Update.
3554 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3555 * d-namespace.c (d_lookup_nested_symbol): Update.
3556 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3557 (cp_print_class_member): Update.
3558 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3559 * completer.c (add_struct_fields): Update.
3560 * c-typeprint.c (cp_type_print_derivation_info)
3561 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3562 Update.
3563 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3564 (ada_prefer_type, ada_is_exception_sym): Update.
3565
3566 2018-06-01 Tom Tromey <tom@tromey.com>
3567
3568 * valops.c (enum_constant_from_type, value_namespace_elt)
3569 (value_maybe_namespace_elt): Update.
3570 * valarith.c (find_size_for_pointer_math): Update.
3571 * target-descriptions.c (make_gdb_type): Update.
3572 * symmisc.c (print_symbol): Update.
3573 * stabsread.c (define_symbol, read_type)
3574 (complain_about_struct_wipeout, add_undefined_type)
3575 (cleanup_undefined_types_1): Update.
3576 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3577 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3578 (rust_internal_print_type, rust_composite_type)
3579 (rust_evaluate_funcall, rust_evaluate_subexp)
3580 (rust_inclusive_range_type_p): Update.
3581 * python/py-type.c (typy_get_tag): Update.
3582 * p-typeprint.c (pascal_type_print_base): Update.
3583 * mdebugread.c (parse_symbol, parse_type): Update.
3584 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
3585 Update.
3586 * guile/scm-type.c (gdbscm_type_tag): Update.
3587 * go-lang.c (sixg_string_p): Update.
3588 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
3589 Update.
3590 * gdbtypes.h (struct main_type) <tag_name>: Remove.
3591 (TYPE_TAG_NAME): Remove.
3592 * gdbtypes.c (type_name_no_tag): Simplify.
3593 (check_typedef, check_types_equal, recursive_dump_type)
3594 (copy_type_recursive, arch_composite_type): Update.
3595 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
3596 in summary mode when needed.
3597 * eval.c (evaluate_funcall): Update.
3598 * dwarf2read.c (fixup_go_packaging, read_structure_type)
3599 (process_structure_scope, read_enumeration_type)
3600 (read_namespace_type, read_module_type, determine_prefix): Update.
3601 * cp-support.c (inspect_type): Update.
3602 * coffread.c (process_coff_symbol, decode_base_type): Update.
3603 * c-varobj.c (c_is_path_expr_parent): Update.
3604 * c-typeprint.c (c_type_print_base_struct_union): Update.
3605 (c_type_print_base_1): Update. Print struct/class/union/enum in
3606 summary when using C language.
3607 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
3608 (gen_maybe_namespace_elt): Update.
3609 * ada-lang.c (ada_type_name): Simplify.
3610 (empty_record, ada_template_to_fixed_record_type_1)
3611 (template_to_static_fixed_type)
3612 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
3613
3614 2018-06-01 Tom Tromey <tom@tromey.com>
3615
3616 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
3617 c_print_type.
3618 * c-typeprint.c (c_print_type_1): Add "language" parameter.
3619 (c_print_type): Update.
3620 (c_print_type): New overload.
3621 (c_type_print_varspec_prefix, c_type_print_args)
3622 (c_type_print_varspec_suffix, c_print_type_no_offsets)
3623 (c_type_print_base_struct_union, c_type_print_base_1)
3624 (cp_type_print_method_args): Add "language" parameter.
3625 (c_type_print_base): Update.
3626 * c-lang.h (c_print_type): Add new overload.
3627
3628 2018-06-01 Tom Tromey <tom@tromey.com>
3629
3630 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
3631 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
3632
3633 2018-06-01 Alan Hayward <alan.hayward@arm.com>
3634
3635 * aarch64-tdep.c (aarch64_sve_register_names): New const
3636 var.
3637 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
3638 (AARCH64_SVE_Z_REGS_NUM): New define.
3639 (AARCH64_SVE_P_REGS_NUM): Likewise.
3640 (AARCH64_SVE_NUM_REGS): Likewise.
3641
3642 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
3643
3644 * nat/linux-ptrace.h [__alpha__]
3645 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
3646 definitions.
3647
3648 2018-05-31 Maciej W. Rozycki <macro@mips.com>
3649
3650 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
3651 the endianness selected.
3652 * NEWS: Document `set endian auto' mode operation update.
3653
3654 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3655
3656 * Makefile.in: Add new header.
3657 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
3658 (sve_vl_from_vg): Likewise.
3659 (sve_vq_from_vl): Likewise.
3660 (sve_vl_from_vq): Likewise.
3661 (sve_vq_from_vg): Likewise.
3662 (sve_vg_from_vq): Likewise.
3663 * configure.nat: Add new c file.
3664 * nat/aarch64-sve-linux-ptrace.c: New file.
3665 * nat/aarch64-sve-linux-ptrace.h: New file.
3666
3667 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3668
3669 * aarch64-linux-nat.c (aarch64_linux_read_description):
3670 Add parmeter zero.
3671 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3672 Likewise.
3673 * aarch64-tdep.c (tdesc_aarch64_list): Add.
3674 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
3675 (aarch64_gdbarch_init): Add parmeter zero.
3676 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
3677 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
3678 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
3679 parmeter.
3680 * doc/gdb.texinfo: Describe SVE feature
3681 * features/aarch64-sve.c: New file.
3682
3683 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
3684
3685 PR gdb/23210
3686 * gdbarch.sh (significant_addr_bit): Default to zero when
3687 not set by target architecture.
3688 * gdbarch.c: Re-generated.
3689 * utils.c (address_significant): Update.
3690
3691 2018-05-30 Joel Brobecker <brobecker@adacore.com>
3692
3693 * stack.c (func_command): Remove trailing newline in call to error.
3694
3695 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3696
3697 * regcache.h (regcache_raw_collect): Remove, update callers to
3698 use regcache::raw_collect.
3699 * regcache.c (regcache_raw_collect): Remove.
3700
3701 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3702
3703 * regcache.h (regcache_raw_supply): Remove, update callers to
3704 use detached_regcache::raw_supply.
3705 * regcache.c (regcache_raw_supply): Remove.
3706
3707 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3708
3709 * regcache.h (regcache_cooked_write_part): Remove, update
3710 callers to use regcache::cooked_write_part.
3711 * regcache.c (regcache_cooked_write_part): Remove.
3712
3713 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3714
3715 * regcache.h (regcache_cooked_read_part): Remove, update callers
3716 to use readable_regcache::cooked_read_part.
3717 * regcache.c (regcache_cooked_read_part): Remove.
3718
3719 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3720
3721 * regcache.h (regcache_cooked_read_value): Remove, update
3722 callers to use readable_regcache::cooked_read_value.
3723 * regcache.c (regcache_cooked_read_value): Remove.
3724
3725 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3726
3727 * regcache.h (regcache_cooked_write): Remove, update callers to
3728 use regcache::cooked_write.
3729 * regcache.c (regcache_cooked_write): Remove.
3730
3731 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3732
3733 * regcache.h (regcache_invalidate): Remove, update callers to
3734 use detached_regcache::invalidate instead.
3735 * regcache.c (regcache_invalidate): Remove.
3736
3737 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3738
3739 * regcache.h (regcache_raw_write_part): Remove, update callers
3740 to use regcache::raw_write_part instead.
3741 * regcache.c (regcache_raw_write_part): Remove.
3742
3743 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * regcache.h (regcache_raw_read_part): Remove, update callers to
3746 use readable_regcache::raw_read_part instead.
3747 * regcache.c (regcache_raw_read_part): Remove.
3748
3749 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3750
3751 * regcache.h (regcache_cooked_read): Remove, update callers to
3752 use readable_regcache::cooked_read instead.
3753 * regcache.c (regcache_cooked_read): Remove.
3754
3755 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3756
3757 * regcache.h (regcache_raw_write): Remove, update callers to use
3758 regcache::raw_write instead.
3759 * regcache.c (regcache_raw_write): Remove.
3760
3761 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3762
3763 * regcache.h (regcache_raw_read): Remove, update callers to use
3764 readable_regcache::raw_read instead.
3765 * regcache.c (regcache_raw_read): Remove.
3766
3767 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3768
3769 * regcache.h (regcache_raw_update): Remove, update callers to
3770 use readable_regcache::raw_update instead.
3771 * regcache.c (regcache_raw_update): Remove.
3772
3773 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3774
3775 * regcache.h (regcache_register_status): Remove, update callers
3776 to use reg_buffer::get_register_status directly instead.
3777 * regcache.c (regcache_register_status): Remove.
3778
3779 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3780
3781 * regcache.h (regcache_get_ptid): Remove, update all callers to
3782 call regcache::ptid instead.
3783 * regcache.c (regcache_get_ptid): Remove.
3784
3785 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3786
3787 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
3788
3789 2018-05-30 Pedro Alves <palves@redhat.com>
3790
3791 * common/common-exceptions.h (exception_rethrow): Use
3792 ATTRIBUTE_NORETURN.
3793
3794 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
3795
3796 * breakpoint.c (print_solib_event, check_status_catch_solib):
3797 Remove struct keyword in range-based for loops.
3798 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
3799 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
3800 Likewise.
3801 * linespec.c (find_superclass_methods, search_minsyms_for_name):
3802 Likewise.
3803 * symfile.c (addr_info_make_relative): Likewise.
3804 * thread.c (value_in_thread_stack_temporaries): Likewise.
3805
3806 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
3807
3808 PR gdb/16841
3809 * valops.c (value_struct_elt_for_reference): Call check_typedef on
3810 aggregate type to get its real type before accessing it.
3811
3812 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
3813
3814 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
3815 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
3816 * coff-pe-read.c (add_pe_forwarded_sym): Replace
3817 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
3818 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
3819 * jit.c (jit_breakpoint_re_set_internal): Likewise.
3820 * printcmd.c (info_address_command): Likewise.
3821
3822 2018-05-29 Tom Tromey <tom@tromey.com>
3823
3824 * windows-nat.c (handle_exception): Update fall-through comment.
3825
3826 2018-05-29 Tom Tromey <tom@tromey.com>
3827
3828 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
3829 (struct program_space) <added_solibs>: Now a std::vector.
3830 * breakpoint.c (print_solib_event): Update.
3831 (check_status_catch_solib): Update.
3832 * progspace.c (clear_program_space_solib_cache): Update.
3833 * solib.c (update_solib_list): Update.
3834
3835 2018-05-29 Tom Tromey <tom@tromey.com>
3836
3837 * python/py-type.c (typy_richcompare): Update.
3838 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
3839 * gdbtypes.h (types_deeply_equal): Return bool.
3840 (types_equal): Likewise.
3841 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
3842 declare VEC.
3843 (check_types_equal): Change worklist to std::vector. Return
3844 bool.
3845 (struct type_equality_entry): Add constructor.
3846 (compare_maybe_null_strings): Return bool.
3847 (check_types_worklist): Return bool. Change worklist to
3848 std::vector.
3849 (types_deeply_equal): Use std::vector.
3850 (types_equal): Return bool.
3851 (compare_maybe_null_strings): Simplify.
3852
3853 2018-05-29 Tom Tromey <tom@tromey.com>
3854
3855 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
3856
3857 2018-05-29 Tom Tromey <tom@tromey.com>
3858
3859 * objc-lang.h: Don't include cp-support.h.
3860 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
3861 declare VEC.
3862
3863 2018-05-27 Tom Tromey <tom@tromey.com>
3864
3865 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
3866
3867 2018-05-25 Tom Tromey <tom@tromey.com>
3868
3869 * value.c (value::location): Initialize.
3870
3871 2018-05-25 Tom Tromey <tom@tromey.com>
3872
3873 * dbxread.c (init_bincl_list): Remove.
3874 (bincl_list): Now a std::vector.
3875 (bincls_allocated, next_bincl): Remove.
3876 (free_bincl_list, do_free_bincl_list_cleanup)
3877 (make_cleanup_free_bincl_list): Remove.
3878 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
3879 unique_xmalloc_ptr.
3880 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
3881 (struct header_file_location): Add constructor.
3882 (add_bincl_to_list): Remove.
3883
3884 2018-05-25 Tom Tromey <tom@tromey.com>
3885
3886 * tui/tui.c (tui_enable): Update.
3887 * mi/mi-interp.c (mi_interp::init): Update.
3888 * interps.h (class interp) <name>: New method.
3889 <m_name>: Rename from name.
3890 (~scoped_restore_interp): Update.
3891 * interps.c (interp::interp): Update.
3892 (interp_add, interp_set, interp_lookup_existing)
3893 (current_interp_named_p): Update.
3894
3895 2018-05-25 Tom Tromey <tom@tromey.com>
3896
3897 * interps.c (interp_name): Remove.
3898 * mi/mi-interp.c (mi_interp::init): Update.
3899 * interps.h (interp_name): Remove.
3900 (~scoped_restore_interp): Update.
3901 * tui/tui.c (tui_enable): Update.
3902
3903 2018-05-25 Tom Tromey <tom@tromey.com>
3904
3905 * utils.c (fputs_maybe_filtered): Update.
3906 * linespec.c (decode_line_full): Update.
3907 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
3908 (mi_print_breakpoint_for_event, mi_solib_loaded)
3909 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3910 (mi_user_selected_context_changed): Update.
3911 * mi/mi-main.c (mi_execute_command): Update.
3912 * cli/cli-script.c (execute_control_command): Update.
3913 * python/python.c (execute_gdb_command): Update.
3914 * solib.c (info_sharedlibrary_command): Update.
3915 * interps.c (interp_ui_out): Remove.
3916 * interps.h (interp_ui_out): Remove.
3917
3918 2018-05-25 Tom Tromey <tom@tromey.com>
3919
3920 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
3921 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
3922 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
3923
3924 2018-05-25 Tom Tromey <tom@tromey.com>
3925
3926 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
3927 * interps.c (interp_exec): Use scoped_restore.
3928
3929 2018-05-25 Tom Tromey <tom@tromey.com>
3930
3931 * remote.c (remote_target::remote_file_get): Use
3932 gdb::byte_vector.
3933 (remote_target::remote_file_put): Likewise.
3934
3935 2018-05-25 Tom Tromey <tom@tromey.com>
3936
3937 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
3938 a std::string.
3939 (get_pe_section_index, add_pe_exported_sym): Update.
3940 (read_pe_exported_syms): Use gdb::def_vector.
3941
3942 2018-05-25 Tom Tromey <tom@tromey.com>
3943
3944 * frame.c (remove_prev_frame): Remove.
3945 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
3946
3947 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3948
3949 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
3950 Remove prototypes.
3951 * mips-linux-nat.c (supply_fpregset): Always call
3952 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
3953 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
3954 `mips_fill_fpregset'.
3955 * mips-linux-tdep.c (mips_supply_fpregset)
3956 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
3957 (mips_fill_fpregset_wrapper): Remove functions.
3958 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
3959 (mips_linux_fpregset): Remove variable.
3960 (mips_linux_iterate_over_regset_sections): Use
3961 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
3962 (mips_linux_o32_sigframe_init): Remove comment.
3963
3964 2018-05-25 Pedro Alves <palves@redhat.com>
3965
3966 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
3967 (struct readahead_cache, struct packet_reg, struct
3968 remote_arch_state, class remote_state): Move higher up in the
3969 file.
3970 (remote_target::m_remote_state): Now an object instead of a pointer.
3971 (remote_target::get_remote_state): Adjust.
3972
3973 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * stack.c (select_and_print_frame): Delete.
3976 (struct function_bounds): Move struct within function.
3977 (func_command): Most content moved into new function
3978 find_frame_for_function, use new function, print result, add
3979 function comment.
3980 (find_frame_for_function): New function, now returns a result.
3981
3982 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3983
3984 * stack.c (iterate_over_block_arg_vars): Fix comment.
3985 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
3986
3987 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 PR gdb/23203
3990 * frame.c
3991 (scoped_restore_selected_frame::scoped_restore_selected_frame):
3992 Define.
3993 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
3994 Define.
3995 * frame.h (class scoped_restore_selected_frame): New class.
3996 * stack.c (print_frame_local_vars): Remove catching and rethrowing
3997 of any exception, use scoped_restore_selected_frame to restore the
3998 frame instead.
3999
4000 2018-05-24 Pedro Alves <palves@redhat.com>
4001
4002 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4003 override.
4004
4005 2018-05-23 Tom Tromey <tom@tromey.com>
4006
4007 * complaints.c (struct complaints): Remove.
4008 (symfile_complaint_book): Remove.
4009 (series): New global.
4010 (complaint_internal): Update.
4011 (clear_complaints): Update.
4012
4013 2018-05-23 Tom Tromey <tom@tromey.com>
4014
4015 * complaints.c (counters): New global.
4016 (struct complain): Remove.
4017 (struct complaints) <root>: Remove.
4018 (complaint_sentinel): Remove.
4019 (symfile_complaint_book): Update.
4020 (find_complaint) Remove.
4021 (complaint_internal, clear_complaints): Update.
4022
4023 2018-05-23 Tom Tromey <tom@tromey.com>
4024
4025 * complaints.c (struct complain) <file, line>: Remove.
4026 (find_complaint): Remove file, line parameters.
4027 (complaint_internal): Update.
4028
4029 2018-05-23 Tom Tromey <tom@tromey.com>
4030
4031 * complaints.c (vcomplaint): Remove.
4032 (complaint_internal) Merge in contents of vcomplaint.
4033
4034 2018-05-23 Tom Tromey <tom@tromey.com>
4035
4036 * complaints.c (struct complaints) <explanation>: Remove.
4037 (symfile_explanations): Remove.
4038 (symfile_complaint_book): Update.
4039 (vcomplaint): Update.
4040 (struct explanation): Remove.
4041
4042 2018-05-23 Tom Tromey <tom@tromey.com>
4043
4044 * complaints.c (symfile_complaints): Remove.
4045 (complaint_internal): Remove "complaints" parameter.
4046 (clear_complaints, vcomplaint): Remove "c" parameter.
4047 (get_complaints): Remove.
4048 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
4049 (dwarf2_debug_line_missing_file_complaint)
4050 (dwarf2_debug_line_missing_end_sequence_complaint)
4051 (dwarf2_complex_location_expr_complaint)
4052 (dwarf2_const_value_length_mismatch_complaint)
4053 (dwarf2_section_buffer_overflow_complaint)
4054 (dwarf2_macro_malformed_definition_complaint)
4055 (dwarf2_invalid_attrib_class_complaint)
4056 (create_addrmap_from_index, dw2_symtab_iter_next)
4057 (dw2_expand_marked_cus)
4058 (dw2_debug_names_iterator::find_vec_in_debug_names)
4059 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
4060 (create_debug_type_hash_table, init_cutu_and_read_dies)
4061 (partial_die_parent_scope, add_partial_enumeration)
4062 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
4063 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
4064 (read_import_statement, read_file_scope, create_dwo_cu_reader)
4065 (create_cus_hash_table, create_dwp_hash_table)
4066 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4067 (dwarf2_rnglists_process, dwarf2_ranges_process)
4068 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
4069 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
4070 (handle_struct_member_die, process_structure_scope)
4071 (read_array_type, read_common_block, read_module_type)
4072 (read_tag_pointer_type, read_typedef, read_base_type)
4073 (read_subrange_type, load_partial_dies, partial_die_info::read)
4074 (partial_die_info::read, partial_die_info::read)
4075 (partial_die_info::read, read_checked_initial_length_and_offset)
4076 (dwarf2_string_attr, read_formatted_entries)
4077 (dwarf_decode_line_header)
4078 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4079 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
4080 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
4081 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4082 (get_signatured_type, get_DW_AT_signature_type)
4083 (decode_locdesc, file_file_name, consume_improper_spaces)
4084 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
4085 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4086 (dwarf2_symbol_mark_computed, set_die_type)
4087 (read_attribute_value): Update.
4088 * stap-probe.c (handle_stap_probe, get_stap_base_address):
4089 Update.
4090 * dbxread.c (unknown_symtype_complaint)
4091 (lbrac_mismatch_complaint, repeated_header_complaint)
4092 (set_namestring, function_outside_compilation_unit_complaint)
4093 (read_dbx_symtab, process_one_symbol): Update.
4094 * gdbtypes.c (stub_noname_complaint): Update.
4095 * windows-nat.c (handle_unload_dll): Update.
4096 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
4097 (decode_base_type): Update.
4098 * xcoffread.c (bf_notfound_complaint, ef_complaint)
4099 (eb_complaint, record_include_begin, record_include_end)
4100 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
4101 (process_xcoff_symbol, read_symbol)
4102 (function_outside_compilation_unit_complaint)
4103 (scan_xcoff_symtab): Update.
4104 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
4105 * buildsym.c (finish_block_internal, make_blockvector)
4106 (end_symtab_get_static_block, augment_type_symtab): Update.
4107 * dtrace-probe.c (dtrace_process_dof)
4108 (dtrace_static_probe_ops::get_probes): Update.
4109 * complaints.h (struct complaint): Don't declare.
4110 (symfile_complaints): Remove.
4111 (complaint_internal): Remove "complaints" parameter.
4112 (complaint): Likewise.
4113 (clear_complaints): Likewise.
4114 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4115 (reread_symbols): Update.
4116 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4117 (dwarf2_frame_cache, decode_frame_entry): Update.
4118 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4119 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4120 (info_selectors_command): Update.
4121 * macrotab.c (macro_include, check_for_redefinition)
4122 (macro_undef): Update.
4123 * objfiles.c (filter_overlapping_sections): Update.
4124 * stabsread.c (invalid_cpp_abbrev_complaint)
4125 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4126 (define_symbol, error_type, read_type, rs6000_builtin_type)
4127 (stabs_method_name_from_physname, read_member_functions)
4128 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4129 (attach_fields_to_type, complain_about_struct_wipeout)
4130 (read_range_type, read_args, common_block_start)
4131 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4132 Update.
4133 * mdebugread.c (index_complaint, unknown_ext_complaint)
4134 (basic_type_complaint, bad_tag_guess_complaint)
4135 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4136 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4137 (parse_procedure, parse_lines)
4138 (function_outside_compilation_unit_complaint)
4139 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4140 (bad_tag_guess_complaint, reg_value_complaint): Update.
4141 * cp-support.c (demangled_name_complaint): Update.
4142 * macroscope.c (sal_macro_scope): Update.
4143 * dwarf-index-write.c (class debug_names): Update.
4144
4145 2018-05-23 Tom Tromey <tom@tromey.com>
4146
4147 * complaints.c (clear_complaints): Remove "noisy" parameter.
4148 * complaints.h (clear_complaints): Update.
4149 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4150 (reread_symbols): Update.
4151
4152 2018-05-23 Tom Tromey <tom@tromey.com>
4153
4154 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4155 SUBSEQUENT_MESSAGE.
4156 (vcomplaint, clear_complaints): Update.
4157 (symfile_explanations): Remove some messages.
4158
4159 2018-05-23 Tom Tromey <tom@tromey.com>
4160
4161 * complaints.c (internal_complaint): Remove.
4162 * complaints.h (internal_complaint): Remove.
4163
4164 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4165
4166 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4167
4168 2018-05-22 Pedro Alves <palves@redhat.com>
4169
4170 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4171 (remote_fileio_badfd, remote_fileio_return_errno)
4172 (remote_fileio_return_success, remote_fileio_func_open)
4173 (remote_fileio_func_open, remote_fileio_func_close)
4174 (remote_fileio_func_read, remote_fileio_func_write)
4175 (remote_fileio_func_lseek, remote_fileio_func_rename)
4176 (remote_fileio_func_unlink, remote_fileio_func_stat)
4177 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4178 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4179 remote_target parameter.
4180 (remote_fio_func_map) <func>: Add remote_target parameter.
4181 (do_remote_fileio_request, remote_fileio_request):
4182 * remote-fileio.h (remote_fileio_request):
4183 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4184 remote_target parameter.
4185 (remote_notif_process, handle_notification): Adjust to pass down
4186 the remote.
4187 (remote_notif_state_allocate): Add remote_target parameter. Save
4188 it.
4189 * remote-notif.h (struct remote_target): Forward declare.
4190 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4191 remote_target parameter.
4192 (struct remote_notif_state) <remote>: New field.
4193 (remote_notif_ack, remote_notif_parse): Add remote_target
4194 parameter.
4195 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4196 remote_target parameter.
4197 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4198 (threads_listing_context, rmt_thread_action, protocol_feature)
4199 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4200 (packet_result, struct threads_listing_context, remote_state):
4201 Move definitions and declarations higher up.
4202 (remote_target) <~remote_target>: Declare.
4203 (remote_download_command_source, remote_file_put, remote_file_get)
4204 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4205 (remote_hostio_pread_vFile, remote_hostio_send_command)
4206 (remote_hostio_set_filesystem, remote_hostio_open)
4207 (remote_hostio_close, remote_hostio_unlink, remote_state)
4208 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4209 (get_memory_write_packet_size, get_memory_read_packet_size)
4210 (append_pending_thread_resumptions, remote_detach_1)
4211 (append_resumption, remote_resume_with_vcont)
4212 (add_current_inferior_and_thread, wait_ns, wait_as)
4213 (process_stop_reply, remote_notice_new_inferior)
4214 (process_initial_stop_replies, remote_add_thread)
4215 (btrace_sync_conf, remote_btrace_maybe_reopen)
4216 (remove_new_fork_children, kill_new_fork_children)
4217 (discard_pending_stop_replies, stop_reply_queue_length)
4218 (check_pending_events_prevent_wildcard_vcont)
4219 (discard_pending_stop_replies_in_queue, stop_reply)
4220 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4221 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4222 (remote_interrupt_as, remote_interrupt_ns)
4223 (remote_get_noisy_reply, remote_query_attached)
4224 (remote_add_inferior, remote_current_thread, get_current_thread)
4225 (set_thread, set_general_thread, set_continue_thread)
4226 (set_general_process, write_ptid)
4227 (remote_unpack_thread_info_response, remote_get_threadinfo)
4228 (parse_threadlist_response, remote_get_threadlist)
4229 (remote_threadlist_iterator, remote_get_threads_with_ql)
4230 (remote_get_threads_with_qxfer)
4231 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4232 (get_offsets, remote_check_symbols, remote_supported_packet)
4233 (remote_query_supported, remote_packet_size)
4234 (remote_serial_quit_handler, remote_detach_pid)
4235 (remote_vcont_probe, remote_resume_with_hc)
4236 (send_interrupt_sequence, interrupt_query)
4237 (remote_notif_get_pending_events, fetch_register_using_p)
4238 (send_g_packet, process_g_packet, fetch_registers_using_g)
4239 (store_register_using_P, store_registers_using_G)
4240 (set_remote_traceframe, check_binary_download)
4241 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4242 (remote_xfer_live_readonly_partial, remote_read_bytes)
4243 (remote_send_printf, remote_flash_write, readchar)
4244 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4245 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4246 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4247 (extended_remote_disable_randomization, extended_remote_run)
4248 (send_environment_packet, extended_remote_environment_support)
4249 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4250 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4251 (packet_command): Now methods of ...
4252 (remote_target): ... this class.
4253 (m_remote_state) <remote_target>: New field.
4254 (struct remote_state) <stop_reply_queue,
4255 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4256 fields.
4257 (remote_state::remote_state): Allocate stop_reply_queue.
4258 (remote_state): Delete global.
4259 (get_remote_state_raw): Delete.
4260 (remote_target::get_remote_state): Allocate m_remote_state on
4261 demand.
4262 (get_current_remote_target): New.
4263 (remote_ops, extended_remote_ops): Delete.
4264 (wait_forever_enabled_p, remote_async_inferior_event_token):
4265 Delete, moved to struct remote_state.
4266 (remote_target::close): Delete self. Destruction bits split to
4267 ...
4268 (remote_target::~remote_target): ... this.
4269 (show_memory_packet_size): Adjust to use
4270 get_current_remote_target.
4271 (struct protocol_feature) <func>: Add remote_target parameter.
4272 All callers adjusted.
4273 (curr_quit_handler_target): New.
4274 (remote_serial_quit_handler): Reimplement.
4275 (remote_target::open_1): Adjust to use get_current_remote_target.
4276 Heap-allocate remote_target/extended_remote_target instances.
4277 (vcont_builder::vcont_builder): Add remote_target parameter, and
4278 save it in m_remote. All callers adjusted.
4279 (vcont_builder::m_remote): New field.
4280 (vcont_builder::restart, vcont_builder::flush)
4281 (vcont_builder::push_action): Use it.
4282 (remote_target::commit_resume): Use it.
4283 (struct queue_iter_param) <remote>: New field.
4284 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4285 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4286 (check_pending_event_prevents_wildcard_vcont_callback)
4287 (remote_target::check_pending_events_prevent_wildcard_vcont)
4288 (remote_target::discard_pending_stop_replies)
4289 (remote_target::discard_pending_stop_replies_in_queue)
4290 (remote_target::remote_notif_remove_queued_reply): Fill in
4291 'remote' field.
4292 (remote_notif_get_pending_events): New.
4293 (remote_target::readchar, remote_target::remote_serial_write):
4294 Save/restore curr_quit_handler_target.
4295 (putpkt): New.
4296 (kill_new_fork_children): Fill in 'remote' field.
4297 (packet_command): Use get_current_remote_target, defer to
4298 remote_target method of same name.
4299 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4300 parameter, and save it in m_remote. All callers adjusted.
4301 (scoped_remote_fd::release): Use m_remote.
4302 (scoped_remote_fd::m_remote): New field.
4303 (remote_file_put, remote_file_get, remote_file_delete): Use
4304 get_current_remote_target, defer to remote_target method of same
4305 name.
4306 (remote_btrace_reset): Add remote_state paremeter. Update all
4307 callers.
4308 (remote_async_inferior_event_handler). Pass down 'data'.
4309 (remote_new_objfile): Use get_current_remote_target.
4310 (remote_target::vcont_r_supported): New.
4311 (set_range_stepping): Use get_current_remote_target and
4312 remote_target::vcont_r_supported.
4313 (_initialize_remote): Don't allocate 'remote_state' and
4314 'stop_reply_queue' globals.
4315 * remote.h (struct remote_target): Forward declare.
4316 (getpkt, putpkt, remote_notif_get_pending_events): Add
4317 'remote_target' parameter.
4318
4319 2018-05-22 Pedro Alves <palves@redhat.com>
4320
4321 * remote.c (vcont_builder): Now a class. Make all data members
4322 private.
4323 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4324 Declare methods.
4325 (vcont_builder_restart): Rename to ...
4326 (vcont_builder::restart): ... this.
4327 (vcont_builder_flush): Rename to ...
4328 (vcont_builder::flush): ... this.
4329 (vcont_builder_push_action): Rename to ...
4330 (vcont_builder::push_action): ... this.
4331 (remote_target::commit_resume): Adjust.
4332
4333 2018-05-22 Pedro Alves <palves@redhat.com>
4334
4335 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4336 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4337 (get_fixed_memory_packet_size): New.
4338 (get_memory_packet_size): Use it.
4339 (set_memory_packet_size): Don't override the config size with
4340 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4341 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4342 Don't refer to get_memory_packet_size if not connected to a remote
4343 target. Show "(default)" if configured size is 0.
4344
4345 2018-05-22 Pedro Alves <palves@redhat.com>
4346
4347 * remote.c (remote_target::mourn_inferior): Move
4348 discard_pending_stop_replies call here from ...
4349 (_initialize_remote): ... here.
4350
4351 2018-05-22 Pedro Alves <palves@redhat.com>
4352
4353 * remote.c (compare_section_command): Remove set_general_process
4354 call.
4355
4356 2018-05-22 Pedro Alves <palves@redhat.com>
4357
4358 * remote.c (struct packet_reg, struct remote_arch_state):
4359 Move higher up in the file.
4360 (remote_state) <m_arch_states>: Store remote_arch_state values
4361 instead of remote_arch_state pointers.
4362 (remote_state::get_remote_arch_state): Adjust.
4363
4364 2018-05-22 Pedro Alves <palves@redhat.com>
4365
4366 * remote.c: Include <unordered_map>.
4367 (remote_state): Now a class.
4368 (remote_state) <get_remote_arch_state>: Declare method.
4369 <get_remote_arch_state>: New field.
4370 (remote_arch_state) <remote_arch_state>: Declare ctor.
4371 <regs>: Now a unique_ptr.
4372 (remote_gdbarch_data_handle): Delete.
4373 (get_remote_arch_state): Delete.
4374 (remote_state::get_remote_arch_state): New.
4375 (get_remote_state): Adjust to call remote_state's
4376 get_remote_arch_state method.
4377 (init_remote_state): Delete, bits factored out to ...
4378 (remote_arch_state::remote_arch_state): ... this new method.
4379 (get_remote_packet_size, get_memory_packet_size)
4380 (process_g_packet, remote_target::fetch_registers)
4381 (remote_target::prepare_to_store, store_registers_using_G)
4382 (remote_target::store_registers, remote_target::get_trace_status):
4383 Adjust to call remote_state's method.
4384 (_initialize_remote): Remove reference to
4385 remote_gdbarch_data_handle.
4386
4387 2018-05-22 Pedro Alves <palves@redhat.com>
4388
4389 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4390 pread>: New method declarations.
4391 (remote_target::open_1): Adjust.
4392 (readahead_cache_invalidate): Rename to ...
4393 (readahead_cache::invalidate): ... this, and adjust to be a class
4394 method.
4395 (readahead_cache_invalidate_fd): Rename to ...
4396 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4397 class method.
4398 (remote_hostio_pwrite): Adjust.
4399 (remote_hostio_pread_from_cache): Rename to ...
4400 (readahead_cache::pread): ... this, and adjust to be a class
4401 method.
4402 (remote_hostio_close): Adjust.
4403
4404 2018-05-22 Pedro Alves <palves@redhat.com>
4405
4406 * remote.c (remote_hostio_close_cleanup): Delete.
4407 (class scoped_remote_fd): New.
4408 (remote_file_put, remote_file_get): Use it.
4409
4410 2018-05-22 Pedro Alves <palves@redhat.com>
4411
4412 (struct vCont_action_support): Use bool and initialize all fields.
4413 (struct readahead_cache): Initialize all fields.
4414 (remote_state): Use bool and initialize all fields.
4415 (remote_state::remote_state, remote_state::~remote_state): New.
4416 (new_remote_state): Delete.
4417 (_initialize_remote): Use new to allocate remote_state.
4418
4419 2018-05-22 Pedro Alves <palves@redhat.com>
4420 張俊芝 <zjz@zjz.name>
4421
4422 PR gdb/22973
4423 * c-exp.y: Include "c-support.h".
4424 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4425 of tolower. Use c_ident_is_alpha to scan names.
4426 * c-lang.c: Include "c-support.h".
4427 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4428 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4429 * c-support.h: New file, with bits factored out from ...
4430 * cp-name-parser.y: ... this file.
4431 Include "c-support.h".
4432 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4433 c-support.h and renamed.
4434 (symbol_end, yylex): Adjust.
4435
4436 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4437
4438 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4439 parameter type to CORE_ADDR.
4440 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4441 parameter type in declaration to CORE_ADDR.
4442 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4443 target_auxv_search to get AT_HWCAP and use the result to get the
4444 target description.
4445 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4446 to CORE_ADDR. Remove the cast of the return value to unsigned
4447 long. Fix error predicate of target_auxv_search.
4448 (ppc_linux_nat_target::read_description): Change the type of the
4449 hwcap variable to CORE_ADDR.
4450
4451 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4452
4453 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4454 if the size of fpscr is larger than 32 bits.
4455
4456 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4457
4458 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4459 (ppc32_linux_vsxregmap): New global.
4460 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4461 regcache_supply_regset, and regcache_collect_regset.
4462 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4463 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4464 (fetch_vsx_register, store_vsx_register): Remove.
4465 (fetch_vsx_registers): Add regno parameter. Get regset using
4466 ppc_linux_vsxregset. Use regset to supply registers.
4467 (store_vsx_registers): Add regno parameter. Get regset using
4468 ppc_linux_vsxregset. Use regset to collect registers.
4469 (fetch_register): Call fetch_vsx_registers instead of
4470 fetch_vsx_register.
4471 (store_register): Call store_vsx_registers instead of
4472 store_vsx_register.
4473 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4474 new regno parameter.
4475 (store_ppc_registers): Call store_vsx_registers with -1 for the
4476 new regno parameter.
4477 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4478 (ppc_collect_vsxregset): Remove.
4479
4480 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4481
4482 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4483 offset fields.
4484 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4485 for vector register offset fields.
4486 (ppc64_fbsd_reg_offsets): Likewise.
4487 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4488 to vector register offset fields.
4489 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4490 to vector register offset fields.
4491 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4492 vector register offset fields.
4493 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4494 initializers for vector register offset fields.
4495 (rs6000_aix64_reg_offsets): Likewise.
4496 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4497 (ppc_supply_vrregset): Remove.
4498 (ppc_collect_vrregset): Remove.
4499 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4500 (ppc_linux_vrregset) : New function.
4501 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4502 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4503 (ppc32_linux_vrregset): Remove.
4504 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4505 and use result instead of ppc32_linux_vrregset.
4506 (ppc32_linux_reg_offsets): Remove initializers for vector register
4507 offset fields.
4508 (ppc64_linux_reg_offsets): Likewise.
4509 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4510 * ppc-linux-nat.c: Include regset.h.
4511 (gdb_vrregset_t): Adjust comment to account for little-endian
4512 mode.
4513 (supply_vrregset, fill_vrregset): Remove.
4514 (fetch_altivec_register, store_altivec_register): Remove.
4515 (fetch_altivec_registers): Add regno parameter. Get regset using
4516 ppc_linux_vrregset. Use regset to supply registers.
4517 (store_altivec_registers): Add regno parameter. Get regset using
4518 ppc_linux_vrregset. Use regset to collect registers.
4519 (fetch_register): Call fetch_altivec_registers instead of
4520 fetch_altivec_register.
4521 (store_register): Call store_altivec_registers instead of
4522 store_altivec_register.
4523 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4524 the new regno parameter.
4525 (store_ppc_registers): Call store_altivec_registers with -1 for
4526 the new regno parameter.
4527
4528 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4529
4530 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4531 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4532 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4533 (gdb_vrregset_t): Change array type size to
4534 PPC_LINUX_SIZEOF_VRREGSET.
4535 (gdb_vsxregset_t): Change array type size to
4536 PPC_LINUX_SIZEOF_VSXREGSET.
4537 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4538 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4539 PPC_LINUX_SIZEOF_VSXREGSET.
4540
4541 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4542
4543 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4544 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4545 nat/ppc-linux.c.
4546 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4547 ppc_linux_target_wordsize with tid.
4548 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4549 wordsize with tid.
4550 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4551 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4552 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4553 tid parameter. Remove static specifier.
4554 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4555 (ppc_linux_target_wordsize): New declaration.
4556
4557 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4558
4559 * arch/ppc-linux-common.c: New file.
4560 * arch/ppc-linux-common.h: New file.
4561 * arch/ppc-linux-tdesc.h: New file.
4562 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4563 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4564 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4565 arch/ppc-linux-tdesc.h.
4566 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4567 arch/ppc-linux-tdesc.h.
4568 (ppc_linux_nat_target::read_description): Remove target
4569 description matching code. Fill a ppc_linux_features struct and
4570 call ppc_linux_match_description with it. Move comment about ISA
4571 2.05 to ppc-linux-common.c.
4572 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4573 arch/ppc-linux-tdesc.h.
4574 (ppc_linux_core_read_description): Remove target description
4575 matching code. Fill a ppc_linux_features struct and call
4576 ppc_linux_match_description with it.
4577 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4578 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4579 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4580 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4581 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4582 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4583 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4584 (tdesc_powerpc_e500l): Remove.
4585
4586 2018-05-22 Joel Brobecker <brobecker@adacore.com>
4587
4588 * ada-lang.c (catch_assert_command): Pass empty string instead
4589 of NULL for excep_string argument.
4590
4591 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4592
4593 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
4594 the width of the requested register exceeds the width of the
4595 `ptrace' data type.
4596
4597 2018-05-21 Tom Tromey <tom@tromey.com>
4598
4599 * printcmd.c (output_command): Remove.
4600 (output_command_const): Rename to output_command.
4601 * valprint.h (output_command): Rename from output_command_const.
4602 * tracepoint.c (trace_dump_actions): Call output_command.
4603
4604 2018-05-21 Tom Tromey <tom@tromey.com>
4605
4606 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4607 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
4608 * ada-lang.h (create_ada_exception_catchpoint): Update.
4609 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
4610 std::string.
4611 (create_excep_cond_exprs, ~ada_catchpoint)
4612 (should_stop_exception, print_one_exception)
4613 (print_mention_exception, print_recreate_exception): Update.
4614 (ada_get_next_arg): Remove.
4615 (catch_ada_exception_command_split): Use std::string. Change type
4616 of "excep_string", "cond_string".
4617 (catch_ada_exception_command): Update.
4618 (create_ada_exception_catchpoint): Change type of excep_string.
4619 (ada_exception_sal): Remove excep_string parameter.
4620 (~ada_catchpoint): Remove.
4621
4622 2018-05-21 Tom Tromey <tom@tromey.com>
4623
4624 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
4625 cleanup.
4626
4627 2018-05-21 Tom Tromey <tom@tromey.com>
4628
4629 * ada-lang.c (ada_exception_message_1, ada_exception_message):
4630 Return unique_xmalloc_ptr.
4631 (print_it_exception): Update.
4632
4633 2018-05-21 Tom Tromey <tom@tromey.com>
4634
4635 * tracepoint.c (trace_dump_actions): Use std::string.
4636
4637 2018-05-21 Tom Tromey <tom@tromey.com>
4638
4639 * symfile.c (reread_symbols): Use std::string for original_name.
4640
4641 2018-05-21 Tom Tromey <tom@tromey.com>
4642
4643 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
4644 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
4645 constructor.
4646
4647 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
4650 instance to...
4651 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
4652 * objfiles.c (get_objfile_bfd_data): Allocate
4653 objfile_per_bfd_storage with obstack_new when allocating on
4654 obstack.
4655
4656 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4657
4658 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
4659 OBSTACK_ZALLOC.
4660 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4661 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4662 * mdebugread.c (mdebug_build_psymtabs): Likewise.
4663 (add_pending): Likewise.
4664 (parse_symbol): Likewise.
4665 (parse_partial_symbols): Likewise.
4666 (psymtab_to_symtab_1): Likewise.
4667 (new_psymtab): Likewise.
4668 (elfmdebug_build_psymtabs): Likewise.
4669 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4670 * objfiles.c (get_objfile_bfd_data): Likewise.
4671 (objfile_register_static_link): Likewise.
4672 * psymtab.c (allocate_psymtab): Likewise.
4673 * stabsread.c (read_member_functions): Likewise.
4674 * xcoffread.c (xcoff_end_psymtab): Likewise.
4675
4676 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4677
4678 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
4679 compiler supports std::is_trivially_constructible.
4680 * common/poison.h: Include obstack.h.
4681 (IsMallocable): Define to is_trivially_constructible if the
4682 compiler supports it, define to true_type otherwise.
4683 (xobnew): New.
4684 (XOBNEW): Redefine.
4685 (xobnewvec): New.
4686 (XOBNEWVEC): Redefine.
4687 * gdb_obstack.h (obstack_zalloc): New.
4688 (OBSTACK_ZALLOC): Redefine.
4689 (obstack_calloc): New.
4690 (OBSTACK_CALLOC): Redefine.
4691 (obstack_new): New.
4692 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
4693 (gdbarch_obstack): New declaration in gdbarch.h, definition in
4694 gdbarch.c.
4695 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
4696 obstack_calloc/obstack_zalloc.
4697 (gdbarch_obstack_zalloc): Remove.
4698 * target-descriptions.c (tdesc_data_init): Use obstack_new.
4699
4700 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4701
4702 * stack.c (backtrace_command_1): Remove useless variable int i.
4703
4704 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4705
4706 * stack.c (print_frame_info): Fix comment.
4707
4708 2018-05-18 Tom Tromey <tom@tromey.com>
4709
4710 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
4711 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
4712 (~dwarf2_per_objfile): Update
4713 (dwarf2_get_dwz_file): Use new.
4714 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
4715 unique_ptr.
4716
4717 2018-05-18 Tom Tromey <tom@tromey.com>
4718
4719 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
4720 unique_ptr.
4721 * dwarf2read.c (struct dwp_file): Add constructor and
4722 initializers.
4723 (open_and_init_dwp_file): Return a unique_ptr.
4724 (dwarf2_per_objfile, create_dwp_hash_table)
4725 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
4726 (lookup_dwo_unit_in_dwp): Update.
4727 (open_and_init_dwp_file, get_dwp_file): Update.
4728
4729 2018-05-18 Tom Tromey <tom@tromey.com>
4730
4731 * dwarf2read.c (dwarf2_per_objfile): Update.
4732 (struct mapped_index): Add initializers.
4733 (dwarf2_read_index): Use new.
4734 (dw2_symtab_iter_init): Update.
4735 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
4736 unique_ptr.
4737
4738 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4739
4740 * dwarf2read.c (mapped_index) <total_size>: Remove.
4741
4742 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4743
4744 * unittests/format_pieces-selftests.c (test_format_specifier):
4745 Add ARI comments.
4746
4747 2018-05-18 Tom Tromey <tom@tromey.com>
4748
4749 * c-typeprint.c (maybe_print_hole): New function.
4750 (c_print_type_struct_field_offset): Update.
4751 (c_type_print_base_struct_union): Call maybe_print_hole.
4752
4753 2018-05-17 Keith Seitz <keiths@redhat.com>
4754
4755 * breakpoint.c (build_bpstat_chain): New function, moved from
4756 bpstat_stop_status.
4757 (bpstat_stop_status): Add optional parameter, `stop_chain'.
4758 If no stop chain is passed, call build_bpstat_chain to build it.
4759 * breakpoint.h (build_bpstat_chain): Declare.
4760 (bpstat_stop_status): Move documentation here from breakpoint.c.
4761 * infrun.c (handle_signal_stop): Before eliding inlined frames,
4762 build the stop chain and pass it to skip_inline_frames.
4763 Pass this stop chain to bpstat_stop_status.
4764 * inline-frame.c: Include breakpoint.h.
4765 (stopped_by_user_bp_inline_frame): New function.
4766 (skip_inline_frames): Add parameter `stop_chain'.
4767 Move documention to inline-frame.h.
4768 If non-NULL, use stopped_by_user_bp_inline_frame to determine
4769 whether the frame should be elided.
4770 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
4771 Add moved documentation and update for new parameter.
4772
4773 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4774
4775 PR cli/14975
4776 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4777 unittests/format_pieces-selftests.c.
4778 * common/format.h (format_piece) <operator==>: New.
4779 (format_pieces) <operator[]>: Remove.
4780 * common/format.c (format_pieces::format_pieces): Handle \e.
4781 * unittests/format_pieces-selftests.c: New.
4782
4783 2018-05-17 Tom Tromey <tom@tromey.com>
4784
4785 PR symtab/23010:
4786 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
4787 (dw2_instantiate_symtab): Add skip_partial parameter.
4788 (dw2_find_last_source_symtab, dw2_map_expand_apply)
4789 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
4790 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
4791 (dw2_expand_symtabs_matching_one)
4792 (dw2_find_pc_sect_compunit_symtab)
4793 (dw2_debug_names_lookup_symbol)
4794 (dw2_debug_names_expand_symtabs_for_function): Update.
4795 (init_cutu_and_read_dies): Add skip_partial parameter.
4796 (process_psymtab_comp_unit, build_type_psymtabs_1)
4797 (process_skeletonless_type_unit, load_partial_comp_unit)
4798 (psymtab_to_symtab_1): Update.
4799 (load_full_comp_unit): Add skip_partial parameter.
4800 (process_imported_unit_die, dwarf2_read_addr_index)
4801 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
4802 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
4803 (read_signatured_type): Update.
4804
4805 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4806
4807 * value.c (release_value): Remove unused variable.
4808 (record_latest_value): Likewise.
4809 (access_value_history): Likewise.
4810 (preserve_values): Likewise.
4811
4812 2018-05-17 Tom Tromey <tom@tromey.com>
4813
4814 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
4815 Initialize.
4816
4817 2018-05-16 Maciej W. Rozycki <macro@mips.com>
4818
4819 PR gdb/22286
4820 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
4821 Also handle registers whose width is not a multiple of
4822 PTRACE_TYPE_RET.
4823 (linux_nat_trad_target::store_register): Likewise.
4824
4825 2018-05-16 Tom Tromey <tom@tromey.com>
4826
4827 * gdbcore.h (core_bfd): Redefine.
4828 * corelow.c (core_target::close): Update.
4829 (core_target_open): Update.
4830 * progspace.h (struct program_space) <cbfd>: Now a
4831 gdb_bfd_ref_ptr.
4832
4833 2018-05-16 Tom Tromey <tom@tromey.com>
4834
4835 PR cli/19551:
4836 * symfile-add-flags.h (enum symfile_add_flags)
4837 <SYMFILE_NOT_FILENAME>: New constant.
4838 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
4839 objfile name from BFD.
4840 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
4841 * minidebug.c (find_separate_debug_file_in_section): Put
4842 ".gnu_debugdata" into BFD's file name.
4843
4844 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
4845
4846 * regcache.c (regcache_read_ftype, regcache_write_ftype):
4847 Remove.
4848
4849 2018-05-15 Tamar Christina <tamar.christina@arm.com>
4850
4851 PR binutils/21446
4852 * aarch64-tdep.c (aarch64_analyze_prologue,
4853 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
4854 Indicate not interested in errors.
4855
4856 2018-05-15 Maciej W. Rozycki <macro@mips.com>
4857
4858 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
4859 Supply the MIPS_ZERO_REGNUM register.
4860
4861 2018-05-15 Maciej W. Rozycki <macro@mips.com>
4862
4863 * mips-tdep.c (mask_address_var): Make variable static.
4864
4865 2018-05-14 Tom Tromey <tom@tromey.com>
4866
4867 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
4868
4869 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
4870
4871 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
4872 FXSAVE_ADDR for the mxcsr register.
4873
4874 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
4875
4876 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
4877
4878 2018-05-11 Pedro Alves <palves@redhat.com>
4879
4880 * corelow.c (core_target) <core_target>: No longer inline.
4881 Initialize m_core_gdbarch, m_core_vec and build the section table
4882 here.
4883 <~core_target>: New.
4884 <core_gdbarch, get_core_register_section>: New methods.
4885 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
4886 factored out from ...
4887 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
4888 (core_ops): Delete.
4889 (sniff_core_bfd): Add gdbarch parameter.
4890 (core_close): Delete, merged into ...
4891 (core_target::close): ... here. Delete self.
4892 (core_close_cleanup): Delete.
4893 (core_target_open): Allocate a core_target on the heap. Use a
4894 unique_ptr instead of a cleanup. Bits moved into the core_target
4895 ctor. Adjust to use core_target methods instead of globals.
4896 (get_core_register_section): Rename to ...
4897 (core_target::get_core_register_section): ... this and adjust.
4898 (struct get_core_registers_cb_data): New.
4899 (get_core_registers_cb): Use it. Use bool.
4900 (core_target::fetch_registers, core_target::files_info)
4901 (core_target::xfer_partial, core_target::read_description)
4902 (core_target::pid_to, core_target::thread_name): Adjust to
4903 reference class fields instead of globals.
4904 * target.h (struct target_ops_deleter, target_ops_up): New.
4905
4906 2018-05-11 Pedro Alves <palves@redhat.com>
4907
4908 * corefile.c (core_file_command): Move to corelow.c.
4909 * corelow.c (the_core_target): Delete.
4910 (core_file_command): Moved from corefile.c. Check exec_bfd
4911 instead of the_core_target. Use target_detach instead of calling
4912 into the_core_target directly.
4913 (maybe_say_no_core_file_now): New.
4914 (core_target::detach): Use it.
4915 (_initialize_corelow): Remove references to the_core_target.
4916 * gdbcore.h (the_core_target): Delete.
4917
4918 2018-05-11 Tom Tromey <tromey@redhat.com>
4919 Pedro Alves <palves@redhat.com>
4920
4921 * corefile.c (core_bfd): Remove.
4922 * gdbcore.h (core_bfd): Now a macro.
4923 * progspace.h (struct program_space) <cbfd>: New field.
4924
4925 2018-05-11 Tom Tromey <tom@tromey.com>
4926
4927 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
4928 gdb::def_vector.
4929
4930 2018-05-10 Tom Tromey <tom@tromey.com>
4931
4932 * configure: Rebuild.
4933 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
4934
4935 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4936
4937 PR server/23158:
4938 * regformats/regdat.sh: Adjust script, following the addition
4939 of the new expedite_regs parameter to init_target_desc.
4940
4941 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
4942
4943 PR gdb/23127
4944 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
4945 set_gdbarch_significant_addr_bit.
4946 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
4947 set_gdbarch_significant_addr_bit.
4948 * utils.c (address_significant): Update to sign extend addr.
4949
4950 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
4951
4952 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
4953 (xtensa_linux_init_abi): Limit tdep->num_regs by
4954 tdep->num_nopriv_regs.
4955 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
4956 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
4957 not initialized.
4958
4959 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
4960
4961 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
4962
4963 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
4966 (I387_MXCSR_INIT_VAL): New constant.
4967 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
4968 buffer if it was supplied by the inferior.
4969 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
4970 (i387_xsave_get_clear_bv): New function.
4971 (i387_supply_xsave): Only read x87 control registers from the
4972 xsave buffer if the feature is enabled, and the state will have
4973 been written, otherwise, provide a suitable default.
4974 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
4975 including x87 control registers. Update control registers if they
4976 have changed from the default value, and mark features as enabled
4977 as required.
4978 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
4979
4980 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4981
4982 * spu-tdep.c (info_spu_event_command): Fix output formatting.
4983
4984 2018-05-07 Tom Tromey <tom@tromey.com>
4985
4986 * configure: Rebuild.
4987 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
4988
4989 2018-05-07 Tom Tromey <tom@tromey.com>
4990
4991 PR tdep/20362:
4992 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
4993 bit. Use correct value for VDIV.
4994
4995 2018-05-04 Tom Tromey <tom@tromey.com>
4996
4997 * configure: Rebuild.
4998 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
4999
5000 2018-05-04 Tom Tromey <tom@tromey.com>
5001
5002 * linux-record.c (record_linux_system_call) <case
5003 RECORD_SYS_RECVFROM>: Add "break".
5004
5005 2018-05-04 Tom Tromey <tom@tromey.com>
5006
5007 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5008 Add missing "break".
5009 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5010 Add missing "break".
5011
5012 2018-05-04 Tom Tromey <tom@tromey.com>
5013
5014 * rs6000-tdep.c (ppc_process_record_op4)
5015 (ppc_process_record_op63): Add fall-through comment.
5016
5017 2018-05-04 Tom Tromey <tom@tromey.com>
5018
5019 * i386-tdep.c (i386_process_record): Add fall-through comment.
5020
5021 2018-05-04 Tom Tromey <tom@tromey.com>
5022
5023 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
5024 comment.
5025
5026 2018-05-04 Tom Tromey <tom@tromey.com>
5027
5028 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
5029 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
5030 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
5031 comment.
5032 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
5033 comment.
5034 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
5035 comment.
5036
5037 2018-05-04 Tom Tromey <tom@tromey.com>
5038
5039 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
5040
5041 2018-05-04 Tom Tromey <tom@tromey.com>
5042
5043 * s390-tdep.c (s390_process_record): Fix fall-through comments.
5044 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5045 * symfile.c (section_is_mapped): Fix fall-through comment.
5046 * stabsread.c (define_symbol, read_member_functions): Fix
5047 fall-through comment.
5048 * s390-linux-tdep.c (s390_process_record): Fix fall-through
5049 comment.
5050 * remote.c (remote_wait_as): Fix fall-through comment.
5051 * p-exp.y (yylex): Fix fall-through comment.
5052 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
5053 comment.
5054 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
5055 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
5056 * jv-exp.y (yylex): Fix fall-through comment.
5057 * go-exp.y (lex_one_token): Fix fall-through comment.
5058 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
5059 fall-through comment.
5060 * f-exp.y (yylex): Fix fall-through comment.
5061 * dwarf2read.c (process_die): Fix fall-through comments.
5062 * dbxread.c (process_one_symbol): Fix fall-through comment.
5063 * d-exp.y (lex_one_token): Fix fall-through comment.
5064 * cp-name-parser.y (yylex): Fix fall-through comment.
5065 * coffread.c (coff_symtab_read): Fix fall-through comment.
5066 * c-exp.y (lex_one_token): Fix fall-through comment.
5067 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
5068 comment.
5069 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
5070 comment.
5071
5072 2018-05-04 Tom Tromey <tom@tromey.com>
5073
5074 PR python/22730:
5075 * NEWS: Mention gdb.execute change.
5076 * gdbcmd.h (execute_control_command): Don't declare.
5077 * python/python.c (execute_gdb_command): Use read_command_lines_1,
5078 execute_control_commands, execute_control_commands_to_string.
5079 * cli/cli-script.h (execute_control_commands)
5080 (execute_control_commands_to_string): Declare.
5081 (execute_control_command): Add from_tty parameter.
5082 * cli/cli-script.c (execute_control_commands)
5083 (execute_control_commands_to_string): New functions.
5084 (execute_user_command): Use execute_control_commands.
5085 (execute_control_command_1): Add "from_tty" parameter. Update.
5086 (execute_control_command): Likewise.
5087
5088 2018-05-04 Tom Tromey <tom@tromey.com>
5089
5090 PR python/22731:
5091 * NEWS: Mention that breakpoint commands are writable.
5092 * python/py-breakpoint.c (bppy_set_commands): New function.
5093 (breakpoint_object_getset) <"commands">: Use it.
5094
5095 2018-05-04 Tom Tromey <tom@tromey.com>
5096
5097 * tracepoint.c (actions_command): Update.
5098 * mi/mi-cmd-break.c (mi_command_line_array)
5099 (mi_command_line_array_cnt, mi_command_line_array_ptr)
5100 (mi_read_next_line): Remove.
5101 (mi_cmd_break_commands): Update.
5102 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
5103 function_view.
5104 * cli/cli-script.c (get_command_line): Update.
5105 (process_next_line): Use function_view. Constify.
5106 (recurse_read_control_structure, read_command_lines)
5107 (read_command_lines_1): Change argument types to function_view.
5108 (do_define_command, document_command): Update.
5109 * breakpoint.h (check_tracepoint_command): Don't declare.
5110 * breakpoint.c (check_tracepoint_command): Remove.
5111 (commands_command_1, create_tracepoint_from_upload): Update.
5112
5113 2018-05-04 Tom Tromey <tom@tromey.com>
5114
5115 PR gdb/11750:
5116 * cli/cli-script.h (enum command_control_type) <define_control>:
5117 New constant.
5118 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5119 (build_command_line, execute_control_command_1)
5120 (process_next_line): Likewise.
5121 (do_define_command): New function, extracted from define_command.
5122 (define_command): Use it.
5123
5124 2018-05-04 Tom Tromey <tom@tromey.com>
5125
5126 * tracepoint.c (actions_command): Update.
5127 * cli/cli-script.h (read_command_lines): Update.
5128 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5129 (MAX_TMPBUF): Remove define.
5130 (define_command): Use string_printf.
5131 (document_command): Likewise.
5132 * breakpoint.c (commands_command_1): Update.
5133
5134 2018-05-04 Tom Tromey <tom@tromey.com>
5135
5136 * top.c (execute_command): Update.
5137 * cli/cli-script.h (print_command_lines): Now varargs.
5138 * cli/cli-script.c (print_command_lines): Now varargs.
5139 (execute_control_command_1) <case while_control, case if_control>:
5140 Update.
5141
5142 2018-05-04 Tom Tromey <tom@tromey.com>
5143
5144 * tracepoint.c (all_tracepoint_actions): Rename from
5145 all_tracepoint_actions_and_cleanup. Change return type.
5146 (actions_command, encode_actions_1, encode_actions)
5147 (trace_dump_actions, tdump_command): Update.
5148 * remote.c (remote_download_command_source): Update.
5149 * python/python.c (gdbpy_eval_from_control_command)
5150 (python_command, python_interactive_command): Update.
5151 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5152 * guile/guile.c (guile_command)
5153 (gdbscm_eval_from_control_command, guile_command): Update.
5154 * compile/compile.c (compile_code_command)
5155 (compile_print_command, compile_to_object): Update.
5156 * cli/cli-script.h (struct command_lines_deleter): New.
5157 (counted_command_line): New typedef.
5158 (struct command_line): Add constructor, destructor.
5159 <body_list>: Remove.
5160 <body_list_0, body_list_1>: New members.
5161 (command_line_up): Remove typedef.
5162 (read_command_lines, read_command_lines_1, get_command_line):
5163 Update.
5164 (copy_command_lines): Don't declare.
5165 * cli/cli-script.c (build_command_line): Use "new".
5166 (get_command_line): Return counted_command_line.
5167 (print_command_lines, execute_user_command)
5168 (execute_control_command_1, while_command, if_command): Update.
5169 (realloc_body_list): Remove.
5170 (process_next_line, recurse_read_control_structure): Update.
5171 (read_command_lines, read_command_lines_1): Return counted_command_line.
5172 (free_command_lines): Use "delete".
5173 (copy_command_lines): Remove.
5174 (define_command, document_command, show_user_1): Update.
5175 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5176 a counted_command_line.
5177 * breakpoint.h (counted_command_line): Remove typedef.
5178 (breakpoint_set_commands): Update.
5179 * breakpoint.c (check_no_tracepoint_commands)
5180 (validate_commands_for_breakpoint): Update.
5181 (breakpoint_set_commands): Change commands to be a
5182 counted_command_line.
5183 (commands_command_1, update_dprintf_command_list)
5184 (create_tracepoint_from_upload): Update.
5185
5186 2018-05-04 Tom Tromey <tom@tromey.com>
5187
5188 * cli/cli-decode.h (cmd_list_element): New constructor.
5189 (~cmd_list_element): New destructor.
5190 (struct cmd_list_element): Add initializers.
5191 * cli/cli-decode.c (do_add_cmd): Use "new".
5192 (delete_cmd): Use "delete".
5193
5194 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5195 Pedro Alves <palves@redhat.com>
5196
5197 PR breakpoints/19806 and support for PR external/20207.
5198 * NEWS: Mention Aarch64 watchpoint improvements.
5199 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5200 watchpoints and PR external/20207 watchpoints.
5201 * nat/aarch64-linux-hw-point.c
5202 (kernel_supports_any_contiguous_range): New.
5203 (aarch64_watchpoint_offset): New.
5204 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5205 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5206 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5207 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5208 next_addr_orig_p. Support PR external/20207 watchpoints.
5209 (aarch64_downgrade_regs): New.
5210 (aarch64_dr_state_insert_one_point): New parameters offset and
5211 addr_orig.
5212 (aarch64_dr_state_remove_one_point): Likewise.
5213 (aarch64_handle_breakpoint): Update caller.
5214 (aarch64_handle_aligned_watchpoint): Likewise.
5215 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5216 aligned_offset.
5217 (aarch64_linux_set_debug_regs): Remove const from state. Call
5218 aarch64_downgrade_regs.
5219 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5220 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5221 (DR_CONTROL_MASK): ... this.
5222 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5223 (unsigned int aarch64_watchpoint_offset): New prototype.
5224 (aarch64_linux_set_debug_regs): Remove const from state.
5225 * utils.c (align_up, align_down): Move to ...
5226 * common/common-utils.c (align_up, align_down): ... here.
5227 * utils.h (align_up, align_down): Move to ...
5228 * common/common-utils.h (align_up, align_down): ... here.
5229
5230 2018-05-04 Joel Brobecker <brobecker@adacore.com>
5231
5232 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5233 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5234 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5235 Re-implement to match the ABI as summarized in GCC's
5236 gcc/config/sparc/sparc.c. All callers updated.
5237 (sparc32_store_arguments): Remove assertion.
5238
5239 2018-05-04 Tom Tromey <tom@tromey.com>
5240
5241 * printcmd.c: Don't include tui.h.
5242 (decode_format): Use skip_spaces.
5243
5244 2018-05-04 Tom Tromey <tom@tromey.com>
5245
5246 PR gdb/22619:
5247 * printcmd.c (last_count): New global.
5248 (x_command): Use saved count when repeating.
5249
5250 2018-05-04 Tom Tromey <tom@tromey.com>
5251
5252 * nto-procfs.c (do_closedir_cleanup): Remove.
5253 (procfs_pidlist): Use gdb_dir_up.
5254 * procfs.c (do_closedir_cleanup): Remove.
5255 (proc_update_threads): Use gdb_dir_up.
5256 * common/filestuff.h (struct gdb_dir_deleter): New.
5257 (gdb_dir_up): New typedef.
5258
5259 2018-05-04 Tom Tromey <tom@tromey.com>
5260
5261 * ada-lang.c (print_mention_exception): Use std::string.
5262
5263 2018-05-04 Tom Tromey <tom@tromey.com>
5264
5265 * ada-lang.c (create_excep_cond_exprs): Update.
5266 (ada_exception_catchpoint_cond_string): Use std::string.
5267
5268 2018-05-04 Tom Tromey <tom@tromey.com>
5269
5270 * ada-lang.c (xget_renaming_scope): Return std::string.
5271 (old_renaming_is_invisible): Update.
5272
5273 2018-05-04 Tom Tromey <tom@tromey.com>
5274
5275 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5276 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5277
5278 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5279
5280 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5281
5282 2018-05-04 Tom Tromey <tom@tromey.com>
5283
5284 * remote.c (remote_query_supported_append): Change type.
5285 (remote_check_symbols): Update.
5286
5287 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5288
5289 PR gdb/11420
5290 * configure.ac: Prepend libpython.
5291 * python/python-config.py: Likewise.
5292 * configure: Regenerate.
5293
5294 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5295
5296 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5297
5298 2018-05-03 Pedro Alves <palves@redhat.com>
5299
5300 * s390-linux-nat.c
5301 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5302 override. Write 'true' instead of '1'.
5303 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5304 declaration.
5305
5306 2018-05-02 Pedro Alves <palves@redhat.com>
5307
5308 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5309 add_inf_child_target.
5310 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5311 add_inf_child_target.
5312 * aix-thread.c (aix_thread_target_info): New.
5313 (aix_thread_target) <shortname, longname, doc>: Delete.
5314 <info>: New.
5315 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5316 add_inf_child_target.
5317 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5318 add_inf_child_target.
5319 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5320 add_inf_child_target.
5321 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5322 add_inf_child_target.
5323 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5324 add_inf_child_target.
5325 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5326 add_inf_child_target.
5327 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5328 add_inf_child_target.
5329 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5330 add_inf_child_target.
5331 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5332 add_inf_child_target.
5333 * bfd-target.c (target_bfd_target_info): New.
5334 (target_bfd) <shortname, longname, doc>: Delete.
5335 <info>: New.
5336 * bsd-kvm.c (bsd_kvm_target_info): New.
5337 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5338 <info>: New.
5339 (bsd_kvm_target::open): Rename to ...
5340 (bsd_kvm_target_open): ... this. Adjust.
5341 * bsd-uthread.c (bsd_uthread_target_info): New.
5342 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5343 <info>: New.
5344 * corefile.c (core_file_command): Adjust.
5345 * corelow.c (core_target_info): New.
5346 (core_target) <shortname, longname, doc>: Delete.
5347 <info>: New.
5348 (core_target::open): Rename to ...
5349 (core_target_open): ... this. Adjust.
5350 * ctf.c (ctf_target_info): New.
5351 (ctf_target) <shortname, longname, doc>: Delete.
5352 <info>: New.
5353 (ctf_target::open): Rename to ...
5354 (ctf_target_open): ... this.
5355 (_initialize_ctf): Adjust.
5356 * exec.c (exec_target_info): New.
5357 (exec_target) <shortname, longname, doc>: Delete.
5358 <info>: New.
5359 (exec_target::open): Rename to ...
5360 (exec_target_open): ... this.
5361 * gdbcore.h (core_target_open): Declare.
5362 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5363 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5364 add_inf_child_target.
5365 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5366 add_inf_child_target.
5367 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5368 add_inf_child_target.
5369 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5370 add_inf_child_target.
5371 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5372 add_inf_child_target.
5373 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5374 add_inf_child_target.
5375 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5376 add_inf_child_target.
5377 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5378 add_inf_child_target.
5379 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5380 add_inf_child_target.
5381 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5382 add_inf_child_target.
5383 * inf-child.c (inf_child_target_info): New.
5384 (inf_child_target::info): New.
5385 (inf_child_open_target): Remove 'target' parameter. Use
5386 get_native_target instead.
5387 (inf_child_target::open): Delete.
5388 (add_inf_child_target): New.
5389 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5390 Delete.
5391 <info>: New.
5392 (add_inf_child_target): Declare.
5393 (inf_child_open_target): Declare.
5394 * linux-thread-db.c (thread_db_target_info): New.
5395 (thread_db_target) <shortname, longname, doc>: Delete.
5396 <info>: New.
5397 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5398 add_inf_child_target.
5399 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5400 add_inf_child_target.
5401 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5402 add_inf_child_target.
5403 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5404 add_inf_child_target.
5405 * make-target-delegates (print_class): Adjust.
5406 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5407 add_inf_child_target.
5408 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5409 add_inf_child_target.
5410 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5411 add_inf_child_target.
5412 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5413 add_inf_child_target.
5414 * nto-procfs.c (nto_native_target_info): New.
5415 (nto_procfs_target_native) <shortname, longname, doc>:
5416 Delete.
5417 <info>: New.
5418 (nto_procfs_target_info): New.
5419 (nto_procfs_target_procfs) <shortname, longname, doc>:
5420 Delete.
5421 <info>: New.
5422 (init_procfs_targets): Adjust.
5423 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5424 add_inf_child_target.
5425 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5426 add_inf_child_target.
5427 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5428 add_inf_child_target.
5429 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5430 add_inf_child_target.
5431 * ravenscar-thread.c (ravenscar_target_info): New.
5432 (ravenscar_thread_target) <shortname, longname, doc>:
5433 Delete.
5434 <info>: New.
5435 * record-btrace.c (record_btrace_target_info):
5436 (record_btrace_target) <shortname, longname, doc>: Delete.
5437 <info>: New.
5438 (record_btrace_target::open): Rename to ...
5439 (record_btrace_target_open): ... this. Adjust.
5440 * record-full.c (record_longname, record_doc): New.
5441 (record_full_base_target) <shortname, longname, doc>: Delete.
5442 <info>: New.
5443 (record_full_target_info): New.
5444 (record_full_target): <shortname>: Delete.
5445 <info>: New.
5446 (record_full_core_open_1, record_full_open_1): Update comments.
5447 (record_full_base_target::open): Rename to ...
5448 (record_full_open): ... this.
5449 (cmd_record_full_restore): Update.
5450 (_initialize_record_full): Update.
5451 * remote-sim.c (remote_sim_target_info): New.
5452 (gdbsim_target) <shortname, longname, doc>: Delete.
5453 <info>: New.
5454 (gdbsim_target::open): Rename to ...
5455 (gdbsim_target_open): ... this.
5456 (_initialize_remote_sim): Adjust.
5457 * remote.c (remote_doc): New.
5458 (remote_target_info): New.
5459 (remote_target) <shortname, longname, doc>: Delete.
5460 <info>: New.
5461 (extended_remote_target_info): New.
5462 (extended_remote_target) <shortname, longname, doc>: Delete.
5463 <info>: New.
5464 (remote_target::open_1): Make static. Adjust.
5465 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5466 * s390-linux-nat.c (_initialize_s390_nat): Use
5467 add_inf_child_target.
5468 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5469 add_inf_child_target.
5470 * sol-thread.c (thread_db_target_info): New.
5471 (sol_thread_target) <shortname, longname, doc>: Delete.
5472 <info>: New.
5473 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5474 add_inf_child_target.
5475 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5476 add_inf_child_target.
5477 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5478 add_inf_child_target.
5479 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5480 add_inf_child_target.
5481 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5482 add_inf_child_target.
5483 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5484 add_inf_child_target.
5485 * spu-linux-nat.c (_initialize_spu_nat): Use
5486 add_inf_child_target.
5487 * spu-multiarch.c (spu_multiarch_target_info): New.
5488 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5489 <info>: New.
5490 * target-delegates.c: Regenerate.
5491 * target.c: Include <unordered_map>.
5492 (target_ops_p): Delete.
5493 (DEF_VEC_P(target_ops_p)): Delete.
5494 (target_factories): New.
5495 (test_target_info): New.
5496 (test_target_ops::info): New.
5497 (open_target): Adjust to use target_factories.
5498 (add_target_with_completer): Rename to ...
5499 (add_target): ... this. Change prototype. Register target_info
5500 and open callback in target_factories. Register target_info in
5501 command context instead of target_ops.
5502 (add_target): Delete old implementation.
5503 (add_deprecated_target_alias): Change prototype. Adjust.
5504 (the_native_target): New.
5505 (set_native_target, get_native_target): New.
5506 (find_default_run_target): Use the_native_target.
5507 (find_attach_target, find_run_target): Simplify.
5508 (target_ops::open): Delete.
5509 (dummy_target_info): New.
5510 (dummy_target::shortname, dummy_target::longname)
5511 (dummy_target::doc): Delete.
5512 (dummy_target::info): New.
5513 (debug_target::shortname, debug_target::longname)
5514 (debug_target::doc): Delete.
5515 (debug_target::info): New.
5516 * target.h (struct target_info): New.
5517 (target_ops::~target_ops): Add comment.
5518 (target_ops::info): New.
5519 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5520 longer virtual. Implement in terms of target_info.
5521 (set_native_target, get_native_target): Declare.
5522 (target_open_ftype): New.
5523 (add_target, add_target_with_completer)
5524 (add_deprecated_target_alias): Change prototype.
5525 (test_target) <shortname, longname, doc>: Delete.
5526 <info>: New.
5527 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5528 add_inf_child_target.
5529 * tracefile-tfile.c (tfile_target_info): New.
5530 (tfile_target) <shortname, longname, doc>: Delete.
5531 <info>: New.
5532 (tfile_target::open): Rename to ...
5533 (tfile_target_open): ... this.
5534 (_initialize_tracefile_tfile): Adjust.
5535 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5536 add_inf_child_target.
5537 * windows-nat.c (_initialize_windows_nat): Use
5538 add_inf_child_target.
5539 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5540 add_inf_child_target.
5541
5542 2018-05-02 Pedro Alves <palves@redhat.com>
5543
5544 * linux-nat.h (linux_nat_target) <low_new_thread,
5545 low_delete_thread, low_new_fork, low_forget_process,
5546 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5547 New virtual methods.
5548 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5549 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5550 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5551 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5552 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5553 Delete.
5554 * linux-fork.c (delete_fork): Adjust to call low method.
5555 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5556 (linux_nat_new_fork, linux_nat_forget_process_hook)
5557 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5558 (linux_nat_status_is_event):
5559 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5560 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5561 to call low method.
5562 (sigtrap_is_event): Rename to ...
5563 (linux_nat_target::low_status_is_event): ... this.
5564 (linux_nat_set_status_is_event): Delete.
5565 (save_stop_reason, linux_nat_wait_1)
5566 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5567 low methods.
5568 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5569 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5570 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5571 (linux_nat_set_prepare_to_resume): Delete.
5572 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5573 low virtual methods.
5574 * amd64-linux-nat.c: Likewise.
5575 * arm-linux-nat.c: Likewise.
5576 * i386-linux-nat.c: Likewise.
5577 * ia64-linux-nat.c: Likewise.
5578 * mips-linux-nat.c: Likewise.
5579 * ppc-linux-nat.c: Likewise.
5580 * s390-linux-nat.c: Likewise.
5581 * sparc64-linux-nat.c: Likewise.
5582 * x86-linux-nat.c: Likewise.
5583 * x86-linux-nat.h: Include "nat/x86-linux.h".
5584 (x86_linux_nat_target) <low_new_fork, low_forget_process,
5585 low_prepare_to_resume, low_new_thread, low_delete_thread>:
5586 Override methods.
5587
5588 2018-05-02 Pedro Alves <palves@redhat.com>
5589
5590 * target.h (target_ops)
5591 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5592 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
5593 stopped_by_watchpoint, have_continuable_watchpoint,
5594 stopped_data_address, watchpoint_addr_within_range,
5595 can_accel_watchpoint_condition, can_run, thread_alive,
5596 has_all_memory, has_memory, has_stack, has_registers,
5597 has_execution, can_async_p, is_async_p, supports_non_stop,
5598 always_non_stop_p, can_execute_reverse, supports_multi_process,
5599 supports_enable_disable_tracepoint,
5600 supports_disable_randomization, supports_string_tracing,
5601 supports_evaluation_of_breakpoint_conditions,
5602 can_run_breakpoint_commands, filesystem_is_local,
5603 can_download_tracepoint, get_trace_state_variable_value,
5604 set_trace_notes, get_tib_address, use_agent, can_use_agent,
5605 record_is_replaying, record_will_replay,
5606 augmented_libraries_svr4_read>: Adjust to return bool.
5607 * aarch64-linux-nat.c: All implementations adjusted.
5608 * aix-thread.c: All implementations adjusted.
5609 * arm-linux-nat.c: All implementations adjusted.
5610 * breakpoint.c: All implementations adjusted.
5611 * bsd-kvm.c: All implementations adjusted.
5612 * bsd-uthread.c: All implementations adjusted.
5613 * corelow.c: All implementations adjusted.
5614 * ctf.c: All implementations adjusted.
5615 * darwin-nat.c: All implementations adjusted.
5616 * darwin-nat.h: All implementations adjusted.
5617 * exec.c: All implementations adjusted.
5618 * fbsd-nat.c: All implementations adjusted.
5619 * fbsd-nat.h: All implementations adjusted.
5620 * gnu-nat.c: All implementations adjusted.
5621 * gnu-nat.h: All implementations adjusted.
5622 * go32-nat.c: All implementations adjusted.
5623 * ia64-linux-nat.c: All implementations adjusted.
5624 * inf-child.c: All implementations adjusted.
5625 * inf-child.h: All implementations adjusted.
5626 * inf-ptrace.c: All implementations adjusted.
5627 * inf-ptrace.h: All implementations adjusted.
5628 * linux-nat.c: All implementations adjusted.
5629 * linux-nat.h: All implementations adjusted.
5630 * mips-linux-nat.c: All implementations adjusted.
5631 * nto-procfs.c: All implementations adjusted.
5632 * ppc-linux-nat.c: All implementations adjusted.
5633 * procfs.c: All implementations adjusted.
5634 * ravenscar-thread.c: All implementations adjusted.
5635 * record-btrace.c: All implementations adjusted.
5636 * record-full.c: All implementations adjusted.
5637 * remote-sim.c: All implementations adjusted.
5638 * remote.c: All implementations adjusted.
5639 * s390-linux-nat.c: All implementations adjusted.
5640 * sol-thread.c: All implementations adjusted.
5641 * spu-multiarch.c: All implementations adjusted.
5642 * target-delegates.c: All implementations adjusted.
5643 * target.c: All implementations adjusted.
5644 * target.h: All implementations adjusted.
5645 * tracefile-tfile.c: All implementations adjusted.
5646 * tracefile.c: All implementations adjusted.
5647 * tracefile.h: All implementations adjusted.
5648 * windows-nat.c: All implementations adjusted.
5649 * x86-linux-nat.h: All implementations adjusted.
5650 * x86-nat.h: All implementations adjusted.
5651
5652 2018-05-02 Pedro Alves <palves@redhat.com>
5653
5654 * make-target-delegates (scan_target_h): Don't trim lines here.
5655 Replace sequences of tabs and/or whitespace with a single
5656 whitespace.
5657 (top level, parsing methods): Trim each line before processing it
5658 here.
5659
5660 2018-05-02 Pedro Alves <palves@redhat.com>
5661 John Baldwin <jhb@freebsd.org>
5662
5663 * target.h (enum strata) <debug_stratum>: New.
5664 (struct target_ops) <all delegation methods>: Replace by C++
5665 virtual methods, and drop "to_" prefix. All references updated
5666 throughout.
5667 <to_shortname, to_longname, to_doc, to_data,
5668 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
5669 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
5670 virtual methods. All references updated throughout.
5671 <can_attach, supports_terminal_ours, can_create_inferior,
5672 get_thread_control_capabilities, attach_no_wait>: New
5673 virtual methods.
5674 <insert_breakpoint, remove_breakpoint>: Now
5675 TARGET_DEFAULT_NORETURN methods.
5676 <info_proc>: Now returns bool.
5677 <to_magic>: Delete.
5678 (OPS_MAGIC): Delete.
5679 (current_target): Delete. All references replaced by references
5680 to ...
5681 (target_stack): ... this. New.
5682 (target_shortname, target_longname): Adjust.
5683 (target_can_run): Now a function declaration.
5684 (default_child_has_all_memory, default_child_has_memory)
5685 (default_child_has_stack, default_child_has_registers)
5686 (default_child_has_execution): Remove target_ops parameter.
5687 (complete_target_initialization): Delete.
5688 (memory_breakpoint_target): New template class.
5689 (test_target_ops): Refactor as a C++ class with virtual methods.
5690 * make-target-delegates (NAME_PART): Tighten.
5691 (POINTER_PART, CP_SYMBOL): New.
5692 (SIMPLE_RETURN_PART): Reimplement.
5693 (VEC_RETURN_PART): Expect less.
5694 (RETURN_PART, VIRTUAL_PART): New.
5695 (METHOD): Adjust to C++ virtual methods.
5696 (scan_target_h): Remove reference to C99.
5697 (dname): Output "target_ops::" prefix.
5698 (write_function_header): Adjust to output a C++ class method.
5699 (write_declaration): New.
5700 (write_delegator): Adjust to output a C++ class method.
5701 (tdname): Output "dummy_target::" prefix.
5702 (write_tdefault, write_debugmethod): Adjust to output a C++ class
5703 method.
5704 (tdefault_names, debug_names): Delete.
5705 (return_types, tdefaults, styles, argtypes_array): New.
5706 (top level): All methods are delegators.
5707 (print_class): New.
5708 (top level): Print dummy_target and debug_target classes.
5709 * target-delegates.c: Regenerate.
5710 * target-debug.h (target_debug_print_enum_info_proc_what)
5711 (target_debug_print_thread_control_capabilities)
5712 (target_debug_print_thread_info_p): New.
5713 * target.c (dummy_target): Delete.
5714 (the_dummy_target, the_debug_target): New.
5715 (target_stack): Now extern.
5716 (set_targetdebug): Push/unpush debug target.
5717 (default_child_has_all_memory, default_child_has_memory)
5718 (default_child_has_stack, default_child_has_registers)
5719 (default_child_has_execution): Remove target_ops parameter.
5720 (complete_target_initialization): Delete.
5721 (add_target_with_completer): No longer call
5722 complete_target_initialization.
5723 (target_supports_terminal_ours): Use regular delegation.
5724 (update_current_target): Delete.
5725 (push_target): No longer check magic number. Don't call
5726 update_current_target.
5727 (unpush_target): Don't call update_current_target.
5728 (target_is_pushed): No longer check magic number.
5729 (target_require_runnable): Skip for all stratums over
5730 process_stratum.
5731 (target_ops::info_proc): New.
5732 (target_info_proc): Use find_target_at and
5733 find_default_run_target.
5734 (target_supports_disable_randomization): Use regular delegation.
5735 (target_get_osdata): Use find_target_at.
5736 (target_ops::open, target_ops::close, target_ops::can_attach)
5737 (target_ops::attach, target_ops::can_create_inferior)
5738 (target_ops::create_inferior, target_ops::can_run)
5739 (target_can_run): New.
5740 (default_fileio_target): Use regular delegation.
5741 (target_ops::fileio_open, target_ops::fileio_pwrite)
5742 (target_ops::fileio_pread, target_ops::fileio_fstat)
5743 (target_ops::fileio_close, target_ops::fileio_unlink)
5744 (target_ops::fileio_readlink): New.
5745 (target_fileio_open_1, target_fileio_unlink)
5746 (target_fileio_readlink): Always call the target method. Handle
5747 FILEIO_ENOSYS.
5748 (return_zero, return_zero_has_execution): Delete.
5749 (init_dummy_target): Delete.
5750 (dummy_target::dummy_target, dummy_target::shortname)
5751 (dummy_target::longname, dummy_target::doc)
5752 (debug_target::debug_target, debug_target::shortname)
5753 (debug_target::longname, debug_target::doc): New.
5754 (target_supports_delete_record): Use regular delegation.
5755 (setup_target_debug): Delete.
5756 (maintenance_print_target_stack): Skip debug_stratum.
5757 (initialize_targets): Instantiate the_dummy_target and
5758 the_debug_target.
5759 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
5760 use target_stack.
5761 (target_auxv_search, fprint_target_auxv): Adjust.
5762 (info_auxv_command): Adjust to use target_stack.
5763 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
5764 * exceptions.c (print_flush): Handle a NULL target_stack.
5765 * regcache.c (target_ops_no_register): Refactor as class with
5766 virtual methods.
5767
5768 * exec.c (exec_target): New class.
5769 (exec_ops): Now an exec_target.
5770 (exec_open, exec_close_1, exec_get_section_table)
5771 (exec_xfer_partial, exec_files_info, exec_has_memory)
5772 (exec_make_note_section): Refactor as exec_target methods.
5773 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
5774 Delete.
5775 (exec_target::find_memory_regions): New.
5776 (_initialize_exec): Don't call init_exec_ops.
5777 * gdbcore.h (exec_file_clear): Delete.
5778
5779 * corefile.c (core_target): Delete.
5780 (core_file_command): Adjust.
5781 * corelow.c (core_target): New class.
5782 (the_core_target): New.
5783 (core_close): Remove target_ops parameter.
5784 (core_close_cleanup): Adjust.
5785 (core_target::close): New.
5786 (core_open, core_detach, get_core_registers, core_files_info)
5787 (core_xfer_partial, core_thread_alive, core_read_description)
5788 (core_pid_to_str, core_thread_name, core_has_memory)
5789 (core_has_stack, core_has_registers, core_info_proc): Rework as
5790 core_target methods.
5791 (ignore, core_remove_breakpoint, init_core_ops): Delete.
5792 (_initialize_corelow): Initialize the_core_target.
5793 * gdbcore.h (core_target): Delete.
5794 (the_core_target): New.
5795
5796 * ctf.c: (ctf_target): New class.
5797 (ctf_ops): Now a ctf_target.
5798 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
5799 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
5800 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
5801 methods.
5802 (init_ctf_ops): Delete.
5803 (_initialize_ctf): Don't call it.
5804 * tracefile-tfile.c (tfile_target): New class.
5805 (tfile_ops): Now a tfile_target.
5806 (tfile_open, tfile_close, tfile_files_info)
5807 (tfile_get_tracepoint_status, tfile_trace_find)
5808 (tfile_fetch_registers, tfile_xfer_partial)
5809 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
5810 Refactor as tfile_target methods.
5811 (tfile_xfer_partial_features): Remove target_ops parameter.
5812 (init_tfile_ops): Delete.
5813 (_initialize_tracefile_tfile): Don't call it.
5814 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
5815 (tracefile_has_stack, tracefile_has_registers)
5816 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
5817 tracefile_target methods.
5818 (init_tracefile_ops): Delete.
5819 (tracefile_target::tracefile_target): New.
5820 * tracefile.h: Include "target.h".
5821 (tracefile_target): New class.
5822 (init_tracefile_ops): Delete.
5823
5824 * spu-multiarch.c (spu_multiarch_target): New class.
5825 (spu_ops): Now a spu_multiarch_target.
5826 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
5827 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5828 (spu_search_memory, spu_mourn_inferior): Refactor as
5829 spu_multiarch_target methods.
5830 (init_spu_ops): Delete.
5831 (_initialize_spu_multiarch): Remove references to init_spu_ops,
5832 complete_target_initialization.
5833
5834 * ravenscar-thread.c (ravenscar_thread_target): New class.
5835 (ravenscar_ops): Now a ravenscar_thread_target.
5836 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
5837 (ravenscar_thread_alive, ravenscar_pid_to_str)
5838 (ravenscar_fetch_registers, ravenscar_store_registers)
5839 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
5840 (ravenscar_stopped_by_hw_breakpoint)
5841 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
5842 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
5843 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
5844 methods.
5845 (init_ravenscar_thread_ops): Delete.
5846 (_initialize_ravenscar): Remove references to
5847 init_ravenscar_thread_ops and complete_target_initialization.
5848
5849 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
5850 (bsd_uthread_target): New class.
5851 (bsd_uthread_ops): Now a bsd_uthread_target.
5852 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
5853 (bsd_uthread_close, bsd_uthread_mourn_inferior)
5854 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
5855 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
5856 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
5857 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
5858 (bsd_uthread_target): Delete function.
5859 (_initialize_bsd_uthread): Remove reference to
5860 complete_target_initialization.
5861
5862 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
5863 (target_bfd): ... this new class.
5864 (target_bfd_xfer_partial, target_bfd_get_section_table)
5865 (target_bfd_close): Refactor as target_bfd methods.
5866 (target_bfd::~target_bfd): New.
5867 (target_bfd_reopen): Adjust.
5868 (target_bfd::close): New.
5869
5870 * record-btrace.c (record_btrace_target): New class.
5871 (record_btrace_ops): Now a record_btrace_target.
5872 (record_btrace_open, record_btrace_stop_recording)
5873 (record_btrace_disconnect, record_btrace_close)
5874 (record_btrace_async, record_btrace_info)
5875 (record_btrace_insn_history, record_btrace_insn_history_range)
5876 (record_btrace_insn_history_from, record_btrace_call_history)
5877 (record_btrace_call_history_range)
5878 (record_btrace_call_history_from, record_btrace_record_method)
5879 (record_btrace_is_replaying, record_btrace_will_replay)
5880 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5881 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
5882 (record_btrace_store_registers, record_btrace_prepare_to_store)
5883 (record_btrace_to_get_unwinder)
5884 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
5885 (record_btrace_commit_resume, record_btrace_wait)
5886 (record_btrace_stop, record_btrace_can_execute_reverse)
5887 (record_btrace_stopped_by_sw_breakpoint)
5888 (record_btrace_supports_stopped_by_sw_breakpoint)
5889 (record_btrace_stopped_by_hw_breakpoint)
5890 (record_btrace_supports_stopped_by_hw_breakpoint)
5891 (record_btrace_update_thread_list, record_btrace_thread_alive)
5892 (record_btrace_goto_begin, record_btrace_goto_end)
5893 (record_btrace_goto, record_btrace_stop_replaying_all)
5894 (record_btrace_execution_direction)
5895 (record_btrace_prepare_to_generate_core)
5896 (record_btrace_done_generating_core): Refactor as
5897 record_btrace_target methods.
5898 (init_record_btrace_ops): Delete.
5899 (_initialize_record_btrace): Remove reference to
5900 init_record_btrace_ops.
5901 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
5902 the execution_direction global.
5903 (record_full_base_target, record_full_target)
5904 (record_full_core_target): New classes.
5905 (record_full_ops): Now a record_full_target.
5906 (record_full_core_ops): Now a record_full_core_target.
5907 (record_full_target::detach, record_full_target::disconnect)
5908 (record_full_core_target::disconnect)
5909 (record_full_target::mourn_inferior, record_full_target::kill):
5910 New.
5911 (record_full_open, record_full_close, record_full_async): Refactor
5912 as methods of the record_full_base_target class.
5913 (record_full_resume, record_full_commit_resume): Refactor
5914 as methods of the record_full_target class.
5915 (record_full_wait, record_full_stopped_by_watchpoint)
5916 (record_full_stopped_data_address)
5917 (record_full_stopped_by_sw_breakpoint)
5918 (record_full_supports_stopped_by_sw_breakpoint)
5919 (record_full_stopped_by_hw_breakpoint)
5920 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
5921 methods of the record_full_base_target class.
5922 (record_full_store_registers, record_full_xfer_partial)
5923 (record_full_insert_breakpoint, record_full_remove_breakpoint):
5924 Refactor as methods of the record_full_target class.
5925 (record_full_can_execute_reverse, record_full_get_bookmark)
5926 (record_full_goto_bookmark, record_full_execution_direction)
5927 (record_full_record_method, record_full_info, record_full_delete)
5928 (record_full_is_replaying, record_full_will_replay)
5929 (record_full_goto_begin, record_full_goto_end, record_full_goto)
5930 (record_full_stop_replaying): Refactor as methods of the
5931 record_full_base_target class.
5932 (record_full_core_resume, record_full_core_kill)
5933 (record_full_core_fetch_registers)
5934 (record_full_core_prepare_to_store)
5935 (record_full_core_store_registers, record_full_core_xfer_partial)
5936 (record_full_core_insert_breakpoint)
5937 (record_full_core_remove_breakpoint)
5938 (record_full_core_has_execution): Refactor
5939 as methods of the record_full_core_target class.
5940 (record_full_base_target::supports_delete_record): New.
5941 (init_record_full_ops): Delete.
5942 (init_record_full_core_ops): Delete.
5943 (record_full_save): Refactor as method of the
5944 record_full_base_target class.
5945 (_initialize_record_full): Remove references to
5946 init_record_full_ops and init_record_full_core_ops.
5947
5948 * remote.c (remote_target, extended_remote_target): New classes.
5949 (remote_ops): Now a remote_target.
5950 (extended_remote_ops): Now an extended_remote_target.
5951 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
5952 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
5953 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
5954 (remote_pass_signals, remote_set_syscall_catchpoint)
5955 (remote_program_signals, )
5956 (remote_thread_always_alive): Remove target_ops parameter.
5957 (remote_thread_alive, remote_thread_name)
5958 (remote_update_thread_list, remote_threads_extra_info)
5959 (remote_static_tracepoint_marker_at)
5960 (remote_static_tracepoint_markers_by_strid)
5961 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
5962 (remote_open): Refactor as methods of remote_target.
5963 (extended_remote_open, extended_remote_detach)
5964 (extended_remote_attach, extended_remote_post_attach):
5965 (extended_remote_supports_disable_randomization)
5966 (extended_remote_create_inferior): : Refactor as method of
5967 extended_remote_target.
5968 (remote_set_permissions, remote_open_1, remote_detach)
5969 (remote_follow_fork, remote_follow_exec, remote_disconnect)
5970 (remote_resume, remote_commit_resume, remote_stop)
5971 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
5972 (remote_terminal_ours, remote_wait, remote_fetch_registers)
5973 (remote_prepare_to_store, remote_store_registers)
5974 (remote_flash_erase, remote_flash_done, remote_files_info)
5975 (remote_kill, remote_mourn, remote_insert_breakpoint)
5976 (remote_remove_breakpoint, remote_insert_watchpoint)
5977 (remote_watchpoint_addr_within_range)
5978 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
5979 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
5980 (remote_supports_stopped_by_sw_breakpoint)
5981 (remote_stopped_by_hw_breakpoint)
5982 (remote_supports_stopped_by_hw_breakpoint)
5983 (remote_stopped_by_watchpoint, remote_stopped_data_address)
5984 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5985 (remote_verify_memory): Refactor as methods of remote_target.
5986 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
5987 parameter.
5988 (remote_xfer_partial, remote_get_memory_xfer_limit)
5989 (remote_search_memory, remote_rcmd, remote_memory_map)
5990 (remote_pid_to_str, remote_get_thread_local_address)
5991 (remote_get_tib_address, remote_read_description): Refactor as
5992 methods of remote_target.
5993 (remote_target::fileio_open, remote_target::fileio_pwrite)
5994 (remote_target::fileio_pread, remote_target::fileio_close): New.
5995 (remote_hostio_readlink, remote_hostio_fstat)
5996 (remote_filesystem_is_local, remote_can_execute_reverse)
5997 (remote_supports_non_stop, remote_supports_disable_randomization)
5998 (remote_supports_multi_process, remote_supports_cond_breakpoints)
5999 (remote_supports_enable_disable_tracepoint)
6000 (remote_supports_string_tracing)
6001 (remote_can_run_breakpoint_commands, remote_trace_init)
6002 (remote_download_tracepoint, remote_can_download_tracepoint)
6003 (remote_download_trace_state_variable, remote_enable_tracepoint)
6004 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6005 (remote_trace_start, remote_get_trace_status)
6006 (remote_get_tracepoint_status, remote_trace_stop)
6007 (remote_trace_find, remote_get_trace_state_variable_value)
6008 (remote_save_trace_data, remote_get_raw_trace_data)
6009 (remote_set_disconnected_tracing, remote_core_of_thread)
6010 (remote_set_circular_trace_buffer, remote_traceframe_info)
6011 (remote_get_min_fast_tracepoint_insn_len)
6012 (remote_set_trace_buffer_size, remote_set_trace_notes)
6013 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6014 (remote_disable_btrace, remote_teardown_btrace)
6015 (remote_read_btrace, remote_btrace_conf)
6016 (remote_augmented_libraries_svr4_read, remote_load)
6017 (remote_pid_to_exec_file, remote_can_do_single_step)
6018 (remote_execution_direction, remote_thread_handle_to_thread_info):
6019 Refactor as methods of remote_target.
6020 (init_remote_ops, init_extended_remote_ops): Delete.
6021 (remote_can_async_p, remote_is_async_p, remote_async)
6022 (remote_thread_events, remote_upload_tracepoints)
6023 (remote_upload_trace_state_variables): Refactor as methods of
6024 remote_target.
6025 (_initialize_remote): Remove references to init_remote_ops and
6026 init_extended_remote_ops.
6027
6028 * remote-sim.c (gdbsim_target): New class.
6029 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
6030 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
6031 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
6032 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
6033 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
6034 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
6035 Refactor as methods of gdbsim_target.
6036 (gdbsim_ops): Now a gdbsim_target.
6037 (init_gdbsim_ops): Delete.
6038 (gdbsim_cntrl_c): Adjust.
6039 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
6040
6041 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
6042 (the_amd64_linux_nat_target): New.
6043 (amd64_linux_fetch_inferior_registers)
6044 (amd64_linux_store_inferior_registers): Refactor as methods of
6045 amd64_linux_nat_target.
6046 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
6047 * i386-linux-nat.c: Don't include "linux-nat.h".
6048 (i386_linux_nat_target): New class.
6049 (the_i386_linux_nat_target): New.
6050 (i386_linux_fetch_inferior_registers)
6051 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
6052 as methods of i386_linux_nat_target.
6053 (_initialize_i386_linux_nat): Adjust. Set linux_target.
6054 * inf-child.c (inf_child_ops): Delete.
6055 (inf_child_fetch_inferior_registers)
6056 (inf_child_store_inferior_registers): Delete.
6057 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
6058 methods of inf_child_target.
6059 (inf_child_target::supports_terminal_ours)
6060 (inf_child_target::terminal_init)
6061 (inf_child_target::terminal_inferior)
6062 (inf_child_target::terminal_ours_for_output)
6063 (inf_child_target::terminal_ours, inf_child_target::interrupt)
6064 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
6065 New.
6066 (inf_child_open, inf_child_disconnect, inf_child_close)
6067 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
6068 (inf_child_post_startup_inferior, inf_child_can_run)
6069 (inf_child_pid_to_exec_file): Refactor as methods of
6070 inf_child_target.
6071 (inf_child_follow_fork): Delete.
6072 (inf_child_target::can_create_inferior)
6073 (inf_child_target::can_attach): New.
6074 (inf_child_target::has_all_memory, inf_child_target::has_memory)
6075 (inf_child_target::has_stack, inf_child_target::has_registers)
6076 (inf_child_target::has_execution): New.
6077 (inf_child_fileio_open, inf_child_fileio_pwrite)
6078 (inf_child_fileio_pread, inf_child_fileio_fstat)
6079 (inf_child_fileio_close, inf_child_fileio_unlink)
6080 (inf_child_fileio_readlink, inf_child_use_agent)
6081 (inf_child_can_use_agent): Refactor as methods of
6082 inf_child_target.
6083 (return_zero, inf_child_target): Delete.
6084 (inf_child_target::inf_child_target): New.
6085 * inf-child.h: Include "target.h".
6086 (inf_child_target): Delete function prototype.
6087 (inf_child_target): New class.
6088 (inf_child_open_target, inf_child_mourn_inferior)
6089 (inf_child_maybe_unpush_target): Delete.
6090 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
6091 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
6092 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
6093 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
6094 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
6095 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
6096 (inf_ptrace_wait, inf_ptrace_xfer_partial)
6097 (inf_ptrace_thread_alive, inf_ptrace_files_info)
6098 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
6099 methods of inf_ptrace_target.
6100 (inf_ptrace_target): Delete function.
6101 * inf-ptrace.h: Include "inf-child.h".
6102 (inf_ptrace_target): Delete function declaration.
6103 (inf_ptrace_target): New class.
6104 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
6105 * linux-nat.c (linux_target): New.
6106 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
6107 (linux_nat_target::~linux_nat_target): New.
6108 (linux_child_post_attach, linux_child_post_startup_inferior)
6109 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
6110 (linux_child_remove_fork_catchpoint)
6111 (linux_child_insert_vfork_catchpoint)
6112 (linux_child_remove_vfork_catchpoint)
6113 (linux_child_insert_exec_catchpoint)
6114 (linux_child_remove_exec_catchpoint)
6115 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6116 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6117 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6118 (linux_nat_stopped_data_address)
6119 (linux_nat_stopped_by_sw_breakpoint)
6120 (linux_nat_supports_stopped_by_sw_breakpoint)
6121 (linux_nat_stopped_by_hw_breakpoint)
6122 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6123 (linux_nat_kill, linux_nat_mourn_inferior)
6124 (linux_nat_xfer_partial, linux_nat_thread_alive)
6125 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6126 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6127 (linux_child_static_tracepoint_markers_by_strid)
6128 (linux_nat_is_async_p, linux_nat_can_async_p)
6129 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6130 (linux_nat_supports_multi_process)
6131 (linux_nat_supports_disable_randomization, linux_nat_async)
6132 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6133 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6134 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6135 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6136 methods of linux_nat_target.
6137 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6138 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6139 parameter.
6140 (check_stopped_by_watchpoint): Adjust.
6141 (linux_xfer_partial): Delete.
6142 (linux_target_install_ops, linux_target, linux_nat_add_target):
6143 Delete.
6144 (linux_nat_target::linux_nat_target): New.
6145 * linux-nat.h: Include "inf-ptrace.h".
6146 (linux_nat_target): New.
6147 (linux_target, linux_target_install_ops, linux_nat_add_target):
6148 Delete function declarations.
6149 (linux_target): Declare global.
6150 * linux-thread-db.c (thread_db_target): New.
6151 (thread_db_target::thread_db_target): New.
6152 (thread_db_ops): Delete.
6153 (the_thread_db_target): New.
6154 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6155 (thread_db_update_thread_list, thread_db_pid_to_str)
6156 (thread_db_extra_thread_info)
6157 (thread_db_thread_handle_to_thread_info)
6158 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6159 (thread_db_resume): Refactor as methods of thread_db_target.
6160 (init_thread_db_ops): Delete.
6161 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6162 * x86-linux-nat.c: Don't include "linux-nat.h".
6163 (super_post_startup_inferior): Delete.
6164 (x86_linux_nat_target::~x86_linux_nat_target): New.
6165 (x86_linux_child_post_startup_inferior)
6166 (x86_linux_read_description, x86_linux_enable_btrace)
6167 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6168 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6169 methods of x86_linux_nat_target.
6170 (x86_linux_create_target): Delete. Bits folded ...
6171 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6172 pointer.
6173 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6174 (x86_linux_nat_target): New class.
6175 (x86_linux_create_target): Delete.
6176 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6177 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6178 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6179 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6180 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6181 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6182 make extern.
6183 (x86_use_watchpoints): Delete.
6184 * x86-nat.h: Include "breakpoint.h" and "target.h".
6185 (x86_use_watchpoints): Delete.
6186 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6187 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6188 (x86_insert_watchpoint, x86_remove_watchpoint)
6189 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6190 (x86_stopped_by_hw_breakpoint): New declarations.
6191 (x86_nat_target): New template class.
6192
6193 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6194 (the_ppc_linux_nat_target): New.
6195 (ppc_linux_fetch_inferior_registers)
6196 (ppc_linux_can_use_hw_breakpoint)
6197 (ppc_linux_region_ok_for_hw_watchpoint)
6198 (ppc_linux_ranged_break_num_registers)
6199 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6200 (ppc_linux_insert_mask_watchpoint)
6201 (ppc_linux_remove_mask_watchpoint)
6202 (ppc_linux_can_accel_watchpoint_condition)
6203 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6204 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6205 (ppc_linux_watchpoint_addr_within_range)
6206 (ppc_linux_masked_watch_num_registers)
6207 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6208 (ppc_linux_read_description): Refactor as methods of
6209 ppc_linux_nat_target.
6210 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6211
6212 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6213 (procfs_target): New class.
6214 (the_procfs_target): New.
6215 (procfs_target): Delete function.
6216 (procfs_auxv_parse, procfs_attach, procfs_detach)
6217 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6218 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6219 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6220 (procfs_create_inferior, procfs_update_thread_list)
6221 (procfs_thread_alive, procfs_pid_to_str)
6222 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6223 (procfs_stopped_data_address, procfs_insert_watchpoint)
6224 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6225 (proc_find_memory_regions, procfs_info_proc)
6226 (procfs_make_note_section): Refactor as methods of procfs_target.
6227 (_initialize_procfs): Adjust.
6228 * sol-thread.c (sol_thread_target): New class.
6229 (sol_thread_ops): Now a sol_thread_target.
6230 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6231 (sol_thread_fetch_registers, sol_thread_store_registers)
6232 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6233 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6234 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6235 (init_sol_thread_ops): Delete.
6236 (_initialize_sol_thread): Adjust. Remove references to
6237 init_sol_thread_ops and complete_target_initialization.
6238
6239 * windows-nat.c (windows_nat_target): New class.
6240 (windows_fetch_inferior_registers)
6241 (windows_store_inferior_registers, windows_resume, windows_wait)
6242 (windows_attach, windows_detach, windows_pid_to_exec_file)
6243 (windows_files_info, windows_create_inferior)
6244 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6245 (windows_close, windows_pid_to_str, windows_xfer_partial)
6246 (windows_get_tib_address, windows_get_ada_task_ptid)
6247 (windows_thread_name, windows_thread_alive): Refactor as
6248 windows_nat_target methods.
6249 (do_initial_windows_stuff): Adjust.
6250 (windows_target): Delete function.
6251 (_initialize_windows_nat): Adjust.
6252
6253 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6254 (darwin_mourn_inferior, darwin_kill_inferior)
6255 (darwin_create_inferior, darwin_attach, darwin_detach)
6256 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6257 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6258 (darwin_supports_multi_process): Refactor as darwin_nat_target
6259 methods.
6260 (darwin_resume_to, darwin_files_info): Delete.
6261 (_initialize_darwin_inferior): Rename to ...
6262 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6263 * darwin-nat.h: Include "inf-child.h".
6264 (darwin_nat_target): New class.
6265 (darwin_complete_target): Delete.
6266 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6267 (darwin_target): New.
6268 (i386_darwin_fetch_inferior_registers)
6269 (i386_darwin_store_inferior_registers): Refactor as methods of
6270 darwin_nat_target.
6271 (darwin_complete_target): Delete, with ...
6272 (_initialize_i386_darwin_nat): ... bits factored out here.
6273
6274 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6275 (the_alpha_linux_nat_target): New.
6276 (alpha_linux_register_u_offset): Refactor as
6277 alpha_linux_nat_target method.
6278 (_initialize_alpha_linux_nat): Adjust.
6279 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6280 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6281 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6282 methods of linux_nat_trad_target.
6283 (linux_trad_target): Delete.
6284 * linux-nat-trad.h (linux_trad_target): Delete function.
6285 (linux_nat_trad_target): New class.
6286 * mips-linux-nat.c (mips_linux_nat_target): New class.
6287 (super_fetch_registers, super_store_registers, super_close):
6288 Delete.
6289 (the_mips_linux_nat_target): New.
6290 (mips64_linux_regsets_fetch_registers)
6291 (mips64_linux_regsets_store_registers)
6292 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6293 (mips_linux_register_u_offset, mips_linux_read_description)
6294 (mips_linux_can_use_hw_breakpoint)
6295 (mips_linux_stopped_by_watchpoint)
6296 (mips_linux_stopped_data_address)
6297 (mips_linux_region_ok_for_hw_watchpoint)
6298 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6299 (mips_linux_close): Refactor as methods of mips_linux_nat.
6300 (_initialize_mips_linux_nat): Adjust to C++ification.
6301
6302 * aix-thread.c (aix_thread_target): New class.
6303 (aix_thread_ops): Now an aix_thread_target.
6304 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6305 (aix_thread_fetch_registers, aix_thread_store_registers)
6306 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6307 (aix_thread_thread_alive, aix_thread_pid_to_str)
6308 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6309 Refactor as methods of aix_thread_target.
6310 (init_aix_thread_ops): Delete.
6311 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6312 and complete_target_initialization.
6313 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6314 (rs6000_nat_target): New class.
6315 (the_rs6000_nat_target): New.
6316 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6317 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6318 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6319 (super_create_inferior): Delete.
6320 (_initialize_rs6000_nat): Adjust to C++ification.
6321
6322 * arm-linux-nat.c (arm_linux_nat_target): New class.
6323 (the_arm_linux_nat_target): New.
6324 (arm_linux_fetch_inferior_registers)
6325 (arm_linux_store_inferior_registers, arm_linux_read_description)
6326 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6327 (arm_linux_remove_hw_breakpoint)
6328 (arm_linux_region_ok_for_hw_watchpoint)
6329 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6330 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6331 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6332 arm_linux_nat_target.
6333 (_initialize_arm_linux_nat): Adjust to C++ification.
6334
6335 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6336 (the_aarch64_linux_nat_target): New.
6337 (aarch64_linux_fetch_inferior_registers)
6338 (aarch64_linux_store_inferior_registers)
6339 (aarch64_linux_child_post_startup_inferior)
6340 (aarch64_linux_read_description)
6341 (aarch64_linux_can_use_hw_breakpoint)
6342 (aarch64_linux_insert_hw_breakpoint)
6343 (aarch64_linux_remove_hw_breakpoint)
6344 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6345 (aarch64_linux_region_ok_for_hw_watchpoint)
6346 (aarch64_linux_stopped_data_address)
6347 (aarch64_linux_stopped_by_watchpoint)
6348 (aarch64_linux_watchpoint_addr_within_range)
6349 (aarch64_linux_can_do_single_step): Refactor as methods of
6350 aarch64_linux_nat_target.
6351 (super_post_startup_inferior): Delete.
6352 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6353
6354 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6355 (the_hppa_linux_nat_target): New.
6356 (hppa_linux_fetch_inferior_registers)
6357 (hppa_linux_store_inferior_registers): Refactor as methods of
6358 hppa_linux_nat_target.
6359 (_initialize_hppa_linux_nat): Adjust to C++ification.
6360
6361 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6362 (the_ia64_linux_nat_target): New.
6363 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6364 (ia64_linux_stopped_data_address)
6365 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6366 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6367 ia64_linux_nat_target methods.
6368 (super_xfer_partial): Delete.
6369 (_initialize_ia64_linux_nat): Adjust to C++ification.
6370
6371 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6372 (the_m32r_linux_nat_target): New.
6373 (m32r_linux_fetch_inferior_registers)
6374 (m32r_linux_store_inferior_registers): Refactor as
6375 m32r_linux_nat_target methods.
6376 (_initialize_m32r_linux_nat): Adjust to C++ification.
6377
6378 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6379 (the_m68k_linux_nat_target): New.
6380 (m68k_linux_fetch_inferior_registers)
6381 (m68k_linux_store_inferior_registers): Refactor as
6382 m68k_linux_nat_target methods.
6383 (_initialize_m68k_linux_nat): Adjust to C++ification.
6384
6385 * s390-linux-nat.c (s390_linux_nat_target): New class.
6386 (the_s390_linux_nat_target): New.
6387 (s390_linux_fetch_inferior_registers)
6388 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6389 (s390_insert_watchpoint, s390_remove_watchpoint)
6390 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6391 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6392 (s390_auxv_parse, s390_read_description): Refactor as methods of
6393 s390_linux_nat_target.
6394 (_initialize_s390_nat): Adjust to C++ification.
6395
6396 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6397 (the_sparc_linux_nat_target): New.
6398 (_initialize_sparc_linux_nat): Adjust to C++ification.
6399 * sparc-nat.c (sparc_fetch_inferior_registers)
6400 (sparc_store_inferior_registers): Remove target_ops parameter.
6401 * sparc-nat.h (sparc_fetch_inferior_registers)
6402 (sparc_store_inferior_registers): Remove target_ops parameter.
6403 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6404 (the_sparc64_linux_nat_target): New.
6405 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6406
6407 * spu-linux-nat.c (spu_linux_nat_target): New class.
6408 (the_spu_linux_nat_target): New.
6409 (spu_child_post_startup_inferior, spu_child_post_attach)
6410 (spu_child_wait, spu_fetch_inferior_registers)
6411 (spu_store_inferior_registers, spu_xfer_partial)
6412 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6413 methods.
6414 (_initialize_spu_nat): Adjust to C++ification.
6415
6416 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6417 (the_tilegx_linux_nat_target): New.
6418 (fetch_inferior_registers, store_inferior_registers):
6419 Refactor as methods.
6420 (_initialize_tile_linux_nat): Adjust to C++ification.
6421
6422 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6423 (the_xtensa_linux_nat_target): New.
6424 (xtensa_linux_fetch_inferior_registers)
6425 (xtensa_linux_store_inferior_registers): Refactor as
6426 xtensa_linux_nat_target methods.
6427 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6428
6429 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6430 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6431 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6432 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6433 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6434 (fbsd_stopped_by_sw_breakpoint)
6435 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6436 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6437 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6438 (fbsd_post_startup_inferior, fbsd_post_attach)
6439 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6440 (fbsd_set_syscall_catchpoint)
6441 (super_xfer_partial, super_resume, super_wait)
6442 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6443 (fbsd_handle_debug_trap): Remove target_ops parameter.
6444 (fbsd_nat_add_target): Delete.
6445 * fbsd-nat.h: Include "inf-ptrace.h".
6446 (fbsd_nat_add_target): Delete.
6447 (USE_SIGTRAP_SIGINFO): Define.
6448 (fbsd_nat_target): New class.
6449
6450 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6451 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6452 (amd64bsd_target): Delete.
6453 * amd64-bsd-nat.h: New file.
6454 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6455 "x86-bsd-nat.h".
6456 (amd64_fbsd_nat_target): New class.
6457 (the_amd64_fbsd_nat_target): New.
6458 (amd64fbsd_read_description): Refactor as method of
6459 amd64_fbsd_nat_target.
6460 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6461 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6462 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6463 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6464 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6465 (i386bsd_target): Delete.
6466 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6467 (i386bsd_fetch_inferior_registers)
6468 (i386bsd_store_inferior_registers): Declare.
6469 (i386_bsd_nat_target): New class.
6470 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6471 (the_i386_fbsd_nat_target): New.
6472 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6473 i386_fbsd_nat_target methods.
6474 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6475 (_initialize_i386fbsd_nat): Adjust to C++ification.
6476 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6477 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6478 (_initialize_x86_bsd_nat): Adjust to C++ification.
6479 * x86-bsd-nat.h: Include "x86-nat.h".
6480 (x86bsd_target): Delete declaration.
6481 (x86bsd_nat_target): New class.
6482
6483 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6484 (the_aarch64_fbsd_nat_target): New.
6485 (aarch64_fbsd_fetch_inferior_registers)
6486 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6487 aarch64_fbsd_nat_target.
6488 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6489 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6490 (the_alpha_bsd_nat_target): New.
6491 (alphabsd_fetch_inferior_registers)
6492 (alphabsd_store_inferior_registers): Refactor as
6493 alpha_bsd_nat_target methods.
6494 (_initialize_alphabsd_nat): Refactor as methods of
6495 alpha_bsd_nat_target.
6496 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6497 (the_amd64_nbsd_nat_target): New.
6498 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6499 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6500 (the_amd64_obsd_nat_target): New.
6501 (_initialize_amd64obsd_nat): Adjust to C++ification.
6502 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6503 (the_arm_fbsd_nat_target): New.
6504 (arm_fbsd_fetch_inferior_registers)
6505 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6506 (_initialize_arm_fbsd_nat): Refactor as methods of
6507 arm_fbsd_nat_target.
6508 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6509 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6510 (the_arm_netbsd_nat_target): New.
6511 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6512 arm_netbsd_nat_target.
6513 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6514 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6515 (the_hppa_nbsd_nat_target): New.
6516 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6517 hppa_nbsd_nat_target methods.
6518 (_initialize_hppanbsd_nat): Adjust to C++ification.
6519 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6520 (the_hppa_obsd_nat_target): New.
6521 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6522 methods of hppa_obsd_nat_target.
6523 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6524 add_target.
6525 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6526 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6527 add_target.
6528 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6529 (_initialize_i386obsd_nat): Use add_target.
6530 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6531 (the_m68k_bsd_nat_target): New.
6532 (m68kbsd_fetch_inferior_registers)
6533 (m68kbsd_store_inferior_registers): Refactor as methods of
6534 m68k_bsd_nat_target.
6535 (_initialize_m68kbsd_nat): Adjust to C++ification.
6536 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6537 (the_mips_fbsd_nat_target): New.
6538 (mips_fbsd_fetch_inferior_registers)
6539 (mips_fbsd_store_inferior_registers): Refactor as methods of
6540 mips_fbsd_nat_target.
6541 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6542 add_target.
6543 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6544 (the_mips_nbsd_nat_target): New.
6545 (mipsnbsd_fetch_inferior_registers)
6546 (mipsnbsd_store_inferior_registers): Refactor as methods of
6547 mips_nbsd_nat_target.
6548 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6549 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6550 (the_mips64_obsd_nat_target): New.
6551 (mips64obsd_fetch_inferior_registers)
6552 (mips64obsd_store_inferior_registers): Refactor as methods of
6553 mips64_obsd_nat_target.
6554 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6555 add_target.
6556 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6557 nbsd_nat_target.
6558 * nbsd-nat.h: Include "inf-ptrace.h".
6559 (nbsd_nat_target): New class.
6560 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6561 (obsd_wait): Refactor as methods of obsd_nat_target.
6562 (obsd_add_target): Delete.
6563 * obsd-nat.h: Include "inf-ptrace.h".
6564 (obsd_nat_target): New class.
6565 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6566 (the_ppc_fbsd_nat_target): New.
6567 (ppcfbsd_fetch_inferior_registers)
6568 (ppcfbsd_store_inferior_registers): Refactor as methods of
6569 ppc_fbsd_nat_target.
6570 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6571 add_target.
6572 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6573 (the_ppc_nbsd_nat_target): New.
6574 (ppcnbsd_fetch_inferior_registers)
6575 (ppcnbsd_store_inferior_registers): Refactor as methods of
6576 ppc_nbsd_nat_target.
6577 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6578 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
6579 (the_ppc_obsd_nat_target): New.
6580 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
6581 methods of ppc_obsd_nat_target.
6582 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
6583 add_target.
6584 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
6585 (the_sh_nbsd_nat_target): New.
6586 (shnbsd_fetch_inferior_registers)
6587 (shnbsd_store_inferior_registers): Refactor as methods of
6588 sh_nbsd_nat_target.
6589 (_initialize_shnbsd_nat): Adjust to C++ification.
6590 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
6591 (inf_ptrace_xfer_partial): Delete.
6592 (sparc_xfer_partial, sparc_target): Delete.
6593 * sparc-nat.h (sparc_fetch_inferior_registers)
6594 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
6595 (sparc_target): Delete function declaration.
6596 (sparc_target): New template class.
6597 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
6598 (_initialize_sparcnbsd_nat): Adjust to C++ification.
6599 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
6600 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
6601 add_target.
6602 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
6603 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
6604 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
6605 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
6606 add_target.
6607 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
6608 (the_vax_bsd_nat_target): New.
6609 (vaxbsd_fetch_inferior_registers)
6610 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
6611 methods.
6612 (_initialize_vaxbsd_nat): Adjust to C++ification.
6613
6614 * bsd-kvm.c (bsd_kvm_target): New class.
6615 (bsd_kvm_ops): Now a bsd_kvm_target.
6616 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
6617 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
6618 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
6619 bsd_kvm_target.
6620 (bsd_kvm_return_one): Delete.
6621 (bsd_kvm_add_target): Adjust to C++ification.
6622
6623 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
6624 (nto_procfs_target_procfs): New classes.
6625 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
6626 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
6627 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
6628 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
6629 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
6630 (procfs_remove_hw_breakpoint, procfs_resume)
6631 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
6632 (procfs_kill_inferior, procfs_store_registers)
6633 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
6634 as methods of nto_procfs_target.
6635 (nto_procfs_ops): Now an nto_procfs_target_procfs.
6636 (nto_native_ops): Delete.
6637 (procfs_open, procfs_native_open): Delete.
6638 (nto_native_ops): Now an nto_procfs_target_native.
6639 (init_procfs_targets): Adjust to C++ification.
6640 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
6641 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
6642 Refactor as methods of nto_procfs_target.
6643
6644 * go32-nat.c (go32_nat_target): New class.
6645 (the_go32_nat_target): New.
6646 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
6647 (go32_store_registers, go32_xfer_partial, go32_files_info)
6648 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
6649 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
6650 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
6651 (go32_pid_to_str): Refactor as methods of go32_nat_target.
6652 (go32_target): Delete.
6653 (_initialize_go32_nat): Adjust to C++ification.
6654
6655 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
6656 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
6657 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
6658 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
6659 gnu_nat_target.
6660 (gnu_target): Delete.
6661 * gnu-nat.h (gnu_target): Delete.
6662 (gnu_nat_target): New class.
6663 * i386-gnu-nat.c (gnu_base_target): New.
6664 (i386_gnu_nat_target): New class.
6665 (the_i386_gnu_nat_target): New.
6666 (_initialize_i386gnu_nat): Adjust to C++ification.
6667
6668 2018-05-02 Pedro Alves <palves@redhat.com>
6669
6670 * bfd-target.c (target_bfd_xclose): Rename to ...
6671 (target_bfd_close): ... this.
6672 (target_bfd_reopen): Adjust.
6673 * target.c (target_close): Remove references to to_xclose.
6674 * target.h (target_ops::to_xclose): Delete.
6675 (target_ops::to_close): Update comments.
6676
6677 2018-05-02 Pedro Alves <palves@redhat.com>
6678
6679 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
6680 "linux-nat.h".
6681 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
6682 * inf-ptrace.c (inf_ptrace_register_u_offset)
6683 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6684 (inf_ptrace_store_register, inf_ptrace_store_registers)
6685 (inf_ptrace_trad_target): Move to ...
6686 * linux-nat-trad.c: ... this new file.
6687 * linux-nat-trad.h: New file.
6688 * linux-nat.c (linux_target_install_ops): Make extern.
6689 (linux_trad_target): Delete.
6690 * linux-nat.h (linux_trad_target): Delete declaration.
6691 (linux_target_install_ops): Declare.
6692 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
6693 "linux-nat.h".
6694
6695 2018-05-02 Pedro Alves <palves@redhat.com>
6696
6697 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6698 procfs_target/add_target here.
6699 * procfs.c (procfs_target): Make static.
6700 (_initialize_procfs): Call add_target here.
6701 * procfs.h (struct target_ops): Remove forward declaration.
6702 (procfs_target): Remove declaration.
6703 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
6704
6705 2018-05-02 Pedro Alves <palves@redhat.com>
6706
6707 * procfs.c (procfs_stopped_by_watchpoint)
6708 (procfs_insert_watchpoint, procfs_remove_watchpoint)
6709 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
6710 Forward declare.
6711 (procfs_use_watchpoints): Delete, move contents...
6712 (procfs_target): ... here.
6713 * procfs.h (procfs_use_watchpoints): Delete declaration.
6714 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6715 procfs_use_watchpoints.
6716 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
6717 procfs_use_watchpoints.
6718
6719 2018-05-02 Tom Tromey <tom@tromey.com>
6720
6721 PR python/20084:
6722 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
6723 and var_zuinteger_unlimited.
6724 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
6725 and PARAM_ZUINTEGER_UNLIMITED.
6726 (set_parameter_value): Handle var_zuinteger and
6727 var_zuinteger_unlimited.
6728 (add_setshow_generic): Likewise.
6729 (parmpy_init): Likewise.
6730
6731 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
6732
6733 PR rust/23124
6734 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
6735 pointer is not null before dereferencing it.
6736
6737 2018-04-30 Tom Tromey <tom@tromey.com>
6738
6739 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
6740 is_mi_like_p.
6741
6742 2018-04-30 Tom Tromey <tom@tromey.com>
6743
6744 * breakpoint.c (mention): Remove use of is_mi_like_p.
6745 (print_mention_ranged_breakpoint): Likewise.
6746 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
6747 of is_mi_like_p.
6748
6749 2018-04-30 Tom Tromey <tom@tromey.com>
6750
6751 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
6752
6753 2018-04-30 Tom Tromey <tom@tromey.com>
6754
6755 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
6756 (info_spu_event_command): Remove some uses of is_mi_like_p.
6757
6758 2018-04-30 Tom Tromey <tom@tromey.com>
6759
6760 * python/py-framefilter.c (py_print_single_arg)
6761 (enumerate_locals, py_print_args, py_print_frame): Remove some
6762 uses of is_mi_like_p.
6763
6764 2018-04-30 Tom Tromey <tom@tromey.com>
6765
6766 * ui-out.c: Update.
6767 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
6768 * ui-out.h (ui_out::is_mi_like_p): Now const.
6769 (ui_out::do_is_mi_like_p): Now const.
6770 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
6771
6772 2018-04-30 Tom Tromey <tom@tromey.com>
6773
6774 * varobj.c (varobj_set_visualizer): Use new_reference.
6775 * python/python.c (gdbpy_decode_line): Use new_reference.
6776 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
6777 new_reference.
6778
6779 2018-04-30 Tom Tromey <tom@tromey.com>
6780
6781 * varobj.c (install_new_value): Use new_reference.
6782 * value.h (value_incref): Return void. Swap intro comment with
6783 value_decref.
6784 * value.c (set_value_parent): Use new_reference.
6785 (value_incref): Return void. Update intro comment.
6786 (release_value): Use new_reference.
6787 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
6788
6789 2018-04-30 Tom Tromey <tom@tromey.com>
6790
6791 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
6792 * gdb_bfd.h (new_bfd_ref): Remove.
6793 (gdb_bfd_open): Update comment.
6794 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6795 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
6796 (gdb_bfd_fdopenr): Use new_reference.
6797 * exec.c (exec_file_attach): Use new_reference.
6798
6799 2018-04-30 Tom Tromey <tom@tromey.com>
6800
6801 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
6802 method.
6803
6804 2018-04-30 Tom Tromey <tom@tromey.com>
6805
6806 * jit.c (jit_read_code_entry): Use type_align.
6807 * i386-tdep.c (i386_gdbarch_init): Don't call
6808 set_gdbarch_long_long_align_bit.
6809 * gdbarch.sh: Remove long_long_align_bit.
6810 * gdbarch.c, gdbarch.h: Rebuild.
6811 * arc-tdep.c (arc_type_align): New function.
6812 (arc_gdbarch_init): Use arc_type_align. Don't call
6813 set_gdbarch_long_long_align_bit.
6814
6815 2018-04-30 Tom Tromey <tom@tromey.com>
6816
6817 * rust-lang.c (rust_type_alignment): Remove.
6818 (rust_composite_type): Use type_align.
6819
6820 2018-04-30 Tom Tromey <tom@tromey.com>
6821
6822 * NEWS: Mention Type.align.
6823 * python/py-type.c (typy_get_alignof): New function.
6824 (type_object_getset): Add "alignof".
6825
6826 2018-04-30 Tom Tromey <tom@tromey.com>
6827
6828 PR exp/17095:
6829 * NEWS: Update.
6830 * std-operator.def (UNOP_ALIGNOF): New operator.
6831 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
6832 New.
6833 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
6834 * c-lang.c (c_op_print_tab): Add alignof.
6835 * c-exp.y (ALIGNOF): New token.
6836 (exp): Add "ALIGNOF" production.
6837 (ident_tokens): Add _Alignof and alignof.
6838
6839 2018-04-30 Tom Tromey <tom@tromey.com>
6840
6841 * i386-tdep.c (i386_type_align): New function.
6842 (i386_gdbarch_init): Update.
6843 * gdbarch.sh (type_align): New method.
6844 * gdbarch.c, gdbarch.h: Rebuild.
6845 * arch-utils.h (default_type_align): Declare.
6846 * arch-utils.c (default_type_align): New function.
6847 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
6848 (struct type) <align_log2>: New field.
6849 <instance_flags>: Now a bitfield.
6850 (TYPE_RAW_ALIGN): New macro.
6851 (type_align, type_raw_align, set_type_align): Declare.
6852 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
6853 functions.
6854 * dwarf2read.c (quirk_rust_enum): Set type alignment.
6855 (get_alignment, maybe_set_alignment): New functions.
6856 (read_structure_type, read_enumeration_type, read_array_type)
6857 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
6858 (read_subrange_type, read_base_type): Set type alignment.
6859
6860 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
6861
6862 * dwarf2read.c (read_index_from_section): Use bool.
6863
6864 2018-04-29 Fabian Groffen <grobian@gentoo.org>
6865
6866 PR gdb/22950
6867 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
6868 with #ifdef.
6869
6870 2018-04-29 John Reiser <jreiser@BitWagon.com>
6871
6872 PR build/22873
6873 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
6874 last step, and do it atomically.
6875
6876 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
6877
6878 * compile/compile-c-types.c (convert_int, convert_float):
6879 Update for C FE v1.
6880
6881 2018-04-27 Tom Tromey <tom@tromey.com>
6882
6883 PR rust/22545:
6884 * rust-lang.c (rust_inclusive_range_type_p): New function.
6885 (rust_range): Handle inclusive ranges.
6886 (rust_compute_range): Likewise.
6887 * rust-exp.y (struct rust_op) <inclusive>: New field.
6888 (DOTDOTEQ): New constant.
6889 (range_expr): Add "..=" productions.
6890 (operator_tokens): Add "..=" token.
6891 (ast_range): Add "inclusive" parameter.
6892 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
6893 ranges.
6894 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
6895 bounds values.
6896 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
6897 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
6898 Update comments.
6899 * expprint.c (print_subexp_standard): Handle new bounds values.
6900 (dump_subexp_body_standard): Likewise.
6901
6902 2018-04-27 Tom Tromey <tom@tromey.com>
6903
6904 * configure: Rebuild.
6905 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
6906 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
6907 "OVERRIDE".
6908 (class symbol_needs_eval_context): Likewise.
6909 * dwarf2read.c (mock_mapped_index::symbol_name_count)
6910 (mock_mapped_index::symbol_name_at): Use "override". Remove
6911 "virtual".
6912 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
6913 "override".
6914 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
6915 * aarch64-tdep.c (instruction_reader::read): Use "override".
6916 (instruction_reader_test::read): Likewise.
6917 * arm-tdep.c (instruction_reader::read): Use "override".
6918 (instruction_reader_thumb::read): Likewise.
6919
6920 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
6921
6922 PR remote/9665
6923 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
6924 instead of remote_send.
6925 (remote_send): Remove.
6926
6927 2018-04-26 Pedro Alves <palves@redhat.com>
6928
6929 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
6930 find_function_start_sal instead of find_pc_line.
6931
6932 2018-04-26 Pedro Alves <palves@redhat.com>
6933
6934 * breakpoint.c (set_breakpoint_location_function): Handle
6935 mst_data_gnu_ifunc.
6936 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
6937 * elfread.c (elf_symtab_read): Give data symbols with
6938 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
6939 (elf_rel_plt_read): Update comment.
6940 * linespec.c (convert_linespec_to_sals): Handle
6941 mst_data_gnu_ifunc.
6942 (minsym_found): Handle mst_data_gnu_ifunc.
6943 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
6944 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
6945 * parse.c (find_minsym_type_and_address): Handle
6946 mst_data_gnu_ifunc.
6947 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
6948 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
6949 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
6950 comment.
6951 <mst_data_gnu_ifunc>: New enumerator.
6952
6953 2018-04-26 Pedro Alves <palves@redhat.com>
6954
6955 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
6956 (lookup_minimal_symbol_by_pc_section): ... this. Replace
6957 'want_trampoline' parameter by a lookup_msym_prefer parameter.
6958 Handle it.
6959 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
6960 (lookup_minimal_symbol_by_pc): Adjust.
6961 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
6962 (lookup_solib_trampoline_symbol_by_pc): Adjust.
6963 * minsyms.h (lookup_msym_prefer): New enum.
6964 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
6965 parameter by a lookup_msym_prefer parameter.
6966
6967 2018-04-26 Pedro Alves <palves@redhat.com>
6968
6969 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
6970 ends in "@plt" instead of looking at the symbol's section.
6971
6972 2018-04-26 Pedro Alves <palves@redhat.com>
6973
6974 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
6975 all references.
6976 (find_pc_partial_function_gnu_ifunc): Rename to ...
6977 (find_pc_partial_function): ... this, and remove references to
6978 'is_gnu_ifunc_p'.
6979 (find_pc_partial_function): Delete old implementation.
6980 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
6981
6982 2018-04-26 Pedro Alves <palves@redhat.com>
6983
6984 * linespec.c (struct bound_minimal_symbol_search_key): New.
6985 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
6986 skip first line if we found a GNU ifunc minimal symbol by name.
6987 (compare_msymbols): Change parameters to work with a destructured
6988 lhs minsym.
6989 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
6990 functions.
6991
6992 2018-04-26 Pedro Alves <palves@redhat.com>
6993
6994 * breakpoint.c (set_breakpoint_location_function): Don't resolve
6995 ifunc targets here. Instead, if we have an ifunc minsym, use its
6996 address/name.
6997 (add_location_to_breakpoint): Store the minsym and the objfile in
6998 the breakpoint location.
6999 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7000 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7001 Record the minsym in the sal.
7002 * symtab.h (symtab_and_line) <msymbol>: New field.
7003
7004 2018-04-26 Pedro Alves <palves@redhat.com>
7005
7006 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7007 unless we actually resolved the ifunc.
7008
7009 2018-04-26 Pedro Alves <palves@redhat.com>
7010
7011 * c-exp.y (variable production): Prefer ifunc minsyms over
7012 regular function symbols.
7013 * symtab.c (find_gnu_ifunc): New function.
7014 * minsyms.h (lookup_msym_prefer): New enum.
7015 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7016 parameter by a lookup_msym_prefer parameter.
7017 * symtab.h (find_gnu_ifunc): New declaration.
7018
7019 2018-04-26 Pedro Alves <palves@redhat.com>
7020
7021 * blockframe.c (find_gnu_ifunc_target_type): New function.
7022 (find_function_type): New.
7023 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
7024 return a value with a memory address.
7025 (eval_call): For calls to GNU ifunc functions, try to find the
7026 type of the target function from the type that the resolver
7027 returns.
7028 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
7029 symbols.
7030 * infcall.c (find_function_return_type): Delete.
7031 (find_function_addr): Add 'function_type' parameter. For calls to
7032 GNU ifunc functions, try to find the type of the target function
7033 from the type that the resolver returns, and return it via
7034 FUNCTION_TYPE.
7035 (call_function_by_hand_dummy): Adjust to use the function type
7036 returned by find_function_addr.
7037 (find_function_addr): Add 'function_type' parameter and move
7038 description here.
7039 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
7040 declarations.
7041
7042 2018-04-26 Pedro Alves <palves@redhat.com>
7043
7044 * c-exp.y (variable production): Skip finding an alias for ifunc
7045 symbols.
7046
7047 2018-04-26 Pedro Alves <palves@redhat.com>
7048
7049 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
7050
7051 2018-04-25 Pedro Alves <palves@redhat.com>
7052
7053 * infcmd.c (kill_command): Print the pid as string, not the whole
7054 thread's ptid. Add comment. s/has been killed/killed/ in output
7055 message.
7056 * remote.c (remote_detach_1): Print the pid as string, not the
7057 whole thread's ptid.
7058
7059 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7060 Sergio Durigan Junior <sergiodj@redhat.com>
7061 Pedro Alves <palves@redhat.com>
7062
7063 * infcmd.c (kill_command): Print message when inferior has
7064 been killed.
7065 * inferior.c (print_inferior_events): Remove 'static'. Set as
7066 '1'.
7067 (add_inferior): Improve message printed when
7068 'print_inferior_events' is on.
7069 (exit_inferior): Remove message printed when
7070 'print_inferior_events' is on.
7071 (detach_inferior): Improve message printed when
7072 'print_inferior_events' is on.
7073 (initialize_inferiors): Use 'add_inferior_silent' to set
7074 'current_inferior_'.
7075 * inferior.h (print_inferior_events): Declare here as
7076 'extern'.
7077 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
7078 '[Detaching...]' messages when 'print_inferior_events' is on.
7079 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
7080 as prefix/suffix for messages. Remove periods. Fix erroneous
7081 'Detaching after fork from child...', replace it by '... from
7082 parent...'.
7083 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
7084 prefix/suffix when printing 'Detaching...' messages. Print
7085 them when 'print_inferior_events' is on.
7086 * remote.c (remote_detach_1): Print message when detaching
7087 from inferior and '!is_fork_parent'.
7088
7089 2018-04-24 Tom Tromey <tom@tromey.com>
7090
7091 * cli-out.h: Reindent.
7092
7093 2018-04-24 Tom Tromey <tom@tromey.com>
7094
7095 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
7096 (cli_ui_out::do_field_string): Use fputs_filtered.
7097 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
7098
7099 2018-04-23 Tom Tromey <tom@tromey.com>
7100
7101 * guile/scm-frame.c (gdbscm_frame_read_var): Use
7102 gdb::unique_xmalloc_ptr.
7103
7104 2018-04-23 Tom Tromey <tom@tromey.com>
7105
7106 * configure: Rebuild.
7107
7108 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
7109
7110 PR gdb/23095
7111 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
7112 prepare_for_testing. Set normal_bp to r_debug_state if target
7113 is bsd.
7114
7115 2018-04-21 Pedro Alves <palves@redhat.com>
7116 Rajendra SY <rajendra.sy@gmail.com>
7117
7118 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7119 * remote.c (extended_remote_attach): In all-stop mode, mark the
7120 thread as executing.
7121
7122 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7123
7124 * thread.c (thread_apply_all_command): Fix comment.
7125 (thread_command): Fix comment.
7126
7127 2018-04-10 Alan Hayward <alan.hayward@arm.com>
7128
7129 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7130 parameter.
7131 * features/aarch64-core.c (create_feature_aarch64_core):
7132 Regenerate.
7133 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7134 Likewise.
7135 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7136 Likewise.
7137 * features/i386/32bit-avx512.c
7138 (create_feature_i386_32bit_avx512): Likewise.
7139 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7140 Likewise.
7141 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7142 Likewise.
7143 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7144 Likewise.
7145 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7146 Likewise.
7147 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7148 Likewise.
7149 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7150 Likewise.
7151 * features/i386/64bit-avx512.c
7152 (create_feature_i386_64bit_avx512): Likewise.
7153 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7154 Likewise.
7155 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7156 Likewise.
7157 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7158 Likewise.
7159 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7160 Likewise.
7161 * features/i386/64bit-segments.c
7162 (create_feature_i386_64bit_segments): Likewise.
7163 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7164 Likewise.
7165 * features/i386/x32-core.c
7166 (create_feature_i386_x32_core): Likewise.
7167 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7168 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7169 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7170 * target-descriptions.c: In generated code, don't pass xml
7171 filename.
7172
7173 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7174
7175 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7176 (print_xml_feature::visit_post): Likewise.
7177 (print_xml_feature::visit): Likewise.
7178 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7179 (print_xml_feature): Add new class.
7180 * regformats/regdat.sh: Null xmltarget on feature targets.
7181 * target-descriptions.c (struct target_desc): Add xmltarget.
7182 (maintenance_check_tdesc_xml_convert): Add unittest function.
7183 (tdesc_get_features_xml): Add function to get xml.
7184 (maintenance_check_xml_descriptions): Test xml generation.
7185 * xml-tdesc.c (string_read_description_xml): Add function.
7186 * xml-tdesc.h (string_read_description_xml): Add declaration.
7187
7188 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7189
7190 * features/Makefile: Add feature marker to targets with new style
7191 target descriptions.
7192 * regformats/aarch64.dat: Regenerate.
7193 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7194 * regformats/i386/amd64-avx-linux.dat: Likewise.
7195 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7196 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7197 * regformats/i386/amd64-linux.dat: Likewise.
7198 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7199 * regformats/i386/amd64.dat: Likewise.
7200 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7201 * regformats/i386/i386-avx-linux.dat: Likewise.
7202 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7203 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7204 * regformats/i386/i386-linux.dat: Likewise.
7205 * regformats/i386/i386-mmx-linux.dat: Likewise.
7206 * regformats/i386/i386-mpx-linux.dat: Likewise.
7207 * regformats/i386/i386.dat: Likewise.
7208 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7209 * regformats/i386/x32-avx-linux.dat: Likewise.
7210 * regformats/i386/x32-linux.dat: Likewise.
7211 * regformats/tic6x-c62x-linux.dat: Likewise.
7212 * regformats/tic6x-c64x-linux.dat: Likewise.
7213 * regformats/tic6x-c64xp-linux.dat: Likewise.
7214 * regformats/regdat.sh: Parse feature marker.
7215
7216 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7217
7218 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7219 (tdesc_osabi_name): Likewise.
7220 * target-descriptions.c (tdesc_architecture_name): Add new
7221 function.
7222 (tdesc_osabi_name): Likewise.
7223
7224 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7225
7226 * common/tdesc.c (tdesc_predefined_type): Move to here.
7227 (tdesc_named_type): Likewise.
7228 (tdesc_create_vector): Likewise.
7229 (tdesc_create_struct): Likewise.
7230 (tdesc_set_struct_size): Likewise.
7231 (tdesc_create_union): Likewise.
7232 (tdesc_create_flags): Likewise.
7233 (tdesc_create_enum): Likewise.
7234 (tdesc_add_field): Likewise.
7235 (tdesc_add_typed_bitfield): Likewise.
7236 (tdesc_add_bitfield): Likewise.
7237 (tdesc_add_flag): Likewise.
7238 (tdesc_add_enum_value): Likewise.
7239 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7240 (struct tdesc_type_vector): Likewise.
7241 (struct tdesc_type_field): Likewise.
7242 (struct tdesc_type_with_fields): Likewise.
7243 (tdesc_create_enum): Add declaration.
7244 (tdesc_add_typed_bitfield): Likewise.
7245 (tdesc_add_enum_value): Likewise.
7246 * target-descriptions.c (tdesc_type_field): Move from here.
7247 (tdesc_type_builtin): Likewise.
7248 (tdesc_type_vector): Likewise.
7249 (tdesc_type_with_fields): Likewise.
7250 (tdesc_predefined_types): Likewise.
7251 (tdesc_named_type): Likewise.
7252 (tdesc_create_vector): Likewise.
7253 (tdesc_create_struct): Likewise.
7254 (tdesc_set_struct_size): Likewise.
7255 (tdesc_create_union): Likewise.
7256 (tdesc_create_flags): Likewise.
7257 (tdesc_create_enum): Likewise.
7258 (tdesc_add_field): Likewise.
7259 (tdesc_add_typed_bitfield): Likewise.
7260 (tdesc_add_bitfield): Likewise.
7261 (tdesc_add_flag): Likewise.
7262 (tdesc_add_enum_value): Likewise.
7263 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7264 (tdesc_add_typed_bitfield): Likewise.
7265 (tdesc_add_enum_value): Likewise.
7266
7267 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7268
7269 * common/tdesc.c (tdesc_feature::accept): Move to here.
7270 (tdesc_feature::operator==): Likewise.
7271 (tdesc_create_reg): Likewise.
7272 * common/tdesc.h (tdesc_type_kind): Likewise.
7273 (struct tdesc_type): Likewise.
7274 (struct tdesc_feature): Likewise.
7275 * regformats/regdat.sh: Create a feature.
7276 * target-descriptions.c (tdesc_type_kind): Move from here.
7277 (tdesc_type): Likewise.
7278 (tdesc_type_up): Likewise.
7279 (tdesc_feature): Likewise.
7280 (tdesc_create_reg): Likewise.
7281
7282 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7283
7284 * Makefile.in: Add arch/tdesc.c
7285 * common/tdesc.c: New file.
7286 * common/tdesc.h (tdesc_element_visitor): Move to here.
7287 (tdesc_element): Likewise.
7288 (tdesc_reg): Likewise.
7289 (tdesc_reg_up): Likewise.
7290 * regformats/regdef.h (reg): Add offset to constructors.
7291 * target-descriptions.c (tdesc_element_visitor): Move from here.
7292 (tdesc_element): Likewise.
7293 (tdesc_reg): Likewise.
7294 (tdesc_reg_up): Likewise.
7295
7296 2018-04-17 Tom Tromey <tom@tromey.com>
7297
7298 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7299 discriminant field.
7300
7301 2018-04-17 Tom Tromey <tom@tromey.com>
7302
7303 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7304
7305 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7306
7307 * symtab.c (print_symbol_info): Skip printing filename and line
7308 number when `last' is NULL.
7309 (symtab_symbol_info): Use empty string instead of NULL for first
7310 invocation of print_symbol_info.
7311 (rbreak_command): Pass NULL to `last' parameter of
7312 print_symbol_info.
7313
7314 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7315
7316 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7317 instead of nullptr.
7318
7319 2018-04-16 Pedro Alves <palves@redhat.com>
7320
7321 * MAINTAINERS (sh): Remove.
7322 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7323 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7324 (ALLDEPFILES): Remove sh64-tdep.c.
7325 * NEWS: Mentions that support for SH-5/SH64 is removed.
7326 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7327 (sh*-*-openbsd*): Ditto.
7328 (sh64-*-elf*): Remove.
7329 (sh*): Remove.
7330 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7331 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7332 * sh-tdep.c: No longer include "sh64-tdep.h".
7333 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7334 * sh64-tdep.c, sh64-tdep.h: Remove files.
7335
7336 2018-04-16 Pedro Alves <palves@redhat.com>
7337
7338 * MAINTAINERS: Remove m88k.
7339 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7340 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7341 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7342 * NEWS: Mention that support for m88k was removed.
7343 * configure.host (m88*-*-*): Remove support.
7344 * configure.nat (m88k-*-*): Remove support.
7345 * configure.tgt (m88*-*-openbsd*): Remove.
7346 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7347
7348 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7349
7350 * configure.tgt (x86_tobjs): New variable.
7351 (amd64_tobjs, i386_tobjs): Use it.
7352
7353 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7354
7355 * symtab.c (print_symbol_info): Precede the symbol definition by
7356 the line number when available.
7357 * NEWS: Advertise this enhancement.
7358
7359 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7360
7361 * NEWS (New options): announce set/show record btrace cpu.
7362 * btrace.c: Include record-btrace.h.
7363 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7364 the vendor is unknown.
7365 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7366 Maybe overwrite the btrace configuration's cpu.
7367 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7368 (btrace_fetch): Add cpu parameter. Update callers.
7369 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7370 Maybe overwrite the btrace configuration's cpu. Skip enabling
7371 errata workarounds if the vendor is unknown.
7372 * python/py-record-btrace.c: Include record-btrace.h.
7373 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7374 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7375 * record-btrace.c (record_btrace_cpu_state_kind): New.
7376 (record_btrace_cpu): New.
7377 (set_record_btrace_cpu_cmdlist): New.
7378 (record_btrace_get_cpu): New.
7379 (require_btrace_thread, record_btrace_info)
7380 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7381 (cmd_set_record_btrace_cpu_none): New.
7382 (cmd_set_record_btrace_cpu_auto): New.
7383 (cmd_set_record_btrace_cpu): New.
7384 (cmd_show_record_btrace_cpu): New.
7385 (_initialize_record_btrace): Initialize set/show record btrace cpu
7386 commands.
7387 * record-btrace.h (record_btrace_get_cpu): New.
7388
7389 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7390
7391 * record.c (set_record_command): Fix typo in message.
7392
7393 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7394
7395 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7396
7397 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7398
7399 * infrun.c (process_event_stop_test): Call
7400 gdbarch_in_indirect_branch_thunk.
7401 * gdbarch.sh (in_indirect_branch_thunk): New.
7402 * gdbarch.c: Regenerated.
7403 * gdbarch.h: Regenerated.
7404 * x86-tdep.h: New.
7405 * x86-tdep.c: New.
7406 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7407 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7408 (ALLDEPFILES): Add x86-tdep.c.
7409 * arch-utils.h (default_in_indirect_branch_thunk): New.
7410 * arch-utils.c (default_in_indirect_branch_thunk): New.
7411 * i386-tdep: Include x86-tdep.h.
7412 (i386_in_indirect_branch_thunk): New.
7413 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7414 function.
7415 * amd64-tdep: Include x86-tdep.h.
7416 (amd64_in_indirect_branch_thunk): New.
7417 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7418
7419 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7420
7421 PR gdb/23053
7422 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7423 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7424 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7425 regression.
7426
7427 2018-04-12 Tom Tromey <tom@tromey.com>
7428
7429 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7430 (rust_evaluate_subexp): Likewise.
7431
7432 2018-04-12 Pedro Alves <palves@redhat.com>
7433
7434 * procfs.c (procfs_detach): Make forward declaration's prototype
7435 match definition's protototype.
7436 (proc_get_LDT_entry): Remove stale do_cleanups call.
7437
7438 2018-04-12 Pedro Alves <palves@redhat.com>
7439
7440 * target.h (target_ops::to_has_exited): Delete.
7441 (target_has_exited): Delete.
7442 * target-delegates.c: Regenerate.
7443
7444 2018-04-11 Pedro Alves <palves@redhat.com>
7445
7446 * target.c (fileio_fh_t::t): Add comment.
7447 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7448 (target_fileio_close): Handle a NULL target.
7449 (invalidate_fileio_fh): New.
7450 (target_close): Call it.
7451 * remote.c (remote_hostio_send_command): No longer check whether
7452 remote_desc is open.
7453
7454 2018-04-11 Pedro Alves <palves@redhat.com>
7455
7456 * target.c (fileio_fh_t): Make it a named struct instead of a
7457 typedef.
7458 (fileio_fh_t::is_closed): New method.
7459 (DEF_VEC_O (fileio_fh_t)): Remove.
7460 (fileio_fhandles): Now a std::vector.
7461 (is_closed_fileio_fh): Delete.
7462 (acquire_fileio_fd): Adjust. Rename parameters.
7463 (release_fileio_fd): Adjust.
7464 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7465 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7466 (target_fileio_close): Adjust.
7467
7468 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7469
7470 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7471 index.
7472
7473 2018-04-10 Pedro Alves <palves@redhat.com>
7474
7475 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7476 (scoped_finish_thread_state): New class.
7477 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7478 cleanup.
7479 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7480 (fetch_inferior_event, normal_stop): Likewise.
7481 * thread.c (finish_thread_state_cleanup): Delete.
7482
7483 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7484 Pedro Alves <palves@redhat.com>
7485
7486 * value.c: Include "selftest.h" and "common/array-view.h".
7487 (struct range) <operator ==>: New.
7488 (test_ranges_contain): New.
7489 (check_ranges_vector): New.
7490 (test_insert_into_bit_range_vector): New.
7491 (_initialize_values): Register selftests.
7492 * common/array-view.h (operator==, operator!=): New.
7493
7494 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7495
7496 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7497 an iterator.
7498 * inline-frame.c: Include <algorithm>.
7499 (struct inline_state): Add constructor.
7500 (inline_state_s): Remove.
7501 (DEF_VEC_O(inline_state_s)): Remove.
7502 (inline_states): Change type to std::vector.
7503 (find_inline_frame_state): Adjust to std::vector.
7504 (allocate_inline_frame_state): Remove.
7505 (clear_inline_frame_state): Adjust to std::vector.
7506 (skip_inline_frames): Adjust to std::vector.
7507
7508 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7509
7510 * tracepoint.h (struct trace_state_variable): Add constructor.
7511 <name>: Change type to std::string.
7512 * tracepoint.c (tsv_s): Remove.
7513 (DEF_VEC_O(tsv_s)): Remove.
7514 (tvariables): Change to std::vector.
7515 (create_trace_state_variable): Adjust to std::vector.
7516 (find_trace_state_variable): Likewise.
7517 (find_trace_state_variable_by_number): Likewise.
7518 (delete_trace_state_variable): Likewise.
7519 (trace_variable_command): Adjust to std::string.
7520 (delete_trace_variable_command): Likewise.
7521 (tvariables_info_1): Adjust to std::vector.
7522 (save_trace_state_variables): Likewise.
7523 (start_tracing): Likewise.
7524 (merge_uploaded_trace_state_variables): Adjust to std::vector
7525 and std::string.
7526 * target.h (struct target_ops)
7527 <to_download_trace_state_variable>: Pass reference to
7528 trace_state_variable.
7529 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7530 * target-delegates.c: Re-generate.
7531 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7532 (mi_tsv_deleted): Likewise.
7533 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7534 * remote.c (remote_download_trace_state_variable): Change
7535 pointer to reference and adjust.
7536 * make-target-delegates (parse_argtypes): Handle references.
7537 (write_function_header): Likewise.
7538 (munge_type): Likewise.
7539
7540 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7543 string_view-selftests.c.
7544 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7545 testsuite.
7546 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7547 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7548 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7549 * unittests/basic_string_view/element_access/char/1.cc:
7550 Likewise.
7551 * unittests/basic_string_view/element_access/char/empty.cc:
7552 Likewise.
7553 * unittests/basic_string_view/element_access/char/front_back.cc:
7554 Likewise.
7555 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7556 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7557 Likewise.
7558 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7559 Likewise.
7560 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7561 Likewise.
7562 * unittests/basic_string_view/operations/compare/char/1.cc:
7563 Likewise.
7564 * unittests/basic_string_view/operations/compare/char/13650.cc:
7565 Likewise.
7566 * unittests/basic_string_view/operations/copy/char/1.cc:
7567 Likewise.
7568 * unittests/basic_string_view/operations/data/char/1.cc:
7569 Likewise.
7570 * unittests/basic_string_view/operations/find/char/1.cc:
7571 Likewise.
7572 * unittests/basic_string_view/operations/find/char/2.cc:
7573 Likewise.
7574 * unittests/basic_string_view/operations/find/char/3.cc:
7575 Likewise.
7576 * unittests/basic_string_view/operations/find/char/4.cc:
7577 Likewise.
7578 * unittests/basic_string_view/operations/rfind/char/1.cc:
7579 Likewise.
7580 * unittests/basic_string_view/operations/rfind/char/2.cc:
7581 Likewise.
7582 * unittests/basic_string_view/operations/rfind/char/3.cc:
7583 Likewise.
7584 * unittests/basic_string_view/operations/substr/char/1.cc:
7585 Likewise.
7586 * unittests/basic_string_view/operators/char/2.cc: Likewise.
7587 * unittests/string_view-selftests.c: New file.
7588
7589 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7590
7591 * unittests/basic_string_view/capacity/1.cc: New file.
7592 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
7593 * unittests/basic_string_view/cons/char/1.cc: New file.
7594 * unittests/basic_string_view/cons/char/2.cc: New file.
7595 * unittests/basic_string_view/cons/char/3.cc: New file.
7596 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
7597 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
7598 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
7599 * unittests/basic_string_view/element_access/char/1.cc: New file.
7600 * unittests/basic_string_view/element_access/char/2.cc: New file.
7601 * unittests/basic_string_view/element_access/char/empty.cc: New file.
7602 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
7603 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
7604 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
7605 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
7606 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
7607 * unittests/basic_string_view/include.cc: New file.
7608 * unittests/basic_string_view/inserters/char/1.cc: New file.
7609 * unittests/basic_string_view/inserters/char/2.cc: New file.
7610 * unittests/basic_string_view/inserters/char/3.cc: New file.
7611 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
7612 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
7613 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
7614 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
7615 * unittests/basic_string_view/literals/types.cc: New file.
7616 * unittests/basic_string_view/literals/values.cc: New file.
7617 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
7618 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
7619 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
7620 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
7621 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
7622 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
7623 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
7624 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
7625 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
7626 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
7627 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
7628 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
7629 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
7630 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
7631 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
7632 * unittests/basic_string_view/operations/data/char/1.cc: New file.
7633 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
7634 * unittests/basic_string_view/operations/find/char/1.cc: New file.
7635 * unittests/basic_string_view/operations/find/char/2.cc: New file.
7636 * unittests/basic_string_view/operations/find/char/3.cc: New file.
7637 * unittests/basic_string_view/operations/find/char/4.cc: New file.
7638 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
7639 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
7640 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
7641 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
7642 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
7643 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
7644 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
7645 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
7646 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
7647 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
7648 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
7649 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
7650 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
7651 * unittests/basic_string_view/operators/char/2.cc: New file.
7652 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
7653 * unittests/basic_string_view/range_access/char/1.cc: New file.
7654 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
7655 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
7656 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
7657 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
7658 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
7659 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
7660 * unittests/basic_string_view/requirements/typedefs.cc: New file.
7661 * unittests/basic_string_view/typedefs.cc: New file.
7662 * unittests/basic_string_view/types/1.cc: New file.
7663
7664 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7665
7666 * common/gdb_string_view.h: Remove libstdc++ implementation
7667 details, adjust to gdb reality.
7668 * common/gdb_string_view.tcc: Likewise.
7669 * cli/cli-script.c (struct string_view): Remove.
7670 (user_args) <m_args>: Change element type to gdb::string_view.
7671 (user_args::insert_args): Adjust.
7672
7673 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7674
7675 * common/gdb_string_view.h: New file.
7676 * common/gdb_string_view.tcc: New file.
7677
7678 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7679
7680 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
7681 * configure: Re-generate.
7682
7683 2018-04-09 Pedro Alves <palves@redhat.com>
7684
7685 * gdbarch.sh: Include "observable.h" instead of "observer.h".
7686 (set_target_gdbarch): Call
7687 gdb::observers::architecture_changed.notify instead of
7688 observer_notify_architecture_changed.
7689
7690 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7691
7692 * tracepoint.c (struct current_traceframe_cleanup): Remove.
7693 (do_restore_current_traceframe_cleanup): Remove.
7694 (restore_current_traceframe_cleanup_dtor): Remove.
7695 (make_cleanup_restore_current_traceframe): Remove.
7696 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
7697 New.
7698 * tracepoint.h (struct scoped_restore_current_traceframe): New.
7699 * infrun.c (fetch_inferior_event): Use
7700 scoped_restore_current_traceframe.
7701
7702 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7703
7704 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
7705 Remove.
7706 <n_allocated_type_units>: Remove.
7707 <all_type_units>: Change to std::vector.
7708 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7709 to std::vector change.
7710 (dwarf2_per_objfile::get_cutu): Likewise.
7711 (dwarf2_per_objfile::get_tu): Likewise.
7712 (create_signatured_type_table_from_index): Likewise.
7713 (create_signatured_type_table_from_debug_names): Likewise.
7714 (dw2_symtab_iter_next): Likewise.
7715 (dw2_print_stats): Likewise.
7716 (dw2_expand_all_symtabs): Likewise.
7717 (dw2_expand_marked_cus): Likewise.
7718 (dw2_debug_names_iterator::next): Likewise.
7719 (dwarf2_initialize_objfile): Likewise.
7720 (add_signatured_type_cu_to_table): Likewise.
7721 (create_all_type_units): Likewise.
7722 (add_type_unit): Likewise.
7723 (struct tu_abbrev_offset): Add constructor.
7724 (build_type_psymtabs_1): Adjust to std::vector change.
7725 (print_tu_stats): Likewise.
7726 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7727 (write_debug_names): Likewise.
7728
7729 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7730
7731 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
7732 Make an std::vector.
7733 <n_comp_units>: Remove.
7734 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7735 to std::vector change.
7736 (dwarf2_per_objfile::get_cutu): Likewise.
7737 (dwarf2_per_objfile::get_cu): Likewise.
7738 (create_cus_from_index): Likewise.
7739 (create_addrmap_from_index): Likewise.
7740 (create_addrmap_from_aranges): Likewise.
7741 (dwarf2_read_index): Likewise.
7742 (dw2_find_last_source_symtab): Likewise.
7743 (dw2_map_symtabs_matching_filename): Likewise.
7744 (dw2_symtab_iter_next): Likewise.
7745 (dw2_print_stats): Likewise.
7746 (dw2_expand_all_symtabs): Likewise.
7747 (dw2_expand_symtabs_with_fullname): Likewise.
7748 (dw2_expand_marked_cus): Likewise.
7749 (dw2_map_symbol_filenames): Likewise.
7750 (create_cus_from_debug_names): Likewise.
7751 (dwarf2_read_debug_names): Likewise.
7752 (dw2_debug_names_iterator::next): Likewise.
7753 (dwarf2_initialize_objfile): Likewise.
7754 (set_partial_user): Likewise.
7755 (dwarf2_build_psymtabs_hard): Likewise.
7756 (read_comp_units_from_section): Remove arguments, adjust to
7757 std::vector change.
7758 (create_all_comp_units): Adjust to std::vector and
7759 read_comp_units_from_section changes.
7760 (dwarf2_find_containing_comp_unit): Adjust to std::vector
7761 change.
7762 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7763 (psyms_seen_size): Likewise.
7764 (write_gdbindex): Likewise.
7765 (write_debug_names): Likewise.
7766
7767 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7768
7769 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
7770 with dwarf2_per_objfile.
7771 (create_cus_from_index): Likewise.
7772 (create_signatured_type_table_from_index): Likewise.
7773 (dwarf2_read_index): Likewise.
7774 (dwarf2_initialize_objfile): Likewise.
7775 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
7776 per_cu rather than get_dwarf2_per_objfile.
7777
7778 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7779
7780 * dwarf2read.h (struct signatured_type): Forward declare.
7781 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
7782 New methods.
7783 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
7784 (dw2_get_cutu): ...this.
7785 (dwarf2_per_objfile::get_cu): Rename from...
7786 (dw2_get_cu): ...this.
7787 (dwarf2_per_objfile::get_tu): New.
7788 (create_addrmap_from_index): Adjust.
7789 (create_addrmap_from_aranges): Adjust.
7790 (dw2_find_last_source_symtab): Adjust.
7791 (dw2_map_symtabs_matching_filename): Adjust.
7792 (dw2_symtab_iter_next): Adjust.
7793 (dw2_print_stats): Adjust.
7794 (dw2_expand_all_symtabs): Adjust.
7795 (dw2_expand_symtabs_with_fullname): Adjust.
7796 (dw2_expand_marked_cus): Adjust.
7797 (dw_expand_symtabs_matching_file_matcher): Adjust.
7798 (dw2_map_symbol_filenames): Adjust.
7799 (dw2_debug_names_iterator::next): Adjust.
7800 (dwarf2_initialize_objfile): Adjust.
7801 (set_partial_user): Adjust.
7802 (dwarf2_build_psymtabs_hard): Adjust.
7803
7804 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7805
7806 * dwarf2read.c (create_signatured_type_table_from_debug_names):
7807 Remove unused variables.
7808 (dw2_map_symtabs_matching_filename): Likewise.
7809 (dwarf2_record_block_ranges): Likewise.
7810 (dwarf2_read_addr_index): Likewise.
7811 (follow_die_offset): Likewise.
7812
7813 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7814
7815 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
7816 to symbol_file_add_main.
7817
7818 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7819
7820 PR mi/22299
7821 * mi/mi-console.c (do_fputc_async_safe): New.
7822 (mi_console_file::write_async_safe): New.
7823 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
7824 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
7825 New.
7826 * ui-file.c (ui_file::putstrn): Adjust call to
7827 fputstrn_unfiltered.
7828 * utils.c (printchar): Replace do_fputs and do_fprintf
7829 parameters by do_fputc.
7830 (fputstr_filtered): Adjust call to printchar.
7831 (fputstr_unfiltered): Likewise.
7832 (fputstrn_filtered): Likewise.
7833 (fputstrn_unfiltered): Add do_fputc parameter, pass to
7834 printchar.
7835 * utils.h (do_fputc_ftype): New typedef.
7836 (fputstrn_unfiltered): Add do_fputc parameter.
7837
7838 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * regformats/i386/i386-avx.dat: Remove.
7841
7842 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7843
7844 PR gdb/22979
7845 * amd64-tdep.c (amd64_none_init_abi): New function.
7846 (amd64_x32_none_init_abi): New function.
7847 (_initialize_amd64_tdep): Register handlers for x86-64 and
7848 x64_32 with GDB_OSABI_NONE.
7849 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
7850 GDB_OSABI_NONE osabi.
7851
7852 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7853
7854 PR gdb/22980
7855 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
7856 GDB_OSABI_NONE.
7857 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
7858 * osabi.c (gdb_osabi_names): Add "unknown" entry.
7859
7860 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7861
7862 * common/byte-vector.h (char_vector): New type.
7863 * target.h (target_read_alloc): Return
7864 gdb::optional<byte_vector>.
7865 (target_read_stralloc): Return gdb::optional<char_vector>.
7866 (target_get_osdata): Return gdb::optional<char_vector>.
7867 * target.c (target_read_alloc_1): Templatize. Replacement
7868 manual memory management with vector.
7869 (target_read_alloc): Change return type, adjust.
7870 (target_read_stralloc): Change return type, adjust.
7871 (target_get_osdata): Change return type, adjust.
7872 * auxv.c (struct auxv_info) <length>: Remove.
7873 <data>: Change type to gdb::optional<byte_vector>.
7874 (auxv_inferior_data_cleanup): Free auxv_info with delete.
7875 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
7876 (target_auxv_search): Adjust.
7877 (fprint_target_auxv): Adjust.
7878 * avr-tdep.c (avr_io_reg_read_command): Adjust.
7879 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
7880 (linux_make_corefile_notes): Adjust.
7881 * osdata.c (get_osdata): Adjust.
7882 * remote.c (remote_get_threads_with_qxfer): Adjust.
7883 (remote_memory_map): Adjust.
7884 (remote_traceframe_info): Adjust.
7885 (btrace_read_config): Adjust.
7886 (remote_read_btrace): Adjust.
7887 (remote_pid_to_exec_file): Adjust.
7888 * solib-aix.c (solib_aix_get_library_list): Adjust.
7889 * solib-dsbt.c (decode_loadmap): Don't free buf.
7890 (dsbt_get_initial_loadmaps): Adjust.
7891 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
7892 * solib-target.c (solib_target_current_sos): Adjust.
7893 * tracepoint.c (sdata_make_value): Adjust.
7894 * xml-support.c (xinclude_start_include): Adjust.
7895 (xml_fetch_content_from_file): Adjust.
7896 * xml-support.h (xml_fetch_another): Change return type.
7897 (xml_fetch_content_from_file): Change return type.
7898 * xml-syscall.c (xml_init_syscalls_info): Adjust.
7899 * xml-tdesc.c (file_read_description_xml): Adjust.
7900 (fetch_available_features_from_target): Change return type.
7901 (target_fetch_description_xml): Adjust.
7902 (target_read_description_xml): Adjust.
7903
7904 2018-04-06 Tom Tromey <tom@tromey.com>
7905
7906 * value.c (~value): Update.
7907 (struct value) <contents>: Now unique_xmalloc_ptr.
7908 (value_contents_bits_eq, allocate_value_contents)
7909 (value_contents_raw, value_contents_all_raw)
7910 (value_contents_for_printing, value_contents_for_printing_const)
7911 (set_value_enclosing_type): Update.
7912
7913 2018-04-06 Tom Tromey <tom@tromey.com>
7914
7915 * value.c (range_s): Remove typedef, VEC.
7916 (struct range): Add operator<.
7917 (range_lessthan): Remove.
7918 (ranges_contain): Change type.
7919 (~value): Update.
7920 (struct value) <unavailable, optimized_out>: Now std::vector.
7921 (value_entirely_available)
7922 (value_entirely_covered_by_range_vector)
7923 (value_entirely_unavailable, value_entirely_optimized_out):
7924 Update.
7925 (insert_into_bit_range_vector): Change argument type.
7926 (find_first_range_overlap): Likewise.
7927 (struct ranges_and_idx, value_contents_bits_eq)
7928 (require_not_optimized_out, require_available): Update.
7929 (ranges_copy_adjusted): Change argument types.
7930 (value_optimized_out, value_copy, value_fetch_lazy): Update.
7931
7932 2018-04-06 Tom Tromey <tom@tromey.com>
7933
7934 * value.c (~value): Update.
7935 (struct value) <parent>: Now a value_ref_ptr.
7936 (value_parent, set_value_parent, value_address, value_copy):
7937 Update.
7938
7939 2018-04-06 Tom Tromey <tom@tromey.com>
7940
7941 * value.c (struct value): Add constructor, destructor, and member
7942 initializers.
7943 (allocate_value_lazy, value_decref): Update.
7944
7945 2018-04-06 Tom Tromey <tom@tromey.com>
7946
7947 * value.c (struct value) <released, next>: Remove.
7948 (all_values): Now a std::vector.
7949 (allocate_value_lazy): Update.
7950 (value_next): Remove.
7951 (value_mark, value_free_to_mark, release_value)
7952 (value_release_to_mark): Update.
7953
7954 2018-04-06 Tom Tromey <tom@tromey.com>
7955
7956 * value.h (fetch_subexp_value, value_release_to_mark): Update.
7957 (free_value_chain): Remove.
7958 * value.c (free_value_chain): Remove.
7959 (value_release_to_mark): Return a std::vector.
7960 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
7961 std::vector.
7962 (check_condition): Update.
7963 * eval.c (fetch_subexp_value): Change "val_chain" to a
7964 std::vector.
7965 * breakpoint.c (update_watchpoint): Update.
7966 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
7967
7968 2018-04-06 Tom Tromey <tom@tromey.com>
7969
7970 * value.h (free_all_values): Remove.
7971 * value.c (free_all_values): Remove.
7972
7973 2018-04-06 Tom Tromey <tom@tromey.com>
7974
7975 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
7976 (value_history_chain, value_history_count): Remove.
7977 (value_history): New global.
7978 (record_latest_value, access_value_history, show_values)
7979 (preserve_values): Update.
7980
7981 2018-04-06 Tom Tromey <tom@tromey.com>
7982
7983 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
7984 * varobj.c (varobj_set_display_format, varobj_set_value)
7985 (install_default_visualizer, construct_visualizer)
7986 (install_new_value, ~varobj, varobj_get_value_type)
7987 (my_value_of_variable, varobj_editable_p): Update.
7988 * c-varobj.c (c_describe_child, c_value_of_variable)
7989 (cplus_number_of_children, cplus_describe_child): Update.
7990 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
7991 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
7992 (ada_value_of_variable, ada_value_is_changeable_p): Update.
7993
7994 2018-04-06 Tom Tromey <tom@tromey.com>
7995
7996 * printcmd.c (last_examine_address): Change type to
7997 value_ref_ptr.
7998 (do_examine, x_command): Update.
7999
8000 2018-04-06 Tom Tromey <tom@tromey.com>
8001
8002 * value.c (release_value): Update.
8003 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8004 (struct bpstats) <val>: Now a value_ref_ptr.
8005 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8006 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8007 (~watchpoint, print_it_watchpoint, watch_command_1)
8008 (invalidate_bp_value_on_memory_change): Update.
8009
8010 2018-04-06 Tom Tromey <tom@tromey.com>
8011
8012 * varobj.c (varobj_clear_saved_item)
8013 (update_dynamic_varobj_children, install_new_value, ~varobj):
8014 Update.
8015 * value.h (value_incref): Move declaration earlier.
8016 (value_decref): Rename from value_free.
8017 (struct value_ref_policy): New.
8018 (value_ref_ptr): New typedef.
8019 (struct value_deleter): Remove.
8020 (gdb_value_up): Remove typedef.
8021 (release_value): Change return type.
8022 (release_value_or_incref): Remove.
8023 * value.c (set_value_parent): Update.
8024 (value_incref): Change return type.
8025 (value_decref): Rename from value_free.
8026 (value_free_to_mark, free_all_values, free_value_chain): Update.
8027 (release_value): Return value_ref_ptr.
8028 (release_value_or_incref): Remove.
8029 (record_latest_value, set_internalvar, clear_internalvar):
8030 Update.
8031 * stack.c (info_frame_command): Don't call value_free.
8032 * python/py-value.c (valpy_dealloc, valpy_new)
8033 (value_to_value_object): Update.
8034 * printcmd.c (do_examine): Update.
8035 * opencl-lang.c (lval_func_free_closure): Update.
8036 * mi/mi-main.c (register_changed_p): Don't call value_free.
8037 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
8038 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
8039 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
8040 value_free.
8041 * guile/scm-value.c (vlscm_free_value_smob)
8042 (vlscm_scm_from_value): Update.
8043 * frame.c (frame_register_unwind, frame_unwind_register_signed)
8044 (frame_unwind_register_unsigned, get_frame_register_bytes)
8045 (put_frame_register_bytes): Don't call value_free.
8046 * findvar.c (address_from_register): Don't call value_free.
8047 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
8048 * dwarf2loc.c (entry_data_value_free_closure)
8049 (value_of_dwarf_reg_entry, free_pieced_value_closure)
8050 (dwarf2_evaluate_loc_desc_full): Update.
8051 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8052 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8053 (~watchpoint, watch_command_1)
8054 (invalidate_bp_value_on_memory_change): Update.
8055 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
8056
8057 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
8058
8059 PR gdb/23022
8060 * warning.m4: Add -Wno-error=deprecated-register.
8061 * configure: Re-generate.
8062
8063 2018-04-05 Tom Tromey <tom@tromey.com>
8064
8065 * linespec.h: Remove include of "vec.h".
8066
8067 2018-04-05 Tom Tromey <tom@tromey.com>
8068
8069 * linespec.c (typep): Remove typedef.
8070 (find_methods, find_superclass_methods): Take a std::vector.
8071 (find_method): Use std::vector.
8072
8073 2018-04-05 Tom Tromey <tom@tromey.com>
8074
8075 * utils.c (compare_strings): Remove.
8076 * utils.h (compare_strings): Remove.
8077 * objc-lang.h (find_imps): Update.
8078 * objc-lang.c (find_methods): Take a std::vector.
8079 (uniquify_strings, find_imps): Likewise.
8080 * linespec.c (find_methods): Take a std::vector.
8081 (decode_objc): Use std::vector.
8082 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
8083 a std::vector.
8084 (find_method, find_function_symbols): Use std::vector.
8085
8086 2018-04-05 Tom Tromey <tom@tromey.com>
8087
8088 * completer.c (completion_tracker::completion_tracker): Remove
8089 cast.
8090 (completion_tracker::discard_completions): Likewise.
8091 * breakpoint.c (ambiguous_names_p): Remove cast.
8092 * ada-lang.c (_initialize_ada_language): Remove cast.
8093 * utils.h (streq): Update.
8094 (streq_hash): Add new declaration.
8095 * utils.c (streq): Return bool.
8096 (streq_hash): New function.
8097
8098 2018-04-05 Tom Tromey <tom@tromey.com>
8099
8100 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
8101 Remove a string copy.
8102
8103 2018-04-05 Tom Tromey <tom@tromey.com>
8104
8105 * linespec.c (filter_results): Use std::vector.
8106 (decode_line_2, decode_line_full): Update.
8107
8108 2018-04-05 Tom Tromey <tom@tromey.com>
8109
8110 * linespec.c (canonical_to_fullform): Return std::string.
8111 (filter_results): Update.
8112 (struct decode_line_2_item): Add constructor.
8113 <fullform, displayform>: Now std::string.
8114 (decode_line_2_compare_items): Now a std::sort comparator.
8115 (decode_line_2): Update.
8116
8117 2018-04-05 Tom Tromey <tom@tromey.com>
8118
8119 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8120 (unexpected_linespec_error): Update.
8121 (linespec_parse_basic, parse_linespec): Update.
8122
8123 2018-04-05 Tom Tromey <tom@tromey.com>
8124
8125 * linespec.c (linespec_parse_basic): Reindent.
8126
8127 2018-04-05 Tom Tromey <tom@tromey.com>
8128
8129 * minsyms.h (iterate_over_minimal_symbols): Update.
8130 * minsyms.c (iterate_over_minimal_symbols): Take a
8131 gdb::function_view.
8132 * linespec.c (struct collect_minsyms): Remove.
8133 (compare_msyms): Now a std::sort comparator.
8134 (add_minsym): Add parameters.
8135 (search_minsyms_for_name): Update. Use std::vector.
8136
8137 2018-04-03 Tom Tromey <tom@tromey.com>
8138
8139 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8140 gdb::byte_vector.
8141
8142 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
8143
8144 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8145
8146 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
8147
8148 PR gdb/16959
8149 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8150 printing static type.
8151
8152 2018-04-01 Tom Tromey <tom@tromey.com>
8153
8154 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8155 (rs6000_xfer_shared_libraries): Update.
8156
8157 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8158
8159 * common/gdb_vecs.h (char_ptr): Remove.
8160 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8161
8162 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8163
8164 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8165 with std::vector.
8166 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8167
8168 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8169
8170 * tracepoint.h (struct uploaded_tp): Initialize fields.
8171 <actions, step_actions, cmd_strings>: Change type to
8172 std::vector<char *>.
8173 * tracepoint.c (get_uploaded_tp): Allocate with new.
8174 (free_uploaded_tps): Free with delete.
8175 (parse_tracepoint_definition): Adjust to std::vector change.
8176 * breakpoint.c (read_uploaded_action): Likewise.
8177 (create_tracepoint_from_upload): Likewise.
8178 * ctf.c (ctf_write_uploaded_tp): Likewise.
8179 (SET_ARRAY_FIELD): Likewise.
8180 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8181
8182 2018-03-30 Tom Tromey <tom@tromey.com>
8183
8184 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8185 std::unique_ptr.
8186 (svr4_keep_data_in_core): Update.
8187 (svr4_read_so_list): Update.
8188
8189 2018-03-30 Tom Tromey <tom@tromey.com>
8190
8191 * windows-nat.c (handle_output_debug_string, handle_exception):
8192 Update.
8193 * target.h (target_read_string): Update.
8194 * target.c (target_read_string): Change "string" to
8195 unique_xmalloc_ptr.
8196 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8197 Update.
8198 * solib-frv.c (frv_current_sos): Update.
8199 * solib-dsbt.c (dsbt_current_sos): Update.
8200 * solib-darwin.c (darwin_current_sos): Update.
8201 * linux-thread-db.c (inferior_has_bug): Update.
8202 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8203 Update. Remove alloca.
8204 * ada-lang.c (ada_main_name): Update.
8205
8206 2018-03-30 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8209 (struct dwo_file_deleter): New.
8210 (dwo_file_up): New typedef.
8211 (open_and_init_dwo_file): Use dwo_file_up.
8212 (free_dwo_file_cleanup): Remove.
8213
8214 2018-03-30 Tom Tromey <tom@tromey.com>
8215
8216 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8217 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8218
8219 2018-03-30 Tom Tromey <tom@tromey.com>
8220
8221 * dwarf2read.c (class free_cached_comp_units): New class.
8222 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8223 (free_cached_comp_units): Remove function.
8224
8225 2018-03-30 Tom Tromey <tom@tromey.com>
8226
8227 * utils.h (make_cleanup_unpush_target): Remove.
8228 * inf-ptrace.c (struct target_unpusher): New.
8229 (target_unpush_up) New typedef.
8230 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8231 target_unpush_up.
8232 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8233
8234 2018-03-27 Tom Tromey <tom@tromey.com>
8235
8236 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8237
8238 2018-03-27 Pedro Alves <palves@redhat.com>
8239 Tom Tromey <tom@tromey.com>
8240
8241 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8242 destructor. Now a class.
8243 (gdb_readline_wrapper_cleanup): Remove function.
8244 (gdb_readline_wrapper): Remove cleanups.
8245
8246 2018-03-27 Tom Tromey <tom@tromey.com>
8247
8248 * typeprint.h (struct type_print_options) <local_typedefs,
8249 global_typedefs>: Remove "struct" keyword.
8250 (class typedef_hash_table): New class.
8251 (recursively_update_typedef_hash, add_template_parameters)
8252 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8253 (find_typedef_in_hash): Don't declare.
8254 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8255 (typedef_hash_table::recursively_update): Rename from
8256 recursively_update_typedef_hash. Now a member.
8257 (typedef_hash_table::add_template_parameters): Rename from
8258 add_template_parameters. Now a member.
8259 (typedef_hash_table::typedef_hash_table): Now a constructor;
8260 rename from create_typedef_hash.
8261 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8262 rename from free_typedef_hash.
8263 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8264 (do_free_global_table): Remove.
8265 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8266 from copy_type_recursive.
8267 (create_global_typedef_table): Remove.
8268 (typedef_hash_table::find_global_typedef): Now a member of
8269 typedef_hash_table.
8270 (typedef_hash_table::find_typedef): Rename from
8271 find_typedef_in_hash; now a member.
8272 (whatis_exp): Update.
8273 * extension.h (struct ext_lang_type_printers): Add constructor and
8274 destructor.
8275 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8276 declare.
8277 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8278 Now a constructor; rename from start_ext_lang_type_printers.
8279 (ext_lang_type_printers): Now a destructor; rename from
8280 free_ext_lang_type_printers.
8281 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8282 Update.
8283 (c_type_print_base_struct_union): Update. Remove cleanups.
8284
8285 2018-03-27 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf-index-write.c: Include <cmath>.
8288
8289 2018-03-27 Joel Brobecker <brobecker@adacore.com>
8290
8291 * NEWS: Add entry describing new "set|show varsize-limit" command.
8292 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8293 command.
8294 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8295 "set variable".
8296
8297 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8298
8299 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8300 dwarf-index-write.c
8301 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8302 * dwarf-index-common.c: New file.
8303 * dwarf-index-common.h: New file.
8304 * dwarf-index-write.c: New file.
8305 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8306 (struct dwarf2_section_info): Move from here.
8307 (dwarf2_section_info_def): Likewise.
8308 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8309 (offset_type): Likewise.
8310 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8311 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8312 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8313 (byte_swap): Likewise.
8314 (MAYBE_SWAP): Likewise.
8315 (dwarf2_per_cu_ptr): Likewise.
8316 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8317 (struct tu_stats): Likewise.
8318 (struct dwarf2_per_objfile): Likewise.
8319 (struct dwarf2_per_cu_data): Likewise.
8320 (struct signatured_type): Likewise.
8321 (sig_type_ptr): Likewise.
8322 (DEF_VEC_P (sig_type_ptr)): Likewise.
8323 (INDEX4_SUFFIX): Likewise.
8324 (INDEX5_SUFFIX): Likewise.
8325 (DEBUG_STR_SUFFIX): Likewise.
8326 (dwarf2_read_section): Make non-static.
8327 (mapped_index_string_hash): Move from here.
8328 (dwarf5_djb_hash): Likewise.
8329 (file_write): Likewise.
8330 (class data_buf): Likewise.
8331 (struct symtab_index_entry): Likewise.
8332 (struct mapped_symtab): Likewise.
8333 (find_slot): Likewise.
8334 (hash_expand): Likewise.
8335 (add_index_entry): Likewise.
8336 (uniquify_cu_indices): Likewise.
8337 (class c_str_view): Likewise.
8338 (class c_str_view_hasher): Likewise.
8339 (class vector_hasher): Likewise.
8340 (write_hash_table): Likewise.
8341 (psym_index_map): Likewise.
8342 (struct addrmap_index_data): Likewise.
8343 (add_address_entry): Likewise.
8344 (add_address_entry_worker): Likewise.
8345 (write_address_map): Likewise.
8346 (symbol_kind): Likewise.
8347 (write_psymbols): Likewise.
8348 (struct signatured_type_index_data): Likewise.
8349 (write_one_signatured_type): Likewise.
8350 (recursively_count_psymbols): Likewise.
8351 (recursively_write_psymbols): Likewise.
8352 (class debug_names): Likewise.
8353 (check_dwarf64_offsets): Likewise.
8354 (psyms_seen_size): Likewise.
8355 (write_gdbindex): Likewise.
8356 (write_debug_names): Likewise.
8357 (assert_file_size): Likewise.
8358 (write_psymtabs_to_index): Likewise.
8359 (save_gdb_index_command): Likewise.
8360 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8361 command.
8362 * dwarf2read.h: New file.
8363
8364 2018-03-27 Joel Brobecker <brobecker@adacore.com>
8365
8366 PR gdb/22670
8367 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8368 symbol name if the CU's language stores symbol names in linkage
8369 format.
8370 * language.h (struct language_defn)
8371 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8372 all instances of this struct.
8373
8374 2018-03-26 Tom Tromey <tom@tromey.com>
8375
8376 * stack.c (backtrace_command_1): Remove verbose code.
8377
8378 2018-03-26 Tom Tromey <tom@tromey.com>
8379
8380 * python/py-framefilter.c (py_print_type): Don't catch
8381 exceptions. Return void.
8382 (py_print_value): Likewise.
8383 (py_print_single_arg): Likewise.
8384 (enumerate_args): Don't catch exceptions.
8385 (py_print_args): Likewise.
8386 (py_print_frame): Likewise.
8387 (gdbpy_apply_frame_filter): Catch exceptions here.
8388
8389 2018-03-26 Tom Tromey <tom@tromey.com>
8390
8391 * stack.c (_initialize_stack): Remove trailing newlines from help
8392 text. Add "Usage" line to "backtrace" help.
8393
8394 2018-03-26 Tom Tromey <tom@tromey.com>
8395
8396 PR python/16486:
8397 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8398
8399 2018-03-26 Tom Tromey <tom@tromey.com>
8400
8401 * python/py-framefilter.c (py_print_single_arg): Return
8402 EXT_LANG_BT_ERROR from catch.
8403
8404 2018-03-26 Tom Tromey <tom@tromey.com>
8405
8406 PR backtrace/15584:
8407 * stack.c (backtrace_command_1): Move some code into no-filters
8408 "if".
8409
8410 2018-03-26 Tom Tromey <tom@tromey.com>
8411
8412 * python/py-framefilter.c (throw_quit_or_print_exception): New
8413 function.
8414 (gdbpy_apply_frame_filter): Use it.
8415
8416 2018-03-26 Tom Tromey <tom@tromey.com>
8417
8418 PR cli/17716:
8419 * python/py-framefilter.c (py_print_type, py_print_value)
8420 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8421 RETURN_MASK_ERROR.
8422
8423 2018-03-26 Tom Tromey <tom@tromey.com>
8424
8425 * python/py-framefilter.c (enumerate_args): Use
8426 gdb::unique_xmalloc_ptr.
8427
8428 2018-03-26 Tom Tromey <tom@tromey.com>
8429
8430 * python/py-framefilter.c (py_print_frame): Return
8431 EXT_LANG_BT_OK.
8432 (gdbpy_apply_frame_filter): Update comment.
8433 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8434 Remove.
8435 <EXT_LANG_BT_NO_FILTERS>: Change value.
8436
8437 2018-03-26 Tom Tromey <tom@tromey.com>
8438
8439 PR backtrace/15582:
8440 * stack.c (backtrace_command): Parse "hide" argument.
8441 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8442 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8443 constant.
8444
8445 2018-03-26 Tom Tromey <tom@tromey.com>
8446
8447 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8448 add "flags".
8449 (backtrace_command): Remove "fulltrace", add "flags".
8450
8451 2018-03-26 Tom Tromey <tom@tromey.com>
8452
8453 * stack.c (backtrace_command): Rewrite command line parsing.
8454
8455 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8456
8457 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8458
8459 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8460
8461 * filename-seen-cache.h: Add include guard.
8462
8463 2018-03-26 Keith Seitz <keiths@redhat.com>
8464
8465 * symfile.c (place_section): Remove "struct" from section_addr_info
8466 in comment.
8467 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8468 "struct" keyword from section_addr_info.
8469
8470 2018-03-26 Alan Hayward <alan.hayward@arm.com>
8471
8472 * regformats/regdef.h (reg): Add constructors.
8473
8474 2018-03-25 Pedro Alves <palves@redhat.com>
8475
8476 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8477 if then/else bodies in var_func_name extraction.
8478
8479 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
8480
8481 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8482 lookup_minimal_symbol() to find symbol entry.
8483 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8484
8485 2018-03-23 Keith Seitz <keiths@redhat.com>
8486
8487 PR c++/22968
8488 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8489 nested type definitions for C++, too.
8490
8491 2018-03-23 Tom Tromey <tom@tromey.com>
8492
8493 * machoread.c (struct oso_el): Add a constructor. Don't define as
8494 a typedef.
8495 (macho_register_oso): Remove.
8496 (macho_symtab_read): Take a std::vector.
8497 (oso_el_compare_name): Now a std::sort comparator.
8498 (macho_symfile_read_all_oso): Take a std::vector.
8499 (macho_symfile_read): Use std::vector. Remove cleanups.
8500
8501 2018-03-22 Tom Tromey <tom@tromey.com>
8502
8503 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8504 (record_full_goto_bookmark): Use std::string.
8505
8506 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8507
8508 PR tdep/18295
8509 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8510 a single mask.
8511
8512 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8513
8514 * rs6000-tdep.c (store_insn_p): New function.
8515 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8516 and cr_reg to their unshifted values. Use store_insn_p to
8517 match LR saves using either R1 or fdata->alloca_reg. Use
8518 store_insn_p to match CR saves. Set alloca_reg_offset
8519 when alloca_reg and framep are set. Remove lr_reg shift
8520 when assigning to fdata->lr_register.
8521
8522 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8523
8524 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8525 command line args instead of emitting a warning.
8526
8527 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8528
8529 * tracepoint.h (struct static_tracepoint_marker): Initialize
8530 fields, define default constructor, move constructor and move
8531 assignment, disable the rest.
8532 <str_id, extra>: Make std::string.
8533 (release_static_tracepoint_marker): Remove.
8534 (free_current_marker): Remove.
8535 * tracepoint.c (free_current_marker): Remove.
8536 (parse_static_tracepoint_marker_definition): Adjust to
8537 std::string, use new hex2str overload.
8538 (release_static_tracepoint_marker): Remove.
8539 (print_one_static_tracepoint_marker): Get marker by reference
8540 and adjust to std::string.
8541 (info_static_tracepoint_markers_command): Adjust to std::vector
8542 changes
8543 * target.h (static_tracepoint_marker_p): Remove typedef.
8544 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8545 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8546 bool.
8547 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8548 * target-debug.h
8549 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8550 (target_debug_print_std_vector_static_tracepoint_marker): New.
8551 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8552 to...
8553 (target_debug_print_static_tracepoint_marker_p): ... this.
8554 * target-delegates.c: Re-generate.
8555 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8556 Make std::string.
8557 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8558 (decode_static_tracepoint_spec): Adjust to std::vector.
8559 (tracepoint_print_one_detail): Adjust to std::string.
8560 (strace_marker_decode_location): Adjust to std::string.
8561 (update_static_tracepoint): Adjust to std::string, remove call
8562 to release_static_tracepoint_marker.
8563 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8564 Adjust to std::vector.
8565 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8566 (remote_static_tracepoint_markers_by_strid): Adjust to
8567 std::vector.
8568 * common/rsp-low.h (hex2str): New overload with explicit count
8569 of bytes.
8570 * common/rsp-low.c (hex2str): New overload with explicit count
8571 of bytes.
8572 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8573 (_initialize_rsp_low_selftests): Add test_hex2str test.
8574 * unittests/tracepoint-selftests.c
8575 (test_parse_static_tracepoint_marker_definition): Adjust to
8576 std::string.
8577
8578 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8579
8580 * tracepoint.c (parse_static_tracepoint_marker_definition):
8581 Consider case where the definition is followed by more
8582 definitions.
8583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8584 tracepoint-selftests.c.
8585 * unittests/tracepoint-selftests.c: New.
8586
8587 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8588
8589 * MAINTAINERS (Write After Approval): Add Pedro Franco de
8590 Carvalho.
8591
8592 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8593
8594 * symtab.c (find_pc_sect_line): fixed indentation.
8595
8596 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8597
8598 * symtab.c (find_pc_sect_line): now uses binary search.
8599
8600 2018-03-19 Tom Tromey <tom@tromey.com>
8601
8602 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
8603 "IDENT" production.
8604
8605 2018-03-19 Pedro Alves <palves@redhat.com>
8606 Tom Tromey <tom@tromey.com>
8607
8608 * unittests/observable-selftests.c: New file.
8609 * common/observable.h: New file.
8610 * observable.h: New file.
8611 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
8612 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
8613 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
8614 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
8615 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
8616 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
8617 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
8618 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
8619 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
8620 python/py-breakpoint.c, python/py-finishbreakpoint.c,
8621 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
8622 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
8623 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
8624 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
8625 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
8626 tui/tui-interp.c, valops.c: Update all users.
8627 * tui/tui-hooks.c (tui_bp_created_observer)
8628 (tui_bp_deleted_observer, tui_bp_modified_observer)
8629 (tui_inferior_exit_observer, tui_before_prompt_observer)
8630 (tui_normal_stop_observer, tui_register_changed_observer):
8631 Remove.
8632 (tui_observers_token): New global.
8633 (attach_or_detach, tui_attach_detach_observers): New functions.
8634 (tui_install_hooks, tui_remove_hooks): Use
8635 tui_attach_detach_observers.
8636 * record-btrace.c (record_btrace_thread_observer): Remove.
8637 (record_btrace_thread_observer_token): New global.
8638 * observer.sh: Remove.
8639 * observer.c: Rename to observable.c.
8640 * observable.c (namespace gdb_observers): Define new objects.
8641 (observer_debug): Move into gdb_observers namespace.
8642 (struct observer, struct observer_list, xalloc_observer_list_node)
8643 (xfree_observer_list_node, generic_observer_attach)
8644 (generic_observer_detach, generic_observer_notify): Remove.
8645 (_initialize_observer): Update.
8646 Don't include observer.inc.
8647 * Makefile.in (generated_files): Remove observer.h, observer.inc.
8648 (clean mostlyclean): Likewise.
8649 (observer.h, observer.inc): Remove targets.
8650 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
8651 (COMMON_SFILES): Use observable.c, not observer.c.
8652 * .gitignore: Remove observer.h.
8653
8654 2018-03-18 Tom Tromey <tom@tromey.com>
8655
8656 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
8657 gdb::def_vector.
8658 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
8659
8660 2018-03-17 Tom Tromey <tom@tromey.com>
8661
8662 * auto-load.c (auto_load_objfile_script_1): Use std::string.
8663
8664 2018-03-17 Tom Tromey <tom@tromey.com>
8665
8666 * target.c (class scoped_target_fd): New.
8667 (target_fileio_close_cleanup): Remove.
8668 (target_fileio_read_alloc_1): Use scoped_target_fd.
8669
8670 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
8671
8672 * silent-rules.mk: New.
8673 * Makefile.in: Include silent-rules.mk
8674 (srcdir, VPATH, top_srcdir): Move up.
8675 (COMPILE): Add ECHO_CXX.
8676 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
8677 (init.c): Add ECHO_INIT_C.
8678 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
8679 (version.c): Add ECHO_GEN.
8680 (printcmd.o): Add ECHO_CXX.
8681 (target-float.o): Add ECHO_CXX.
8682 (ada-exp.o): Add ECHO_CXX.
8683 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
8684 (insight$(EXEEXT)): Add ECHO_CXXLD.
8685 * gnulib/configure.ac: Add AM_SILENT_RULES.
8686 * gnulib/aclocal.m4: Re-generate.
8687 * gnulib/configure: Re-generate.
8688 * gnulib/import/Makefile.in: Re-generate.
8689
8690 2018-03-16 Tom Tromey <tom@tromey.com>
8691
8692 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
8693 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
8694 * utils.c (do_free_section_addr_info)
8695 (make_cleanup_free_section_addr_info): Remove.
8696 * symfile.h (struct other_sections): Add constructor.
8697 (struct section_addr_info): Remove.
8698 (section_addr_info): New typedef.
8699 (struct sym_fns) <sym_offsets>: Change type of parameter.
8700 (build_section_addr_info_from_objfile)
8701 (relative_addr_info_to_section_offsets, addr_info_make_relative)
8702 (default_symfile_offsets, symbol_file_add)
8703 (symbol_file_add_from_bfd)
8704 (build_section_addr_info_from_section_table): Update.
8705 (alloc_section_addr_info, free_section_addr_info): Don't declare.
8706 * symfile.c (alloc_section_addr_info): Remove.
8707 (build_section_addr_info_from_section_table): Change return type.
8708 Update.
8709 (build_section_addr_info_from_bfd)
8710 (build_section_addr_info_from_objfile): Likewise.
8711 (free_section_addr_info): Remove.
8712 (relative_addr_info_to_section_offsets): Change type of "addrs".
8713 (addrs_section_compar): Now a std::sort comparator.
8714 (addrs_section_sort): Change return type.
8715 (addr_info_make_relative): Change type of "addrs". Update.
8716 (default_symfile_offsets, syms_from_objfile_1)
8717 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
8718 (symbol_file_add_separate): Update.
8719 (symbol_file_add): Change type of "addrs". Update.
8720 (add_symbol_file_command): Update. Remove cleanups.
8721 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
8722 cleanups.
8723 * symfile-debug.c (debug_sym_offsets): Change type of "info".
8724 * solib.c (solib_read_symbols): Update.
8725 * objfiles.c (objfile_relocate): Update. Remove cleanups.
8726 * machoread.c (macho_symfile_offsets): Update.
8727 * jit.c (jit_bfd_try_read_symtab): Update.
8728
8729 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
8730
8731 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8732 unittests/utils-selftests.c.
8733 * unittests/utils-selftests.c: New file.
8734
8735 2018-03-14 Tom Tromey <tom@tromey.com>
8736
8737 PR cli/14977:
8738 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
8739 for NULL.
8740
8741 2018-03-14 Tom Tromey <tom@tromey.com>
8742
8743 PR cli/19918:
8744 * printcmd.c (printf_pointer): Allow "-" in format.
8745
8746 2018-03-14 Tom Tromey <tom@tromey.com>
8747
8748 * printcmd.c (_initialize_printcmd): Add usage to printf.
8749
8750 2018-03-14 Yao Qi <qiyao@sourceware.org>
8751
8752 * MAINTAINERS: Update my email address.
8753
8754 2018-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * machoread.c (macho_check_dsym): Change filenamep to a
8757 std::string*.
8758 (macho_symfile_read): Update.
8759 * symfile.c (load_command): Use std::string.
8760
8761 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
8762
8763 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
8764 to error message string.
8765 (riscv_register_name): Use xsnprintf instead of sprintf.
8766 (riscv_insn::fetch_instruction): Use gdb_assert instead of
8767 internal_error.
8768 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
8769 error.
8770 (riscv_push_dummy_call): Likewise.
8771
8772 2018-03-12 Tom Tromey <tom@tromey.com>
8773
8774 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
8775 Use gdb::byte_vector.
8776 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
8777
8778 2018-03-12 Yao Qi <yao.qi@linaro.org>
8779
8780 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
8781 parameter type to readable_regcache.
8782 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
8783 the declaration.
8784
8785 2018-03-11 Tom Tromey <tom@tromey.com>
8786
8787 * dwarf2read.c (struct nextfield): Add initializers.
8788 (struct nextfnfield): Remove.
8789 (struct fnfieldlist): Add initializers. Remove "length" and
8790 "head", use std::vector.
8791 (struct decl_field_list): Remove.
8792 (struct field_info): Add initializers.
8793 <fields, baseclasses>: Now std::vector.
8794 <nbaseclasses, nfnfields, typedef_field_list_count,
8795 nested_types_list_count>: Remove.
8796 (dwarf2_add_field, dwarf2_add_type_defn)
8797 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
8798 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
8799 (process_structure_scope): Update.
8800
8801 2018-03-11 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
8804 for use by std::sort.
8805 (build_type_psymtabs_1): Use std::vector.
8806
8807 2018-03-09 Eli Zaretskii <eliz@gnu.org>
8808
8809 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
8810 and LIBMPFR in the printed configuration.
8811
8812 2018-03-08 Tom Tromey <tom@tromey.com>
8813
8814 * source.c (get_filename_and_charpos): Use scoped_fd.
8815 * nto-procfs.c (procfs_open_1): Use scoped_fd.
8816 (procfs_pidlist): Likewise.
8817 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
8818 (iterate_over_mappings): Likewise.
8819
8820 2018-03-08 Tom Tromey <tom@tromey.com>
8821
8822 * infcall.c (struct call_return_meta_info)
8823 <stack_temporaries_enabled>: Remove.
8824 (get_call_return_value, call_function_by_hand_dummy): Update.
8825 * thread.c (disable_thread_stack_temporaries): Remove.
8826 (enable_thread_stack_temporaries): Remove.
8827 (thread_stack_temporaries_enabled_p): Return bool.
8828 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
8829 (get_last_thread_stack_temporary): Update.
8830 * eval.c (evaluate_subexp): Update.
8831 * gdbthread.h (class enable_thread_stack_temporaries): Now a
8832 class, not a function.
8833 (value_ptr, value_vec): Remove typedefs.
8834 (class thread_info) <stack_temporaries_enabled>: Now bool.
8835 <stack_temporaries>: Now a std::vector.
8836 (thread_stack_temporaries_enabled_p)
8837 (value_in_thread_stack_temporaries): Return bool.
8838
8839 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
8840
8841 * remote.c (putpkt_binary): Fix omitted bytes reporting.
8842 (getpkt_or_notif_sane_1): Likewise.
8843
8844 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8845
8846 * build-id.c (build_id_to_debug_bfd): Use std::string.
8847
8848 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8849
8850 * build-id.c (find_separate_debug_file_by_buildid): Return
8851 std::string.
8852 * build-id.h (find_separate_debug_file_by_buildid): Return
8853 std::string.
8854 * coffread.c (coff_symfile_read): Adjust to std::string.
8855 * elfread.c (elf_symfile_read): Adjust to std::string.
8856 * symfile.c (separate_debug_file_exists): Change parameter to
8857 std::string.
8858 (find_separate_debug_file): Return std::string.
8859 (find_separate_debug_file_by_debuglink): Return std::string.
8860 * symfile.h (find_separate_debug_file_by_debuglink): Return
8861 std::string.
8862
8863 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 * common/xml-utils.c (xml_escape_text): Move code to...
8866 (xml_escape_text_append): ... this new function.
8867 * common/xml-utils.h (xml_escape_text_append): New declaration.
8868 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
8869 New function.
8870 (_initialize_xml_utils): register test_xml_escape_text_append as
8871 a selftest.
8872
8873 2018-03-07 Alan Hayward <alan.hayward@arm.com>
8874
8875 * defs.h: Remove MAX_REGISTER_SIZE.
8876 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
8877 asserts.
8878 * python/py-unwind.c (pyuw_sniffer): Likewise.
8879
8880 2018-03-07 Tom Tromey <tom@tromey.com>
8881
8882 * linux-tdep.c (linux_info_proc): Update.
8883 * target.h (struct target_ops) <to_fileio_readlink>: Return
8884 optional<string>.
8885 (target_fileio_readlink): Return optional<string>.
8886 * remote.c (remote_hostio_readlink): Return optional<string>.
8887 * inf-child.c (inf_child_fileio_readlink): Return
8888 optional<string>.
8889 * target.c (target_fileio_readlink): Return optional<string>.
8890
8891 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8892
8893 * regcache.c (cooked_read_test): Add riscv to the list of
8894 architectures that have a save_reggroup.
8895
8896 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
8897
8898 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
8899 value is not a dynamic class object.
8900
8901 2018-03-06 Tom Tromey <tom@tromey.com>
8902
8903 * rust-exp.y: Formatting fixes.
8904
8905 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8906
8907 * riscv-tdep.c (riscv_register_name): Remove target description
8908 support.
8909 (riscv_gdbarch_init): Remove target description check.
8910
8911 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
8914 comment.
8915 * riscv-tdep.h: Likewise.
8916
8917 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
8920 (riscv_pseudo_register_write): Delete.
8921 (riscv_gdbarch_init): Remove all use of pseudo registers.
8922
8923 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8924
8925 * record-btrace.c (btrace_print_lines): Replace cleanup
8926 parameter with RAII equivalents.
8927 (btrace_insn_history): Replace cleanup with RAII equivalents.
8928 * ui-out.h (make_cleanup_ui_out_list_begin_end,
8929 make_cleanup_ui_out_tuple_begin_end): Remove.
8930 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
8931 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
8932 make_cleanup_ui_out_list_begin_end): Remove.
8933
8934 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8935
8936 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
8937 parameter types to std::vector. Use bool.
8938 (record_btrace_wait): Replace VEC(tp_t) with
8939 std::vector<thread_info *>.
8940 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
8941
8942 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8943
8944 * record-btrace.c (record_btrace_disable_callback): Remove.
8945 (struct scoped_btrace_disable): New.
8946 (record_btrace_open): Use scoped_btrace_disable.
8947
8948 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8949
8950 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
8951 reading values from registers.
8952
8953 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8954
8955 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
8956 where appropriate.
8957
8958 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8959
8960 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
8961 change parameter type. Use GDB's print functions, and use
8962 core_addr_to_string where appropriate.
8963 (riscv_push_dummy_call): Use core_addr_to_string where
8964 appropriate, update call to riscv_print_arg_location, and reindent
8965 a few lines.
8966 (riscv_return_value): Update call to riscv_print_arg_location.
8967
8968 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8969 Tim Newsome <tim@sifive.com>
8970 Albert Ou <a0u@eecs.berkeley.edu>
8971 Darius Rad <darius@bluespec.com>
8972
8973 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
8974 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
8975 (ALLDEPFILES): Add riscv-tdep.c
8976 * configure.tgt: Add riscv support.
8977 * riscv-tdep.c: New file.
8978 * riscv-tdep.h: New file.
8979 * NEWS: Mention new target.
8980 * MAINTAINERS: Add entry for riscv.
8981
8982 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8983
8984 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
8985 fields within aggregates.
8986
8987 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
8988
8989 * record-btrace.c (btrace_print_lines): Change type of flags to
8990 gdb_disassembly_flags.
8991
8992 2018-03-04 John Baldwin <jhb@FreeBSD.org>
8993
8994 * fbsd-nat.c: Include "inf-ptrace.h".
8995 (USE_SIGTRAP_SIGINFO): Conditionally define.
8996 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
8997 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
8998 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
8999 function.
9000 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9001 Likewise.
9002 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9003 Likewise.
9004 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9005 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9006 "supports_stopped_by_hw_breakpoint" target methods.
9007
9008 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9009
9010 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9011 * fbsd-nat.c (debug_fbsd_nat): New variable.
9012 (show_fbsd_nat_debug): New function.
9013 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9014 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9015
9016 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9017
9018 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
9019 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
9020 prototype.
9021 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
9022 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
9023 method.
9024
9025 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9026
9027 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
9028 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
9029
9030 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9031
9032 * charset.c (struct charset_vector): New.
9033 (charsets): Change type to charset_vector.
9034 (find_charset_names): Adjust.
9035 (add_one): Adjust.
9036 (_initialize_charset): Adjust.
9037
9038 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9039
9040 * progspace.h (struct program_space) <deleted_solibs>: Change
9041 type to std::vector<std::string>.
9042 * progspace.c (clear_program_space_solib_cache): Adjust.
9043 * breakpoint.c (print_solib_event): Adjust.
9044 (check_status_catch_solib): Adjust.
9045 * solib.c (update_solib_list): Adjust.
9046 * ui-out.h (class ui_out) <field_string>: New overload.
9047 * ui-out.c (ui_out::field_string): New overload.
9048
9049 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * progspace.h (struct program_space): Add constructor and
9052 destructor, initialize fields.
9053 (add_program_space): Remove.
9054 * progspace.c (add_program_space): Rename to...
9055 (program_space::program_space): ... this.
9056 (release_program_space): Rename to...
9057 (program_space::~program_space): ... this.
9058 (delete_program_space): Use delete to delete program_space.
9059 (initialize_progspace): Use new to allocate program_space.
9060 * inferior.c (add_inferior_with_spaces): Likewise.
9061 (clone_inferior_command): Likewise.
9062 * infrun.c (follow_fork_inferior): Likewise.
9063 (handle_vfork_child_exec_or_exit): Likewise.
9064
9065 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9066
9067 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
9068 (delim_string_to_char_ptr_vec): Return std::vector of
9069 gdb::unique_xmalloc_ptr.
9070 (dirnames_to_char_ptr_vec_append): Take std::vector of
9071 gdb::unique_xmalloc_ptr.
9072 (dirnames_to_char_ptr_vec): Return std::vector of
9073 gdb::unique_xmalloc_ptr.
9074 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
9075 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
9076 (delim_string_to_char_ptr_vec): Return an std::vector of
9077 gdb::unique_xmalloc_ptr, adjust the code.
9078 (dirnames_to_char_ptr_vec_append): Take an std::vector of
9079 gdb::unique_xmalloc_ptr, adjust the code.
9080 (dirnames_to_char_ptr_vec): Return an std::vector of
9081 gdb::unique_xmalloc_ptr, adjust the code.
9082 * auto-load.c (auto_load_safe_path_vec): Change type to
9083 std::vector of gdb::unique_xmalloc_ptr.
9084 (auto_load_expand_dir_vars): Return an std::vector of
9085 gdb::unique_xmalloc_ptr, adjust the code.
9086 (auto_load_safe_path_vec_update): Adjust.
9087 (filename_is_in_auto_load_safe_path_vec): Adjust.
9088 (auto_load_objfile_script_1): Adjust.
9089 * build-id.c (build_id_to_debug_bfd): Adjust.
9090 * linux-thread-db.c (thread_db_load_search): Adjust.
9091 * source.c (add_path): Adjust.
9092 (openp): Adjust.
9093 * symfile.c (find_separate_debug_file): Adjust.
9094 * utils.c (do_free_char_ptr_vec): Remove.
9095 (make_cleanup_free_char_ptr_vec): Remove.
9096
9097 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
9098
9099 PR gdb/22907
9100 * common/pathstuff.c: Conditionally include "<windows.h>".
9101
9102 2018-03-01 Georg Sauthoff <mail@georg.so>
9103
9104 PR gdb/22888
9105 * gcore.in: Quote variables and switch interpreter to bash.
9106
9107 2018-03-01 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2read.c (alloc_discriminant_info): Fix default_index
9110 assertion. Add assertion for discriminant_index.
9111 (quirk_rust_enum): Use correct base type name in univariant case.
9112
9113 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
9114
9115 * record.c (get_call_history_modifiers): Return a
9116 record_print_flags.
9117 (cmd_record_call_history): Adjust.
9118 * record-btrace.c (record_btrace_call_history): Adjust.
9119 (record_btrace_call_history_range): Adjust.
9120 (record_btrace_call_history_from): Adjust.
9121 * target-debug.h (target_debug_print_record_print_flags): New.
9122 * target-delegates.c: Re-generate.
9123 * target.c (target_call_history): Change flags type.
9124 (target_call_history_from): Likewise.
9125 (target_call_history_range): Likewise.
9126 * target.h (struct target_ops) <target_call_history>: Likewise.
9127 (target_call_history_from): Likewise.
9128 (target_call_history_range): Likewise.
9129
9130 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9131 Simon Marchi <simon.marchi@polymtl.ca>
9132
9133 * common/common-utils.c: Include "sys/stat.h".
9134 (is_regular_file): Move here from "source.c"; change return
9135 type to "bool".
9136 * common/common-utils.h (is_regular_file): New prototype.
9137 * common/pathstuff.c (contains_dir_separator): New function.
9138 * common/pathstuff.h (contains_dir_separator): New prototype.
9139 * source.c: Don't include "sys/stat.h".
9140 (is_regular_file): Move to "common/common-utils.c".
9141
9142 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9143
9144 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9145 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9146 * auto-load.c: Include "common/pathstuff.h".
9147 * common/common-def.h (current_directory): Move here.
9148 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9149 function.
9150 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9151 prototype.
9152 * common/pathstuff.c: New file.
9153 * common/pathstuff.h: New file.
9154 * compile/compile.c: Include "common/pathstuff.h".
9155 * defs.h (current_directory): Move to "common/common-defs.h".
9156 * dwarf2read.c: Include "common/pathstuff.h".
9157 * exec.c: Likewise.
9158 * guile/scm-safe-call.c: Likewise.
9159 * linux-thread-db.c: Likewise.
9160 * main.c: Likewise.
9161 * nto-tdep.c: Likewise.
9162 * objfiles.c: Likewise.
9163 * source.c: Likewise.
9164 * symtab.c: Likewise.
9165 * utils.c: Include "common/pathstuff.h".
9166 (gdb_realpath): Move to "common/pathstuff.c".
9167 (gdb_realpath_keepfile): Likewise.
9168 (gdb_abspath): Likewise.
9169 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9170 (gdb_realpath_keepfile): Likewise.
9171 (gdb_abspath): Likewise.
9172
9173 2018-02-28 John Baldwin <jhb@FreeBSD.org>
9174
9175 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9176 wildcard process pid for super_resume for kernels with a
9177 specific bug.
9178
9179 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9180
9181 * compile/compile.c (get_args): Add additional comments
9182 explaining function.
9183
9184 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9185 Tom Tromey <tom@tromey.com>
9186
9187 * target.h (memory_write_request_s): Remove typedef. Don't define
9188 VEC.
9189 (target_write_memory_blocks): Change argument to std::vector.
9190 (struct memory_write_request): Add constructor.
9191 * target-memory.c (compare_block_starting_address): Return bool.
9192 Change argument types.
9193 (claim_memory): Change arguments to use std::vector.
9194 (split_regular_and_flash_blocks, blocks_to_erase)
9195 (compute_garbled_blocks): Likewise.
9196 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9197 (target_write_memory_blocks): Change argument to std::vector.
9198 * symfile.c (struct load_section_data): Add constructor and
9199 destructor. Use std::vector for "requests".
9200 (struct load_progress_data): Add initializers.
9201 (load_section_callback): Update. Use "new".
9202 (clear_memory_write_data): Remove.
9203 (generic_load): Update.
9204
9205 2018-02-27 Alan Hayward <alan.hayward@arm.com>
9206
9207 * arch/aarch64.h: Use common/tdesc.h.
9208
9209 2018-02-26 Maciej W. Rozycki <macro@mips.com>
9210
9211 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9212 architecture with a 64-bit ABI.
9213
9214 2018-02-26 Maciej W. Rozycki <macro@mips.com>
9215
9216 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9217 ahead of target description loading.
9218
9219 2018-02-26 Tom Tromey <tom@tromey.com>
9220
9221 * stack.c (backtrace_command_1): Update.
9222 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9223 of "flags".
9224 * python/py-framefilter.c (py_print_frame)
9225 (gdbpy_apply_frame_filter): Change type of "flags".
9226 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9227 of "flags".
9228 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9229 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9230 * extension.h (enum frame_filter_flag): Rename from
9231 frame_filter_flags.
9232 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9233 (apply_ext_lang_frame_filter): Change type of "flags".
9234 * extension.c (apply_ext_lang_frame_filter): Change type of
9235 "flags".
9236 * extension-priv.h (struct extension_language_ops)
9237 <apply_frame_filter>: Change type of "flags".
9238
9239 2018-02-26 Tom Tromey <tom@tromey.com>
9240
9241 PR python/16497:
9242 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9243 off-by-one in py_end computation.
9244 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9245 PRINT_MORE_FRAMES.
9246 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9247 constant.
9248
9249 2018-02-26 Tom Tromey <tom@tromey.com>
9250
9251 * dwarf2read.c (struct variant_field): New.
9252 (struct nextfield) <variant>: New field.
9253 (dwarf2_add_field): Handle DW_TAG_variant_part.
9254 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9255 discriminated union.
9256 (read_structure_type): Handle DW_TAG_variant_part.
9257 (handle_struct_member_die): New function, extracted from
9258 process_structure_scope. Handle DW_TAG_variant.
9259 (process_structure_scope): Handle discriminated unions. Call
9260 handle_struct_member_die.
9261
9262 2018-02-26 Tom Tromey <tom@tromey.com>
9263
9264 * rust-lang.h (rust_last_path_segment): Declare.
9265 * rust-lang.c (rust_last_path_segment): Now public. Change
9266 contract.
9267 (struct disr_info): Remove.
9268 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9269 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9270 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9271 (rust_enum_p, rust_enum_variant): New function.
9272 (rust_underscore_fields): Remove "offset" parameter.
9273 (rust_print_enum): New function.
9274 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9275 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9276 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9277 enums.
9278 (rust_internal_print_type): New function, from rust_print_type.
9279 Remove enum code.
9280 (rust_print_type): Call rust_internal_print_type.
9281 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9282 Update enum handling.
9283 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9284 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9285 (rust_union_quirks): New functions.
9286 (process_full_comp_unit, process_full_type_unit): Call
9287 rust_union_quirks.
9288 (process_structure_scope): Update rust_unions if necessary.
9289
9290 2018-02-26 Tom Tromey <tom@tromey.com>
9291
9292 * value.h (value_union_variant): Declare.
9293 * valops.c (value_union_variant): New function.
9294 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9295 (struct discriminant_info): New.
9296 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9297 enumerator.
9298 (struct main_type) <flag_discriminated_union>: New field.
9299
9300 2018-02-26 Tom Tromey <tom@tromey.com>
9301
9302 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9303 unittests/unpack-selftests.c.
9304 * unittests/unpack-selftests.c: New file.
9305 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9306
9307 2018-02-26 Yao Qi <yao.qi@linaro.org>
9308
9309 * dwarf2read.c (struct partial_die_info) <read>: New method.
9310 (read_partial_die): Remove the declaration.
9311 (load_partial_dies): Update.
9312 (partial_die_info::partial_die_info):
9313 (read_partial_die): Change it to partial_die_info::read.
9314
9315 2018-02-26 Yao Qi <yao.qi@linaro.org>
9316
9317 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9318 (fixup_partial_die): Remove declaration.
9319 (scan_partial_symbols): Update.
9320 (partial_die_parent_scope): Likewise.
9321 (partial_die_full_name): Likewise.
9322 (fixup_partial_die): Change it to partial_die_info::fixup.
9323
9324 2018-02-26 Yao Qi <yao.qi@linaro.org>
9325
9326 * dwarf2read.c (read_partial_die): Update the declaration.
9327 (load_partial_dies): Caller update.
9328 (read_partial_die): Remove one argument abbrev_len.
9329
9330 2018-02-26 Yao Qi <yao.qi@linaro.org>
9331
9332 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9333 assignment operator.
9334 (load_partial_dies): Use ctor and copy ctor.
9335 (read_partial_die): Update.
9336 (dwarf2_cu::find_partial_die): Use ctor.
9337
9338 2018-02-26 Yao Qi <yao.qi@linaro.org>
9339
9340 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9341 (find_partial_die_in_comp_unit): Change it to
9342 dwarf2_cu::find_partial_die.
9343 (find_partial_die): Update.
9344
9345 2018-02-26 Yao Qi <yao.qi@linaro.org>
9346
9347 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9348 is NULL.
9349
9350 2018-02-26 Yao Qi <yao.qi@linaro.org>
9351
9352 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9353
9354 2018-02-26 Alan Hayward <alan.hayward@arm.com>
9355
9356 * arch/amd64.h: Use common/tdesc.h.
9357 * arch/i386.c: Likewise.
9358 * arch/i386.h: Likewise.
9359 * arch/tic6x.c: Likewise.
9360 * arch/tdesc.h: Move file from here...
9361 * common/tdesc.h: ...to here.
9362 * features/aarch64-core.c: Regenerate.
9363 * features/aarch64-fpu.c: Regenerate.
9364 * features/i386/32bit-avx.c: Regenerate.
9365 * features/i386/32bit-avx512.c: Regenerate.
9366 * features/i386/32bit-core.c: Regenerate.
9367 * features/i386/32bit-linux.c: Regenerate.
9368 * features/i386/32bit-mpx.c: Regenerate.
9369 * features/i386/32bit-pkeys.c: Regenerate.
9370 * features/i386/32bit-sse.c: Regenerate.
9371 * features/i386/64bit-avx.c: Regenerate.
9372 * features/i386/64bit-avx512.c: Regenerate.
9373 * features/i386/64bit-core.c: Regenerate.
9374 * features/i386/64bit-linux.c: Regenerate.
9375 * features/i386/64bit-mpx.c: Regenerate.
9376 * features/i386/64bit-pkeys.c: Regenerate.
9377 * features/i386/64bit-segments.c: Regenerate.
9378 * features/i386/64bit-sse.c: Regenerate.
9379 * features/i386/x32-core.c: Regenerate.
9380 * features/tic6x-c6xp.c: Regenerate.
9381 * features/tic6x-core.c: Regenerate.
9382 * features/tic6x-gp.c: Regenerate.
9383 * target-descriptions.c: Use common/tdesc.h.
9384 * target-descriptions.h: Likewise.
9385
9386 2018-02-24 Tom Tromey <tom@tromey.com>
9387
9388 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9389 (try_thread_db_load_from_dir, thread_db_load_search): Use
9390 std::string.
9391 (info_auto_load_libthread_db_compare): Return bool. Change
9392 argument types.
9393 (info_auto_load_libthread_db): Use std::vector, std::string.
9394 Remove cleanups.
9395
9396 2018-02-24 Tom Tromey <tom@tromey.com>
9397
9398 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9399 std::string.
9400 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9401 std::string*.
9402 * gdbarch.c: Rebuild.
9403 * gdbarch.h: Rebuild.
9404 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9405 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9406 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9407 std::string*.
9408
9409 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9410
9411 * gdbtypes.h (sect_offset): Change type to uint64_t.
9412 (sect_offset_str): New function.
9413 * dwarf2read.c (create_addrmap_from_aranges): Use
9414 sect_offset_str.
9415 (error_check_comp_unit_head): Likewise.
9416 (create_debug_type_hash_table): Likewise.
9417 (read_cutu_die_from_dwo): Likewise.
9418 (init_cutu_and_read_dies): Likewise.
9419 (init_cutu_and_read_dies_no_follow): Likewise.
9420 (process_psymtab_comp_unit_reader): Likewise.
9421 (partial_die_parent_scope): Likewise.
9422 (peek_die_abbrev): Likewise.
9423 (process_queue): Likewise.
9424 (dwarf2_physname): Likewise.
9425 (read_namespace_alias): Likewise.
9426 (read_import_statement): Likewise.
9427 (create_dwo_cu_reader): Likewise.
9428 (create_cus_hash_table): Likewise.
9429 (lookup_dwo_cutu): Likewise.
9430 (inherit_abstract_dies): Likewise.
9431 (read_func_scope): Likewise.
9432 (read_call_site_scope): Likewise.
9433 (dwarf2_add_member_fn): Likewise.
9434 (read_common_block): Likewise.
9435 (read_module_type): Likewise.
9436 (read_typedef): Likewise.
9437 (read_subrange_type): Likewise.
9438 (load_partial_dies): Likewise.
9439 (read_partial_die): Likewise.
9440 (find_partial_die): Likewise.
9441 (read_str_index): Likewise.
9442 (dwarf2_string_attr): Likewise.
9443 (build_error_marker_type): Likewise.
9444 (lookup_die_type): Likewise.
9445 (dump_die_shallow): Likewise.
9446 (follow_die_ref): Likewise.
9447 (dwarf2_fetch_die_loc_sect_off): Likewise.
9448 (dwarf2_fetch_constant_bytes): Likewise.
9449 (follow_die_sig): Likewise.
9450 (get_signatured_type): Likewise.
9451 (get_DW_AT_signature_type): Likewise.
9452 (dwarf2_find_containing_comp_unit): Likewise.
9453 (set_die_type): Likewise.
9454
9455 2018-02-21 John Baldwin <jhb@FreeBSD.org>
9456
9457 * arch/aarch64.c: Include "common-defs.h".
9458 * arch/amd64.c: Likewise.
9459 * arch/i386.c: Likewise.
9460
9461 2018-02-21 Tom Tromey <tom@tromey.com>
9462
9463 * value.h: (extract_field_op): Update.
9464 * eval.c (extract_field_op): Return a const char *.
9465 * expression.h (parse_expression_for_completion): Update.
9466 * completer.c (complete_expression): Update.
9467 (add_struct_fields): Make fieldname const.
9468 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9469 (mark_completion_tag, parse_exp_in_context_1): Update.
9470 (parse_expression_for_completion): Change "name" to
9471 unique_xmalloc_ptr*.
9472
9473 2018-02-21 Tom Tromey <tom@tromey.com>
9474
9475 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9476
9477 2018-02-21 Yao Qi <yao.qi@linaro.org>
9478
9479 * avr-tdep.c (avr_read_pc): Change parameter type to
9480 readable_regcache.
9481 * gdbarch.sh (read_pc): Likewise.
9482 * gdbarch.c: Re-generated.
9483 * gdbarch.h: Re-generated.
9484 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9485 readable_regcache.
9486 * ia64-tdep.c (ia64_read_pc): Likewise.
9487 * mips-tdep.c (mips_read_pc): Likewise.
9488 * spu-tdep.c (spu_read_pc): Likewise.
9489
9490 2018-02-21 Yao Qi <yao.qi@linaro.org>
9491
9492 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9493 * regcache-dump.c: New file.
9494 * regcache.c: Move register_dump to regcache-dump.c.
9495 (maintenance_print_registers): Likewise.
9496 (maintenance_print_raw_registers): Likewise.
9497 (maintenance_print_cooked_registers): Likewise.
9498 (maintenance_print_register_groups): Likewise.
9499 (maintenance_print_remote_registers): Likewise.
9500 (_initialize_regcache): Likewise.
9501 * regcache.h (register_dump): Moved from regcache.c.
9502
9503 2018-02-21 Yao Qi <yao.qi@linaro.org>
9504
9505 * regcache.c (regcache::regcache): Update.
9506 (regcache::invalidate): Move it to detached_regcache::invalidate.
9507 (get_thread_arch_aspace_regcache): Update.
9508 (regcache::raw_update): Update.
9509 (regcache::cooked_read): Remove some code.
9510 (regcache::cooked_read_value): Likewise.
9511 (regcache::raw_write): Remove assert on m_readonly_p.
9512 (regcache::raw_supply_integer): Move it to
9513 detached_regcache::raw_supply_integer.
9514 (regcache::raw_supply_zeroed): Likewise.
9515 * regcache.h (detached_regcache) <raw_supply_integer>: New
9516 declaration.
9517 <raw_supply_zeroed, invalidate>: Likewise.
9518 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9519 <invalidate>: Likewise.
9520 <m_readonly_p>: Removed.
9521
9522 2018-02-21 Yao Qi <yao.qi@linaro.org>
9523
9524 * infcmd.c (get_return_value): Let stop_regs point to
9525 get_current_regcache.
9526 * regcache.c (regcache::regcache): Remove.
9527 (register_dump_reg_buffer): New class.
9528 (regcache_print): Adjust.
9529 * regcache.h (regcache): Remove constructors.
9530
9531 2018-02-21 Yao Qi <yao.qi@linaro.org>
9532
9533 * regcache.c (class register_dump): New class.
9534 (register_dump_regcache, register_dump_none): New class.
9535 (register_dump_remote, register_dump_groups): New class.
9536 (regcache_print): Update.
9537 * regcache.h (regcache_dump_what): Move it to regcache.c.
9538 (regcache) <dump>: Remove.
9539
9540 2018-02-21 Yao Qi <yao.qi@linaro.org>
9541
9542 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9543 reg_buffer_rw *.
9544 (jit_unwind_reg_set_impl): Call raw_supply.
9545 (jit_frame_sniffer): Use reg_buffer_rw.
9546 * record-full.c (record_full_core_regbuf): Change its type.
9547 (record_full_core_open_1): Use reg_buffer_rw.
9548 (record_full_close): Likewise.
9549 (record_full_core_fetch_registers): Use regcache->raw_supply.
9550 (record_full_core_store_registers): Likewise.
9551 * regcache.c (regcache::get_register_status): Move it to
9552 reg_buffer.
9553 (regcache_raw_set_cached_value): Remove.
9554 (regcache::raw_set_cached_value): Remove.
9555 (regcache::raw_write): Call raw_supply.
9556 (regcache::raw_supply): Move it to reg_buffer_rw.
9557 * regcache.h (regcache_raw_set_cached_value): Remove.
9558 (reg_buffer_rw): New class.
9559
9560 2018-02-21 Yao Qi <yao.qi@linaro.org>
9561
9562 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9563 readonly_detached_regcache.
9564 (dummy_frame_prev_register): Use regcache->cooked_read.
9565 * frame.c (frame_save_as_regcache): Change return type.
9566 (frame_pop): Update.
9567 * frame.h (frame_save_as_regcache): Update declaration.
9568 * inferior.h (get_infcall_suspend_state_regcache): Update
9569 declaration.
9570 * infrun.c (infcall_suspend_state) <registers>: use
9571 readonly_detached_regcache.
9572 (save_infcall_suspend_state): Don't use regcache_dup.
9573 (get_infcall_suspend_state_regcache): Change return type.
9574 * linux-fork.c (struct fork_info) <savedregs>: Change to
9575 readonly_detached_regcache.
9576 <pc>: New field.
9577 (fork_save_infrun_state): Don't use regcache_dup.
9578 (info_checkpoints_command): Adjust.
9579 * mi/mi-main.c (register_changed_p): Update declaration.
9580 (mi_cmd_data_list_changed_registers): Use
9581 readonly_detached_regcache.
9582 (register_changed_p): Change parameter type to
9583 readonly_detached_regcache.
9584 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
9585 readonly_detached_regcache.
9586 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
9587 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
9588 New.
9589 (regcache::save): Move it to reg_buffer.
9590 (regcache::restore): Change parameter type.
9591 (regcache_dup): Remove.
9592 * regcache.h (reg_buffer) <save>: New method.
9593 (readonly_detached_regcache): New class.
9594 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
9595 readonly_detached_regcache.
9596 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
9597
9598 2018-02-21 Yao Qi <yao.qi@linaro.org>
9599
9600 * frame.c (frame_save_as_regcache): Use regcache method save.
9601 (frame_pop): Use regcache method restore.
9602 * infrun.c (restore_infcall_suspend_state): Likewise.
9603 * linux-fork.c (fork_load_infrun_state): Likewise.
9604 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
9605 save.
9606 * regcache.c (regcache_save): Remove.
9607 (regcache::restore): More asserts.
9608 (regcache_cpy): Remove.
9609 * regcache.h (regcache_save): Remove the declaration.
9610 (regcache::restore): Move from private to public.
9611 Remove the friend declaration of regcache_cpy.
9612 (regcache_cpy): Remove declaration.
9613
9614 2018-02-21 Yao Qi <yao.qi@linaro.org>
9615
9616 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
9617 parameter type to 'readable_regcache *'.
9618 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9619 * arm-tdep.c (arm_neon_quad_read): Likewise.
9620 (arm_pseudo_read): Likewise.
9621 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9622 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9623 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9624 * gdbarch.c: Re-generated.
9625 * gdbarch.h: Re-generated.
9626 * gdbarch.sh (pseudo_register_read): Change parameter type to
9627 'readable_regcache *'.
9628 (pseudo_register_read_value): Likewise.
9629 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
9630 (h8300_pseudo_register_read): Likewise.
9631 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
9632 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9633 (i386_pseudo_register_read_into_value): Likewise.
9634 (i386_pseudo_register_read_value): Likewise.
9635 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
9636 declaration.
9637 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
9638 * m32c-tdep.c (m32c_raw_read): Likewise.
9639 (m32c_read_flg): Likewise.
9640 (m32c_banked_register): Likewise.
9641 (m32c_banked_read): Likewise.
9642 (m32c_sb_read): Likewise.
9643 (m32c_part_read): Likewise.
9644 (m32c_cat_read): Likewise.
9645 (m32c_r3r2r1r0_read): Likewise.
9646 (m32c_pseudo_register_read): Likewise.
9647 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9648 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9649 (mep_pseudo_cr64_read): Likewise.
9650 (mep_pseudo_register_read): Likewise.
9651 * mips-tdep.c (mips_pseudo_register_read): Likewise.
9652 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9653 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9654 * regcache.c (regcache::raw_read): Move it to readable_regcache.
9655 (regcache::cooked_read): Likewise.
9656 (regcache::cooked_read_value): Likewise.
9657 (regcache_cooked_read_signed):
9658 (regcache::cooked_read): Likewise.
9659 * regcache.h (readable_regcache): New class.
9660 (regcache): Inherit readable_regcache. Move some methods to
9661 readable_regcache.
9662 * rl78-tdep.c (rl78_pseudo_register_read): Change
9663 parameter type to 'readable_regcache *'.
9664 * rs6000-tdep.c (do_regcache_raw_read): Remove.
9665 (e500_pseudo_register_read): Change parameter type to
9666 'readable_regcache *'.
9667 (dfp_pseudo_register_read): Likewise.
9668 (vsx_pseudo_register_read): Likewise.
9669 (efpr_pseudo_register_read): Likewise.
9670 * s390-tdep.c (s390_pseudo_register_read): Likewise.
9671 * sh-tdep.c (sh_pseudo_register_read): Likewise.
9672 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
9673 (sh64_pseudo_register_read): Likewise.
9674 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9675 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9676 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9677 (spu_pseudo_register_read): Likewise.
9678 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9679 (xtensa_pseudo_register_read): Likewise.
9680
9681 2018-02-21 Yao Qi <yao.qi@linaro.org>
9682
9683 * regcache.c (regcache::regcache): Call reg_buffer ctor.
9684 (regcache::arch): Move it to reg_buffer::arch.
9685 (regcache::register_buffer): Likewise.
9686 (regcache::assert_regnum): Likewise.
9687 (regcache::num_raw_registers): Likewise.
9688 * regcache.h (reg_buffer): New class.
9689 (regcache): Inherit reg_buffer.
9690
9691 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
9692
9693 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
9694 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
9695
9696 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
9697
9698 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
9699
9700 2018-02-19 Alan Hayward <alan.hayward@arm.com>
9701
9702 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
9703 (SFILES): Remove common/*.c files.
9704 (COMMON_OBS): Remove some *.o files built from common/*.c files.
9705 * common/common.host: Add common reference.
9706 * configure.ac: Likewise.
9707 * configure: Regenerate.
9708
9709 2018-02-16 Yao Qi <yao.qi@linaro.org>
9710
9711 * block.c (block_namespace_info): Inherit allocate_on_obstack.
9712 (block_initialize_namespace): Use new.
9713 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
9714 (dwarf2_free_objfile): Use delete.
9715 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
9716 (copy_type_recursive): Use new.
9717 * gdb_obstack.h (allocate_on_obstack): New.
9718
9719 2018-02-15 Yao Qi <yao.qi@linaro.org>
9720
9721 PR gdb/22849
9722 * inferior.c (exit_inferior_1): Reset inf->control.
9723
9724 2018-02-15 Joel Brobecker <brobecker@adacore.com>
9725
9726 * ada-lang.c (ada_to_fixed_value_create): Delete advance
9727 declaration.
9728
9729 2018-02-14 Pedro Alves <palves@redhat.com>
9730
9731 * frame-unwind.c (frame_unwind_try_unwinder): Always call
9732 frame_cleanup_after_sniffer on exception.
9733
9734 2018-02-14 Tom Tromey <tom@tromey.com>
9735
9736 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
9737 const.
9738 (solib_bfd_open): Make pathname const.
9739 * solib.c (solib_bfd_open): Make pathname const.
9740 * solib-spu.c (spu_bfd_fopen): Make name const.
9741 (spu_bfd_open): Make pathname const.
9742 * solib-darwin.c (darwin_bfd_open): Make pathname const.
9743 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
9744
9745 2018-02-14 Tom Tromey <tom@tromey.com>
9746
9747 * symfile.c (symfile_bfd_open): Update.
9748 * source.h (openp, source_full_path_of, find_and_open_source):
9749 Change argument type to unique_xmalloc_ptr.
9750 * source.c (openp): Take a unique_xmalloc_ptr.
9751 (source_full_path_of, find_and_open_source): Likewise.
9752 (open_source_file, symtab_to_fullname): Update.
9753 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
9754 unique_xmalloc_ptr.
9755 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
9756 (exec_file_find): Update.
9757 * psymtab.c (psymtab_to_fullname): Update.
9758 * nto-tdep.h (nto_find_and_open_solib): Update.
9759 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
9760 unique_xmalloc_ptr.
9761 * exec.c (exec_file_attach): Update.
9762 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
9763 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
9764
9765 2018-02-14 Tom Tromey <tom@tromey.com>
9766
9767 * solib.c: Include source.h.
9768 * nto-tdep.c: Include source.h.
9769 * mi/mi-cmd-env.c: Include source.h.
9770 * infcmd.c: Include source.h.
9771 * exec.c: Include source.h.
9772 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
9773 (add_path, directory_switch, source_path, init_source_path): Move
9774 declarations...
9775 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
9776 (add_path, directory_switch, source_path, init_source_path):
9777 ...here.
9778
9779 2018-02-14 Tom Tromey <tom@tromey.com>
9780
9781 * solist.h (exec_file_find, solib_find): Return
9782 unique_xmalloc_ptr.
9783 (solib_bfd_fopen): Take a const char *.
9784 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
9785 (exec_file_find, solib_find): Likewise.
9786 (solib_bfd_fopen): Do not take ownership of "pathname".
9787 (solib_bfd_open): Use unique_xmalloc_ptr.
9788 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
9789 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
9790 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
9791 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
9792
9793 2018-02-14 Joel Brobecker <brobecker@adacore.com>
9794
9795 * ada-lang.c (name_match_type_from_name): Remove reference to
9796 ada_name_for_lookup in function's documentation.
9797 * ada-lang.h (ada_name_for_lookup): Delete declaration.
9798
9799 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9800
9801 * defs.h (enum openp_flags): New enum.
9802 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
9803 Move to enum openp_flags.
9804 (openp_flags): New enum flags.
9805 (openp): Change parameter type to openp_flags.
9806 * source.c (openp): Change parameter type to openp_flags.
9807 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
9808 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
9809
9810 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9811
9812 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
9813 per-command.
9814
9815 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
9816
9817 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
9818 into...
9819 (class dwarf2_queue_guard): ...the destructor of this new class.
9820 (dw2_do_instantiate_symtab): Create instance of the new class
9821 dwarf2_queue_guard, remove cleanup.
9822
9823 2018-02-09 Tom Tromey <tom@tromey.com>
9824
9825 * source.c (find_source_lines): Don't reference past the end of
9826 the vector.
9827
9828 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9829
9830 * remote.c (remote_btrace_maybe_reopen): Change error message.
9831 * btrace.c (btrace_enable): Likewise.
9832 (parse_xml_btrace): Likewise.
9833 (parse_xml_btrace_conf): Likewise.
9834
9835 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9836
9837 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
9838 (linux_enable_pt, linux_enable_bts): Call
9839 diagnose_perf_event_open_fail.
9840
9841 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9842
9843 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
9844 Remove parameter and change return type. Update callers. Move it.
9845 (linux_enable_bts, linux_enable_pt): Improve error message.
9846 (linux_enable_pt): Remove zero buffer size check.
9847 (linux_enable_btrace): Improve error messages. Remove NULL return
9848 check.
9849
9850 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9851
9852 * btrace.c (btrace_enable): Remove target_supports_btrace call.
9853 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
9854 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
9855 (linux_supports_pt, linux_supports_btrace): Remove.
9856 (linux_enable_bts): Call cpu_supports_bts.
9857 * nat/linux-btrace.h (linux_supports_btrace): Remove.
9858 * remote.c (remote_supports_btrace): Remove.
9859 (init_remote_ops): Remove remote_supports_btrace.
9860 * target-delegates.c: Regenerated.
9861 * target.c (target_supports_btrace): Remove.
9862 * target.h (target_ops) <to_supports_btrace>: Remove
9863 (target_supports_btrace): Remove.
9864 * x86-linux-nat.c (x86_linux_create_target): Remove
9865 linux_supports_btrace.
9866
9867 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9868
9869 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
9870 btrace failed.
9871 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
9872 exception and use message in own exception.
9873
9874 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9875
9876 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
9877 (perf_event_pt_event_type): Use gdb_file_up.
9878 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
9879 scoped_fd, and scoped_mmap.
9880
9881 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9882
9883 * common/scoped_mmap.h: New.
9884 * unittests/scoped_mmap-selftest.c: New.
9885 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9886 unittests/scoped_mmap-selftest.c.
9887
9888 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9889
9890 * common/scoped_fd.h: New.
9891 * unittests/scoped_fd-selftest.c: New.
9892 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9893 unittests/scoped_fd-selftest.c.
9894
9895 2018-02-09 Tom Tromey <tom@tromey.com>
9896
9897 * auto-load.c (auto_load_section_scripts): Use
9898 gdb::unique_xmalloc_ptr.
9899
9900 2018-02-09 Tom Tromey <tom@tromey.com>
9901
9902 * auto-load.c (execute_script_contents): Use std::string.
9903
9904 2018-02-09 Joel Brobecker <brobecker@adacore.com>
9905
9906 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
9907 Python function, rather than a new command.
9908
9909 2018-02-08 Tom Tromey <tom@tromey.com>
9910
9911 * solib.c (solib_find_1): Use std::string.
9912 (solib_bfd_fopen): Use unique_xmalloc_ptr.
9913
9914 2018-02-08 Tom Tromey <tom@tromey.com>
9915
9916 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
9917
9918 2018-02-08 Tom Tromey <tom@tromey.com>
9919
9920 * source.c (find_source_lines): Use gdb::def_vector.
9921
9922 2018-02-08 Tom Tromey <tom@tromey.com>
9923
9924 * macrocmd.c (struct temporary_macro_definition): New.
9925 (macro_define_command): Use temporary_macro_definition. Remove
9926 cleanups.
9927 (free_macro_definition_ptr): Remove.
9928
9929 2018-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * macroexp.c (maybe_expand): Use std::string.
9932
9933 2018-02-08 Tom Tromey <tom@tromey.com>
9934
9935 * macroexp.c (struct macro_buffer): Add initializers for some
9936 members.
9937 (init_buffer, init_shared_buffer, free_buffer)
9938 (free_buffer_return_text): Remove.
9939 (macro_buffer): New constructors.
9940 (~macro_buffer): New destructor.
9941 (macro_buffer::set_shared): New method.
9942 (macro_buffer::resize_buffer, macro_buffer::appendc)
9943 (macro_buffer::appendmem): Now methods, not free functions.
9944 (set_token, append_tokens_without_splicing, stringify)
9945 (macro_stringify): Update.
9946 (gather_arguments): Change return type. Remove argc_p argument,
9947 add args_ptr argument. Use std::vector.
9948 (substitute_args): Remove argc argument. Accept std::vector.
9949 (expand): Update. Use std::vector.
9950 (scan, macro_expand, macro_expand_next): Update.
9951
9952 2018-02-08 Tom Tromey <tom@tromey.com>
9953
9954 * symtab.c (default_collect_symbol_completion_matches_break_on):
9955 Use unique_xmalloc_ptr.
9956 * macroscope.h: (sal_macro_scope, user_macro_scope)
9957 (default_macro_scope): Return unique_xmalloc_ptr.
9958 * macroscope.c (sal_macro_scope, user_macro_scope)
9959 (default_macro_scope): Return unique_xmalloc_ptr.
9960 * macroexp.h (macro_expand, macro_expand_once): Return
9961 unique_xmalloc_ptr.
9962 * macroexp.c (macro_expand, macro_expand_once): Return
9963 unique_xmalloc_ptr.
9964 * macrocmd.c (macro_expand_command, macro_expand_once_command)
9965 (info_macro_command, info_macros_command): Use
9966 unique_xmalloc_ptr.
9967 * compile/compile-c-support.c (write_macro_definitions): Use
9968 unique_xmalloc_ptr.
9969 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
9970
9971 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
9972
9973 * value.c (value_static_field): Assign field type instead of
9974 containing type when returning an optimized out value.
9975
9976 2018-02-06 Yao Qi <yao.qi@linaro.org>
9977
9978 * ft32-tdep.c (ft32_read_pc): Remove.
9979 (ft32_write_pc): Remove.
9980 (ft32_gdbarch_init): Update.
9981 * m32r-tdep.c (m32r_read_pc): Remove.
9982 (m32r_gdbarch_init): Update.
9983 * mep-tdep.c (mep_read_pc): Remove.
9984 (mep_gdbarch_init): Update.
9985 * microblaze-tdep.c (microblaze_write_pc): Remove.
9986 (microblaze_gdbarch_init): Update.
9987 * mn10300-tdep.c (mn10300_read_pc): Remove.
9988 (mn10300_write_pc): Remove.
9989 (mn10300_gdbarch_init): Update.
9990 * moxie-tdep.c (moxie_read_pc): Remove.
9991 (moxie_write_pc): Remove.
9992 (moxie_gdbarch_init): Update.
9993
9994 2018-02-06 Yao Qi <yao.qi@linaro.org>
9995
9996 * expprint.c (print_subexp_standard): Handle
9997 OP_F77_UNDETERMINED_ARGLIST.
9998 (dump_subexp_body_standard): Likewise.
9999
10000 2018-02-05 Alan Hayward <alan.hayward@arm.com>
10001
10002 * target-descriptions.c (tdesc_element_visitor) Add empty
10003 implementations.
10004 (tdesc_type): Move make_gdb_type from here.
10005 (tdesc_type_builtin): Likewise.
10006 (tdesc_type_vector): Likewise.
10007 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10008 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10009 (make_gdb_type_union): Likewise.
10010 (make_gdb_type_flags): Likewise.
10011 (make_gdb_type_enum): Likewise.
10012 (make_gdb_type): New function.
10013 (tdesc_register_type): Use static make_gdb_type.
10014
10015 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
10016
10017 * infcmd.c (default_print_one_register_info): Align natural-format
10018 column values consistently one under another.
10019 (pad_to_column): New function.
10020
10021 2018-02-05 Joel Brobecker <brobecker@adacore.com>
10022
10023 * dwarf2read.c (dwarf2_physname): Move commment.
10024
10025 2018-02-01 Leszek Swirski <leszeks@google.com>
10026
10027 * varobj.c (varobj_formatted_print_options): Allow recursive
10028 pretty printing if pretty printing is enabled.
10029
10030 2018-02-01 Leszek Swirski <leszeks@google.com>
10031
10032 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
10033 names after a structop as a filename.
10034
10035 2018-02-01 Yao Qi <yao.qi@linaro.org>
10036
10037 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
10038 (arm_record_coproc_data_proc): Likewise.
10039
10040 2018-02-01 Yao Qi <yao.qi@linaro.org>
10041
10042 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
10043
10044 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
10045
10046 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
10047 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
10048
10049 2018-01-31 Pedro Alves <palves@redhat.com>
10050
10051 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
10052 * inflow.c (child_terminal_save_inferior): Wrap reference to
10053 tcgetpgrp in HAVE_TERMIOS_H.
10054 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
10055 _WIN32.
10056 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
10057 always iterate over all inferiors.
10058 (gdbsim_cntrl_c): Adjust.
10059 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
10060
10061 2018-01-31 Joel Brobecker <brobecker@adacore.com>
10062
10063 * gdbtypes.c (lookup_array_range_type): Make sure the array's
10064 index type is objfile-owned if the element type is as well.
10065
10066 2018-01-31 Joel Brobecker <brobecker@adacore.com>
10067
10068 GDB 8.1 released.
10069
10070 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
10071
10072 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
10073 "features/s390x-linux64.c".
10074 (_initialize_s390_linux_tdep): Remove initialization of tdescs
10075 s390_linux32 and s390x_linux64.
10076 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
10077 default tdesc.
10078 * s390-tdep.c: Include "features/s390-linux32.c" and
10079 "features/s390x-linux64.c".
10080 (s390_tdesc_valid): Add check for tdesc_has_registers.
10081 (s390_gdbarch_init): Make sure there is always a valid tdesc.
10082 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
10083 tdesc_s390x_linux64.
10084 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
10085 tdesc_s390x_linux64 to...
10086 * s390-tdep.h: ...here.
10087
10088 2018-01-30 Pedro Alves <palves@redhat.com>
10089
10090 PR gdb/13211
10091 * config.in, configure: Regenerate.
10092 * configure.ac: Check for getpgid.
10093 * go32-nat.c (go32_pass_ctrlc): New.
10094 (go32_target): Install it.
10095 * inf-child.c (inf_child_target): Install
10096 child_terminal_save_inferior, child_pass_ctrlc and
10097 child_interrupt.
10098 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
10099 (inf_ptrace_target): No longer install it.
10100 * infcmd.c (interrupt_target_1): Adjust.
10101 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
10102 (child_interrupt): Declare.
10103 (inferior::terminal_state): New.
10104 * inflow.c (struct terminal_info): Update comments.
10105 (inferior_process_group): Delete.
10106 (terminal_is_ours): Delete.
10107 (gdb_tty_state): New.
10108 (child_terminal_init): Adjust.
10109 (is_gdb_terminal, sharing_input_terminal_1)
10110 (sharing_input_terminal): New functions.
10111 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
10112 Set the process's actual process group in the foreground if
10113 possible. Handle is_ours_for_output/is_ours distinction. Don't
10114 mark terminal as the inferior's if not sharing GDB's terminal.
10115 Don't check attach_flag.
10116 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10117 pass down a target_terminal_state.
10118 (child_terminal_save_inferior): New, factored out from ...
10119 (child_terminal_ours_1): ... this. Handle
10120 target_terminal_state::is_ours_for_output.
10121 (child_interrupt, child_pass_ctrlc): New.
10122 (inflow_inferior_exit): Clear the inferior's terminal_state.
10123 (copy_terminal_info): Copy the inferior's terminal state.
10124 (_initialize_inflow): Remove reference to terminal_is_ours.
10125 * inflow.h (inferior_process_group): Delete.
10126 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10127 * procfs.c (procfs_target): Don't install procfs_interrupt.
10128 (procfs_interrupt): Delete.
10129 * remote.c (remote_serial_quit_handler): Adjust.
10130 (remote_interrupt): Remove ptid parameter. Adjust.
10131 * target-delegates.c: Regenerate.
10132 * target.c: Include "terminal.h".
10133 (target_terminal::terminal_state): Rename to ...
10134 (target_terminal::m_terminal_state): ... this.
10135 (target_terminal::init): Adjust.
10136 (target_terminal::inferior): Adjust to per-inferior
10137 terminal_state.
10138 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10139 (target_terminal::ours, target_terminal::ours_for_output): Use
10140 target_terminal_is_ours_kind.
10141 (target_interrupt): Remove ptid parameter. Adjust.
10142 (default_target_pass_ctrlc): Adjust.
10143 * target.h (target_ops::to_terminal_save_inferior): New field.
10144 (target_ops::to_interrupt): Remove ptid_t parameter.
10145 (target_interrupt): Remove ptid_t parameter. Update comment.
10146 (target_pass_ctrlc): Update comment.
10147 * target/target.h (target_terminal_state): New scoped enum,
10148 factored out of ...
10149 (target_terminal::terminal_state): ... here.
10150 (target_terminal::inferior): Update comments.
10151 (target_terminal::restore_inferior): New.
10152 (target_terminal::is_inferior, target_terminal::is_ours)
10153 (target_terminal::is_ours_for_output): Adjust.
10154 (target_terminal::scoped_restore_terminal_state): Adjust to
10155 rename, and call restore_inferior() instead of inferior().
10156 (target_terminal::scoped_restore_terminal_state::m_state): Change
10157 type.
10158 (target_terminal::terminal_state): Rename to ...
10159 (target_terminal::m_terminal_state): ... this and change type.
10160
10161 2018-01-30 Pedro Alves <palves@redhat.com>
10162
10163 * linux-nat.c (wait_for_signal): New function.
10164 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10165 directly.
10166 (async_terminal_is_ours)
10167 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10168 (linux_nat_add_target): Don't override
10169 to_terminal_inferior/to_terminal_ours.
10170
10171 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10172
10173 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10174
10175 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10176
10177 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10178 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10179 dwarf2_per_objfile_free here.
10180 (dwarf2_per_objfile_free): Remove.
10181 (_initialize_dwarf2_read): Don't register
10182 dwarf2_per_objfile_free as a registry cleanup.
10183
10184 2018-01-27 Eli Zaretskii <eliz@gnu.org>
10185
10186 Avoid compilation errors in MinGW native builds
10187
10188 The error is triggered by including python-internal.h, and the
10189 error message is:
10190
10191 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10192 from build-gnulib/import/math.h:27,
10193 from d:/usr/Python26/include/pyport.h:235,
10194 from d:/usr/Python26/include/Python.h:58,
10195 from python/python-internal.h:94,
10196 from python/py-arch.c:24:
10197 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10198 using ::hypot;
10199 ^~~~~
10200
10201 This happens because Python headers define 'hypot' to expand t
10202 '_hypot' in the Windows builds.
10203 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10204 'hypoth'. This avoids a compilation error.
10205
10206 2018-01-26 Alan Hayward <alan.hayward@arm.com>
10207
10208 * MAINTAINERS (Write After Approval): Fix ordering.
10209
10210 2018-01-26 Alan Hayward <alan.hayward@arm.com>
10211
10212 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10213
10214 2018-01-26 Alan Modra <amodra@gmail.com>
10215
10216 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10217 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10218 Remove nop. Make const. Comment.
10219 (powerpc32_plt_stub_so_2): New.
10220 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10221 Correct count. Update uses.
10222 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10223 Move common code reading PLT entry word. Correct
10224 powerpc32_plt_stub PLT address calculation.
10225 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10226 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10227 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10228 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10229 (ppc64_standard_linkage8): Likewise.
10230 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10231 Correct insns description.
10232 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10233
10234 2018-01-24 Pedro Alves <palves@redhat.com>
10235
10236 GCC PR libstdc++/83906
10237 * gdbtypes.c (operator==(const dynamic_prop &,
10238 const dynamic_prop &)): New.
10239 (operator==(const range_bounds &, const range_bounds &)): New.
10240 (check_types_equal): Use them instead of memcmp.
10241 * gdbtypes.h (operator==(const dynamic_prop &,
10242 const dynamic_prop &)): Declare.
10243 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10244 (operator==(const range_bounds &, const range_bounds &)): Declare.
10245 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10246
10247 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10248
10249 * s390-linux-tdep.c (s390_record_address_mask)
10250 (s390_record_calc_disp_common, s390_record_calc_disp)
10251 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10252 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10253 (s390_process_record): Move to s390-tdep.c.
10254 (s390_linux_init_abi_any): Adjust.
10255 * s390-tdep.c (s390_record_address_mask)
10256 (s390_record_calc_disp_common, s390_record_calc_disp)
10257 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10258 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10259 (s390_process_record): Moved from s390-linux-tdep.c
10260 (s390_gdbarch_init): Adjust.
10261
10262 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10263
10264 * s390-linux-nat.c (s390-tdep.h): New include.
10265 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10266 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10267 (ALLDEPFILES): Add s390-tdep.c.
10268 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10269 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10270 * s390-tdep.h: ...this. New file.
10271 * s390-linux-tdep.c (s390-tdep.h): New include.
10272 (_initialize_s390_tdep): Rename to...
10273 (_initialize_s390_linux_tdep): ...this and adjust.
10274 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10275 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10276 s390-tdep.h.
10277 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10278 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10279 (s390_is_partial_instruction, s390_software_single_step)
10280 (is_non_branch_ril, s390_displaced_step_copy_insn)
10281 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10282 (s390_prologue_data, s390_addr, s390_store, s390_load)
10283 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10284 (s390_register_call_saved, s390_guess_tracepoint_registers)
10285 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10286 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10287 (s390_pseudo_register_name, s390_pseudo_register_type)
10288 (s390_pseudo_register_read, s390_pseudo_register_write)
10289 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10290 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10291 (s390_addr_bits_remove, s390_address_class_type_flags)
10292 (s390_address_class_type_flags_to_name)
10293 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10294 (s390_function_arg_float, s390_function_arg_vector)
10295 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10296 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10297 (s390_frame_align, s390_register_return_value, s390_return_value)
10298 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10299 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10300 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10301 (s390_trad_frame_prev_register, s390_unwind_cache)
10302 (s390_prologue_frame_unwind_cache)
10303 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10304 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10305 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10306 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10307 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10308 (s390_frame_base_address, s390_local_base_address)
10309 (s390_frame_base, s390_gcc_target_options)
10310 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10311 (s390_validate_reg_range, s390_tdesc_valid)
10312 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10313 * s390-tdep.c: ...this. New file.
10314
10315 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10316
10317 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10318 (s390_process_record, s390_gdbarch_tdep_alloc)
10319 (s390_linux_init_abi_any): Use/set new hook.
10320
10321 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10322
10323 * s390-linux-tdep.c (osabi.h): New include.
10324 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10325 (s390_linux_init_abi_any): New functions.
10326 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10327
10328 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10329
10330 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10331 tdesc_has_registers check
10332
10333 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10334
10335 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10336 (s390_validate_reg_range): New macro.
10337 (s390_gdbarch_init): Adjust.
10338
10339 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10340
10341 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10342 (s390_gdbarch_tdep_alloc): Adjust.
10343 (s390_gdbarch_init): Adjust.
10344
10345 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10346
10347 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10348 <have_tdb>: Change type to bool.
10349 (s390_gdbarch_tdep_alloc): Adjust.
10350 (s390_gdbarch_init): Adjust.
10351
10352 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10353
10354 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10355 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10356 (s390_gdbarch_tdep_alloc): New function.
10357 (s390_gdbarch_init): Allocate tdep at start and use its fields
10358 instead of separate variables.
10359
10360 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10361
10362 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10363 when looking for cached gdbarch and add comment for remaining.
10364
10365 2018-01-22 Pedro Alves <palves@redhat.com>
10366 Sergio Durigan Junior <sergiodj@redhat.com>
10367
10368 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10369 case.
10370
10371 2018-01-22 Maciej W. Rozycki <macro@mips.com>
10372
10373 * MAINTAINERS: Update my company e-mail address.
10374
10375 2018-01-22 Yao Qi <yao.qi@linaro.org>
10376
10377 * regcache.c (cooked_write_test): New function.
10378 (_initialize_regcache): Register the test.
10379
10380 2018-01-22 Yao Qi <yao.qi@linaro.org>
10381
10382 * ia64-tdep.c (ia64_pseudo_register_read): Call
10383 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10384 * m32c-tdep.c (m32c_cat_read): Likewise.
10385 (m32c_r3r2r1r0_read): Likewise.
10386 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10387 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10388
10389 2018-01-22 Yao Qi <yao.qi@linaro.org>
10390
10391 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10392 method raw_read instead of regcache_raw_read.
10393 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10394 * arm-tdep.c (arm_neon_quad_read): Likewise.
10395 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10396 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10397 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10398 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10399 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10400 (i386_pseudo_register_read_into_value): Likewise.
10401 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10402 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10403 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10404 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10405 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10406 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10407 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10408 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10409 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10410
10411 2018-01-22 Yao Qi <yao.qi@linaro.org>
10412
10413 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10414 * configure.tgt: Remove target mt.
10415 * mt-tdep.c: Remove.
10416 * regcache.c (cooked_read_test): Remove the check for mt.
10417
10418 2018-01-22 Yao Qi <yao.qi@linaro.org>
10419
10420 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10421 instead of gdbarch_pseudo_register_read_value.
10422
10423 2018-01-22 Joel Brobecker <brobecker@adacore.com>
10424
10425 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10426 language is Ada.
10427
10428 2018-01-22 Joel Brobecker <brobecker@adacore.com>
10429
10430 * linespec.c (create_sals_line_offset): Remove code that preserved
10431 the symtab_and_line's line number.
10432
10433 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10434
10435 * varobj.c (varobj_create): Don't set valid_block when creating a
10436 floating varobj.
10437
10438 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10439
10440 * varobj.c (varobj_create): Remove out of date comment.
10441
10442 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10443
10444 PR mi/20395
10445 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10446 updating innermost block.
10447 * parse.c (innermost_block_tracker::update): Take extra type
10448 parameter, and check types match before updating innermost block.
10449 (write_dollar_variable): Update innermost block for registers.
10450 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10451 (innermost_block_tracker::innermost_block_tracker): Initialise
10452 m_types member.
10453 (innermost_block_tracker::reset): Take type parameter.
10454 (innermost_block_tracker::update): Take type parameter, and pass
10455 type through as needed.
10456 (innermost_block_tracker::m_types): New member.
10457 * varobj.c (varobj_create): Pass type when reseting innermost
10458 block.
10459
10460 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10461
10462 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10463 * ada-lang.c (resolve_subexp): Likewise.
10464 * breakpoint.c (set_breakpoint_condition) Likewise.
10465 (watch_command_1) Likewise.
10466 * c-exp.y (variable): Likewise.
10467 * d-exp.y (PrimaryExpression): Likewise.
10468 * f-exp.y (variable): Likewise.
10469 * go-exp.y (variable): Likewise.
10470 * m2-exp.y (variable): Likewise.
10471 * objfiles.c (objfile::~objfile): Likewise.
10472 * p-exp.y (variable): Likewise.
10473 * parse.c (innermost_block): Change type.
10474 * parser-defs.h (class innermost_block_tracker): New.
10475 (innermost_block): Change to innermost_block_tracker.
10476 * printcmd.c (display_command): Switch to innermost_block API.
10477 (do_one_display): Likewise.
10478 * rust-exp.y (do_one_display): Likewise.
10479 * symfile.c (clear_symtab_users): Likewise.
10480 * varobj.c (varobj_create): Switch to innermost_block API, replace
10481 use of innermost_block with block stored on varobj object.
10482
10483 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10484
10485 * expression.h (innermost_block): Remove declaration.
10486 * varobj.c: Add 'parser-defs.h' include.
10487
10488 2018-01-19 Tom Tromey <tom@tromey.com>
10489
10490 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10491 symbols in the static and global blocks.
10492
10493 2018-01-19 James Clarke <jrtc27@jrtc27.com>
10494
10495 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10496 gdb_ptrace.h, and move including gdb_wait.h ...
10497 * nat/linux-ptrace.h: ... to here.
10498
10499 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10500
10501 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10502 inf_ptrace_detach_success.
10503 (inf_ptrace_detach_success): Add inferior parameter, use it
10504 instead of inferior_ptid, pass it to detach_inferior.
10505 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10506 parameter.
10507 * inferior.c (detach_inferior): Add overload that takes an
10508 inferior object.
10509 * inferior.h (detach_inferior): Likewise.
10510 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10511 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10512 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10513
10514 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10515
10516 * target.h (struct target_ops) <to_detach>: Add inferior
10517 parameter.
10518 (target_detach): Likewise.
10519 * target.c (dispose_inferior): Pass inferior down.
10520 (target_detach): Pass inferior down. Assert that it is equal to
10521 the current inferior.
10522 * aix-thread.c (aix_thread_detach): Pass inferior down.
10523 * corefile.c (core_file_command): Pass current_inferior() down.
10524 * corelow.c (core_detach): Add inferior parameter.
10525 * darwin-nat.c (darwin_detach): Likewise.
10526 * gnu-nat.c (gnu_detach): Likewise.
10527 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10528 * infcmd.c (detach_command): Pass current_inferior() down to
10529 target_detach.
10530 * infrun.c (follow_fork_inferior): Pass parent_inf to
10531 target_detach.
10532 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10533 target_detach.
10534 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10535 * linux-thread-db.c (thread_db_detach): Likewise.
10536 * nto-procfs.c (procfs_detach): Likewise.
10537 * procfs.c (procfs_detach): Likewise.
10538 * record.c (record_detach): Likewise.
10539 * record.h (struct inferior): Forward-declare.
10540 (record_detach): Add inferior parameter.
10541 * remote-sim.c (gdbsim_detach): Likewise.
10542 * remote.c (remote_detach_1): Likewise.
10543 (remote_detach): Likewise.
10544 (extended_remote_detach): Likewise.
10545 * sol-thread.c (sol_thread_detach): Likewise.
10546 * target-debug.h (target_debug_print_inferior_p): New macro.
10547 * target-delegates.c: Re-generate.
10548 * top.c (kill_or_detach): Pass inferior down to target_detach.
10549 * windows-nat.c (windows_detach): Add inferior parameter.
10550
10551 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10552
10553 * target.h (struct target_ops) <to_detach>: Remove args
10554 parameter.
10555 (target_detach): Likewise.
10556 * target.c (dispose_inferior): Adjust.
10557 (target_detach): Remove args parameter, adjust.
10558 * aix-thread.c (aix_thread_detach): Adjust.
10559 * corefile.c (core_file_command): Adjust.
10560 * corelow.c (core_detach): Adjust.
10561 * darwin-nat.c (darwin_detach): Adjust.
10562 * gnu-nat.c (gnu_detach): Adjust.
10563 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10564 * infcmd.c (detach_command): Adjust
10565 * infrun.c (follow_fork_inferior): Adjust.
10566 (handle_vfork_child_exec_or_exit): Adjust.
10567 * linux-fork.c (linux_fork_detach): Remove args parameter.
10568 * linux-fork.h (linux_fork_detach): Likewise.
10569 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10570 * linux-thread-db.c (thread_db_detach): Likewise.
10571 * nto-procfs.c (procfs_detach): Likewise.
10572 * procfs.c (procfs_detach): Likewise.
10573 (do_detach): Remove signo parameter.
10574 * record.c (record_detach): Remove args parameter.
10575 * record.h (record_detach): Likewise.
10576 * remote-sim.c (gdbsim_detach): Likewise.
10577 * remote.c (remote_detach_1): Likewise.
10578 (remote_detach): Likewise.
10579 (extended_remote_detach): Likewise.
10580 * sol-thread.c (sol_thread_detach): Likewise.
10581 * target-delegates.c: Re-generate.
10582 * top.c (struct qt_args) <args>: Remove field.
10583 (kill_or_detach): Don't pass args.
10584 (quit_force): Don't set args.
10585 * windows-nat.c (windows_detach): Remove args parameter.
10586
10587 2018-01-19 Yao Qi <yao.qi@linaro.org>
10588
10589 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
10590 (arm_linux_init_abi): Install it.
10591
10592 2018-01-19 Yao Qi <yao.qi@linaro.org>
10593
10594 * osabi.c (gdb_osabi_names): Extend the regexp for
10595 arm-linux-gnueabihf.
10596
10597 2018-01-18 Yao Qi <yao.qi@linaro.org>
10598
10599 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
10600 m_abbrevs.
10601 (abbrev_table::add_abbrev): Update.
10602 (abbrev_table::lookup_abbrev): Update.
10603
10604 2018-01-18 Yao Qi <yao.qi@linaro.org>
10605
10606 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
10607
10608 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10609
10610 * compile/compile.c (compile_to_object): Convert "triplet_rx"
10611 to "std::string".
10612
10613 2018-01-17 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
10616
10617 2018-01-17 Tom Tromey <tom@tromey.com>
10618
10619 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
10620 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
10621 (create_array_type_with_stride): Update.
10622 * dwarf2read.c (set_die_type): Update.
10623
10624 2018-01-17 Tom Tromey <tom@tromey.com>
10625
10626 * dwarf2read.c (delayed_method_info): Remove typedef.
10627 (dwarf2_cu::method_info): Now a std::vector.
10628 (add_to_method_list): Update.
10629 (free_delayed_list): Remove.
10630 (compute_delayed_physnames): Update.
10631 (process_full_comp_unit, process_full_type_unit): Clear the method
10632 list. Remove cleanups.
10633 (psymtab_include_file_name): Add name_holder parameter. Use
10634 unique_xmalloc_ptr.
10635 (dwarf_decode_lines): Update.
10636
10637 2018-01-17 Tom Tromey <tom@tromey.com>
10638 Simon Marchi <simon.marchi@ericsson.com>
10639
10640 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
10641 (dwarf2_per_objfile::free_cached_comp_units)
10642 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10643 (init_cutu_and_read_dies_no_follow): Update.
10644 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
10645 (dwarf2_cu::~dwarf2_cu): New.
10646 (free_heap_comp_unit, free_stack_comp_unit): Remove.
10647 (age_cached_comp_units, free_one_cached_comp_unit): Update.
10648
10649 2018-01-17 Tom Tromey <tom@tromey.com>
10650 Simon Marchi <simon.marchi@ericsson.com>
10651
10652 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
10653 (struct die_reader_specs) <abbrev_table>: New member.
10654 (struct abbrev_table): Add constructor.
10655 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
10656 <abbrev_obstack>: Now an auto_obstack.
10657 (abbrev_table_up): New typedef.
10658 (init_cu_die_reader): Add abbrev_table parameter.
10659 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
10660 Add result_dwo_abbrev_table.
10661 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10662 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
10663 Update.
10664 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
10665 parameter.
10666 (skip_children): Update.
10667 (abbrev_table::alloc_abbrev): Rename from
10668 abbrev_table_alloc_abbrev.
10669 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
10670 (abbrev_table::lookup_abbrev): Rename from
10671 abbrev_table_lookup_abbrev.
10672 (abbrev_table_read_table): Return abbrev_table_up.
10673 (abbrev_table_free, abbrev_table_free_cleanup)
10674 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
10675 (load_partial_dies): Update.
10676
10677 2018-01-17 Tom Tromey <tom@tromey.com>
10678
10679 * dwarf2read.c (dwarf2_compute_name): Update comment.
10680 (read_func_scope, read_variable): Update.
10681 (new_symbol): Remove.
10682 (new_symbol_full): Rename to new_symbol.
10683
10684 2018-01-17 Mike Gulick <mgulick@mathworks.com>
10685
10686 PR gdb/16577
10687 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
10688 a warning instead of throwing an error, set section size to 0 and return
10689 NULL.
10690 * gdb_bfd.h (gdb_bfd_map_section): Update description.
10691
10692 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10693
10694 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
10695 std::string.
10696 (linux_ptrace_attach_fail_reason_string): Likewise.
10697 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
10698 Likewise.
10699 (linux_ptrace_attach_fail_reason_string): Likewise.
10700 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
10701
10702 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10703
10704 * linux-nat.c (linux_nat_attach): Remove xstrdup.
10705
10706 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
10707
10708 PR gdb/21559
10709 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
10710 checking for fs_base/gs_base fields in struct user_regs_struct.
10711 * configure: Regenerate.
10712
10713 2018-01-17 Yao Qi <yao.qi@linaro.org>
10714
10715 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
10716 function.
10717 (aarch64_linux_init_abi): Install it to gdbarch hook
10718 gcc_target_options.
10719
10720 2018-01-15 Pedro Alves <palves@redhat.com>
10721
10722 * common/signals-state-save-restore.c
10723 (save_original_signals_state): Fix typos.
10724
10725 2017-01-12 Tom Tromey <tom@tromey.com>
10726 Sergio Durigan Junior <sergiodj@redhat.com>
10727
10728 * Makefile.in (install-only): Install gdb-add-index.
10729
10730 2018-01-12 John Baldwin <jhb@FreeBSD.org>
10731
10732 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
10733
10734 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10735
10736 * infrun.c (keep_going_pass_signal): Clear step-over info when
10737 insert_breakpoints fails.
10738
10739 2018-01-11 Pedro Alves <palves@redhat.com>
10740
10741 PR gdb/22583
10742 * infrun.c (resume): Rename to ...
10743 (resume_1): ... this.
10744 (resume): Reimplement as wrapper around resume_1.
10745
10746 2018-01-11 Pedro Alves <palves@redhat.com>
10747
10748 PR remote/22597
10749 * remote.c (remote_parse_stop_reply): Default to the last-set
10750 general thread instead of to 'magic_null_ptid'.
10751
10752 2018-01-10 Pedro Alves <palves@redhat.com>
10753
10754 * language.h (language_get_symbol_name_matcher): Rename ...
10755 (get_symbol_name_matcher): ... this.
10756 * language.c (language_get_symbol_name_matcher): Ditto.
10757 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
10758 callers adjusted.
10759
10760 2018-01-10 Pedro Alves <palves@redhat.com>
10761
10762 PR gdb/22670
10763 * dwarf2read.c
10764 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
10765 Adjust to use language_get_symbol_name_matcher instead of
10766 language_defn::la_get_symbol_name_matcher.
10767 * language.c (language_get_symbol_name_matcher): If in Ada mode
10768 and the lookup name is a verbatim match, return Ada's matcher.
10769 * language.h (language_get_symbol_name_matcher): Adjust comment.
10770 (ada_lookup_name_info::verbatim_p):: New method.
10771
10772 2018-01-10 Pedro Alves <palves@redhat.com>
10773
10774 PR gdb/22670
10775 * ada-lang.c (ada_collect_symbol_completion_matches): If the
10776 minsym's language is language_auto or language_cplus, pass down
10777 language_ada instead.
10778 * symtab.c (compare_symbol_name): Don't frob symbol language here.
10779
10780 2018-01-10 Pedro Alves <palves@redhat.com>
10781
10782 PR gdb/22670
10783 * minsyms.c (linkage_name_str): New function.
10784 (iterate_over_minimal_symbols): Use it.
10785
10786 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10787
10788 * NEWS: Document that 'info proc' now works on FreeBSD.
10789
10790 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10791
10792 * configure.ac: Check for kinfo_getfile in libutil.
10793 * configure: Regenerate.
10794 * config.in: Regenerate.
10795 * fbsd-nat.c: Include "fbsd-tdep.h".
10796 (fbsd_fetch_cmdline): New.
10797 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
10798 rather than calling error.
10799 (fbsd_info_proc): New.
10800 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
10801 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
10802 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
10803
10804 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10805
10806 * fbsd-nat.c (struct free_deleter): Remove.
10807 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
10808
10809 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10810
10811 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
10812 NULL for an empty pathname.
10813
10814 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10815
10816 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
10817 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
10818 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10819 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10820 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
10821 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
10822 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
10823 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
10824 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
10825 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
10826 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
10827 (fbsd_core_fetch_timeval, fbsd_print_sigset)
10828 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
10829 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
10830 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
10831
10832 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10833
10834 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
10835 (gnu_xfer_auxv): New function.
10836 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
10837 TARGET_OBJECT_AUXV.
10838
10839 2018-01-08 Yao Qi <yao.qi@linaro.org>
10840 Simon Marchi <simon.marchi@ericsson.com>
10841
10842 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
10843 common/selftest.c.
10844 (COMMON_OBS): Remove selftest.o.
10845 * configure.ac: Append selftest-arch.c and common/selftest.c to
10846 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
10847 * configure: Re-generated.
10848 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
10849 GDB_SELF_TEST.
10850 (maintenance_info_selftests): Likewise.
10851
10852 2018-01-08 Xavier Roirand <roirand@adacore.com>
10853
10854 * ada-valprint.c (val_print_packed_array_elements): Use
10855 proper number of elements when printing an array indexed
10856 by an enumeration type.
10857
10858 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10859
10860 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
10861 (dw2_get_file_names_reader): Adjust.
10862 (lookup_dwo_signatured_type): Adjust.
10863 (lookup_dwp_signatured_type): Adjust.
10864 (lookup_signatured_type): Adjust.
10865 (create_type_unit_group): Adjust.
10866 (get_type_unit_group): Adjust.
10867 (process_psymtab_comp_unit_reader): Adjust.
10868 (build_type_psymtabs_reader): Adjust.
10869 (scan_partial_symbols): Adjust.
10870 (add_partial_symbol): Adjust.
10871 (add_partial_subprogram): Adjust.
10872 (peek_die_abbrev): Adjust.
10873 (fixup_go_packaging): Adjust.
10874 (process_imported_unit_die): Adjust.
10875 (dwarf2_compute_name): Adjust.
10876 (dwarf2_physname): Adjust.
10877 (read_import_statement): Adjust.
10878 (handle_DW_AT_stmt_list): Adjust.
10879 (read_file_scope): Adjust.
10880 (read_func_scope): Adjust.
10881 (read_lexical_block_scope): Adjust.
10882 (read_call_site_scope): Adjust.
10883 (read_variable): Adjust.
10884 (dwarf2_rnglists_process): Adjust.
10885 (dwarf2_ranges_process): Adjust.
10886 (dwarf2_ranges_read): Adjust.
10887 (dwarf2_get_pc_bounds): Adjust.
10888 (dwarf2_record_block_ranges): Adjust.
10889 (dwarf2_add_field): Adjust.
10890 (dwarf2_add_member_fn): Adjust.
10891 (read_structure_type): Adjust.
10892 (process_structure_scope): Adjust.
10893 (read_enumeration_type): Adjust.
10894 (read_array_type): Adjust.
10895 (mark_common_block_symbol_computed): Adjust.
10896 (read_common_block): Adjust.
10897 (read_namespace_type): Adjust.
10898 (read_namespace): Adjust.
10899 (read_module_type): Adjust.
10900 (read_tag_pointer_type): Adjust.
10901 (read_tag_ptr_to_member_type): Adjust.
10902 (read_tag_string_type): Adjust.
10903 (read_subroutine_type): Adjust.
10904 (read_typedef): Adjust.
10905 (read_base_type): Adjust.
10906 (attr_to_dynamic_prop): Adjust.
10907 (read_subrange_type): Adjust.
10908 (read_unspecified_type): Adjust.
10909 (dwarf2_read_abbrevs): Adjust.
10910 (load_partial_dies): Adjust.
10911 (read_partial_die): Adjust.
10912 (find_partial_die): Adjust.
10913 (guess_partial_die_structure_name): Adjust.
10914 (fixup_partial_die): Adjust.
10915 (read_attribute_value): Adjust.
10916 (read_addr_index): Adjust.
10917 (read_addr_index_from_leb128): Adjust.
10918 (read_str_index): Adjust.
10919 (dwarf2_string_attr): Adjust.
10920 (get_debug_line_section): Adjust.
10921 (dwarf_decode_line_header): Adjust.
10922 (lnp_state_machine::check_line_address): Adjust.
10923 (dwarf_decode_lines_1): Adjust.
10924 (dwarf_decode_lines): Adjust.
10925 (dwarf2_start_symtab): Adjust.
10926 (var_decode_location): Adjust.
10927 (new_symbol_full): Adjust.
10928 (dwarf2_const_value_data): Adjust.
10929 (dwarf2_const_value_attr): Adjust.
10930 (dwarf2_const_value): Adjust.
10931 (die_type): Adjust.
10932 (die_containing_type): Adjust.
10933 (build_error_marker_type): Adjust.
10934 (lookup_die_type): Adjust.
10935 (guess_full_die_structure_name): Adjust.
10936 (anonymous_struct_prefix): Adjust.
10937 (determine_prefix): Adjust.
10938 (dwarf2_name): Adjust.
10939 (follow_die_ref_or_sig): Adjust.
10940 (follow_die_offset): Adjust.
10941 (follow_die_ref): Adjust.
10942 (follow_die_sig_1): Adjust.
10943 (follow_die_sig): Adjust.
10944 (get_signatured_type): Adjust.
10945 (get_DW_AT_signature_type): Adjust.
10946 (decode_locdesc): Adjust.
10947 (dwarf_decode_macros): Adjust.
10948 (cu_debug_loc_section): Adjust.
10949 (fill_in_loclist_baton): Adjust.
10950 (dwarf2_symbol_mark_computed): Adjust.
10951 (init_one_comp_unit): Don't assign
10952 dwarf2_cu::dwarf2_per_objfile.
10953 (set_die_type): Adjust.
10954
10955 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10956
10957 * dwarf2read.c (struct mapped_debug_names): Add constructor.
10958 <dwarf2_per_objfile>: New field.
10959 (dwarf2_per_objfile): Remove global.
10960 (get_dwarf2_per_objfile): New function.
10961 (set_dwarf2_per_objfile): New function.
10962 (dwarf2_build_psymtabs_hard): Change objfile parameter to
10963 dwarf2_per_objfile.
10964 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
10965 (read_abbrev_offset): Likewise.
10966 (read_indirect_string): Likewise.
10967 (read_indirect_line_string): Likewise.
10968 (read_indirect_string_at_offset): Likewise.
10969 (read_indirect_string_from_dwz): Likewise.
10970 (dwarf2_find_containing_comp_unit): Change objfile parameter to
10971 dwarf2_per_objfile.
10972 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
10973 (create_all_comp_units): Change objfile parameter to
10974 dwarf2_per_objfile.
10975 (create_all_type_units): Likewise.
10976 (process_queue): Add dwarf2_per_objfile parameter.
10977 (read_and_check_comp_unit_head): Likewise.
10978 (lookup_dwo_unit_in_dwp): Likewise.
10979 (get_dwp_file): Likewise.
10980 (process_cu_includes): Likewise.
10981 (struct free_dwo_file_cleanup_data): New struct.
10982 (dwarf2_has_info): Use get_dwarf2_per_objfile and
10983 set_dwarf2_per_objfile.
10984 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
10985 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
10986 context, adjust calls.
10987 (dw2_instantiate_symtab): Likewise.
10988 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
10989 (dw2_get_cu): Likewise.
10990 (create_cu_from_index_list): Change objfile parameter to
10991 dwarf2_per_objfile.
10992 (create_cus_from_index_list): Get dwarf2_per_objfile from
10993 context, adjust calls.
10994 (create_cus_from_index): Likewise.
10995 (create_signatured_type_table_from_index): Change objfile
10996 parameter to dwarf2_per_objfile.
10997 (create_signatured_type_table_from_debug_names): Change objfile
10998 parameter to dwarf2_per_objfile.
10999 (create_addrmap_from_index): Likewise.
11000 (create_addrmap_from_aranges): Likewise.
11001 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11002 (dw2_setup): Remove.
11003 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11004 context.
11005 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11006 get_dwarf2_per_objfile.
11007 (dw2_forget_cached_source_info): Likewise.
11008 (dw2_map_symtabs_matching_filename): Likewise.
11009 (struct dw2_symtab_iterator) <index>: Remove.
11010 <dwarf2_per_objfile>: New field.
11011 (dw2_symtab_iter_init): Replace index parameter with
11012 dwarf2_per_objfile.
11013 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11014 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11015 (dw2_print_stats): Likewise.
11016 (dw2_dump): Likewise.
11017 (dw2_expand_symtabs_for_function): Likewise.
11018 (dw2_expand_all_symtabs): Likewise.
11019 (dw2_expand_symtabs_with_fullname): Likewise.
11020 (dw2_expand_marked_cus): Replace index and objfile parameters
11021 with dwarf2_per_objfile.
11022 (dw_expand_symtabs_matching_file_matcher): Add
11023 dwarf2_per_objfile parameter and adjust calls.
11024 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
11025 adjust calls.
11026 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
11027 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
11028 adjust calls.
11029 (create_cus_from_debug_names_list): Replace objfile parameter
11030 with dwarf2_per_objfile and adjust calls.
11031 (create_cus_from_debug_names): Likewise.
11032 (dwarf2_read_debug_names): Likewise.
11033 (mapped_debug_names::namei_to_name): Adjust call.
11034 (dw2_debug_names_iterator::next): Likewise.
11035 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
11036 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
11037 (dw2_debug_names_dump): Likewise.
11038 (dw2_debug_names_expand_symtabs_for_function): Likewise.
11039 (dw2_debug_names_expand_symtabs_matching): Likewise.
11040 (dwarf2_initialize_objfile): Likewise.
11041 (dwarf2_build_psymtabs): Likewise.
11042 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
11043 this_cu.
11044 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
11045 (read_and_check_comp_unit_head): Likewise.
11046 (read_abbrev_offset): Likewise.
11047 (create_debug_type_hash_table): Likewise.
11048 (create_debug_types_hash_table): Likewise.
11049 (create_all_type_units): Replace objfile parameter with
11050 dwarf2_per_objfile.
11051 (add_type_unit): Add dwarf2_per_objfile parameter.
11052 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
11053 with dwarf2_per_objfile.
11054 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
11055 (lookup_dwp_signatured_type): Likewise.
11056 (lookup_signatured_type): Likewise.
11057 (read_cutu_die_from_dwo): Likewise.
11058 (init_tu_and_read_dwo_dies): Likewise.
11059 (init_cutu_and_read_dies): Likewise.
11060 (init_cutu_and_read_dies_no_follow): Likewise.
11061 (allocate_type_unit_groups_table): Add objfile parameter.
11062 (create_type_unit_group): Use dwarf2_per_objfile from cu.
11063 (get_type_unit_group): Likewise.
11064 (process_psymtab_comp_unit): Update call.
11065 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
11066 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
11067 (print_tu_stats): Likewise.
11068 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
11069 in void* parameter.
11070 (build_type_psymtabs): Change objfile parameter to
11071 dwarf2_per_objfile.
11072 (process_skeletonless_type_unit): Use dwarf2_per_objfile
11073 passed in void* parameter.
11074 (process_skeletonless_type_units): Change objfile parameter to
11075 dwarf2_per_objfile.
11076 (set_partial_user): Likewise.
11077 (dwarf2_build_psymtabs_hard): Likewise.
11078 (read_comp_units_from_section): Likewise.
11079 (create_all_comp_units): Likewise.
11080 (scan_partial_symbols): Update calls.
11081 (add_partial_symbol): Likewise.
11082 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
11083 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
11084 (process_queue): Add dwarf2_per_objfile parameter.
11085 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
11086 (compute_compunit_symtab_includes): Likewise.
11087 (process_cu_includes): Add dwarf2_per_objfile parameter.
11088 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
11089 (process_full_type_unit): Likewise.
11090 (process_imported_unit_die): Update call.
11091 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
11092 (read_file_scope): Likewise.
11093 (allocate_dwo_file_hash_table): Add objfile parameter.
11094 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
11095 (create_cus_hash_table): Likewise.
11096 (create_dwp_hash_table): Likewise.
11097 (create_dwo_unit_in_dwp_v1): Likewise.
11098 (create_dwp_v2_section): Likewise.
11099 (create_dwo_unit_in_dwp_v2): Likewise.
11100 (lookup_dwo_unit_in_dwp): Likewise.
11101 (try_open_dwop_file): Likewise.
11102 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
11103 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
11104 cleanup to include a reference to dwarf2_per_objfile.
11105 (open_dwp_file): Add dwarf2_per_objfile parameter.
11106 (open_and_init_dwp_file): Likewise.
11107 (get_dwp_file): Likewise.
11108 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
11109 (queue_and_load_all_dwo_tus): Update call.
11110 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
11111 data.
11112 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
11113 (dwarf2_ranges_process): Likewise.
11114 (dwarf2_get_pc_bounds): Likewise.
11115 (mark_common_block_symbol_computed): Likewise.
11116 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11117 (dwarf2_read_abbrevs): Update call.
11118 (read_partial_die): Use dwarf2_per_objfile from cu.
11119 (find_partial_die): Likewise.
11120 (fixup_partial_die): Likewise.
11121 (read_attribute_value): Likewise.
11122 (read_indirect_string_at_offset_from): Add objfile parameter.
11123 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11124 parameter.
11125 (read_indirect_string_from_dwz): Add objfile parameter.
11126 (read_indirect_string): Add objfile parameter.
11127 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11128 (read_addr_index): Use dwarf2_per_objfile from cu.
11129 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11130 call dw2_setup.
11131 (read_str_index): Use dwarf2_per_objfile from cu.
11132 (get_debug_line_section): Likewise.
11133 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11134 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11135 (new_symbol_full): Use dwarf2_per_objfile from cu.
11136 (build_error_marker_type): Likewise.
11137 (lookup_die_type): Likewise.
11138 (determine_prefix): Likewise.
11139 (follow_die_offset): Likewise.
11140 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11141 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11142 (dwarf2_fetch_die_type_sect_off): Likewise.
11143 (dwarf2_get_die_type): Likewise.
11144 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11145 (get_signatured_type): Likewise.
11146 (get_DW_AT_signature_type): Likewise.
11147 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11148 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11149 (cu_debug_loc_section): Likewise.
11150 (fill_in_loclist_baton): Likewise.
11151 (dwarf2_symbol_mark_computed): Likewise.
11152 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11153 dwarf2_per_objfile.
11154 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11155 parameter.
11156 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11157 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11158 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11159 (set_die_type): Use dwarf2_free_objfile from cu.
11160 (get_die_type_at_offset): Likewise.
11161 (dwarf2_per_objfile_free): Don't assign global variable.
11162 (debug_names) <constructor>: Add dwarf2_per_objfile
11163 parameter, update m_debugstrlookup construction.
11164 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11165 parameter.
11166 <m_dwarf2_per_objfile>: New field.
11167 <lookup>: Use m_dwarf2_per_objfile.
11168 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11169 (psyms_seen_size): Likewise.
11170 (write_gdbindex): Replace objfile parameter with
11171 dwarf2_per_objfile.
11172 (write_debug_names): Likewise.
11173 (write_psymtabs_to_index): Likewise.
11174 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11175 calls.
11176
11177 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11178
11179 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11180 <dwarf2_per_objfile>: New field.
11181 (struct dwarf2_per_cu_data) <objfile>: Remove.
11182 <dwarf2_per_objfile>: New field.
11183 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11184 of objfile.
11185 (create_signatured_type_table_from_index): Likewise.
11186 (create_debug_type_hash_table): Likewise.
11187 (fill_in_sig_entry_from_dwo_entry): Likewise.
11188 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11189 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11190 objfile.
11191 (create_partial_symtab): Access objfile through
11192 dwarf2_per_objfile.
11193 (process_psymtab_comp_unit_reader): Likewise.
11194 (read_comp_units_from_section): Likewise.
11195 (scan_partial_symbols): Likewise.
11196 (add_partial_symbol): Likewise.
11197 (add_partial_subprogram): Likewise.
11198 (peek_die_abbrev): Likewise.
11199 (fixup_go_packaging): Likewise.
11200 (process_full_comp_unit): Likewise.
11201 (process_full_type_unit): Likewise.
11202 (process_imported_unit_die): Likewise.
11203 (dwarf2_compute_name): Likewise.
11204 (dwarf2_physname): Likewise.
11205 (read_import_statement): Likewise.
11206 (create_cus_hash_table): Assign dwarf2_physname instead of
11207 objfile.
11208 (read_func_scope): Access objfile through dwarf2_per_objfile.
11209 (read_lexical_block_scope): Likewise.
11210 (read_call_site_scope): Likewise.
11211 (read_variable): Likewise.
11212 (dwarf2_rnglists_process): Likewise.
11213 (dwarf2_ranges_process): Likewise.
11214 (dwarf2_ranges_read): Likewise.
11215 (dwarf2_record_block_ranges): Likewise.
11216 (dwarf2_add_field): Likewise.
11217 (dwarf2_add_member_fn): Likewise.
11218 (read_structure_type): Likewise.
11219 (process_structure_scope): Likewise.
11220 (read_enumeration_type): Likewise.
11221 (read_array_type): Likewise.
11222 (read_common_block): Likewise.
11223 (read_namespace_type): Likewise.
11224 (read_namespace): Likewise.
11225 (read_module_type): Likewise.
11226 (read_tag_pointer_type): Likewise.
11227 (read_tag_ptr_to_member_type): Likewise.
11228 (read_tag_string_type): Likewise.
11229 (read_subroutine_type): Likewise.
11230 (read_typedef): Likewise.
11231 (read_base_type): Likewise.
11232 (attr_to_dynamic_prop): Likewise.
11233 (read_subrange_type): Likewise.
11234 (read_unspecified_type): Likewise.
11235 (load_partial_dies): Likewise.
11236 (read_partial_die): Likewise.
11237 (find_partial_die): Likewise.
11238 (guess_partial_die_structure_name): Likewise.
11239 (fixup_partial_die): Likewise.
11240 (read_attribute_value): Likewise.
11241 (read_addr_index_from_leb128): Likewise.
11242 (dwarf2_read_addr_index): Likewise.
11243 (dwarf2_string_attr): Likewise.
11244 (lnp_state_machine::check_line_address): Likewise.
11245 (dwarf_decode_lines_1): Likewise.
11246 (dwarf_decode_lines): Likewise.
11247 (dwarf2_start_symtab): Likewise.
11248 (var_decode_location): Likewise.
11249 (new_symbol_full): Likewise.
11250 (dwarf2_const_value_data): Likewise.
11251 (dwarf2_const_value_attr): Likewise.
11252 (dwarf2_const_value): Likewise.
11253 (die_type): Likewise.
11254 (die_containing_type): Likewise.
11255 (lookup_die_type): Likewise.
11256 (guess_full_die_structure_name): Likewise.
11257 (anonymous_struct_prefix): Likewise.
11258 (dwarf2_name): Likewise.
11259 (follow_die_ref_or_sig): Likewise.
11260 (follow_die_offset): Likewise.
11261 (follow_die_ref): Likewise.
11262 (dwarf2_fetch_die_loc_sect_off): Likewise.
11263 (dwarf2_fetch_constant_bytes): Likewise.
11264 (dwarf2_fetch_die_type_sect_off): Likewise.
11265 (dwarf2_get_die_type): Likewise.
11266 (follow_die_sig): Likewise.
11267 (decode_locdesc): Likewise.
11268 (dwarf2_per_cu_objfile): Likewise.
11269 (dwarf2_per_cu_text_offset): Likewise.
11270 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11271 objfile.
11272 (set_die_type): Access objfile through
11273 dwarf2_per_objfile.
11274
11275 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11276
11277 * valprint.c (converted_character_d): Remove typedef.
11278 (DEF_VEC_O (converted_character_d)): Remove.
11279 (count_next_character): Use std::vector.
11280 (print_converted_chars_to_obstack): Likewise.
11281 (generic_printstr): Likewise.
11282
11283 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11284
11285 * xml-support.h (struct gdb_xml_value): Add constructor.
11286 <value>: Change type to unique_xmalloc_ptr.
11287 (gdb_xml_value_s): Remove typedef.
11288 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11289 (gdb_xml_element_start_handler): Change parameter type to
11290 std::vector.
11291 (xml_find_attribute): Likewise.
11292 * xml-support.c (xml_find_attribute): Change parameter type to
11293 std::vector and adjust.
11294 (gdb_xml_values_cleanup): Remove.
11295 (gdb_xml_parser::start_element): Adjust to std::vector.
11296 (xinclude_start_include): Change paraeter type to std::vector
11297 and adjust.
11298 * btrace.c (check_xml_btrace_version): Likewise.
11299 (parse_xml_btrace_block): Likewise.
11300 (parse_xml_btrace_pt_config_cpu): Likewise.
11301 (parse_xml_btrace_pt): Likewise.
11302 (parse_xml_btrace_conf_bts): Likewise.
11303 (parse_xml_btrace_conf_pt): Likewise.
11304 * memory-map.c (memory_map_start_memory): Likewise.
11305 (memory_map_start_property): Likewise.
11306 * osdata.c (osdata_start_osdata): Likewise.
11307 (osdata_start_item): Likewise.
11308 (osdata_start_column): Likewise.
11309 * remote.c (start_thread): Likewise.
11310 * solib-aix.c (library_list_start_library): Likewise.
11311 (library_list_start_list): Likewise.
11312 * solib-svr4.c (library_list_start_library): Likewise.
11313 (svr4_library_list_start_list): Likewise.
11314 * solib-target.c (library_list_start_segment): Likewise.
11315 (library_list_start_section): Likewise.
11316 (library_list_start_library): Likewise.
11317 (library_list_start_list): Likewise.
11318 * tracepoint.c (traceframe_info_start_memory): Likewise.
11319 (traceframe_info_start_tvar): Likewise.
11320 * xml-syscall.c (syscall_start_syscall): Likewise.
11321 * xml-tdesc.c (tdesc_start_target): Likewise.
11322 (tdesc_start_feature): Likewise.
11323 (tdesc_start_reg): Likewise.
11324 (tdesc_start_union): Likewise.
11325 (tdesc_start_struct): Likewise.
11326 (tdesc_start_flags): Likewise.
11327 (tdesc_start_enum): Likewise.
11328 (tdesc_start_field): Likewise.
11329 (tdesc_start_enum_value): Likewise.
11330 (tdesc_start_vector): Likewise.
11331
11332 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11333
11334 * extension.h (struct xmethod_worker) <clone>: Remove.
11335 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11336 Remove.
11337 (python_xmethod_worker::clone): Remove.
11338 * valops.c (find_overload_match): Use std::move instead of
11339 clone.
11340
11341 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11342
11343 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11344 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11345 <free_xmethod_worker_data>: Remove.
11346 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11347 <get_xmethod_arg_types>: Remove.
11348 <get_xmethod_result_type>: Remove.
11349 <invoke_xmethod>: Remove.
11350 * extension.c (new_xmethod_worker): Remove.
11351 (clone_xmethod_worker): Remove.
11352 (get_matching_xmethod_workers): Return void, pass std::vector by
11353 pointer.
11354 (get_xmethod_arg_types): Rename to...
11355 (xmethod_worker::get_arg_types): ... this, and adjust.
11356 (get_xmethod_result_type): Rename to...
11357 (xmethod_worker::get_result_type): ... this, and adjust.
11358 (invoke_xmethod): Remove.
11359 (free_xmethod_worker): Remove.
11360 (free_xmethod_worker_vec): Remove.
11361 * extension.h (enum ext_lang_rc): Move here from
11362 extension-priv.h.
11363 (struct xmethod_worker): Add constructor and destructor.
11364 <data>: Remove.
11365 <value>: Remove.
11366 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11367 virtual pure methods.
11368 <get_arg_types, get_result_type>: New methods.
11369 (xmethod_worker_ptr): Remove typedef.
11370 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11371 (xmethod_worker_vec): Remove typedef.
11372 (xmethod_worker_up): New typedef.
11373 (invoke_xmethod): Remove.
11374 (clone_xmethod_worker): Remove.
11375 (free_xmethod_worker): Remove.
11376 (free_xmethod_worker_vec): Remove.
11377 (get_xmethod_arg_types): Remove.
11378 (get_xmethod_result_type): Remove.
11379 * valops.c (find_method_list): Use std::vector, don't use
11380 intermediate vector.
11381 (value_find_oload_method_list): Use std::vector.
11382 (find_overload_match): Use std::vector.
11383 (find_oload_champ): Use std::vector.
11384 * value.c (value_free): Use operator delete.
11385 (value_of_xmethod): Rename to...
11386 (value_from_xmethod): ... this. Don't assign
11387 xmethod_worker::value, take rvalue-reference.
11388 (result_type_of_xmethod): Adjust.
11389 (call_xmethod): Adjust.
11390 * value.h: Include extension.h.
11391 (struct xmethod_worker): Don't forward-declare.
11392 (value_of_xmethod): Rename to...
11393 (value_from_xmethod): ... this, take rvalue-reference.
11394 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11395 (struct python_xmethod_worker): ... this, add constructor and
11396 destructor.
11397 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11398 (gdbpy_free_xmethod_worker_data): Rename to...
11399 (python_xmethod_worker::~python_xmethod_worker): ... this and
11400 adjust.
11401 (gdbpy_clone_xmethod_worker_data): Rename to...
11402 (python_xmethod_worker::clone): ... this and adjust.
11403 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11404 temporary vector.
11405 (gdbpy_get_xmethod_arg_types): Rename to...
11406 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11407 (gdbpy_get_xmethod_result_type): Rename to...
11408 (python_xmethod_worker::do_get_result_type): ... this and
11409 adjust.
11410 (gdbpy_invoke_xmethod): Rename to...
11411 (python_xmethod_worker::invoke): ... this and adjust.
11412 (new_python_xmethod_worker): Rename to...
11413 (python_xmethod_worker::python_xmethod_worker): ... this and
11414 adjust.
11415 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11416 Remove.
11417 (gdbpy_free_xmethod_worker_data): Remove.
11418 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11419 (gdbpy_get_xmethod_arg_types): Remove.
11420 (gdbpy_get_xmethod_result_type): Remove.
11421 (gdbpy_invoke_xmethod): Remove.
11422 * python/python.c (python_extension_ops): Remove obsolete
11423 callbacks.
11424
11425 2018-01-05 Pedro Alves <palves@redhat.com>
11426
11427 PR gdb/18653
11428 * common/signals-state-save-restore.c
11429 (save_original_signals_state): New parameter 'quiet'. Warn if we
11430 find a custom handler preinstalled, instead of internal erroring.
11431 But only warn if !quiet.
11432 * common/signals-state-save-restore.h
11433 (save_original_signals_state): New parameter 'quiet'.
11434 * main.c (captured_main_1): Move save_original_signals_state call
11435 after option handling, and pass QUIET.
11436
11437 2018-01-05 Pedro Alves <palves@redhat.com>
11438
11439 * spu-tdep.c (spu_catch_start): Pass
11440 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11441
11442 2018-01-05 Pedro Alves <palves@redhat.com>
11443
11444 PR gdb/22670
11445 * ada-lang.c (literal_symbol_name_matcher): New function.
11446 (ada_get_symbol_name_matcher): Use it for
11447 symbol_name_match_type::SEARCH_NAME.
11448 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11449 it down instead of assuming symbol_name_match_type::FULL.
11450 * block.h (block_lookup_symbol): New parameter 'match_type'.
11451 * c-valprint.c (print_unpacked_pointer): Use
11452 lookup_symbol_search_name instead of lookup_symbol.
11453 * compile/compile-object-load.c (get_out_value_type): Pass down
11454 symbol_name_match_type::SEARCH_NAME.
11455 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11456 symbol_name_match_type::FULL.
11457 * cp-support.c (cp_get_symbol_name_matcher): Handle
11458 symbol_name_match_type::SEARCH_NAME.
11459 * infrun.c (insert_exception_resume_breakpoint): Use
11460 lookup_symbol_search_name.
11461 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11462 * psymtab.c (maintenance_check_psymtabs): Use
11463 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11464 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11465 SYMBOL_SEARCH_NAME.
11466 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11467 if symbol_name_match_type::SEARCH_NAME.
11468 (lookup_symbol_in_language): Pass down
11469 symbol_name_match_type::FULL.
11470 (lookup_symbol_search_name): New.
11471 (lookup_language_this): Pass down
11472 symbol_name_match_type::SEARCH_NAME.
11473 (lookup_symbol_aux, lookup_local_symbol): New parameter
11474 'match_type'. Pass it down.
11475 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11476 (lookup_symbol_search_name): New declaration.
11477 (lookup_symbol_in_block): New 'match_type' parameter.
11478
11479 2018-01-05 Pedro Alves <palves@redhat.com>
11480
11481 PR gdb/22670
11482 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11483 ada_lookup_symbol.
11484 (ada_lookup_symbol): Reimplement in terms of
11485 ada_lookup_symbol_list, bits factored out from
11486 ada_lookup_encoded_symbol.
11487
11488 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11489
11490 * ada-exp.y (write_object_renaming): When subscripting an array
11491 using a symbol as the index, pass the block in call to
11492 ada_lookup_encoded_symbol when looking that symbol up.
11493
11494 2018-01-05 Jerome Guitton <guitton@adacore.com>
11495
11496 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11497 TYPE_INDEX_TYPE.
11498
11499 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11500
11501 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11502 the case where VALUE_LVAL (val0) is not lval_memory.
11503
11504 2018-01-05 Xavier Roirand <roirand@adacore.com>
11505
11506 * ada-valprint.c (print_optional_low_bound): Handle
11507 character-indexed array printing like boolean-indexed array
11508 printing.
11509
11510 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11511
11512 * NEWS: Create a new section for the next release branch.
11513 Rename the section of the current branch, now that it has
11514 been cut.
11515
11516 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11517
11518 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11519 * version.in: Bump version to 8.1.50.DATE-git.
11520
11521 2018-01-03 Xavier Roirand <roirand@adacore.com>
11522
11523 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11524 Add field.
11525 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11526 Add field.
11527 (default_exception_support_info) <catch_handlers_sym>: Add field.
11528 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11529 (ada_exception_name_addr_1): Add "catch handlers" handling.
11530 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11531 Update all callers.
11532 (create_excep_cond_exprs) <ex>: Add parameter.
11533 (re_set_exception): Update create_excep_cond_exprs call.
11534 (print_it_exception, print_one_exception, print_mention_exception)
11535 (print_recreate_exception): Add "catch handler" handling.
11536 (allocate_location_catch_handlers, re_set_catch_handlers)
11537 (check_status_catch_handlers, print_it_catch_handlers)
11538 (print_one_catch_handlers, print_mention_catch_handlers)
11539 (print_recreate_catch_handlers): New function.
11540 (catch_handlers_breakpoint_ops): New variable.
11541 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11542 Add parameter. Add "catch handler" handling.
11543 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11544 Add "catch handler" handling.
11545 (ada_exception_catchpoint_cond_string): Add "catch handler"
11546 handling.
11547 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11548 call.
11549 (catch_ada_handlers_command): New function.
11550 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11551 operations structure.
11552 (_initialize_ada_language): Add "catch handlers" command entry.
11553 * NEWS: Document "catch handlers" feature.
11554
11555 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11556
11557 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11558 account when creating the array type of the slice.
11559 (ada_value_slice): Likewise.
11560
11561 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11562
11563 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11564 New enum value.
11565 (create_array_type_with_stride): Add byte_stride_prop parameter.
11566 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11567 New parameter. Update all callers in this file.
11568 (array_type_has_dynamic_stride): New function.
11569 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11570 of arrays with dynamic byte strides.
11571 * dwarf2read.c (read_array_type): Add support for dynamic
11572 DW_AT_byte_stride attributes.
11573
11574 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11575
11576 * dwarf2read.c (read_unspecified_type): Treat
11577 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11578
11579 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11580
11581 Update copyright year range in all GDB files.
11582
11583 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11584
11585 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
11586 and gdb/testsuite/gdb.base/step-line.c.
11587
11588 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11589
11590 * copyright.py (main): Dump the contents of
11591 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
11592 even if BY_HAND is empty.
11593
11594 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11595
11596 * top.c (print_gdb_version): Update Copyright year in version
11597 message.
11598
11599 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11600
11601 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
11602
11603 For older changes see ChangeLog-2017.
11604 \f
11605 Local Variables:
11606 mode: change-log
11607 left-margin: 8
11608 fill-column: 74
11609 version-control: never
11610 coding: utf-8
11611 End:
This page took 0.329104 seconds and 4 git commands to generate.