Rename size in get_core_register_section
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dbd534fe
AH
12018-08-10 Alan Hayward <alan.hayward@arm.com>
2
3 * corelow.c (core_target::get_core_register_section): Rename
4 min_size to section_min_size.
5
90ad3654
JW
62018-08-09 Jim Wilson <jimw@sifive.com>
7
52a187f8
JW
8 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
9 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
10 * NEWS: Mention new GNU/Linux RISC-V target.
11 * configure.host: Add riscv*-*-linux*.
12 * configure.nat: Add riscv*.
13 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 14 * riscv-linux-nat.c: New file.
90ad3654
JW
15 * riscv-linux-tdep.c: New file.
16
aff4e175
AB
172018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * infrun.c (resume): Make static, add forward declaration.
20 (proceed): Update header comment.
21 * infrun.h (resume): Delete declaration.
22
06ab9219
TT
232018-08-09 Tom Tromey <tom@tromey.com>
24
25 * riscv-tdep.h: Minor formatting fixes.
26
83c8d318
SM
272018-08-09 Simon Marchi <simon.marchi@ericsson.com>
28
29 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
30 * dwarf-index-cache.c (create_dir_and_check): Likewise.
31 (test_mkdir_recursive): Likewise.
32 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
33
5ff2bbae
AB
342018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * valarith.c (value_subscripted_rvalue): If an array is not in
37 memory, and we don't know the upper bound, then we can't know that
38 the requested element exists or not.
39
fdbac7d8
SM
402018-08-08 Simon Marchi <simon.marchi@ericsson.com>
41
42 * target.c (str_comma_list_concat_elem): Fix typo in comment.
43 (target_options_to_string): Add comment.
44
83202f7a
TT
452018-08-08 Tom Tromey <tom@tromey.com>
46
47 * unittests/scoped_mmap-selftests.c: Check result of "write".
48
411baa47
JW
492018-08-08 Jim Wilson <jimw@sifive.com>
50
5c720ed8
JW
51 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
52 (decode_register_index_short): New.
53 (decode_j_type_insn, decode_cj_type_insn): New.
54 (decode_b_type_insn, decode_cb_type_insn): New.
55 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
56 local xlen. Check xlen when decoding ambiguous compressed insns. In
57 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
58 is_c_sw_insn instead of is_sw_insn.
59 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
60 (riscv_software_single_step): New.
61 * riscv-tdep.h (riscv_software_single_step): Declare.
62
411baa47
JW
63 * riscv-tdep.c (riscv_isa_xlen): Drop static.
64 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
65
9d4a934c
AB
662018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 PR gdb/18050:
69 * target.c (dispose_inferior): Don't dispose of inferiors that are
70 already killed.
71
ff36536c
SN
722018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
73
74 * remote.c (remote_target::download_tracepoint): Change char* to
75 const char*.
76
09ce46f2
SM
772018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * target.h (target_options_to_string): Return an std::string.
80 * target.c (str_comma_list_concat_elem): Return void, use
81 std::string.
82 (do_option): Likewise.
83 (target_options_to_string): Return an std::string.
84 * linux-nat.c (linux_nat_target::wait): Adjust.
85 * target-debug.h (target_debug_print_options): Adjust.
86
9c612964
TT
872018-08-07 Tom Tromey <tom@tromey.com>
88
89 * Makefile.in (CPPFLAGS): New variable.
90 (INTERNAL_CPPFLAGS): Use it.
91
7d11235d
SM
922018-08-07 Simon Marchi <simon.marchi@ericsson.com>
93
94 * NEWS: Mention the index cache.
95
87d6a7aa
SM
962018-08-07 Simon Marchi <simon.marchi@ericsson.com>
97
98 * common/pathstuff.h (get_standard_cache_dir): New.
99 * common/pathstuff.c (get_standard_cache_dir): New.
100 * build-id.h (build_id_to_string): New.
101 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
102 DEBUG_STR_SUFFIX): Move to here.
103 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
104 DEBUG_STR_SUFFIX): Move from there.
105 (write_psymtabs_to_index): Make non-static, add basename
106 parameter. Write to temporary files, rename when done.
107 (save_gdb_index_command): Adjust call to
108 write_psymtabs_to_index.
109 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
110 field.
111 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
112 (get_gdb_index_contents_from_cache): New.
113 (get_gdb_index_contents_from_cache_dwz): New.
114 (dwarf2_initialize_objfile): Read index from cache.
115 (dwarf2_build_psymtabs): Save to index.
116 * dwarf-index-cache.h: New file.
117 * dwarf-index-cache.c: New file.
118 * dwarf-index-write.h: New file.
119
8a99096f
SM
1202018-08-07 Simon Marchi <simon.marchi@ericsson.com>
121
122 * gnulib/aclocal.m4: Re-generate.
123 * gnulib/config.in: Re-generate.
124 * gnulib/configure: Re-generate.
125 * gnulib/import/Makefile.am: Re-generate.
126 * gnulib/import/Makefile.in: Re-generate.
127 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
128 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
129 * gnulib/import/m4/mkdir.m4: New file.
130 * gnulib/import/mkdir.c: New file.
131 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
132 module.
133
5c831bb1
SM
1342018-08-07 Simon Marchi <simon.marchi@ericsson.com>
135
136 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
137 * common/scoped_mmap.c: New file.
138 * common/scoped_mmap.h (destroy): New method.
139 (~scoped_mmap, reset): Use destroy.
140 (scoped_mmap): New move constructor.
141 (mmap_file): New declaration.
142 * unittests/scoped_mmap-selftests.c (test_normal,
143 test_invalid_filename, run_tests): New functions.
144 (_initialize_scoped_mmap_selftests): Register selftest.
145
4485a1c1
SM
1462018-08-07 Simon Marchi <simon.marchi@ericsson.com>
147
148 * dwarf2read.c (read_gdb_index_from_section): Rename to...
149 (read_gdb_index_from_buffer): ... this. Remove section
150 parameter, add buffer parameter.
151 (get_gdb_index_contents_ftype,
152 get_gdb_index_contents_dwz_ftype): New typedefs.
153 (dwarf2_read_gdb_index): Add callback parameters to get the
154 index contents.
155 (get_gdb_index_contents_from_section): New.
156 (dwarf2_initialize_objfile): Update call to
157 dwarf2_read_gdb_index.
158
528e1572
SM
1592018-08-07 Simon Marchi <simon.marchi@ericsson.com>
160
161 * common/filestuff.h (gdb_fopen_cloexec): New overload.
162 (gdb_open_cloexec): Likewise.
163 * nat/linux-osdata.c (command_from_pid): Use string_printf.
164 (commandline_from_pid): Likewise.
165 (linux_xfer_osdata_threads): Likewise.
166 (linux_xfer_osdata_fds): Likewise.
167 * ada-lang.c (is_package_name): Likewise.
168 * auxv.c (procfs_xfer_auxv): Likewise.
169 * breakpoint.c (print_one_breakpoint_location): Use
170 uiout::field_fmt.
171 (print_one_catch_solib): Use string_printf.
172 * coff-pe-read.c (add_pe_exported_sym): Likewise.
173 (add_pe_forwarded_sym): Likewise.
174 * dwarf2read.c (create_type_unit_group): Likewise.
175 (build_error_marker_type): Likewise.
176 * infcall.c (get_function_name): Likewise.
177 * valprint.c (print_converted_chars_to_obstack): Likewise.
178 * xtensa-tdep.c (xtensa_register_type): Likewise.
179
a7f25a84
SM
1802018-08-06 Simon Marchi <simon.marchi@ericsson.com>
181
182 * remote.c (remote_target::download_tracepoint): Fix format
183 string errors.
184
296956be
PFC
1852018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
186
187 * tracefile.c: Include common/byte-vector.h.
188 (trace_save): Change type of buf to gdb::byte_vector. Initialize
189 with trace_regblock_size if needed. Update uses of buf.
190
a04b9d62
PFC
1912018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
192
193 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
194 std::vector<unsigned char>.
195 * tracepoint.c (collection_list::collection_list): Remove
196 m_regs_mask initializer from initializer list. Resize
197 m_regs_mask using the largest remote register number.
198 (collection_list::add_remote_register): Remove size check on
199 m_regs_mask. Use at to access element.
200 (collection_list::stringify): Change type of temp_buf to
201 gdb::char_vector. Update uses of temp_buf. Resize if needed to
202 stringify the register mask. Use pack_hex_byte for the register
203 mask.
204
4277c4b8
PFC
2052018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
206
207 * tracepoint.h (class collection_list) <add_register>: Remove.
208 <add_remote_register, add_ax_registers, add_local_register>:
209 Declare.
210 <add_memrange>: Add scope parameter.
211 * tracepoint.c (encode_actions_1): Likewise.
212 (collection_list::add_register): Rename to ...
213 (collection_list::add_remote_register): ... this. Update
214 comment.
215 (collection_list::add_ax_registers, add_local_register): New
216 methods.
217 (collection_list::add_memrange): Add scope parameter. Call
218 add_local_register instead of add_register.
219 (finalize_tracepoint_aexpr): New function.
220 (collection_list::collect_symbol): Update calls to add_memrange.
221 Call add_local_register instead of add_register. Call
222 add_ax_registers. Call finalize_tracepoint_aexpr.
223 (encode_actions_1): Get remote regnos for $reg action. Call
224 add_remote_register, add_ax_registers, and add_local_register.
225 Update call to add_memrange. Call finalize_tracepoint_aexpr.
226 (validate_actionline): Call finalize_tracepoint_aexpr.
227
3df3a985
PFC
2282018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
229
230 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
231 Replace array buf with gdb::char_vector buf, of size
232 get_remote_packet_size (). Replace references to buf and
233 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
234 and xsnprintf with snprintf. Raise errors if the buffer is too
235 small.
236
aa6f3694
PFC
2372018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
238
239 * remote.c (remote_target::download_tracepoint): Fix the has_more
240 predicate in the QTDP action list iteration.
241
05abfc39
PFC
2422018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
243
244 * remote.c (remote_target::download_tracepoint): Fix indentation
245 in for block.
246
821a2682
RO
2472018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
248
249 * proc-api.c (_initialize_proc_api): Remove c, unused.
250 * procfs.c (procfs_init_inferior): Remove signals, unused.
251 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
252 unused.
253
95347337
AB
2542018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
255 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
258 'W_STOPCODE (0)' as this could be ambiguous.
259
425699f5
SDJ
2602018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
261
262 * ser-tcp.c (net_open): Fix thinko when deciding whether to
263 disable TCP's Nagle algorithm (use "ai_protocol" instead of
264 "ai_socktype").
265
3e1d3d8c
TT
2662018-08-02 Tom Tromey <tom@tromey.com>
267
268 PR symtab/16842.
269 * dwarf2read.c (read_func_scope): Set symtab on template parameter
270 symbols.
271 (process_structure_scope): Likewise.
272
15843549
XR
2732018-08-02 Xavier Roirand <roirand@adacore.com>
274
275 PR gdb/22629:
276 * darwin-nat.c (darwin_kill_inferior): Fix handling of
277 kill inferior.
278
b5bddbbb
TT
2792018-08-02 Tom Tromey <tom@tromey.com>
280
281 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
282 (darwin_suspend_inferior, darwin_resume_inferior)
283 (darwin_decode_notify_message, darwin_resume_inferior_threads)
284 (darwin_check_new_threads): Check result of get_darwin_inferior.
285
f61cfa07
JB
2862018-07-31 Joel Brobecker <brobecker@adacore.com>
287
288 GDB 8.1.1 released.
289
5abe0f0c
JV
2902018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
291
292 * varobj.c (varobj_get_path_expr_parent): Report an error if
293 parent is a dynamic varobj.
294
472fa5ee
SM
2952018-07-31 Simon Marchi <simon.marchi@ericsson.com>
296
297 * gnulib/aclocal.m4: Re-generate.
298 * gnulib/config.in: Re-generate.
299 * gnulib/configure: Re-generate.
300 * gnulib/import/Makefile.in: Re-generate.
301 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
302 * gnulib/import/m4/onceonly.m4: Re-generate.
303
1c28969e
SM
3042018-07-31 Simon Marchi <simon.marchi@ericsson.com>
305
306 * target-descriptions.c (struct xml_test_tdesc): New.
307 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
308 (record_xml_tdesc): Update.
309 (maintenance_check_xml_descriptions): Update.
310 * target-descriptions.h (record_xml_tdesc): Update comment.
311
c8f2dc0d
AB
3122018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
315 checking array bounds are defined.
316
463c08d1
TT
3172018-07-30 Tom Tromey <tom@tromey.com>
318
319 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
320 irreflexivity violation.
321
dba7455e
TT
3222018-07-30 Tom Tromey <tom@tromey.com>
323
324 * cli/cli-decode.c (lookup_cmd): Remove lint code.
325 * value.c (unpack_long): Remove lint code.
326 * valops.c (value_ind): Remove lint code.
327 * valarith.c (value_x_binop, value_x_unop, value_equal)
328 (value_pos): Remove lint code.
329
37cc0cae
TV
3302018-07-28 Tom de Vries <tdevries@suse.de>
331
332 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
333 with undefined upper bound as <optimized out>.
334
129eb0f1
SDJ
3352018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
336
337 * gcore.in: Rename variable "name" to "prefix". Expand
338 "usage" text.
339
6af79d7b
JT
3402018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
341
342 * windows-nat.c (windows_nat_target::create_inferior): Update to
343 call close() in global namespace.
344
79748972
TT
3452018-07-26 Tom Tromey <tom@tromey.com>
346
347 * dwarf-index-write.c (add_address_entry): Don't add objfile
348 offsets.
349 * dbxread.c (find_stab_function): Rename from
350 find_stab_function_addr. Return a bound_minimal_symbol.
351 (read_dbx_symtab): Use raw_text_low, raw_text_high.
352 Don't add objfile offsets.
353 (end_psymtab): Use raw_text_low, raw_text_high,
354 MSYMBOL_VALUE_RAW_ADDRESS.
355 (read_ofile_symtab): Update.
356 (process_one_symbol): Update.
357 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
358 offsets.
359 (dw2_relocate): Remove.
360 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
361 searching addrmap.
362 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
363 Update.
364 (process_psymtab_comp_unit_reader, add_partial_symbol)
365 (add_partial_subprogram, dwarf2_ranges_read): Update.
366 (load_partial_dies): Update.
367 (add_address_entry): Don't add objfile offsets.
368 (dwarf2_build_include_psymtabs): Update.
369 (create_addrmap_from_aranges): Don't add objfile offsets.
370 (dw2_find_pc_sect_compunit_symtab): Update.
371 * mdebugread.c (parse_symbol): Don't add objfile offsets.
372 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
373 Update.
374 (parse_partial_symbols): Don't add objfile offsets. Use
375 raw_text_low, raw_text_high. Update.
376 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
377 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
378 or call 'relocate' quick function. Clear psymbol_map.
379 * psympriv.h (struct partial_symbol) <address>: Add section
380 offset.
381 <set_unrelocated_address>: Rename from set_address.
382 <raw_text_low, raw_text_high>: New methods.
383 <text_low, text_high>: Add objfile parameter.
384 (add_psymbol_to_bcache): Add 'section' parameter. Call
385 set_unrelocated_address.
386 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
387 (find_pc_psymbol): Update.
388 (fixup_psymbol_section, relocate_psymtabs): Remove.
389 (dump_psymtab, psym_functions): Update.
390 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
391 parameter.
392 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
393 (start_psymtab_common): Update.
394 * symfile-debug.c (debug_qf_relocate): Remove.
395 (debug_sym_quick_functions): Update.
396 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
397 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
398 Update.
399
52948f01
TT
4002018-07-26 Tom Tromey <tromey@redhat.com>
401
402 * dbxread.c (end_psymtab): Use text_high_valid and
403 text_low_valid.
404 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
405 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
406 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
407 Update comment.
408 <text_low_valid, text_high_valid>: New fields.
409 <set_text_low, set_text_high>: Update.
410 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
411
4ae976d1
TT
4122018-07-26 Tom Tromey <tom@tromey.com>
413
414 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
415 Update.
416 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
417 textlow and texthigh fields.
418 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
419 Update.
420 * mdebugread.c (parse_lines, parse_partial_symbols)
421 (psymtab_to_symtab_1): Update.
422 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
423 Rename fields. Update comment. Now private.
424 <text_low, text_high, set_text_low, set_text_high>: New methods.
425 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
426 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
427 (start_psymtab_common, maintenance_info_psymtabs)
428 (maintenance_check_psymtabs): Update.
429 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
430 texthigh fields.
431 (scan_xcoff_symtab): Update.
432
02e9e7f7
TT
4332018-07-26 Tom Tromey <tromey@redhat.com>
434
435 * psympriv.h (struct partial_symbol) <unrelocated_address,
436 address, set_address>: New methods.
437 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
438 (fixup_psymbol_section, relocate_psymtabs): Update.
439 (print_partial_symbols): Add 'objfile' parameter. Update.
440 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
441 Update.
442
8a6d4234
TT
4432018-07-26 Tom Tromey <tom@tromey.com>
444
445 * dwarf-index-write.c (write_psymbols, debug_names::insert)
446 (debug_names::write_psymbols): Update.
447 * psympriv.h (struct partial_symbol): Derive from
448 general_symbol_info.
449 <obj_section>: New method.
450 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
451 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
452 (find_pc_sect_psymbol, fixup_psymbol_section)
453 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
454 (print_partial_symbols, recursively_search_psymtabs)
455 (compare_psymbols, psymbol_hash, psymbol_compare)
456 (add_psymbol_to_bcache, maintenance_check_psymtabs)
457 (psymbol_name_matches, psym_fill_psymbol_map): Update.
458
08994e1d
TT
4592018-07-26 Tom Tromey <tromey@redhat.com>
460
461 * dbxread.c (end_psymtab): Remove dead code.
462
3c3bb058
AB
4632018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
466 DWARF unwinders are disabled.
467 * dwarf2-frame.c: Add dwarf2read.h include.
468 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
469 disabled.
470 (dwarf2_frame_unwinders_enabled_p): Define.
471 (show_dwarf_unwinders_enabled_p): New function.
472 (_initialize_dwarf2_frame): Register switch to control DWARF
473 unwinder use.
474 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
475 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
476 (show_dwarf_cmdlist): Remove static keyword.
477 * dwarf2read.h (set_dwarf_cmdlist): Declare.
478 (show_dwarf_cmdlist): Declare.
479 * NEWS: Document new feature.
480
9e7f3bbb
TV
4812018-07-26 Tom de Vries <tdevries@suse.de>
482
483 PR breakpoints/23366
484 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
485
506f5c41
TV
4862018-07-26 Tom de Vries <tdevries@suse.de>
487
488 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
489 DW_AT_count can't be translated to a dynamic prop.
490
16f808ec
TV
4912018-07-25 Tom de Vries <tdevries@suse.de>
492
493 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
494 try/catch.
495
d7154a8d
JV
4962018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
497
498 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
499
a45389f6
JB
5002018-07-25 Joel Brobecker <brobecker@adacore.com>
501
502 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
503
380618d6
KS
5042018-07-24 Keith Seitz <keiths@redhat.comt
505
506 PR symtab/23010
507 * dwarf2read.c (dw2_add_symbol_to_list): New function.
508 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
509 instead of add_symbol_to_list.
510 (read_file_scope): Call prepare_one_comp_unit before reading
511 any other DIEs.
512
4b17aefe
SM
5132018-07-24 Simon Marchi <simon.marchi@ericsson.com>
514
515 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
516
29d17e47
TT
5172018-07-24 Tom Tromey <tom@tromey.com>
518
519 * utils.c (malloc, realloc, free): Don't declare.
520 * configure, config.in: Rebuild.
521 * configure.ac: Don't check for declarations of free, malloc, or
522 realloc.
523
cf4088a9
SM
5242018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * aarch64-linux-nat.c
527 (aarch64_linux_nat_target::stopped_data_address): Remove unused
528 variable.
529 * arm-linux-nat.c (fetch_regs): Likewise.
530 (store_regs): Likewise.
531 (fetch_vfp_regs): Likewise.
532 (store_vfp_regs): Likewise.
533 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
534 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
535 (arm_linux_nat_target::insert_watchpoint): Likewise.
536 (arm_linux_nat_target::remove_watchpoint): Likewise.
537 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
538 Likewise.
539 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
540 Likewise.
541 * ppc-linux-nat.c (fetch_register): Likewise.
542 (fetch_all_gp_regs): Likewise.
543 (fetch_ppc_registers): Likewise.
544 (store_all_gp_regs): Likewise.
545 (store_ppc_registers): Likewise.
546 (hwdebug_insert_point): Likewise.
547 (can_use_watchpoint_cond_accel): Likewise.
548 * remote-sim.c (gdb_os_write_stdout): Likewise.
549
a0de763e
TT
5502018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
551 Tom Tromey <tom@tromey.com>
552
553 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
554 test for it.
555 * configure: Rebuild.
556
3b20124b
TT
5572018-07-22 Tom Tromey <tom@tromey.com>
558
559 * regformats/regdat.sh: Define xmltarget_${name} inside
560 #ifndef IN_PROCESS_AGENT.
561
8c8807f4
TT
5622018-07-22 Tom Tromey <tom@tromey.com>
563
564 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
565
c486b610
TT
5662018-07-22 Tom Tromey <tom@tromey.com>
567
568 * symfile.c (reread_symbols): Notify iter, not objfile.
569
494f80a9
TT
5702018-07-22 Tom Tromey <tom@tromey.com>
571
572 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
573 Use arch_ops.
574 (ravenscar_thread_target::prepare_to_store): Likewise.
575
c51f6a54
TT
5762018-07-22 Tom Tromey <tom@tromey.com>
577
578 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
579 unused variable. Call value_fetch_lazy when needed.
580 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
581 Remove unused variable. Call value_fetch_lazy when needed.
582
374fd1fd
TT
5832018-07-22 Tom Tromey <tom@tromey.com>
584
585 * m32c-tdep.c (mark_dma): Return void.
586 (make_regs): Remove unused declarations.
587
d5e9a511
TT
5882018-07-22 Tom Tromey <tom@tromey.com>
589
590 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
591 cmdscm_get_valid_command_smob_arg_unsafe for effect.
592 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
593 bkscm_get_valid_block_smob_arg_unsafe for effect.
594
996d693a
TT
5952018-07-22 Tom Tromey <tom@tromey.com>
596
597 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
598 value_type.
599
15766370
TT
6002018-07-22 Tom Tromey <tom@tromey.com>
601
602 * windows-nat.c (saved_context): Conditionally define.
603 * remote.c (remote_target::remote_btrace_maybe_reopen):
604 Conditionally declare "warned".
605 * inflow.c (sigquit_ours): Conditionally define.
606 (new_tty): Move "tty" declaration inside #if.
607 * guile/guile.c (guile_datadir): Conditionally define.
608 * charset.c (set_be_le_names): Move some declarations inside #if.
609 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
610 #if.
611 (parse_xml_btrace_conf): Likewise.
612
f4e80e13
TT
6132018-07-22 Tom Tromey <tom@tromey.com>
614
615 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
616
8d49165d
TT
6172018-07-22 Tom Tromey <tom@tromey.com>
618
619 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
620 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
621 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
622 * buildsym-legacy.c (get_macro_table): Remove unused variable.
623 * stack.c (frame_apply_level_command): Remove unused variable.
624 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
625 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
626 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
627 unused variable.
628 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
629 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
630 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
631 variable.
632 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
633 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
634 variable.
635 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
636 Remove unused variable.
637 * cli/cli-script.c (recurse_read_control_structure): Remove unused
638 variable.
639 * common/tdesc.c (print_xml_feature::visit): Remove unused
640 variable.
641 * compile/compile-object-load.c (store_regs): Remove unused
642 variables.
643 * complaints.c (clear_complaints): Remove unused variable.
644 * corelow.c (core_target_open): Remove unused variable.
645 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
646 variable.
647 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
648 variable.
649 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
650 variable.
651 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
652 variable.
653 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
654 variable.
655 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
656 variable.
657 * ia64-tdep.c (examine_prologue): Remove unused variable.
658 * infcall.c (run_inferior_call): Remove unused variable.
659 * inferior.c (exit_inferior): Remove unused variable.
660 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
661 * linespec.c (decode_line_2): Remove unused variable.
662 * linux-nat.c (super_close): Remove.
663 * linux-tdep.c (linux_info_proc): Remove unused variable.
664 * mi/mi-main.c (mi_execute_command): Remove unused variable.
665 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
666 Remove unused variable.
667 * parse.c (find_minsym_type_and_address): Remove unused variable.
668 * printcmd.c (info_symbol_command, printf_floating): Remove unused
669 variable.
670 * python/py-breakpoint.c (bppy_set_commands): Remove unused
671 variable.
672 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
673 variables.
674 * record-btrace.c (record_btrace_target::store_registers): Remove
675 unused variable.
676 (cmd_show_record_btrace_cpu): Remove unused variable.
677 * riscv-tdep.c (riscv_register_reggroup_p)
678 (riscv_push_dummy_call, riscv_return_value): Remove unused
679 variable.
680 * rust-exp.y (literal): Remove unused variable.
681 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
682 unused variable.
683 <STRUCTOP_ANONYMOUS>: Likewise.
684 * s390-linux-tdep.c (s390_linux_init_abi_31)
685 (s390_linux_init_abi_64): Remove unused variable.
686 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
687 (file_select_thread, net_windows_open, _initialize_ser_windows):
688 Remove unused variables.
689 * symtab.c (find_pc_sect_line): Remove unused variable.
690 * target-memory.c (compute_garbled_blocks): Remove unused
691 variable.
692 (target_write_memory_blocks): Remove unused variable.
693 * target.c (target_stack::unpush): Remove unused variables.
694 * tracepoint.c (start_tracing, all_tracepoint_actions)
695 (merge_uploaded_trace_state_variables)
696 (print_one_static_tracepoint_marker): Remove unused variable.
697 * unittests/basic_string_view/element_access/char/1.cc (test01):
698 Remove unused variable.
699 * windows-nat.c (windows_continue, windows_add_all_dlls)
700 (do_initial_windows_stuff, windows_nat_target::create_inferior):
701 Remove unused variables.
702
17cbafdb
SM
7032018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
704
705 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
706 attr_profile in HAVE_ELF.
707 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
708 HAVE_ELF.
709
0ee6c332
SM
7102018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * frame.c (frame_register_unwind): Change parameter name.
713 (frame_unwind_register): Likewise.
714 (frame_unwind_register_value): Likewise.
715 (frame_unwind_register_signed): Likewise.
716 (frame_unwind_register_unsigned): Likewise.
717 * frame.h (frame_register_unwind): Likewise.
718 (frame_unwind_register): Likewise.
719 (frame_unwind_register_value): Likewise.
720 (frame_unwind_register_signed): Likewise.
721 (frame_unwind_register_unsigned): Likewise.
722 (frame_unwind_arch): Likewise.
723
e2e31f10
MR
7242018-07-20 Maciej W. Rozycki <macro@mips.com>
725
726 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
727 ISA maintenance.
728
2d389915
MR
7292018-07-20 Maciej W. Rozycki <macro@mips.com>
730
731 * mips-linux-nat.c (mips_linux_nat_target::read_description):
732 Call `get_ptrace_pid' rather than extracting the ptrace PID by
733 hand.
734
cbb09508
KS
7352018-07-20 Keith Seitz <keiths@redhat.com>
736
737 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
738 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
739 m_compunit_symtab, m_language>: Add "m_" prefix.
740 Update all uses.
741 * buildsym.c: Update all uses.
742
bfe2e011
TT
7432018-07-20 Tom Tromey <tom@tromey.com>
744
745 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
746 * buildsym.h (record_line_ftype): Remove typedef.
747
0e6f3061
TT
7482018-07-20 Tom Tromey <tom@tromey.com>
749
750 * buildsym-legacy.h (augment_type_symtab): Don't declare.
751 (end_expandable_symtab): Likewise.
752 (end_symtab_get_static_block): Likewise.
753 (end_symtab_from_static_block): Likewise.
754 * buildsym-legacy.c (augment_type_symtab): Remove.
755 (end_expandable_symtab): Remove.
756 (end_symtab_get_static_block): Remove.
757 (end_symtab_from_static_block): Remove.
758
804d2729
TT
7592018-07-20 Tom Tromey <tom@tromey.com>
760
761 * dwarf2read.c: Include buildsym.h.
762 (struct dwarf2_cu) <builder>: New method.
763 (fixup_go_packaging): Update.
764 (process_full_comp_unit, process_full_type_unit): Update. Don't
765 use scoped_free_pendings.
766 (using_directives): Add "cu" parameter, remove "language".
767 (read_import_statement, setup_type_unit_groups, )
768 (read_func_scope, read_lexical_block_scope)
769 (dwarf2_record_block_ranges, read_namespace): Update.
770 (lnp_state_machine::lnp_state_machine): Add cu parameter.
771 (lnp_state_machine::handle_end_sequence): Update.
772 (class lnp_state_machine) <m_cu>: New member.
773 <m_record_line_callback>: Remove.
774 <m_currently_recording_lines>: New member.
775 (lnp_state_machine::handle_set_file): Update.
776 (noop_record_line): Remove.
777 (dwarf_record_line_p): Add cu parameter.
778 (dwarf_record_line_1, dwarf_finish_line): Likewise.
779 (lnp_state_machine::record_line)
780 (lnp_state_machine::lnp_state_machine)
781 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
782 (dwarf_decode_lines): Update.
783 (dwarf2_start_subfile): Add cu parameter.
784 (dwarf2_start_symtab, new_symbol): Update.
785 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
786 Remove dwarf2_per_objfile parameter.
787 (dwarf_decode_macros): Update.
788
80e649fc
TT
7892018-07-20 Tom Tromey <tom@tromey.com>
790
791 * stabsread.c (define_symbol): Update.
792 * buildsym-legacy.h (get_buildsym_compunit): Declare.
793 * dwarf2read.c (new_symbol): Update.
794 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
795 * cp-namespace.c: Include buildsym.h.
796 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
797 * buildsym-legacy.c (get_buildsym_compunit): New function.
798
0baae8db
TT
7992018-07-20 Tom Tromey <tom@tromey.com>
800
801 * xcoffread.c: Include buildsym-legacy.h.
802 * windows-nat.c: Include buildsym-legacy.h.
803 * stabsread.c: Include buildsym-legacy.h.
804 * mdebugread.c: Include buildsym-legacy.h.
805 * buildsym-legacy.h: New file.
806 * buildsym-legacy.c: New file, from buildsym.c.
807 * go32-nat.c: Include buildsym-legacy.h.
808 * dwarf2read.c: Include buildsym-legacy.h.
809 * dbxread.c: Include buildsym-legacy.h.
810 * cp-namespace.c: Include buildsym-legacy.h.
811 * coffread.c: Include buildsym-legacy.h.
812 * buildsym.h: Move some contents to buildsym-legacy.h.
813 * buildsym.c: Include buildsym-legacy.h. Move many functions to
814 buildsym-legacy.c.
815 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
816
ab209f6f
TT
8172018-07-20 Tom Tromey <tom@tromey.com>
818
819 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
820 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
821 (buildsym_compunit::buildsym_compunit)
822 (buildsym_compunit::~buildsym_compunit)
823 (buildsym_compunit::get_macro_table): Define.
824
74c72eac
TT
8252018-07-20 Tom Tromey <tom@tromey.com>
826
827 * buildsym.c (reset_symtab_globals): Remove.
828 (buildsym_compunit::end_symtab_from_static_block): Update.
829 (buildsym_compunit::augment_type_symtab): Update.
830 (end_symtab_from_static_block): Call free_buildsym_compunit.
831 (augment_type_symtab, end_symtab, end_expandable_symtab):
832 Likewise.
833
da6580e5
TT
8342018-07-20 Tom Tromey <tom@tromey.com>
835
836 * arch-utils.c: Do not include buildsym.h.
837 * mipsread.c: Do not include buildsym.h.
838 * machoread.c: Do not include buildsym.h.
839 * elfread.c: Do not include buildsym.h.
840
4a2125f5
TT
8412018-07-20 Tom Tromey <tom@tromey.com>
842
843 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
844 initialization.
845 (buildsym_compunit): Add new constructor.
846 (struct buildsym_compunit) <get_last_source_file, finish_block,
847 record_block_range, start_subfile, patch_subfile_names,
848 push_subfile, pop_subfile, record_line, get_compunit_symtab,
849 set_last_source_start_addr, get_last_source_start_addr,
850 get_local_using_directives, set_local_using_directives,
851 get_global_using_directives, outermost_context_p,
852 get_current_context_stack, get_context_stack_depth,
853 get_current_subfile, get_local_symbols, get_file_symbols,
854 get_global_symbols, record_debugformat, record_producer,
855 push_context, pop_context, end_symtab_get_static_block,
856 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
857 New public methods.
858 <record_pending_block, finish_block_internal, make_blockvector,
859 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
860 private methods.
861 Update all users.
862
8632018-05-22 Tom Tromey <tom@tromey.com>
864
865 * buildsym.c (record_pending_block): Move earlier. Remove objfile
866 parameter.
867 (finish_block_internal): Update.
868
6b213a47
TT
8692018-07-20 Tom Tromey <tom@tromey.com>
870
871 * buildsym.c (record_pending_block): Move earlier. Remove objfile
872 parameter.
873 (finish_block_internal): Update.
874
b80a981d
TT
8752018-07-20 Tom Tromey <tom@tromey.com>
876
877 * buildsym.h (EXTERN): Don't define or undef.
878 * buildsym.c (EXTERN): Don't define.
879
ddb70602
TT
8802018-07-20 Tom Tromey <tom@tromey.com>
881
882 * buildsym.c: Remove TODO comment.
883
b37dd3bc
TT
8842018-07-20 Tom Tromey <tom@tromey.com>
885
886 * coffread.c (coff_symtab_read): Update.
887 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
888 (xcoff_new_init): Update.
889 * mipsread.c (mipscoff_new_init): Update.
890 * mdebugread.c (mdebug_build_psymtabs): Update.
891 * elfread.c (elf_new_init): Update.
892 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
893 Update.
894 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
895 (coffstab_build_psymtabs, elfstab_build_psymtabs)
896 (stabsect_build_psymtabs): Update.
897 * buildsym.h (buildsym_init): Don't declare.
898 * buildsym.c: Update comment.
899 (prepare_for_building): Remove.
900 (start_symtab, restart_symtab): Update.
901 (reset_symtab_globals): Update comment.
902 (buildsym_init): Remove.
903
e148f09d
TT
9042018-07-20 Tom Tromey <tom@tromey.com>
905
906 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
907 * stabsread.c (patch_block_stabs, define_symbol, read_type)
908 (read_enum_type, common_block_start, common_block_end)
909 (cleanup_undefined_types_1, finish_global_stabs): Update.
910 * mdebugread.c (psymtab_to_symtab_1): Update.
911 * dwarf2read.c (fixup_go_packaging, read_func_scope)
912 (read_lexical_block_scope, new_symbol): Update.
913 * dbxread.c (process_one_symbol): Update.
914 * coffread.c (coff_symtab_read, process_coff_symbol)
915 (coff_read_enum_type): Update.
916 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
917 declare.
918 (get_local_symbols, get_file_symbols, get_global_symbols): New
919 functions.
920 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
921 m_global_symbols.
922 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
923 (~scoped_free_pendings): Update.
924 (finish_block, prepare_for_building, reset_symtab_globals)
925 (end_symtab_get_static_block, end_symtab_with_blockvector)
926 (augment_type_symtab, push_context): Update.
927 (get_local_symbols, get_file_symbols, get_global_symbols): New
928 functions.
929 (buildsym_init): Update.
930
93b8bea4
TT
9312018-07-20 Tom Tromey <tom@tromey.com>
932
933 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
934 (process_full_type_unit): Likewise.
935 (dwarf2_start_symtab): Set list_in_scope.
936
f62f6af5
TT
9372018-07-20 Tom Tromey <tom@tromey.com>
938
939 * dwarf2read.c (process_psymtab_comp_unit_reader)
940 (build_type_psymtabs_reader): Do not set list_in_scope.
941
1d376700
TT
9422018-07-20 Tom Tromey <tom@tromey.com>
943
944 * buildsym.c (free_pendings): Remove.
945 (add_symbol_to_list, scoped_free_pendings)
946 (finish_block_internal, buildsym_init): Update.
947
c233e9c6
TT
9482018-07-20 Tom Tromey <tom@tromey.com>
949
950 * xcoffread.c (read_xcoff_symtab): Update.
951 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
952 Update.
953 * dbxread.c (process_one_symbol): Update.
954 * coffread.c (coff_symtab_read): Update.
955 * buildsym.h (finish_block): Update.
956 * buildsym.c (finish_block): Remove "listhead" argument.
957 (end_symtab_get_static_block): Update.
958
5ac04550
TT
9592018-07-20 Tom Tromey <tom@tromey.com>
960
961 * buildsym.h (class scoped_free_pendings): Remove constructor.
962 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
963 method.
964 <m_pending_block_obstack, m_pending_blocks>: New members.
965 (pending_block_obstack, pending_blocks): Remove.
966 (scoped_free_pendings::scoped_free_pendings): Default.
967 (~scoped_free_pendings): Update.
968 (free_pending_blocks): Remove.
969 (finish_block_internal, record_pending_block, make_blockvector)
970 (end_symtab_get_static_block, augment_type_symtab, push_context)
971 (buildsym_init): Update.
972
7ea05a7b
TT
9732018-07-20 Tom Tromey <tom@tromey.com>
974
975 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
976 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
977 members.
978 (pending_addrmap, pending_addrmap_obstack)
979 (pending_addrmap_interesting): Remove.
980 (scoped_free_pendings, record_block_range, make_blockvector)
981 (prepare_for_building, reset_symtab_globals, buildsym_init):
982 Update.
983
3c65e5b3
TT
9842018-07-20 Tom Tromey <tom@tromey.com>
985
986 * xcoffread.c (process_linenos): Update.
987 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
988 * mdebugread.c (psymtab_to_symtab_1): Update.
989 * dwarf2read.c (setup_type_unit_groups)
990 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
991 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
992 * dbxread.c (process_one_symbol): Update.
993 * coffread.c (coff_symtab_read, enter_linenos)
994 (process_coff_symbol): Update.
995 * buildsym.h (current_subfile): Don't declare.
996 (get_current_subfile): Declare.
997 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
998 member.
999 (start_subfile, free_buildsym_compunit, push_subfile)
1000 (prepare_for_building, start_symtab): Update.
1001 (get_current_subfile): New function.
1002
a60f3166
TT
10032018-07-20 Tom Tromey <tom@tromey.com>
1004
1005 * coffread.c (coff_symtab_read): Update.
1006 * xcoffread.c (read_xcoff_symtab): Update.
1007 * dwarf2read.c (new_symbol): Update.
1008 (read_func_scope, read_lexical_block_scope): Update.
1009 * dbxread.c (process_one_symbol): Update.
1010 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1011 (outermost_context_p): Remove macro.
1012 (outermost_context_p, get_current_context_stack)
1013 (get_context_stack_depth): Declare.
1014 (pop_context): Return struct context_stack.
1015 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1016 member.
1017 (context_stack_size): Remove.
1018 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1019 (prepare_for_building, end_symtab_get_static_block)
1020 (augment_type_symtab, push_context): Update.
1021 (pop_context): Return struct context_stack.
1022 (outermost_context_p, get_current_context_stack)
1023 (get_context_stack_depth): New functions.
1024 (buildsym_init): Update.
1025
56ba65a0
TT
10262018-07-20 Tom Tromey <tom@tromey.com>
1027
1028 * rust-exp.y: Now a pure parser. Update all rules.
1029 (%union): Move earlier.
1030 (current_parser, work_obstack): Remove globals.
1031 (rust_parser, ~rust_parser): Update.
1032 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1033 lex_character, lex_number, lex_string, lex_identifier,
1034 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1035 convert_name, convert_params_to_expression,
1036 convert_ast_to_expression, ast_basic_type, ast_operation,
1037 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1038 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1039 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1040 ast_array_type, ast_slice_type, ast_reference_type,
1041 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1042 (rust_parse): Update.
1043 (rustyyerror, rustyylex): Add parser parameter.
1044 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1045 (rust_lex_stringish_test, rust_lex_test_sequence)
1046 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1047 (rust_lex_test_push_back, rust_lex_tests): Update.
1048
4c693332
PA
10492018-07-19 Pedro Alves <palves@redhat.com>
1050
1051 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1052 gdb::unique_xmalloc_ptr.
1053 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1054 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1055 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1056 copy-initialization.
1057 * guile/scm-pretty-print.c (ppscm_print_children): Use
1058 gdb::unique_xmalloc_ptr instead of cleanups.
1059 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1060 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1061 gdb::unique_xmalloc_ptr.
1062 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1063 Adjust to use gdb::unique_xmalloc_ptr.
1064 * guile/scm-utils.c (extract_arg): Adjust.
1065 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1066 gdb::unique_xmalloc_ptr instead of a cleanup.
1067
4581dc82
TT
10682018-07-19 Tom Tromey <tom@tromey.com>
1069
1070 * utils.c (do_value_free_to_mark)
1071 (make_cleanup_value_free_to_mark): Remove.
1072 * utils.h (make_cleanup_value_free_to_mark): Remove.
1073
43cc6c3a
PA
10742018-07-19 Pedro Alves <palves@redhat.com>
1075
1076 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1077 forwarding reference.
1078
3a5f2a48
PA
10792018-07-18 Pedro Alves <palves@redhat.com>
1080
1081 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1082 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1083 cleanup.
1084
557e56be
PA
10852018-07-18 Pedro Alves <palves@redhat.com>
1086
1087 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1088 exceptions.
1089 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1090 (gdbscm_wrap): New.
1091 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1092 directly instead of a cleanup.
1093 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1094 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1095 (vlscm_binop_gdbthrow): New, factored out from ...
1096 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1097 (vlscm_rich_compare): Use gdbscm_wrap.
1098 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1099 instead of a cleanup.
1100 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1101 cleanup.
1102 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1103 Use xfree directly instead of a cleanup.
1104 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1105 Adjust to use gdbscm_wrap and scoped_value_mark.
1106 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1107 (gdbscm_value_address, gdbscm_value_dereference)
1108 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1109 scoped_value_mark.
1110 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1111 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1112 scoped_value_mark.
1113 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1114 gdbscm_wrap and scoped_value_mark.
1115 (gdbscm_value_to_string): Use xfree directly instead of a
1116 cleanup. Move 'buffer' unique_ptr to TRY scope.
1117 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1118 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1119 scoped_value_mark.
1120 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1121 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1122 scoped_value_mark.
1123 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1124 gdbscm_wrap.
1125
42dc7699
TV
11262018-07-18 Tom de Vries <tdevries@suse.de>
1127
1128 * findvar.c (default_read_var_value): Also resolve dynamic type for
1129 LOC_OPTIMIZED_OUT vars.
1130
6592ceed
MR
11312018-07-18 Maciej W. Rozycki <macro@mips.com>
1132
1133 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1134 decoding.
1135
c6c6149a
TT
11362018-07-17 Tom Tromey <tom@tromey.com>
1137
1138 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1139 (compute_enum_list, pascm_set_param_value_x)
1140 (gdbscm_parameter_value): Update.
1141 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1142 (gdbscm_scm_to_host_string): Update.
1143 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1144 Update.
1145 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1146 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1147 * guile/scm-string.c (gdbscm_scm_to_string): Return
1148 unique_xmalloc_ptr.
1149 (gdbscm_scm_to_host_string): Likewise.
1150
a1a31cb8
TT
11512018-07-17 Tom Tromey <tom@tromey.com>
1152
1153 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1154 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1155 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1156 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1157 unique_xmalloc_ptr.
1158
15bf3002
TT
11592018-07-17 Tom Tromey <tom@tromey.com>
1160
1161 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1162 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1163 Update.
1164 * guile/scm-cmd.c (cmdscm_function): Update.
1165 * guile/scm-pretty-print.c
1166 (ppscm_print_exception_unless_memory_error): Update.
1167 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1168 Return unique_xmalloc_ptr.
1169
7eb1a66c
TT
11702018-07-17 Tom Tromey <tom@tromey.com>
1171
1172 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1173 Use string_printf.
1174
ce73f310
JW
11752018-07-17 Jim Wilson <jimw@sifive.com>
1176
27724bad
JW
1177 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1178 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1179 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1180 unecessary braces after EF_RISCV_RVC test. Delete call to
1181 set_gdbarch_decr_pc_after_break.
1182
ce73f310
JW
1183 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1184 RISCV_LAST_FP_REGNUM + 1.
1185 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1186
056dec39
TT
11872018-07-17 Tom Tromey <tom@tromey.com>
1188
1189 * configure.ac: Remove --disable-gdbcli.
1190 * configure: Rebuild.
1191 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1192 (SUBDIR_CLI_CFLAGS): Remove.
1193 (SFILES): Use SUBDIR_CLI_SRCS.
1194 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1195
4735f0ed
TT
11962018-07-17 Tom Tromey <tom@tromey.com>
1197
1198 PR gdb/18624:
1199 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1200
117a0e99
JW
12012018-07-16 Jim Wilson <jimw@sifive.com>
1202
1203 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1204
8a67aaa8
SM
12052018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1206
1207 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1208 variable.
1209 (libunwind_frame_sniffer): Likewise.
1210 (libunwind_frame_prev_register): Likewise.
1211 (libunwind_sigtramp_frame_sniffer): Likewise.
1212 * ia64-tdep.c (ia64_access_reg): Likewise.
1213 (ia64_access_rse_reg): Likewise.
1214 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1215 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1216
ec74dcd8
SM
12172018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1218
1219 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1220
a700e753
SM
12212018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1222
1223 * remote-sim.c (gdbsim_target::close,
1224 gdbsim_target::mourn_inferior): Remove unused variables.
1225
8b411ff8
SM
12262018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * ia64-tdep.c (ktab_buf): New global.
1229 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1230 (get_kernel_table): Adjust.
1231
edb0470b
TT
12322018-07-16 Tom Tromey <tom@tromey.com>
1233
1234 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1235 * dwarf2read.c (using_directives, new_symbol): Use
1236 outermost_context_p.
1237 * dbxread.c (process_one_symbol): Use outermost_context_p.
1238 * coffread.c (coff_symtab_read): Use outermost_context_p.
1239
6cccc9a8
TT
12402018-07-16 Tom Tromey <tom@tromey.com>
1241
1242 * dwarf2read.c (using_directives, read_func_scope)
1243 (read_lexical_block_scope): Update.
1244 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1245 * buildsym.h (local_using_directives, global_using_directives):
1246 Don't declare.
1247 (get_local_using_directives, set_local_using_directives)
1248 (get_global_using_directives): Declare.
1249 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1250 m_global_using_directives>: New members.
1251 (finish_block_internal, prepare_for_building)
1252 (reset_symtab_globals, end_symtab_get_static_block)
1253 (push_context): Update.
1254 (get_local_using_directives, set_local_using_directives)
1255 (get_global_using_directives): New functions.
1256 (buildsym_init): Update.
1257
652788a7
TT
12582018-07-16 Tom Tromey <tom@tromey.com>
1259
1260 * xcoffread.c (xcoff_initial_scan): Don't call
1261 free_pending_blocks.
1262 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1263 * buildsym.h (class scoped_free_pendings): Add constructor.
1264 (free_pending_blocks): Don't declare.
1265 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1266 (free_pending_blocks): Now static.
1267
8419ee53
TT
12682018-07-16 Tom Tromey <tom@tromey.com>
1269
1270 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1271 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1272 member.
1273 (struct subfile_stack): Remove.
1274 (subfile_stack): Remove.
1275 (push_subfile, pop_subfile, buildsym_init): Update.
1276
ccdac490
TT
12772018-07-16 Tom Tromey <tom@tromey.com>
1278
1279 * buildsym.c (push_subfile): Use gdb_assert.
1280 (pop_subfile): Use gdb_assert.
1281
43130d6f
TT
12822018-07-16 Tom Tromey <tom@tromey.com>
1283
1284 * buildsym.h (merge_symbol_lists): Remove.
1285 * buildsym.c (merge_symbol_lists): Remove.
1286
77d6f1aa
TT
12872018-07-16 Tom Tromey <tom@tromey.com>
1288
1289 * stabsread.c (scan_file_globals): Update comment.
1290 * stabsread.h (scan_file_globals): Move from buildsym.h.
1291 * buildsym.h (scan_file_globals): Move to stabsread.h.
1292
2c722d18
TT
12932018-07-16 Tom Tromey <tom@tromey.com>
1294
1295 * xcoffread.c (xcoff_new_init): Update.
1296 * mipsread.c (mipscoff_new_init): Update.
1297 * mdebugread.c (mdebug_build_psymtabs): Update.
1298 * elfread.c (elf_new_init): Update.
1299 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1300 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1301 * buildsym.h (buildsym_new_init): Don't declare.
1302 * buildsym.c (buildsym_new_init): Remove.
1303
5985ac61
TT
13042018-07-16 Tom Tromey <tom@tromey.com>
1305
1306 * stabsread.h (within_function): Move from buildsym.h.
1307 * stabsread.c (start_stabs): Clear within_function.
1308 * coffread.c (coff_start_symtab): Clear within_function.
1309 * buildsym.h (within_function): Move to stabsread.h.
1310 * buildsym.c (prepare_for_building): Update.
1311
6b84eeb2
TT
13122018-07-16 Tom Tromey <tom@tromey.com>
1313
1314 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1315 * dwarf2read.c (dwarf2_start_symtab): Don't set
1316 processing_gcc_compilation.
1317 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1318
2150c3ef
TT
13192018-07-16 Tom Tromey <tom@tromey.com>
1320
1321 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1322 (next_symbol_text_func): Move from buildsym.h.
1323 * stabsread.c (hashname): Move from buildsym.c.
1324 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1325 (next_symbol_text_func, hashname): Move to stabsread.h.
1326 * buildsym.c: Don't include bcache.h
1327 (hashname): Move to stasbread.c.
1328
0ec44fc0
TT
13292018-07-16 Tom Tromey <tom@tromey.com>
1330
1331 * buildsym.h (context_stack_size): Don't declare.
1332 * buildsym.c (context_stack_size): New global.
1333
81cc346d
TT
13342018-07-16 Tom Tromey <tom@tromey.com>
1335
1336 * dbxread.c (processing_acc_compilation): New global.
1337 * buildsym.h (processing_acc_compilation): Don't declare.
1338
2c99ee5c
TT
13392018-07-16 Tom Tromey <tom@tromey.com>
1340
1341 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1342 * dbxread.c (read_ofile_symtab): Update.
1343 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1344 * buildsym.h (last_source_start_addr): Remove.
1345 (set_last_source_start_addr, get_last_source_start_addr):
1346 Declare.
1347 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1348 parameter.
1349 (struct buildsym_compunit) <m_last_source_start_addr>: New
1350 member.
1351 (prepare_for_building): Remove start_addr parameter.
1352 (start_symtab, restart_symtab, end_symtab_get_static_block)
1353 (end_symtab_with_blockvector): Update.
1354 (set_last_source_start_addr, get_last_source_start_addr): New
1355 functions.
1356
530fedbc
TT
13572018-07-16 Tom Tromey <tom@tromey.com>
1358
1359 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1360 member.
1361 (have_line_numbers): Remove.
1362 (record_line, prepare_for_building, end_symtab_get_static_block)
1363 (augment_type_symtab): Update.
1364
6a976300
TT
13652018-07-16 Tom Tromey <tom@tromey.com>
1366
1367 * buildsym.c (~buildsym_compunit): Free the macro table.
1368 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1369 methods.
1370 <m_pending_macros>: New member.
1371 (pending_macros): Remove.
1372 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1373 (reset_symtab_globals, end_symtab_get_static_block)
1374 (end_symtab_with_blockvector, augment_type_symtab)
1375 (buildsym_init): Update.
1376
c0015d44
TT
13772018-07-16 Tom Tromey <tom@tromey.com>
1378
1379 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1380 parameter.
1381 (buildsym_compunit::set_last_source_file): New method.
1382 <m_last_source_file>: New member.
1383 (prepare_for_building): Remove "name" parameter.
1384 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1385 (last_source_file): Remove.
1386 (set_last_source_file, get_last_source_file): Update.
1387
e62cca7c
TT
13882018-07-16 Tom Tromey <tom@tromey.com>
1389
1390 * buildsym.c (prepare_for_building): Add assert.
1391
905eb0e2
TT
13922018-07-16 Tom Tromey <tom@tromey.com>
1393
1394 * buildsym.c (~buildsym_compunit): Update.
1395 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1396 (start_subfile, patch_subfile_names)
1397 (end_symtab_with_blockvector): Update.
1398
b248663f
TT
13992018-07-16 Tom Tromey <tom@tromey.com>
1400
1401 * buildsym.c (struct buildsym_compunit): Add constructor,
1402 destructor, initializers.
1403 (start_buildsym_compunit): Remove.
1404 (free_buildsym_compunit): Use "delete".
1405 (start_symtab, restart_symtab): Use "new".
1406
ff27d073
SM
14072018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * symfile.c (set_objfile_default_section_offset): Remove struct
1410 keyword.
1411
6a15ecf5
SH
14122018-07-14 Stafford Horne <shorne@gmail.com>
1413
1414 * (Responsible Maintainers): Add myself as or1k maintainer.
1415
027a4c30
TT
14162018-07-13 Tom Tromey <tom@tromey.com>
1417
1418 * symfile.c (set_objfile_default_section_offset): Use extra braces
1419 around initializer.
1420
5c1eda30
AA
14212018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1422
1423 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1424 non-branching basr.
1425
bc7b042b
PW
14262018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1427
1428 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1429 unittests/cli-utils-selftests.c
1430 * unittests/cli-utils-selftests.c: New file.
1431
a14c4daa
PW
14322018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1433
1434 * NEWS: Mention new commands. Mention change to 'thread apply'.
1435
1fe75df7
PW
14362018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1437
1438 * thread.c (thr_try_catch_cmd): New function.
1439 (thread_apply_all_command): Handle qcs flags.
1440 (thread_apply_command): Handle qcs flags.
1441 (taas_command): New function.
1442 (tfaas_command): New function.
1443 (_initialize_thread): Update to setup the new commands 'taas
1444 and 'tfaas'. Change doc string for 'thread apply'.
1445
6a70eb7d
PW
14462018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1447
1448 * stack.c: (trailing_outermost_frame): New function, mostly
1449 extracted from backtrace_command_1.
1450 (leading_innermost_frame): New function.
1451 (backtrace_command_1): Update to call trailing_outermost_frame.
1452 (frame_apply_command_count): New function.
1453 (frame_apply_level_command): New function.
1454 (frame_apply_all_command): New function.
1455 (frame_apply_command): New function.
1456 (faas_command): New function.
1457 (frame_cmd_list): New variable.
1458 (_initialize_stack): Update to setup the new commands 'frame apply'
1459 and 'faas'.
1460
529c08b2
PW
14612018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1462
1463 * cli-utils.c (number_or_range_parser::get_number): Only handle
1464 numbers or convenience var as numbers.
1465 (parse_flags): New function.
1466 (parse_flags_qcs): New function.
1467 (number_or_range_parser::finished): Ensure parsing end is detected
1468 before end of string.
1469 * cli-utils.h (parse_flags): New function.
1470 (parse_flags_qcs): New function.
1471 (number_or_range_parser): Remove m_finished bool.
1472 (number_or_range_parser::skip_range): Set m_in_range to false.
1473
64b58472
SDJ
14742018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
1475
1476 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
1477 on Windows.
1478
c7ab0aef
SDJ
14792018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1480 Jan Kratochvil <jan.kratochvil@redhat.com>
1481 Paul Fertser <fercerpav@gmail.com>
1482 Tsutomu Seki <sekiriki@gmail.com>
1483 Pedro Alves <palves@redhat.com>
1484
1485 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1486 'unittests/parse-connection-spec-selftests.c'.
1487 (COMMON_SFILES): Add 'common/netstuff.c'.
1488 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
1489 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
1490 * common/netstuff.c: New file.
1491 * common/netstuff.h: New file.
1492 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
1493 (wait_for_connect): Update comment. New parameter
1494 'gdb::optional<int> sock' instead of 'struct serial *scb'.
1495 Use 'sock' directly instead of 'scb->fd'.
1496 (try_connect): New function, with code from 'net_open'.
1497 (net_open): Rewrite main loop to deal with multiple
1498 sockets/addresses. Handle IPv6-style hostnames; implement
1499 support for IPv6 connections.
1500 * unittests/parse-connection-spec-selftests.c: New file.
1501
4c7333b3
PA
15022018-07-11 Pedro Alves <palves@redhat.com>
1503
1504 PR gdb/23377
1505 * remote.c (remote_target::remote_detach_pid): Call
1506 set_current_process.
1507
a6f88f6e
PA
15082018-07-11 Pedro Alves <palves@redhat.com>
1509
1510 * h8300-tdep.c (h8300_gdbarch_init): Remove
1511 set_gdbarch_ecoff_reg_to_regnum calls.
1512
16ff70dd
SDJ
15132018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1514
1515 PR c++/23373
1516 * c-typeprint.c (c_type_print_base_struct_union): Don't print
1517 offsets/sizes for static members of a class/struct.
1518
12863263
AH
15192018-07-11 Alan Hayward <alan.hayward@arm.com>
1520
1521 * target-descriptions.c (tdesc_register_bitsize): Rename.
1522 * target-descriptions.h (tdesc_register_bitsize): Likewise.
1523 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
1524 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
1525
1123588c
TT
15262018-07-10 Tom Tromey <tom@tromey.com>
1527
1528 * breakpoint.c (moribund_locations): Now static and a
1529 std::vector.
1530 (breakpoint_init_inferior, moribund_breakpoint_here_p)
1531 (build_bpstat_chain, update_global_location_list)
1532 (breakpoint_retire_moribund): Update.
1533 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
1534 VEC.
1535
8c49aa89
AB
15362018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1537
1538 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
1539 (riscv_register_reggroup_p): Use new function, remove unneeded
1540 parenthesis.
1541 (riscv_push_dummy_call): Extend assert to compare against xlen or
1542 flen based on register type.
1543
42ecac17
AB
15442018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
1547
055303e2
AB
15482018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1549
1550 * remote.c (show_hardware_watchpoint_limit): New function.
1551 (show_hardware_watchpoint_length_limit): New function.
1552 (show_hardware_breakpoint_limit): New function.
1553 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
1554 where appropriate, update help text.
1555
8fd32c1c
TT
15562018-07-09 Tom Tromey <tom@tromey.com>
1557
1558 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
1559 (CLIBS): Don't mention NAT_CLIBS.
1560
31278b51
TT
15612018-07-09 Tom Tromey <tom@tromey.com>
1562
1563 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
1564 (LIBGDB_OBS, clean mostlyclean): Update.
1565 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
1566
e5fd1493
TT
15672018-07-09 Tom Tromey <tom@tromey.com>
1568
1569 * Makefile.in (%.c: %.y): Use ECHO_YACC.
1570 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
1571 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
1572
981e0c0c
TT
15732018-07-09 Tom Tromey <tom@tromey.com>
1574
1575 * Makefile.in (ALLDEPFILES): Remove exec.c.
1576 (COMMON_OBS): Remove exec.o.
1577 (COMMON_SFILES): Add exec.c.
1578
14ccceb2
TT
15792018-07-09 Tom Tromey <tom@tromey.com>
1580
1581 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
1582
5d3c3a68
TT
15832018-07-09 Tom Tromey <tom@tromey.com>
1584
1585 * Makefile.in (clean mostlyclean): Remove stamp-version.
1586 (version.c): Depend on stamp-version.
1587 (stamp-version): New rule, from version.c rule.
1588
1998086d
TT
15892018-07-09 Tom Tromey <tom@tromey.com>
1590
1591 * Makefile.in (init.c): Depend on stamp-init.
1592 (stamp-init): New rule, from init.c rule.
1593 (clean mostlyclean): Remove stamp-init.
1594
4c754949
TT
15952018-07-09 Tom Tromey <tom@tromey.com>
1596
1597 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
1598 SUBDIR_GCC_COMPILE_SRCS.
1599
6497f1dd
TT
16002018-07-09 Tom Tromey <tom@tromey.com>
1601
1602 * Makefile.in (init.c): Remove some unused sed rules.
1603
97a34db9
TT
16042018-07-09 Tom Tromey <tom@tromey.com>
1605
1606 * Makefile.in (TSOBS): Remove.
1607 (INIT_FILES): Update.
1608 (LIBGDB_OBS): Update.
1609 (COMMON_SFILES): Add inflow.c.
1610 (SFILES): Remove inflow.c.
1611
25289ac1
JK
16122018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1613
1614 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
1615
e83f4d97
SM
16162018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
1617
4869c585
SM
1618 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
1619 get_saveloc_name, is_signal_frame_name, step_name,
1620 init_remote_name, create_addr_space_name,
1621 destroy_addr_space_name, search_unwind_table_name,
1622 find_dyn_list_name): Constify.
e83f4d97 1623
6821842f
SM
16242018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
1625
1626 * darwin-nat.c (darwin_pthread_kill): New function.
1627 (darwin_resume_thread): Use darwin_pthread_kill.
1628
c530603c
TV
16292018-07-05 Tom de Vries <tdevries@suse.de>
1630
1631 * macroexp.c (macro_buffer) <operator=>: New member function.
1632
a7d0f0f0
TT
16332018-07-04 Tom Tromey <tom@tromey.com>
1634
1635 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
1636
6242c6a6
SM
16372018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
1638
1639 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
1640 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
1641 * maint.c: Likewise.
1642 * top.c: Likewise.
1643
4e5b2f89
JB
16442018-07-04 Joel Brobecker <brobecker@adacore.com>
1645
1646 * NEWS: Create a new section for the next release branch.
1647 Rename the section of the current branch, now that it has
1648 been cut.
1649
538ccc4a
JB
16502018-07-04 Joel Brobecker <brobecker@adacore.com>
1651
1652 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
1653 * version.in: Bump version to 8.2.50.DATE-git.
1654
1b919490
VB
16552018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1656 Pedro Alves <palves@redhat.com>
1657
1658 * linux-nat.c (linux_init_ptrace): Rename to ...
1659 (linux_init_ptrace_procfs): ... this. Call
1660 linux_proc_init_warnings.
1661 (linux_nat_target::post_attach)
1662 (linux_nat_target::post_startup_inferior): Adjust.
1663 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
1664 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
1665
1ea5da02
TV
16662018-07-04 Tom de Vries <tdevries@suse.de>
1667
1668 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
1669 check ...
1670 (read_comp_unit_head): ... here.
1671
f51e0e20
TT
16722018-07-03 Tom Tromey <tom@tromey.com>
1673
1674 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
1675 (stop_tracing, tstatus_command)
1676 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
1677 (print_one_static_tracepoint_marker): Update.
1678 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
1679 std::vector.
1680 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
1681 VEC.
1682 (all_tracepoints, static_tracepoints_here): Return std::vector.
1683
d7e15655
TT
16842018-07-03 Tom Tromey <tom@tromey.com>
1685
1686 * common/ptid.c (ptid_equal): Remove.
1687 * common/ptid.h (ptid_equal): Don't declare.
1688 * ada-tasks.c: Update.
1689 * breakpoint.c: Update.
1690 * common/agent.c: Update.
1691 * corelow.c: Update.
1692 * darwin-nat-info.c: Update.
1693 * darwin-nat.c: Update.
1694 * dcache.c: Update.
1695 * dtrace-probe.c: Update.
1696 * dummy-frame.c: Update.
1697 * fbsd-nat.c: Update.
1698 * frame.c: Update.
1699 * gdbthread.h: Update.
1700 * gnu-nat.c: Update.
1701 * go32-nat.c: Update.
1702 * inf-loop.c: Update.
1703 * inf-ptrace.c: Update.
1704 * infcall.c: Update.
1705 * infcmd.c: Update.
1706 * inflow.c: Update.
1707 * infrun.c: Update.
1708 * linux-fork.c: Update.
1709 * linux-nat.c: Update.
1710 * linux-thread-db.c: Update.
1711 * mi/mi-cmd-var.c: Update.
1712 * mi/mi-interp.c: Update.
1713 * mi/mi-main.c: Update.
1714 * nto-procfs.c: Update.
1715 * ppc-linux-tdep.c: Update.
1716 * procfs.c: Update.
1717 * python/py-inferior.c: Update.
1718 * python/py-record-btrace.c: Update.
1719 * python/py-record.c: Update.
1720 * ravenscar-thread.c: Update.
1721 * regcache.c: Update.
1722 * remote-sim.c: Update.
1723 * remote.c: Update.
1724 * sol-thread.c: Update.
1725 * solib.c: Update.
1726 * target.c: Update.
1727 * tui/tui-stack.c: Update.
1728 * varobj.c: Update.
1729 * windows-nat.c: Update.
1730 * windows-tdep.c: Update.
1731
26a57c92
TT
17322018-07-03 Tom Tromey <tom@tromey.com>
1733
1734 * common/ptid.c (ptid_match): Remove.
1735 * common/ptid.h (ptid_match): Don't declare.
1736 * fbsd-nat.c: Update.
1737 * infcmd.c: Update.
1738 * infrun.c: Update.
1739 * linux-nat.c: Update.
1740 * record-btrace.c: Update.
1741 * regcache.c: Update.
1742 * remote.c: Update.
1743
d2a107e3
TT
17442018-07-03 Tom Tromey <tom@tromey.com>
1745
1746 * common/ptid.c (ptid_tid_p): Remove.
1747 * common/ptid.h (ptid_tid_p): Don't declare.
1748 * sol-thread.c: Update.
1749
15a9e13e
TT
17502018-07-03 Tom Tromey <tom@tromey.com>
1751
1752 * common/ptid.c (ptid_lwp_p): Remove.
1753 * common/ptid.h (ptid_lwp_p): Don't declare.
1754 * fbsd-nat.c: Update.
1755 * linux-nat.c: Update.
1756 * nat/linux-procfs.c: Update.
1757 * nat/x86-linux-dregs.c: Update.
1758 * sol-thread.c: Update.
1759
0e998d96
TT
17602018-07-03 Tom Tromey <tom@tromey.com>
1761
1762 * common/ptid.c (ptid_is_pid): Remove.
1763 * common/ptid.h (ptid_is_pid): Don't declare.
1764 * infrun.c: Update.
1765 * linux-nat.c: Update.
1766 * mi/mi-interp.c: Update.
1767 * remote.c: Update.
1768 * thread.c: Update.
1769
cc6bcb54
TT
17702018-07-03 Tom Tromey <tom@tromey.com>
1771
1772 * common/ptid.c (ptid_get_tid): Remove.
1773 * common/ptid.h (ptid_get_tid): Don't declare.
1774 * ada-tasks.c: Update.
1775 * aix-thread.c: Update.
1776 * bsd-uthread.c: Update.
1777 * darwin-nat.c: Update.
1778 * fbsd-nat.c: Update.
1779 * i386-darwin-nat.c: Update.
1780 * infrun.c: Update.
1781 * linux-tdep.c: Update.
1782 * nto-procfs.c: Update.
1783 * ppc-ravenscar-thread.c: Update.
1784 * python/py-infthread.c: Update.
1785 * ravenscar-thread.c: Update.
1786 * sol-thread.c: Update.
1787 * sparc-ravenscar-thread.c: Update.
1788 * windows-nat.c: Update.
1789
e38504b3
TT
17902018-07-03 Tom Tromey <tom@tromey.com>
1791
1792 * common/ptid.c (ptid_get_lwp): Remove.
1793 * common/ptid.h (ptid_get_lwp): Don't declare.
1794 * aarch64-linux-nat.c: Update.
1795 * ada-tasks.c: Update.
1796 * aix-thread.c: Update.
1797 * amd64-linux-nat.c: Update.
1798 * arm-linux-nat.c: Update.
1799 * corelow.c: Update.
1800 * fbsd-nat.c: Update.
1801 * fbsd-tdep.c: Update.
1802 * gnu-nat.c: Update.
1803 * i386-cygwin-tdep.c: Update.
1804 * i386-gnu-nat.c: Update.
1805 * i386-linux-nat.c: Update.
1806 * ia64-linux-nat.c: Update.
1807 * inf-ptrace.c: Update.
1808 * infrun.c: Update.
1809 * linux-fork.c: Update.
1810 * linux-nat.c: Update.
1811 * linux-tdep.c: Update.
1812 * linux-thread-db.c: Update.
1813 * mips-linux-nat.c: Update.
1814 * nat/aarch64-linux-hw-point.c: Update.
1815 * nat/aarch64-linux.c: Update.
1816 * nat/linux-btrace.c: Update.
1817 * nat/linux-osdata.c: Update.
1818 * nat/linux-procfs.c: Update.
1819 * nat/x86-linux-dregs.c: Update.
1820 * obsd-nat.c: Update.
1821 * ppc-fbsd-nat.c: Update.
1822 * ppc-linux-nat.c: Update.
1823 * procfs.c: Update.
1824 * python/py-infthread.c: Update.
1825 * ravenscar-thread.c: Update.
1826 * remote.c: Update.
1827 * s390-linux-nat.c: Update.
1828 * sol-thread.c: Update.
1829 * sol2-tdep.c: Update.
1830 * spu-linux-nat.c: Update.
1831 * x86-linux-nat.c: Update.
1832 * xtensa-linux-nat.c: Update.
1833
e99b03dc
TT
18342018-07-03 Tom Tromey <tom@tromey.com>
1835
1836 * common/ptid.c (ptid_get_pid): Remove.
1837 * common/ptid.h (ptid_get_pid): Don't declare.
1838 * aarch64-linux-nat.c: Update.
1839 * ada-lang.c: Update.
1840 * aix-thread.c: Update.
1841 * alpha-bsd-nat.c: Update.
1842 * amd64-fbsd-nat.c: Update.
1843 * amd64-linux-nat.c: Update.
1844 * arm-linux-nat.c: Update.
1845 * arm-nbsd-nat.c: Update.
1846 * auxv.c: Update.
1847 * break-catch-syscall.c: Update.
1848 * breakpoint.c: Update.
1849 * bsd-uthread.c: Update.
1850 * corelow.c: Update.
1851 * ctf.c: Update.
1852 * darwin-nat.c: Update.
1853 * fbsd-nat.c: Update.
1854 * fbsd-tdep.c: Update.
1855 * gcore.c: Update.
1856 * gnu-nat.c: Update.
1857 * hppa-nbsd-nat.c: Update.
1858 * hppa-obsd-nat.c: Update.
1859 * i386-fbsd-nat.c: Update.
1860 * ia64-linux-nat.c: Update.
1861 * inf-ptrace.c: Update.
1862 * infcmd.c: Update.
1863 * inferior.c: Update.
1864 * inferior.h: Update.
1865 * inflow.c: Update.
1866 * infrun.c: Update.
1867 * linux-fork.c: Update.
1868 * linux-nat.c: Update.
1869 * linux-tdep.c: Update.
1870 * linux-thread-db.c: Update.
1871 * m68k-bsd-nat.c: Update.
1872 * mi/mi-interp.c: Update.
1873 * mi/mi-main.c: Update.
1874 * mips-linux-nat.c: Update.
1875 * mips-nbsd-nat.c: Update.
1876 * mips64-obsd-nat.c: Update.
1877 * nat/aarch64-linux-hw-point.c: Update.
1878 * nat/aarch64-linux.c: Update.
1879 * nat/linux-btrace.c: Update.
1880 * nat/linux-osdata.c: Update.
1881 * nat/linux-procfs.c: Update.
1882 * nat/x86-linux-dregs.c: Update.
1883 * nto-procfs.c: Update.
1884 * obsd-nat.c: Update.
1885 * ppc-linux-nat.c: Update.
1886 * ppc-nbsd-nat.c: Update.
1887 * ppc-obsd-nat.c: Update.
1888 * proc-service.c: Update.
1889 * procfs.c: Update.
1890 * python/py-inferior.c: Update.
1891 * python/py-infthread.c: Update.
1892 * ravenscar-thread.c: Update.
1893 * record.c: Update.
1894 * remote-sim.c: Update.
1895 * remote.c: Update.
1896 * rs6000-nat.c: Update.
1897 * s390-linux-nat.c: Update.
1898 * sh-nbsd-nat.c: Update.
1899 * sol-thread.c: Update.
1900 * sparc-nat.c: Update.
1901 * sparc64-tdep.c: Update.
1902 * spu-linux-nat.c: Update.
1903 * spu-tdep.c: Update.
1904 * target-debug.h: Update.
1905 * target.c: Update.
1906 * thread.c: Update.
1907 * tid-parse.c: Update.
1908 * tracefile-tfile.c: Update.
1909 * vax-bsd-nat.c: Update.
1910 * windows-nat.c: Update.
1911 * x86-linux-nat.c: Update.
1912 * x86-nat.c: Update.
1913
f2907e49
TT
19142018-07-03 Tom Tromey <tom@tromey.com>
1915
1916 * common/ptid.c (pid_to_ptid): Remove.
1917 * common/ptid.h (pid_to_ptid): Don't declare.
1918 * aix-thread.c: Update.
1919 * arm-linux-nat.c: Update.
1920 * common/ptid.c: Update.
1921 * common/ptid.h: Update.
1922 * corelow.c: Update.
1923 * ctf.c: Update.
1924 * darwin-nat.c: Update.
1925 * fbsd-nat.c: Update.
1926 * fork-child.c: Update.
1927 * gnu-nat.c: Update.
1928 * go32-nat.c: Update.
1929 * inf-ptrace.c: Update.
1930 * infcmd.c: Update.
1931 * inferior.c: Update.
1932 * infrun.c: Update.
1933 * linux-fork.c: Update.
1934 * linux-nat.c: Update.
1935 * nat/aarch64-linux-hw-point.c: Update.
1936 * nat/fork-inferior.c: Update.
1937 * nat/x86-linux-dregs.c: Update.
1938 * nto-procfs.c: Update.
1939 * obsd-nat.c: Update.
1940 * procfs.c: Update.
1941 * progspace.c: Update.
1942 * remote.c: Update.
1943 * rs6000-nat.c: Update.
1944 * s390-linux-nat.c: Update.
1945 * sol-thread.c: Update.
1946 * spu-linux-nat.c: Update.
1947 * target.c: Update.
1948 * top.c: Update.
1949 * tracefile-tfile.c: Update.
1950 * windows-nat.c: Update.
1951
fd79271b
TT
19522018-07-03 Tom Tromey <tom@tromey.com>
1953
1954 * common/ptid.h (ptid_build): Don't declare.
1955 * common/ptid.c (ptid_build): Remove.
1956 * aix-thread.c: Update.
1957 * bsd-kvm.c: Update.
1958 * bsd-uthread.c: Update.
1959 * common/agent.c: Update.
1960 * common/ptid.c: Update.
1961 * common/ptid.h: Update.
1962 * corelow.c: Update.
1963 * darwin-nat.c: Update.
1964 * fbsd-nat.c: Update.
1965 * gnu-nat.c: Update.
1966 * linux-fork.c: Update.
1967 * linux-nat.c: Update.
1968 * linux-thread-db.c: Update.
1969 * nat/linux-osdata.c: Update.
1970 * nat/linux-procfs.c: Update.
1971 * nto-procfs.c: Update.
1972 * obsd-nat.c: Update.
1973 * proc-service.c: Update.
1974 * procfs.c: Update.
1975 * ravenscar-thread.c: Update.
1976 * remote-sim.c: Update.
1977 * remote.c: Update.
1978 * sol-thread.c: Update.
1979 * target.c: Update.
1980 * windows-nat.c: Update.
1981
057302ce
TT
19822018-07-03 Tom Tromey <tom@tromey.com>
1983
1984 * infrun.c (follow_exec): Use exit_inferior_silent.
1985 * inferior.c (exit_inferior_num_silent): Remove.
1986 * inferior.h (exit_inferior_num_silent): Don't declare.
1987
a50c11c6
TT
19882018-07-03 Tom Tromey <tom@tromey.com>
1989
1990 PR cli/23340:
1991 * darwin-nat.c (darwin_attach_pid): Reset inferior and
1992 inferior_ptid on error.
1993
471b9d15
MR
19942018-07-02 Maciej W. Rozycki <macro@mips.com>
1995 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 PR tdep/8282
1998 * disasm.h (gdb_disassembler): Add
1999 `m_disassembler_options_holder'. member
2000 * disasm.c (get_all_disassembler_options): New function.
2001 (gdb_disassembler::gdb_disassembler): Use it.
2002 (gdb_buffered_insn_length_init_dis): Likewise.
2003 (gdb_buffered_insn_length): Adjust accordingly.
2004 (set_disassembler_options): Handle options with arguments.
2005 (show_disassembler_options_sfunc): Likewise. Add a leading new
2006 line if showing options with descriptions.
2007 (disassembler_options_completer): Adapt to using the
2008 `disasm_options_and_args_t' structure.
2009 * mips-tdep.c (mips_disassembler_options): New variable.
2010 (mips_disassembler_options_o32): Likewise.
2011 (mips_disassembler_options_n32): Likewise.
2012 (mips_disassembler_options_n64): Likewise.
2013 (gdb_print_insn_mips): Don't set `disassembler_options'.
2014 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2015 functions.
2016 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2017 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2018 `gdbarch_disassembler_options_implicit' and
2019 `gdbarch_valid_disassembler_options'.
2020 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2021 `disasm_options_and_args_t' structure.
2022 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2023 method.
2024 (valid_disassembler_options): Switch from `disasm_options_t' to
2025 the `disasm_options_and_args_t' structure.
2026 * NEWS: Document `set disassembler-options' support for the MIPS
2027 target.
2028 * gdbarch.h: Regenerate.
2029 * gdbarch.c: Regenerate.
2030
41823f29
SH
20312018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2032
2033 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2034
41206e32
JB
20352018-06-29 Joel Brobecker <brobecker@adacore.com>
2036
2037 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2038 parameter in call to amd64_target_description.
2039 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2040 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2041 (amd64fbsd_init_abi): Likewise.
2042 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2043 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2044 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2045 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2046
de52b960
PA
20472018-06-29 Pedro Alves <palves@redhat.com>
2048
2049 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2050 "segments" parameter.
2051 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2052 (_initialize_amd64_tdep): Update call to
2053 amd64_create_target_description.
2054 (amd64_target_description): Add "segments" parameter. Adjust
2055 the implementation to use it.
2056 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2057 call to amd64_create_target_description.
2058 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2059 * gdb/arch/amd64.h (amd64_create_target_description): Add
2060 "segments" register.
2061 * gdb/arch/amd64.c (amd64_create_target_description): Add
2062 "segments" parameter. Call create_feature_i386_64bit_segments
2063 only if SEGMENTS is true.
2064 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2065 call to amd64_create_target_description.
2066
75acb486
PA
20672018-06-29 Pedro Alves <palves@redhat.com>
2068
2069 * thread.c (thread_target_id_str): New, factored out from ...
2070 (print_thread_info_1): ... here. Use it to compute the max
2071 "Target Id" column width.
2072
c76a8ea3
PA
20732018-06-29 Pedro Alves <palves@redhat.com>
2074
2075 * remote.c (remote_target::extra_thread_info): Delete
2076 'display_buf' and 'n' locals. from the cache, regardless of
2077 packet mechanims is in use. Use cache for qThreadExtra and qP
2078 methods too.
2079
cd2bb709
PA
20802018-06-29 Pedro Alves <palves@redhat.com>
2081
2082 * blockframe.c (find_pc_sect_containing_function): New function.
2083 * breakpoint.c (print_breakpoint_location): Don't call
2084 find_pc_sect_function.
2085 * linespec.c (create_sals_line_offset): Record the location's
2086 symbol in the sal.
2087 * linespec.c (convert_address_location_to_sals): Fill in sal's
2088 symbol with find_pc_sect_containing_function.
2089 * symtab.c (find_function_start_sal): Rename to ...
2090 (find_function_start_sal_1): ... this.
2091 (find_function_start_sal): Reimplement as wrapper around
2092 find_function_start_sal_1, and use
2093 find_pc_sect_containing_function to fill in the sal's symbol.
2094 (find_function_start_sal(symbol*, bool)): Adjust.
2095 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2096 comments.
2097 (find_pc_sect_containing_function): Declare.
2098
991ff292
PA
20992018-06-29 Pedro Alves <palves@redhat.com>
2100
2101 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2102 true if the the location has no symbol.
2103
44cee4fd
TT
21042018-06-28 Tom Tromey <tom@tromey.com>
2105
2106 * NEWS: Mention --enable-codesign.
2107 * silent-rules.mk (ECHO_SIGN): New variable.
2108 * configure.ac: Add --enable-codesign.
2109 * configure: Rebuild.
2110 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2111 (gdb$(EXEEXT)): Optionally invoke codesign.
2112
f2ffa92b
PA
21132018-06-28 Pedro Alves <palves@redhat.com>
2114
2115 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2116 comments.
2117 (switch_to_thread_no_regs): Adjust comment.
2118 * infcmd.c (stop_pc): Delete.
2119 (post_create_inferior, info_program_command): Replace references
2120 to stop_pc with references to thread_info->suspend.stop_pc.
2121 * inferior.h (stop_pc): Delete declaration.
2122 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2123 (handle_inferior_event_1, handle_signal_stop)
2124 (process_event_stop_test, keep_going_stepped_thread)
2125 (handle_step_into_function, handle_step_into_function_backward)
2126 (print_stop_location): Replace references to stop_pc with
2127 references to thread_info->suspend.stop_pc.
2128 (struct infcall_suspend_state) <stop_pc>: Delete field.
2129 (save_infcall_suspend_state, restore_infcall_suspend_state):
2130 Remove references to inf_stat->stop_pc.
2131 * linux-fork.c (fork_load_infrun_state): Likewise.
2132 * record-btrace.c (record_btrace_set_replay): Likewise.
2133 * record-full.c (record_full_goto_entry): Likewise.
2134 * remote.c (print_one_stopped_thread): Likewise.
2135 * target.c (target_resume): Extend comment.
2136 * thread.c (set_executing_thread): New.
2137 (set_executing): Use it.
2138 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2139 Remove references to stop_pc.
2140
ecdc3a72
PA
21412018-06-28 Pedro Alves <palves@redhat.com>
2142
2143 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2144 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2145
d95d3aef
TT
21462018-06-28 Tom Tromey <tom@tromey.com>
2147
2148 * coffread.c (coff_symfile_finish): Update.
2149 * xcoffread.c (xcoff_symfile_finish): Update.
2150 * elfread.c (elf_symfile_finish): Update.
2151 * symfile.h (dwarf2_free_objfile): Don't declare.
2152 * dwarf2read.c (_initialize_dwarf2_read): Use
2153 register_objfile_data_with_cleanup.
2154 (dwarf2_free_objfile): Now static. Change signature.
2155
291f9a96
PT
21562018-06-28 Petr Tesarik <ptesarik@suse.cz>
2157
2158 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2159 option "-o" to add-symbol-file-load to add an offset to each
2160 section's load address.
2161 * symfile.c (set_objfile_default_section_offset): New function.
2162
d81a3eaf
PT
21632018-06-28 Petr Tesarik <ptesarik@suse.cz>
2164
2165 * symfile.c (add_symbol_file_command): Make sure that sections
2166 with the same name are sorted in the same order.
2167
ed6dfe51
PT
21682018-06-28 Petr Tesarik <ptesarik@suse.cz>
2169
2170 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2171 require the second argument. If omitted, load sections at the
2172 addresses specified in the file.
2173
d4d429d5
PT
21742018-06-28 Petr Tesarik <ptesarik@suse.cz>
2175
2176 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2177 (_initialize_symfile): Add option "-o" to symbol-file to add an
2178 offset to each section of the symbol file.
2179
39b27ab6
PT
21802018-06-28 Petr Tesarik <ptesarik@suse.cz>
2181
2182 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2183
41827fc3
TT
21842018-06-27 Tom Tromey <tom@tromey.com>
2185
2186 * stack.c (_initialize_stack): Update "func" help text.
2187
0c6aef22
TT
21882018-06-27 Tom Tromey <tom@tromey.com>
2189
2190 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2191 std::vector.
2192 (unwind_infopy_str, pyuw_create_unwind_info)
2193 (unwind_infopy_add_saved_register, pyuw_sniffer)
2194 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2195 Update.
2196 (struct saved_reg): Add constructor.
2197 <value>: Now a gdbpy_ref<>.
2198
63177289
TT
21992018-06-27 Tom Tromey <tom@tromey.com>
2200
2201 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2202
e76f78a0
SM
22032018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2204
2205 * gdb-gdb.py.in: Format using autopep8.
2206
9a14af7b
SM
22072018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2208
2209 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2210 (type_lookup_function): Recognize CORE_ADDR values.
2211
189366cd
SM
22122018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2213
2214 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2215 print tag_name.
2216
68ad5fb9
SM
22172018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2218
2219 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2220 <__lt__>: Add.
2221
141ec9f6
SM
22222018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2223
2224 * gdb-gdb.py: Move to...
2225 * gdb-gdb.py.in: ... here.
2226 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2227 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2228 dependencies.
2229 (distclean): Remove gdb-gdb.py when cleaning.
2230 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2231 * configure: Re-generate.
2232
4c4e7ad4
PA
22332018-06-27 Pedro Alves <palves@redhat.com>
2234
2235 * proc-service.c (get_ps_regcache): New.
2236 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2237 (ps_lsetfpregs): Use it.
2238
7ab6656f
OJ
22392018-06-27 Omair Javaid <omair.javaid@linaro.org>
2240
2241 PR gdb/21695
2242 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2243 (dwarf_decode_lines_1): Adjust.
2244
bd583225
SM
22452018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2246
2247 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2248 override.
2249 <info_proc>: Likewise.
2250
9a325b7b
JB
22512018-06-26 Joel Brobecker <brobecker@adacore.com>
2252
2253 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2254 to windows_fetch_one_register, and only handle the case of
2255 fetching one register. Move the code that reloads the context
2256 and iterates over all registers if R is negative to...
2257 (windows_nat_target::fetch_registers): ... here.
2258 (do_windows_store_inferior_registers): Rename to
2259 windows_store_one_register, and only handle the case of storing
2260 one register. Move the code that handles the case where r is
2261 negative to...
2262 (windows_nat_target::store_registers) ... here.
2263
a33ccfc7
TT
22642018-06-26 Tom Tromey <tom@tromey.com>
2265
2266 PR rust/22574:
2267 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2268 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2269 Update.
2270 (rust_internal_print_type): Add podata parameter.
2271 (rust_print_type): Update.
2272
e0c547d1
TT
22732018-06-26 Tom Tromey <tom@tromey.com>
2274
2275 * typeprint.h (struct print_offset_data) <update, finish,
2276 maybe_print_hole>: New methods.
2277 <indentation>: New constant.
2278 * typeprint.c (print_offset_data::indentation): Define.
2279 (print_offset_data::maybe_print_hole, print_offset_data::update)
2280 (print_offset_data::finish): Move from c-typeprint.c and rename.
2281 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2282 (print_spaces_filtered_with_print_options): Update.
2283 (c_print_type_union_field_offset, maybe_print_hole)
2284 (c_print_type_struct_field_offset): Move to typeprint.c and
2285 rename.
2286 (c_type_print_base_struct_union): Update.
2287
75cbc781
PA
22882018-06-25 Pedro Alves <palves@redhat.com>
2289
2290 * gdbthread.h (thread_info_ref, delete_thread)
2291 (delete_thread_silent, first_thread_of_inferior)
2292 (any_thread_of_inferior, switch_to_thread)
2293 (enable_thread_stack_temporaries)
2294 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2295 (get_last_thread_stack_temporary)
2296 (value_in_thread_stack_temporaries, can_access_registers_thread):
2297 Spell out "struct thread_info" instead of just "thread_info".
2298 * inferior.h (notice_new_inferior): Likewise.
2299
b7a08269
PA
23002018-06-25 Pedro Alves <palves@redhat.com>
2301
2302 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2303 pass thread_info pointer to delete_thread.
2304 (windows_nat_target::detach): Pass inferior pointer to
2305 detach_inferior.
2306 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2307 delete_thread.
2308 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2309 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2310 and pass a thread_info pointer to delete_thread.
2311 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2312 pass thread_info pointer to delete_thread.
2313 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2314 delete_thread_silent call.
2315 * procfs.c (procfs_target::detach): Pass inferior pointer to
2316 detach_inferior.
2317 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2318 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2319 delete_thread_silent call.
2320 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2321 pass thread_info pointer to delete_thread.
2322 (windows_nat_target::detach): Pass inferior pointer to
2323 delete_inferior.
2324
8e7767e3
AH
23252018-06-22 Alan Hayward <alan.hayward@arm.com>
2326
2327 * regcache.c (readable_regcache::read_part): Fix asserts.
2328 (reg_buffer::raw_collect_part): New function.
2329 (regcache::write_part): Fix asserts.
2330 (reg_buffer::raw_supply_part): New function.
2331 (regcache::transfer_regset_register): New helper function.
2332 (regcache::transfer_regset): Call new functions.
2333 (regcache_supply_regset): Use gdb_byte*.
2334 (regcache::supply_regset): Likewise.
2335 (regcache_collect_regset): Likewise.
2336 (regcache::collect_regset): Likewise.
2337 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2338 (reg_buffer::raw_supply_part): Likewise.
2339 (regcache::transfer_regset_register): Likewise.
2340 (regcache::transfer_regset): Use gdb_byte*.
2341
bfd60e34
AH
23422018-06-22 Alan Hayward <alan.hayward@arm.com>
2343
2344 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2345
00431a78
PA
23462018-06-21 Pedro Alves <palves@redhat.com>
2347
2348 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2349 instead of a ptid_t. All callers adjusted.
2350 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2351 adjusted.
2352 (print_ada_task_info, display_current_task_id, task_command_1):
2353 Adjust.
2354 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2355 inferior_thread.
2356 (breakpoint_kind): Adjust.
2357 (remove_breakpoints_pid): Rename to ...
2358 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2359 pointer. All callers adjusted.
2360 (bpstat_clear_actions): Use inferior_thread.
2361 (get_bpstat_thread): New.
2362 (bpstat_do_actions): Use it.
2363 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2364 to take a thread_info pointer. All callers adjusted.
2365 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2366 (breakpoint_re_set_thread): Use inferior_thread.
2367 * breakpoint.h (struct inferior): Forward declare.
2368 (bpstat_stop_status): Update.
2369 (remove_breakpoints_pid): Delete.
2370 (remove_breakpoints_inf): New.
2371 * bsd-uthread.c (bsd_uthread_target::wait)
2372 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2373 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2374 (maint_btrace_packet_history_cmd)
2375 (maint_btrace_clear_packet_history_cmd): Adjust.
2376 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2377 inferior_thread.
2378 * cli/cli-interp.c: Include "inferior.h".
2379 * common/refcounted-object.h (struct
2380 refcounted_object_ref_policy): New.
2381 * compile/compile-object-load.c: Include gdbthread.h.
2382 (store_regs): Use inferior_thread.
2383 * corelow.c (core_target::close): Use current_inferior.
2384 (core_target_open): Adjust to use first_thread_of_inferior and use
2385 the current inferior.
2386 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2387 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2388 <thread>: ... this new field. All references adjusted.
2389 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2390 Take a thread_info pointer instead of a ptid_t.
2391 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2392 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2393 thread_info pointer instead of a ptid_t.
2394 * elfread.c: Include "inferior.h".
2395 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2396 Use inferior_thread.
2397 * eval.c (evaluate_subexp): Likewise.
2398 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2399 inferior_thread.
2400 * gdb_proc_service.h (struct thread_info): Forward declare.
2401 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2402 <thread>: ... this new field. All references adjusted.
2403 * gdbarch.h, gdbarch.c: Regenerate.
2404 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2405 'thread' parameter. All implementations and callers adjusted.
2406 * gdbthread.h (thread_info) <set_running>: New method.
2407 (delete_thread, delete_thread_silent): Take a thread_info pointer
2408 instead of a ptid.
2409 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2410 (first_thread_of_process): Delete, replaced by ...
2411 (first_thread_of_inferior): ... this new function. All callers
2412 adjusted.
2413 (any_live_thread_of_process): Delete, replaced by ...
2414 (any_live_thread_of_inferior): ... this new function. All callers
2415 adjusted.
2416 (switch_to_thread, switch_to_no_thread): Declare.
2417 (is_executing): Delete.
2418 (enable_thread_stack_temporaries): Update comment.
2419 <enable_thread_stack_temporaries>: Take a thread_info pointer
2420 instead of a ptid_t. Incref the thread.
2421 <~enable_thread_stack_temporaries>: Decref the thread.
2422 <m_ptid>: Delete
2423 <m_thr>: New.
2424 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2425 (get_last_thread_stack_temporary)
2426 (value_in_thread_stack_temporaries, can_access_registers_thread):
2427 Take a thread_info pointer instead of a ptid_t. All callers
2428 adjusted.
2429 * infcall.c (get_call_return_value): Use inferior_thread.
2430 (run_inferior_call): Work with thread pointers instead of ptid_t.
2431 (call_function_by_hand_dummy): Work with thread pointers instead
2432 of ptid_t. Use thread_info_ref.
2433 * infcmd.c (proceed_thread_callback): Access thread's state
2434 directly.
2435 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2436 access thread's state directly.
2437 (continue_command): Use inferior_thread.
2438 (info_program_command): Use find_thread_ptid and access thread
2439 state directly.
2440 (proceed_after_attach_callback): Use thread state directly.
2441 (notice_new_inferior): Take a thread_info pointer instead of a
2442 ptid_t. All callers adjusted.
2443 (exit_inferior): Take an inferior pointer instead of a pid. All
2444 callers adjusted.
2445 (exit_inferior_silent): New.
2446 (detach_inferior): Delete.
2447 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2448 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2449 (detach_inferior_command, kill_inferior_command): Use
2450 find_inferior_id instead of valid_gdb_inferior_id and
2451 gdb_inferior_id_to_pid.
2452 (inferior_command): Use inferior and thread pointers.
2453 * inferior.h (struct thread_info): Forward declare.
2454 (notice_new_inferior): Take a thread_info pointer instead of a
2455 ptid_t. All callers adjusted.
2456 (detach_inferior): Delete declaration.
2457 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2458 instead of a pid. All callers adjusted.
2459 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2460 (valid_gdb_inferior_id): Delete.
2461 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2462 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2463 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
2464 ...
2465 <inf>: ... this new field.
2466 <step_ptid>: Delete, replaced by ...
2467 <step_thread>: ... this new field.
2468 (get_displaced_stepping_state): Take an inferior pointer instead
2469 of a pid. All callers adjusted.
2470 (displaced_step_in_progress_any_inferior): Adjust.
2471 (displaced_step_in_progress_thread): Take a thread pointer instead
2472 of a ptid_t. All callers adjusted.
2473 (displaced_step_in_progress, add_displaced_stepping_state): Take
2474 an inferior pointer instead of a pid. All callers adjusted.
2475 (get_displaced_step_closure_by_addr): Adjust.
2476 (remove_displaced_stepping_state): Take an inferior pointer
2477 instead of a pid. All callers adjusted.
2478 (displaced_step_prepare_throw, displaced_step_prepare)
2479 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
2480 All callers adjusted.
2481 (start_step_over): Adjust.
2482 (infrun_thread_ptid_changed): Remove bit updating ptids in the
2483 displaced step queue.
2484 (do_target_resume): Adjust.
2485 (fetch_inferior_event): Use inferior_thread.
2486 (context_switch, get_inferior_stop_soon): Take an
2487 execution_control_state pointer instead of a ptid_t. All callers
2488 adjusted.
2489 (switch_to_thread_cleanup): Delete.
2490 (stop_all_threads): Use scoped_restore_current_thread.
2491 * inline-frame.c: Include "gdbthread.h".
2492 (inline_state) <inline_state>: Take a thread pointer instead of a
2493 ptid_t. All callers adjusted.
2494 <ptid>: Delete, replaced by ...
2495 <thread>: ... this new field.
2496 (find_inline_frame_state): Take a thread pointer instead of a
2497 ptid_t. All callers adjusted.
2498 (skip_inline_frames, step_into_inline_frame)
2499 (inline_skipped_frames, inline_skipped_symbol): Take a thread
2500 pointer instead of a ptid_t. All callers adjusted.
2501 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
2502 (inline_skipped_frames, inline_skipped_symbol): Likewise.
2503 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
2504 pointers directly.
2505 * linux-nat.c (get_detach_signal): Likewise.
2506 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
2507 (thread_db_notice_clone): Adjust.
2508 (thread_db_find_new_threads_silently)
2509 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
2510 a thread pointer instead of a ptid_t. All callers adjusted.
2511 * mi/mi-cmd-var.c: Include "inferior.h".
2512 (mi_cmd_var_update_iter): Update to use thread pointers.
2513 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
2514 inferior directly.
2515 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
2516 out to ...
2517 (mi_output_running): ... this new function.
2518 (mi_on_resume_1): Adjust to use it.
2519 (mi_user_selected_context_changed): Adjust to use inferior_thread.
2520 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
2521 directly.
2522 (interrupt_thread_callback): : Adjust to use thread and inferior
2523 pointers.
2524 * proc-service.c: Include "gdbthread.h".
2525 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
2526 * progspace-and-thread.c: Include "inferior.h".
2527 * progspace.c: Include "inferior.h".
2528 * python/py-exitedevent.c (create_exited_event_object): Adjust to
2529 hold a reference to an inferior_object.
2530 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
2531 inferior_thread.
2532 * python/py-inferior.c (struct inferior_object): Give the type a
2533 tag name instead of a typedef.
2534 (python_on_normal_stop): No need to check if the current thread is
2535 listed.
2536 (inferior_to_inferior_object): Change return type to
2537 inferior_object. All callers adjusted.
2538 (find_thread_object): Delete, bits factored out to ...
2539 (thread_to_thread_object): ... this new function.
2540 * python/py-infthread.c (create_thread_object): Use
2541 inferior_to_inferior_object.
2542 (thpy_is_stopped): Use thread pointer directly.
2543 (gdbpy_selected_thread): Use inferior_thread.
2544 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
2545 field, replaced with ...
2546 <thread>: ... this new field. All users adjusted.
2547 (btpy_insn_or_gap_new): Drop const.
2548 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
2549 callers adjusted.
2550 * python/py-record.c: Include "gdbthread.h".
2551 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2552 a ptid_t. All callers adjusted.
2553 (gdbpy_current_recording): Use inferior_thread.
2554 * python/py-record.h (recpy_record_object) <ptid>: Delete
2555 field, replaced with ...
2556 <thread>: ... this new field. All users adjusted.
2557 (recpy_element_object) <ptid>: Delete
2558 field, replaced with ...
2559 <thread>: ... this new field. All users adjusted.
2560 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2561 a ptid_t. All callers adjusted.
2562 * python/py-threadevent.c: Include "gdbthread.h".
2563 (get_event_thread): Use thread_to_thread_object.
2564 * python/python-internal.h (struct inferior_object): Forward
2565 declare.
2566 (find_thread_object, find_inferior_object): Delete declarations.
2567 (thread_to_thread_object, inferior_to_inferior_object): New
2568 declarations.
2569 * record-btrace.c: Include "inferior.h".
2570 (require_btrace_thread): Use inferior_thread.
2571 (record_btrace_frame_sniffer)
2572 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
2573 (get_thread_current_frame): Use scoped_restore_current_thread and
2574 switch_to_thread.
2575 (get_thread_current_frame): Use thread pointer directly.
2576 (record_btrace_replay_at_breakpoint): Use thread's inferior
2577 pointer directly.
2578 * record-full.c: Include "inferior.h".
2579 * regcache.c: Include "gdbthread.h".
2580 (get_thread_arch_regcache): Use the inferior's address space
2581 directly.
2582 (get_thread_regcache, registers_changed_thread): New.
2583 * regcache.h (get_thread_regcache(thread_info *thread)): New
2584 overload.
2585 (registers_changed_thread): New.
2586 (remote_target) <remote_detach_1>: Swap order of parameters.
2587 (remote_add_thread): <remote_add_thread>: Return the new thread.
2588 (get_remote_thread_info(ptid_t)): New overload.
2589 (remote_target::remote_notice_new_inferior): Use thread pointers
2590 directly.
2591 (remote_target::process_initial_stop_replies): Use
2592 thread_info::set_running.
2593 (remote_target::remote_detach_1, remote_target::detach)
2594 (extended_remote_target::detach): Adjust.
2595 * stack.c (frame_show_address): Use inferior_thread.
2596 * target-debug.h (target_debug_print_thread_info_pp): New.
2597 * target-delegates.c: Regenerate.
2598 * target.c (default_thread_address_space): Delete.
2599 (memory_xfer_partial_1): Use current_inferior.
2600 (target_detach): Use current_inferior.
2601 (target_thread_address_space): Delete.
2602 (generic_mourn_inferior): Use current_inferior.
2603 * target.h (struct target_ops) <thread_address_space>: Delete.
2604 (target_thread_address_space): Delete.
2605 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
2606 pointers directly.
2607 (delete_thread_1, delete_thread, delete_thread_silent): Take a
2608 thread pointer instead of a ptid_t. Adjust all callers.
2609 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
2610 (first_thread_of_process): Delete, replaced by ...
2611 (first_thread_of_inferior): ... this new function. All callers
2612 adjusted.
2613 (any_thread_of_process): Rename to ...
2614 (any_thread_of_inferior): ... this, and take an inferior pointer.
2615 (any_live_thread_of_process): Rename to ...
2616 (any_live_thread_of_inferior): ... this, and take an inferior
2617 pointer.
2618 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2619 (value_in_thread_stack_temporaries)
2620 (get_last_thread_stack_temporary): Take a thread pointer instead
2621 of a ptid_t. Adjust all callers.
2622 (thread_info::set_running): New.
2623 (validate_registers_access): Use inferior_thread.
2624 (can_access_registers_ptid): Rename to ...
2625 (can_access_registers_thread): ... this, and take a thread
2626 pointer.
2627 (print_thread_info_1): Adjust to compare thread pointers instead
2628 of ptids.
2629 (switch_to_no_thread, switch_to_thread): Make extern.
2630 (scoped_restore_current_thread::~scoped_restore_current_thread):
2631 Use m_thread pointer directly.
2632 (scoped_restore_current_thread::scoped_restore_current_thread):
2633 Use inferior_thread.
2634 (thread_command): Use thread pointer directly.
2635 (thread_num_make_value_helper): Use inferior_thread.
2636 * top.c (execute_command): Use inferior_thread.
2637 * tui/tui-interp.c: Include "inferior.h".
2638 * varobj.c (varobj_create): Use inferior_thread.
2639 (value_of_root_1): Use find_thread_global_id instead of
2640 global_thread_id_to_ptid.
2641
33bab475
AH
26422018-06-21 Alan Hayward <alan.hayward@arm.com>
2643
2644 * regcache.c (readable_regcache::read_part): Avoid memcpy when
2645 possible.
2646 (regcache::write_part): Likewise.
2647 (readable_regcache::cooked_read_part): Update comment.
2648 (readable_regcache::cooked_write_part): Likewise.
2649 * regcache.h: (readable_regcache::read_part): Likewise.
2650 (regcache::write_part): Likewise.
2651
8363f9d5
RB
26522018-06-21 Richard Bunt <richard.bunt@arm.com>
2653 Dirk Schubert <dirk.schubert@arm.com>
2654
2655 * aarch64-linux-nat.c (post_attach): New.
2656 (aarch64_linux_nat_target::post_attach): Override post_attach to
2657 record the number of hardware debug registers.
2658
0d0b0ea2
TT
26592018-06-20 Tom Tromey <tom@tromey.com>
2660
2661 * python/py-param.c (add_setshow_generic): Make parameters const.
2662 (parmpy_init): Update.
2663
302abd6e
SM
26642018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2665
2666 * regcache.h (regcache_cooked_read_ftype): Rename to...
2667 (register_read_ftype): ...this, change type to function_view.
2668 (class reg_buffer) <save>: Remove src parameter.
2669 (readonly_detached_regcache) <readonly_detached_regcache>: Make
2670 parameter non-const in first overload. Remove src parameter in
2671 second overload.
2672 * regcache.c (do_cooked_read): Remove.
2673 (readonly_detached_regcache::readonly_detached_regcache): Make
2674 parameter non-const, adjust call to other constructor.
2675 (reg_buffer::save): Remove src parameter.
2676 * frame.c (do_frame_register_read): Remove.
2677 (frame_save_as_regcache): Use lambda function.
2678 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
2679 parameter to ppu2spu_data *.
2680 (ppu2spu_sniffer): Use lambda function.
2681
19f3f25f
SM
26822018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * record-full.c (record_full_target::insert_breakpoint): Remove
2685 "struct" keyword, add const.
2686
d0ac1c44
SM
26872018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2688
2689 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
2690 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
2691 * configure.ac: Remove AC_PREREQ, add missing quoting.
2692 * gnulib/configure.ac: Modernize usage of
2693 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
2694 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
2695 (AUTOMAKE_VERSION): Bump to 1.15.1.
2696 * configure: Re-generate.
2697 * config.in: Re-generate.
2698 * aclocal.m4: Re-generate.
2699 * gnulib/aclocal.m4: Re-generate.
2700 * gnulib/config.in: Re-generate.
2701 * gnulib/configure: Re-generate.
2702 * gnulib/import/Makefile.in: Re-generate.
2703
6ae50267
PA
27042018-06-19 Pedro Alves <palves@redhat.com>
2705
2706 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
2707 (lookup_minimal_symbol_by_pc_section): ... here with
2708 gdb_assert_not_reached added.
2709
61b04dd0
PA
27102018-06-19 Pedro Alves <palves@redhat.com>
2711
2712 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
2713 parameter with a block parameter. Compare location's block symbol
2714 with the frame's block instead of addresses.
2715 (skip_inline_frames): Pass the current block instead of the
2716 frame's address. Break out as soon as we determine the frame
2717 should not be skipped.
2718
f709fabb
TT
27192018-06-18 Tom Tromey <tom@tromey.com>
2720
2721 * solib-aix.c (solib_aix_get_section_offsets): Return
2722 unique_xmalloc_ptr.
2723 (solib_aix_solib_create_inferior_hook): Update.
2724
668eb2f0
TT
27252018-06-18 Tom Tromey <tom@tromey.com>
2726
2727 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
2728
309822ca
TT
27292018-06-18 Tom Tromey <tom@tromey.com>
2730
2731 * solib-frv.c (frv_relocate_main_executable): Use
2732 unique_xmalloc_ptr.
2733 * solib-dsbt.c (dsbt_relocate_main_executable): Use
2734 unique_xmalloc_ptr.
2735
06424eac
TT
27362018-06-18 Tom Tromey <tom@tromey.com>
2737
2738 * objfiles.h (inhibit_section_map_updates): Update.
2739 (resume_section_map_updates, resume_section_map_updates_cleanup):
2740 Remove.
2741 * solib-svr4.c (svr4_handle_solib_event): Update.
2742 * objfiles.c (inhibit_section_map_updates): Return
2743 scoped_restore_tmpl<int>.
2744 (resume_section_map_updates, resume_section_map_updates_cleanup):
2745 Remove.
2746
b4be9fad
TT
27472018-06-18 Tom Tromey <tom@tromey.com>
2748
2749 * valprint.h (read_string): Update.
2750 * valprint.c (read_string): Change type of "buffer".
2751 (val_print_string): Update.
2752 * python/py-value.c (valpy_string): Update.
2753 * language.h (struct language_defn) <la_get_string>: Change
2754 type of "buffer".
2755 (default_get_string, c_get_string): Update.
2756 * language.c (default_get_string): Change type of "buffer".
2757 * guile/scm-value.c (gdbscm_value_to_string): Update.
2758 * c-lang.c (c_get_string): Change type of "buffer".
2759
3f0dbd67
TT
27602018-06-18 Tom Tromey <tom@tromey.com>
2761
2762 * ser-mingw.c (struct pipe_state_destroyer): New.
2763 (pipe_state_up): New typedef.
2764 (cleanup_pipe_state): Remove.
2765 (pipe_windows_open): Use pipe_state_up. Don't release argv.
2766
69d340c6
TT
27672018-06-18 Tom Tromey <tom@tromey.com>
2768
2769 * rust-lang.h (rust_yyerror): Don't declare.
2770 * rust-lang.c (rust_language_defn): Update.
2771 * rust-exp.y (yyerror): Now static.
2772 * parse.c (parse_exp_in_context_1): Update.
2773 * p-lang.h (p_yyerror): Don't declare.
2774 * p-lang.c (p_language_defn): Update.
2775 * p-exp.y (yyerror): Now static.
2776 * opencl-lang.c (opencl_language_defn): Update.
2777 * objc-lang.c (objc_language_defn): Update.
2778 * m2-lang.h (m2_yyerror): Don't declare.
2779 * m2-lang.c (m2_language_defn): Update.
2780 * m2-exp.y (yyerror): Now static.
2781 * language.h (struct language_defn) <la_error>: Remove.
2782 * language.c (unk_lang_error): Remove.
2783 (unknown_language_defn, auto_language_defn): Remove.
2784 * go-lang.h (go_yyerror): Don't declare.
2785 * go-lang.c (go_language_defn): Update.
2786 * go-exp.y (yyerror): Now static.
2787 * f-lang.h (f_yyerror): Don't declare.
2788 * f-lang.c (f_language_defn): Update.
2789 * f-exp.y (yyerror): Now static.
2790 * d-lang.h (d_yyerror): Don't declare.
2791 * d-lang.c (d_language_defn): Update.
2792 * d-exp.y (yyerror): Now static.
2793 * c-lang.h (c_yyerror): Don't declare.
2794 * c-lang.c (c_language_defn, cplus_language_defn)
2795 (asm_language_defn, minimal_language_defn): Update.
2796 * c-exp.y (yyerror): Now static.
2797 * ada-lang.h (ada_yyerror): Don't declare.
2798 * ada-lang.c (ada_language_defn): Update.
2799 * ada-exp.y (yyerror): Now static.
2800
e9902bfc
AH
28012018-06-18 Alan Hayward <alan.hayward@arm.com>
2802
2803 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
2804 (store_sveregs_to_thread): Likewise.
2805 (aarch64_linux_fetch_inferior_registers): Check for SVE.
2806 (aarch64_linux_store_inferior_registers): Likewise.
2807 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
2808 function.
2809 (aarch64_sve_regs_copy_to_regcache): Likewise.
2810 (aarch64_sve_regs_copy_from_regcache): Likewise.
2811 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
2812 declaration.
2813 (aarch64_sve_regs_copy_to_regcache): Likewise.
2814 (aarch64_sve_regs_copy_from_regcache): Likewise.
2815 (sve_context): Structure from Linux headers.
2816 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
2817 (SVE_SIG_ZREG_SIZE): Likewise.
2818 (SVE_SIG_PREG_SIZE): Likewise.
2819 (SVE_SIG_FFR_SIZE): Likewise.
2820 (SVE_SIG_REGS_OFFSET): Likewise.
2821 (SVE_SIG_ZREGS_OFFSET): Likewise.
2822 (SVE_SIG_ZREG_OFFSET): Likewise.
2823 (SVE_SIG_ZREGS_SIZE): Likewise.
2824 (SVE_SIG_PREGS_OFFSET): Likewise.
2825 (SVE_SIG_PREG_OFFSET): Likewise.
2826 (SVE_SIG_PREGS_SIZE): Likewise.
2827 (SVE_SIG_FFR_OFFSET): Likewise.
2828 (SVE_SIG_REGS_SIZE): Likewise.
2829 (SVE_SIG_CONTEXT_SIZE): Likewise.
2830 (SVE_PT_REGS_MASK): Likewise.
2831 (SVE_PT_REGS_FPSIMD): Likewise.
2832 (SVE_PT_REGS_SVE): Likewise.
2833 (SVE_PT_VL_INHERIT): Likewise.
2834 (SVE_PT_VL_ONEXEC): Likewise.
2835 (SVE_PT_REGS_OFFSET): Likewise.
2836 (SVE_PT_FPSIMD_OFFSET): Likewise.
2837 (SVE_PT_FPSIMD_SIZE): Likewise.
2838 (SVE_PT_SVE_ZREG_SIZE): Likewise.
2839 (SVE_PT_SVE_PREG_SIZE): Likewise.
2840 (SVE_PT_SVE_FFR_SIZE): Likewise.
2841 (SVE_PT_SVE_FPSR_SIZE): Likewise.
2842 (SVE_PT_SVE_FPCR_SIZE): Likewise.
2843 (__SVE_SIG_TO_PT): Likewise.
2844 (SVE_PT_SVE_OFFSET): Likewise.
2845 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
2846 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
2847 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
2848 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
2849 (SVE_PT_SVE_PREG_OFFSET): Likewise.
2850 (SVE_PT_SVE_PREGS_SIZE): Likewise.
2851 (SVE_PT_SVE_FFR_OFFSET): Likewise.
2852 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
2853 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
2854 (SVE_PT_SVE_SIZE): Likewise.
2855 (SVE_PT_SIZE): Likewise.
2856 (HAS_SVE_STATE): New define.
2857
17a1cc89
AH
28582018-06-18 Alan Hayward <alan.hayward@arm.com>
2859
2860 * nat/aarch64-sve-linux-sigcontext.h: New file.
2861 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
2862 new files.
2863 (SVE_VQ_MIN): Likewise.
2864 (SVE_VQ_MAX): Likewise.
2865 (SVE_VL_MIN): Likewise.
2866 (SVE_VL_MAX): Likewise.
2867 (SVE_NUM_ZREGS): Likewise.
2868 (SVE_NUM_PREGS): Likewise.
2869 (sve_vl_valid): Likewise.
2870 (struct user_sve_header): Likewise.
2871
7010835a
AB
28722018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
2873 Richard Bunt <Richard.Bunt@arm.com>
2874
2875 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
2876 was requested by GDB.
2877
479b3ef4
TV
28782018-06-15 Tom de Vries <tdevries@suse.de>
2879
2880 * MAINTAINERS (Write After Approval): Add Tom de Vries.
2881
8199b8f4
SM
28822018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * gnulib/update-gnulib.sh: Print expected versions of
2885 autoconf/aclocal.
2886
55c748a1
SM
28872018-06-14 Simon Marchi <simon.marchi@ericsson.com>
2888
2889 * arch-utils.c (default_type_align): Use type_length_units.
2890 * gdbtypes.c (type_align): Use type_length_units.
2891
87a8eca7
PW
28922018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2893
2894 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
2895 of 'define' command.
2896
5d9a0608
TV
28972018-06-14 Tom de Vries <tdevries@suse.de>
2898
2899 PR cli/22573
2900 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
2901 get_no_prettyformat_print_options.
2902
ab89b5a5
SM
29032018-06-13 Simon Marchi <simon.marchi@ericsson.com>
2904
2905 * sparc-nat.h: Include target.h.
2906 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
2907 <fetch_registers>: Remove this argument in function call.
2908 <store_registers>: Remove this argument in function call, remove
2909 extra semicolon.
2910 <low_forget_process>: Call sparc64_forget_process instead of
2911 sparc_forget_process.
2912
62c808ae
RO
29132018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2914
2915 * procfs.c (_initialize_procfs): Use add_inf_child_target.
2916 (procfs_target::make_corefile_notes): Adjust to new
2917 target_read_alloc return type.
2918
1840d81a
AB
29192018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
2920 Stephen Roberts <stephen.roberts@arm.com>
2921
2922 PR gdb/22882
2923 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
2924 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
2925 Move should_notify_stop local into more inner scope.
2926
9516f85a
AB
29272018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
2928 Stephen Roberts <stephen.roberts@arm.com>
2929
2930 PR gdb/22882
2931 * infrun.c (resume_1): Add call to mark_async_event_handler.
2932
defd2172
AB
29332018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * infrun.c (do_target_wait): Change old version of $pc printed.
2936
7b23e087
SM
29372018-06-11 Simon Marchi <simon.marchi@ericsson.com>
2938
2939 * dwarf2read.c (read_index_from_section): Rename to...
2940 (read_gdb_index_from_section): ... this, update all callers.
2941 (dwarf2_read_index): Rename to...
2942 (dwarf2_read_gdb_index): ... this, update all callers.
2943
69c67a0b
JDA
29442018-06-11 John David Anglin <danglin@gcc.gnu.org>
2945
2946 * gdb/hppa-linux-nat.c
2947 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
2948 hppa_linux_nat_target::fetch_registers.
2949
65d4cada
AH
29502018-06-11 Alan Hayward <alan.hayward@arm.com>
2951
2952 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
2953 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
2954 (AARCH64_DWARF_SVE_FFR): Likewise.
2955 (AARCH64_DWARF_SVE_P0): Likewise.
2956 (AARCH64_DWARF_SVE_Z0): Likewise.
2957
f868386e
AH
29582018-06-11 Alan Hayward <alan.hayward@arm.com>
2959
2960 * common/common-regcache.h (raw_compare): New function.
2961 * regcache.c (regcache::raw_compare): Likewise.
2962 * regcache.h (regcache::raw_compare): New declaration.
2963
9c861883
AH
29642018-06-11 Alan Hayward <alan.hayward@arm.com>
2965
2966 * common/common-regcache.h (reg_buffer_common): New structure.
2967 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
2968 (reg_buffer::raw_supply): Likewise.
2969 (reg_buffer::raw_supply_integer): Likewise.
2970 (reg_buffer::raw_supply_zeroed): Likewise.
2971 (reg_buffer::raw_collect): Likewise.
2972 (reg_buffer::raw_collect_integer): Likewise.
2973 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
2974 (reg_buffer::raw_supply): Likewise.
2975 (reg_buffer::raw_supply_integer): Likewise.
2976 (reg_buffer::raw_supply_zeroed): Likewise.
2977 (reg_buffer::raw_collect): Likewise.
2978 (reg_buffer::raw_collect_integer): Likewise.
2979
953edf2b
TT
29802018-06-10 Tom Tromey <tom@tromey.com>
2981
2982 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
2983 (class remote_state) <stop_reply_queue>: Now std::vector.
2984 (remote_state::~remote_state)
2985 (remote_target::stop_reply_queue_length): Update.
2986 (struct queue_iter_param, remove_child_of_pending_fork)
2987 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
2988 (check_pending_event_prevents_wildcard_vcont_callback)
2989 (remove_stop_reply_for_inferior)
2990 (remove_stop_reply_of_remote_state)
2991 (remote_notif_remove_once_on_match)
2992 (stop_reply_match_ptid_and_ws)
2993 (remote_kill_child_of_pending_fork): Remove.
2994 (remote_target::remove_new_fork_children)
2995 (remote_target::check_pending_events_prevent_wildcard_vcont)
2996 (remote_target::discard_pending_stop_replies)
2997 (remote_target::discard_pending_stop_replies_in_queue)
2998 (remote_target::remote_notif_remove_queued_reply)
2999 (remote_target::queued_stop_reply)
3000 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3001 (remote_target::wait, remote_target::kill_new_fork_children)
3002 (remote_target::async): Update.
3003
1ddbba9d
TT
30042018-06-10 Tom Tromey <tom@tromey.com>
3005
3006 * record-full.c (record_full_arch_list_cleanups): Remove.
3007 (record_full_message): Use try/catch.
3008 (record_full_wait_cleanups): Remove.
3009 (record_full_wait_1): Use try/catch.
3010 (record_full_restore): Likewise.
3011
219605fd
TT
30122018-06-10 Tom Tromey <tom@tromey.com>
3013
3014 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3015 declare VEC. Add constructor.
3016 <in_target_beneath>: Now bool.
3017 (record_full_breakpoints): Now a std::vector, static.
3018 (record_full_sync_record_breakpoints)
3019 (record_full_init_record_breakpoints)
3020 (record_full_target::insert_breakpoint)
3021 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3022
71b73764
SM
30232018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3024
3025 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3026 * serial.c (serial_interface_lookup): Remove struct keyword.
3027
4360561f
TT
30282018-06-10 Tom Tromey <tom@tromey.com>
3029
3030 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3031 method.
3032 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3033 a method.
3034 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3035 method.
3036 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3037 "beneath" as a method.
3038 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3039 Use "beneath" as a method.
3040
d14b92bf
TT
30412018-06-10 Tom Tromey <tom@tromey.com>
3042
3043 * tracefile.c (struct trace_file_writer_deleter): New.
3044 <operator()>: Rename from trace_file_writer_xfree.
3045 (trace_file_writer_up): New typedef.
3046 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3047
835dcf92
SM
30482018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3049
3050 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3051 <m_registers, m_register_status>: Change type to
3052 std::unique_ptr.
3053 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3054 XCNEWVEC.
3055
aac0d564
SM
30562018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3057
3058 * common/common-regcache.h (enum register_status): Add
3059 underlying type "signed char".
3060 * regcache.h (reg_buffer) <m_register_status>: Change type to
3061 register_status *.
3062 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3063 register_status instead of signed char.
3064 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3065 (reg_buffer::get_register_status): Remove cast.
3066 (readable_regcache::raw_read): Remove cast.
3067 (readable_regcache::cooked_read): Remove cast.
3068
77ad7394
TT
30692018-06-09 Tom Tromey <tom@tromey.com>
3070
3071 * source.c (reverse_search_command, forward_search_command): Use
3072 scoped_fd.
3073
191cca63
TT
30742018-06-09 Tom Tromey <tom@tromey.com>
3075
3076 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3077 (serial_ops_list): Now static, std::vector.
3078 (serial_interface_lookup, serial_add_interface): Update.
3079
c5d0225d
TT
30802018-06-09 Tom Tromey <tom@tromey.com>
3081
3082 * dwarf2read.c (process_cu_includes): Update.
3083 (process_full_comp_unit): Update.
3084 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3085 std::vector.
3086
aeab5128
PK
30872018-06-08 Paul Koning <paul_koning@dell.com>
3088
3089 PR gdb/23252
3090
3091 * python/python.c (do_start_initialization):
3092 Avoid call to internal Python API.
3093 (init__gdb_module): New function.
3094
5045b3d7
GB
30952018-06-08 Gary Benson <gbenson@redhat.com>
3096
3097 * linux-thread-db.c (valprint.h): New include.
3098 (struct check_thread_db_info): New structure.
3099 (check_thread_db_on_load, tdb_testinfo): New static globals.
3100 (check_thread_db, check_thread_db_callback): New functions.
3101 (try_thread_db_load_1): Run integrity checks if requested.
3102 (maintenance_check_libthread_db): New function.
3103 (_initialize_thread_db): Register "maint check libthread-db"
3104 and "maint set/show check-libthread-db".
3105 * NEWS: Mention the above new commands.
3106
2f4f025f
TT
31072018-06-08 Tom Tromey <tom@tromey.com>
3108
3109 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3110 now a method.
3111
343b0027
TT
31122018-06-08 Tom Tromey <tom@tromey.com>
3113
3114 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3115
8dcc53b3
TT
31162018-06-08 Tom Tromey <tom@tromey.com>
3117
3118 * common/btrace-common.h (struct btrace_data): Add constructor,
3119 destructor, move assignment operator.
3120 <empty, clear, fini>: New methods.
3121 <format>: Initialize.
3122 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3123 (btrace_data_empty): Don't declare.
3124 * common/btrace-common.c (btrace_data_init): Remove.
3125 (btrace_data::fini): Rename from btrace_data_fini.
3126 (btrace_data::empty): Rename from btrace_data_empty.
3127 (btrace_data::clear): Rename from btrace_data_clear. Return
3128 bool.
3129 * btrace.h (make_cleanup_btrace_data): Don't declare.
3130 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3131 (parse_xml_btrace): Update.
3132 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3133 (maint_btrace_clear_packet_history_cmd): Update.
3134
a1740ee1
PA
31352018-06-07 Pedro Alves <palves@redhat.com>
3136
3137 * target.h (target_ops) <beneath>: Now a method. All references
3138 updated.
3139 (class target_stack): New.
3140 * target.c (g_target_stack): New.
3141 (g_current_top_target): Delete.
3142 (current_top_target): Get the top target out of g_target_stack.
3143 (target_stack::push, target_stack::unpush): New.
3144 (push_target, unpush_target): Reimplement.
3145 (target_is_pushed): Reimplement in terms of g_target_stack.
3146 (target_ops::beneath, target_stack::find_beneath): New.
3147
d6ca69cd
PA
31482018-06-07 Pedro Alves <palves@redhat.com>
3149
3150 * target.h (find_target_beneath): Delete declaration.
3151 * target.c (find_target_beneath): Delete definition.
3152 * aix-thread.c: All callers of find_target_beneath adjusted to
3153 call target_ops::beneath instead.
3154 * bsd-uthread.c: Likewise.
3155 * linux-thread-db.c: Likewise.
3156 * ravenscar-thread.c: Likewise.
3157 * sol-thread.c: Likewise.
3158 * spu-multiarch.c: Likewise.
3159
b6a8c27b
PA
31602018-06-07 Pedro Alves <palves@redhat.com>
3161
3162 * target.h (target_ops) <beneath>: Now a method. All references
3163 updated.
3164 (target_ops) <m_beneath>: New.
3165 * target.c (target_ops::beneath): New.
3166 * corelow.c: Adjust all references to target_ops::beneath.
3167 * linux-thread-db.c: Likewise.
3168 * make-target-delegates: Likewise.
3169 * record-btrace.c: Likewise.
3170 * record-full.c: Likewise.
3171 * remote.c: Likewise.
3172 * target.c: Likewise.
3173 * target-delegates.c: Regenerate.
3174
8b88a78e
PA
31752018-06-07 Pedro Alves <palves@redhat.com>
3176
3177 * target.h (target_stack): Delete.
3178 (current_top_target): Declare function.
3179 * target.c (target_stack): Delete.
3180 (g_current_top_target): New.
3181 (current_top_target): New function.
3182 * auxv.c: Use current_top_target instead of target_stack
3183 throughout.
3184 * avr-tdep.c: Likewise.
3185 * breakpoint.c: Likewise.
3186 * corefile.c: Likewise.
3187 * elfread.c: Likewise.
3188 * eval.c: Likewise.
3189 * exceptions.c: Likewise.
3190 * frame.c: Likewise.
3191 * gdbarch-selftests.c: Likewise.
3192 * gnu-v3-abi.c: Likewise.
3193 * ia64-tdep.c: Likewise.
3194 * ia64-vms-tdep.c: Likewise.
3195 * infcall.c: Likewise.
3196 * infcmd.c: Likewise.
3197 * infrun.c: Likewise.
3198 * linespec.c: Likewise.
3199 * linux-tdep.c: Likewise.
3200 * minsyms.c: Likewise.
3201 * ppc-linux-nat.c: Likewise.
3202 * ppc-linux-tdep.c: Likewise.
3203 * procfs.c: Likewise.
3204 * regcache.c: Likewise.
3205 * remote.c: Likewise.
3206 * rs6000-tdep.c: Likewise.
3207 * s390-linux-nat.c: Likewise.
3208 * s390-tdep.c: Likewise.
3209 * solib-aix.c: Likewise.
3210 * solib-darwin.c: Likewise.
3211 * solib-dsbt.c: Likewise.
3212 * solib-spu.c: Likewise.
3213 * solib-svr4.c: Likewise.
3214 * solib-target.c: Likewise.
3215 * sparc-tdep.c: Likewise.
3216 * sparc64-tdep.c: Likewise.
3217 * spu-tdep.c: Likewise.
3218 * symfile.c: Likewise.
3219 * symtab.c: Likewise.
3220 * target-descriptions.c: Likewise.
3221 * target-memory.c: Likewise.
3222 * target.c: Likewise.
3223 * target.h: Likewise.
3224 * tracefile-tfile.c: Likewise.
3225 * tracepoint.c: Likewise.
3226 * valops.c: Likewise.
3227 * valprint.c: Likewise.
3228 * value.c: Likewise.
3229 * windows-tdep.c: Likewise.
3230 * mi/mi-main.c: Likewise.
3231
c7110220
TT
32322018-06-07 Tom Tromey <tom@tromey.com>
3233
3234 * valprint.h (build_address_symbolic): Declare.
3235 * printcmd.c (print_address_symbolic): Update.
3236 (build_address_symbolic): Change "name" and "filename" to
3237 std::string.
3238 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3239 Update.
3240 * defs.h (build_address_symbolic): Remove declaration.
3241
63bad7b6
AH
32422018-06-07 Alan Hayward <alan.hayward@arm.com>
3243
3244 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3245 (aarch64_vnv_type): Add function.
3246 (aarch64_pseudo_register_name): Add V regs for SVE.
3247 (aarch64_pseudo_register_type): Likewise.
3248 (aarch64_pseudo_register_reggroup_p): Likewise.
3249 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3250 (aarch64_pseudo_read_value): Add V regs for SVE.
3251 (aarch64_pseudo_write_2): Use V0 offset for SVE
3252 (aarch64_pseudo_write): Add V regs for SVE.
3253 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3254
13e3c608
SDJ
32552018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3256
3257 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3258 (sve_vl_from_vq): Likewise.
3259
c61b06a1
TT
32602018-06-05 Tom Tromey <tom@tromey.com>
3261
3262 * cli/cli-cmds.c (show_version): Update.
3263 * top.c (print_gdb_version): Add "interactive" parameter.
3264 Update.
3265 * main.c (captured_main_1): Update.
3266 * top.h (print_gdb_version): Add "interactive" parameter and a
3267 comment.
3268
115f7325
DM
32692018-06-05 David Malcolm <dmalcolm@redhat.com>
3270
3271 * common/enum-flags.h: Add trailing semicolon to example in
3272 comment.
3273
eb6af809
TT
32742018-06-05 Tom Tromey <tom@tromey.com>
3275
3276 PR cli/12326:
3277 * NEWS: Add entry about pager.
3278 * utils.c (pagination_disabled_for_command): New global.
3279 (prompt_for_continue): Allow "c" response to prompt.
3280 (reinitialize_more_filter): Clear
3281 pagination_disabled_for_command.
3282 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3283
54d343a2
TT
32842018-06-04 Tom Tromey <tom@tromey.com>
3285
3286 * ada-lang.h (ada_lookup_symbol_list): Update.
3287 * ada-lang.c (resolve_subexp): Update.
3288 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3289 parameter.
3290 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3291 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3292 results parameter to std::vector.
3293 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3294 Update.
3295 * ada-exp.y (block_lookup): Update.
3296 (select_possible_type_sym): Change type of syms. Remove nsyms
3297 parameter.
3298 (write_var_or_type, write_name_assoc): Update.
3299
178d6a63
JB
33002018-06-04 Joel Brobecker <brobecker@adacore.com>
3301
3302 * windows-nat.c (windows_nat_target::xfer_partial): Return
3303 TARGET_XFER_E_IO if we need to delegate to the target beneath
3304 but BENEATH is NULL.
3305
baf00c2d
SM
33062018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3307
3308 * Makefile.in (config.status): Add configure.nat as a
3309 dependency.
3310
214b073c
TT
33112018-06-04 Tom Tromey <tom@tromey.com>
3312
3313 * cp-name-parser.y (cpname_state): Add method declarations.
3314 (HANDLE_QUAL): Update.
3315 (cpname_state::d_grab, cpname_state::fill_comp)
3316 (cpname_state::make_operator, cpname_state::make_dtor)
3317 (cpname_state::make_builtin_type, cpname_state::make_name)
3318 (cpname_state::d_qualify, cpname_state::d_int_type)
3319 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3320 (%union): Move earlier.
3321
62b74cb8
AH
33222018-06-04 Alan Hayward <alan.hayward@arm.com>
3323
3324 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3325
3c5cd5c3
AH
33262018-06-04 Alan Hayward <alan.hayward@arm.com>
3327
3328 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3329 (aarch64_pseudo_write_1): Likewise.
3330 (aarch64_pseudo_read_value): Use helper.
3331 (aarch64_pseudo_write): Likewise.
3332
59f413d5
PA
33332018-06-04 Pedro Alves <palves@redhat.com>
3334
3335 * darwin-nat.c (darwin_ops): Delete.
3336 (darwin_attach_pid): Use get_native_target.
3337
1332a140
AH
33382018-06-04 Alan Hayward <alan.hayward@arm.com>
3339
3340 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3341 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3342
ba2d2bb2
AH
33432018-06-04 Alan Hayward <alan.hayward@arm.com>
3344
3345 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3346 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3347 (aarch64_gdbarch_init): Check for SVE.
3348 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3349
33502018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
3351
3352 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3353 * aarch64-tdep.h (aarch64_read_description): Likewise.
3354 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3355 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3356 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3357 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3358 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3359
41c60b4b
SM
33602018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3361
3362 * value.c (value_fetch_lazy_bitfield): New.
3363 (value_fetch_lazy_memory): New.
3364 (value_fetch_lazy_register): New.
3365 (value_fetch_lazy): Factor out to smaller functions.
3366
7b640f72
TT
33672018-06-01 Tom Tromey <tom@tromey.com>
3368
3369 * cp-name-parser.y (backslashable, represented): Now const.
3370
98e69eb3
TT
33712018-06-01 Tom Tromey <tom@tromey.com>
3372
3373 * cp-name-parser.y: Include parser-defs.h.
3374 (parser_fprintf): Remove declaration.
3375
49265499
TT
33762018-06-01 Tom Tromey <tom@tromey.com>
3377
3378 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3379 %parse-param.
3380 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3381 (global_result): Remove globals.
3382 (struct cpname_state): New.
3383 (yyparse): Don't declare.
3384 (yylex, yyerror): Move declarations after %union.
3385 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3386 (make_name): Add state parameter.
3387 Update all callers.
3388 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3389 parameter.
3390 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3391 Update.
3392 (yylex): Add lvalp, state parameters.
3393 (yyerror): Add state parameter.
3394 (cp_demangled_name_to_comp): Update.
3395
55b6c984
TT
33962018-06-01 Tom Tromey <tom@tromey.com>
3397
3398 * cp-name-parser.y (parser_fprintf): Declare.
3399 (GDB_YY_REMAP_PREFIX): Define.
3400 Include yy-remap.h. Don't redefine yy* identifiers.
3401
3513a6bb
TT
34022018-06-01 Tom Tromey <tom@tromey.com>
3403
3404 * python/py-type.c (typy_legacy_template_argument): Update.
3405 * cp-support.h (cp_demangled_name_to_comp): Update.
3406 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3407 parameter to be a "std::string *".
3408 (main): Update.
3409
e9cb46ab
L
34102018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3411
3412 * ada-lex.l: Include "diagnostics.h" instead of
3413 "common/diagnostics.h".
3414 * unittests/environ-selftests.c: Likewise.
3415 * common/diagnostics.h: Moved to ../include.
3416
8e817061
JB
34172018-06-01 Joel Brobecker <brobecker@adacore.com>
3418
3419 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3420 to language_mode_manual while calling breakpoint_re_set_one.
3421
a737d952
TT
34222018-06-01 Tom Tromey <tom@tromey.com>
3423
3424 * valops.c (value_cast_structs, destructor_name_p): Update.
3425 * symtab.c (gdb_mangle_name): Update.
3426 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3427 Update.
3428 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3429 (pascal_object_print_value_fields, pascal_object_print_value):
3430 Update.
3431 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3432 * linespec.c (find_methods): Update.
3433 * gdbtypes.h (type_name_no_tag): Remove.
3434 (type_name_or_error): Rename from type_name_no_tag_or_error.
3435 * gdbtypes.c (type_name_no_tag): Remove.
3436 (type_name_or_error): Rename from type_name_no_tag_or_error.
3437 (lookup_struct_elt_type, check_typedef): Update.
3438 * expprint.c (print_subexp_standard): Update.
3439 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3440 * d-namespace.c (d_lookup_nested_symbol): Update.
3441 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3442 (cp_print_class_member): Update.
3443 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3444 * completer.c (add_struct_fields): Update.
3445 * c-typeprint.c (cp_type_print_derivation_info)
3446 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3447 Update.
3448 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3449 (ada_prefer_type, ada_is_exception_sym): Update.
3450
e86ca25f
TT
34512018-06-01 Tom Tromey <tom@tromey.com>
3452
3453 * valops.c (enum_constant_from_type, value_namespace_elt)
3454 (value_maybe_namespace_elt): Update.
3455 * valarith.c (find_size_for_pointer_math): Update.
3456 * target-descriptions.c (make_gdb_type): Update.
3457 * symmisc.c (print_symbol): Update.
3458 * stabsread.c (define_symbol, read_type)
3459 (complain_about_struct_wipeout, add_undefined_type)
3460 (cleanup_undefined_types_1): Update.
3461 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3462 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3463 (rust_internal_print_type, rust_composite_type)
3464 (rust_evaluate_funcall, rust_evaluate_subexp)
3465 (rust_inclusive_range_type_p): Update.
3466 * python/py-type.c (typy_get_tag): Update.
3467 * p-typeprint.c (pascal_type_print_base): Update.
3468 * mdebugread.c (parse_symbol, parse_type): Update.
3469 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
3470 Update.
3471 * guile/scm-type.c (gdbscm_type_tag): Update.
3472 * go-lang.c (sixg_string_p): Update.
3473 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
3474 Update.
3475 * gdbtypes.h (struct main_type) <tag_name>: Remove.
3476 (TYPE_TAG_NAME): Remove.
3477 * gdbtypes.c (type_name_no_tag): Simplify.
3478 (check_typedef, check_types_equal, recursive_dump_type)
3479 (copy_type_recursive, arch_composite_type): Update.
3480 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
3481 in summary mode when needed.
3482 * eval.c (evaluate_funcall): Update.
3483 * dwarf2read.c (fixup_go_packaging, read_structure_type)
3484 (process_structure_scope, read_enumeration_type)
3485 (read_namespace_type, read_module_type, determine_prefix): Update.
3486 * cp-support.c (inspect_type): Update.
3487 * coffread.c (process_coff_symbol, decode_base_type): Update.
3488 * c-varobj.c (c_is_path_expr_parent): Update.
3489 * c-typeprint.c (c_type_print_base_struct_union): Update.
3490 (c_type_print_base_1): Update. Print struct/class/union/enum in
3491 summary when using C language.
3492 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
3493 (gen_maybe_namespace_elt): Update.
3494 * ada-lang.c (ada_type_name): Simplify.
3495 (empty_record, ada_template_to_fixed_record_type_1)
3496 (template_to_static_fixed_type)
3497 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
3498
c1ec8cea
TT
34992018-06-01 Tom Tromey <tom@tromey.com>
3500
3501 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
3502 c_print_type.
3503 * c-typeprint.c (c_print_type_1): Add "language" parameter.
3504 (c_print_type): Update.
3505 (c_print_type): New overload.
3506 (c_type_print_varspec_prefix, c_type_print_args)
3507 (c_type_print_varspec_suffix, c_print_type_no_offsets)
3508 (c_type_print_base_struct_union, c_type_print_base_1)
3509 (cp_type_print_method_args): Add "language" parameter.
3510 (c_type_print_base): Update.
3511 * c-lang.h (c_print_type): Add new overload.
3512
bc8453a7
TT
35132018-06-01 Tom Tromey <tom@tromey.com>
3514
3515 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
3516 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
3517
739e8682
AH
35182018-06-01 Alan Hayward <alan.hayward@arm.com>
3519
3520 * aarch64-tdep.c (aarch64_sve_register_names): New const
3521 var.
3522 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
3523 (AARCH64_SVE_Z_REGS_NUM): New define.
3524 (AARCH64_SVE_P_REGS_NUM): Likewise.
3525 (AARCH64_SVE_NUM_REGS): Likewise.
3526
8a60efe7
UB
35272018-05-31 Uros Bizjak <ubizjak@gmail.com>
3528
3529 * nat/linux-ptrace.h [__alpha__]
3530 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
3531 definitions.
3532
4b2dfa9d
MR
35332018-05-31 Maciej W. Rozycki <macro@mips.com>
3534
3535 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
3536 the endianness selected.
3537 * NEWS: Document `set endian auto' mode operation update.
3538
122394f1
AH
35392018-05-31 Alan Hayward <alan.hayward@arm.com>
3540
3541 * Makefile.in: Add new header.
3542 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
3543 (sve_vl_from_vg): Likewise.
3544 (sve_vq_from_vl): Likewise.
3545 (sve_vl_from_vq): Likewise.
3546 (sve_vq_from_vg): Likewise.
3547 (sve_vg_from_vq): Likewise.
3548 * configure.nat: Add new c file.
3549 * nat/aarch64-sve-linux-ptrace.c: New file.
3550 * nat/aarch64-sve-linux-ptrace.h: New file.
3551
95228a0d
AH
35522018-05-31 Alan Hayward <alan.hayward@arm.com>
3553
3554 * aarch64-linux-nat.c (aarch64_linux_read_description):
3555 Add parmeter zero.
3556 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3557 Likewise.
3558 * aarch64-tdep.c (tdesc_aarch64_list): Add.
3559 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
3560 (aarch64_gdbarch_init): Add parmeter zero.
3561 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
3562 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
3563 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
3564 parmeter.
3565 * doc/gdb.texinfo: Describe SVE feature
3566 * features/aarch64-sve.c: New file.
3567
5969f0db
OJ
35682018-05-31 Omair Javaid <omair.javaid@linaro.org>
3569
3570 PR gdb/23210
3571 * gdbarch.sh (significant_addr_bit): Default to zero when
3572 not set by target architecture.
3573 * gdbarch.c: Re-generated.
3574 * utils.c (address_significant): Update.
3575
61367c61
JB
35762018-05-30 Joel Brobecker <brobecker@adacore.com>
3577
3578 * stack.c (func_command): Remove trailing newline in call to error.
3579
34a79281
SM
35802018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3581
3582 * regcache.h (regcache_raw_collect): Remove, update callers to
3583 use regcache::raw_collect.
3584 * regcache.c (regcache_raw_collect): Remove.
3585
73e1c03f
SM
35862018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * regcache.h (regcache_raw_supply): Remove, update callers to
3589 use detached_regcache::raw_supply.
3590 * regcache.c (regcache_raw_supply): Remove.
3591
e4c4a59b
SM
35922018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3593
3594 * regcache.h (regcache_cooked_write_part): Remove, update
3595 callers to use regcache::cooked_write_part.
3596 * regcache.c (regcache_cooked_write_part): Remove.
3597
73bb0000
SM
35982018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3599
3600 * regcache.h (regcache_cooked_read_part): Remove, update callers
3601 to use readable_regcache::cooked_read_part.
3602 * regcache.c (regcache_cooked_read_part): Remove.
3603
46a45e9d
SM
36042018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3605
3606 * regcache.h (regcache_cooked_read_value): Remove, update
3607 callers to use readable_regcache::cooked_read_value.
3608 * regcache.c (regcache_cooked_read_value): Remove.
3609
b66f5587
SM
36102018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3611
3612 * regcache.h (regcache_cooked_write): Remove, update callers to
3613 use regcache::cooked_write.
3614 * regcache.c (regcache_cooked_write): Remove.
3615
6aa7d724
SM
36162018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3617
3618 * regcache.h (regcache_invalidate): Remove, update callers to
3619 use detached_regcache::invalidate instead.
3620 * regcache.c (regcache_invalidate): Remove.
3621
4f0420fd
SM
36222018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3623
3624 * regcache.h (regcache_raw_write_part): Remove, update callers
3625 to use regcache::raw_write_part instead.
3626 * regcache.c (regcache_raw_write_part): Remove.
3627
502fe83e
SM
36282018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3629
3630 * regcache.h (regcache_raw_read_part): Remove, update callers to
3631 use readable_regcache::raw_read_part instead.
3632 * regcache.c (regcache_raw_read_part): Remove.
3633
dca08e1f
SM
36342018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3635
3636 * regcache.h (regcache_cooked_read): Remove, update callers to
3637 use readable_regcache::cooked_read instead.
3638 * regcache.c (regcache_cooked_read): Remove.
3639
10eaee5f
SM
36402018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3641
3642 * regcache.h (regcache_raw_write): Remove, update callers to use
3643 regcache::raw_write instead.
3644 * regcache.c (regcache_raw_write): Remove.
3645
0b883586
SM
36462018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3647
3648 * regcache.h (regcache_raw_read): Remove, update callers to use
3649 readable_regcache::raw_read instead.
3650 * regcache.c (regcache_raw_read): Remove.
3651
0b47d985
SM
36522018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3653
3654 * regcache.h (regcache_raw_update): Remove, update callers to
3655 use readable_regcache::raw_update instead.
3656 * regcache.c (regcache_raw_update): Remove.
3657
0ec9f114
SM
36582018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3659
3660 * regcache.h (regcache_register_status): Remove, update callers
3661 to use reg_buffer::get_register_status directly instead.
3662 * regcache.c (regcache_register_status): Remove.
3663
222312d3
SM
36642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3665
3666 * regcache.h (regcache_get_ptid): Remove, update all callers to
3667 call regcache::ptid instead.
3668 * regcache.c (regcache_get_ptid): Remove.
3669
fdbe37e3
SM
36702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3671
3672 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
3673
f7c6f423
PA
36742018-05-30 Pedro Alves <palves@redhat.com>
3675
3676 * common/common-exceptions.h (exception_rethrow): Use
3677 ATTRIBUTE_NORETURN.
3678
52941706
SM
36792018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
3680
3681 * breakpoint.c (print_solib_event, check_status_catch_solib):
3682 Remove struct keyword in range-based for loops.
3683 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
3684 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
3685 Likewise.
3686 * linespec.c (find_superclass_methods, search_minsyms_for_name):
3687 Likewise.
3688 * symfile.c (addr_info_make_relative): Likewise.
3689 * thread.c (value_in_thread_stack_temporaries): Likewise.
3690
bf2977b5
WP
36912018-06-12 Weimin Pan <weimin.pan@oracle.com>
3692
3693 PR gdb/16841
3694 * valops.c (value_struct_elt_for_reference): Call check_typedef on
3695 aggregate type to get its real type before accessing it.
3696
64cc34d8
WP
36972018-05-29 Weimin Pan <weimin.pan@oracle.com>
3698
3699 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
3700 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
3701 * coff-pe-read.c (add_pe_forwarded_sym): Replace
3702 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
3703 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
3704 * jit.c (jit_breakpoint_re_set_internal): Likewise.
3705 * printcmd.c (info_address_command): Likewise.
3706
e7ec8713
TT
37072018-05-29 Tom Tromey <tom@tromey.com>
3708
3709 * windows-nat.c (handle_exception): Update fall-through comment.
3710
bcb430e4
TT
37112018-05-29 Tom Tromey <tom@tromey.com>
3712
3713 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
3714 (struct program_space) <added_solibs>: Now a std::vector.
3715 * breakpoint.c (print_solib_event): Update.
3716 (check_status_catch_solib): Update.
3717 * progspace.c (clear_program_space_solib_cache): Update.
3718 * solib.c (update_solib_list): Update.
3719
894882e3
TT
37202018-05-29 Tom Tromey <tom@tromey.com>
3721
3722 * python/py-type.c (typy_richcompare): Update.
3723 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
3724 * gdbtypes.h (types_deeply_equal): Return bool.
3725 (types_equal): Likewise.
3726 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
3727 declare VEC.
3728 (check_types_equal): Change worklist to std::vector. Return
3729 bool.
3730 (struct type_equality_entry): Add constructor.
3731 (compare_maybe_null_strings): Return bool.
3732 (check_types_worklist): Return bool. Change worklist to
3733 std::vector.
3734 (types_deeply_equal): Use std::vector.
3735 (types_equal): Return bool.
3736 (compare_maybe_null_strings): Simplify.
3737
10b2ded4
TT
37382018-05-29 Tom Tromey <tom@tromey.com>
3739
3740 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
3741
4f7deebe
TT
37422018-05-29 Tom Tromey <tom@tromey.com>
3743
3744 * objc-lang.h: Don't include cp-support.h.
3745 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
3746 declare VEC.
3747
b8283aea
TT
37482018-05-27 Tom Tromey <tom@tromey.com>
3749
3750 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
3751
41a883c8
TT
37522018-05-25 Tom Tromey <tom@tromey.com>
3753
3754 * value.c (value::location): Initialize.
3755
bf259e25
TT
37562018-05-25 Tom Tromey <tom@tromey.com>
3757
3758 * dbxread.c (init_bincl_list): Remove.
3759 (bincl_list): Now a std::vector.
3760 (bincls_allocated, next_bincl): Remove.
3761 (free_bincl_list, do_free_bincl_list_cleanup)
3762 (make_cleanup_free_bincl_list): Remove.
3763 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
3764 unique_xmalloc_ptr.
3765 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
3766 (struct header_file_location): Add constructor.
3767 (add_bincl_to_list): Remove.
3768
d525a99b
TT
37692018-05-25 Tom Tromey <tom@tromey.com>
3770
3771 * tui/tui.c (tui_enable): Update.
3772 * mi/mi-interp.c (mi_interp::init): Update.
3773 * interps.h (class interp) <name>: New method.
3774 <m_name>: Rename from name.
3775 (~scoped_restore_interp): Update.
3776 * interps.c (interp::interp): Update.
3777 (interp_add, interp_set, interp_lookup_existing)
3778 (current_interp_named_p): Update.
3779
da505cff
TT
37802018-05-25 Tom Tromey <tom@tromey.com>
3781
3782 * interps.c (interp_name): Remove.
3783 * mi/mi-interp.c (mi_interp::init): Update.
3784 * interps.h (interp_name): Remove.
3785 (~scoped_restore_interp): Update.
3786 * tui/tui.c (tui_enable): Update.
3787
29f94340
TT
37882018-05-25 Tom Tromey <tom@tromey.com>
3789
3790 * utils.c (fputs_maybe_filtered): Update.
3791 * linespec.c (decode_line_full): Update.
3792 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
3793 (mi_print_breakpoint_for_event, mi_solib_loaded)
3794 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3795 (mi_user_selected_context_changed): Update.
3796 * mi/mi-main.c (mi_execute_command): Update.
3797 * cli/cli-script.c (execute_control_command): Update.
3798 * python/python.c (execute_gdb_command): Update.
3799 * solib.c (info_sharedlibrary_command): Update.
3800 * interps.c (interp_ui_out): Remove.
3801 * interps.h (interp_ui_out): Remove.
3802
716b8bc5
TT
38032018-05-25 Tom Tromey <tom@tromey.com>
3804
3805 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
3806 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
3807 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
3808
753ff9bd
TT
38092018-05-25 Tom Tromey <tom@tromey.com>
3810
3811 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
3812 * interps.c (interp_exec): Use scoped_restore.
3813
5ca3b260
TT
38142018-05-25 Tom Tromey <tom@tromey.com>
3815
3816 * remote.c (remote_target::remote_file_get): Use
3817 gdb::byte_vector.
3818 (remote_target::remote_file_put): Likewise.
3819
3173aa2f
TT
38202018-05-25 Tom Tromey <tom@tromey.com>
3821
3822 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
3823 a std::string.
3824 (get_pe_section_index, add_pe_exported_sym): Update.
3825 (read_pe_exported_syms): Use gdb::def_vector.
3826
09a5e1b5
TT
38272018-05-25 Tom Tromey <tom@tromey.com>
3828
3829 * frame.c (remove_prev_frame): Remove.
3830 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
3831
d8dab6c3
MR
38322018-05-25 Maciej W. Rozycki <macro@mips.com>
3833
3834 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
3835 Remove prototypes.
3836 * mips-linux-nat.c (supply_fpregset): Always call
3837 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
3838 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
3839 `mips_fill_fpregset'.
3840 * mips-linux-tdep.c (mips_supply_fpregset)
3841 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
3842 (mips_fill_fpregset_wrapper): Remove functions.
3843 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
3844 (mips_linux_fpregset): Remove variable.
3845 (mips_linux_iterate_over_regset_sections): Use
3846 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
3847 (mips_linux_o32_sigframe_init): Remove comment.
3848
3c69da40
PA
38492018-05-25 Pedro Alves <palves@redhat.com>
3850
3851 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
3852 (struct readahead_cache, struct packet_reg, struct
3853 remote_arch_state, class remote_state): Move higher up in the
3854 file.
3855 (remote_target::m_remote_state): Now an object instead of a pointer.
3856 (remote_target::get_remote_state): Adjust.
3857
39f0c204
AB
38582018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * stack.c (select_and_print_frame): Delete.
3861 (struct function_bounds): Move struct within function.
3862 (func_command): Most content moved into new function
3863 find_frame_for_function, use new function, print result, add
3864 function comment.
3865 (find_frame_for_function): New function, now returns a result.
3866
d392224a
PW
38672018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3868
3869 * stack.c (iterate_over_block_arg_vars): Fix comment.
3870 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
3871
45f25d6c
AB
38722018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 PR gdb/23203
3875 * frame.c
3876 (scoped_restore_selected_frame::scoped_restore_selected_frame):
3877 Define.
3878 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
3879 Define.
3880 * frame.h (class scoped_restore_selected_frame): New class.
3881 * stack.c (print_frame_local_vars): Remove catching and rethrowing
3882 of any exception, use scoped_restore_selected_frame to restore the
3883 frame instead.
3884
da05d921
PA
38852018-05-24 Pedro Alves <palves@redhat.com>
3886
3887 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
3888 override.
3889
a8be540e
TT
38902018-05-23 Tom Tromey <tom@tromey.com>
3891
3892 * complaints.c (struct complaints): Remove.
3893 (symfile_complaint_book): Remove.
3894 (series): New global.
3895 (complaint_internal): Update.
3896 (clear_complaints): Update.
3897
ff1cf532
TT
38982018-05-23 Tom Tromey <tom@tromey.com>
3899
3900 * complaints.c (counters): New global.
3901 (struct complain): Remove.
3902 (struct complaints) <root>: Remove.
3903 (complaint_sentinel): Remove.
3904 (symfile_complaint_book): Update.
3905 (find_complaint) Remove.
3906 (complaint_internal, clear_complaints): Update.
3907
7ff88174
TT
39082018-05-23 Tom Tromey <tom@tromey.com>
3909
3910 * complaints.c (struct complain) <file, line>: Remove.
3911 (find_complaint): Remove file, line parameters.
3912 (complaint_internal): Update.
3913
de54e1a5
TT
39142018-05-23 Tom Tromey <tom@tromey.com>
3915
3916 * complaints.c (vcomplaint): Remove.
3917 (complaint_internal) Merge in contents of vcomplaint.
3918
2ac237e5
TT
39192018-05-23 Tom Tromey <tom@tromey.com>
3920
3921 * complaints.c (struct complaints) <explanation>: Remove.
3922 (symfile_explanations): Remove.
3923 (symfile_complaint_book): Update.
3924 (vcomplaint): Update.
3925 (struct explanation): Remove.
3926
b98664d3
TT
39272018-05-23 Tom Tromey <tom@tromey.com>
3928
3929 * complaints.c (symfile_complaints): Remove.
3930 (complaint_internal): Remove "complaints" parameter.
3931 (clear_complaints, vcomplaint): Remove "c" parameter.
3932 (get_complaints): Remove.
3933 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
3934 (dwarf2_debug_line_missing_file_complaint)
3935 (dwarf2_debug_line_missing_end_sequence_complaint)
3936 (dwarf2_complex_location_expr_complaint)
3937 (dwarf2_const_value_length_mismatch_complaint)
3938 (dwarf2_section_buffer_overflow_complaint)
3939 (dwarf2_macro_malformed_definition_complaint)
3940 (dwarf2_invalid_attrib_class_complaint)
3941 (create_addrmap_from_index, dw2_symtab_iter_next)
3942 (dw2_expand_marked_cus)
3943 (dw2_debug_names_iterator::find_vec_in_debug_names)
3944 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
3945 (create_debug_type_hash_table, init_cutu_and_read_dies)
3946 (partial_die_parent_scope, add_partial_enumeration)
3947 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
3948 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
3949 (read_import_statement, read_file_scope, create_dwo_cu_reader)
3950 (create_cus_hash_table, create_dwp_hash_table)
3951 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3952 (dwarf2_rnglists_process, dwarf2_ranges_process)
3953 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
3954 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
3955 (handle_struct_member_die, process_structure_scope)
3956 (read_array_type, read_common_block, read_module_type)
3957 (read_tag_pointer_type, read_typedef, read_base_type)
3958 (read_subrange_type, load_partial_dies, partial_die_info::read)
3959 (partial_die_info::read, partial_die_info::read)
3960 (partial_die_info::read, read_checked_initial_length_and_offset)
3961 (dwarf2_string_attr, read_formatted_entries)
3962 (dwarf_decode_line_header)
3963 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3964 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
3965 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
3966 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3967 (get_signatured_type, get_DW_AT_signature_type)
3968 (decode_locdesc, file_file_name, consume_improper_spaces)
3969 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
3970 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3971 (dwarf2_symbol_mark_computed, set_die_type)
3972 (read_attribute_value): Update.
3973 * stap-probe.c (handle_stap_probe, get_stap_base_address):
3974 Update.
3975 * dbxread.c (unknown_symtype_complaint)
3976 (lbrac_mismatch_complaint, repeated_header_complaint)
3977 (set_namestring, function_outside_compilation_unit_complaint)
3978 (read_dbx_symtab, process_one_symbol): Update.
3979 * gdbtypes.c (stub_noname_complaint): Update.
3980 * windows-nat.c (handle_unload_dll): Update.
3981 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
3982 (decode_base_type): Update.
3983 * xcoffread.c (bf_notfound_complaint, ef_complaint)
3984 (eb_complaint, record_include_begin, record_include_end)
3985 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
3986 (process_xcoff_symbol, read_symbol)
3987 (function_outside_compilation_unit_complaint)
3988 (scan_xcoff_symtab): Update.
3989 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
3990 * buildsym.c (finish_block_internal, make_blockvector)
3991 (end_symtab_get_static_block, augment_type_symtab): Update.
3992 * dtrace-probe.c (dtrace_process_dof)
3993 (dtrace_static_probe_ops::get_probes): Update.
3994 * complaints.h (struct complaint): Don't declare.
3995 (symfile_complaints): Remove.
3996 (complaint_internal): Remove "complaints" parameter.
3997 (complaint): Likewise.
3998 (clear_complaints): Likewise.
3999 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4000 (reread_symbols): Update.
4001 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4002 (dwarf2_frame_cache, decode_frame_entry): Update.
4003 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4004 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4005 (info_selectors_command): Update.
4006 * macrotab.c (macro_include, check_for_redefinition)
4007 (macro_undef): Update.
4008 * objfiles.c (filter_overlapping_sections): Update.
4009 * stabsread.c (invalid_cpp_abbrev_complaint)
4010 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4011 (define_symbol, error_type, read_type, rs6000_builtin_type)
4012 (stabs_method_name_from_physname, read_member_functions)
4013 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4014 (attach_fields_to_type, complain_about_struct_wipeout)
4015 (read_range_type, read_args, common_block_start)
4016 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4017 Update.
4018 * mdebugread.c (index_complaint, unknown_ext_complaint)
4019 (basic_type_complaint, bad_tag_guess_complaint)
4020 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4021 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4022 (parse_procedure, parse_lines)
4023 (function_outside_compilation_unit_complaint)
4024 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4025 (bad_tag_guess_complaint, reg_value_complaint): Update.
4026 * cp-support.c (demangled_name_complaint): Update.
4027 * macroscope.c (sal_macro_scope): Update.
4028 * dwarf-index-write.c (class debug_names): Update.
4029
4e9668d0
TT
40302018-05-23 Tom Tromey <tom@tromey.com>
4031
4032 * complaints.c (clear_complaints): Remove "noisy" parameter.
4033 * complaints.h (clear_complaints): Update.
4034 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4035 (reread_symbols): Update.
4036
43ba33c7
TT
40372018-05-23 Tom Tromey <tom@tromey.com>
4038
4039 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4040 SUBSEQUENT_MESSAGE.
4041 (vcomplaint, clear_complaints): Update.
4042 (symfile_explanations): Remove some messages.
4043
2b9496b2
TT
40442018-05-23 Tom Tromey <tom@tromey.com>
4045
4046 * complaints.c (internal_complaint): Remove.
4047 * complaints.h (internal_complaint): Remove.
4048
35f1fea3
MR
40492018-05-22 Maciej W. Rozycki <macro@mips.com>
4050
4051 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4052
6b8edb51
PA
40532018-05-22 Pedro Alves <palves@redhat.com>
4054
4055 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4056 (remote_fileio_badfd, remote_fileio_return_errno)
4057 (remote_fileio_return_success, remote_fileio_func_open)
4058 (remote_fileio_func_open, remote_fileio_func_close)
4059 (remote_fileio_func_read, remote_fileio_func_write)
4060 (remote_fileio_func_lseek, remote_fileio_func_rename)
4061 (remote_fileio_func_unlink, remote_fileio_func_stat)
4062 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4063 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4064 remote_target parameter.
4065 (remote_fio_func_map) <func>: Add remote_target parameter.
4066 (do_remote_fileio_request, remote_fileio_request):
4067 * remote-fileio.h (remote_fileio_request):
4068 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4069 remote_target parameter.
4070 (remote_notif_process, handle_notification): Adjust to pass down
4071 the remote.
4072 (remote_notif_state_allocate): Add remote_target parameter. Save
4073 it.
4074 * remote-notif.h (struct remote_target): Forward declare.
4075 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4076 remote_target parameter.
4077 (struct remote_notif_state) <remote>: New field.
4078 (remote_notif_ack, remote_notif_parse): Add remote_target
4079 parameter.
4080 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4081 remote_target parameter.
4082 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4083 (threads_listing_context, rmt_thread_action, protocol_feature)
4084 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4085 (packet_result, struct threads_listing_context, remote_state):
4086 Move definitions and declarations higher up.
4087 (remote_target) <~remote_target>: Declare.
4088 (remote_download_command_source, remote_file_put, remote_file_get)
4089 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4090 (remote_hostio_pread_vFile, remote_hostio_send_command)
4091 (remote_hostio_set_filesystem, remote_hostio_open)
4092 (remote_hostio_close, remote_hostio_unlink, remote_state)
4093 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4094 (get_memory_write_packet_size, get_memory_read_packet_size)
4095 (append_pending_thread_resumptions, remote_detach_1)
4096 (append_resumption, remote_resume_with_vcont)
4097 (add_current_inferior_and_thread, wait_ns, wait_as)
4098 (process_stop_reply, remote_notice_new_inferior)
4099 (process_initial_stop_replies, remote_add_thread)
4100 (btrace_sync_conf, remote_btrace_maybe_reopen)
4101 (remove_new_fork_children, kill_new_fork_children)
4102 (discard_pending_stop_replies, stop_reply_queue_length)
4103 (check_pending_events_prevent_wildcard_vcont)
4104 (discard_pending_stop_replies_in_queue, stop_reply)
4105 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4106 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4107 (remote_interrupt_as, remote_interrupt_ns)
4108 (remote_get_noisy_reply, remote_query_attached)
4109 (remote_add_inferior, remote_current_thread, get_current_thread)
4110 (set_thread, set_general_thread, set_continue_thread)
4111 (set_general_process, write_ptid)
4112 (remote_unpack_thread_info_response, remote_get_threadinfo)
4113 (parse_threadlist_response, remote_get_threadlist)
4114 (remote_threadlist_iterator, remote_get_threads_with_ql)
4115 (remote_get_threads_with_qxfer)
4116 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4117 (get_offsets, remote_check_symbols, remote_supported_packet)
4118 (remote_query_supported, remote_packet_size)
4119 (remote_serial_quit_handler, remote_detach_pid)
4120 (remote_vcont_probe, remote_resume_with_hc)
4121 (send_interrupt_sequence, interrupt_query)
4122 (remote_notif_get_pending_events, fetch_register_using_p)
4123 (send_g_packet, process_g_packet, fetch_registers_using_g)
4124 (store_register_using_P, store_registers_using_G)
4125 (set_remote_traceframe, check_binary_download)
4126 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4127 (remote_xfer_live_readonly_partial, remote_read_bytes)
4128 (remote_send_printf, remote_flash_write, readchar)
4129 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4130 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4131 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4132 (extended_remote_disable_randomization, extended_remote_run)
4133 (send_environment_packet, extended_remote_environment_support)
4134 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4135 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4136 (packet_command): Now methods of ...
4137 (remote_target): ... this class.
4138 (m_remote_state) <remote_target>: New field.
4139 (struct remote_state) <stop_reply_queue,
4140 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4141 fields.
4142 (remote_state::remote_state): Allocate stop_reply_queue.
4143 (remote_state): Delete global.
4144 (get_remote_state_raw): Delete.
4145 (remote_target::get_remote_state): Allocate m_remote_state on
4146 demand.
4147 (get_current_remote_target): New.
4148 (remote_ops, extended_remote_ops): Delete.
4149 (wait_forever_enabled_p, remote_async_inferior_event_token):
4150 Delete, moved to struct remote_state.
4151 (remote_target::close): Delete self. Destruction bits split to
4152 ...
4153 (remote_target::~remote_target): ... this.
4154 (show_memory_packet_size): Adjust to use
4155 get_current_remote_target.
4156 (struct protocol_feature) <func>: Add remote_target parameter.
4157 All callers adjusted.
4158 (curr_quit_handler_target): New.
4159 (remote_serial_quit_handler): Reimplement.
4160 (remote_target::open_1): Adjust to use get_current_remote_target.
4161 Heap-allocate remote_target/extended_remote_target instances.
4162 (vcont_builder::vcont_builder): Add remote_target parameter, and
4163 save it in m_remote. All callers adjusted.
4164 (vcont_builder::m_remote): New field.
4165 (vcont_builder::restart, vcont_builder::flush)
4166 (vcont_builder::push_action): Use it.
4167 (remote_target::commit_resume): Use it.
4168 (struct queue_iter_param) <remote>: New field.
4169 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4170 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4171 (check_pending_event_prevents_wildcard_vcont_callback)
4172 (remote_target::check_pending_events_prevent_wildcard_vcont)
4173 (remote_target::discard_pending_stop_replies)
4174 (remote_target::discard_pending_stop_replies_in_queue)
4175 (remote_target::remote_notif_remove_queued_reply): Fill in
4176 'remote' field.
4177 (remote_notif_get_pending_events): New.
4178 (remote_target::readchar, remote_target::remote_serial_write):
4179 Save/restore curr_quit_handler_target.
4180 (putpkt): New.
4181 (kill_new_fork_children): Fill in 'remote' field.
4182 (packet_command): Use get_current_remote_target, defer to
4183 remote_target method of same name.
4184 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4185 parameter, and save it in m_remote. All callers adjusted.
4186 (scoped_remote_fd::release): Use m_remote.
4187 (scoped_remote_fd::m_remote): New field.
4188 (remote_file_put, remote_file_get, remote_file_delete): Use
4189 get_current_remote_target, defer to remote_target method of same
4190 name.
4191 (remote_btrace_reset): Add remote_state paremeter. Update all
4192 callers.
4193 (remote_async_inferior_event_handler). Pass down 'data'.
4194 (remote_new_objfile): Use get_current_remote_target.
4195 (remote_target::vcont_r_supported): New.
4196 (set_range_stepping): Use get_current_remote_target and
4197 remote_target::vcont_r_supported.
4198 (_initialize_remote): Don't allocate 'remote_state' and
4199 'stop_reply_queue' globals.
4200 * remote.h (struct remote_target): Forward declare.
4201 (getpkt, putpkt, remote_notif_get_pending_events): Add
4202 'remote_target' parameter.
4203
f5db4863
PA
42042018-05-22 Pedro Alves <palves@redhat.com>
4205
4206 * remote.c (vcont_builder): Now a class. Make all data members
4207 private.
4208 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4209 Declare methods.
4210 (vcont_builder_restart): Rename to ...
4211 (vcont_builder::restart): ... this.
4212 (vcont_builder_flush): Rename to ...
4213 (vcont_builder::flush): ... this.
4214 (vcont_builder_push_action): Rename to ...
4215 (vcont_builder::push_action): ... this.
4216 (remote_target::commit_resume): Adjust.
4217
cc0be08f
PA
42182018-05-22 Pedro Alves <palves@redhat.com>
4219
4220 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4221 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4222 (get_fixed_memory_packet_size): New.
4223 (get_memory_packet_size): Use it.
4224 (set_memory_packet_size): Don't override the config size with
4225 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4226 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4227 Don't refer to get_memory_packet_size if not connected to a remote
4228 target. Show "(default)" if configured size is 0.
4229
9607784a
PA
42302018-05-22 Pedro Alves <palves@redhat.com>
4231
4232 * remote.c (remote_target::mourn_inferior): Move
4233 discard_pending_stop_replies call here from ...
4234 (_initialize_remote): ... here.
4235
0e9a6b2f
PA
42362018-05-22 Pedro Alves <palves@redhat.com>
4237
4238 * remote.c (compare_section_command): Remove set_general_process
4239 call.
4240
43c3a0e4
PA
42412018-05-22 Pedro Alves <palves@redhat.com>
4242
4243 * remote.c (struct packet_reg, struct remote_arch_state):
4244 Move higher up in the file.
4245 (remote_state) <m_arch_states>: Store remote_arch_state values
4246 instead of remote_arch_state pointers.
4247 (remote_state::get_remote_arch_state): Adjust.
4248
9d6eea31
PA
42492018-05-22 Pedro Alves <palves@redhat.com>
4250
4251 * remote.c: Include <unordered_map>.
4252 (remote_state): Now a class.
4253 (remote_state) <get_remote_arch_state>: Declare method.
4254 <get_remote_arch_state>: New field.
4255 (remote_arch_state) <remote_arch_state>: Declare ctor.
4256 <regs>: Now a unique_ptr.
4257 (remote_gdbarch_data_handle): Delete.
4258 (get_remote_arch_state): Delete.
4259 (remote_state::get_remote_arch_state): New.
4260 (get_remote_state): Adjust to call remote_state's
4261 get_remote_arch_state method.
4262 (init_remote_state): Delete, bits factored out to ...
4263 (remote_arch_state::remote_arch_state): ... this new method.
4264 (get_remote_packet_size, get_memory_packet_size)
4265 (process_g_packet, remote_target::fetch_registers)
4266 (remote_target::prepare_to_store, store_registers_using_G)
4267 (remote_target::store_registers, remote_target::get_trace_status):
4268 Adjust to call remote_state's method.
4269 (_initialize_remote): Remove reference to
4270 remote_gdbarch_data_handle.
4271
dd194f6b
PA
42722018-05-22 Pedro Alves <palves@redhat.com>
4273
4274 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4275 pread>: New method declarations.
4276 (remote_target::open_1): Adjust.
4277 (readahead_cache_invalidate): Rename to ...
4278 (readahead_cache::invalidate): ... this, and adjust to be a class
4279 method.
4280 (readahead_cache_invalidate_fd): Rename to ...
4281 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4282 class method.
4283 (remote_hostio_pwrite): Adjust.
4284 (remote_hostio_pread_from_cache): Rename to ...
4285 (readahead_cache::pread): ... this, and adjust to be a class
4286 method.
4287 (remote_hostio_close): Adjust.
4288
440b7aec
PA
42892018-05-22 Pedro Alves <palves@redhat.com>
4290
4291 * remote.c (remote_hostio_close_cleanup): Delete.
4292 (class scoped_remote_fd): New.
4293 (remote_file_put, remote_file_get): Use it.
4294
de44f5a7
PA
42952018-05-22 Pedro Alves <palves@redhat.com>
4296
4297 (struct vCont_action_support): Use bool and initialize all fields.
4298 (struct readahead_cache): Initialize all fields.
4299 (remote_state): Use bool and initialize all fields.
4300 (remote_state::remote_state, remote_state::~remote_state): New.
4301 (new_remote_state): Delete.
4302 (_initialize_remote): Use new to allocate remote_state.
4303
b1b60145
PA
43042018-05-22 Pedro Alves <palves@redhat.com>
4305 張俊芝 <zjz@zjz.name>
4306
4307 PR gdb/22973
4308 * c-exp.y: Include "c-support.h".
4309 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4310 of tolower. Use c_ident_is_alpha to scan names.
4311 * c-lang.c: Include "c-support.h".
4312 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4313 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4314 * c-support.h: New file, with bits factored out from ...
4315 * cp-name-parser.y: ... this file.
4316 Include "c-support.h".
4317 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4318 c-support.h and renamed.
4319 (symbol_end, yylex): Adjust.
4320
0ec848ad
PFC
43212018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4322
4323 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4324 parameter type to CORE_ADDR.
4325 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4326 parameter type in declaration to CORE_ADDR.
4327 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4328 target_auxv_search to get AT_HWCAP and use the result to get the
4329 target description.
4330 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4331 to CORE_ADDR. Remove the cast of the return value to unsigned
4332 long. Fix error predicate of target_auxv_search.
4333 (ppc_linux_nat_target::read_description): Change the type of the
4334 hwcap variable to CORE_ADDR.
4335
0fb2aaa1
PFC
43362018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4337
4338 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4339 if the size of fpscr is larger than 32 bits.
4340
2c3305f6
PFC
43412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4342
4343 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4344 (ppc32_linux_vsxregmap): New global.
4345 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4346 regcache_supply_regset, and regcache_collect_regset.
4347 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4348 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4349 (fetch_vsx_register, store_vsx_register): Remove.
4350 (fetch_vsx_registers): Add regno parameter. Get regset using
4351 ppc_linux_vsxregset. Use regset to supply registers.
4352 (store_vsx_registers): Add regno parameter. Get regset using
4353 ppc_linux_vsxregset. Use regset to collect registers.
4354 (fetch_register): Call fetch_vsx_registers instead of
4355 fetch_vsx_register.
4356 (store_register): Call store_vsx_registers instead of
4357 store_vsx_register.
4358 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4359 new regno parameter.
4360 (store_ppc_registers): Call store_vsx_registers with -1 for the
4361 new regno parameter.
4362 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4363 (ppc_collect_vsxregset): Remove.
4364
1d75a658
PFC
43652018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4366
4367 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4368 offset fields.
4369 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4370 for vector register offset fields.
4371 (ppc64_fbsd_reg_offsets): Likewise.
4372 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4373 to vector register offset fields.
4374 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4375 to vector register offset fields.
4376 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4377 vector register offset fields.
4378 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4379 initializers for vector register offset fields.
4380 (rs6000_aix64_reg_offsets): Likewise.
4381 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4382 (ppc_supply_vrregset): Remove.
4383 (ppc_collect_vrregset): Remove.
4384 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4385 (ppc_linux_vrregset) : New function.
4386 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4387 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4388 (ppc32_linux_vrregset): Remove.
4389 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4390 and use result instead of ppc32_linux_vrregset.
4391 (ppc32_linux_reg_offsets): Remove initializers for vector register
4392 offset fields.
4393 (ppc64_linux_reg_offsets): Likewise.
4394 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4395 * ppc-linux-nat.c: Include regset.h.
4396 (gdb_vrregset_t): Adjust comment to account for little-endian
4397 mode.
4398 (supply_vrregset, fill_vrregset): Remove.
4399 (fetch_altivec_register, store_altivec_register): Remove.
4400 (fetch_altivec_registers): Add regno parameter. Get regset using
4401 ppc_linux_vrregset. Use regset to supply registers.
4402 (store_altivec_registers): Add regno parameter. Get regset using
4403 ppc_linux_vrregset. Use regset to collect registers.
4404 (fetch_register): Call fetch_altivec_registers instead of
4405 fetch_altivec_register.
4406 (store_register): Call store_altivec_registers instead of
4407 store_altivec_register.
4408 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4409 the new regno parameter.
4410 (store_ppc_registers): Call store_altivec_registers with -1 for
4411 the new regno parameter.
4412
d078308a
PFC
44132018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4414
4415 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4416 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4417 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4418 (gdb_vrregset_t): Change array type size to
4419 PPC_LINUX_SIZEOF_VRREGSET.
4420 (gdb_vsxregset_t): Change array type size to
4421 PPC_LINUX_SIZEOF_VSXREGSET.
4422 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4423 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4424 PPC_LINUX_SIZEOF_VSXREGSET.
4425
2e077f5e
PFC
44262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4427
4428 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4429 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4430 nat/ppc-linux.c.
4431 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4432 ppc_linux_target_wordsize with tid.
4433 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4434 wordsize with tid.
4435 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4436 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4437 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4438 tid parameter. Remove static specifier.
4439 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4440 (ppc_linux_target_wordsize): New declaration.
4441
bd64614e
PFC
44422018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4443
4444 * arch/ppc-linux-common.c: New file.
4445 * arch/ppc-linux-common.h: New file.
4446 * arch/ppc-linux-tdesc.h: New file.
4447 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4448 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4449 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4450 arch/ppc-linux-tdesc.h.
4451 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4452 arch/ppc-linux-tdesc.h.
4453 (ppc_linux_nat_target::read_description): Remove target
4454 description matching code. Fill a ppc_linux_features struct and
4455 call ppc_linux_match_description with it. Move comment about ISA
4456 2.05 to ppc-linux-common.c.
4457 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4458 arch/ppc-linux-tdesc.h.
4459 (ppc_linux_core_read_description): Remove target description
4460 matching code. Fill a ppc_linux_features struct and call
4461 ppc_linux_match_description with it.
4462 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4463 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4464 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4465 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4466 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4467 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4468 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4469 (tdesc_powerpc_e500l): Remove.
4470
241db429
JB
44712018-05-22 Joel Brobecker <brobecker@adacore.com>
4472
4473 * ada-lang.c (catch_assert_command): Pass empty string instead
4474 of NULL for excep_string argument.
4475
75d74cca
MR
44762018-05-22 Maciej W. Rozycki <macro@mips.com>
4477
4478 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
4479 the width of the requested register exceeds the width of the
4480 `ptrace' data type.
4481
122b53ea
TT
44822018-05-21 Tom Tromey <tom@tromey.com>
4483
4484 * printcmd.c (output_command): Remove.
4485 (output_command_const): Rename to output_command.
4486 * valprint.h (output_command): Rename from output_command_const.
4487 * tracepoint.c (trace_dump_actions): Call output_command.
4488
bc18fbb5
TT
44892018-05-21 Tom Tromey <tom@tromey.com>
4490
4491 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4492 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
4493 * ada-lang.h (create_ada_exception_catchpoint): Update.
4494 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
4495 std::string.
4496 (create_excep_cond_exprs, ~ada_catchpoint)
4497 (should_stop_exception, print_one_exception)
4498 (print_mention_exception, print_recreate_exception): Update.
4499 (ada_get_next_arg): Remove.
4500 (catch_ada_exception_command_split): Use std::string. Change type
4501 of "excep_string", "cond_string".
4502 (catch_ada_exception_command): Update.
4503 (create_ada_exception_catchpoint): Change type of excep_string.
4504 (ada_exception_sal): Remove excep_string parameter.
4505 (~ada_catchpoint): Remove.
4506
790217f6
TT
45072018-05-21 Tom Tromey <tom@tromey.com>
4508
4509 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
4510 cleanup.
4511
6f46ac85
TT
45122018-05-21 Tom Tromey <tom@tromey.com>
4513
4514 * ada-lang.c (ada_exception_message_1, ada_exception_message):
4515 Return unique_xmalloc_ptr.
4516 (print_it_exception): Update.
4517
15b6611c
TT
45182018-05-21 Tom Tromey <tom@tromey.com>
4519
4520 * tracepoint.c (trace_dump_actions): Use std::string.
4521
c0c9f665
TT
45222018-05-21 Tom Tromey <tom@tromey.com>
4523
4524 * symfile.c (reread_symbols): Use std::string for original_name.
4525
22ca247e
TT
45262018-05-21 Tom Tromey <tom@tromey.com>
4527
4528 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
4529 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
4530 constructor.
4531
184cde75
SM
45322018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
4533
4534 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
4535 instance to...
4536 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
4537 * objfiles.c (get_objfile_bfd_data): Allocate
4538 objfile_per_bfd_storage with obstack_new when allocating on
4539 obstack.
4540
e39db4db
SM
45412018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4542
4543 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
4544 OBSTACK_ZALLOC.
4545 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4546 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4547 * mdebugread.c (mdebug_build_psymtabs): Likewise.
4548 (add_pending): Likewise.
4549 (parse_symbol): Likewise.
4550 (parse_partial_symbols): Likewise.
4551 (psymtab_to_symtab_1): Likewise.
4552 (new_psymtab): Likewise.
4553 (elfmdebug_build_psymtabs): Likewise.
4554 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4555 * objfiles.c (get_objfile_bfd_data): Likewise.
4556 (objfile_register_static_link): Likewise.
4557 * psymtab.c (allocate_psymtab): Likewise.
4558 * stabsread.c (read_member_functions): Likewise.
4559 * xcoffread.c (xcoff_end_psymtab): Likewise.
4560
284a0e3c
SM
45612018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4562
4563 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
4564 compiler supports std::is_trivially_constructible.
4565 * common/poison.h: Include obstack.h.
4566 (IsMallocable): Define to is_trivially_constructible if the
4567 compiler supports it, define to true_type otherwise.
4568 (xobnew): New.
4569 (XOBNEW): Redefine.
4570 (xobnewvec): New.
4571 (XOBNEWVEC): Redefine.
4572 * gdb_obstack.h (obstack_zalloc): New.
4573 (OBSTACK_ZALLOC): Redefine.
4574 (obstack_calloc): New.
4575 (OBSTACK_CALLOC): Redefine.
4576 (obstack_new): New.
4577 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
4578 (gdbarch_obstack): New declaration in gdbarch.h, definition in
4579 gdbarch.c.
4580 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
4581 obstack_calloc/obstack_zalloc.
4582 (gdbarch_obstack_zalloc): Remove.
4583 * target-descriptions.c (tdesc_data_init): Use obstack_new.
4584
59f66be3
PW
45852018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4586
4587 * stack.c (backtrace_command_1): Remove useless variable int i.
4588
50c65c2d
PW
45892018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4590
4591 * stack.c (print_frame_info): Fix comment.
4592
7ff8cb8c
TT
45932018-05-18 Tom Tromey <tom@tromey.com>
4594
4595 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
4596 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
4597 (~dwarf2_per_objfile): Update
4598 (dwarf2_get_dwz_file): Use new.
4599 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
4600 unique_ptr.
4601
400174b1
TT
46022018-05-18 Tom Tromey <tom@tromey.com>
4603
4604 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
4605 unique_ptr.
4606 * dwarf2read.c (struct dwp_file): Add constructor and
4607 initializers.
4608 (open_and_init_dwp_file): Return a unique_ptr.
4609 (dwarf2_per_objfile, create_dwp_hash_table)
4610 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
4611 (lookup_dwo_unit_in_dwp): Update.
4612 (open_and_init_dwp_file, get_dwp_file): Update.
4613
3063847f
TT
46142018-05-18 Tom Tromey <tom@tromey.com>
4615
4616 * dwarf2read.c (dwarf2_per_objfile): Update.
4617 (struct mapped_index): Add initializers.
4618 (dwarf2_read_index): Use new.
4619 (dw2_symtab_iter_init): Update.
4620 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
4621 unique_ptr.
4622
d3d02dee
SM
46232018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4624
4625 * dwarf2read.c (mapped_index) <total_size>: Remove.
4626
1d143c36
SM
46272018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4628
4629 * unittests/format_pieces-selftests.c (test_format_specifier):
4630 Add ARI comments.
4631
ce1e8424
TT
46322018-05-18 Tom Tromey <tom@tromey.com>
4633
4634 * c-typeprint.c (maybe_print_hole): New function.
4635 (c_print_type_struct_field_offset): Update.
4636 (c_type_print_base_struct_union): Call maybe_print_hole.
4637
ddfe970e
KS
46382018-05-17 Keith Seitz <keiths@redhat.com>
4639
4640 * breakpoint.c (build_bpstat_chain): New function, moved from
4641 bpstat_stop_status.
4642 (bpstat_stop_status): Add optional parameter, `stop_chain'.
4643 If no stop chain is passed, call build_bpstat_chain to build it.
4644 * breakpoint.h (build_bpstat_chain): Declare.
4645 (bpstat_stop_status): Move documentation here from breakpoint.c.
4646 * infrun.c (handle_signal_stop): Before eliding inlined frames,
4647 build the stop chain and pass it to skip_inline_frames.
4648 Pass this stop chain to bpstat_stop_status.
4649 * inline-frame.c: Include breakpoint.h.
4650 (stopped_by_user_bp_inline_frame): New function.
4651 (skip_inline_frames): Add parameter `stop_chain'.
4652 Move documention to inline-frame.h.
4653 If non-NULL, use stopped_by_user_bp_inline_frame to determine
4654 whether the frame should be elided.
4655 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
4656 Add moved documentation and update for new parameter.
4657
b17992c1
SM
46582018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4659
4660 PR cli/14975
4661 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4662 unittests/format_pieces-selftests.c.
4663 * common/format.h (format_piece) <operator==>: New.
4664 (format_pieces) <operator[]>: Remove.
4665 * common/format.c (format_pieces::format_pieces): Handle \e.
4666 * unittests/format_pieces-selftests.c: New.
4667
58f0c718
TT
46682018-05-17 Tom Tromey <tom@tromey.com>
4669
4670 PR symtab/23010:
4671 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
4672 (dw2_instantiate_symtab): Add skip_partial parameter.
4673 (dw2_find_last_source_symtab, dw2_map_expand_apply)
4674 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
4675 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
4676 (dw2_expand_symtabs_matching_one)
4677 (dw2_find_pc_sect_compunit_symtab)
4678 (dw2_debug_names_lookup_symbol)
4679 (dw2_debug_names_expand_symtabs_for_function): Update.
4680 (init_cutu_and_read_dies): Add skip_partial parameter.
4681 (process_psymtab_comp_unit, build_type_psymtabs_1)
4682 (process_skeletonless_type_unit, load_partial_comp_unit)
4683 (psymtab_to_symtab_1): Update.
4684 (load_full_comp_unit): Add skip_partial parameter.
4685 (process_imported_unit_die, dwarf2_read_addr_index)
4686 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
4687 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
4688 (read_signatured_type): Update.
4689
3e618834
SM
46902018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4691
4692 * value.c (release_value): Remove unused variable.
4693 (record_latest_value): Likewise.
4694 (access_value_history): Likewise.
4695 (preserve_values): Likewise.
4696
fe10fe31
TT
46972018-05-17 Tom Tromey <tom@tromey.com>
4698
4699 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
4700 Initialize.
4701
1d761124
MR
47022018-05-16 Maciej W. Rozycki <macro@mips.com>
4703
4704 PR gdb/22286
4705 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
4706 Also handle registers whose width is not a multiple of
4707 PTRACE_TYPE_RET.
4708 (linux_nat_trad_target::store_register): Likewise.
4709
06333fea
TT
47102018-05-16 Tom Tromey <tom@tromey.com>
4711
4712 * gdbcore.h (core_bfd): Redefine.
4713 * corelow.c (core_target::close): Update.
4714 (core_target_open): Update.
4715 * progspace.h (struct program_space) <cbfd>: Now a
4716 gdb_bfd_ref_ptr.
4717
921222e2
TT
47182018-05-16 Tom Tromey <tom@tromey.com>
4719
4720 PR cli/19551:
4721 * symfile-add-flags.h (enum symfile_add_flags)
4722 <SYMFILE_NOT_FILENAME>: New constant.
4723 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
4724 objfile name from BFD.
4725 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
4726 * minidebug.c (find_separate_debug_file_in_section): Put
4727 ".gnu_debugdata" into BFD's file name.
4728
3acb7083
SM
47292018-05-16 Simon Marchi <simon.marchi@ericsson.com>
4730
4731 * regcache.c (regcache_read_ftype, regcache_write_ftype):
4732 Remove.
4733
561a72d4
TC
47342018-05-15 Tamar Christina <tamar.christina@arm.com>
4735
4736 PR binutils/21446
4737 * aarch64-tdep.c (aarch64_analyze_prologue,
4738 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
4739 Indicate not interested in errors.
4740
4e6ff0e1
MR
47412018-05-15 Maciej W. Rozycki <macro@mips.com>
4742
4743 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
4744 Supply the MIPS_ZERO_REGNUM register.
4745
ea33cd92
MR
47462018-05-15 Maciej W. Rozycki <macro@mips.com>
4747
4748 * mips-tdep.c (mask_address_var): Make variable static.
4749
2d79090e
TT
47502018-05-14 Tom Tromey <tom@tromey.com>
4751
4752 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
4753
cf4912ae
AB
47542018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
4757 FXSAVE_ADDR for the mxcsr register.
4758
67e6f569
MF
47592018-05-11 Max Filippov <jcmvbkbc@gmail.com>
4760
4761 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
4762
15244507
PA
47632018-05-11 Pedro Alves <palves@redhat.com>
4764
4765 * corelow.c (core_target) <core_target>: No longer inline.
4766 Initialize m_core_gdbarch, m_core_vec and build the section table
4767 here.
4768 <~core_target>: New.
4769 <core_gdbarch, get_core_register_section>: New methods.
4770 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
4771 factored out from ...
4772 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
4773 (core_ops): Delete.
4774 (sniff_core_bfd): Add gdbarch parameter.
4775 (core_close): Delete, merged into ...
4776 (core_target::close): ... here. Delete self.
4777 (core_close_cleanup): Delete.
4778 (core_target_open): Allocate a core_target on the heap. Use a
4779 unique_ptr instead of a cleanup. Bits moved into the core_target
4780 ctor. Adjust to use core_target methods instead of globals.
4781 (get_core_register_section): Rename to ...
4782 (core_target::get_core_register_section): ... this and adjust.
4783 (struct get_core_registers_cb_data): New.
4784 (get_core_registers_cb): Use it. Use bool.
4785 (core_target::fetch_registers, core_target::files_info)
4786 (core_target::xfer_partial, core_target::read_description)
4787 (core_target::pid_to, core_target::thread_name): Adjust to
4788 reference class fields instead of globals.
4789 * target.h (struct target_ops_deleter, target_ops_up): New.
4790
451953fa
PA
47912018-05-11 Pedro Alves <palves@redhat.com>
4792
4793 * corefile.c (core_file_command): Move to corelow.c.
4794 * corelow.c (the_core_target): Delete.
4795 (core_file_command): Moved from corefile.c. Check exec_bfd
4796 instead of the_core_target. Use target_detach instead of calling
4797 into the_core_target directly.
4798 (maybe_say_no_core_file_now): New.
4799 (core_target::detach): Use it.
4800 (_initialize_corelow): Remove references to the_core_target.
4801 * gdbcore.h (the_core_target): Delete.
4802
e540a5a2 48032018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 4804 Pedro Alves <palves@redhat.com>
e540a5a2
TT
4805
4806 * corefile.c (core_bfd): Remove.
4807 * gdbcore.h (core_bfd): Now a macro.
4808 * progspace.h (struct program_space) <cbfd>: New field.
4809
633cf254
TT
48102018-05-11 Tom Tromey <tom@tromey.com>
4811
4812 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
4813 gdb::def_vector.
4814
1a34f210
TT
48152018-05-10 Tom Tromey <tom@tromey.com>
4816
4817 * configure: Rebuild.
4818 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
4819
190852c8
JB
48202018-05-10 Joel Brobecker <brobecker@adacore.com>
4821
4822 PR server/23158:
4823 * regformats/regdat.sh: Adjust script, following the addition
4824 of the new expedite_regs parameter to init_target_desc.
4825
8727de56
OJ
48262018-05-10 Omair Javaid <omair.javaid@linaro.org>
4827
4828 PR gdb/23127
4829 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
4830 set_gdbarch_significant_addr_bit.
4831 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
4832 set_gdbarch_significant_addr_bit.
4833 * utils.c (address_significant): Update to sign extend addr.
4834
37d9e062
MF
48352018-05-09 Max Filippov <jcmvbkbc@gmail.com>
4836
4837 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
4838 (xtensa_linux_init_abi): Limit tdep->num_regs by
4839 tdep->num_nopriv_regs.
4840 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
4841 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
4842 not initialized.
4843
7402fbca
SM
48442018-05-08 Simon Marchi <simon.marchi@ericsson.com>
4845
4846 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
4847
8ee22052
AB
48482018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
4851 (I387_MXCSR_INIT_VAL): New constant.
4852 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
4853 buffer if it was supplied by the inferior.
4854 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
4855 (i387_xsave_get_clear_bv): New function.
4856 (i387_supply_xsave): Only read x87 control registers from the
4857 xsave buffer if the feature is enabled, and the state will have
4858 been written, otherwise, provide a suitable default.
4859 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
4860 including x87 control registers. Update control registers if they
4861 have changed from the default value, and mark features as enabled
4862 as required.
4863 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
4864
968ae51b
UW
48652018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4866
4867 * spu-tdep.c (info_spu_event_command): Fix output formatting.
4868
aff689d3
TT
48692018-05-07 Tom Tromey <tom@tromey.com>
4870
4871 * configure: Rebuild.
4872 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
4873
ce887586
TT
48742018-05-07 Tom Tromey <tom@tromey.com>
4875
4876 PR tdep/20362:
4877 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
4878 bit. Use correct value for VDIV.
4879
85e26832
TT
48802018-05-04 Tom Tromey <tom@tromey.com>
4881
4882 * configure: Rebuild.
4883 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
4884
449b1ac7
TT
48852018-05-04 Tom Tromey <tom@tromey.com>
4886
4887 * linux-record.c (record_linux_system_call) <case
4888 RECORD_SYS_RECVFROM>: Add "break".
4889
15c9ffd6
TT
48902018-05-04 Tom Tromey <tom@tromey.com>
4891
4892 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
4893 Add missing "break".
4894 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
4895 Add missing "break".
4896
e3829d13
TT
48972018-05-04 Tom Tromey <tom@tromey.com>
4898
4899 * rs6000-tdep.c (ppc_process_record_op4)
4900 (ppc_process_record_op63): Add fall-through comment.
4901
da0e1563
TT
49022018-05-04 Tom Tromey <tom@tromey.com>
4903
4904 * i386-tdep.c (i386_process_record): Add fall-through comment.
4905
0019cd49
TT
49062018-05-04 Tom Tromey <tom@tromey.com>
4907
4908 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
4909 comment.
4910
565e0eda
TT
49112018-05-04 Tom Tromey <tom@tromey.com>
4912
4913 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
4914 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
4915 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
4916 comment.
4917 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
4918 comment.
4919 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
4920 comment.
4921
621846f4
TT
49222018-05-04 Tom Tromey <tom@tromey.com>
4923
4924 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
4925
86a73007
TT
49262018-05-04 Tom Tromey <tom@tromey.com>
4927
4928 * s390-tdep.c (s390_process_record): Fix fall-through comments.
4929 * xcoffread.c (scan_xcoff_symtab): Move comment later.
4930 * symfile.c (section_is_mapped): Fix fall-through comment.
4931 * stabsread.c (define_symbol, read_member_functions): Fix
4932 fall-through comment.
4933 * s390-linux-tdep.c (s390_process_record): Fix fall-through
4934 comment.
4935 * remote.c (remote_wait_as): Fix fall-through comment.
4936 * p-exp.y (yylex): Fix fall-through comment.
4937 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
4938 comment.
4939 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
4940 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
4941 * jv-exp.y (yylex): Fix fall-through comment.
4942 * go-exp.y (lex_one_token): Fix fall-through comment.
4943 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
4944 fall-through comment.
4945 * f-exp.y (yylex): Fix fall-through comment.
4946 * dwarf2read.c (process_die): Fix fall-through comments.
4947 * dbxread.c (process_one_symbol): Fix fall-through comment.
4948 * d-exp.y (lex_one_token): Fix fall-through comment.
4949 * cp-name-parser.y (yylex): Fix fall-through comment.
4950 * coffread.c (coff_symtab_read): Fix fall-through comment.
4951 * c-exp.y (lex_one_token): Fix fall-through comment.
4952 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
4953 comment.
4954 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
4955 comment.
4956
56bcdbea
TT
49572018-05-04 Tom Tromey <tom@tromey.com>
4958
4959 PR python/22730:
4960 * NEWS: Mention gdb.execute change.
4961 * gdbcmd.h (execute_control_command): Don't declare.
4962 * python/python.c (execute_gdb_command): Use read_command_lines_1,
4963 execute_control_commands, execute_control_commands_to_string.
4964 * cli/cli-script.h (execute_control_commands)
4965 (execute_control_commands_to_string): Declare.
4966 (execute_control_command): Add from_tty parameter.
4967 * cli/cli-script.c (execute_control_commands)
4968 (execute_control_commands_to_string): New functions.
4969 (execute_user_command): Use execute_control_commands.
4970 (execute_control_command_1): Add "from_tty" parameter. Update.
4971 (execute_control_command): Likewise.
4972
a913fffb
TT
49732018-05-04 Tom Tromey <tom@tromey.com>
4974
4975 PR python/22731:
4976 * NEWS: Mention that breakpoint commands are writable.
4977 * python/py-breakpoint.c (bppy_set_commands): New function.
4978 (breakpoint_object_getset) <"commands">: Use it.
4979
60b3cef2
TT
49802018-05-04 Tom Tromey <tom@tromey.com>
4981
4982 * tracepoint.c (actions_command): Update.
4983 * mi/mi-cmd-break.c (mi_command_line_array)
4984 (mi_command_line_array_cnt, mi_command_line_array_ptr)
4985 (mi_read_next_line): Remove.
4986 (mi_cmd_break_commands): Update.
4987 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
4988 function_view.
4989 * cli/cli-script.c (get_command_line): Update.
4990 (process_next_line): Use function_view. Constify.
4991 (recurse_read_control_structure, read_command_lines)
4992 (read_command_lines_1): Change argument types to function_view.
4993 (do_define_command, document_command): Update.
4994 * breakpoint.h (check_tracepoint_command): Don't declare.
4995 * breakpoint.c (check_tracepoint_command): Remove.
4996 (commands_command_1, create_tracepoint_from_upload): Update.
4997
7a2c85f2
TT
49982018-05-04 Tom Tromey <tom@tromey.com>
4999
5000 PR gdb/11750:
5001 * cli/cli-script.h (enum command_control_type) <define_control>:
5002 New constant.
5003 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5004 (build_command_line, execute_control_command_1)
5005 (process_next_line): Likewise.
5006 (do_define_command): New function, extracted from define_command.
5007 (define_command): Use it.
5008
295dc222
TT
50092018-05-04 Tom Tromey <tom@tromey.com>
5010
5011 * tracepoint.c (actions_command): Update.
5012 * cli/cli-script.h (read_command_lines): Update.
5013 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5014 (MAX_TMPBUF): Remove define.
5015 (define_command): Use string_printf.
5016 (document_command): Likewise.
5017 * breakpoint.c (commands_command_1): Update.
5018
1263a9d5
TT
50192018-05-04 Tom Tromey <tom@tromey.com>
5020
5021 * top.c (execute_command): Update.
5022 * cli/cli-script.h (print_command_lines): Now varargs.
5023 * cli/cli-script.c (print_command_lines): Now varargs.
5024 (execute_control_command_1) <case while_control, case if_control>:
5025 Update.
5026
12973681
TT
50272018-05-04 Tom Tromey <tom@tromey.com>
5028
5029 * tracepoint.c (all_tracepoint_actions): Rename from
5030 all_tracepoint_actions_and_cleanup. Change return type.
5031 (actions_command, encode_actions_1, encode_actions)
5032 (trace_dump_actions, tdump_command): Update.
5033 * remote.c (remote_download_command_source): Update.
5034 * python/python.c (gdbpy_eval_from_control_command)
5035 (python_command, python_interactive_command): Update.
5036 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5037 * guile/guile.c (guile_command)
5038 (gdbscm_eval_from_control_command, guile_command): Update.
5039 * compile/compile.c (compile_code_command)
5040 (compile_print_command, compile_to_object): Update.
5041 * cli/cli-script.h (struct command_lines_deleter): New.
5042 (counted_command_line): New typedef.
5043 (struct command_line): Add constructor, destructor.
5044 <body_list>: Remove.
5045 <body_list_0, body_list_1>: New members.
5046 (command_line_up): Remove typedef.
5047 (read_command_lines, read_command_lines_1, get_command_line):
5048 Update.
5049 (copy_command_lines): Don't declare.
5050 * cli/cli-script.c (build_command_line): Use "new".
5051 (get_command_line): Return counted_command_line.
5052 (print_command_lines, execute_user_command)
5053 (execute_control_command_1, while_command, if_command): Update.
5054 (realloc_body_list): Remove.
5055 (process_next_line, recurse_read_control_structure): Update.
5056 (read_command_lines, read_command_lines_1): Return counted_command_line.
5057 (free_command_lines): Use "delete".
5058 (copy_command_lines): Remove.
5059 (define_command, document_command, show_user_1): Update.
5060 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5061 a counted_command_line.
5062 * breakpoint.h (counted_command_line): Remove typedef.
5063 (breakpoint_set_commands): Update.
5064 * breakpoint.c (check_no_tracepoint_commands)
5065 (validate_commands_for_breakpoint): Update.
5066 (breakpoint_set_commands): Change commands to be a
5067 counted_command_line.
5068 (commands_command_1, update_dprintf_command_list)
5069 (create_tracepoint_from_upload): Update.
5070
e2fc72e2
TT
50712018-05-04 Tom Tromey <tom@tromey.com>
5072
5073 * cli/cli-decode.h (cmd_list_element): New constructor.
5074 (~cmd_list_element): New destructor.
5075 (struct cmd_list_element): Add initializers.
5076 * cli/cli-decode.c (do_add_cmd): Use "new".
5077 (delete_cmd): Use "delete".
5078
a3b60e45
JK
50792018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5080 Pedro Alves <palves@redhat.com>
5081
5082 PR breakpoints/19806 and support for PR external/20207.
5083 * NEWS: Mention Aarch64 watchpoint improvements.
5084 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5085 watchpoints and PR external/20207 watchpoints.
5086 * nat/aarch64-linux-hw-point.c
5087 (kernel_supports_any_contiguous_range): New.
5088 (aarch64_watchpoint_offset): New.
5089 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5090 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5091 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5092 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5093 next_addr_orig_p. Support PR external/20207 watchpoints.
5094 (aarch64_downgrade_regs): New.
5095 (aarch64_dr_state_insert_one_point): New parameters offset and
5096 addr_orig.
5097 (aarch64_dr_state_remove_one_point): Likewise.
5098 (aarch64_handle_breakpoint): Update caller.
5099 (aarch64_handle_aligned_watchpoint): Likewise.
5100 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5101 aligned_offset.
5102 (aarch64_linux_set_debug_regs): Remove const from state. Call
5103 aarch64_downgrade_regs.
5104 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5105 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5106 (DR_CONTROL_MASK): ... this.
5107 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5108 (unsigned int aarch64_watchpoint_offset): New prototype.
5109 (aarch64_linux_set_debug_regs): Remove const from state.
5110 * utils.c (align_up, align_down): Move to ...
5111 * common/common-utils.c (align_up, align_down): ... here.
5112 * utils.h (align_up, align_down): Move to ...
5113 * common/common-utils.h (align_up, align_down): ... here.
5114
05bc7456
JB
51152018-05-04 Joel Brobecker <brobecker@adacore.com>
5116
5117 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5118 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5119 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5120 Re-implement to match the ABI as summarized in GCC's
5121 gcc/config/sparc/sparc.c. All callers updated.
5122 (sparc32_store_arguments): Remove assertion.
5123
2f433492
TT
51242018-05-04 Tom Tromey <tom@tromey.com>
5125
5126 * printcmd.c: Don't include tui.h.
5127 (decode_format): Use skip_spaces.
5128
9be2ae8f
TT
51292018-05-04 Tom Tromey <tom@tromey.com>
5130
5131 PR gdb/22619:
5132 * printcmd.c (last_count): New global.
5133 (x_command): Use saved count when repeating.
5134
f0b3976b
TT
51352018-05-04 Tom Tromey <tom@tromey.com>
5136
5137 * nto-procfs.c (do_closedir_cleanup): Remove.
5138 (procfs_pidlist): Use gdb_dir_up.
5139 * procfs.c (do_closedir_cleanup): Remove.
5140 (proc_update_threads): Use gdb_dir_up.
5141 * common/filestuff.h (struct gdb_dir_deleter): New.
5142 (gdb_dir_up): New typedef.
5143
862d101a
TT
51442018-05-04 Tom Tromey <tom@tromey.com>
5145
5146 * ada-lang.c (print_mention_exception): Use std::string.
5147
cb7de75e
TT
51482018-05-04 Tom Tromey <tom@tromey.com>
5149
5150 * ada-lang.c (create_excep_cond_exprs): Update.
5151 (ada_exception_catchpoint_cond_string): Use std::string.
5152
49d83361
TT
51532018-05-04 Tom Tromey <tom@tromey.com>
5154
5155 * ada-lang.c (xget_renaming_scope): Return std::string.
5156 (old_renaming_is_invisible): Update.
5157
ade72a34
TT
51582018-05-04 Tom Tromey <tom@tromey.com>
5159
5160 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5161 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5162
2be4d7f0
UW
51632018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5164
5165 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5166
69b6ecb0
TT
51672018-05-04 Tom Tromey <tom@tromey.com>
5168
5169 * remote.c (remote_query_supported_append): Change type.
5170 (remote_check_symbols): Update.
5171
bf27f0e2
PP
51722018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5173
5174 PR gdb/11420
5175 * configure.ac: Prepend libpython.
5176 * python/python-config.py: Likewise.
5177 * configure: Regenerate.
5178
4ea17de8
SM
51792018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5182
bd732259
PA
51832018-05-03 Pedro Alves <palves@redhat.com>
5184
5185 * s390-linux-nat.c
5186 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5187 override. Write 'true' instead of '1'.
5188 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5189 declaration.
5190
d9f719f1
PA
51912018-05-02 Pedro Alves <palves@redhat.com>
5192
5193 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5194 add_inf_child_target.
5195 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5196 add_inf_child_target.
5197 * aix-thread.c (aix_thread_target_info): New.
5198 (aix_thread_target) <shortname, longname, doc>: Delete.
5199 <info>: New.
5200 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5201 add_inf_child_target.
5202 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5203 add_inf_child_target.
5204 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5205 add_inf_child_target.
5206 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5207 add_inf_child_target.
5208 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5209 add_inf_child_target.
5210 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5211 add_inf_child_target.
5212 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5213 add_inf_child_target.
5214 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5215 add_inf_child_target.
5216 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5217 add_inf_child_target.
5218 * bfd-target.c (target_bfd_target_info): New.
5219 (target_bfd) <shortname, longname, doc>: Delete.
5220 <info>: New.
5221 * bsd-kvm.c (bsd_kvm_target_info): New.
5222 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5223 <info>: New.
5224 (bsd_kvm_target::open): Rename to ...
5225 (bsd_kvm_target_open): ... this. Adjust.
5226 * bsd-uthread.c (bsd_uthread_target_info): New.
5227 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5228 <info>: New.
5229 * corefile.c (core_file_command): Adjust.
5230 * corelow.c (core_target_info): New.
5231 (core_target) <shortname, longname, doc>: Delete.
5232 <info>: New.
5233 (core_target::open): Rename to ...
5234 (core_target_open): ... this. Adjust.
5235 * ctf.c (ctf_target_info): New.
5236 (ctf_target) <shortname, longname, doc>: Delete.
5237 <info>: New.
5238 (ctf_target::open): Rename to ...
5239 (ctf_target_open): ... this.
5240 (_initialize_ctf): Adjust.
5241 * exec.c (exec_target_info): New.
5242 (exec_target) <shortname, longname, doc>: Delete.
5243 <info>: New.
5244 (exec_target::open): Rename to ...
5245 (exec_target_open): ... this.
5246 * gdbcore.h (core_target_open): Declare.
5247 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5248 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5249 add_inf_child_target.
5250 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5251 add_inf_child_target.
5252 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5253 add_inf_child_target.
5254 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5255 add_inf_child_target.
5256 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5257 add_inf_child_target.
5258 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5259 add_inf_child_target.
5260 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5261 add_inf_child_target.
5262 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5263 add_inf_child_target.
5264 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5265 add_inf_child_target.
5266 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5267 add_inf_child_target.
5268 * inf-child.c (inf_child_target_info): New.
5269 (inf_child_target::info): New.
5270 (inf_child_open_target): Remove 'target' parameter. Use
5271 get_native_target instead.
5272 (inf_child_target::open): Delete.
5273 (add_inf_child_target): New.
5274 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5275 Delete.
5276 <info>: New.
5277 (add_inf_child_target): Declare.
5278 (inf_child_open_target): Declare.
5279 * linux-thread-db.c (thread_db_target_info): New.
5280 (thread_db_target) <shortname, longname, doc>: Delete.
5281 <info>: New.
5282 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5283 add_inf_child_target.
5284 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5285 add_inf_child_target.
5286 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5287 add_inf_child_target.
5288 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5289 add_inf_child_target.
5290 * make-target-delegates (print_class): Adjust.
5291 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5292 add_inf_child_target.
5293 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5294 add_inf_child_target.
5295 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5296 add_inf_child_target.
5297 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5298 add_inf_child_target.
5299 * nto-procfs.c (nto_native_target_info): New.
5300 (nto_procfs_target_native) <shortname, longname, doc>:
5301 Delete.
5302 <info>: New.
5303 (nto_procfs_target_info): New.
5304 (nto_procfs_target_procfs) <shortname, longname, doc>:
5305 Delete.
5306 <info>: New.
5307 (init_procfs_targets): Adjust.
5308 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5309 add_inf_child_target.
5310 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5311 add_inf_child_target.
5312 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5313 add_inf_child_target.
5314 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5315 add_inf_child_target.
5316 * ravenscar-thread.c (ravenscar_target_info): New.
5317 (ravenscar_thread_target) <shortname, longname, doc>:
5318 Delete.
5319 <info>: New.
5320 * record-btrace.c (record_btrace_target_info):
5321 (record_btrace_target) <shortname, longname, doc>: Delete.
5322 <info>: New.
5323 (record_btrace_target::open): Rename to ...
5324 (record_btrace_target_open): ... this. Adjust.
5325 * record-full.c (record_longname, record_doc): New.
5326 (record_full_base_target) <shortname, longname, doc>: Delete.
5327 <info>: New.
5328 (record_full_target_info): New.
5329 (record_full_target): <shortname>: Delete.
5330 <info>: New.
5331 (record_full_core_open_1, record_full_open_1): Update comments.
5332 (record_full_base_target::open): Rename to ...
5333 (record_full_open): ... this.
5334 (cmd_record_full_restore): Update.
5335 (_initialize_record_full): Update.
5336 * remote-sim.c (remote_sim_target_info): New.
5337 (gdbsim_target) <shortname, longname, doc>: Delete.
5338 <info>: New.
5339 (gdbsim_target::open): Rename to ...
5340 (gdbsim_target_open): ... this.
5341 (_initialize_remote_sim): Adjust.
5342 * remote.c (remote_doc): New.
5343 (remote_target_info): New.
5344 (remote_target) <shortname, longname, doc>: Delete.
5345 <info>: New.
5346 (extended_remote_target_info): New.
5347 (extended_remote_target) <shortname, longname, doc>: Delete.
5348 <info>: New.
5349 (remote_target::open_1): Make static. Adjust.
5350 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5351 * s390-linux-nat.c (_initialize_s390_nat): Use
5352 add_inf_child_target.
5353 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5354 add_inf_child_target.
5355 * sol-thread.c (thread_db_target_info): New.
5356 (sol_thread_target) <shortname, longname, doc>: Delete.
5357 <info>: New.
5358 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5359 add_inf_child_target.
5360 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5361 add_inf_child_target.
5362 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5363 add_inf_child_target.
5364 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5365 add_inf_child_target.
5366 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5367 add_inf_child_target.
5368 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5369 add_inf_child_target.
5370 * spu-linux-nat.c (_initialize_spu_nat): Use
5371 add_inf_child_target.
5372 * spu-multiarch.c (spu_multiarch_target_info): New.
5373 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5374 <info>: New.
5375 * target-delegates.c: Regenerate.
5376 * target.c: Include <unordered_map>.
5377 (target_ops_p): Delete.
5378 (DEF_VEC_P(target_ops_p)): Delete.
5379 (target_factories): New.
5380 (test_target_info): New.
5381 (test_target_ops::info): New.
5382 (open_target): Adjust to use target_factories.
5383 (add_target_with_completer): Rename to ...
5384 (add_target): ... this. Change prototype. Register target_info
5385 and open callback in target_factories. Register target_info in
5386 command context instead of target_ops.
5387 (add_target): Delete old implementation.
5388 (add_deprecated_target_alias): Change prototype. Adjust.
5389 (the_native_target): New.
5390 (set_native_target, get_native_target): New.
5391 (find_default_run_target): Use the_native_target.
5392 (find_attach_target, find_run_target): Simplify.
5393 (target_ops::open): Delete.
5394 (dummy_target_info): New.
5395 (dummy_target::shortname, dummy_target::longname)
5396 (dummy_target::doc): Delete.
5397 (dummy_target::info): New.
5398 (debug_target::shortname, debug_target::longname)
5399 (debug_target::doc): Delete.
5400 (debug_target::info): New.
5401 * target.h (struct target_info): New.
5402 (target_ops::~target_ops): Add comment.
5403 (target_ops::info): New.
5404 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5405 longer virtual. Implement in terms of target_info.
5406 (set_native_target, get_native_target): Declare.
5407 (target_open_ftype): New.
5408 (add_target, add_target_with_completer)
5409 (add_deprecated_target_alias): Change prototype.
5410 (test_target) <shortname, longname, doc>: Delete.
5411 <info>: New.
5412 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5413 add_inf_child_target.
5414 * tracefile-tfile.c (tfile_target_info): New.
5415 (tfile_target) <shortname, longname, doc>: Delete.
5416 <info>: New.
5417 (tfile_target::open): Rename to ...
5418 (tfile_target_open): ... this.
5419 (_initialize_tracefile_tfile): Adjust.
5420 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5421 add_inf_child_target.
5422 * windows-nat.c (_initialize_windows_nat): Use
5423 add_inf_child_target.
5424 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5425 add_inf_child_target.
5426
135340af
PA
54272018-05-02 Pedro Alves <palves@redhat.com>
5428
5429 * linux-nat.h (linux_nat_target) <low_new_thread,
5430 low_delete_thread, low_new_fork, low_forget_process,
5431 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5432 New virtual methods.
5433 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5434 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5435 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5436 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5437 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5438 Delete.
5439 * linux-fork.c (delete_fork): Adjust to call low method.
5440 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5441 (linux_nat_new_fork, linux_nat_forget_process_hook)
5442 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5443 (linux_nat_status_is_event):
5444 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5445 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5446 to call low method.
5447 (sigtrap_is_event): Rename to ...
5448 (linux_nat_target::low_status_is_event): ... this.
5449 (linux_nat_set_status_is_event): Delete.
5450 (save_stop_reason, linux_nat_wait_1)
5451 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5452 low methods.
5453 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5454 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5455 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5456 (linux_nat_set_prepare_to_resume): Delete.
5457 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5458 low virtual methods.
5459 * amd64-linux-nat.c: Likewise.
5460 * arm-linux-nat.c: Likewise.
5461 * i386-linux-nat.c: Likewise.
5462 * ia64-linux-nat.c: Likewise.
5463 * mips-linux-nat.c: Likewise.
5464 * ppc-linux-nat.c: Likewise.
5465 * s390-linux-nat.c: Likewise.
5466 * sparc64-linux-nat.c: Likewise.
5467 * x86-linux-nat.c: Likewise.
5468 * x86-linux-nat.h: Include "nat/x86-linux.h".
5469 (x86_linux_nat_target) <low_new_fork, low_forget_process,
5470 low_prepare_to_resume, low_new_thread, low_delete_thread>:
5471 Override methods.
5472
57810aa7
PA
54732018-05-02 Pedro Alves <palves@redhat.com>
5474
5475 * target.h (target_ops)
5476 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5477 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
5478 stopped_by_watchpoint, have_continuable_watchpoint,
5479 stopped_data_address, watchpoint_addr_within_range,
5480 can_accel_watchpoint_condition, can_run, thread_alive,
5481 has_all_memory, has_memory, has_stack, has_registers,
5482 has_execution, can_async_p, is_async_p, supports_non_stop,
5483 always_non_stop_p, can_execute_reverse, supports_multi_process,
5484 supports_enable_disable_tracepoint,
5485 supports_disable_randomization, supports_string_tracing,
5486 supports_evaluation_of_breakpoint_conditions,
5487 can_run_breakpoint_commands, filesystem_is_local,
5488 can_download_tracepoint, get_trace_state_variable_value,
5489 set_trace_notes, get_tib_address, use_agent, can_use_agent,
5490 record_is_replaying, record_will_replay,
5491 augmented_libraries_svr4_read>: Adjust to return bool.
5492 * aarch64-linux-nat.c: All implementations adjusted.
5493 * aix-thread.c: All implementations adjusted.
5494 * arm-linux-nat.c: All implementations adjusted.
5495 * breakpoint.c: All implementations adjusted.
5496 * bsd-kvm.c: All implementations adjusted.
5497 * bsd-uthread.c: All implementations adjusted.
5498 * corelow.c: All implementations adjusted.
5499 * ctf.c: All implementations adjusted.
5500 * darwin-nat.c: All implementations adjusted.
5501 * darwin-nat.h: All implementations adjusted.
5502 * exec.c: All implementations adjusted.
5503 * fbsd-nat.c: All implementations adjusted.
5504 * fbsd-nat.h: All implementations adjusted.
5505 * gnu-nat.c: All implementations adjusted.
5506 * gnu-nat.h: All implementations adjusted.
5507 * go32-nat.c: All implementations adjusted.
5508 * ia64-linux-nat.c: All implementations adjusted.
5509 * inf-child.c: All implementations adjusted.
5510 * inf-child.h: All implementations adjusted.
5511 * inf-ptrace.c: All implementations adjusted.
5512 * inf-ptrace.h: All implementations adjusted.
5513 * linux-nat.c: All implementations adjusted.
5514 * linux-nat.h: All implementations adjusted.
5515 * mips-linux-nat.c: All implementations adjusted.
5516 * nto-procfs.c: All implementations adjusted.
5517 * ppc-linux-nat.c: All implementations adjusted.
5518 * procfs.c: All implementations adjusted.
5519 * ravenscar-thread.c: All implementations adjusted.
5520 * record-btrace.c: All implementations adjusted.
5521 * record-full.c: All implementations adjusted.
5522 * remote-sim.c: All implementations adjusted.
5523 * remote.c: All implementations adjusted.
5524 * s390-linux-nat.c: All implementations adjusted.
5525 * sol-thread.c: All implementations adjusted.
5526 * spu-multiarch.c: All implementations adjusted.
5527 * target-delegates.c: All implementations adjusted.
5528 * target.c: All implementations adjusted.
5529 * target.h: All implementations adjusted.
5530 * tracefile-tfile.c: All implementations adjusted.
5531 * tracefile.c: All implementations adjusted.
5532 * tracefile.h: All implementations adjusted.
5533 * windows-nat.c: All implementations adjusted.
5534 * x86-linux-nat.h: All implementations adjusted.
5535 * x86-nat.h: All implementations adjusted.
5536
ad6a4e2d
PA
55372018-05-02 Pedro Alves <palves@redhat.com>
5538
5539 * make-target-delegates (scan_target_h): Don't trim lines here.
5540 Replace sequences of tabs and/or whitespace with a single
5541 whitespace.
5542 (top level, parsing methods): Trim each line before processing it
5543 here.
5544
f6ac5f3d
PA
55452018-05-02 Pedro Alves <palves@redhat.com>
5546 John Baldwin <jhb@freebsd.org>
5547
5548 * target.h (enum strata) <debug_stratum>: New.
5549 (struct target_ops) <all delegation methods>: Replace by C++
5550 virtual methods, and drop "to_" prefix. All references updated
5551 throughout.
5552 <to_shortname, to_longname, to_doc, to_data,
5553 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
5554 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
5555 virtual methods. All references updated throughout.
5556 <can_attach, supports_terminal_ours, can_create_inferior,
5557 get_thread_control_capabilities, attach_no_wait>: New
5558 virtual methods.
5559 <insert_breakpoint, remove_breakpoint>: Now
5560 TARGET_DEFAULT_NORETURN methods.
5561 <info_proc>: Now returns bool.
5562 <to_magic>: Delete.
5563 (OPS_MAGIC): Delete.
5564 (current_target): Delete. All references replaced by references
5565 to ...
5566 (target_stack): ... this. New.
5567 (target_shortname, target_longname): Adjust.
5568 (target_can_run): Now a function declaration.
5569 (default_child_has_all_memory, default_child_has_memory)
5570 (default_child_has_stack, default_child_has_registers)
5571 (default_child_has_execution): Remove target_ops parameter.
5572 (complete_target_initialization): Delete.
5573 (memory_breakpoint_target): New template class.
5574 (test_target_ops): Refactor as a C++ class with virtual methods.
5575 * make-target-delegates (NAME_PART): Tighten.
5576 (POINTER_PART, CP_SYMBOL): New.
5577 (SIMPLE_RETURN_PART): Reimplement.
5578 (VEC_RETURN_PART): Expect less.
5579 (RETURN_PART, VIRTUAL_PART): New.
5580 (METHOD): Adjust to C++ virtual methods.
5581 (scan_target_h): Remove reference to C99.
5582 (dname): Output "target_ops::" prefix.
5583 (write_function_header): Adjust to output a C++ class method.
5584 (write_declaration): New.
5585 (write_delegator): Adjust to output a C++ class method.
5586 (tdname): Output "dummy_target::" prefix.
5587 (write_tdefault, write_debugmethod): Adjust to output a C++ class
5588 method.
5589 (tdefault_names, debug_names): Delete.
5590 (return_types, tdefaults, styles, argtypes_array): New.
5591 (top level): All methods are delegators.
5592 (print_class): New.
5593 (top level): Print dummy_target and debug_target classes.
5594 * target-delegates.c: Regenerate.
5595 * target-debug.h (target_debug_print_enum_info_proc_what)
5596 (target_debug_print_thread_control_capabilities)
5597 (target_debug_print_thread_info_p): New.
5598 * target.c (dummy_target): Delete.
5599 (the_dummy_target, the_debug_target): New.
5600 (target_stack): Now extern.
5601 (set_targetdebug): Push/unpush debug target.
5602 (default_child_has_all_memory, default_child_has_memory)
5603 (default_child_has_stack, default_child_has_registers)
5604 (default_child_has_execution): Remove target_ops parameter.
5605 (complete_target_initialization): Delete.
5606 (add_target_with_completer): No longer call
5607 complete_target_initialization.
5608 (target_supports_terminal_ours): Use regular delegation.
5609 (update_current_target): Delete.
5610 (push_target): No longer check magic number. Don't call
5611 update_current_target.
5612 (unpush_target): Don't call update_current_target.
5613 (target_is_pushed): No longer check magic number.
5614 (target_require_runnable): Skip for all stratums over
5615 process_stratum.
5616 (target_ops::info_proc): New.
5617 (target_info_proc): Use find_target_at and
5618 find_default_run_target.
5619 (target_supports_disable_randomization): Use regular delegation.
5620 (target_get_osdata): Use find_target_at.
5621 (target_ops::open, target_ops::close, target_ops::can_attach)
5622 (target_ops::attach, target_ops::can_create_inferior)
5623 (target_ops::create_inferior, target_ops::can_run)
5624 (target_can_run): New.
5625 (default_fileio_target): Use regular delegation.
5626 (target_ops::fileio_open, target_ops::fileio_pwrite)
5627 (target_ops::fileio_pread, target_ops::fileio_fstat)
5628 (target_ops::fileio_close, target_ops::fileio_unlink)
5629 (target_ops::fileio_readlink): New.
5630 (target_fileio_open_1, target_fileio_unlink)
5631 (target_fileio_readlink): Always call the target method. Handle
5632 FILEIO_ENOSYS.
5633 (return_zero, return_zero_has_execution): Delete.
5634 (init_dummy_target): Delete.
5635 (dummy_target::dummy_target, dummy_target::shortname)
5636 (dummy_target::longname, dummy_target::doc)
5637 (debug_target::debug_target, debug_target::shortname)
5638 (debug_target::longname, debug_target::doc): New.
5639 (target_supports_delete_record): Use regular delegation.
5640 (setup_target_debug): Delete.
5641 (maintenance_print_target_stack): Skip debug_stratum.
5642 (initialize_targets): Instantiate the_dummy_target and
5643 the_debug_target.
5644 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
5645 use target_stack.
5646 (target_auxv_search, fprint_target_auxv): Adjust.
5647 (info_auxv_command): Adjust to use target_stack.
5648 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
5649 * exceptions.c (print_flush): Handle a NULL target_stack.
5650 * regcache.c (target_ops_no_register): Refactor as class with
5651 virtual methods.
5652
5653 * exec.c (exec_target): New class.
5654 (exec_ops): Now an exec_target.
5655 (exec_open, exec_close_1, exec_get_section_table)
5656 (exec_xfer_partial, exec_files_info, exec_has_memory)
5657 (exec_make_note_section): Refactor as exec_target methods.
5658 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
5659 Delete.
5660 (exec_target::find_memory_regions): New.
5661 (_initialize_exec): Don't call init_exec_ops.
5662 * gdbcore.h (exec_file_clear): Delete.
5663
5664 * corefile.c (core_target): Delete.
5665 (core_file_command): Adjust.
5666 * corelow.c (core_target): New class.
5667 (the_core_target): New.
5668 (core_close): Remove target_ops parameter.
5669 (core_close_cleanup): Adjust.
5670 (core_target::close): New.
5671 (core_open, core_detach, get_core_registers, core_files_info)
5672 (core_xfer_partial, core_thread_alive, core_read_description)
5673 (core_pid_to_str, core_thread_name, core_has_memory)
5674 (core_has_stack, core_has_registers, core_info_proc): Rework as
5675 core_target methods.
5676 (ignore, core_remove_breakpoint, init_core_ops): Delete.
5677 (_initialize_corelow): Initialize the_core_target.
5678 * gdbcore.h (core_target): Delete.
5679 (the_core_target): New.
5680
5681 * ctf.c: (ctf_target): New class.
5682 (ctf_ops): Now a ctf_target.
5683 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
5684 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
5685 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
5686 methods.
5687 (init_ctf_ops): Delete.
5688 (_initialize_ctf): Don't call it.
5689 * tracefile-tfile.c (tfile_target): New class.
5690 (tfile_ops): Now a tfile_target.
5691 (tfile_open, tfile_close, tfile_files_info)
5692 (tfile_get_tracepoint_status, tfile_trace_find)
5693 (tfile_fetch_registers, tfile_xfer_partial)
5694 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
5695 Refactor as tfile_target methods.
5696 (tfile_xfer_partial_features): Remove target_ops parameter.
5697 (init_tfile_ops): Delete.
5698 (_initialize_tracefile_tfile): Don't call it.
5699 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
5700 (tracefile_has_stack, tracefile_has_registers)
5701 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
5702 tracefile_target methods.
5703 (init_tracefile_ops): Delete.
5704 (tracefile_target::tracefile_target): New.
5705 * tracefile.h: Include "target.h".
5706 (tracefile_target): New class.
5707 (init_tracefile_ops): Delete.
5708
5709 * spu-multiarch.c (spu_multiarch_target): New class.
5710 (spu_ops): Now a spu_multiarch_target.
5711 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
5712 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5713 (spu_search_memory, spu_mourn_inferior): Refactor as
5714 spu_multiarch_target methods.
5715 (init_spu_ops): Delete.
5716 (_initialize_spu_multiarch): Remove references to init_spu_ops,
5717 complete_target_initialization.
5718
5719 * ravenscar-thread.c (ravenscar_thread_target): New class.
5720 (ravenscar_ops): Now a ravenscar_thread_target.
5721 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
5722 (ravenscar_thread_alive, ravenscar_pid_to_str)
5723 (ravenscar_fetch_registers, ravenscar_store_registers)
5724 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
5725 (ravenscar_stopped_by_hw_breakpoint)
5726 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
5727 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
5728 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
5729 methods.
5730 (init_ravenscar_thread_ops): Delete.
5731 (_initialize_ravenscar): Remove references to
5732 init_ravenscar_thread_ops and complete_target_initialization.
5733
5734 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
5735 (bsd_uthread_target): New class.
5736 (bsd_uthread_ops): Now a bsd_uthread_target.
5737 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
5738 (bsd_uthread_close, bsd_uthread_mourn_inferior)
5739 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
5740 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
5741 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
5742 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
5743 (bsd_uthread_target): Delete function.
5744 (_initialize_bsd_uthread): Remove reference to
5745 complete_target_initialization.
5746
5747 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
5748 (target_bfd): ... this new class.
5749 (target_bfd_xfer_partial, target_bfd_get_section_table)
5750 (target_bfd_close): Refactor as target_bfd methods.
5751 (target_bfd::~target_bfd): New.
5752 (target_bfd_reopen): Adjust.
5753 (target_bfd::close): New.
5754
5755 * record-btrace.c (record_btrace_target): New class.
5756 (record_btrace_ops): Now a record_btrace_target.
5757 (record_btrace_open, record_btrace_stop_recording)
5758 (record_btrace_disconnect, record_btrace_close)
5759 (record_btrace_async, record_btrace_info)
5760 (record_btrace_insn_history, record_btrace_insn_history_range)
5761 (record_btrace_insn_history_from, record_btrace_call_history)
5762 (record_btrace_call_history_range)
5763 (record_btrace_call_history_from, record_btrace_record_method)
5764 (record_btrace_is_replaying, record_btrace_will_replay)
5765 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5766 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
5767 (record_btrace_store_registers, record_btrace_prepare_to_store)
5768 (record_btrace_to_get_unwinder)
5769 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
5770 (record_btrace_commit_resume, record_btrace_wait)
5771 (record_btrace_stop, record_btrace_can_execute_reverse)
5772 (record_btrace_stopped_by_sw_breakpoint)
5773 (record_btrace_supports_stopped_by_sw_breakpoint)
5774 (record_btrace_stopped_by_hw_breakpoint)
5775 (record_btrace_supports_stopped_by_hw_breakpoint)
5776 (record_btrace_update_thread_list, record_btrace_thread_alive)
5777 (record_btrace_goto_begin, record_btrace_goto_end)
5778 (record_btrace_goto, record_btrace_stop_replaying_all)
5779 (record_btrace_execution_direction)
5780 (record_btrace_prepare_to_generate_core)
5781 (record_btrace_done_generating_core): Refactor as
5782 record_btrace_target methods.
5783 (init_record_btrace_ops): Delete.
5784 (_initialize_record_btrace): Remove reference to
5785 init_record_btrace_ops.
5786 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
5787 the execution_direction global.
5788 (record_full_base_target, record_full_target)
5789 (record_full_core_target): New classes.
5790 (record_full_ops): Now a record_full_target.
5791 (record_full_core_ops): Now a record_full_core_target.
5792 (record_full_target::detach, record_full_target::disconnect)
5793 (record_full_core_target::disconnect)
5794 (record_full_target::mourn_inferior, record_full_target::kill):
5795 New.
5796 (record_full_open, record_full_close, record_full_async): Refactor
5797 as methods of the record_full_base_target class.
5798 (record_full_resume, record_full_commit_resume): Refactor
5799 as methods of the record_full_target class.
5800 (record_full_wait, record_full_stopped_by_watchpoint)
5801 (record_full_stopped_data_address)
5802 (record_full_stopped_by_sw_breakpoint)
5803 (record_full_supports_stopped_by_sw_breakpoint)
5804 (record_full_stopped_by_hw_breakpoint)
5805 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
5806 methods of the record_full_base_target class.
5807 (record_full_store_registers, record_full_xfer_partial)
5808 (record_full_insert_breakpoint, record_full_remove_breakpoint):
5809 Refactor as methods of the record_full_target class.
5810 (record_full_can_execute_reverse, record_full_get_bookmark)
5811 (record_full_goto_bookmark, record_full_execution_direction)
5812 (record_full_record_method, record_full_info, record_full_delete)
5813 (record_full_is_replaying, record_full_will_replay)
5814 (record_full_goto_begin, record_full_goto_end, record_full_goto)
5815 (record_full_stop_replaying): Refactor as methods of the
5816 record_full_base_target class.
5817 (record_full_core_resume, record_full_core_kill)
5818 (record_full_core_fetch_registers)
5819 (record_full_core_prepare_to_store)
5820 (record_full_core_store_registers, record_full_core_xfer_partial)
5821 (record_full_core_insert_breakpoint)
5822 (record_full_core_remove_breakpoint)
5823 (record_full_core_has_execution): Refactor
5824 as methods of the record_full_core_target class.
5825 (record_full_base_target::supports_delete_record): New.
5826 (init_record_full_ops): Delete.
5827 (init_record_full_core_ops): Delete.
5828 (record_full_save): Refactor as method of the
5829 record_full_base_target class.
5830 (_initialize_record_full): Remove references to
5831 init_record_full_ops and init_record_full_core_ops.
5832
5833 * remote.c (remote_target, extended_remote_target): New classes.
5834 (remote_ops): Now a remote_target.
5835 (extended_remote_ops): Now an extended_remote_target.
5836 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
5837 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
5838 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
5839 (remote_pass_signals, remote_set_syscall_catchpoint)
5840 (remote_program_signals, )
5841 (remote_thread_always_alive): Remove target_ops parameter.
5842 (remote_thread_alive, remote_thread_name)
5843 (remote_update_thread_list, remote_threads_extra_info)
5844 (remote_static_tracepoint_marker_at)
5845 (remote_static_tracepoint_markers_by_strid)
5846 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
5847 (remote_open): Refactor as methods of remote_target.
5848 (extended_remote_open, extended_remote_detach)
5849 (extended_remote_attach, extended_remote_post_attach):
5850 (extended_remote_supports_disable_randomization)
5851 (extended_remote_create_inferior): : Refactor as method of
5852 extended_remote_target.
5853 (remote_set_permissions, remote_open_1, remote_detach)
5854 (remote_follow_fork, remote_follow_exec, remote_disconnect)
5855 (remote_resume, remote_commit_resume, remote_stop)
5856 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
5857 (remote_terminal_ours, remote_wait, remote_fetch_registers)
5858 (remote_prepare_to_store, remote_store_registers)
5859 (remote_flash_erase, remote_flash_done, remote_files_info)
5860 (remote_kill, remote_mourn, remote_insert_breakpoint)
5861 (remote_remove_breakpoint, remote_insert_watchpoint)
5862 (remote_watchpoint_addr_within_range)
5863 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
5864 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
5865 (remote_supports_stopped_by_sw_breakpoint)
5866 (remote_stopped_by_hw_breakpoint)
5867 (remote_supports_stopped_by_hw_breakpoint)
5868 (remote_stopped_by_watchpoint, remote_stopped_data_address)
5869 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5870 (remote_verify_memory): Refactor as methods of remote_target.
5871 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
5872 parameter.
5873 (remote_xfer_partial, remote_get_memory_xfer_limit)
5874 (remote_search_memory, remote_rcmd, remote_memory_map)
5875 (remote_pid_to_str, remote_get_thread_local_address)
5876 (remote_get_tib_address, remote_read_description): Refactor as
5877 methods of remote_target.
5878 (remote_target::fileio_open, remote_target::fileio_pwrite)
5879 (remote_target::fileio_pread, remote_target::fileio_close): New.
5880 (remote_hostio_readlink, remote_hostio_fstat)
5881 (remote_filesystem_is_local, remote_can_execute_reverse)
5882 (remote_supports_non_stop, remote_supports_disable_randomization)
5883 (remote_supports_multi_process, remote_supports_cond_breakpoints)
5884 (remote_supports_enable_disable_tracepoint)
5885 (remote_supports_string_tracing)
5886 (remote_can_run_breakpoint_commands, remote_trace_init)
5887 (remote_download_tracepoint, remote_can_download_tracepoint)
5888 (remote_download_trace_state_variable, remote_enable_tracepoint)
5889 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
5890 (remote_trace_start, remote_get_trace_status)
5891 (remote_get_tracepoint_status, remote_trace_stop)
5892 (remote_trace_find, remote_get_trace_state_variable_value)
5893 (remote_save_trace_data, remote_get_raw_trace_data)
5894 (remote_set_disconnected_tracing, remote_core_of_thread)
5895 (remote_set_circular_trace_buffer, remote_traceframe_info)
5896 (remote_get_min_fast_tracepoint_insn_len)
5897 (remote_set_trace_buffer_size, remote_set_trace_notes)
5898 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
5899 (remote_disable_btrace, remote_teardown_btrace)
5900 (remote_read_btrace, remote_btrace_conf)
5901 (remote_augmented_libraries_svr4_read, remote_load)
5902 (remote_pid_to_exec_file, remote_can_do_single_step)
5903 (remote_execution_direction, remote_thread_handle_to_thread_info):
5904 Refactor as methods of remote_target.
5905 (init_remote_ops, init_extended_remote_ops): Delete.
5906 (remote_can_async_p, remote_is_async_p, remote_async)
5907 (remote_thread_events, remote_upload_tracepoints)
5908 (remote_upload_trace_state_variables): Refactor as methods of
5909 remote_target.
5910 (_initialize_remote): Remove references to init_remote_ops and
5911 init_extended_remote_ops.
5912
5913 * remote-sim.c (gdbsim_target): New class.
5914 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
5915 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
5916 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
5917 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
5918 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
5919 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
5920 Refactor as methods of gdbsim_target.
5921 (gdbsim_ops): Now a gdbsim_target.
5922 (init_gdbsim_ops): Delete.
5923 (gdbsim_cntrl_c): Adjust.
5924 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
5925
5926 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
5927 (the_amd64_linux_nat_target): New.
5928 (amd64_linux_fetch_inferior_registers)
5929 (amd64_linux_store_inferior_registers): Refactor as methods of
5930 amd64_linux_nat_target.
5931 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
5932 * i386-linux-nat.c: Don't include "linux-nat.h".
5933 (i386_linux_nat_target): New class.
5934 (the_i386_linux_nat_target): New.
5935 (i386_linux_fetch_inferior_registers)
5936 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
5937 as methods of i386_linux_nat_target.
5938 (_initialize_i386_linux_nat): Adjust. Set linux_target.
5939 * inf-child.c (inf_child_ops): Delete.
5940 (inf_child_fetch_inferior_registers)
5941 (inf_child_store_inferior_registers): Delete.
5942 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
5943 methods of inf_child_target.
5944 (inf_child_target::supports_terminal_ours)
5945 (inf_child_target::terminal_init)
5946 (inf_child_target::terminal_inferior)
5947 (inf_child_target::terminal_ours_for_output)
5948 (inf_child_target::terminal_ours, inf_child_target::interrupt)
5949 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
5950 New.
5951 (inf_child_open, inf_child_disconnect, inf_child_close)
5952 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
5953 (inf_child_post_startup_inferior, inf_child_can_run)
5954 (inf_child_pid_to_exec_file): Refactor as methods of
5955 inf_child_target.
5956 (inf_child_follow_fork): Delete.
5957 (inf_child_target::can_create_inferior)
5958 (inf_child_target::can_attach): New.
5959 (inf_child_target::has_all_memory, inf_child_target::has_memory)
5960 (inf_child_target::has_stack, inf_child_target::has_registers)
5961 (inf_child_target::has_execution): New.
5962 (inf_child_fileio_open, inf_child_fileio_pwrite)
5963 (inf_child_fileio_pread, inf_child_fileio_fstat)
5964 (inf_child_fileio_close, inf_child_fileio_unlink)
5965 (inf_child_fileio_readlink, inf_child_use_agent)
5966 (inf_child_can_use_agent): Refactor as methods of
5967 inf_child_target.
5968 (return_zero, inf_child_target): Delete.
5969 (inf_child_target::inf_child_target): New.
5970 * inf-child.h: Include "target.h".
5971 (inf_child_target): Delete function prototype.
5972 (inf_child_target): New class.
5973 (inf_child_open_target, inf_child_mourn_inferior)
5974 (inf_child_maybe_unpush_target): Delete.
5975 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
5976 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
5977 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
5978 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
5979 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
5980 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
5981 (inf_ptrace_wait, inf_ptrace_xfer_partial)
5982 (inf_ptrace_thread_alive, inf_ptrace_files_info)
5983 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
5984 methods of inf_ptrace_target.
5985 (inf_ptrace_target): Delete function.
5986 * inf-ptrace.h: Include "inf-child.h".
5987 (inf_ptrace_target): Delete function declaration.
5988 (inf_ptrace_target): New class.
5989 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
5990 * linux-nat.c (linux_target): New.
5991 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
5992 (linux_nat_target::~linux_nat_target): New.
5993 (linux_child_post_attach, linux_child_post_startup_inferior)
5994 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
5995 (linux_child_remove_fork_catchpoint)
5996 (linux_child_insert_vfork_catchpoint)
5997 (linux_child_remove_vfork_catchpoint)
5998 (linux_child_insert_exec_catchpoint)
5999 (linux_child_remove_exec_catchpoint)
6000 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6001 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6002 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6003 (linux_nat_stopped_data_address)
6004 (linux_nat_stopped_by_sw_breakpoint)
6005 (linux_nat_supports_stopped_by_sw_breakpoint)
6006 (linux_nat_stopped_by_hw_breakpoint)
6007 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6008 (linux_nat_kill, linux_nat_mourn_inferior)
6009 (linux_nat_xfer_partial, linux_nat_thread_alive)
6010 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6011 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6012 (linux_child_static_tracepoint_markers_by_strid)
6013 (linux_nat_is_async_p, linux_nat_can_async_p)
6014 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6015 (linux_nat_supports_multi_process)
6016 (linux_nat_supports_disable_randomization, linux_nat_async)
6017 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6018 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6019 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6020 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6021 methods of linux_nat_target.
6022 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6023 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6024 parameter.
6025 (check_stopped_by_watchpoint): Adjust.
6026 (linux_xfer_partial): Delete.
6027 (linux_target_install_ops, linux_target, linux_nat_add_target):
6028 Delete.
6029 (linux_nat_target::linux_nat_target): New.
6030 * linux-nat.h: Include "inf-ptrace.h".
6031 (linux_nat_target): New.
6032 (linux_target, linux_target_install_ops, linux_nat_add_target):
6033 Delete function declarations.
6034 (linux_target): Declare global.
6035 * linux-thread-db.c (thread_db_target): New.
6036 (thread_db_target::thread_db_target): New.
6037 (thread_db_ops): Delete.
6038 (the_thread_db_target): New.
6039 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6040 (thread_db_update_thread_list, thread_db_pid_to_str)
6041 (thread_db_extra_thread_info)
6042 (thread_db_thread_handle_to_thread_info)
6043 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6044 (thread_db_resume): Refactor as methods of thread_db_target.
6045 (init_thread_db_ops): Delete.
6046 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6047 * x86-linux-nat.c: Don't include "linux-nat.h".
6048 (super_post_startup_inferior): Delete.
6049 (x86_linux_nat_target::~x86_linux_nat_target): New.
6050 (x86_linux_child_post_startup_inferior)
6051 (x86_linux_read_description, x86_linux_enable_btrace)
6052 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6053 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6054 methods of x86_linux_nat_target.
6055 (x86_linux_create_target): Delete. Bits folded ...
6056 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6057 pointer.
6058 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6059 (x86_linux_nat_target): New class.
6060 (x86_linux_create_target): Delete.
6061 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6062 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6063 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6064 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6065 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6066 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6067 make extern.
6068 (x86_use_watchpoints): Delete.
6069 * x86-nat.h: Include "breakpoint.h" and "target.h".
6070 (x86_use_watchpoints): Delete.
6071 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6072 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6073 (x86_insert_watchpoint, x86_remove_watchpoint)
6074 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6075 (x86_stopped_by_hw_breakpoint): New declarations.
6076 (x86_nat_target): New template class.
6077
6078 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6079 (the_ppc_linux_nat_target): New.
6080 (ppc_linux_fetch_inferior_registers)
6081 (ppc_linux_can_use_hw_breakpoint)
6082 (ppc_linux_region_ok_for_hw_watchpoint)
6083 (ppc_linux_ranged_break_num_registers)
6084 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6085 (ppc_linux_insert_mask_watchpoint)
6086 (ppc_linux_remove_mask_watchpoint)
6087 (ppc_linux_can_accel_watchpoint_condition)
6088 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6089 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6090 (ppc_linux_watchpoint_addr_within_range)
6091 (ppc_linux_masked_watch_num_registers)
6092 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6093 (ppc_linux_read_description): Refactor as methods of
6094 ppc_linux_nat_target.
6095 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6096
6097 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6098 (procfs_target): New class.
6099 (the_procfs_target): New.
6100 (procfs_target): Delete function.
6101 (procfs_auxv_parse, procfs_attach, procfs_detach)
6102 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6103 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6104 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6105 (procfs_create_inferior, procfs_update_thread_list)
6106 (procfs_thread_alive, procfs_pid_to_str)
6107 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6108 (procfs_stopped_data_address, procfs_insert_watchpoint)
6109 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6110 (proc_find_memory_regions, procfs_info_proc)
6111 (procfs_make_note_section): Refactor as methods of procfs_target.
6112 (_initialize_procfs): Adjust.
6113 * sol-thread.c (sol_thread_target): New class.
6114 (sol_thread_ops): Now a sol_thread_target.
6115 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6116 (sol_thread_fetch_registers, sol_thread_store_registers)
6117 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6118 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6119 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6120 (init_sol_thread_ops): Delete.
6121 (_initialize_sol_thread): Adjust. Remove references to
6122 init_sol_thread_ops and complete_target_initialization.
6123
6124 * windows-nat.c (windows_nat_target): New class.
6125 (windows_fetch_inferior_registers)
6126 (windows_store_inferior_registers, windows_resume, windows_wait)
6127 (windows_attach, windows_detach, windows_pid_to_exec_file)
6128 (windows_files_info, windows_create_inferior)
6129 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6130 (windows_close, windows_pid_to_str, windows_xfer_partial)
6131 (windows_get_tib_address, windows_get_ada_task_ptid)
6132 (windows_thread_name, windows_thread_alive): Refactor as
6133 windows_nat_target methods.
6134 (do_initial_windows_stuff): Adjust.
6135 (windows_target): Delete function.
6136 (_initialize_windows_nat): Adjust.
6137
6138 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6139 (darwin_mourn_inferior, darwin_kill_inferior)
6140 (darwin_create_inferior, darwin_attach, darwin_detach)
6141 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6142 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6143 (darwin_supports_multi_process): Refactor as darwin_nat_target
6144 methods.
6145 (darwin_resume_to, darwin_files_info): Delete.
6146 (_initialize_darwin_inferior): Rename to ...
6147 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6148 * darwin-nat.h: Include "inf-child.h".
6149 (darwin_nat_target): New class.
6150 (darwin_complete_target): Delete.
6151 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6152 (darwin_target): New.
6153 (i386_darwin_fetch_inferior_registers)
6154 (i386_darwin_store_inferior_registers): Refactor as methods of
6155 darwin_nat_target.
6156 (darwin_complete_target): Delete, with ...
6157 (_initialize_i386_darwin_nat): ... bits factored out here.
6158
6159 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6160 (the_alpha_linux_nat_target): New.
6161 (alpha_linux_register_u_offset): Refactor as
6162 alpha_linux_nat_target method.
6163 (_initialize_alpha_linux_nat): Adjust.
6164 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6165 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6166 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6167 methods of linux_nat_trad_target.
6168 (linux_trad_target): Delete.
6169 * linux-nat-trad.h (linux_trad_target): Delete function.
6170 (linux_nat_trad_target): New class.
6171 * mips-linux-nat.c (mips_linux_nat_target): New class.
6172 (super_fetch_registers, super_store_registers, super_close):
6173 Delete.
6174 (the_mips_linux_nat_target): New.
6175 (mips64_linux_regsets_fetch_registers)
6176 (mips64_linux_regsets_store_registers)
6177 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6178 (mips_linux_register_u_offset, mips_linux_read_description)
6179 (mips_linux_can_use_hw_breakpoint)
6180 (mips_linux_stopped_by_watchpoint)
6181 (mips_linux_stopped_data_address)
6182 (mips_linux_region_ok_for_hw_watchpoint)
6183 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6184 (mips_linux_close): Refactor as methods of mips_linux_nat.
6185 (_initialize_mips_linux_nat): Adjust to C++ification.
6186
6187 * aix-thread.c (aix_thread_target): New class.
6188 (aix_thread_ops): Now an aix_thread_target.
6189 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6190 (aix_thread_fetch_registers, aix_thread_store_registers)
6191 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6192 (aix_thread_thread_alive, aix_thread_pid_to_str)
6193 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6194 Refactor as methods of aix_thread_target.
6195 (init_aix_thread_ops): Delete.
6196 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6197 and complete_target_initialization.
6198 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6199 (rs6000_nat_target): New class.
6200 (the_rs6000_nat_target): New.
6201 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6202 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6203 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6204 (super_create_inferior): Delete.
6205 (_initialize_rs6000_nat): Adjust to C++ification.
6206
6207 * arm-linux-nat.c (arm_linux_nat_target): New class.
6208 (the_arm_linux_nat_target): New.
6209 (arm_linux_fetch_inferior_registers)
6210 (arm_linux_store_inferior_registers, arm_linux_read_description)
6211 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6212 (arm_linux_remove_hw_breakpoint)
6213 (arm_linux_region_ok_for_hw_watchpoint)
6214 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6215 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6216 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6217 arm_linux_nat_target.
6218 (_initialize_arm_linux_nat): Adjust to C++ification.
6219
6220 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6221 (the_aarch64_linux_nat_target): New.
6222 (aarch64_linux_fetch_inferior_registers)
6223 (aarch64_linux_store_inferior_registers)
6224 (aarch64_linux_child_post_startup_inferior)
6225 (aarch64_linux_read_description)
6226 (aarch64_linux_can_use_hw_breakpoint)
6227 (aarch64_linux_insert_hw_breakpoint)
6228 (aarch64_linux_remove_hw_breakpoint)
6229 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6230 (aarch64_linux_region_ok_for_hw_watchpoint)
6231 (aarch64_linux_stopped_data_address)
6232 (aarch64_linux_stopped_by_watchpoint)
6233 (aarch64_linux_watchpoint_addr_within_range)
6234 (aarch64_linux_can_do_single_step): Refactor as methods of
6235 aarch64_linux_nat_target.
6236 (super_post_startup_inferior): Delete.
6237 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6238
6239 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6240 (the_hppa_linux_nat_target): New.
6241 (hppa_linux_fetch_inferior_registers)
6242 (hppa_linux_store_inferior_registers): Refactor as methods of
6243 hppa_linux_nat_target.
6244 (_initialize_hppa_linux_nat): Adjust to C++ification.
6245
6246 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6247 (the_ia64_linux_nat_target): New.
6248 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6249 (ia64_linux_stopped_data_address)
6250 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6251 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6252 ia64_linux_nat_target methods.
6253 (super_xfer_partial): Delete.
6254 (_initialize_ia64_linux_nat): Adjust to C++ification.
6255
6256 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6257 (the_m32r_linux_nat_target): New.
6258 (m32r_linux_fetch_inferior_registers)
6259 (m32r_linux_store_inferior_registers): Refactor as
6260 m32r_linux_nat_target methods.
6261 (_initialize_m32r_linux_nat): Adjust to C++ification.
6262
6263 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6264 (the_m68k_linux_nat_target): New.
6265 (m68k_linux_fetch_inferior_registers)
6266 (m68k_linux_store_inferior_registers): Refactor as
6267 m68k_linux_nat_target methods.
6268 (_initialize_m68k_linux_nat): Adjust to C++ification.
6269
6270 * s390-linux-nat.c (s390_linux_nat_target): New class.
6271 (the_s390_linux_nat_target): New.
6272 (s390_linux_fetch_inferior_registers)
6273 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6274 (s390_insert_watchpoint, s390_remove_watchpoint)
6275 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6276 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6277 (s390_auxv_parse, s390_read_description): Refactor as methods of
6278 s390_linux_nat_target.
6279 (_initialize_s390_nat): Adjust to C++ification.
6280
6281 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6282 (the_sparc_linux_nat_target): New.
6283 (_initialize_sparc_linux_nat): Adjust to C++ification.
6284 * sparc-nat.c (sparc_fetch_inferior_registers)
6285 (sparc_store_inferior_registers): Remove target_ops parameter.
6286 * sparc-nat.h (sparc_fetch_inferior_registers)
6287 (sparc_store_inferior_registers): Remove target_ops parameter.
6288 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6289 (the_sparc64_linux_nat_target): New.
6290 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6291
6292 * spu-linux-nat.c (spu_linux_nat_target): New class.
6293 (the_spu_linux_nat_target): New.
6294 (spu_child_post_startup_inferior, spu_child_post_attach)
6295 (spu_child_wait, spu_fetch_inferior_registers)
6296 (spu_store_inferior_registers, spu_xfer_partial)
6297 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6298 methods.
6299 (_initialize_spu_nat): Adjust to C++ification.
6300
6301 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6302 (the_tilegx_linux_nat_target): New.
6303 (fetch_inferior_registers, store_inferior_registers):
6304 Refactor as methods.
6305 (_initialize_tile_linux_nat): Adjust to C++ification.
6306
6307 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6308 (the_xtensa_linux_nat_target): New.
6309 (xtensa_linux_fetch_inferior_registers)
6310 (xtensa_linux_store_inferior_registers): Refactor as
6311 xtensa_linux_nat_target methods.
6312 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6313
6314 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6315 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6316 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6317 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6318 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6319 (fbsd_stopped_by_sw_breakpoint)
6320 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6321 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6322 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6323 (fbsd_post_startup_inferior, fbsd_post_attach)
6324 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6325 (fbsd_set_syscall_catchpoint)
6326 (super_xfer_partial, super_resume, super_wait)
6327 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6328 (fbsd_handle_debug_trap): Remove target_ops parameter.
6329 (fbsd_nat_add_target): Delete.
6330 * fbsd-nat.h: Include "inf-ptrace.h".
6331 (fbsd_nat_add_target): Delete.
6332 (USE_SIGTRAP_SIGINFO): Define.
6333 (fbsd_nat_target): New class.
6334
6335 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6336 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6337 (amd64bsd_target): Delete.
6338 * amd64-bsd-nat.h: New file.
6339 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6340 "x86-bsd-nat.h".
6341 (amd64_fbsd_nat_target): New class.
6342 (the_amd64_fbsd_nat_target): New.
6343 (amd64fbsd_read_description): Refactor as method of
6344 amd64_fbsd_nat_target.
6345 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6346 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6347 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6348 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6349 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6350 (i386bsd_target): Delete.
6351 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6352 (i386bsd_fetch_inferior_registers)
6353 (i386bsd_store_inferior_registers): Declare.
6354 (i386_bsd_nat_target): New class.
6355 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6356 (the_i386_fbsd_nat_target): New.
6357 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6358 i386_fbsd_nat_target methods.
6359 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6360 (_initialize_i386fbsd_nat): Adjust to C++ification.
6361 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6362 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6363 (_initialize_x86_bsd_nat): Adjust to C++ification.
6364 * x86-bsd-nat.h: Include "x86-nat.h".
6365 (x86bsd_target): Delete declaration.
6366 (x86bsd_nat_target): New class.
6367
6368 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6369 (the_aarch64_fbsd_nat_target): New.
6370 (aarch64_fbsd_fetch_inferior_registers)
6371 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6372 aarch64_fbsd_nat_target.
6373 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6374 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6375 (the_alpha_bsd_nat_target): New.
6376 (alphabsd_fetch_inferior_registers)
6377 (alphabsd_store_inferior_registers): Refactor as
6378 alpha_bsd_nat_target methods.
6379 (_initialize_alphabsd_nat): Refactor as methods of
6380 alpha_bsd_nat_target.
6381 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6382 (the_amd64_nbsd_nat_target): New.
6383 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6384 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6385 (the_amd64_obsd_nat_target): New.
6386 (_initialize_amd64obsd_nat): Adjust to C++ification.
6387 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6388 (the_arm_fbsd_nat_target): New.
6389 (arm_fbsd_fetch_inferior_registers)
6390 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6391 (_initialize_arm_fbsd_nat): Refactor as methods of
6392 arm_fbsd_nat_target.
6393 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6394 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6395 (the_arm_netbsd_nat_target): New.
6396 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6397 arm_netbsd_nat_target.
6398 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6399 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6400 (the_hppa_nbsd_nat_target): New.
6401 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6402 hppa_nbsd_nat_target methods.
6403 (_initialize_hppanbsd_nat): Adjust to C++ification.
6404 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6405 (the_hppa_obsd_nat_target): New.
6406 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6407 methods of hppa_obsd_nat_target.
6408 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6409 add_target.
6410 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6411 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6412 add_target.
6413 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6414 (_initialize_i386obsd_nat): Use add_target.
6415 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6416 (the_m68k_bsd_nat_target): New.
6417 (m68kbsd_fetch_inferior_registers)
6418 (m68kbsd_store_inferior_registers): Refactor as methods of
6419 m68k_bsd_nat_target.
6420 (_initialize_m68kbsd_nat): Adjust to C++ification.
6421 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6422 (the_mips_fbsd_nat_target): New.
6423 (mips_fbsd_fetch_inferior_registers)
6424 (mips_fbsd_store_inferior_registers): Refactor as methods of
6425 mips_fbsd_nat_target.
6426 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6427 add_target.
6428 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6429 (the_mips_nbsd_nat_target): New.
6430 (mipsnbsd_fetch_inferior_registers)
6431 (mipsnbsd_store_inferior_registers): Refactor as methods of
6432 mips_nbsd_nat_target.
6433 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6434 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6435 (the_mips64_obsd_nat_target): New.
6436 (mips64obsd_fetch_inferior_registers)
6437 (mips64obsd_store_inferior_registers): Refactor as methods of
6438 mips64_obsd_nat_target.
6439 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6440 add_target.
6441 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6442 nbsd_nat_target.
6443 * nbsd-nat.h: Include "inf-ptrace.h".
6444 (nbsd_nat_target): New class.
6445 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6446 (obsd_wait): Refactor as methods of obsd_nat_target.
6447 (obsd_add_target): Delete.
6448 * obsd-nat.h: Include "inf-ptrace.h".
6449 (obsd_nat_target): New class.
6450 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6451 (the_ppc_fbsd_nat_target): New.
6452 (ppcfbsd_fetch_inferior_registers)
6453 (ppcfbsd_store_inferior_registers): Refactor as methods of
6454 ppc_fbsd_nat_target.
6455 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6456 add_target.
6457 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6458 (the_ppc_nbsd_nat_target): New.
6459 (ppcnbsd_fetch_inferior_registers)
6460 (ppcnbsd_store_inferior_registers): Refactor as methods of
6461 ppc_nbsd_nat_target.
6462 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6463 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
6464 (the_ppc_obsd_nat_target): New.
6465 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
6466 methods of ppc_obsd_nat_target.
6467 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
6468 add_target.
6469 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
6470 (the_sh_nbsd_nat_target): New.
6471 (shnbsd_fetch_inferior_registers)
6472 (shnbsd_store_inferior_registers): Refactor as methods of
6473 sh_nbsd_nat_target.
6474 (_initialize_shnbsd_nat): Adjust to C++ification.
6475 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
6476 (inf_ptrace_xfer_partial): Delete.
6477 (sparc_xfer_partial, sparc_target): Delete.
6478 * sparc-nat.h (sparc_fetch_inferior_registers)
6479 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
6480 (sparc_target): Delete function declaration.
6481 (sparc_target): New template class.
6482 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
6483 (_initialize_sparcnbsd_nat): Adjust to C++ification.
6484 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
6485 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
6486 add_target.
6487 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
6488 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
6489 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
6490 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
6491 add_target.
6492 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
6493 (the_vax_bsd_nat_target): New.
6494 (vaxbsd_fetch_inferior_registers)
6495 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
6496 methods.
6497 (_initialize_vaxbsd_nat): Adjust to C++ification.
6498
6499 * bsd-kvm.c (bsd_kvm_target): New class.
6500 (bsd_kvm_ops): Now a bsd_kvm_target.
6501 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
6502 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
6503 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
6504 bsd_kvm_target.
6505 (bsd_kvm_return_one): Delete.
6506 (bsd_kvm_add_target): Adjust to C++ification.
6507
6508 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
6509 (nto_procfs_target_procfs): New classes.
6510 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
6511 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
6512 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
6513 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
6514 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
6515 (procfs_remove_hw_breakpoint, procfs_resume)
6516 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
6517 (procfs_kill_inferior, procfs_store_registers)
6518 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
6519 as methods of nto_procfs_target.
6520 (nto_procfs_ops): Now an nto_procfs_target_procfs.
6521 (nto_native_ops): Delete.
6522 (procfs_open, procfs_native_open): Delete.
6523 (nto_native_ops): Now an nto_procfs_target_native.
6524 (init_procfs_targets): Adjust to C++ification.
6525 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
6526 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
6527 Refactor as methods of nto_procfs_target.
6528
6529 * go32-nat.c (go32_nat_target): New class.
6530 (the_go32_nat_target): New.
6531 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
6532 (go32_store_registers, go32_xfer_partial, go32_files_info)
6533 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
6534 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
6535 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
6536 (go32_pid_to_str): Refactor as methods of go32_nat_target.
6537 (go32_target): Delete.
6538 (_initialize_go32_nat): Adjust to C++ification.
6539
6540 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
6541 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
6542 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
6543 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
6544 gnu_nat_target.
6545 (gnu_target): Delete.
6546 * gnu-nat.h (gnu_target): Delete.
6547 (gnu_nat_target): New class.
6548 * i386-gnu-nat.c (gnu_base_target): New.
6549 (i386_gnu_nat_target): New class.
6550 (the_i386_gnu_nat_target): New.
6551 (_initialize_i386gnu_nat): Adjust to C++ification.
6552
3fffc070
PA
65532018-05-02 Pedro Alves <palves@redhat.com>
6554
6555 * bfd-target.c (target_bfd_xclose): Rename to ...
6556 (target_bfd_close): ... this.
6557 (target_bfd_reopen): Adjust.
6558 * target.c (target_close): Remove references to to_xclose.
6559 * target.h (target_ops::to_xclose): Delete.
6560 (target_ops::to_close): Update comments.
6561
6798487f
PA
65622018-05-02 Pedro Alves <palves@redhat.com>
6563
6564 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
6565 "linux-nat.h".
6566 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
6567 * inf-ptrace.c (inf_ptrace_register_u_offset)
6568 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6569 (inf_ptrace_store_register, inf_ptrace_store_registers)
6570 (inf_ptrace_trad_target): Move to ...
6571 * linux-nat-trad.c: ... this new file.
6572 * linux-nat-trad.h: New file.
6573 * linux-nat.c (linux_target_install_ops): Make extern.
6574 (linux_trad_target): Delete.
6575 * linux-nat.h (linux_trad_target): Delete declaration.
6576 (linux_target_install_ops): Declare.
6577 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
6578 "linux-nat.h".
6579
c1955e17
PA
65802018-05-02 Pedro Alves <palves@redhat.com>
6581
6582 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6583 procfs_target/add_target here.
6584 * procfs.c (procfs_target): Make static.
6585 (_initialize_procfs): Call add_target here.
6586 * procfs.h (struct target_ops): Remove forward declaration.
6587 (procfs_target): Remove declaration.
6588 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
6589
b5c8fcb1
PA
65902018-05-02 Pedro Alves <palves@redhat.com>
6591
6592 * procfs.c (procfs_stopped_by_watchpoint)
6593 (procfs_insert_watchpoint, procfs_remove_watchpoint)
6594 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
6595 Forward declare.
6596 (procfs_use_watchpoints): Delete, move contents...
6597 (procfs_target): ... here.
6598 * procfs.h (procfs_use_watchpoints): Delete declaration.
6599 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6600 procfs_use_watchpoints.
6601 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
6602 procfs_use_watchpoints.
6603
0489430a
TT
66042018-05-02 Tom Tromey <tom@tromey.com>
6605
6606 PR python/20084:
6607 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
6608 and var_zuinteger_unlimited.
6609 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
6610 and PARAM_ZUINTEGER_UNLIMITED.
6611 (set_parameter_value): Handle var_zuinteger and
6612 var_zuinteger_unlimited.
6613 (add_setshow_generic): Likewise.
6614 (parmpy_init): Likewise.
6615
1632f8ba
DR
66162018-04-28 Dan Robertson <danlrobertson89@gmail.com>
6617
6618 PR rust/23124
6619 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
6620 pointer is not null before dereferencing it.
6621
76761936
TT
66222018-04-30 Tom Tromey <tom@tromey.com>
6623
6624 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
6625 is_mi_like_p.
6626
2d33446d
TT
66272018-04-30 Tom Tromey <tom@tromey.com>
6628
6629 * breakpoint.c (mention): Remove use of is_mi_like_p.
6630 (print_mention_ranged_breakpoint): Likewise.
6631 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
6632 of is_mi_like_p.
6633
f3c6abab
TT
66342018-04-30 Tom Tromey <tom@tromey.com>
6635
6636 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
6637
40c03530
TT
66382018-04-30 Tom Tromey <tom@tromey.com>
6639
6640 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
6641 (info_spu_event_command): Remove some uses of is_mi_like_p.
6642
2038b7fd
TT
66432018-04-30 Tom Tromey <tom@tromey.com>
6644
6645 * python/py-framefilter.c (py_print_single_arg)
6646 (enumerate_locals, py_print_args, py_print_frame): Remove some
6647 uses of is_mi_like_p.
6648
4904c3c6
TT
66492018-04-30 Tom Tromey <tom@tromey.com>
6650
6651 * ui-out.c: Update.
6652 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
6653 * ui-out.h (ui_out::is_mi_like_p): Now const.
6654 (ui_out::do_is_mi_like_p): Now const.
6655 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
6656
7c66fffc
TT
66572018-04-30 Tom Tromey <tom@tromey.com>
6658
6659 * varobj.c (varobj_set_visualizer): Use new_reference.
6660 * python/python.c (gdbpy_decode_line): Use new_reference.
6661 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
6662 new_reference.
6663
bbfa6f00
TT
66642018-04-30 Tom Tromey <tom@tromey.com>
6665
6666 * varobj.c (install_new_value): Use new_reference.
6667 * value.h (value_incref): Return void. Swap intro comment with
6668 value_decref.
6669 * value.c (set_value_parent): Use new_reference.
6670 (value_incref): Return void. Update intro comment.
6671 (release_value): Use new_reference.
6672 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
6673
1831a9f9
TT
66742018-04-30 Tom Tromey <tom@tromey.com>
6675
6676 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
6677 * gdb_bfd.h (new_bfd_ref): Remove.
6678 (gdb_bfd_open): Update comment.
6679 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6680 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
6681 (gdb_bfd_fdopenr): Use new_reference.
6682 * exec.c (exec_file_attach): Use new_reference.
6683
7c1b5f3d
TT
66842018-04-30 Tom Tromey <tom@tromey.com>
6685
6686 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
6687 method.
6688
e11fb955
TT
66892018-04-30 Tom Tromey <tom@tromey.com>
6690
6691 * jit.c (jit_read_code_entry): Use type_align.
6692 * i386-tdep.c (i386_gdbarch_init): Don't call
6693 set_gdbarch_long_long_align_bit.
6694 * gdbarch.sh: Remove long_long_align_bit.
6695 * gdbarch.c, gdbarch.h: Rebuild.
6696 * arc-tdep.c (arc_type_align): New function.
6697 (arc_gdbarch_init): Use arc_type_align. Don't call
6698 set_gdbarch_long_long_align_bit.
6699
2fff16dd
TT
67002018-04-30 Tom Tromey <tom@tromey.com>
6701
6702 * rust-lang.c (rust_type_alignment): Remove.
6703 (rust_composite_type): Use type_align.
6704
6d7bb824
TT
67052018-04-30 Tom Tromey <tom@tromey.com>
6706
6707 * NEWS: Mention Type.align.
6708 * python/py-type.c (typy_get_alignof): New function.
6709 (type_object_getset): Add "alignof".
6710
007e1530
TT
67112018-04-30 Tom Tromey <tom@tromey.com>
6712
6713 PR exp/17095:
6714 * NEWS: Update.
6715 * std-operator.def (UNOP_ALIGNOF): New operator.
6716 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
6717 New.
6718 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
6719 * c-lang.c (c_op_print_tab): Add alignof.
6720 * c-exp.y (ALIGNOF): New token.
6721 (exp): Add "ALIGNOF" production.
6722 (ident_tokens): Add _Alignof and alignof.
6723
2b4424c3
TT
67242018-04-30 Tom Tromey <tom@tromey.com>
6725
6726 * i386-tdep.c (i386_type_align): New function.
6727 (i386_gdbarch_init): Update.
6728 * gdbarch.sh (type_align): New method.
6729 * gdbarch.c, gdbarch.h: Rebuild.
6730 * arch-utils.h (default_type_align): Declare.
6731 * arch-utils.c (default_type_align): New function.
6732 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
6733 (struct type) <align_log2>: New field.
6734 <instance_flags>: Now a bitfield.
6735 (TYPE_RAW_ALIGN): New macro.
6736 (type_align, type_raw_align, set_type_align): Declare.
6737 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
6738 functions.
6739 * dwarf2read.c (quirk_rust_enum): Set type alignment.
6740 (get_alignment, maybe_set_alignment): New functions.
6741 (read_structure_type, read_enumeration_type, read_array_type)
6742 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
6743 (read_subrange_type, read_base_type): Set type alignment.
6744
d33bc52e
SM
67452018-04-30 Simon Marchi <simon.marchi@ericsson.com>
6746
6747 * dwarf2read.c (read_index_from_section): Use bool.
6748
e28b63a9
FG
67492018-04-29 Fabian Groffen <grobian@gentoo.org>
6750
6751 PR gdb/22950
6752 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
6753 with #ifdef.
6754
cd8c76e4
JR
67552018-04-29 John Reiser <jreiser@BitWagon.com>
6756
6757 PR build/22873
6758 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
6759 last step, and do it atomically.
6760
476d250e
AO
67612018-04-27 Alexandre Oliva <aoliva@redhat.com>
6762
6763 * compile/compile-c-types.c (convert_int, convert_float):
6764 Update for C FE v1.
6765
6873858b
TT
67662018-04-27 Tom Tromey <tom@tromey.com>
6767
6768 PR rust/22545:
6769 * rust-lang.c (rust_inclusive_range_type_p): New function.
6770 (rust_range): Handle inclusive ranges.
6771 (rust_compute_range): Likewise.
6772 * rust-exp.y (struct rust_op) <inclusive>: New field.
6773 (DOTDOTEQ): New constant.
6774 (range_expr): Add "..=" productions.
6775 (operator_tokens): Add "..=" token.
6776 (ast_range): Add "inclusive" parameter.
6777 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
6778 ranges.
6779 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
6780 bounds values.
6781 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
6782 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
6783 Update comments.
6784 * expprint.c (print_subexp_standard): Handle new bounds values.
6785 (dump_subexp_body_standard): Likewise.
6786
632e107b
TT
67872018-04-27 Tom Tromey <tom@tromey.com>
6788
6789 * configure: Rebuild.
6790 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
6791 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
6792 "OVERRIDE".
6793 (class symbol_needs_eval_context): Likewise.
6794 * dwarf2read.c (mock_mapped_index::symbol_name_count)
6795 (mock_mapped_index::symbol_name_at): Use "override". Remove
6796 "virtual".
6797 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
6798 "override".
6799 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
6800 * aarch64-tdep.c (instruction_reader::read): Use "override".
6801 (instruction_reader_test::read): Likewise.
6802 * arm-tdep.c (instruction_reader::read): Use "override".
6803 (instruction_reader_thumb::read): Likewise.
6804
b75abf5b
AK
68052018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
6806
6807 PR remote/9665
6808 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
6809 instead of remote_send.
6810 (remote_send): Remove.
6811
79188d8d
PA
68122018-04-26 Pedro Alves <palves@redhat.com>
6813
6814 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
6815 find_function_start_sal instead of find_pc_line.
6816
f50776aa
PA
68172018-04-26 Pedro Alves <palves@redhat.com>
6818
6819 * breakpoint.c (set_breakpoint_location_function): Handle
6820 mst_data_gnu_ifunc.
6821 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
6822 * elfread.c (elf_symtab_read): Give data symbols with
6823 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
6824 (elf_rel_plt_read): Update comment.
6825 * linespec.c (convert_linespec_to_sals): Handle
6826 mst_data_gnu_ifunc.
6827 (minsym_found): Handle mst_data_gnu_ifunc.
6828 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
6829 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
6830 * parse.c (find_minsym_type_and_address): Handle
6831 mst_data_gnu_ifunc.
6832 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
6833 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
6834 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
6835 comment.
6836 <mst_data_gnu_ifunc>: New enumerator.
6837
20944a6e
PA
68382018-04-26 Pedro Alves <palves@redhat.com>
6839
6840 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
6841 (lookup_minimal_symbol_by_pc_section): ... this. Replace
6842 'want_trampoline' parameter by a lookup_msym_prefer parameter.
6843 Handle it.
6844 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
6845 (lookup_minimal_symbol_by_pc): Adjust.
6846 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
6847 (lookup_solib_trampoline_symbol_by_pc): Adjust.
6848 * minsyms.h (lookup_msym_prefer): New enum.
6849 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
6850 parameter by a lookup_msym_prefer parameter.
6851
1adeb822
PA
68522018-04-26 Pedro Alves <palves@redhat.com>
6853
6854 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
6855 ends in "@plt" instead of looking at the symbol's section.
6856
a0aca7b0
PA
68572018-04-26 Pedro Alves <palves@redhat.com>
6858
6859 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
6860 all references.
6861 (find_pc_partial_function_gnu_ifunc): Rename to ...
6862 (find_pc_partial_function): ... this, and remove references to
6863 'is_gnu_ifunc_p'.
6864 (find_pc_partial_function): Delete old implementation.
6865 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
6866
76af0f26
PA
68672018-04-26 Pedro Alves <palves@redhat.com>
6868
6869 * linespec.c (struct bound_minimal_symbol_search_key): New.
6870 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
6871 skip first line if we found a GNU ifunc minimal symbol by name.
6872 (compare_msymbols): Change parameters to work with a destructured
6873 lhs minsym.
6874 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
6875 functions.
6876
3467ec66
PA
68772018-04-26 Pedro Alves <palves@redhat.com>
6878
6879 * breakpoint.c (set_breakpoint_location_function): Don't resolve
6880 ifunc targets here. Instead, if we have an ifunc minsym, use its
6881 address/name.
6882 (add_location_to_breakpoint): Store the minsym and the objfile in
6883 the breakpoint location.
6884 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
6885 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
6886 Record the minsym in the sal.
6887 * symtab.h (symtab_and_line) <msymbol>: New field.
6888
28f4fa4d
PA
68892018-04-26 Pedro Alves <palves@redhat.com>
6890
6891 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
6892 unless we actually resolved the ifunc.
6893
ca31ab1d
PA
68942018-04-26 Pedro Alves <palves@redhat.com>
6895
6896 * c-exp.y (variable production): Prefer ifunc minsyms over
6897 regular function symbols.
6898 * symtab.c (find_gnu_ifunc): New function.
6899 * minsyms.h (lookup_msym_prefer): New enum.
6900 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
6901 parameter by a lookup_msym_prefer parameter.
6902 * symtab.h (find_gnu_ifunc): New declaration.
6903
8388016d
PA
69042018-04-26 Pedro Alves <palves@redhat.com>
6905
6906 * blockframe.c (find_gnu_ifunc_target_type): New function.
6907 (find_function_type): New.
6908 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
6909 return a value with a memory address.
6910 (eval_call): For calls to GNU ifunc functions, try to find the
6911 type of the target function from the type that the resolver
6912 returns.
6913 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
6914 symbols.
6915 * infcall.c (find_function_return_type): Delete.
6916 (find_function_addr): Add 'function_type' parameter. For calls to
6917 GNU ifunc functions, try to find the type of the target function
6918 from the type that the resolver returns, and return it via
6919 FUNCTION_TYPE.
6920 (call_function_by_hand_dummy): Adjust to use the function type
6921 returned by find_function_addr.
6922 (find_function_addr): Add 'function_type' parameter and move
6923 description here.
6924 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
6925 declarations.
6926
a376e11d
PA
69272018-04-26 Pedro Alves <palves@redhat.com>
6928
6929 * c-exp.y (variable production): Skip finding an alias for ifunc
6930 symbols.
6931
02e169e2
PA
69322018-04-26 Pedro Alves <palves@redhat.com>
6933
6934 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
6935
249b5733
PA
69362018-04-25 Pedro Alves <palves@redhat.com>
6937
6938 * infcmd.c (kill_command): Print the pid as string, not the whole
6939 thread's ptid. Add comment. s/has been killed/killed/ in output
6940 message.
6941 * remote.c (remote_detach_1): Print the pid as string, not the
6942 whole thread's ptid.
6943
f67c0c91
SDJ
69442018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6945 Sergio Durigan Junior <sergiodj@redhat.com>
6946 Pedro Alves <palves@redhat.com>
6947
6948 * infcmd.c (kill_command): Print message when inferior has
6949 been killed.
6950 * inferior.c (print_inferior_events): Remove 'static'. Set as
6951 '1'.
6952 (add_inferior): Improve message printed when
6953 'print_inferior_events' is on.
6954 (exit_inferior): Remove message printed when
6955 'print_inferior_events' is on.
6956 (detach_inferior): Improve message printed when
6957 'print_inferior_events' is on.
6958 (initialize_inferiors): Use 'add_inferior_silent' to set
6959 'current_inferior_'.
6960 * inferior.h (print_inferior_events): Declare here as
6961 'extern'.
6962 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
6963 '[Detaching...]' messages when 'print_inferior_events' is on.
6964 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
6965 as prefix/suffix for messages. Remove periods. Fix erroneous
6966 'Detaching after fork from child...', replace it by '... from
6967 parent...'.
6968 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
6969 prefix/suffix when printing 'Detaching...' messages. Print
6970 them when 'print_inferior_events' is on.
6971 * remote.c (remote_detach_1): Print message when detaching
6972 from inferior and '!is_fork_parent'.
6973
e427af18
TT
69742018-04-24 Tom Tromey <tom@tromey.com>
6975
6976 * cli-out.h: Reindent.
6977
05b1d8d6
TT
69782018-04-24 Tom Tromey <tom@tromey.com>
6979
6980 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
6981 (cli_ui_out::do_field_string): Use fputs_filtered.
6982 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
6983
a95c7dab
TT
69842018-04-23 Tom Tromey <tom@tromey.com>
6985
6986 * guile/scm-frame.c (gdbscm_frame_read_var): Use
6987 gdb::unique_xmalloc_ptr.
6988
458412c3
TT
69892018-04-23 Tom Tromey <tom@tromey.com>
6990
6991 * configure: Rebuild.
6992
db86b02b
RS
69932018-04-22 Rajendra SY <rajendra.sy@gmail.com>
6994
6995 PR gdb/23095
6996 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
6997 prepare_for_testing. Set normal_bp to r_debug_state if target
6998 is bsd.
6999
00aecdcf
PA
70002018-04-21 Pedro Alves <palves@redhat.com>
7001 Rajendra SY <rajendra.sy@gmail.com>
7002
7003 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7004 * remote.c (extended_remote_attach): In all-stop mode, mark the
7005 thread as executing.
7006
224608c3
PW
70072018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7008
7009 * thread.c (thread_apply_all_command): Fix comment.
7010 (thread_command): Fix comment.
7011
3b74854b
AH
70122018-04-10 Alan Hayward <alan.hayward@arm.com>
7013
7014 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7015 parameter.
7016 * features/aarch64-core.c (create_feature_aarch64_core):
7017 Regenerate.
7018 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7019 Likewise.
7020 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7021 Likewise.
7022 * features/i386/32bit-avx512.c
7023 (create_feature_i386_32bit_avx512): Likewise.
7024 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7025 Likewise.
7026 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7027 Likewise.
7028 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7029 Likewise.
7030 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7031 Likewise.
7032 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7033 Likewise.
7034 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7035 Likewise.
7036 * features/i386/64bit-avx512.c
7037 (create_feature_i386_64bit_avx512): Likewise.
7038 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7039 Likewise.
7040 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7041 Likewise.
7042 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7043 Likewise.
7044 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7045 Likewise.
7046 * features/i386/64bit-segments.c
7047 (create_feature_i386_64bit_segments): Likewise.
7048 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7049 Likewise.
7050 * features/i386/x32-core.c
7051 (create_feature_i386_x32_core): Likewise.
7052 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7053 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7054 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7055 * target-descriptions.c: In generated code, don't pass xml
7056 filename.
7057
e98577a9
AH
70582018-04-18 Alan Hayward <alan.hayward@arm.com>
7059
7060 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7061 (print_xml_feature::visit_post): Likewise.
7062 (print_xml_feature::visit): Likewise.
7063 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7064 (print_xml_feature): Add new class.
7065 * regformats/regdat.sh: Null xmltarget on feature targets.
7066 * target-descriptions.c (struct target_desc): Add xmltarget.
7067 (maintenance_check_tdesc_xml_convert): Add unittest function.
7068 (tdesc_get_features_xml): Add function to get xml.
7069 (maintenance_check_xml_descriptions): Test xml generation.
7070 * xml-tdesc.c (string_read_description_xml): Add function.
7071 * xml-tdesc.h (string_read_description_xml): Add declaration.
7072
ad7fc756
AH
70732018-04-18 Alan Hayward <alan.hayward@arm.com>
7074
7075 * features/Makefile: Add feature marker to targets with new style
7076 target descriptions.
7077 * regformats/aarch64.dat: Regenerate.
7078 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7079 * regformats/i386/amd64-avx-linux.dat: Likewise.
7080 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7081 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7082 * regformats/i386/amd64-linux.dat: Likewise.
7083 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7084 * regformats/i386/amd64.dat: Likewise.
7085 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7086 * regformats/i386/i386-avx-linux.dat: Likewise.
7087 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7088 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7089 * regformats/i386/i386-linux.dat: Likewise.
7090 * regformats/i386/i386-mmx-linux.dat: Likewise.
7091 * regformats/i386/i386-mpx-linux.dat: Likewise.
7092 * regformats/i386/i386.dat: Likewise.
7093 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7094 * regformats/i386/x32-avx-linux.dat: Likewise.
7095 * regformats/i386/x32-linux.dat: Likewise.
7096 * regformats/tic6x-c62x-linux.dat: Likewise.
7097 * regformats/tic6x-c64x-linux.dat: Likewise.
7098 * regformats/tic6x-c64xp-linux.dat: Likewise.
7099 * regformats/regdat.sh: Parse feature marker.
7100
d278f585
AH
71012018-04-18 Alan Hayward <alan.hayward@arm.com>
7102
7103 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7104 (tdesc_osabi_name): Likewise.
7105 * target-descriptions.c (tdesc_architecture_name): Add new
7106 function.
7107 (tdesc_osabi_name): Likewise.
7108
eee8a18d
AH
71092018-04-18 Alan Hayward <alan.hayward@arm.com>
7110
7111 * common/tdesc.c (tdesc_predefined_type): Move to here.
7112 (tdesc_named_type): Likewise.
7113 (tdesc_create_vector): Likewise.
7114 (tdesc_create_struct): Likewise.
7115 (tdesc_set_struct_size): Likewise.
7116 (tdesc_create_union): Likewise.
7117 (tdesc_create_flags): Likewise.
7118 (tdesc_create_enum): Likewise.
7119 (tdesc_add_field): Likewise.
7120 (tdesc_add_typed_bitfield): Likewise.
7121 (tdesc_add_bitfield): Likewise.
7122 (tdesc_add_flag): Likewise.
7123 (tdesc_add_enum_value): Likewise.
7124 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7125 (struct tdesc_type_vector): Likewise.
7126 (struct tdesc_type_field): Likewise.
7127 (struct tdesc_type_with_fields): Likewise.
7128 (tdesc_create_enum): Add declaration.
7129 (tdesc_add_typed_bitfield): Likewise.
7130 (tdesc_add_enum_value): Likewise.
7131 * target-descriptions.c (tdesc_type_field): Move from here.
7132 (tdesc_type_builtin): Likewise.
7133 (tdesc_type_vector): Likewise.
7134 (tdesc_type_with_fields): Likewise.
7135 (tdesc_predefined_types): Likewise.
7136 (tdesc_named_type): Likewise.
7137 (tdesc_create_vector): Likewise.
7138 (tdesc_create_struct): Likewise.
7139 (tdesc_set_struct_size): Likewise.
7140 (tdesc_create_union): Likewise.
7141 (tdesc_create_flags): Likewise.
7142 (tdesc_create_enum): Likewise.
7143 (tdesc_add_field): Likewise.
7144 (tdesc_add_typed_bitfield): Likewise.
7145 (tdesc_add_bitfield): Likewise.
7146 (tdesc_add_flag): Likewise.
7147 (tdesc_add_enum_value): Likewise.
7148 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7149 (tdesc_add_typed_bitfield): Likewise.
7150 (tdesc_add_enum_value): Likewise.
7151
82ec9bc7
AH
71522018-04-18 Alan Hayward <alan.hayward@arm.com>
7153
7154 * common/tdesc.c (tdesc_feature::accept): Move to here.
7155 (tdesc_feature::operator==): Likewise.
7156 (tdesc_create_reg): Likewise.
7157 * common/tdesc.h (tdesc_type_kind): Likewise.
7158 (struct tdesc_type): Likewise.
7159 (struct tdesc_feature): Likewise.
7160 * regformats/regdat.sh: Create a feature.
7161 * target-descriptions.c (tdesc_type_kind): Move from here.
7162 (tdesc_type): Likewise.
7163 (tdesc_type_up): Likewise.
7164 (tdesc_feature): Likewise.
7165 (tdesc_create_reg): Likewise.
7166
ea3e7d71
AH
71672018-04-18 Alan Hayward <alan.hayward@arm.com>
7168
7169 * Makefile.in: Add arch/tdesc.c
7170 * common/tdesc.c: New file.
7171 * common/tdesc.h (tdesc_element_visitor): Move to here.
7172 (tdesc_element): Likewise.
7173 (tdesc_reg): Likewise.
7174 (tdesc_reg_up): Likewise.
7175 * regformats/regdef.h (reg): Add offset to constructors.
7176 * target-descriptions.c (tdesc_element_visitor): Move from here.
7177 (tdesc_element): Likewise.
7178 (tdesc_reg): Likewise.
7179 (tdesc_reg_up): Likewise.
7180
bedda9ac
TT
71812018-04-17 Tom Tromey <tom@tromey.com>
7182
7183 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7184 discriminant field.
7185
a037790e
TT
71862018-04-17 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7189
c7dcbf88
AA
71902018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7191
7192 * symtab.c (print_symbol_info): Skip printing filename and line
7193 number when `last' is NULL.
7194 (symtab_symbol_info): Use empty string instead of NULL for first
7195 invocation of print_symbol_info.
7196 (rbreak_command): Pass NULL to `last' parameter of
7197 print_symbol_info.
7198
07d28c77
SM
71992018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7200
7201 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7202 instead of nullptr.
7203
8a3de5e1
PA
72042018-04-16 Pedro Alves <palves@redhat.com>
7205
7206 * MAINTAINERS (sh): Remove.
7207 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7208 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7209 (ALLDEPFILES): Remove sh64-tdep.c.
7210 * NEWS: Mentions that support for SH-5/SH64 is removed.
7211 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7212 (sh*-*-openbsd*): Ditto.
7213 (sh64-*-elf*): Remove.
7214 (sh*): Remove.
7215 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7216 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7217 * sh-tdep.c: No longer include "sh64-tdep.h".
7218 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7219 * sh64-tdep.c, sh64-tdep.h: Remove files.
7220
a2a79012
PA
72212018-04-16 Pedro Alves <palves@redhat.com>
7222
7223 * MAINTAINERS: Remove m88k.
7224 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7225 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7226 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7227 * NEWS: Mention that support for m88k was removed.
7228 * configure.host (m88*-*-*): Remove support.
7229 * configure.nat (m88k-*-*): Remove support.
7230 * configure.tgt (m88*-*-openbsd*): Remove.
7231 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7232
eda4efb1
SM
72332018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7234
7235 * configure.tgt (x86_tobjs): New variable.
7236 (amd64_tobjs, i386_tobjs): Use it.
7237
b744723f
AA
72382018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7239
7240 * symtab.c (print_symbol_info): Precede the symbol definition by
7241 the line number when available.
7242 * NEWS: Advertise this enhancement.
7243
4a4495d6
MM
72442018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7245
7246 * NEWS (New options): announce set/show record btrace cpu.
7247 * btrace.c: Include record-btrace.h.
7248 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7249 the vendor is unknown.
7250 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7251 Maybe overwrite the btrace configuration's cpu.
7252 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7253 (btrace_fetch): Add cpu parameter. Update callers.
7254 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7255 Maybe overwrite the btrace configuration's cpu. Skip enabling
7256 errata workarounds if the vendor is unknown.
7257 * python/py-record-btrace.c: Include record-btrace.h.
7258 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7259 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7260 * record-btrace.c (record_btrace_cpu_state_kind): New.
7261 (record_btrace_cpu): New.
7262 (set_record_btrace_cpu_cmdlist): New.
7263 (record_btrace_get_cpu): New.
7264 (require_btrace_thread, record_btrace_info)
7265 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7266 (cmd_set_record_btrace_cpu_none): New.
7267 (cmd_set_record_btrace_cpu_auto): New.
7268 (cmd_set_record_btrace_cpu): New.
7269 (cmd_show_record_btrace_cpu): New.
7270 (_initialize_record_btrace): Initialize set/show record btrace cpu
7271 commands.
7272 * record-btrace.h (record_btrace_get_cpu): New.
7273
69f90c75
MM
72742018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7275
7276 * record.c (set_record_command): Fix typo in message.
7277
b85310e1
MM
72782018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7279
7280 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7281
1d509aa6
MM
72822018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7283
7284 * infrun.c (process_event_stop_test): Call
7285 gdbarch_in_indirect_branch_thunk.
7286 * gdbarch.sh (in_indirect_branch_thunk): New.
7287 * gdbarch.c: Regenerated.
7288 * gdbarch.h: Regenerated.
7289 * x86-tdep.h: New.
7290 * x86-tdep.c: New.
7291 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7292 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7293 (ALLDEPFILES): Add x86-tdep.c.
7294 * arch-utils.h (default_in_indirect_branch_thunk): New.
7295 * arch-utils.c (default_in_indirect_branch_thunk): New.
7296 * i386-tdep: Include x86-tdep.h.
7297 (i386_in_indirect_branch_thunk): New.
7298 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7299 function.
7300 * amd64-tdep: Include x86-tdep.h.
7301 (amd64_in_indirect_branch_thunk): New.
7302 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7303
b4be9bfd
JK
73042018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 PR gdb/23053
7307 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7308 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7309 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7310 regression.
7311
53d7df28
TT
73122018-04-12 Tom Tromey <tom@tromey.com>
7313
7314 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7315 (rust_evaluate_subexp): Likewise.
7316
70b33f19
PA
73172018-04-12 Pedro Alves <palves@redhat.com>
7318
7319 * procfs.c (procfs_detach): Make forward declaration's prototype
7320 match definition's protototype.
7321 (proc_get_LDT_entry): Remove stale do_cleanups call.
7322
436411b1
PA
73232018-04-12 Pedro Alves <palves@redhat.com>
7324
7325 * target.h (target_ops::to_has_exited): Delete.
7326 (target_has_exited): Delete.
7327 * target-delegates.c: Regenerate.
7328
20db9c52
PA
73292018-04-11 Pedro Alves <palves@redhat.com>
7330
7331 * target.c (fileio_fh_t::t): Add comment.
7332 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7333 (target_fileio_close): Handle a NULL target.
7334 (invalidate_fileio_fh): New.
7335 (target_close): Call it.
7336 * remote.c (remote_hostio_send_command): No longer check whether
7337 remote_desc is open.
7338
5ff79300
PA
73392018-04-11 Pedro Alves <palves@redhat.com>
7340
7341 * target.c (fileio_fh_t): Make it a named struct instead of a
7342 typedef.
7343 (fileio_fh_t::is_closed): New method.
7344 (DEF_VEC_O (fileio_fh_t)): Remove.
7345 (fileio_fhandles): Now a std::vector.
7346 (is_closed_fileio_fh): Delete.
7347 (acquire_fileio_fd): Adjust. Rename parameters.
7348 (release_fileio_fd): Adjust.
7349 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7350 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7351 (target_fileio_close): Adjust.
7352
6e22e10d
SM
73532018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7354
7355 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7356 index.
7357
731f534f
PA
73582018-04-10 Pedro Alves <palves@redhat.com>
7359
7360 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7361 (scoped_finish_thread_state): New class.
7362 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7363 cleanup.
7364 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7365 (fetch_inferior_event, normal_stop): Likewise.
7366 * thread.c (finish_thread_state_cleanup): Delete.
7367
d5f4488f
SM
73682018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7369 Pedro Alves <palves@redhat.com>
7370
7371 * value.c: Include "selftest.h" and "common/array-view.h".
7372 (struct range) <operator ==>: New.
7373 (test_ranges_contain): New.
7374 (check_ranges_vector): New.
7375 (test_insert_into_bit_range_vector): New.
7376 (_initialize_values): Register selftests.
7377 * common/array-view.h (operator==, operator!=): New.
7378
b24531ed
SM
73792018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7380
7381 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7382 an iterator.
7383 * inline-frame.c: Include <algorithm>.
7384 (struct inline_state): Add constructor.
7385 (inline_state_s): Remove.
7386 (DEF_VEC_O(inline_state_s)): Remove.
7387 (inline_states): Change type to std::vector.
7388 (find_inline_frame_state): Adjust to std::vector.
7389 (allocate_inline_frame_state): Remove.
7390 (clear_inline_frame_state): Adjust to std::vector.
7391 (skip_inline_frames): Adjust to std::vector.
7392
c252925c
SM
73932018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7394
7395 * tracepoint.h (struct trace_state_variable): Add constructor.
7396 <name>: Change type to std::string.
7397 * tracepoint.c (tsv_s): Remove.
7398 (DEF_VEC_O(tsv_s)): Remove.
7399 (tvariables): Change to std::vector.
7400 (create_trace_state_variable): Adjust to std::vector.
7401 (find_trace_state_variable): Likewise.
7402 (find_trace_state_variable_by_number): Likewise.
7403 (delete_trace_state_variable): Likewise.
7404 (trace_variable_command): Adjust to std::string.
7405 (delete_trace_variable_command): Likewise.
7406 (tvariables_info_1): Adjust to std::vector.
7407 (save_trace_state_variables): Likewise.
7408 (start_tracing): Likewise.
7409 (merge_uploaded_trace_state_variables): Adjust to std::vector
7410 and std::string.
7411 * target.h (struct target_ops)
7412 <to_download_trace_state_variable>: Pass reference to
7413 trace_state_variable.
7414 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7415 * target-delegates.c: Re-generate.
7416 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7417 (mi_tsv_deleted): Likewise.
7418 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7419 * remote.c (remote_download_trace_state_variable): Change
7420 pointer to reference and adjust.
7421 * make-target-delegates (parse_argtypes): Handle references.
7422 (write_function_header): Likewise.
7423 (munge_type): Likewise.
7424
c9638d26
SM
74252018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7426
7427 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7428 string_view-selftests.c.
7429 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7430 testsuite.
7431 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7432 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7433 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7434 * unittests/basic_string_view/element_access/char/1.cc:
7435 Likewise.
7436 * unittests/basic_string_view/element_access/char/empty.cc:
7437 Likewise.
7438 * unittests/basic_string_view/element_access/char/front_back.cc:
7439 Likewise.
7440 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7441 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7442 Likewise.
7443 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7444 Likewise.
7445 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7446 Likewise.
7447 * unittests/basic_string_view/operations/compare/char/1.cc:
7448 Likewise.
7449 * unittests/basic_string_view/operations/compare/char/13650.cc:
7450 Likewise.
7451 * unittests/basic_string_view/operations/copy/char/1.cc:
7452 Likewise.
7453 * unittests/basic_string_view/operations/data/char/1.cc:
7454 Likewise.
7455 * unittests/basic_string_view/operations/find/char/1.cc:
7456 Likewise.
7457 * unittests/basic_string_view/operations/find/char/2.cc:
7458 Likewise.
7459 * unittests/basic_string_view/operations/find/char/3.cc:
7460 Likewise.
7461 * unittests/basic_string_view/operations/find/char/4.cc:
7462 Likewise.
7463 * unittests/basic_string_view/operations/rfind/char/1.cc:
7464 Likewise.
7465 * unittests/basic_string_view/operations/rfind/char/2.cc:
7466 Likewise.
7467 * unittests/basic_string_view/operations/rfind/char/3.cc:
7468 Likewise.
7469 * unittests/basic_string_view/operations/substr/char/1.cc:
7470 Likewise.
7471 * unittests/basic_string_view/operators/char/2.cc: Likewise.
7472 * unittests/string_view-selftests.c: New file.
7473
fdc11678
SM
74742018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7475
7476 * unittests/basic_string_view/capacity/1.cc: New file.
7477 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
7478 * unittests/basic_string_view/cons/char/1.cc: New file.
7479 * unittests/basic_string_view/cons/char/2.cc: New file.
7480 * unittests/basic_string_view/cons/char/3.cc: New file.
7481 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
7482 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
7483 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
7484 * unittests/basic_string_view/element_access/char/1.cc: New file.
7485 * unittests/basic_string_view/element_access/char/2.cc: New file.
7486 * unittests/basic_string_view/element_access/char/empty.cc: New file.
7487 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
7488 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
7489 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
7490 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
7491 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
7492 * unittests/basic_string_view/include.cc: New file.
7493 * unittests/basic_string_view/inserters/char/1.cc: New file.
7494 * unittests/basic_string_view/inserters/char/2.cc: New file.
7495 * unittests/basic_string_view/inserters/char/3.cc: New file.
7496 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
7497 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
7498 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
7499 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
7500 * unittests/basic_string_view/literals/types.cc: New file.
7501 * unittests/basic_string_view/literals/values.cc: New file.
7502 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
7503 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
7504 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
7505 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
7506 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
7507 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
7508 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
7509 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
7510 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
7511 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
7512 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
7513 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
7514 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
7515 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
7516 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
7517 * unittests/basic_string_view/operations/data/char/1.cc: New file.
7518 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
7519 * unittests/basic_string_view/operations/find/char/1.cc: New file.
7520 * unittests/basic_string_view/operations/find/char/2.cc: New file.
7521 * unittests/basic_string_view/operations/find/char/3.cc: New file.
7522 * unittests/basic_string_view/operations/find/char/4.cc: New file.
7523 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
7524 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
7525 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
7526 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
7527 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
7528 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
7529 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
7530 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
7531 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
7532 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
7533 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
7534 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
7535 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
7536 * unittests/basic_string_view/operators/char/2.cc: New file.
7537 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
7538 * unittests/basic_string_view/range_access/char/1.cc: New file.
7539 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
7540 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
7541 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
7542 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
7543 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
7544 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
7545 * unittests/basic_string_view/requirements/typedefs.cc: New file.
7546 * unittests/basic_string_view/typedefs.cc: New file.
7547 * unittests/basic_string_view/types/1.cc: New file.
7548
8345c4a2
SM
75492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7550
7551 * common/gdb_string_view.h: Remove libstdc++ implementation
7552 details, adjust to gdb reality.
7553 * common/gdb_string_view.tcc: Likewise.
7554 * cli/cli-script.c (struct string_view): Remove.
7555 (user_args) <m_args>: Change element type to gdb::string_view.
7556 (user_args::insert_args): Adjust.
7557
7adcdf08
SM
75582018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7559
7560 * common/gdb_string_view.h: New file.
7561 * common/gdb_string_view.tcc: New file.
7562
41260ac2
SM
75632018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7564
7565 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
7566 * configure: Re-generate.
7567
0bee6dd4
PA
75682018-04-09 Pedro Alves <palves@redhat.com>
7569
7570 * gdbarch.sh: Include "observable.h" instead of "observer.h".
7571 (set_target_gdbarch): Call
7572 gdb::observers::architecture_changed.notify instead of
7573 observer_notify_architecture_changed.
7574
6f14adc5
SM
75752018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7576
7577 * tracepoint.c (struct current_traceframe_cleanup): Remove.
7578 (do_restore_current_traceframe_cleanup): Remove.
7579 (restore_current_traceframe_cleanup_dtor): Remove.
7580 (make_cleanup_restore_current_traceframe): Remove.
7581 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
7582 New.
7583 * tracepoint.h (struct scoped_restore_current_traceframe): New.
7584 * infrun.c (fetch_inferior_event): Use
7585 scoped_restore_current_traceframe.
7586
b2bdb8cf
SM
75872018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7588
7589 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
7590 Remove.
7591 <n_allocated_type_units>: Remove.
7592 <all_type_units>: Change to std::vector.
7593 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7594 to std::vector change.
7595 (dwarf2_per_objfile::get_cutu): Likewise.
7596 (dwarf2_per_objfile::get_tu): Likewise.
7597 (create_signatured_type_table_from_index): Likewise.
7598 (create_signatured_type_table_from_debug_names): Likewise.
7599 (dw2_symtab_iter_next): Likewise.
7600 (dw2_print_stats): Likewise.
7601 (dw2_expand_all_symtabs): Likewise.
7602 (dw2_expand_marked_cus): Likewise.
7603 (dw2_debug_names_iterator::next): Likewise.
7604 (dwarf2_initialize_objfile): Likewise.
7605 (add_signatured_type_cu_to_table): Likewise.
7606 (create_all_type_units): Likewise.
7607 (add_type_unit): Likewise.
7608 (struct tu_abbrev_offset): Add constructor.
7609 (build_type_psymtabs_1): Adjust to std::vector change.
7610 (print_tu_stats): Likewise.
7611 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7612 (write_debug_names): Likewise.
7613
b76e467d
SM
76142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7615
7616 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
7617 Make an std::vector.
7618 <n_comp_units>: Remove.
7619 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7620 to std::vector change.
7621 (dwarf2_per_objfile::get_cutu): Likewise.
7622 (dwarf2_per_objfile::get_cu): Likewise.
7623 (create_cus_from_index): Likewise.
7624 (create_addrmap_from_index): Likewise.
7625 (create_addrmap_from_aranges): Likewise.
7626 (dwarf2_read_index): Likewise.
7627 (dw2_find_last_source_symtab): Likewise.
7628 (dw2_map_symtabs_matching_filename): Likewise.
7629 (dw2_symtab_iter_next): Likewise.
7630 (dw2_print_stats): Likewise.
7631 (dw2_expand_all_symtabs): Likewise.
7632 (dw2_expand_symtabs_with_fullname): Likewise.
7633 (dw2_expand_marked_cus): Likewise.
7634 (dw2_map_symbol_filenames): Likewise.
7635 (create_cus_from_debug_names): Likewise.
7636 (dwarf2_read_debug_names): Likewise.
7637 (dw2_debug_names_iterator::next): Likewise.
7638 (dwarf2_initialize_objfile): Likewise.
7639 (set_partial_user): Likewise.
7640 (dwarf2_build_psymtabs_hard): Likewise.
7641 (read_comp_units_from_section): Remove arguments, adjust to
7642 std::vector change.
7643 (create_all_comp_units): Adjust to std::vector and
7644 read_comp_units_from_section changes.
7645 (dwarf2_find_containing_comp_unit): Adjust to std::vector
7646 change.
7647 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7648 (psyms_seen_size): Likewise.
7649 (write_gdbindex): Likewise.
7650 (write_debug_names): Likewise.
7651
12359b5e
SM
76522018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7653
7654 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
7655 with dwarf2_per_objfile.
7656 (create_cus_from_index): Likewise.
7657 (create_signatured_type_table_from_index): Likewise.
7658 (dwarf2_read_index): Likewise.
7659 (dwarf2_initialize_objfile): Likewise.
7660 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
7661 per_cu rather than get_dwarf2_per_objfile.
7662
ff4c9fec
SM
76632018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7664
7665 * dwarf2read.h (struct signatured_type): Forward declare.
7666 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
7667 New methods.
7668 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
7669 (dw2_get_cutu): ...this.
7670 (dwarf2_per_objfile::get_cu): Rename from...
7671 (dw2_get_cu): ...this.
7672 (dwarf2_per_objfile::get_tu): New.
7673 (create_addrmap_from_index): Adjust.
7674 (create_addrmap_from_aranges): Adjust.
7675 (dw2_find_last_source_symtab): Adjust.
7676 (dw2_map_symtabs_matching_filename): Adjust.
7677 (dw2_symtab_iter_next): Adjust.
7678 (dw2_print_stats): Adjust.
7679 (dw2_expand_all_symtabs): Adjust.
7680 (dw2_expand_symtabs_with_fullname): Adjust.
7681 (dw2_expand_marked_cus): Adjust.
7682 (dw_expand_symtabs_matching_file_matcher): Adjust.
7683 (dw2_map_symbol_filenames): Adjust.
7684 (dw2_debug_names_iterator::next): Adjust.
7685 (dwarf2_initialize_objfile): Adjust.
7686 (set_partial_user): Adjust.
7687 (dwarf2_build_psymtabs_hard): Adjust.
7688
5ca3fcb6
SM
76892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7690
7691 * dwarf2read.c (create_signatured_type_table_from_debug_names):
7692 Remove unused variables.
7693 (dw2_map_symtabs_matching_filename): Likewise.
7694 (dwarf2_record_block_ranges): Likewise.
7695 (dwarf2_read_addr_index): Likewise.
7696 (follow_die_offset): Likewise.
7697
b2e586e8
SM
76982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7699
7700 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
7701 to symbol_file_add_main.
7702
7c4e78cf
SM
77032018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 PR mi/22299
7706 * mi/mi-console.c (do_fputc_async_safe): New.
7707 (mi_console_file::write_async_safe): New.
7708 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
7709 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
7710 New.
7711 * ui-file.c (ui_file::putstrn): Adjust call to
7712 fputstrn_unfiltered.
7713 * utils.c (printchar): Replace do_fputs and do_fprintf
7714 parameters by do_fputc.
7715 (fputstr_filtered): Adjust call to printchar.
7716 (fputstr_unfiltered): Likewise.
7717 (fputstrn_filtered): Likewise.
7718 (fputstrn_unfiltered): Add do_fputc parameter, pass to
7719 printchar.
7720 * utils.h (do_fputc_ftype): New typedef.
7721 (fputstrn_unfiltered): Add do_fputc parameter.
7722
5dc026d3
SM
77232018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7724
7725 * regformats/i386/i386-avx.dat: Remove.
7726
c912f608
SM
77272018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 PR gdb/22979
7730 * amd64-tdep.c (amd64_none_init_abi): New function.
7731 (amd64_x32_none_init_abi): New function.
7732 (_initialize_amd64_tdep): Register handlers for x86-64 and
7733 x64_32 with GDB_OSABI_NONE.
7734 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
7735 GDB_OSABI_NONE osabi.
7736
26540402
SM
77372018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7738
7739 PR gdb/22980
7740 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
7741 GDB_OSABI_NONE.
7742 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
7743 * osabi.c (gdb_osabi_names): Add "unknown" entry.
7744
9018be22
SM
77452018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7746
7747 * common/byte-vector.h (char_vector): New type.
7748 * target.h (target_read_alloc): Return
7749 gdb::optional<byte_vector>.
7750 (target_read_stralloc): Return gdb::optional<char_vector>.
7751 (target_get_osdata): Return gdb::optional<char_vector>.
7752 * target.c (target_read_alloc_1): Templatize. Replacement
7753 manual memory management with vector.
7754 (target_read_alloc): Change return type, adjust.
7755 (target_read_stralloc): Change return type, adjust.
7756 (target_get_osdata): Change return type, adjust.
7757 * auxv.c (struct auxv_info) <length>: Remove.
7758 <data>: Change type to gdb::optional<byte_vector>.
7759 (auxv_inferior_data_cleanup): Free auxv_info with delete.
7760 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
7761 (target_auxv_search): Adjust.
7762 (fprint_target_auxv): Adjust.
7763 * avr-tdep.c (avr_io_reg_read_command): Adjust.
7764 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
7765 (linux_make_corefile_notes): Adjust.
7766 * osdata.c (get_osdata): Adjust.
7767 * remote.c (remote_get_threads_with_qxfer): Adjust.
7768 (remote_memory_map): Adjust.
7769 (remote_traceframe_info): Adjust.
7770 (btrace_read_config): Adjust.
7771 (remote_read_btrace): Adjust.
7772 (remote_pid_to_exec_file): Adjust.
7773 * solib-aix.c (solib_aix_get_library_list): Adjust.
7774 * solib-dsbt.c (decode_loadmap): Don't free buf.
7775 (dsbt_get_initial_loadmaps): Adjust.
7776 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
7777 * solib-target.c (solib_target_current_sos): Adjust.
7778 * tracepoint.c (sdata_make_value): Adjust.
7779 * xml-support.c (xinclude_start_include): Adjust.
7780 (xml_fetch_content_from_file): Adjust.
7781 * xml-support.h (xml_fetch_another): Change return type.
7782 (xml_fetch_content_from_file): Change return type.
7783 * xml-syscall.c (xml_init_syscalls_info): Adjust.
7784 * xml-tdesc.c (file_read_description_xml): Adjust.
7785 (fetch_available_features_from_target): Change return type.
7786 (target_fetch_description_xml): Adjust.
7787 (target_read_description_xml): Adjust.
7788
14c88955
TT
77892018-04-06 Tom Tromey <tom@tromey.com>
7790
7791 * value.c (~value): Update.
7792 (struct value) <contents>: Now unique_xmalloc_ptr.
7793 (value_contents_bits_eq, allocate_value_contents)
7794 (value_contents_raw, value_contents_all_raw)
7795 (value_contents_for_printing, value_contents_for_printing_const)
7796 (set_value_enclosing_type): Update.
7797
0c7e6dd8
TT
77982018-04-06 Tom Tromey <tom@tromey.com>
7799
7800 * value.c (range_s): Remove typedef, VEC.
7801 (struct range): Add operator<.
7802 (range_lessthan): Remove.
7803 (ranges_contain): Change type.
7804 (~value): Update.
7805 (struct value) <unavailable, optimized_out>: Now std::vector.
7806 (value_entirely_available)
7807 (value_entirely_covered_by_range_vector)
7808 (value_entirely_unavailable, value_entirely_optimized_out):
7809 Update.
7810 (insert_into_bit_range_vector): Change argument type.
7811 (find_first_range_overlap): Likewise.
7812 (struct ranges_and_idx, value_contents_bits_eq)
7813 (require_not_optimized_out, require_available): Update.
7814 (ranges_copy_adjusted): Change argument types.
7815 (value_optimized_out, value_copy, value_fetch_lazy): Update.
7816
2c8331b9
TT
78172018-04-06 Tom Tromey <tom@tromey.com>
7818
7819 * value.c (~value): Update.
7820 (struct value) <parent>: Now a value_ref_ptr.
7821 (value_parent, set_value_parent, value_address, value_copy):
7822 Update.
7823
466ce3ae
TT
78242018-04-06 Tom Tromey <tom@tromey.com>
7825
7826 * value.c (struct value): Add constructor, destructor, and member
7827 initializers.
7828 (allocate_value_lazy, value_decref): Update.
7829
062d818d
TT
78302018-04-06 Tom Tromey <tom@tromey.com>
7831
7832 * value.c (struct value) <released, next>: Remove.
7833 (all_values): Now a std::vector.
7834 (allocate_value_lazy): Update.
7835 (value_next): Remove.
7836 (value_mark, value_free_to_mark, release_value)
7837 (value_release_to_mark): Update.
7838
a6535de1
TT
78392018-04-06 Tom Tromey <tom@tromey.com>
7840
7841 * value.h (fetch_subexp_value, value_release_to_mark): Update.
7842 (free_value_chain): Remove.
7843 * value.c (free_value_chain): Remove.
7844 (value_release_to_mark): Return a std::vector.
7845 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
7846 std::vector.
7847 (check_condition): Update.
7848 * eval.c (fetch_subexp_value): Change "val_chain" to a
7849 std::vector.
7850 * breakpoint.c (update_watchpoint): Update.
7851 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
7852
b5621201
TT
78532018-04-06 Tom Tromey <tom@tromey.com>
7854
7855 * value.h (free_all_values): Remove.
7856 * value.c (free_all_values): Remove.
7857
4d0266a0
TT
78582018-04-06 Tom Tromey <tom@tromey.com>
7859
7860 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
7861 (value_history_chain, value_history_count): Remove.
7862 (value_history): New global.
7863 (record_latest_value, access_value_history, show_values)
7864 (preserve_values): Update.
7865
b4d61099
TT
78662018-04-06 Tom Tromey <tom@tromey.com>
7867
7868 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
7869 * varobj.c (varobj_set_display_format, varobj_set_value)
7870 (install_default_visualizer, construct_visualizer)
7871 (install_new_value, ~varobj, varobj_get_value_type)
7872 (my_value_of_variable, varobj_editable_p): Update.
7873 * c-varobj.c (c_describe_child, c_value_of_variable)
7874 (cplus_number_of_children, cplus_describe_child): Update.
7875 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
7876 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
7877 (ada_value_of_variable, ada_value_is_changeable_p): Update.
7878
9b558729
TT
78792018-04-06 Tom Tromey <tom@tromey.com>
7880
7881 * printcmd.c (last_examine_address): Change type to
7882 value_ref_ptr.
7883 (do_examine, x_command): Update.
7884
850645cf
TT
78852018-04-06 Tom Tromey <tom@tromey.com>
7886
7887 * value.c (release_value): Update.
7888 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
7889 (struct bpstats) <val>: Now a value_ref_ptr.
7890 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
7891 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
7892 (~watchpoint, print_it_watchpoint, watch_command_1)
7893 (invalidate_bp_value_on_memory_change): Update.
7894
22bc8444
TT
78952018-04-06 Tom Tromey <tom@tromey.com>
7896
7897 * varobj.c (varobj_clear_saved_item)
7898 (update_dynamic_varobj_children, install_new_value, ~varobj):
7899 Update.
7900 * value.h (value_incref): Move declaration earlier.
7901 (value_decref): Rename from value_free.
7902 (struct value_ref_policy): New.
7903 (value_ref_ptr): New typedef.
7904 (struct value_deleter): Remove.
7905 (gdb_value_up): Remove typedef.
7906 (release_value): Change return type.
7907 (release_value_or_incref): Remove.
7908 * value.c (set_value_parent): Update.
7909 (value_incref): Change return type.
7910 (value_decref): Rename from value_free.
7911 (value_free_to_mark, free_all_values, free_value_chain): Update.
7912 (release_value): Return value_ref_ptr.
7913 (release_value_or_incref): Remove.
7914 (record_latest_value, set_internalvar, clear_internalvar):
7915 Update.
7916 * stack.c (info_frame_command): Don't call value_free.
7917 * python/py-value.c (valpy_dealloc, valpy_new)
7918 (value_to_value_object): Update.
7919 * printcmd.c (do_examine): Update.
7920 * opencl-lang.c (lval_func_free_closure): Update.
7921 * mi/mi-main.c (register_changed_p): Don't call value_free.
7922 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
7923 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
7924 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
7925 value_free.
7926 * guile/scm-value.c (vlscm_free_value_smob)
7927 (vlscm_scm_from_value): Update.
7928 * frame.c (frame_register_unwind, frame_unwind_register_signed)
7929 (frame_unwind_register_unsigned, get_frame_register_bytes)
7930 (put_frame_register_bytes): Don't call value_free.
7931 * findvar.c (address_from_register): Don't call value_free.
7932 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
7933 * dwarf2loc.c (entry_data_value_free_closure)
7934 (value_of_dwarf_reg_entry, free_pieced_value_closure)
7935 (dwarf2_evaluate_loc_desc_full): Update.
7936 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
7937 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
7938 (~watchpoint, watch_command_1)
7939 (invalidate_bp_value_on_memory_change): Update.
7940 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
7941
7f8a5d38
SM
79422018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
7943
7944 PR gdb/23022
7945 * warning.m4: Add -Wno-error=deprecated-register.
7946 * configure: Re-generate.
7947
8a76bd3b
TT
79482018-04-05 Tom Tromey <tom@tromey.com>
7949
7950 * linespec.h: Remove include of "vec.h".
7951
8e8d776e
TT
79522018-04-05 Tom Tromey <tom@tromey.com>
7953
7954 * linespec.c (typep): Remove typedef.
7955 (find_methods, find_superclass_methods): Take a std::vector.
7956 (find_method): Use std::vector.
7957
9b2f8581
TT
79582018-04-05 Tom Tromey <tom@tromey.com>
7959
7960 * utils.c (compare_strings): Remove.
7961 * utils.h (compare_strings): Remove.
7962 * objc-lang.h (find_imps): Update.
7963 * objc-lang.c (find_methods): Take a std::vector.
7964 (uniquify_strings, find_imps): Likewise.
7965 * linespec.c (find_methods): Take a std::vector.
7966 (decode_objc): Use std::vector.
7967 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
7968 a std::vector.
7969 (find_method, find_function_symbols): Use std::vector.
7970
459a2e4c
TT
79712018-04-05 Tom Tromey <tom@tromey.com>
7972
7973 * completer.c (completion_tracker::completion_tracker): Remove
7974 cast.
7975 (completion_tracker::discard_completions): Likewise.
7976 * breakpoint.c (ambiguous_names_p): Remove cast.
7977 * ada-lang.c (_initialize_ada_language): Remove cast.
7978 * utils.h (streq): Update.
7979 (streq_hash): Add new declaration.
7980 * utils.c (streq): Return bool.
7981 (streq_hash): New function.
7982
9be2c17a
TT
79832018-04-05 Tom Tromey <tom@tromey.com>
7984
7985 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
7986 Remove a string copy.
7987
f73c6ece
TT
79882018-04-05 Tom Tromey <tom@tromey.com>
7989
7990 * linespec.c (filter_results): Use std::vector.
7991 (decode_line_2, decode_line_full): Update.
7992
53a0f8a2
TT
79932018-04-05 Tom Tromey <tom@tromey.com>
7994
7995 * linespec.c (canonical_to_fullform): Return std::string.
7996 (filter_results): Update.
7997 (struct decode_line_2_item): Add constructor.
7998 <fullform, displayform>: Now std::string.
7999 (decode_line_2_compare_items): Now a std::sort comparator.
8000 (decode_line_2): Update.
8001
a5b5adf5
TT
80022018-04-05 Tom Tromey <tom@tromey.com>
8003
8004 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8005 (unexpected_linespec_error): Update.
8006 (linespec_parse_basic, parse_linespec): Update.
8007
6a307fc5
TT
80082018-04-05 Tom Tromey <tom@tromey.com>
8009
8010 * linespec.c (linespec_parse_basic): Reindent.
8011
41c1efc6
TT
80122018-04-05 Tom Tromey <tom@tromey.com>
8013
8014 * minsyms.h (iterate_over_minimal_symbols): Update.
8015 * minsyms.c (iterate_over_minimal_symbols): Take a
8016 gdb::function_view.
8017 * linespec.c (struct collect_minsyms): Remove.
8018 (compare_msyms): Now a std::sort comparator.
8019 (add_minsym): Add parameters.
8020 (search_minsyms_for_name): Update. Use std::vector.
8021
c5edbf3d
TT
80222018-04-03 Tom Tromey <tom@tromey.com>
8023
8024 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8025 gdb::byte_vector.
8026
b39efc48
WP
80272018-04-02 Weimin Pan <weimin.pan@oracle.com>
8028
8029 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8030
121ad66c 80312018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
8032
8033 PR gdb/16959
8034 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8035 printing static type.
8036
09473be8
TT
80372018-04-01 Tom Tromey <tom@tromey.com>
8038
8039 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8040 (rs6000_xfer_shared_libraries): Update.
8041
ec1f2d91
SM
80422018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8043
8044 * common/gdb_vecs.h (char_ptr): Remove.
8045 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8046
d8611974
SM
80472018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8048
8049 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8050 with std::vector.
8051 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8052
a18ba4e4
SM
80532018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8054
8055 * tracepoint.h (struct uploaded_tp): Initialize fields.
8056 <actions, step_actions, cmd_strings>: Change type to
8057 std::vector<char *>.
8058 * tracepoint.c (get_uploaded_tp): Allocate with new.
8059 (free_uploaded_tps): Free with delete.
8060 (parse_tracepoint_definition): Adjust to std::vector change.
8061 * breakpoint.c (read_uploaded_action): Likewise.
8062 (create_tracepoint_from_upload): Likewise.
8063 * ctf.c (ctf_write_uploaded_tp): Likewise.
8064 (SET_ARRAY_FIELD): Likewise.
8065 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8066
a7961323
TT
80672018-03-30 Tom Tromey <tom@tromey.com>
8068
8069 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8070 std::unique_ptr.
8071 (svr4_keep_data_in_core): Update.
8072 (svr4_read_so_list): Update.
8073
e83e4e24
TT
80742018-03-30 Tom Tromey <tom@tromey.com>
8075
8076 * windows-nat.c (handle_output_debug_string, handle_exception):
8077 Update.
8078 * target.h (target_read_string): Update.
8079 * target.c (target_read_string): Change "string" to
8080 unique_xmalloc_ptr.
8081 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8082 Update.
8083 * solib-frv.c (frv_current_sos): Update.
8084 * solib-dsbt.c (dsbt_current_sos): Update.
8085 * solib-darwin.c (darwin_current_sos): Update.
8086 * linux-thread-db.c (inferior_has_bug): Update.
8087 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8088 Update. Remove alloca.
8089 * ada-lang.c (ada_main_name): Update.
8090
263db9a1
TT
80912018-03-30 Tom Tromey <tom@tromey.com>
8092
8093 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8094 (struct dwo_file_deleter): New.
8095 (dwo_file_up): New typedef.
8096 (open_and_init_dwo_file): Use dwo_file_up.
8097 (free_dwo_file_cleanup): Remove.
8098
5dafb3d1
TT
80992018-03-30 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8102 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8103
11ed8cad
TT
81042018-03-30 Tom Tromey <tom@tromey.com>
8105
8106 * dwarf2read.c (class free_cached_comp_units): New class.
8107 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8108 (free_cached_comp_units): Remove function.
8109
9ae79dac
TT
81102018-03-30 Tom Tromey <tom@tromey.com>
8111
8112 * utils.h (make_cleanup_unpush_target): Remove.
8113 * inf-ptrace.c (struct target_unpusher): New.
8114 (target_unpush_up) New typedef.
8115 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8116 target_unpush_up.
8117 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8118
5aa89276
TT
81192018-03-27 Tom Tromey <tom@tromey.com>
8120
8121 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8122
1dbeed45
TT
81232018-03-27 Pedro Alves <palves@redhat.com>
8124 Tom Tromey <tom@tromey.com>
8125
8126 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8127 destructor. Now a class.
8128 (gdb_readline_wrapper_cleanup): Remove function.
8129 (gdb_readline_wrapper): Remove cleanups.
8130
c819b2c0
TT
81312018-03-27 Tom Tromey <tom@tromey.com>
8132
8133 * typeprint.h (struct type_print_options) <local_typedefs,
8134 global_typedefs>: Remove "struct" keyword.
8135 (class typedef_hash_table): New class.
8136 (recursively_update_typedef_hash, add_template_parameters)
8137 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8138 (find_typedef_in_hash): Don't declare.
8139 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8140 (typedef_hash_table::recursively_update): Rename from
8141 recursively_update_typedef_hash. Now a member.
8142 (typedef_hash_table::add_template_parameters): Rename from
8143 add_template_parameters. Now a member.
8144 (typedef_hash_table::typedef_hash_table): Now a constructor;
8145 rename from create_typedef_hash.
8146 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8147 rename from free_typedef_hash.
8148 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8149 (do_free_global_table): Remove.
8150 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8151 from copy_type_recursive.
8152 (create_global_typedef_table): Remove.
8153 (typedef_hash_table::find_global_typedef): Now a member of
8154 typedef_hash_table.
8155 (typedef_hash_table::find_typedef): Rename from
8156 find_typedef_in_hash; now a member.
8157 (whatis_exp): Update.
8158 * extension.h (struct ext_lang_type_printers): Add constructor and
8159 destructor.
8160 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8161 declare.
8162 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8163 Now a constructor; rename from start_ext_lang_type_printers.
8164 (ext_lang_type_printers): Now a destructor; rename from
8165 free_ext_lang_type_printers.
8166 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8167 Update.
8168 (c_type_print_base_struct_union): Update. Remove cleanups.
8169
608219fb
TT
81702018-03-27 Tom Tromey <tom@tromey.com>
8171
8172 * dwarf-index-write.c: Include <cmath>.
8173
3fcded8f
JB
81742018-03-27 Joel Brobecker <brobecker@adacore.com>
8175
8176 * NEWS: Add entry describing new "set|show varsize-limit" command.
8177 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8178 command.
8179 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8180 "set variable".
8181
cd4fb1b2
SM
81822018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8183
8184 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8185 dwarf-index-write.c
8186 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8187 * dwarf-index-common.c: New file.
8188 * dwarf-index-common.h: New file.
8189 * dwarf-index-write.c: New file.
8190 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8191 (struct dwarf2_section_info): Move from here.
8192 (dwarf2_section_info_def): Likewise.
8193 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8194 (offset_type): Likewise.
8195 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8196 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8197 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8198 (byte_swap): Likewise.
8199 (MAYBE_SWAP): Likewise.
8200 (dwarf2_per_cu_ptr): Likewise.
8201 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8202 (struct tu_stats): Likewise.
8203 (struct dwarf2_per_objfile): Likewise.
8204 (struct dwarf2_per_cu_data): Likewise.
8205 (struct signatured_type): Likewise.
8206 (sig_type_ptr): Likewise.
8207 (DEF_VEC_P (sig_type_ptr)): Likewise.
8208 (INDEX4_SUFFIX): Likewise.
8209 (INDEX5_SUFFIX): Likewise.
8210 (DEBUG_STR_SUFFIX): Likewise.
8211 (dwarf2_read_section): Make non-static.
8212 (mapped_index_string_hash): Move from here.
8213 (dwarf5_djb_hash): Likewise.
8214 (file_write): Likewise.
8215 (class data_buf): Likewise.
8216 (struct symtab_index_entry): Likewise.
8217 (struct mapped_symtab): Likewise.
8218 (find_slot): Likewise.
8219 (hash_expand): Likewise.
8220 (add_index_entry): Likewise.
8221 (uniquify_cu_indices): Likewise.
8222 (class c_str_view): Likewise.
8223 (class c_str_view_hasher): Likewise.
8224 (class vector_hasher): Likewise.
8225 (write_hash_table): Likewise.
8226 (psym_index_map): Likewise.
8227 (struct addrmap_index_data): Likewise.
8228 (add_address_entry): Likewise.
8229 (add_address_entry_worker): Likewise.
8230 (write_address_map): Likewise.
8231 (symbol_kind): Likewise.
8232 (write_psymbols): Likewise.
8233 (struct signatured_type_index_data): Likewise.
8234 (write_one_signatured_type): Likewise.
8235 (recursively_count_psymbols): Likewise.
8236 (recursively_write_psymbols): Likewise.
8237 (class debug_names): Likewise.
8238 (check_dwarf64_offsets): Likewise.
8239 (psyms_seen_size): Likewise.
8240 (write_gdbindex): Likewise.
8241 (write_debug_names): Likewise.
8242 (assert_file_size): Likewise.
8243 (write_psymtabs_to_index): Likewise.
8244 (save_gdb_index_command): Likewise.
8245 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8246 command.
8247 * dwarf2read.h: New file.
8248
59cc4834
JB
82492018-03-27 Joel Brobecker <brobecker@adacore.com>
8250
8251 PR gdb/22670
8252 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8253 symbol name if the CU's language stores symbol names in linkage
8254 format.
8255 * language.h (struct language_defn)
8256 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8257 all instances of this struct.
8258
67501539
TT
82592018-03-26 Tom Tromey <tom@tromey.com>
8260
8261 * stack.c (backtrace_command_1): Remove verbose code.
8262
76c939ac
TT
82632018-03-26 Tom Tromey <tom@tromey.com>
8264
8265 * python/py-framefilter.c (py_print_type): Don't catch
8266 exceptions. Return void.
8267 (py_print_value): Likewise.
8268 (py_print_single_arg): Likewise.
8269 (enumerate_args): Don't catch exceptions.
8270 (py_print_args): Likewise.
8271 (py_print_frame): Likewise.
8272 (gdbpy_apply_frame_filter): Catch exceptions here.
8273
9507b29c
TT
82742018-03-26 Tom Tromey <tom@tromey.com>
8275
8276 * stack.c (_initialize_stack): Remove trailing newlines from help
8277 text. Add "Usage" line to "backtrace" help.
8278
eb68e487
TT
82792018-03-26 Tom Tromey <tom@tromey.com>
8280
8281 PR python/16486:
8282 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8283
1f111921
TT
82842018-03-26 Tom Tromey <tom@tromey.com>
8285
8286 * python/py-framefilter.c (py_print_single_arg): Return
8287 EXT_LANG_BT_ERROR from catch.
8288
fb7eb8b5
TT
82892018-03-26 Tom Tromey <tom@tromey.com>
8290
8291 PR backtrace/15584:
8292 * stack.c (backtrace_command_1): Move some code into no-filters
8293 "if".
8294
4ca59a9f
TT
82952018-03-26 Tom Tromey <tom@tromey.com>
8296
8297 * python/py-framefilter.c (throw_quit_or_print_exception): New
8298 function.
8299 (gdbpy_apply_frame_filter): Use it.
8300
92256134
TT
83012018-03-26 Tom Tromey <tom@tromey.com>
8302
8303 PR cli/17716:
8304 * python/py-framefilter.c (py_print_type, py_print_value)
8305 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8306 RETURN_MASK_ERROR.
8307
7a630bc2
TT
83082018-03-26 Tom Tromey <tom@tromey.com>
8309
8310 * python/py-framefilter.c (enumerate_args): Use
8311 gdb::unique_xmalloc_ptr.
8312
63283d4a
TT
83132018-03-26 Tom Tromey <tom@tromey.com>
8314
8315 * python/py-framefilter.c (py_print_frame): Return
8316 EXT_LANG_BT_OK.
8317 (gdbpy_apply_frame_filter): Update comment.
8318 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8319 Remove.
8320 <EXT_LANG_BT_NO_FILTERS>: Change value.
8321
978d6c75
TT
83222018-03-26 Tom Tromey <tom@tromey.com>
8323
8324 PR backtrace/15582:
8325 * stack.c (backtrace_command): Parse "hide" argument.
8326 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8327 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8328 constant.
8329
1cf7e640
TT
83302018-03-26 Tom Tromey <tom@tromey.com>
8331
8332 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8333 add "flags".
8334 (backtrace_command): Remove "fulltrace", add "flags".
8335
ea3b0687
TT
83362018-03-26 Tom Tromey <tom@tromey.com>
8337
8338 * stack.c (backtrace_command): Rewrite command line parsing.
8339
9f034d75
SM
83402018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8341
8342 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8343
ce1459e5
SM
83442018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8345
8346 * filename-seen-cache.h: Add include guard.
8347
4f7ae6f5
KS
83482018-03-26 Keith Seitz <keiths@redhat.com>
8349
8350 * symfile.c (place_section): Remove "struct" from section_addr_info
8351 in comment.
8352 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8353 "struct" keyword from section_addr_info.
8354
5cd3e386
AH
83552018-03-26 Alan Hayward <alan.hayward@arm.com>
8356
8357 * regformats/regdef.h (reg): Add constructors.
8358
3e5ef9a4
PA
83592018-03-25 Pedro Alves <palves@redhat.com>
8360
8361 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8362 if then/else bodies in var_func_name extraction.
8363
c88d2fcc 83642018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
8365
8366 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8367 lookup_minimal_symbol() to find symbol entry.
8368 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8369
b7fee5a3
KS
83702018-03-23 Keith Seitz <keiths@redhat.com>
8371
8372 PR c++/22968
8373 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8374 nested type definitions for C++, too.
8375
2cc9b304
TT
83762018-03-23 Tom Tromey <tom@tromey.com>
8377
8378 * machoread.c (struct oso_el): Add a constructor. Don't define as
8379 a typedef.
8380 (macho_register_oso): Remove.
8381 (macho_symtab_read): Take a std::vector.
8382 (oso_el_compare_name): Now a std::sort comparator.
8383 (macho_symfile_read_all_oso): Take a std::vector.
8384 (macho_symfile_read): Use std::vector. Remove cleanups.
8385
a2b2bc12
TT
83862018-03-22 Tom Tromey <tom@tromey.com>
8387
8388 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8389 (record_full_goto_bookmark): Use std::string.
8390
7a8f494c
PFC
83912018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8392
8393 PR tdep/18295
8394 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8395 a single mask.
8396
dd6d677f
PFC
83972018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8398
8399 * rs6000-tdep.c (store_insn_p): New function.
8400 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8401 and cr_reg to their unshifted values. Use store_insn_p to
8402 match LR saves using either R1 or fdata->alloca_reg. Use
8403 store_insn_p to match CR saves. Set alloca_reg_offset
8404 when alloca_reg and framep are set. Remove lr_reg shift
8405 when assigning to fdata->lr_register.
8406
26d6cec4
AA
84072018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8408
8409 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8410 command line args instead of emitting a warning.
8411
5d9310c4
SM
84122018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8413
8414 * tracepoint.h (struct static_tracepoint_marker): Initialize
8415 fields, define default constructor, move constructor and move
8416 assignment, disable the rest.
8417 <str_id, extra>: Make std::string.
8418 (release_static_tracepoint_marker): Remove.
8419 (free_current_marker): Remove.
8420 * tracepoint.c (free_current_marker): Remove.
8421 (parse_static_tracepoint_marker_definition): Adjust to
8422 std::string, use new hex2str overload.
8423 (release_static_tracepoint_marker): Remove.
8424 (print_one_static_tracepoint_marker): Get marker by reference
8425 and adjust to std::string.
8426 (info_static_tracepoint_markers_command): Adjust to std::vector
8427 changes
8428 * target.h (static_tracepoint_marker_p): Remove typedef.
8429 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8430 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8431 bool.
8432 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8433 * target-debug.h
8434 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8435 (target_debug_print_std_vector_static_tracepoint_marker): New.
8436 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8437 to...
8438 (target_debug_print_static_tracepoint_marker_p): ... this.
8439 * target-delegates.c: Re-generate.
8440 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8441 Make std::string.
8442 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8443 (decode_static_tracepoint_spec): Adjust to std::vector.
8444 (tracepoint_print_one_detail): Adjust to std::string.
8445 (strace_marker_decode_location): Adjust to std::string.
8446 (update_static_tracepoint): Adjust to std::string, remove call
8447 to release_static_tracepoint_marker.
8448 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8449 Adjust to std::vector.
8450 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8451 (remote_static_tracepoint_markers_by_strid): Adjust to
8452 std::vector.
8453 * common/rsp-low.h (hex2str): New overload with explicit count
8454 of bytes.
8455 * common/rsp-low.c (hex2str): New overload with explicit count
8456 of bytes.
8457 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8458 (_initialize_rsp_low_selftests): Add test_hex2str test.
8459 * unittests/tracepoint-selftests.c
8460 (test_parse_static_tracepoint_marker_definition): Adjust to
8461 std::string.
8462
62c222b6
SM
84632018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8464
8465 * tracepoint.c (parse_static_tracepoint_marker_definition):
8466 Consider case where the definition is followed by more
8467 definitions.
8468 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8469 tracepoint-selftests.c.
8470 * unittests/tracepoint-selftests.c: New.
8471
7eb2418f
PFC
84722018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8473
8474 * MAINTAINERS (Write After Approval): Add Pedro Franco de
8475 Carvalho.
8476
7cbe16e9
SR
84772018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8478
3d6b3b82 8479 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 8480
4ee89e90
SR
84812018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8482
3d6b3b82 8483 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 8484
92630041
TT
84852018-03-19 Tom Tromey <tom@tromey.com>
8486
8487 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
8488 "IDENT" production.
8489
76727919
TT
84902018-03-19 Pedro Alves <palves@redhat.com>
8491 Tom Tromey <tom@tromey.com>
8492
8493 * unittests/observable-selftests.c: New file.
8494 * common/observable.h: New file.
8495 * observable.h: New file.
8496 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
8497 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
8498 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
8499 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
8500 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
8501 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
8502 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
8503 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
8504 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
8505 python/py-breakpoint.c, python/py-finishbreakpoint.c,
8506 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
8507 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
8508 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
8509 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
8510 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
8511 tui/tui-interp.c, valops.c: Update all users.
8512 * tui/tui-hooks.c (tui_bp_created_observer)
8513 (tui_bp_deleted_observer, tui_bp_modified_observer)
8514 (tui_inferior_exit_observer, tui_before_prompt_observer)
8515 (tui_normal_stop_observer, tui_register_changed_observer):
8516 Remove.
8517 (tui_observers_token): New global.
8518 (attach_or_detach, tui_attach_detach_observers): New functions.
8519 (tui_install_hooks, tui_remove_hooks): Use
8520 tui_attach_detach_observers.
8521 * record-btrace.c (record_btrace_thread_observer): Remove.
8522 (record_btrace_thread_observer_token): New global.
8523 * observer.sh: Remove.
8524 * observer.c: Rename to observable.c.
8525 * observable.c (namespace gdb_observers): Define new objects.
8526 (observer_debug): Move into gdb_observers namespace.
8527 (struct observer, struct observer_list, xalloc_observer_list_node)
8528 (xfree_observer_list_node, generic_observer_attach)
8529 (generic_observer_detach, generic_observer_notify): Remove.
8530 (_initialize_observer): Update.
8531 Don't include observer.inc.
8532 * Makefile.in (generated_files): Remove observer.h, observer.inc.
8533 (clean mostlyclean): Likewise.
8534 (observer.h, observer.inc): Remove targets.
8535 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
8536 (COMMON_SFILES): Use observable.c, not observer.c.
8537 * .gitignore: Remove observer.h.
8538
1cb1f3da
TT
85392018-03-18 Tom Tromey <tom@tromey.com>
8540
8541 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
8542 gdb::def_vector.
8543 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
8544
a06ab151
TT
85452018-03-17 Tom Tromey <tom@tromey.com>
8546
8547 * auto-load.c (auto_load_objfile_script_1): Use std::string.
8548
770623f7
TT
85492018-03-17 Tom Tromey <tom@tromey.com>
8550
8551 * target.c (class scoped_target_fd): New.
8552 (target_fileio_close_cleanup): Remove.
8553 (target_fileio_read_alloc_1): Use scoped_target_fd.
8554
39be3c7e
SM
85552018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
8556
8557 * silent-rules.mk: New.
8558 * Makefile.in: Include silent-rules.mk
8559 (srcdir, VPATH, top_srcdir): Move up.
8560 (COMPILE): Add ECHO_CXX.
8561 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
8562 (init.c): Add ECHO_INIT_C.
8563 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
8564 (version.c): Add ECHO_GEN.
8565 (printcmd.o): Add ECHO_CXX.
8566 (target-float.o): Add ECHO_CXX.
8567 (ada-exp.o): Add ECHO_CXX.
8568 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
8569 (insight$(EXEEXT)): Add ECHO_CXXLD.
8570 * gnulib/configure.ac: Add AM_SILENT_RULES.
8571 * gnulib/aclocal.m4: Re-generate.
8572 * gnulib/configure: Re-generate.
8573 * gnulib/import/Makefile.in: Re-generate.
8574
37e136b1
TT
85752018-03-16 Tom Tromey <tom@tromey.com>
8576
8577 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
8578 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
8579 * utils.c (do_free_section_addr_info)
8580 (make_cleanup_free_section_addr_info): Remove.
8581 * symfile.h (struct other_sections): Add constructor.
8582 (struct section_addr_info): Remove.
8583 (section_addr_info): New typedef.
8584 (struct sym_fns) <sym_offsets>: Change type of parameter.
8585 (build_section_addr_info_from_objfile)
8586 (relative_addr_info_to_section_offsets, addr_info_make_relative)
8587 (default_symfile_offsets, symbol_file_add)
8588 (symbol_file_add_from_bfd)
8589 (build_section_addr_info_from_section_table): Update.
8590 (alloc_section_addr_info, free_section_addr_info): Don't declare.
8591 * symfile.c (alloc_section_addr_info): Remove.
8592 (build_section_addr_info_from_section_table): Change return type.
8593 Update.
8594 (build_section_addr_info_from_bfd)
8595 (build_section_addr_info_from_objfile): Likewise.
8596 (free_section_addr_info): Remove.
8597 (relative_addr_info_to_section_offsets): Change type of "addrs".
8598 (addrs_section_compar): Now a std::sort comparator.
8599 (addrs_section_sort): Change return type.
8600 (addr_info_make_relative): Change type of "addrs". Update.
8601 (default_symfile_offsets, syms_from_objfile_1)
8602 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
8603 (symbol_file_add_separate): Update.
8604 (symbol_file_add): Change type of "addrs". Update.
8605 (add_symbol_file_command): Update. Remove cleanups.
8606 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
8607 cleanups.
8608 * symfile-debug.c (debug_sym_offsets): Change type of "info".
8609 * solib.c (solib_read_symbols): Update.
8610 * objfiles.c (objfile_relocate): Update. Remove cleanups.
8611 * machoread.c (macho_symfile_offsets): Update.
8612 * jit.c (jit_bfd_try_read_symtab): Update.
8613
03afa6ef
SM
86142018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
8615
8616 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8617 unittests/utils-selftests.c.
8618 * unittests/utils-selftests.c: New file.
8619
3ae9ce5d
TT
86202018-03-14 Tom Tromey <tom@tromey.com>
8621
8622 PR cli/14977:
8623 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
8624 for NULL.
8625
b8c2339b
TT
86262018-03-14 Tom Tromey <tom@tromey.com>
8627
8628 PR cli/19918:
8629 * printcmd.c (printf_pointer): Allow "-" in format.
8630
80ae639d
TT
86312018-03-14 Tom Tromey <tom@tromey.com>
8632
8633 * printcmd.c (_initialize_printcmd): Add usage to printf.
8634
0d671d99
YQ
86352018-03-14 Yao Qi <qiyao@sourceware.org>
8636
8637 * MAINTAINERS: Update my email address.
8638
b577b6af
TT
86392018-03-13 Tom Tromey <tom@tromey.com>
8640
8641 * machoread.c (macho_check_dsym): Change filenamep to a
8642 std::string*.
8643 (macho_symfile_read): Update.
8644 * symfile.c (load_command): Use std::string.
8645
89a3b63e
AB
86462018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
8647
8648 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
8649 to error message string.
8650 (riscv_register_name): Use xsnprintf instead of sprintf.
8651 (riscv_insn::fetch_instruction): Use gdb_assert instead of
8652 internal_error.
8653 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
8654 error.
8655 (riscv_push_dummy_call): Likewise.
8656
984c7238
TT
86572018-03-12 Tom Tromey <tom@tromey.com>
8658
8659 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
8660 Use gdb::byte_vector.
8661 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
8662
933522d1
YQ
86632018-03-12 Yao Qi <yao.qi@linaro.org>
8664
8665 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
8666 parameter type to readable_regcache.
8667 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
8668 the declaration.
8669
be2daae6
TT
86702018-03-11 Tom Tromey <tom@tromey.com>
8671
8672 * dwarf2read.c (struct nextfield): Add initializers.
8673 (struct nextfnfield): Remove.
8674 (struct fnfieldlist): Add initializers. Remove "length" and
8675 "head", use std::vector.
8676 (struct decl_field_list): Remove.
8677 (struct field_info): Add initializers.
8678 <fields, baseclasses>: Now std::vector.
8679 <nbaseclasses, nfnfields, typedef_field_list_count,
8680 nested_types_list_count>: Remove.
8681 (dwarf2_add_field, dwarf2_add_type_defn)
8682 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
8683 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
8684 (process_structure_scope): Update.
8685
484cf504
TT
86862018-03-11 Tom Tromey <tom@tromey.com>
8687
8688 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
8689 for use by std::sort.
8690 (build_type_psymtabs_1): Use std::vector.
8691
9bd8e0b0
EZ
86922018-03-09 Eli Zaretskii <eliz@gnu.org>
8693
8694 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
8695 and LIBMPFR in the printed configuration.
8696
5dc1a704
TT
86972018-03-08 Tom Tromey <tom@tromey.com>
8698
8699 * source.c (get_filename_and_charpos): Use scoped_fd.
8700 * nto-procfs.c (procfs_open_1): Use scoped_fd.
8701 (procfs_pidlist): Likewise.
8702 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
8703 (iterate_over_mappings): Likewise.
8704
fdf07f3a
TT
87052018-03-08 Tom Tromey <tom@tromey.com>
8706
8707 * infcall.c (struct call_return_meta_info)
8708 <stack_temporaries_enabled>: Remove.
8709 (get_call_return_value, call_function_by_hand_dummy): Update.
8710 * thread.c (disable_thread_stack_temporaries): Remove.
8711 (enable_thread_stack_temporaries): Remove.
8712 (thread_stack_temporaries_enabled_p): Return bool.
8713 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
8714 (get_last_thread_stack_temporary): Update.
8715 * eval.c (evaluate_subexp): Update.
8716 * gdbthread.h (class enable_thread_stack_temporaries): Now a
8717 class, not a function.
8718 (value_ptr, value_vec): Remove typedefs.
8719 (class thread_info) <stack_temporaries_enabled>: Now bool.
8720 <stack_temporaries>: Now a std::vector.
8721 (thread_stack_temporaries_enabled_p)
8722 (value_in_thread_stack_temporaries): Return bool.
8723
567a3e54
SM
87242018-03-08 Simon Marchi <simon.marchi@ericsson.com>
8725
8726 * remote.c (putpkt_binary): Fix omitted bytes reporting.
8727 (getpkt_or_notif_sane_1): Likewise.
8728
00b40057
SM
87292018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8730
8731 * build-id.c (build_id_to_debug_bfd): Use std::string.
8732
a8dbfd58
SM
87332018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8734
8735 * build-id.c (find_separate_debug_file_by_buildid): Return
8736 std::string.
8737 * build-id.h (find_separate_debug_file_by_buildid): Return
8738 std::string.
8739 * coffread.c (coff_symfile_read): Adjust to std::string.
8740 * elfread.c (elf_symfile_read): Adjust to std::string.
8741 * symfile.c (separate_debug_file_exists): Change parameter to
8742 std::string.
8743 (find_separate_debug_file): Return std::string.
8744 (find_separate_debug_file_by_debuglink): Return std::string.
8745 * symfile.h (find_separate_debug_file_by_debuglink): Return
8746 std::string.
8747
e6a58aa8
SM
87482018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8749
8750 * common/xml-utils.c (xml_escape_text): Move code to...
8751 (xml_escape_text_append): ... this new function.
8752 * common/xml-utils.h (xml_escape_text_append): New declaration.
8753 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
8754 New function.
8755 (_initialize_xml_utils): register test_xml_escape_text_append as
8756 a selftest.
8757
4ef0bef6
AH
87582018-03-07 Alan Hayward <alan.hayward@arm.com>
8759
8760 * defs.h: Remove MAX_REGISTER_SIZE.
8761 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
8762 asserts.
8763 * python/py-unwind.c (pyuw_sniffer): Likewise.
8764
e0d3522b
TT
87652018-03-07 Tom Tromey <tom@tromey.com>
8766
8767 * linux-tdep.c (linux_info_proc): Update.
8768 * target.h (struct target_ops) <to_fileio_readlink>: Return
8769 optional<string>.
8770 (target_fileio_readlink): Return optional<string>.
8771 * remote.c (remote_hostio_readlink): Return optional<string>.
8772 * inf-child.c (inf_child_fileio_readlink): Return
8773 optional<string>.
8774 * target.c (target_fileio_readlink): Return optional<string>.
8775
ea005f31
AB
87762018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * regcache.c (cooked_read_test): Add riscv to the list of
8779 architectures that have a save_reggroup.
8780
e95a97d4
AA
87812018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
8782
8783 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
8784 value is not a dynamic class object.
8785
d8344f3d
TT
87862018-03-06 Tom Tromey <tom@tromey.com>
8787
8788 * rust-exp.y: Formatting fixes.
8789
9add17f2
AB
87902018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * riscv-tdep.c (riscv_register_name): Remove target description
8793 support.
8794 (riscv_gdbarch_init): Remove target description check.
8795
c9486dfe
AB
87962018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8797
8798 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
8799 comment.
8800 * riscv-tdep.h: Likewise.
8801
d74aff3d
AB
88022018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8803
8804 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
8805 (riscv_pseudo_register_write): Delete.
8806 (riscv_gdbarch_init): Remove all use of pseudo registers.
8807
7ea78b59
SM
88082018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8809
8810 * record-btrace.c (btrace_print_lines): Replace cleanup
8811 parameter with RAII equivalents.
8812 (btrace_insn_history): Replace cleanup with RAII equivalents.
8813 * ui-out.h (make_cleanup_ui_out_list_begin_end,
8814 make_cleanup_ui_out_tuple_begin_end): Remove.
8815 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
8816 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
8817 make_cleanup_ui_out_list_begin_end): Remove.
8818
53127008
SM
88192018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8820
8821 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
8822 parameter types to std::vector. Use bool.
8823 (record_btrace_wait): Replace VEC(tp_t) with
8824 std::vector<thread_info *>.
8825 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
8826
228f1508
SM
88272018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8828
8829 * record-btrace.c (record_btrace_disable_callback): Remove.
8830 (struct scoped_btrace_disable): New.
8831 (record_btrace_open): Use scoped_btrace_disable.
8832
b2970c23
AB
88332018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8834
8835 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
8836 reading values from registers.
8837
fb294655
AB
88382018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8839
8840 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
8841 where appropriate.
8842
cab5bb9d
AB
88432018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8844
8845 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
8846 change parameter type. Use GDB's print functions, and use
8847 core_addr_to_string where appropriate.
8848 (riscv_push_dummy_call): Use core_addr_to_string where
8849 appropriate, update call to riscv_print_arg_location, and reindent
8850 a few lines.
8851 (riscv_return_value): Update call to riscv_print_arg_location.
8852
dbbb1059
AB
88532018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8854 Tim Newsome <tim@sifive.com>
8855 Albert Ou <a0u@eecs.berkeley.edu>
8856 Darius Rad <darius@bluespec.com>
8857
8858 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
8859 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
8860 (ALLDEPFILES): Add riscv-tdep.c
8861 * configure.tgt: Add riscv support.
8862 * riscv-tdep.c: New file.
8863 * riscv-tdep.h: New file.
8864 * NEWS: Mention new target.
8865 * MAINTAINERS: Add entry for riscv.
8866
5dc43913
AB
88672018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8868
8869 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
8870 fields within aggregates.
8871
3dea1ef7
SM
88722018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
8873
8874 * record-btrace.c (btrace_print_lines): Change type of flags to
8875 gdb_disassembly_flags.
8876
7efba073
JB
88772018-03-04 John Baldwin <jhb@FreeBSD.org>
8878
8879 * fbsd-nat.c: Include "inf-ptrace.h".
8880 (USE_SIGTRAP_SIGINFO): Conditionally define.
8881 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
8882 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
8883 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
8884 function.
8885 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
8886 Likewise.
8887 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
8888 Likewise.
8889 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
8890 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
8891 "supports_stopped_by_hw_breakpoint" target methods.
8892
386a8676
JB
88932018-03-04 John Baldwin <jhb@FreeBSD.org>
8894
8895 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
8896 * fbsd-nat.c (debug_fbsd_nat): New variable.
8897 (show_fbsd_nat_debug): New function.
8898 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
8899 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
8900
12279366
JB
89012018-03-04 John Baldwin <jhb@FreeBSD.org>
8902
8903 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
8904 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
8905 prototype.
8906 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
8907 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
8908 method.
8909
54693cf5
SM
89102018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8911
8912 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
8913 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
8914
ccb2231c
SM
89152018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8916
8917 * charset.c (struct charset_vector): New.
8918 (charsets): Change type to charset_vector.
8919 (find_charset_names): Adjust.
8920 (add_one): Adjust.
8921 (_initialize_charset): Adjust.
8922
6fb16ce6
SM
89232018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8924
8925 * progspace.h (struct program_space) <deleted_solibs>: Change
8926 type to std::vector<std::string>.
8927 * progspace.c (clear_program_space_solib_cache): Adjust.
8928 * breakpoint.c (print_solib_event): Adjust.
8929 (check_status_catch_solib): Adjust.
8930 * solib.c (update_solib_list): Adjust.
8931 * ui-out.h (class ui_out) <field_string>: New overload.
8932 * ui-out.c (ui_out::field_string): New overload.
8933
564b1e3f
SM
89342018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8935
8936 * progspace.h (struct program_space): Add constructor and
8937 destructor, initialize fields.
8938 (add_program_space): Remove.
8939 * progspace.c (add_program_space): Rename to...
8940 (program_space::program_space): ... this.
8941 (release_program_space): Rename to...
8942 (program_space::~program_space): ... this.
8943 (delete_program_space): Use delete to delete program_space.
8944 (initialize_progspace): Use new to allocate program_space.
8945 * inferior.c (add_inferior_with_spaces): Likewise.
8946 (clone_inferior_command): Likewise.
8947 * infrun.c (follow_fork_inferior): Likewise.
8948 (handle_vfork_child_exec_or_exit): Likewise.
8949
e80aaf61
SM
89502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8951
8952 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
8953 (delim_string_to_char_ptr_vec): Return std::vector of
8954 gdb::unique_xmalloc_ptr.
8955 (dirnames_to_char_ptr_vec_append): Take std::vector of
8956 gdb::unique_xmalloc_ptr.
8957 (dirnames_to_char_ptr_vec): Return std::vector of
8958 gdb::unique_xmalloc_ptr.
8959 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
8960 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
8961 (delim_string_to_char_ptr_vec): Return an std::vector of
8962 gdb::unique_xmalloc_ptr, adjust the code.
8963 (dirnames_to_char_ptr_vec_append): Take an std::vector of
8964 gdb::unique_xmalloc_ptr, adjust the code.
8965 (dirnames_to_char_ptr_vec): Return an std::vector of
8966 gdb::unique_xmalloc_ptr, adjust the code.
8967 * auto-load.c (auto_load_safe_path_vec): Change type to
8968 std::vector of gdb::unique_xmalloc_ptr.
8969 (auto_load_expand_dir_vars): Return an std::vector of
8970 gdb::unique_xmalloc_ptr, adjust the code.
8971 (auto_load_safe_path_vec_update): Adjust.
8972 (filename_is_in_auto_load_safe_path_vec): Adjust.
8973 (auto_load_objfile_script_1): Adjust.
8974 * build-id.c (build_id_to_debug_bfd): Adjust.
8975 * linux-thread-db.c (thread_db_load_search): Adjust.
8976 * source.c (add_path): Adjust.
8977 (openp): Adjust.
8978 * symfile.c (find_separate_debug_file): Adjust.
8979 * utils.c (do_free_char_ptr_vec): Remove.
8980 (make_cleanup_free_char_ptr_vec): Remove.
8981
ab818ade
SDJ
89822018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
8983
8984 PR gdb/22907
8985 * common/pathstuff.c: Conditionally include "<windows.h>".
8986
e1e6f073
GS
89872018-03-01 Georg Sauthoff <mail@georg.so>
8988
8989 PR gdb/22888
8990 * gcore.in: Quote variables and switch interpreter to bash.
8991
c7b15a66
TT
89922018-03-01 Tom Tromey <tom@tromey.com>
8993
8994 * dwarf2read.c (alloc_discriminant_info): Fix default_index
8995 assertion. Add assertion for discriminant_index.
8996 (quirk_rust_enum): Use correct base type name in univariant case.
8997
0cb7c7b0
SM
89982018-03-01 Simon Marchi <simon.marchi@ericsson.com>
8999
9000 * record.c (get_call_history_modifiers): Return a
9001 record_print_flags.
9002 (cmd_record_call_history): Adjust.
9003 * record-btrace.c (record_btrace_call_history): Adjust.
9004 (record_btrace_call_history_range): Adjust.
9005 (record_btrace_call_history_from): Adjust.
9006 * target-debug.h (target_debug_print_record_print_flags): New.
9007 * target-delegates.c: Re-generate.
9008 * target.c (target_call_history): Change flags type.
9009 (target_call_history_from): Likewise.
9010 (target_call_history_range): Likewise.
9011 * target.h (struct target_ops) <target_call_history>: Likewise.
9012 (target_call_history_from): Likewise.
9013 (target_call_history_range): Likewise.
9014
25e3c82c
SDJ
90152018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9016 Simon Marchi <simon.marchi@polymtl.ca>
9017
9018 * common/common-utils.c: Include "sys/stat.h".
9019 (is_regular_file): Move here from "source.c"; change return
9020 type to "bool".
9021 * common/common-utils.h (is_regular_file): New prototype.
9022 * common/pathstuff.c (contains_dir_separator): New function.
9023 * common/pathstuff.h (contains_dir_separator): New prototype.
9024 * source.c: Don't include "sys/stat.h".
9025 (is_regular_file): Move to "common/common-utils.c".
9026
b4987c95
SDJ
90272018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9028
9029 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9030 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9031 * auto-load.c: Include "common/pathstuff.h".
9032 * common/common-def.h (current_directory): Move here.
9033 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9034 function.
9035 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9036 prototype.
9037 * common/pathstuff.c: New file.
9038 * common/pathstuff.h: New file.
9039 * compile/compile.c: Include "common/pathstuff.h".
9040 * defs.h (current_directory): Move to "common/common-defs.h".
9041 * dwarf2read.c: Include "common/pathstuff.h".
9042 * exec.c: Likewise.
9043 * guile/scm-safe-call.c: Likewise.
9044 * linux-thread-db.c: Likewise.
9045 * main.c: Likewise.
9046 * nto-tdep.c: Likewise.
9047 * objfiles.c: Likewise.
9048 * source.c: Likewise.
9049 * symtab.c: Likewise.
9050 * utils.c: Include "common/pathstuff.h".
9051 (gdb_realpath): Move to "common/pathstuff.c".
9052 (gdb_realpath_keepfile): Likewise.
9053 (gdb_abspath): Likewise.
9054 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9055 (gdb_realpath_keepfile): Likewise.
9056 (gdb_abspath): Likewise.
9057
f169cfdc
JB
90582018-02-28 John Baldwin <jhb@FreeBSD.org>
9059
9060 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9061 wildcard process pid for super_resume for kernels with a
9062 specific bug.
9063
e05cac70
PM
90642018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9065
9066 * compile/compile.c (get_args): Add additional comments
9067 explaining function.
9068
55089490
TT
90692018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9070 Tom Tromey <tom@tromey.com>
9071
9072 * target.h (memory_write_request_s): Remove typedef. Don't define
9073 VEC.
9074 (target_write_memory_blocks): Change argument to std::vector.
9075 (struct memory_write_request): Add constructor.
9076 * target-memory.c (compare_block_starting_address): Return bool.
9077 Change argument types.
9078 (claim_memory): Change arguments to use std::vector.
9079 (split_regular_and_flash_blocks, blocks_to_erase)
9080 (compute_garbled_blocks): Likewise.
9081 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9082 (target_write_memory_blocks): Change argument to std::vector.
9083 * symfile.c (struct load_section_data): Add constructor and
9084 destructor. Use std::vector for "requests".
9085 (struct load_progress_data): Add initializers.
9086 (load_section_callback): Update. Use "new".
9087 (clear_memory_write_data): Remove.
9088 (generic_load): Update.
9089
0c305b61
AH
90902018-02-27 Alan Hayward <alan.hayward@arm.com>
9091
9092 * arch/aarch64.h: Use common/tdesc.h.
9093
c5196c92
MR
90942018-02-26 Maciej W. Rozycki <macro@mips.com>
9095
9096 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9097 architecture with a 64-bit ABI.
9098
37c33887
MR
90992018-02-26 Maciej W. Rozycki <macro@mips.com>
9100
9101 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9102 ahead of target description loading.
9103
d4dd3282
TT
91042018-02-26 Tom Tromey <tom@tromey.com>
9105
9106 * stack.c (backtrace_command_1): Update.
9107 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9108 of "flags".
9109 * python/py-framefilter.c (py_print_frame)
9110 (gdbpy_apply_frame_filter): Change type of "flags".
9111 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9112 of "flags".
9113 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9114 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9115 * extension.h (enum frame_filter_flag): Rename from
9116 frame_filter_flags.
9117 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9118 (apply_ext_lang_frame_filter): Change type of "flags".
9119 * extension.c (apply_ext_lang_frame_filter): Change type of
9120 "flags".
9121 * extension-priv.h (struct extension_language_ops)
9122 <apply_frame_filter>: Change type of "flags".
9123
6893c19a
TT
91242018-02-26 Tom Tromey <tom@tromey.com>
9125
9126 PR python/16497:
9127 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9128 off-by-one in py_end computation.
9129 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9130 PRINT_MORE_FRAMES.
9131 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9132 constant.
9133
2ddeaf8a
TT
91342018-02-26 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2read.c (struct variant_field): New.
9137 (struct nextfield) <variant>: New field.
9138 (dwarf2_add_field): Handle DW_TAG_variant_part.
9139 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9140 discriminated union.
9141 (read_structure_type): Handle DW_TAG_variant_part.
9142 (handle_struct_member_die): New function, extracted from
9143 process_structure_scope. Handle DW_TAG_variant.
9144 (process_structure_scope): Handle discriminated unions. Call
9145 handle_struct_member_die.
9146
c9317f21
TT
91472018-02-26 Tom Tromey <tom@tromey.com>
9148
9149 * rust-lang.h (rust_last_path_segment): Declare.
9150 * rust-lang.c (rust_last_path_segment): Now public. Change
9151 contract.
9152 (struct disr_info): Remove.
9153 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9154 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9155 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9156 (rust_enum_p, rust_enum_variant): New function.
9157 (rust_underscore_fields): Remove "offset" parameter.
9158 (rust_print_enum): New function.
9159 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9160 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9161 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9162 enums.
9163 (rust_internal_print_type): New function, from rust_print_type.
9164 Remove enum code.
9165 (rust_print_type): Call rust_internal_print_type.
9166 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9167 Update enum handling.
9168 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9169 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9170 (rust_union_quirks): New functions.
9171 (process_full_comp_unit, process_full_type_unit): Call
9172 rust_union_quirks.
9173 (process_structure_scope): Update rust_unions if necessary.
9174
7c22600a
TT
91752018-02-26 Tom Tromey <tom@tromey.com>
9176
9177 * value.h (value_union_variant): Declare.
9178 * valops.c (value_union_variant): New function.
9179 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9180 (struct discriminant_info): New.
9181 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9182 enumerator.
9183 (struct main_type) <flag_discriminated_union>: New field.
9184
15ce8941
TT
91852018-02-26 Tom Tromey <tom@tromey.com>
9186
9187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9188 unittests/unpack-selftests.c.
9189 * unittests/unpack-selftests.c: New file.
9190 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9191
48fbe735
YQ
91922018-02-26 Yao Qi <yao.qi@linaro.org>
9193
9194 * dwarf2read.c (struct partial_die_info) <read>: New method.
9195 (read_partial_die): Remove the declaration.
9196 (load_partial_dies): Update.
9197 (partial_die_info::partial_die_info):
9198 (read_partial_die): Change it to partial_die_info::read.
9199
52356b79
YQ
92002018-02-26 Yao Qi <yao.qi@linaro.org>
9201
9202 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9203 (fixup_partial_die): Remove declaration.
9204 (scan_partial_symbols): Update.
9205 (partial_die_parent_scope): Likewise.
9206 (partial_die_full_name): Likewise.
9207 (fixup_partial_die): Change it to partial_die_info::fixup.
9208
35cc7ed7
YQ
92092018-02-26 Yao Qi <yao.qi@linaro.org>
9210
9211 * dwarf2read.c (read_partial_die): Update the declaration.
9212 (load_partial_dies): Caller update.
9213 (read_partial_die): Remove one argument abbrev_len.
9214
6f06d47b
YQ
92152018-02-26 Yao Qi <yao.qi@linaro.org>
9216
9217 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9218 assignment operator.
9219 (load_partial_dies): Use ctor and copy ctor.
9220 (read_partial_die): Update.
9221 (dwarf2_cu::find_partial_die): Use ctor.
9222
d590ff25
YQ
92232018-02-26 Yao Qi <yao.qi@linaro.org>
9224
9225 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9226 (find_partial_die_in_comp_unit): Change it to
9227 dwarf2_cu::find_partial_die.
9228 (find_partial_die): Update.
9229
fd0a254f
YQ
92302018-02-26 Yao Qi <yao.qi@linaro.org>
9231
9232 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9233 is NULL.
9234
cd9983dd
YQ
92352018-02-26 Yao Qi <yao.qi@linaro.org>
9236
9237 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9238
f46cd62a
AH
92392018-02-26 Alan Hayward <alan.hayward@arm.com>
9240
9241 * arch/amd64.h: Use common/tdesc.h.
9242 * arch/i386.c: Likewise.
9243 * arch/i386.h: Likewise.
9244 * arch/tic6x.c: Likewise.
9245 * arch/tdesc.h: Move file from here...
9246 * common/tdesc.h: ...to here.
9247 * features/aarch64-core.c: Regenerate.
9248 * features/aarch64-fpu.c: Regenerate.
9249 * features/i386/32bit-avx.c: Regenerate.
9250 * features/i386/32bit-avx512.c: Regenerate.
9251 * features/i386/32bit-core.c: Regenerate.
9252 * features/i386/32bit-linux.c: Regenerate.
9253 * features/i386/32bit-mpx.c: Regenerate.
9254 * features/i386/32bit-pkeys.c: Regenerate.
9255 * features/i386/32bit-sse.c: Regenerate.
9256 * features/i386/64bit-avx.c: Regenerate.
9257 * features/i386/64bit-avx512.c: Regenerate.
9258 * features/i386/64bit-core.c: Regenerate.
9259 * features/i386/64bit-linux.c: Regenerate.
9260 * features/i386/64bit-mpx.c: Regenerate.
9261 * features/i386/64bit-pkeys.c: Regenerate.
9262 * features/i386/64bit-segments.c: Regenerate.
9263 * features/i386/64bit-sse.c: Regenerate.
9264 * features/i386/x32-core.c: Regenerate.
9265 * features/tic6x-c6xp.c: Regenerate.
9266 * features/tic6x-core.c: Regenerate.
9267 * features/tic6x-gp.c: Regenerate.
9268 * target-descriptions.c: Use common/tdesc.h.
9269 * target-descriptions.h: Likewise.
9270
9b292f68
TT
92712018-02-24 Tom Tromey <tom@tromey.com>
9272
9273 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9274 (try_thread_db_load_from_dir, thread_db_load_search): Use
9275 std::string.
9276 (info_auto_load_libthread_db_compare): Return bool. Change
9277 argument types.
9278 (info_auto_load_libthread_db): Use std::vector, std::string.
9279 Remove cleanups.
9280
281d762b
TT
92812018-02-24 Tom Tromey <tom@tromey.com>
9282
9283 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9284 std::string.
9285 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9286 std::string*.
9287 * gdbarch.c: Rebuild.
9288 * gdbarch.h: Rebuild.
9289 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9290 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9291 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9292 std::string*.
9293
9d8780f0
SM
92942018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9295
9296 * gdbtypes.h (sect_offset): Change type to uint64_t.
9297 (sect_offset_str): New function.
9298 * dwarf2read.c (create_addrmap_from_aranges): Use
9299 sect_offset_str.
9300 (error_check_comp_unit_head): Likewise.
9301 (create_debug_type_hash_table): Likewise.
9302 (read_cutu_die_from_dwo): Likewise.
9303 (init_cutu_and_read_dies): Likewise.
9304 (init_cutu_and_read_dies_no_follow): Likewise.
9305 (process_psymtab_comp_unit_reader): Likewise.
9306 (partial_die_parent_scope): Likewise.
9307 (peek_die_abbrev): Likewise.
9308 (process_queue): Likewise.
9309 (dwarf2_physname): Likewise.
9310 (read_namespace_alias): Likewise.
9311 (read_import_statement): Likewise.
9312 (create_dwo_cu_reader): Likewise.
9313 (create_cus_hash_table): Likewise.
9314 (lookup_dwo_cutu): Likewise.
9315 (inherit_abstract_dies): Likewise.
9316 (read_func_scope): Likewise.
9317 (read_call_site_scope): Likewise.
9318 (dwarf2_add_member_fn): Likewise.
9319 (read_common_block): Likewise.
9320 (read_module_type): Likewise.
9321 (read_typedef): Likewise.
9322 (read_subrange_type): Likewise.
9323 (load_partial_dies): Likewise.
9324 (read_partial_die): Likewise.
9325 (find_partial_die): Likewise.
9326 (read_str_index): Likewise.
9327 (dwarf2_string_attr): Likewise.
9328 (build_error_marker_type): Likewise.
9329 (lookup_die_type): Likewise.
9330 (dump_die_shallow): Likewise.
9331 (follow_die_ref): Likewise.
9332 (dwarf2_fetch_die_loc_sect_off): Likewise.
9333 (dwarf2_fetch_constant_bytes): Likewise.
9334 (follow_die_sig): Likewise.
9335 (get_signatured_type): Likewise.
9336 (get_DW_AT_signature_type): Likewise.
9337 (dwarf2_find_containing_comp_unit): Likewise.
9338 (set_die_type): Likewise.
9339
8ec57239
JB
93402018-02-21 John Baldwin <jhb@FreeBSD.org>
9341
9342 * arch/aarch64.c: Include "common-defs.h".
9343 * arch/amd64.c: Likewise.
9344 * arch/i386.c: Likewise.
9345
3eac2b65
TT
93462018-02-21 Tom Tromey <tom@tromey.com>
9347
9348 * value.h: (extract_field_op): Update.
9349 * eval.c (extract_field_op): Return a const char *.
9350 * expression.h (parse_expression_for_completion): Update.
9351 * completer.c (complete_expression): Update.
9352 (add_struct_fields): Make fieldname const.
9353 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9354 (mark_completion_tag, parse_exp_in_context_1): Update.
9355 (parse_expression_for_completion): Change "name" to
9356 unique_xmalloc_ptr*.
9357
6ccb583f
TT
93582018-02-21 Tom Tromey <tom@tromey.com>
9359
9360 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9361
c113ed0c
YQ
93622018-02-21 Yao Qi <yao.qi@linaro.org>
9363
9364 * avr-tdep.c (avr_read_pc): Change parameter type to
9365 readable_regcache.
9366 * gdbarch.sh (read_pc): Likewise.
9367 * gdbarch.c: Re-generated.
9368 * gdbarch.h: Re-generated.
9369 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9370 readable_regcache.
9371 * ia64-tdep.c (ia64_read_pc): Likewise.
9372 * mips-tdep.c (mips_read_pc): Likewise.
9373 * spu-tdep.c (spu_read_pc): Likewise.
9374
4c74fe6b
YQ
93752018-02-21 Yao Qi <yao.qi@linaro.org>
9376
9377 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9378 * regcache-dump.c: New file.
9379 * regcache.c: Move register_dump to regcache-dump.c.
9380 (maintenance_print_registers): Likewise.
9381 (maintenance_print_raw_registers): Likewise.
9382 (maintenance_print_cooked_registers): Likewise.
9383 (maintenance_print_register_groups): Likewise.
9384 (maintenance_print_remote_registers): Likewise.
9385 (_initialize_regcache): Likewise.
9386 * regcache.h (register_dump): Moved from regcache.c.
9387
796bb026
YQ
93882018-02-21 Yao Qi <yao.qi@linaro.org>
9389
9390 * regcache.c (regcache::regcache): Update.
9391 (regcache::invalidate): Move it to detached_regcache::invalidate.
9392 (get_thread_arch_aspace_regcache): Update.
9393 (regcache::raw_update): Update.
9394 (regcache::cooked_read): Remove some code.
9395 (regcache::cooked_read_value): Likewise.
9396 (regcache::raw_write): Remove assert on m_readonly_p.
9397 (regcache::raw_supply_integer): Move it to
9398 detached_regcache::raw_supply_integer.
9399 (regcache::raw_supply_zeroed): Likewise.
9400 * regcache.h (detached_regcache) <raw_supply_integer>: New
9401 declaration.
9402 <raw_supply_zeroed, invalidate>: Likewise.
9403 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9404 <invalidate>: Likewise.
9405 <m_readonly_p>: Removed.
9406
215c69dc
YQ
94072018-02-21 Yao Qi <yao.qi@linaro.org>
9408
9409 * infcmd.c (get_return_value): Let stop_regs point to
9410 get_current_regcache.
9411 * regcache.c (regcache::regcache): Remove.
9412 (register_dump_reg_buffer): New class.
9413 (regcache_print): Adjust.
9414 * regcache.h (regcache): Remove constructors.
9415
f3384e66
YQ
94162018-02-21 Yao Qi <yao.qi@linaro.org>
9417
9418 * regcache.c (class register_dump): New class.
9419 (register_dump_regcache, register_dump_none): New class.
9420 (register_dump_remote, register_dump_groups): New class.
9421 (regcache_print): Update.
9422 * regcache.h (regcache_dump_what): Move it to regcache.c.
9423 (regcache) <dump>: Remove.
9424
c8ec2f33
YQ
94252018-02-21 Yao Qi <yao.qi@linaro.org>
9426
9427 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9428 reg_buffer_rw *.
9429 (jit_unwind_reg_set_impl): Call raw_supply.
9430 (jit_frame_sniffer): Use reg_buffer_rw.
9431 * record-full.c (record_full_core_regbuf): Change its type.
9432 (record_full_core_open_1): Use reg_buffer_rw.
9433 (record_full_close): Likewise.
9434 (record_full_core_fetch_registers): Use regcache->raw_supply.
9435 (record_full_core_store_registers): Likewise.
9436 * regcache.c (regcache::get_register_status): Move it to
9437 reg_buffer.
9438 (regcache_raw_set_cached_value): Remove.
9439 (regcache::raw_set_cached_value): Remove.
9440 (regcache::raw_write): Call raw_supply.
9441 (regcache::raw_supply): Move it to reg_buffer_rw.
9442 * regcache.h (regcache_raw_set_cached_value): Remove.
9443 (reg_buffer_rw): New class.
9444
daf6667d
YQ
94452018-02-21 Yao Qi <yao.qi@linaro.org>
9446
9447 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9448 readonly_detached_regcache.
9449 (dummy_frame_prev_register): Use regcache->cooked_read.
9450 * frame.c (frame_save_as_regcache): Change return type.
9451 (frame_pop): Update.
9452 * frame.h (frame_save_as_regcache): Update declaration.
9453 * inferior.h (get_infcall_suspend_state_regcache): Update
9454 declaration.
9455 * infrun.c (infcall_suspend_state) <registers>: use
9456 readonly_detached_regcache.
9457 (save_infcall_suspend_state): Don't use regcache_dup.
9458 (get_infcall_suspend_state_regcache): Change return type.
9459 * linux-fork.c (struct fork_info) <savedregs>: Change to
9460 readonly_detached_regcache.
9461 <pc>: New field.
9462 (fork_save_infrun_state): Don't use regcache_dup.
9463 (info_checkpoints_command): Adjust.
9464 * mi/mi-main.c (register_changed_p): Update declaration.
9465 (mi_cmd_data_list_changed_registers): Use
9466 readonly_detached_regcache.
9467 (register_changed_p): Change parameter type to
9468 readonly_detached_regcache.
9469 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
9470 readonly_detached_regcache.
9471 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
9472 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
9473 New.
9474 (regcache::save): Move it to reg_buffer.
9475 (regcache::restore): Change parameter type.
9476 (regcache_dup): Remove.
9477 * regcache.h (reg_buffer) <save>: New method.
9478 (readonly_detached_regcache): New class.
9479 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
9480 readonly_detached_regcache.
9481 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
9482
fc5b8736
YQ
94832018-02-21 Yao Qi <yao.qi@linaro.org>
9484
9485 * frame.c (frame_save_as_regcache): Use regcache method save.
9486 (frame_pop): Use regcache method restore.
9487 * infrun.c (restore_infcall_suspend_state): Likewise.
9488 * linux-fork.c (fork_load_infrun_state): Likewise.
9489 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
9490 save.
9491 * regcache.c (regcache_save): Remove.
9492 (regcache::restore): More asserts.
9493 (regcache_cpy): Remove.
9494 * regcache.h (regcache_save): Remove the declaration.
9495 (regcache::restore): Move from private to public.
9496 Remove the friend declaration of regcache_cpy.
9497 (regcache_cpy): Remove declaration.
9498
849d0ba8
YQ
94992018-02-21 Yao Qi <yao.qi@linaro.org>
9500
9501 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
9502 parameter type to 'readable_regcache *'.
9503 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9504 * arm-tdep.c (arm_neon_quad_read): Likewise.
9505 (arm_pseudo_read): Likewise.
9506 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9507 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9508 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9509 * gdbarch.c: Re-generated.
9510 * gdbarch.h: Re-generated.
9511 * gdbarch.sh (pseudo_register_read): Change parameter type to
9512 'readable_regcache *'.
9513 (pseudo_register_read_value): Likewise.
9514 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
9515 (h8300_pseudo_register_read): Likewise.
9516 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
9517 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9518 (i386_pseudo_register_read_into_value): Likewise.
9519 (i386_pseudo_register_read_value): Likewise.
9520 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
9521 declaration.
9522 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
9523 * m32c-tdep.c (m32c_raw_read): Likewise.
9524 (m32c_read_flg): Likewise.
9525 (m32c_banked_register): Likewise.
9526 (m32c_banked_read): Likewise.
9527 (m32c_sb_read): Likewise.
9528 (m32c_part_read): Likewise.
9529 (m32c_cat_read): Likewise.
9530 (m32c_r3r2r1r0_read): Likewise.
9531 (m32c_pseudo_register_read): Likewise.
9532 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9533 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9534 (mep_pseudo_cr64_read): Likewise.
9535 (mep_pseudo_register_read): Likewise.
9536 * mips-tdep.c (mips_pseudo_register_read): Likewise.
9537 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9538 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9539 * regcache.c (regcache::raw_read): Move it to readable_regcache.
9540 (regcache::cooked_read): Likewise.
9541 (regcache::cooked_read_value): Likewise.
9542 (regcache_cooked_read_signed):
9543 (regcache::cooked_read): Likewise.
9544 * regcache.h (readable_regcache): New class.
9545 (regcache): Inherit readable_regcache. Move some methods to
9546 readable_regcache.
9547 * rl78-tdep.c (rl78_pseudo_register_read): Change
9548 parameter type to 'readable_regcache *'.
9549 * rs6000-tdep.c (do_regcache_raw_read): Remove.
9550 (e500_pseudo_register_read): Change parameter type to
9551 'readable_regcache *'.
9552 (dfp_pseudo_register_read): Likewise.
9553 (vsx_pseudo_register_read): Likewise.
9554 (efpr_pseudo_register_read): Likewise.
9555 * s390-tdep.c (s390_pseudo_register_read): Likewise.
9556 * sh-tdep.c (sh_pseudo_register_read): Likewise.
9557 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
9558 (sh64_pseudo_register_read): Likewise.
9559 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9560 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9561 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9562 (spu_pseudo_register_read): Likewise.
9563 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9564 (xtensa_pseudo_register_read): Likewise.
9565
31716595
YQ
95662018-02-21 Yao Qi <yao.qi@linaro.org>
9567
9568 * regcache.c (regcache::regcache): Call reg_buffer ctor.
9569 (regcache::arch): Move it to reg_buffer::arch.
9570 (regcache::register_buffer): Likewise.
9571 (regcache::assert_regnum): Likewise.
9572 (regcache::num_raw_registers): Likewise.
9573 * regcache.h (reg_buffer): New class.
9574 (regcache): Inherit reg_buffer.
9575
7104e59b
SM
95762018-02-20 Simon Marchi <simon.marchi@ericsson.com>
9577
9578 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
9579 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
9580
2d8adcbd
MM
95812018-02-20 Markus Metzger <markus.t.metzger@intel.com>
9582
9583 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
9584
b5884fa7
AH
95852018-02-19 Alan Hayward <alan.hayward@arm.com>
9586
9587 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
9588 (SFILES): Remove common/*.c files.
9589 (COMMON_OBS): Remove some *.o files built from common/*.c files.
9590 * common/common.host: Add common reference.
9591 * configure.ac: Likewise.
9592 * configure: Regenerate.
9593
fd90ace4
YQ
95942018-02-16 Yao Qi <yao.qi@linaro.org>
9595
9596 * block.c (block_namespace_info): Inherit allocate_on_obstack.
9597 (block_initialize_namespace): Use new.
9598 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
9599 (dwarf2_free_objfile): Use delete.
9600 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
9601 (copy_type_recursive): Use new.
9602 * gdb_obstack.h (allocate_on_obstack): New.
9603
85046ae2
YQ
96042018-02-15 Yao Qi <yao.qi@linaro.org>
9605
9606 PR gdb/22849
9607 * inferior.c (exit_inferior_1): Reset inf->control.
9608
355c559b
JB
96092018-02-15 Joel Brobecker <brobecker@adacore.com>
9610
9611 * ada-lang.c (ada_to_fixed_value_create): Delete advance
9612 declaration.
9613
980548fd
PA
96142018-02-14 Pedro Alves <palves@redhat.com>
9615
9616 * frame-unwind.c (frame_unwind_try_unwinder): Always call
9617 frame_cleanup_after_sniffer on exception.
9618
692d6f97
TT
96192018-02-14 Tom Tromey <tom@tromey.com>
9620
9621 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
9622 const.
9623 (solib_bfd_open): Make pathname const.
9624 * solib.c (solib_bfd_open): Make pathname const.
9625 * solib-spu.c (spu_bfd_fopen): Make name const.
9626 (spu_bfd_open): Make pathname const.
9627 * solib-darwin.c (darwin_bfd_open): Make pathname const.
9628 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
9629
e0cc99a6
TT
96302018-02-14 Tom Tromey <tom@tromey.com>
9631
9632 * symfile.c (symfile_bfd_open): Update.
9633 * source.h (openp, source_full_path_of, find_and_open_source):
9634 Change argument type to unique_xmalloc_ptr.
9635 * source.c (openp): Take a unique_xmalloc_ptr.
9636 (source_full_path_of, find_and_open_source): Likewise.
9637 (open_source_file, symtab_to_fullname): Update.
9638 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
9639 unique_xmalloc_ptr.
9640 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
9641 (exec_file_find): Update.
9642 * psymtab.c (psymtab_to_fullname): Update.
9643 * nto-tdep.h (nto_find_and_open_solib): Update.
9644 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
9645 unique_xmalloc_ptr.
9646 * exec.c (exec_file_attach): Update.
9647 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
9648 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
9649
b46a8d7c
TT
96502018-02-14 Tom Tromey <tom@tromey.com>
9651
9652 * solib.c: Include source.h.
9653 * nto-tdep.c: Include source.h.
9654 * mi/mi-cmd-env.c: Include source.h.
9655 * infcmd.c: Include source.h.
9656 * exec.c: Include source.h.
9657 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
9658 (add_path, directory_switch, source_path, init_source_path): Move
9659 declarations...
9660 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
9661 (add_path, directory_switch, source_path, init_source_path):
9662 ...here.
9663
797bc1cb
TT
96642018-02-14 Tom Tromey <tom@tromey.com>
9665
9666 * solist.h (exec_file_find, solib_find): Return
9667 unique_xmalloc_ptr.
9668 (solib_bfd_fopen): Take a const char *.
9669 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
9670 (exec_file_find, solib_find): Likewise.
9671 (solib_bfd_fopen): Do not take ownership of "pathname".
9672 (solib_bfd_open): Use unique_xmalloc_ptr.
9673 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
9674 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
9675 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
9676 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
9677
f98b2e33
JB
96782018-02-14 Joel Brobecker <brobecker@adacore.com>
9679
9680 * ada-lang.c (name_match_type_from_name): Remove reference to
9681 ada_name_for_lookup in function's documentation.
9682 * ada-lang.h (ada_name_for_lookup): Delete declaration.
9683
24b9144d
SM
96842018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9685
9686 * defs.h (enum openp_flags): New enum.
9687 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
9688 Move to enum openp_flags.
9689 (openp_flags): New enum flags.
9690 (openp): Change parameter type to openp_flags.
9691 * source.c (openp): Change parameter type to openp_flags.
9692 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
9693 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
9694
387cd15b
SM
96952018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9696
9697 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
9698 per-command.
9699
b303c6f6
AB
97002018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
9701
9702 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
9703 into...
9704 (class dwarf2_queue_guard): ...the destructor of this new class.
9705 (dw2_do_instantiate_symtab): Create instance of the new class
9706 dwarf2_queue_guard, remove cleanup.
9707
9c3630e9
TT
97082018-02-09 Tom Tromey <tom@tromey.com>
9709
9710 * source.c (find_source_lines): Don't reference past the end of
9711 the vector.
9712
c4e12631
MM
97132018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9714
9715 * remote.c (remote_btrace_maybe_reopen): Change error message.
9716 * btrace.c (btrace_enable): Likewise.
9717 (parse_xml_btrace): Likewise.
9718 (parse_xml_btrace_conf): Likewise.
9719
88711fbf
MM
97202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9721
9722 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
9723 (linux_enable_pt, linux_enable_bts): Call
9724 diagnose_perf_event_open_fail.
9725
17ad2a4f
MM
97262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9727
9728 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
9729 Remove parameter and change return type. Update callers. Move it.
9730 (linux_enable_bts, linux_enable_pt): Improve error message.
9731 (linux_enable_pt): Remove zero buffer size check.
9732 (linux_enable_btrace): Improve error messages. Remove NULL return
9733 check.
9734
de6242d3
MM
97352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9736
9737 * btrace.c (btrace_enable): Remove target_supports_btrace call.
9738 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
9739 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
9740 (linux_supports_pt, linux_supports_btrace): Remove.
9741 (linux_enable_bts): Call cpu_supports_bts.
9742 * nat/linux-btrace.h (linux_supports_btrace): Remove.
9743 * remote.c (remote_supports_btrace): Remove.
9744 (init_remote_ops): Remove remote_supports_btrace.
9745 * target-delegates.c: Regenerated.
9746 * target.c (target_supports_btrace): Remove.
9747 * target.h (target_ops) <to_supports_btrace>: Remove
9748 (target_supports_btrace): Remove.
9749 * x86-linux-nat.c (x86_linux_create_target): Remove
9750 linux_supports_btrace.
9751
9ee23a85
MM
97522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9753
9754 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
9755 btrace failed.
9756 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
9757 exception and use message in own exception.
9758
5c3284c1
MM
97592018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9760
9761 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
9762 (perf_event_pt_event_type): Use gdb_file_up.
9763 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
9764 scoped_fd, and scoped_mmap.
9765
84696f37
MM
97662018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9767
9768 * common/scoped_mmap.h: New.
9769 * unittests/scoped_mmap-selftest.c: New.
9770 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9771 unittests/scoped_mmap-selftest.c.
9772
ea4a0888
MM
97732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9774
9775 * common/scoped_fd.h: New.
9776 * unittests/scoped_fd-selftest.c: New.
9777 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9778 unittests/scoped_fd-selftest.c.
9779
869e8290
TT
97802018-02-09 Tom Tromey <tom@tromey.com>
9781
9782 * auto-load.c (auto_load_section_scripts): Use
9783 gdb::unique_xmalloc_ptr.
9784
a37a2ae7
TT
97852018-02-09 Tom Tromey <tom@tromey.com>
9786
9787 * auto-load.c (execute_script_contents): Use std::string.
9788
4e725347
JB
97892018-02-09 Joel Brobecker <brobecker@adacore.com>
9790
9791 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
9792 Python function, rather than a new command.
9793
9a897d43
TT
97942018-02-08 Tom Tromey <tom@tromey.com>
9795
9796 * solib.c (solib_find_1): Use std::string.
9797 (solib_bfd_fopen): Use unique_xmalloc_ptr.
9798
58ef3771
TT
97992018-02-08 Tom Tromey <tom@tromey.com>
9800
9801 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
9802
a9abc434
TT
98032018-02-08 Tom Tromey <tom@tromey.com>
9804
9805 * source.c (find_source_lines): Use gdb::def_vector.
9806
84f27c6f
TT
98072018-02-08 Tom Tromey <tom@tromey.com>
9808
9809 * macrocmd.c (struct temporary_macro_definition): New.
9810 (macro_define_command): Use temporary_macro_definition. Remove
9811 cleanups.
9812 (free_macro_definition_ptr): Remove.
9813
0354904b
TT
98142018-02-08 Tom Tromey <tom@tromey.com>
9815
9816 * macroexp.c (maybe_expand): Use std::string.
9817
1739cf24
TT
98182018-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * macroexp.c (struct macro_buffer): Add initializers for some
9821 members.
9822 (init_buffer, init_shared_buffer, free_buffer)
9823 (free_buffer_return_text): Remove.
9824 (macro_buffer): New constructors.
9825 (~macro_buffer): New destructor.
9826 (macro_buffer::set_shared): New method.
9827 (macro_buffer::resize_buffer, macro_buffer::appendc)
9828 (macro_buffer::appendmem): Now methods, not free functions.
9829 (set_token, append_tokens_without_splicing, stringify)
9830 (macro_stringify): Update.
9831 (gather_arguments): Change return type. Remove argc_p argument,
9832 add args_ptr argument. Use std::vector.
9833 (substitute_args): Remove argc argument. Accept std::vector.
9834 (expand): Update. Use std::vector.
9835 (scan, macro_expand, macro_expand_next): Update.
9836
f6c2623e
TT
98372018-02-08 Tom Tromey <tom@tromey.com>
9838
9839 * symtab.c (default_collect_symbol_completion_matches_break_on):
9840 Use unique_xmalloc_ptr.
9841 * macroscope.h: (sal_macro_scope, user_macro_scope)
9842 (default_macro_scope): Return unique_xmalloc_ptr.
9843 * macroscope.c (sal_macro_scope, user_macro_scope)
9844 (default_macro_scope): Return unique_xmalloc_ptr.
9845 * macroexp.h (macro_expand, macro_expand_once): Return
9846 unique_xmalloc_ptr.
9847 * macroexp.c (macro_expand, macro_expand_once): Return
9848 unique_xmalloc_ptr.
9849 * macrocmd.c (macro_expand_command, macro_expand_once_command)
9850 (info_macro_command, info_macros_command): Use
9851 unique_xmalloc_ptr.
9852 * compile/compile-c-support.c (write_macro_definitions): Use
9853 unique_xmalloc_ptr.
9854 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
9855
c2e0e465
SM
98562018-02-07 Simon Marchi <simon.marchi@ericsson.com>
9857
9858 * value.c (value_static_field): Assign field type instead of
9859 containing type when returning an optimized out value.
9860
3f8c94b4
YQ
98612018-02-06 Yao Qi <yao.qi@linaro.org>
9862
9863 * ft32-tdep.c (ft32_read_pc): Remove.
9864 (ft32_write_pc): Remove.
9865 (ft32_gdbarch_init): Update.
9866 * m32r-tdep.c (m32r_read_pc): Remove.
9867 (m32r_gdbarch_init): Update.
9868 * mep-tdep.c (mep_read_pc): Remove.
9869 (mep_gdbarch_init): Update.
9870 * microblaze-tdep.c (microblaze_write_pc): Remove.
9871 (microblaze_gdbarch_init): Update.
9872 * mn10300-tdep.c (mn10300_read_pc): Remove.
9873 (mn10300_write_pc): Remove.
9874 (mn10300_gdbarch_init): Update.
9875 * moxie-tdep.c (moxie_read_pc): Remove.
9876 (moxie_write_pc): Remove.
9877 (moxie_gdbarch_init): Update.
9878
bca65a23
YQ
98792018-02-06 Yao Qi <yao.qi@linaro.org>
9880
9881 * expprint.c (print_subexp_standard): Handle
9882 OP_F77_UNDETERMINED_ARGLIST.
9883 (dump_subexp_body_standard): Likewise.
9884
583e3f90 98852018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 9886
583e3f90
YQ
9887 * target-descriptions.c (tdesc_element_visitor) Add empty
9888 implementations.
b8df6ca7
AH
9889 (tdesc_type): Move make_gdb_type from here.
9890 (tdesc_type_builtin): Likewise.
9891 (tdesc_type_vector): Likewise.
9892 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
9893 (make_gdb_type_struct): Move from tdesc_type_with_fields.
9894 (make_gdb_type_union): Likewise.
9895 (make_gdb_type_flags): Likewise.
9896 (make_gdb_type_enum): Likewise.
9897 (make_gdb_type): New function.
9898 (tdesc_register_type): Use static make_gdb_type.
9899
e813d34a
RK
99002018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
9901
9902 * infcmd.c (default_print_one_register_info): Align natural-format
9903 column values consistently one under another.
9904 (pad_to_column): New function.
9905
0eb876f5
JB
99062018-02-05 Joel Brobecker <brobecker@adacore.com>
9907
9908 * dwarf2read.c (dwarf2_physname): Move commment.
9909
0625771b
LS
99102018-02-01 Leszek Swirski <leszeks@google.com>
9911
9912 * varobj.c (varobj_formatted_print_options): Allow recursive
9913 pretty printing if pretty printing is enabled.
9914
59498c30
LS
99152018-02-01 Leszek Swirski <leszeks@google.com>
9916
9917 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
9918 names after a structop as a filename.
9919
2d9e6acb
YQ
99202018-02-01 Yao Qi <yao.qi@linaro.org>
9921
9922 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
9923 (arm_record_coproc_data_proc): Likewise.
9924
df95a9cf
YQ
99252018-02-01 Yao Qi <yao.qi@linaro.org>
9926
9927 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
9928
07e5f5cf
NP
99292018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
9930
9931 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
9932 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
9933
3045b475
PA
99342018-01-31 Pedro Alves <palves@redhat.com>
9935
9936 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
9937 * inflow.c (child_terminal_save_inferior): Wrap reference to
9938 tcgetpgrp in HAVE_TERMIOS_H.
9939 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
9940 _WIN32.
9941 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
9942 always iterate over all inferiors.
9943 (gdbsim_cntrl_c): Adjust.
9944 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
9945
929b5ad4
JB
99462018-01-31 Joel Brobecker <brobecker@adacore.com>
9947
9948 * gdbtypes.c (lookup_array_range_type): Make sure the array's
9949 index type is objfile-owned if the element type is as well.
9950
29236ca2
JB
99512018-01-31 Joel Brobecker <brobecker@adacore.com>
9952
9953 GDB 8.1 released.
9954
c81e8879
PR
99552018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
9956
9957 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
9958 "features/s390x-linux64.c".
9959 (_initialize_s390_linux_tdep): Remove initialization of tdescs
9960 s390_linux32 and s390x_linux64.
9961 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
9962 default tdesc.
9963 * s390-tdep.c: Include "features/s390-linux32.c" and
9964 "features/s390x-linux64.c".
9965 (s390_tdesc_valid): Add check for tdesc_has_registers.
9966 (s390_gdbarch_init): Make sure there is always a valid tdesc.
9967 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
9968 tdesc_s390x_linux64.
9969 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
9970 tdesc_s390x_linux64 to...
9971 * s390-tdep.h: ...here.
9972
e671cd59
PA
99732018-01-30 Pedro Alves <palves@redhat.com>
9974
9975 PR gdb/13211
9976 * config.in, configure: Regenerate.
9977 * configure.ac: Check for getpgid.
9978 * go32-nat.c (go32_pass_ctrlc): New.
9979 (go32_target): Install it.
9980 * inf-child.c (inf_child_target): Install
9981 child_terminal_save_inferior, child_pass_ctrlc and
9982 child_interrupt.
9983 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
9984 (inf_ptrace_target): No longer install it.
9985 * infcmd.c (interrupt_target_1): Adjust.
9986 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
9987 (child_interrupt): Declare.
9988 (inferior::terminal_state): New.
9989 * inflow.c (struct terminal_info): Update comments.
9990 (inferior_process_group): Delete.
9991 (terminal_is_ours): Delete.
9992 (gdb_tty_state): New.
9993 (child_terminal_init): Adjust.
9994 (is_gdb_terminal, sharing_input_terminal_1)
9995 (sharing_input_terminal): New functions.
9996 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
9997 Set the process's actual process group in the foreground if
9998 possible. Handle is_ours_for_output/is_ours distinction. Don't
9999 mark terminal as the inferior's if not sharing GDB's terminal.
10000 Don't check attach_flag.
10001 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10002 pass down a target_terminal_state.
10003 (child_terminal_save_inferior): New, factored out from ...
10004 (child_terminal_ours_1): ... this. Handle
10005 target_terminal_state::is_ours_for_output.
10006 (child_interrupt, child_pass_ctrlc): New.
10007 (inflow_inferior_exit): Clear the inferior's terminal_state.
10008 (copy_terminal_info): Copy the inferior's terminal state.
10009 (_initialize_inflow): Remove reference to terminal_is_ours.
10010 * inflow.h (inferior_process_group): Delete.
10011 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10012 * procfs.c (procfs_target): Don't install procfs_interrupt.
10013 (procfs_interrupt): Delete.
10014 * remote.c (remote_serial_quit_handler): Adjust.
10015 (remote_interrupt): Remove ptid parameter. Adjust.
10016 * target-delegates.c: Regenerate.
10017 * target.c: Include "terminal.h".
10018 (target_terminal::terminal_state): Rename to ...
10019 (target_terminal::m_terminal_state): ... this.
10020 (target_terminal::init): Adjust.
10021 (target_terminal::inferior): Adjust to per-inferior
10022 terminal_state.
10023 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10024 (target_terminal::ours, target_terminal::ours_for_output): Use
10025 target_terminal_is_ours_kind.
10026 (target_interrupt): Remove ptid parameter. Adjust.
10027 (default_target_pass_ctrlc): Adjust.
10028 * target.h (target_ops::to_terminal_save_inferior): New field.
10029 (target_ops::to_interrupt): Remove ptid_t parameter.
10030 (target_interrupt): Remove ptid_t parameter. Update comment.
10031 (target_pass_ctrlc): Update comment.
10032 * target/target.h (target_terminal_state): New scoped enum,
10033 factored out of ...
10034 (target_terminal::terminal_state): ... here.
10035 (target_terminal::inferior): Update comments.
10036 (target_terminal::restore_inferior): New.
10037 (target_terminal::is_inferior, target_terminal::is_ours)
10038 (target_terminal::is_ours_for_output): Adjust.
10039 (target_terminal::scoped_restore_terminal_state): Adjust to
10040 rename, and call restore_inferior() instead of inferior().
10041 (target_terminal::scoped_restore_terminal_state::m_state): Change
10042 type.
10043 (target_terminal::terminal_state): Rename to ...
10044 (target_terminal::m_terminal_state): ... this and change type.
10045
9c3a5d93
PA
100462018-01-30 Pedro Alves <palves@redhat.com>
10047
10048 * linux-nat.c (wait_for_signal): New function.
10049 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10050 directly.
10051 (async_terminal_is_ours)
10052 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10053 (linux_nat_add_target): Don't override
10054 to_terminal_inferior/to_terminal_ours.
10055
69ab5edb
SDJ
100562018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10057
10058 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10059
fc8e7e75
SM
100602018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10061
10062 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10063 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10064 dwarf2_per_objfile_free here.
10065 (dwarf2_per_objfile_free): Remove.
10066 (_initialize_dwarf2_read): Don't register
10067 dwarf2_per_objfile_free as a registry cleanup.
10068
b2a426e2
EZ
100692018-01-27 Eli Zaretskii <eliz@gnu.org>
10070
10071 Avoid compilation errors in MinGW native builds
10072
10073 The error is triggered by including python-internal.h, and the
10074 error message is:
10075
10076 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10077 from build-gnulib/import/math.h:27,
10078 from d:/usr/Python26/include/pyport.h:235,
10079 from d:/usr/Python26/include/Python.h:58,
10080 from python/python-internal.h:94,
10081 from python/py-arch.c:24:
10082 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10083 using ::hypot;
10084 ^~~~~
10085
10086 This happens because Python headers define 'hypot' to expand t
10087 '_hypot' in the Windows builds.
10088 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10089 'hypoth'. This avoids a compilation error.
10090
0bdd8eac
AH
100912018-01-26 Alan Hayward <alan.hayward@arm.com>
10092
10093 * MAINTAINERS (Write After Approval): Fix ordering.
10094
56ae9dc3
AH
100952018-01-26 Alan Hayward <alan.hayward@arm.com>
10096
10097 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10098
7433498b
AM
100992018-01-26 Alan Modra <amodra@gmail.com>
10100
10101 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10102 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10103 Remove nop. Make const. Comment.
10104 (powerpc32_plt_stub_so_2): New.
10105 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10106 Correct count. Update uses.
10107 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10108 Move common code reading PLT entry word. Correct
10109 powerpc32_plt_stub PLT address calculation.
10110 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10111 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10112 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10113 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10114 (ppc64_standard_linkage8): Likewise.
10115 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10116 Correct insns description.
10117 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10118
0f59d5fc
PA
101192018-01-24 Pedro Alves <palves@redhat.com>
10120
10121 GCC PR libstdc++/83906
10122 * gdbtypes.c (operator==(const dynamic_prop &,
10123 const dynamic_prop &)): New.
10124 (operator==(const range_bounds &, const range_bounds &)): New.
10125 (check_types_equal): Use them instead of memcmp.
10126 * gdbtypes.h (operator==(const dynamic_prop &,
10127 const dynamic_prop &)): Declare.
10128 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10129 (operator==(const range_bounds &, const range_bounds &)): Declare.
10130 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10131
ef8914a4
PR
101322018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10133
10134 * s390-linux-tdep.c (s390_record_address_mask)
10135 (s390_record_calc_disp_common, s390_record_calc_disp)
10136 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10137 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10138 (s390_process_record): Move to s390-tdep.c.
10139 (s390_linux_init_abi_any): Adjust.
10140 * s390-tdep.c (s390_record_address_mask)
10141 (s390_record_calc_disp_common, s390_record_calc_disp)
10142 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10143 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10144 (s390_process_record): Moved from s390-linux-tdep.c
10145 (s390_gdbarch_init): Adjust.
10146
d6e58945
PR
101472018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10148
10149 * s390-linux-nat.c (s390-tdep.h): New include.
10150 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10151 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10152 (ALLDEPFILES): Add s390-tdep.c.
10153 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10154 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10155 * s390-tdep.h: ...this. New file.
10156 * s390-linux-tdep.c (s390-tdep.h): New include.
10157 (_initialize_s390_tdep): Rename to...
10158 (_initialize_s390_linux_tdep): ...this and adjust.
10159 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10160 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10161 s390-tdep.h.
10162 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10163 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10164 (s390_is_partial_instruction, s390_software_single_step)
10165 (is_non_branch_ril, s390_displaced_step_copy_insn)
10166 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10167 (s390_prologue_data, s390_addr, s390_store, s390_load)
10168 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10169 (s390_register_call_saved, s390_guess_tracepoint_registers)
10170 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10171 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10172 (s390_pseudo_register_name, s390_pseudo_register_type)
10173 (s390_pseudo_register_read, s390_pseudo_register_write)
10174 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10175 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10176 (s390_addr_bits_remove, s390_address_class_type_flags)
10177 (s390_address_class_type_flags_to_name)
10178 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10179 (s390_function_arg_float, s390_function_arg_vector)
10180 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10181 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10182 (s390_frame_align, s390_register_return_value, s390_return_value)
10183 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10184 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10185 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10186 (s390_trad_frame_prev_register, s390_unwind_cache)
10187 (s390_prologue_frame_unwind_cache)
10188 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10189 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10190 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10191 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10192 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10193 (s390_frame_base_address, s390_local_base_address)
10194 (s390_frame_base, s390_gcc_target_options)
10195 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10196 (s390_validate_reg_range, s390_tdesc_valid)
10197 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10198 * s390-tdep.c: ...this. New file.
10199
9c0b896e
PR
102002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10201
10202 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10203 (s390_process_record, s390_gdbarch_tdep_alloc)
10204 (s390_linux_init_abi_any): Use/set new hook.
10205
7042632b
PR
102062018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10207
10208 * s390-linux-tdep.c (osabi.h): New include.
10209 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10210 (s390_linux_init_abi_any): New functions.
10211 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10212
650f5e13
PR
102132018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10214
10215 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10216 tdesc_has_registers check
10217
47c9317e
PR
102182018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10219
10220 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10221 (s390_validate_reg_range): New macro.
10222 (s390_gdbarch_init): Adjust.
10223
095085d8
PR
102242018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10225
10226 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10227 (s390_gdbarch_tdep_alloc): Adjust.
10228 (s390_gdbarch_init): Adjust.
10229
ab9bcc67
PR
102302018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10231
10232 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10233 <have_tdb>: Change type to bool.
10234 (s390_gdbarch_tdep_alloc): Adjust.
10235 (s390_gdbarch_init): Adjust.
10236
21f6f5ff
PR
102372018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10238
10239 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10240 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10241 (s390_gdbarch_tdep_alloc): New function.
10242 (s390_gdbarch_init): Allocate tdep at start and use its fields
10243 instead of separate variables.
10244
0eb97953
PR
102452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10246
10247 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10248 when looking for cached gdbarch and add comment for remaining.
10249
5c319bb2
PA
102502018-01-22 Pedro Alves <palves@redhat.com>
10251 Sergio Durigan Junior <sergiodj@redhat.com>
10252
10253 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10254 case.
10255
d65ce302
MR
102562018-01-22 Maciej W. Rozycki <macro@mips.com>
10257
10258 * MAINTAINERS: Update my company e-mail address.
10259
ec7a5fcb
YQ
102602018-01-22 Yao Qi <yao.qi@linaro.org>
10261
10262 * regcache.c (cooked_write_test): New function.
10263 (_initialize_regcache): Register the test.
10264
11f57cb6
YQ
102652018-01-22 Yao Qi <yao.qi@linaro.org>
10266
10267 * ia64-tdep.c (ia64_pseudo_register_read): Call
10268 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10269 * m32c-tdep.c (m32c_cat_read): Likewise.
10270 (m32c_r3r2r1r0_read): Likewise.
10271 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10272 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10273
03f50fc8
YQ
102742018-01-22 Yao Qi <yao.qi@linaro.org>
10275
10276 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10277 method raw_read instead of regcache_raw_read.
10278 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10279 * arm-tdep.c (arm_neon_quad_read): Likewise.
10280 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10281 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10282 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10283 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10284 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10285 (i386_pseudo_register_read_into_value): Likewise.
10286 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10287 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10288 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10289 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10290 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10291 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10292 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10293 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10294 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10295
dc711524
YQ
102962018-01-22 Yao Qi <yao.qi@linaro.org>
10297
10298 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10299 * configure.tgt: Remove target mt.
10300 * mt-tdep.c: Remove.
10301 * regcache.c (cooked_read_test): Remove the check for mt.
10302
3f5a868b
YQ
103032018-01-22 Yao Qi <yao.qi@linaro.org>
10304
10305 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10306 instead of gdbarch_pseudo_register_read_value.
10307
de4cb04a
JB
103082018-01-22 Joel Brobecker <brobecker@adacore.com>
10309
10310 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10311 language is Ada.
10312
a9e40818
JB
103132018-01-22 Joel Brobecker <brobecker@adacore.com>
10314
10315 * linespec.c (create_sals_line_offset): Remove code that preserved
10316 the symtab_and_line's line number.
10317
e707fc44
AB
103182018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * varobj.c (varobj_create): Don't set valid_block when creating a
10321 floating varobj.
10322
03d0bf7b
AB
103232018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 * varobj.c (varobj_create): Remove out of date comment.
10326
ae451627
AB
103272018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10328
10329 PR mi/20395
10330 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10331 updating innermost block.
10332 * parse.c (innermost_block_tracker::update): Take extra type
10333 parameter, and check types match before updating innermost block.
10334 (write_dollar_variable): Update innermost block for registers.
10335 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10336 (innermost_block_tracker::innermost_block_tracker): Initialise
10337 m_types member.
10338 (innermost_block_tracker::reset): Take type parameter.
10339 (innermost_block_tracker::update): Take type parameter, and pass
10340 type through as needed.
10341 (innermost_block_tracker::m_types): New member.
10342 * varobj.c (varobj_create): Pass type when reseting innermost
10343 block.
10344
aee1fcdf
AB
103452018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10346
10347 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10348 * ada-lang.c (resolve_subexp): Likewise.
10349 * breakpoint.c (set_breakpoint_condition) Likewise.
10350 (watch_command_1) Likewise.
10351 * c-exp.y (variable): Likewise.
10352 * d-exp.y (PrimaryExpression): Likewise.
10353 * f-exp.y (variable): Likewise.
10354 * go-exp.y (variable): Likewise.
10355 * m2-exp.y (variable): Likewise.
10356 * objfiles.c (objfile::~objfile): Likewise.
10357 * p-exp.y (variable): Likewise.
10358 * parse.c (innermost_block): Change type.
10359 * parser-defs.h (class innermost_block_tracker): New.
10360 (innermost_block): Change to innermost_block_tracker.
10361 * printcmd.c (display_command): Switch to innermost_block API.
10362 (do_one_display): Likewise.
10363 * rust-exp.y (do_one_display): Likewise.
10364 * symfile.c (clear_symtab_users): Likewise.
10365 * varobj.c (varobj_create): Switch to innermost_block API, replace
10366 use of innermost_block with block stored on varobj object.
10367
396af9a1
AB
103682018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10369
10370 * expression.h (innermost_block): Remove declaration.
10371 * varobj.c: Add 'parser-defs.h' include.
10372
fcfcc376
TT
103732018-01-19 Tom Tromey <tom@tromey.com>
10374
10375 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10376 symbols in the static and global blocks.
10377
5a6c3296
JC
103782018-01-19 James Clarke <jrtc27@jrtc27.com>
10379
10380 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10381 gdb_ptrace.h, and move including gdb_wait.h ...
10382 * nat/linux-ptrace.h: ... to here.
10383
bc09b0c1
SM
103842018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10385
10386 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10387 inf_ptrace_detach_success.
10388 (inf_ptrace_detach_success): Add inferior parameter, use it
10389 instead of inferior_ptid, pass it to detach_inferior.
10390 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10391 parameter.
10392 * inferior.c (detach_inferior): Add overload that takes an
10393 inferior object.
10394 * inferior.h (detach_inferior): Likewise.
10395 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10396 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10397 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10398
6e1e1966
SM
103992018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10400
10401 * target.h (struct target_ops) <to_detach>: Add inferior
10402 parameter.
10403 (target_detach): Likewise.
10404 * target.c (dispose_inferior): Pass inferior down.
10405 (target_detach): Pass inferior down. Assert that it is equal to
10406 the current inferior.
10407 * aix-thread.c (aix_thread_detach): Pass inferior down.
10408 * corefile.c (core_file_command): Pass current_inferior() down.
10409 * corelow.c (core_detach): Add inferior parameter.
10410 * darwin-nat.c (darwin_detach): Likewise.
10411 * gnu-nat.c (gnu_detach): Likewise.
10412 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10413 * infcmd.c (detach_command): Pass current_inferior() down to
10414 target_detach.
10415 * infrun.c (follow_fork_inferior): Pass parent_inf to
10416 target_detach.
10417 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10418 target_detach.
10419 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10420 * linux-thread-db.c (thread_db_detach): Likewise.
10421 * nto-procfs.c (procfs_detach): Likewise.
10422 * procfs.c (procfs_detach): Likewise.
10423 * record.c (record_detach): Likewise.
10424 * record.h (struct inferior): Forward-declare.
10425 (record_detach): Add inferior parameter.
10426 * remote-sim.c (gdbsim_detach): Likewise.
10427 * remote.c (remote_detach_1): Likewise.
10428 (remote_detach): Likewise.
10429 (extended_remote_detach): Likewise.
10430 * sol-thread.c (sol_thread_detach): Likewise.
10431 * target-debug.h (target_debug_print_inferior_p): New macro.
10432 * target-delegates.c: Re-generate.
10433 * top.c (kill_or_detach): Pass inferior down to target_detach.
10434 * windows-nat.c (windows_detach): Add inferior parameter.
10435
6bd6f3b6
SM
104362018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10437
10438 * target.h (struct target_ops) <to_detach>: Remove args
10439 parameter.
10440 (target_detach): Likewise.
10441 * target.c (dispose_inferior): Adjust.
10442 (target_detach): Remove args parameter, adjust.
10443 * aix-thread.c (aix_thread_detach): Adjust.
10444 * corefile.c (core_file_command): Adjust.
10445 * corelow.c (core_detach): Adjust.
10446 * darwin-nat.c (darwin_detach): Adjust.
10447 * gnu-nat.c (gnu_detach): Adjust.
10448 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10449 * infcmd.c (detach_command): Adjust
10450 * infrun.c (follow_fork_inferior): Adjust.
10451 (handle_vfork_child_exec_or_exit): Adjust.
10452 * linux-fork.c (linux_fork_detach): Remove args parameter.
10453 * linux-fork.h (linux_fork_detach): Likewise.
10454 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10455 * linux-thread-db.c (thread_db_detach): Likewise.
10456 * nto-procfs.c (procfs_detach): Likewise.
10457 * procfs.c (procfs_detach): Likewise.
10458 (do_detach): Remove signo parameter.
10459 * record.c (record_detach): Remove args parameter.
10460 * record.h (record_detach): Likewise.
10461 * remote-sim.c (gdbsim_detach): Likewise.
10462 * remote.c (remote_detach_1): Likewise.
10463 (remote_detach): Likewise.
10464 (extended_remote_detach): Likewise.
10465 * sol-thread.c (sol_thread_detach): Likewise.
10466 * target-delegates.c: Re-generate.
10467 * top.c (struct qt_args) <args>: Remove field.
10468 (kill_or_detach): Don't pass args.
10469 (quit_force): Don't set args.
10470 * windows-nat.c (windows_detach): Remove args parameter.
10471
88af8ea8
YQ
104722018-01-19 Yao Qi <yao.qi@linaro.org>
10473
10474 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
10475 (arm_linux_init_abi): Install it.
10476
dea445b9
YQ
104772018-01-19 Yao Qi <yao.qi@linaro.org>
10478
10479 * osabi.c (gdb_osabi_names): Extend the regexp for
10480 arm-linux-gnueabihf.
10481
4a17f768
YQ
104822018-01-18 Yao Qi <yao.qi@linaro.org>
10483
10484 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
10485 m_abbrevs.
10486 (abbrev_table::add_abbrev): Update.
10487 (abbrev_table::lookup_abbrev): Update.
10488
d679c21a
YQ
104892018-01-18 Yao Qi <yao.qi@linaro.org>
10490
10491 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
10492
7d937cad
SDJ
104932018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10494
10495 * compile/compile.c (compile_to_object): Convert "triplet_rx"
10496 to "std::string".
10497
9e14690d
TT
104982018-01-17 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
10501
50a82047
TT
105022018-01-17 Tom Tromey <tom@tromey.com>
10503
10504 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
10505 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
10506 (create_array_type_with_stride): Update.
10507 * dwarf2read.c (set_die_type): Update.
10508
c89b44cd
TT
105092018-01-17 Tom Tromey <tom@tromey.com>
10510
10511 * dwarf2read.c (delayed_method_info): Remove typedef.
10512 (dwarf2_cu::method_info): Now a std::vector.
10513 (add_to_method_list): Update.
10514 (free_delayed_list): Remove.
10515 (compute_delayed_physnames): Update.
10516 (process_full_comp_unit, process_full_type_unit): Clear the method
10517 list. Remove cleanups.
10518 (psymtab_include_file_name): Add name_holder parameter. Use
10519 unique_xmalloc_ptr.
10520 (dwarf_decode_lines): Update.
10521
fcd3b13d
SM
105222018-01-17 Tom Tromey <tom@tromey.com>
10523 Simon Marchi <simon.marchi@ericsson.com>
10524
10525 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
10526 (dwarf2_per_objfile::free_cached_comp_units)
10527 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10528 (init_cutu_and_read_dies_no_follow): Update.
10529 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
10530 (dwarf2_cu::~dwarf2_cu): New.
10531 (free_heap_comp_unit, free_stack_comp_unit): Remove.
10532 (age_cached_comp_units, free_one_cached_comp_unit): Update.
10533
685af9cd
TT
105342018-01-17 Tom Tromey <tom@tromey.com>
10535 Simon Marchi <simon.marchi@ericsson.com>
10536
10537 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
10538 (struct die_reader_specs) <abbrev_table>: New member.
10539 (struct abbrev_table): Add constructor.
10540 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
10541 <abbrev_obstack>: Now an auto_obstack.
10542 (abbrev_table_up): New typedef.
10543 (init_cu_die_reader): Add abbrev_table parameter.
10544 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
10545 Add result_dwo_abbrev_table.
10546 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10547 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
10548 Update.
10549 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
10550 parameter.
10551 (skip_children): Update.
10552 (abbrev_table::alloc_abbrev): Rename from
10553 abbrev_table_alloc_abbrev.
10554 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
10555 (abbrev_table::lookup_abbrev): Rename from
10556 abbrev_table_lookup_abbrev.
10557 (abbrev_table_read_table): Return abbrev_table_up.
10558 (abbrev_table_free, abbrev_table_free_cleanup)
10559 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
10560 (load_partial_dies): Update.
10561
5e2db402
TT
105622018-01-17 Tom Tromey <tom@tromey.com>
10563
10564 * dwarf2read.c (dwarf2_compute_name): Update comment.
10565 (read_func_scope, read_variable): Update.
10566 (new_symbol): Remove.
10567 (new_symbol_full): Rename to new_symbol.
10568
ee7f689e 105692018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
10570
10571 PR gdb/16577
10572 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
10573 a warning instead of throwing an error, set section size to 0 and return
10574 NULL.
10575 * gdb_bfd.h (gdb_bfd_map_section): Update description.
10576
4d9b86e1
SM
105772018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10578
10579 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
10580 std::string.
10581 (linux_ptrace_attach_fail_reason_string): Likewise.
10582 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
10583 Likewise.
10584 (linux_ptrace_attach_fail_reason_string): Likewise.
10585 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
10586
a7b2d0fb
SM
105872018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10588
10589 * linux-nat.c (linux_nat_attach): Remove xstrdup.
10590
f517c180
EA
105912018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
10592
10593 PR gdb/21559
10594 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
10595 checking for fs_base/gs_base fields in struct user_regs_struct.
10596 * configure: Regenerate.
10597
7045b1ca
YQ
105982018-01-17 Yao Qi <yao.qi@linaro.org>
10599
10600 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
10601 function.
10602 (aarch64_linux_init_abi): Install it to gdbarch hook
10603 gcc_target_options.
10604
db422fb2
PA
106052018-01-15 Pedro Alves <palves@redhat.com>
10606
10607 * common/signals-state-save-restore.c
10608 (save_original_signals_state): Fix typos.
10609
ba643918
SDJ
106102017-01-12 Tom Tromey <tom@tromey.com>
10611 Sergio Durigan Junior <sergiodj@redhat.com>
10612
10613 * Makefile.in (install-only): Install gdb-add-index.
10614
906b4aac
JB
106152018-01-12 John Baldwin <jhb@FreeBSD.org>
10616
10617 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
10618
bdf2a94a
AA
106192018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10620
10621 * infrun.c (keep_going_pass_signal): Clear step-over info when
10622 insert_breakpoints fails.
10623
71d378ae
PA
106242018-01-11 Pedro Alves <palves@redhat.com>
10625
10626 PR gdb/22583
10627 * infrun.c (resume): Rename to ...
10628 (resume_1): ... this.
10629 (resume): Reimplement as wrapper around resume_1.
10630
3cada740
PA
106312018-01-11 Pedro Alves <palves@redhat.com>
10632
10633 PR remote/22597
10634 * remote.c (remote_parse_stop_reply): Default to the last-set
10635 general thread instead of to 'magic_null_ptid'.
10636
618daa93
PA
106372018-01-10 Pedro Alves <palves@redhat.com>
10638
10639 * language.h (language_get_symbol_name_matcher): Rename ...
10640 (get_symbol_name_matcher): ... this.
10641 * language.c (language_get_symbol_name_matcher): Ditto.
10642 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
10643 callers adjusted.
10644
c63d3e8d
PA
106452018-01-10 Pedro Alves <palves@redhat.com>
10646
10647 PR gdb/22670
10648 * dwarf2read.c
10649 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
10650 Adjust to use language_get_symbol_name_matcher instead of
10651 language_defn::la_get_symbol_name_matcher.
10652 * language.c (language_get_symbol_name_matcher): If in Ada mode
10653 and the lookup name is a verbatim match, return Ada's matcher.
10654 * language.h (language_get_symbol_name_matcher): Adjust comment.
10655 (ada_lookup_name_info::verbatim_p):: New method.
10656
d4c2a405
PA
106572018-01-10 Pedro Alves <palves@redhat.com>
10658
10659 PR gdb/22670
10660 * ada-lang.c (ada_collect_symbol_completion_matches): If the
10661 minsym's language is language_auto or language_cplus, pass down
10662 language_ada instead.
10663 * symtab.c (compare_symbol_name): Don't frob symbol language here.
10664
8825213e
PA
106652018-01-10 Pedro Alves <palves@redhat.com>
10666
10667 PR gdb/22670
10668 * minsyms.c (linkage_name_str): New function.
10669 (iterate_over_minimal_symbols): Use it.
10670
2d97a5d9
JB
106712018-01-09 John Baldwin <jhb@FreeBSD.org>
10672
10673 * NEWS: Document that 'info proc' now works on FreeBSD.
10674
92fce24d
JB
106752018-01-09 John Baldwin <jhb@FreeBSD.org>
10676
10677 * configure.ac: Check for kinfo_getfile in libutil.
10678 * configure: Regenerate.
10679 * config.in: Regenerate.
10680 * fbsd-nat.c: Include "fbsd-tdep.h".
10681 (fbsd_fetch_cmdline): New.
10682 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
10683 rather than calling error.
10684 (fbsd_info_proc): New.
10685 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
10686 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
10687 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
10688
262f62f5
JB
106892018-01-09 John Baldwin <jhb@FreeBSD.org>
10690
10691 * fbsd-nat.c (struct free_deleter): Remove.
10692 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
10693
b999e203
JB
106942018-01-09 John Baldwin <jhb@FreeBSD.org>
10695
10696 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
10697 NULL for an empty pathname.
10698
d2176225
JB
106992018-01-09 John Baldwin <jhb@FreeBSD.org>
10700
10701 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
10702 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
10703 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10704 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10705 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
10706 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
10707 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
10708 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
10709 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
10710 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
10711 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
10712 (fbsd_core_fetch_timeval, fbsd_print_sigset)
10713 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
10714 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
10715 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
10716
9c4ac400
ST
107172018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10718
10719 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
10720 (gnu_xfer_auxv): New function.
10721 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
10722 TARGET_OBJECT_AUXV.
10723
1e5ded6c
YQ
107242018-01-08 Yao Qi <yao.qi@linaro.org>
10725 Simon Marchi <simon.marchi@ericsson.com>
10726
10727 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
10728 common/selftest.c.
10729 (COMMON_OBS): Remove selftest.o.
10730 * configure.ac: Append selftest-arch.c and common/selftest.c to
10731 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
10732 * configure: Re-generated.
10733 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
10734 GDB_SELF_TEST.
10735 (maintenance_info_selftests): Likewise.
10736
04bafb1e
XR
107372018-01-08 Xavier Roirand <roirand@adacore.com>
10738
10739 * ada-valprint.c (val_print_packed_array_elements): Use
10740 proper number of elements when printing an array indexed
10741 by an enumeration type.
10742
518817b3
SM
107432018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10744
10745 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
10746 (dw2_get_file_names_reader): Adjust.
10747 (lookup_dwo_signatured_type): Adjust.
10748 (lookup_dwp_signatured_type): Adjust.
10749 (lookup_signatured_type): Adjust.
10750 (create_type_unit_group): Adjust.
10751 (get_type_unit_group): Adjust.
10752 (process_psymtab_comp_unit_reader): Adjust.
10753 (build_type_psymtabs_reader): Adjust.
10754 (scan_partial_symbols): Adjust.
10755 (add_partial_symbol): Adjust.
10756 (add_partial_subprogram): Adjust.
10757 (peek_die_abbrev): Adjust.
10758 (fixup_go_packaging): Adjust.
10759 (process_imported_unit_die): Adjust.
10760 (dwarf2_compute_name): Adjust.
10761 (dwarf2_physname): Adjust.
10762 (read_import_statement): Adjust.
10763 (handle_DW_AT_stmt_list): Adjust.
10764 (read_file_scope): Adjust.
10765 (read_func_scope): Adjust.
10766 (read_lexical_block_scope): Adjust.
10767 (read_call_site_scope): Adjust.
10768 (read_variable): Adjust.
10769 (dwarf2_rnglists_process): Adjust.
10770 (dwarf2_ranges_process): Adjust.
10771 (dwarf2_ranges_read): Adjust.
10772 (dwarf2_get_pc_bounds): Adjust.
10773 (dwarf2_record_block_ranges): Adjust.
10774 (dwarf2_add_field): Adjust.
10775 (dwarf2_add_member_fn): Adjust.
10776 (read_structure_type): Adjust.
10777 (process_structure_scope): Adjust.
10778 (read_enumeration_type): Adjust.
10779 (read_array_type): Adjust.
10780 (mark_common_block_symbol_computed): Adjust.
10781 (read_common_block): Adjust.
10782 (read_namespace_type): Adjust.
10783 (read_namespace): Adjust.
10784 (read_module_type): Adjust.
10785 (read_tag_pointer_type): Adjust.
10786 (read_tag_ptr_to_member_type): Adjust.
10787 (read_tag_string_type): Adjust.
10788 (read_subroutine_type): Adjust.
10789 (read_typedef): Adjust.
10790 (read_base_type): Adjust.
10791 (attr_to_dynamic_prop): Adjust.
10792 (read_subrange_type): Adjust.
10793 (read_unspecified_type): Adjust.
10794 (dwarf2_read_abbrevs): Adjust.
10795 (load_partial_dies): Adjust.
10796 (read_partial_die): Adjust.
10797 (find_partial_die): Adjust.
10798 (guess_partial_die_structure_name): Adjust.
10799 (fixup_partial_die): Adjust.
10800 (read_attribute_value): Adjust.
10801 (read_addr_index): Adjust.
10802 (read_addr_index_from_leb128): Adjust.
10803 (read_str_index): Adjust.
10804 (dwarf2_string_attr): Adjust.
10805 (get_debug_line_section): Adjust.
10806 (dwarf_decode_line_header): Adjust.
10807 (lnp_state_machine::check_line_address): Adjust.
10808 (dwarf_decode_lines_1): Adjust.
10809 (dwarf_decode_lines): Adjust.
10810 (dwarf2_start_symtab): Adjust.
10811 (var_decode_location): Adjust.
10812 (new_symbol_full): Adjust.
10813 (dwarf2_const_value_data): Adjust.
10814 (dwarf2_const_value_attr): Adjust.
10815 (dwarf2_const_value): Adjust.
10816 (die_type): Adjust.
10817 (die_containing_type): Adjust.
10818 (build_error_marker_type): Adjust.
10819 (lookup_die_type): Adjust.
10820 (guess_full_die_structure_name): Adjust.
10821 (anonymous_struct_prefix): Adjust.
10822 (determine_prefix): Adjust.
10823 (dwarf2_name): Adjust.
10824 (follow_die_ref_or_sig): Adjust.
10825 (follow_die_offset): Adjust.
10826 (follow_die_ref): Adjust.
10827 (follow_die_sig_1): Adjust.
10828 (follow_die_sig): Adjust.
10829 (get_signatured_type): Adjust.
10830 (get_DW_AT_signature_type): Adjust.
10831 (decode_locdesc): Adjust.
10832 (dwarf_decode_macros): Adjust.
10833 (cu_debug_loc_section): Adjust.
10834 (fill_in_loclist_baton): Adjust.
10835 (dwarf2_symbol_mark_computed): Adjust.
10836 (init_one_comp_unit): Don't assign
10837 dwarf2_cu::dwarf2_per_objfile.
10838 (set_die_type): Adjust.
10839
ed2dc618
SM
108402018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10841
10842 * dwarf2read.c (struct mapped_debug_names): Add constructor.
10843 <dwarf2_per_objfile>: New field.
10844 (dwarf2_per_objfile): Remove global.
10845 (get_dwarf2_per_objfile): New function.
10846 (set_dwarf2_per_objfile): New function.
10847 (dwarf2_build_psymtabs_hard): Change objfile parameter to
10848 dwarf2_per_objfile.
10849 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
10850 (read_abbrev_offset): Likewise.
10851 (read_indirect_string): Likewise.
10852 (read_indirect_line_string): Likewise.
10853 (read_indirect_string_at_offset): Likewise.
10854 (read_indirect_string_from_dwz): Likewise.
10855 (dwarf2_find_containing_comp_unit): Change objfile parameter to
10856 dwarf2_per_objfile.
10857 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
10858 (create_all_comp_units): Change objfile parameter to
10859 dwarf2_per_objfile.
10860 (create_all_type_units): Likewise.
10861 (process_queue): Add dwarf2_per_objfile parameter.
10862 (read_and_check_comp_unit_head): Likewise.
10863 (lookup_dwo_unit_in_dwp): Likewise.
10864 (get_dwp_file): Likewise.
10865 (process_cu_includes): Likewise.
10866 (struct free_dwo_file_cleanup_data): New struct.
10867 (dwarf2_has_info): Use get_dwarf2_per_objfile and
10868 set_dwarf2_per_objfile.
10869 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
10870 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
10871 context, adjust calls.
10872 (dw2_instantiate_symtab): Likewise.
10873 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
10874 (dw2_get_cu): Likewise.
10875 (create_cu_from_index_list): Change objfile parameter to
10876 dwarf2_per_objfile.
10877 (create_cus_from_index_list): Get dwarf2_per_objfile from
10878 context, adjust calls.
10879 (create_cus_from_index): Likewise.
10880 (create_signatured_type_table_from_index): Change objfile
10881 parameter to dwarf2_per_objfile.
10882 (create_signatured_type_table_from_debug_names): Change objfile
10883 parameter to dwarf2_per_objfile.
10884 (create_addrmap_from_index): Likewise.
10885 (create_addrmap_from_aranges): Likewise.
10886 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
10887 (dw2_setup): Remove.
10888 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
10889 context.
10890 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
10891 get_dwarf2_per_objfile.
10892 (dw2_forget_cached_source_info): Likewise.
10893 (dw2_map_symtabs_matching_filename): Likewise.
10894 (struct dw2_symtab_iterator) <index>: Remove.
10895 <dwarf2_per_objfile>: New field.
10896 (dw2_symtab_iter_init): Replace index parameter with
10897 dwarf2_per_objfile.
10898 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
10899 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
10900 (dw2_print_stats): Likewise.
10901 (dw2_dump): Likewise.
10902 (dw2_expand_symtabs_for_function): Likewise.
10903 (dw2_expand_all_symtabs): Likewise.
10904 (dw2_expand_symtabs_with_fullname): Likewise.
10905 (dw2_expand_marked_cus): Replace index and objfile parameters
10906 with dwarf2_per_objfile.
10907 (dw_expand_symtabs_matching_file_matcher): Add
10908 dwarf2_per_objfile parameter and adjust calls.
10909 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
10910 adjust calls.
10911 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
10912 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
10913 adjust calls.
10914 (create_cus_from_debug_names_list): Replace objfile parameter
10915 with dwarf2_per_objfile and adjust calls.
10916 (create_cus_from_debug_names): Likewise.
10917 (dwarf2_read_debug_names): Likewise.
10918 (mapped_debug_names::namei_to_name): Adjust call.
10919 (dw2_debug_names_iterator::next): Likewise.
10920 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10921 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
10922 (dw2_debug_names_dump): Likewise.
10923 (dw2_debug_names_expand_symtabs_for_function): Likewise.
10924 (dw2_debug_names_expand_symtabs_matching): Likewise.
10925 (dwarf2_initialize_objfile): Likewise.
10926 (dwarf2_build_psymtabs): Likewise.
10927 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
10928 this_cu.
10929 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
10930 (read_and_check_comp_unit_head): Likewise.
10931 (read_abbrev_offset): Likewise.
10932 (create_debug_type_hash_table): Likewise.
10933 (create_debug_types_hash_table): Likewise.
10934 (create_all_type_units): Replace objfile parameter with
10935 dwarf2_per_objfile.
10936 (add_type_unit): Add dwarf2_per_objfile parameter.
10937 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
10938 with dwarf2_per_objfile.
10939 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
10940 (lookup_dwp_signatured_type): Likewise.
10941 (lookup_signatured_type): Likewise.
10942 (read_cutu_die_from_dwo): Likewise.
10943 (init_tu_and_read_dwo_dies): Likewise.
10944 (init_cutu_and_read_dies): Likewise.
10945 (init_cutu_and_read_dies_no_follow): Likewise.
10946 (allocate_type_unit_groups_table): Add objfile parameter.
10947 (create_type_unit_group): Use dwarf2_per_objfile from cu.
10948 (get_type_unit_group): Likewise.
10949 (process_psymtab_comp_unit): Update call.
10950 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
10951 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
10952 (print_tu_stats): Likewise.
10953 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
10954 in void* parameter.
10955 (build_type_psymtabs): Change objfile parameter to
10956 dwarf2_per_objfile.
10957 (process_skeletonless_type_unit): Use dwarf2_per_objfile
10958 passed in void* parameter.
10959 (process_skeletonless_type_units): Change objfile parameter to
10960 dwarf2_per_objfile.
10961 (set_partial_user): Likewise.
10962 (dwarf2_build_psymtabs_hard): Likewise.
10963 (read_comp_units_from_section): Likewise.
10964 (create_all_comp_units): Likewise.
10965 (scan_partial_symbols): Update calls.
10966 (add_partial_symbol): Likewise.
10967 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
10968 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
10969 (process_queue): Add dwarf2_per_objfile parameter.
10970 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
10971 (compute_compunit_symtab_includes): Likewise.
10972 (process_cu_includes): Add dwarf2_per_objfile parameter.
10973 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
10974 (process_full_type_unit): Likewise.
10975 (process_imported_unit_die): Update call.
10976 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
10977 (read_file_scope): Likewise.
10978 (allocate_dwo_file_hash_table): Add objfile parameter.
10979 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
10980 (create_cus_hash_table): Likewise.
10981 (create_dwp_hash_table): Likewise.
10982 (create_dwo_unit_in_dwp_v1): Likewise.
10983 (create_dwp_v2_section): Likewise.
10984 (create_dwo_unit_in_dwp_v2): Likewise.
10985 (lookup_dwo_unit_in_dwp): Likewise.
10986 (try_open_dwop_file): Likewise.
10987 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
10988 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
10989 cleanup to include a reference to dwarf2_per_objfile.
10990 (open_dwp_file): Add dwarf2_per_objfile parameter.
10991 (open_and_init_dwp_file): Likewise.
10992 (get_dwp_file): Likewise.
10993 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
10994 (queue_and_load_all_dwo_tus): Update call.
10995 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
10996 data.
10997 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
10998 (dwarf2_ranges_process): Likewise.
10999 (dwarf2_get_pc_bounds): Likewise.
11000 (mark_common_block_symbol_computed): Likewise.
11001 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11002 (dwarf2_read_abbrevs): Update call.
11003 (read_partial_die): Use dwarf2_per_objfile from cu.
11004 (find_partial_die): Likewise.
11005 (fixup_partial_die): Likewise.
11006 (read_attribute_value): Likewise.
11007 (read_indirect_string_at_offset_from): Add objfile parameter.
11008 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11009 parameter.
11010 (read_indirect_string_from_dwz): Add objfile parameter.
11011 (read_indirect_string): Add objfile parameter.
11012 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11013 (read_addr_index): Use dwarf2_per_objfile from cu.
11014 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11015 call dw2_setup.
11016 (read_str_index): Use dwarf2_per_objfile from cu.
11017 (get_debug_line_section): Likewise.
11018 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11019 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11020 (new_symbol_full): Use dwarf2_per_objfile from cu.
11021 (build_error_marker_type): Likewise.
11022 (lookup_die_type): Likewise.
11023 (determine_prefix): Likewise.
11024 (follow_die_offset): Likewise.
11025 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11026 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11027 (dwarf2_fetch_die_type_sect_off): Likewise.
11028 (dwarf2_get_die_type): Likewise.
11029 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11030 (get_signatured_type): Likewise.
11031 (get_DW_AT_signature_type): Likewise.
11032 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11033 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11034 (cu_debug_loc_section): Likewise.
11035 (fill_in_loclist_baton): Likewise.
11036 (dwarf2_symbol_mark_computed): Likewise.
11037 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11038 dwarf2_per_objfile.
11039 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11040 parameter.
11041 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11042 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11043 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11044 (set_die_type): Use dwarf2_free_objfile from cu.
11045 (get_die_type_at_offset): Likewise.
11046 (dwarf2_per_objfile_free): Don't assign global variable.
11047 (debug_names) <constructor>: Add dwarf2_per_objfile
11048 parameter, update m_debugstrlookup construction.
11049 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11050 parameter.
11051 <m_dwarf2_per_objfile>: New field.
11052 <lookup>: Use m_dwarf2_per_objfile.
11053 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11054 (psyms_seen_size): Likewise.
11055 (write_gdbindex): Replace objfile parameter with
11056 dwarf2_per_objfile.
11057 (write_debug_names): Likewise.
11058 (write_psymtabs_to_index): Likewise.
11059 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11060 calls.
11061
e3b94546
SM
110622018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11063
11064 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11065 <dwarf2_per_objfile>: New field.
11066 (struct dwarf2_per_cu_data) <objfile>: Remove.
11067 <dwarf2_per_objfile>: New field.
11068 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11069 of objfile.
11070 (create_signatured_type_table_from_index): Likewise.
11071 (create_debug_type_hash_table): Likewise.
11072 (fill_in_sig_entry_from_dwo_entry): Likewise.
11073 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11074 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11075 objfile.
11076 (create_partial_symtab): Access objfile through
11077 dwarf2_per_objfile.
11078 (process_psymtab_comp_unit_reader): Likewise.
11079 (read_comp_units_from_section): Likewise.
11080 (scan_partial_symbols): Likewise.
11081 (add_partial_symbol): Likewise.
11082 (add_partial_subprogram): Likewise.
11083 (peek_die_abbrev): Likewise.
11084 (fixup_go_packaging): Likewise.
11085 (process_full_comp_unit): Likewise.
11086 (process_full_type_unit): Likewise.
11087 (process_imported_unit_die): Likewise.
11088 (dwarf2_compute_name): Likewise.
11089 (dwarf2_physname): Likewise.
11090 (read_import_statement): Likewise.
11091 (create_cus_hash_table): Assign dwarf2_physname instead of
11092 objfile.
11093 (read_func_scope): Access objfile through dwarf2_per_objfile.
11094 (read_lexical_block_scope): Likewise.
11095 (read_call_site_scope): Likewise.
11096 (read_variable): Likewise.
11097 (dwarf2_rnglists_process): Likewise.
11098 (dwarf2_ranges_process): Likewise.
11099 (dwarf2_ranges_read): Likewise.
11100 (dwarf2_record_block_ranges): Likewise.
11101 (dwarf2_add_field): Likewise.
11102 (dwarf2_add_member_fn): Likewise.
11103 (read_structure_type): Likewise.
11104 (process_structure_scope): Likewise.
11105 (read_enumeration_type): Likewise.
11106 (read_array_type): Likewise.
11107 (read_common_block): Likewise.
11108 (read_namespace_type): Likewise.
11109 (read_namespace): Likewise.
11110 (read_module_type): Likewise.
11111 (read_tag_pointer_type): Likewise.
11112 (read_tag_ptr_to_member_type): Likewise.
11113 (read_tag_string_type): Likewise.
11114 (read_subroutine_type): Likewise.
11115 (read_typedef): Likewise.
11116 (read_base_type): Likewise.
11117 (attr_to_dynamic_prop): Likewise.
11118 (read_subrange_type): Likewise.
11119 (read_unspecified_type): Likewise.
11120 (load_partial_dies): Likewise.
11121 (read_partial_die): Likewise.
11122 (find_partial_die): Likewise.
11123 (guess_partial_die_structure_name): Likewise.
11124 (fixup_partial_die): Likewise.
11125 (read_attribute_value): Likewise.
11126 (read_addr_index_from_leb128): Likewise.
11127 (dwarf2_read_addr_index): Likewise.
11128 (dwarf2_string_attr): Likewise.
11129 (lnp_state_machine::check_line_address): Likewise.
11130 (dwarf_decode_lines_1): Likewise.
11131 (dwarf_decode_lines): Likewise.
11132 (dwarf2_start_symtab): Likewise.
11133 (var_decode_location): Likewise.
11134 (new_symbol_full): Likewise.
11135 (dwarf2_const_value_data): Likewise.
11136 (dwarf2_const_value_attr): Likewise.
11137 (dwarf2_const_value): Likewise.
11138 (die_type): Likewise.
11139 (die_containing_type): Likewise.
11140 (lookup_die_type): Likewise.
11141 (guess_full_die_structure_name): Likewise.
11142 (anonymous_struct_prefix): Likewise.
11143 (dwarf2_name): Likewise.
11144 (follow_die_ref_or_sig): Likewise.
11145 (follow_die_offset): Likewise.
11146 (follow_die_ref): Likewise.
11147 (dwarf2_fetch_die_loc_sect_off): Likewise.
11148 (dwarf2_fetch_constant_bytes): Likewise.
11149 (dwarf2_fetch_die_type_sect_off): Likewise.
11150 (dwarf2_get_die_type): Likewise.
11151 (follow_die_sig): Likewise.
11152 (decode_locdesc): Likewise.
11153 (dwarf2_per_cu_objfile): Likewise.
11154 (dwarf2_per_cu_text_offset): Likewise.
11155 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11156 objfile.
11157 (set_die_type): Access objfile through
11158 dwarf2_per_objfile.
11159
b01ba14d
SM
111602018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11161
11162 * valprint.c (converted_character_d): Remove typedef.
11163 (DEF_VEC_O (converted_character_d)): Remove.
11164 (count_next_character): Use std::vector.
11165 (print_converted_chars_to_obstack): Likewise.
11166 (generic_printstr): Likewise.
11167
4d0fdd9b
SM
111682018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11169
11170 * xml-support.h (struct gdb_xml_value): Add constructor.
11171 <value>: Change type to unique_xmalloc_ptr.
11172 (gdb_xml_value_s): Remove typedef.
11173 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11174 (gdb_xml_element_start_handler): Change parameter type to
11175 std::vector.
11176 (xml_find_attribute): Likewise.
11177 * xml-support.c (xml_find_attribute): Change parameter type to
11178 std::vector and adjust.
11179 (gdb_xml_values_cleanup): Remove.
11180 (gdb_xml_parser::start_element): Adjust to std::vector.
11181 (xinclude_start_include): Change paraeter type to std::vector
11182 and adjust.
11183 * btrace.c (check_xml_btrace_version): Likewise.
11184 (parse_xml_btrace_block): Likewise.
11185 (parse_xml_btrace_pt_config_cpu): Likewise.
11186 (parse_xml_btrace_pt): Likewise.
11187 (parse_xml_btrace_conf_bts): Likewise.
11188 (parse_xml_btrace_conf_pt): Likewise.
11189 * memory-map.c (memory_map_start_memory): Likewise.
11190 (memory_map_start_property): Likewise.
11191 * osdata.c (osdata_start_osdata): Likewise.
11192 (osdata_start_item): Likewise.
11193 (osdata_start_column): Likewise.
11194 * remote.c (start_thread): Likewise.
11195 * solib-aix.c (library_list_start_library): Likewise.
11196 (library_list_start_list): Likewise.
11197 * solib-svr4.c (library_list_start_library): Likewise.
11198 (svr4_library_list_start_list): Likewise.
11199 * solib-target.c (library_list_start_segment): Likewise.
11200 (library_list_start_section): Likewise.
11201 (library_list_start_library): Likewise.
11202 (library_list_start_list): Likewise.
11203 * tracepoint.c (traceframe_info_start_memory): Likewise.
11204 (traceframe_info_start_tvar): Likewise.
11205 * xml-syscall.c (syscall_start_syscall): Likewise.
11206 * xml-tdesc.c (tdesc_start_target): Likewise.
11207 (tdesc_start_feature): Likewise.
11208 (tdesc_start_reg): Likewise.
11209 (tdesc_start_union): Likewise.
11210 (tdesc_start_struct): Likewise.
11211 (tdesc_start_flags): Likewise.
11212 (tdesc_start_enum): Likewise.
11213 (tdesc_start_field): Likewise.
11214 (tdesc_start_enum_value): Likewise.
11215 (tdesc_start_vector): Likewise.
11216
f979c73f
SM
112172018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11218
11219 * extension.h (struct xmethod_worker) <clone>: Remove.
11220 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11221 Remove.
11222 (python_xmethod_worker::clone): Remove.
11223 * valops.c (find_overload_match): Use std::move instead of
11224 clone.
11225
ba18742c
SM
112262018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11227
11228 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11229 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11230 <free_xmethod_worker_data>: Remove.
11231 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11232 <get_xmethod_arg_types>: Remove.
11233 <get_xmethod_result_type>: Remove.
11234 <invoke_xmethod>: Remove.
11235 * extension.c (new_xmethod_worker): Remove.
11236 (clone_xmethod_worker): Remove.
11237 (get_matching_xmethod_workers): Return void, pass std::vector by
11238 pointer.
11239 (get_xmethod_arg_types): Rename to...
11240 (xmethod_worker::get_arg_types): ... this, and adjust.
11241 (get_xmethod_result_type): Rename to...
11242 (xmethod_worker::get_result_type): ... this, and adjust.
11243 (invoke_xmethod): Remove.
11244 (free_xmethod_worker): Remove.
11245 (free_xmethod_worker_vec): Remove.
11246 * extension.h (enum ext_lang_rc): Move here from
11247 extension-priv.h.
11248 (struct xmethod_worker): Add constructor and destructor.
11249 <data>: Remove.
11250 <value>: Remove.
11251 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11252 virtual pure methods.
11253 <get_arg_types, get_result_type>: New methods.
11254 (xmethod_worker_ptr): Remove typedef.
11255 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11256 (xmethod_worker_vec): Remove typedef.
11257 (xmethod_worker_up): New typedef.
11258 (invoke_xmethod): Remove.
11259 (clone_xmethod_worker): Remove.
11260 (free_xmethod_worker): Remove.
11261 (free_xmethod_worker_vec): Remove.
11262 (get_xmethod_arg_types): Remove.
11263 (get_xmethod_result_type): Remove.
11264 * valops.c (find_method_list): Use std::vector, don't use
11265 intermediate vector.
11266 (value_find_oload_method_list): Use std::vector.
11267 (find_overload_match): Use std::vector.
11268 (find_oload_champ): Use std::vector.
11269 * value.c (value_free): Use operator delete.
11270 (value_of_xmethod): Rename to...
11271 (value_from_xmethod): ... this. Don't assign
11272 xmethod_worker::value, take rvalue-reference.
11273 (result_type_of_xmethod): Adjust.
11274 (call_xmethod): Adjust.
11275 * value.h: Include extension.h.
11276 (struct xmethod_worker): Don't forward-declare.
11277 (value_of_xmethod): Rename to...
11278 (value_from_xmethod): ... this, take rvalue-reference.
11279 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11280 (struct python_xmethod_worker): ... this, add constructor and
11281 destructor.
11282 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11283 (gdbpy_free_xmethod_worker_data): Rename to...
11284 (python_xmethod_worker::~python_xmethod_worker): ... this and
11285 adjust.
11286 (gdbpy_clone_xmethod_worker_data): Rename to...
11287 (python_xmethod_worker::clone): ... this and adjust.
11288 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11289 temporary vector.
11290 (gdbpy_get_xmethod_arg_types): Rename to...
11291 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11292 (gdbpy_get_xmethod_result_type): Rename to...
11293 (python_xmethod_worker::do_get_result_type): ... this and
11294 adjust.
11295 (gdbpy_invoke_xmethod): Rename to...
11296 (python_xmethod_worker::invoke): ... this and adjust.
11297 (new_python_xmethod_worker): Rename to...
11298 (python_xmethod_worker::python_xmethod_worker): ... this and
11299 adjust.
11300 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11301 Remove.
11302 (gdbpy_free_xmethod_worker_data): Remove.
11303 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11304 (gdbpy_get_xmethod_arg_types): Remove.
11305 (gdbpy_get_xmethod_result_type): Remove.
11306 (gdbpy_invoke_xmethod): Remove.
11307 * python/python.c (python_extension_ops): Remove obsolete
11308 callbacks.
11309
e379cee6
PA
113102018-01-05 Pedro Alves <palves@redhat.com>
11311
11312 PR gdb/18653
11313 * common/signals-state-save-restore.c
11314 (save_original_signals_state): New parameter 'quiet'. Warn if we
11315 find a custom handler preinstalled, instead of internal erroring.
11316 But only warn if !quiet.
11317 * common/signals-state-save-restore.h
11318 (save_original_signals_state): New parameter 'quiet'.
11319 * main.c (captured_main_1): Move save_original_signals_state call
11320 after option handling, and pass QUIET.
11321
a655456c
PA
113222018-01-05 Pedro Alves <palves@redhat.com>
11323
11324 * spu-tdep.c (spu_catch_start): Pass
11325 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11326
de63c46b
PA
113272018-01-05 Pedro Alves <palves@redhat.com>
11328
11329 PR gdb/22670
11330 * ada-lang.c (literal_symbol_name_matcher): New function.
11331 (ada_get_symbol_name_matcher): Use it for
11332 symbol_name_match_type::SEARCH_NAME.
11333 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11334 it down instead of assuming symbol_name_match_type::FULL.
11335 * block.h (block_lookup_symbol): New parameter 'match_type'.
11336 * c-valprint.c (print_unpacked_pointer): Use
11337 lookup_symbol_search_name instead of lookup_symbol.
11338 * compile/compile-object-load.c (get_out_value_type): Pass down
11339 symbol_name_match_type::SEARCH_NAME.
11340 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11341 symbol_name_match_type::FULL.
11342 * cp-support.c (cp_get_symbol_name_matcher): Handle
11343 symbol_name_match_type::SEARCH_NAME.
11344 * infrun.c (insert_exception_resume_breakpoint): Use
11345 lookup_symbol_search_name.
11346 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11347 * psymtab.c (maintenance_check_psymtabs): Use
11348 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11349 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11350 SYMBOL_SEARCH_NAME.
11351 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11352 if symbol_name_match_type::SEARCH_NAME.
11353 (lookup_symbol_in_language): Pass down
11354 symbol_name_match_type::FULL.
11355 (lookup_symbol_search_name): New.
11356 (lookup_language_this): Pass down
11357 symbol_name_match_type::SEARCH_NAME.
11358 (lookup_symbol_aux, lookup_local_symbol): New parameter
11359 'match_type'. Pass it down.
11360 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11361 (lookup_symbol_search_name): New declaration.
11362 (lookup_symbol_in_block): New 'match_type' parameter.
11363
f98fc17b
PA
113642018-01-05 Pedro Alves <palves@redhat.com>
11365
11366 PR gdb/22670
11367 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11368 ada_lookup_symbol.
11369 (ada_lookup_symbol): Reimplement in terms of
11370 ada_lookup_symbol_list, bits factored out from
11371 ada_lookup_encoded_symbol.
11372
342f8240
JB
113732018-01-05 Joel Brobecker <brobecker@adacore.com>
11374
11375 * ada-exp.y (write_object_renaming): When subscripting an array
11376 using a symbol as the index, pass the block in call to
11377 ada_lookup_encoded_symbol when looking that symbol up.
11378
7150d33c
JG
113792018-01-05 Jerome Guitton <guitton@adacore.com>
11380
11381 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11382 TYPE_INDEX_TYPE.
11383
cc0e770c
JB
113842018-01-05 Joel Brobecker <brobecker@adacore.com>
11385
11386 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11387 the case where VALUE_LVAL (val0) is not lval_memory.
11388
f79da888 113892018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
11390
11391 * ada-valprint.c (print_optional_low_bound): Handle
11392 character-indexed array printing like boolean-indexed array
11393 printing.
11394
cd385f94
JB
113952018-01-05 Joel Brobecker <brobecker@adacore.com>
11396
11397 * NEWS: Create a new section for the next release branch.
11398 Rename the section of the current branch, now that it has
11399 been cut.
11400
09aca949
JB
114012018-01-05 Joel Brobecker <brobecker@adacore.com>
11402
11403 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11404 * version.in: Bump version to 8.1.50.DATE-git.
11405
9f757bf7
XR
114062018-01-03 Xavier Roirand <roirand@adacore.com>
11407
11408 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11409 Add field.
11410 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11411 Add field.
11412 (default_exception_support_info) <catch_handlers_sym>: Add field.
11413 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11414 (ada_exception_name_addr_1): Add "catch handlers" handling.
11415 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11416 Update all callers.
11417 (create_excep_cond_exprs) <ex>: Add parameter.
11418 (re_set_exception): Update create_excep_cond_exprs call.
11419 (print_it_exception, print_one_exception, print_mention_exception)
11420 (print_recreate_exception): Add "catch handler" handling.
11421 (allocate_location_catch_handlers, re_set_catch_handlers)
11422 (check_status_catch_handlers, print_it_catch_handlers)
11423 (print_one_catch_handlers, print_mention_catch_handlers)
11424 (print_recreate_catch_handlers): New function.
11425 (catch_handlers_breakpoint_ops): New variable.
11426 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11427 Add parameter. Add "catch handler" handling.
11428 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11429 Add "catch handler" handling.
11430 (ada_exception_catchpoint_cond_string): Add "catch handler"
11431 handling.
11432 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11433 call.
11434 (catch_ada_handlers_command): New function.
11435 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11436 operations structure.
11437 (_initialize_ada_language): Add "catch handlers" command entry.
11438 * NEWS: Document "catch handlers" feature.
11439
9fe561ab
JB
114402018-01-02 Joel Brobecker <brobecker@adacore.com>
11441
11442 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11443 account when creating the array type of the slice.
11444 (ada_value_slice): Likewise.
11445
a405673c
JB
114462018-01-02 Joel Brobecker <brobecker@adacore.com>
11447
11448 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11449 New enum value.
11450 (create_array_type_with_stride): Add byte_stride_prop parameter.
11451 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11452 New parameter. Update all callers in this file.
11453 (array_type_has_dynamic_stride): New function.
11454 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11455 of arrays with dynamic byte strides.
11456 * dwarf2read.c (read_array_type): Add support for dynamic
11457 DW_AT_byte_stride attributes.
11458
74a2f8ff
JB
114592018-01-02 Joel Brobecker <brobecker@adacore.com>
11460
11461 * dwarf2read.c (read_unspecified_type): Treat
11462 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11463
e2882c85
JB
114642018-01-01 Joel Brobecker <brobecker@adacore.com>
11465
11466 Update copyright year range in all GDB files.
11467
1690bb24
JB
114682018-01-01 Joel Brobecker <brobecker@adacore.com>
11469
11470 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
11471 and gdb/testsuite/gdb.base/step-line.c.
11472
0f0c98a8
JB
114732018-01-01 Joel Brobecker <brobecker@adacore.com>
11474
11475 * copyright.py (main): Dump the contents of
11476 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
11477 even if BY_HAND is empty.
11478
82e1e79a
JB
114792018-01-01 Joel Brobecker <brobecker@adacore.com>
11480
11481 * top.c (print_gdb_version): Update Copyright year in version
11482 message.
11483
053f54e5 114842018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 11485
053f54e5 11486 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 11487
053f54e5 11488For older changes see ChangeLog-2017.
c906108c
SS
11489\f
11490Local Variables:
11491mode: change-log
11492left-margin: 8
11493fill-column: 74
11494version-control: never
57da7796 11495coding: utf-8
c906108c 11496End:
This page took 2.801717 seconds and 4 git commands to generate.