Add doc and news for DWARF index cache
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7d11235d
SM
12018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2
3 * NEWS: Mention the index cache.
4
87d6a7aa
SM
52018-08-07 Simon Marchi <simon.marchi@ericsson.com>
6
7 * common/pathstuff.h (get_standard_cache_dir): New.
8 * common/pathstuff.c (get_standard_cache_dir): New.
9 * build-id.h (build_id_to_string): New.
10 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
11 DEBUG_STR_SUFFIX): Move to here.
12 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
13 DEBUG_STR_SUFFIX): Move from there.
14 (write_psymtabs_to_index): Make non-static, add basename
15 parameter. Write to temporary files, rename when done.
16 (save_gdb_index_command): Adjust call to
17 write_psymtabs_to_index.
18 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
19 field.
20 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
21 (get_gdb_index_contents_from_cache): New.
22 (get_gdb_index_contents_from_cache_dwz): New.
23 (dwarf2_initialize_objfile): Read index from cache.
24 (dwarf2_build_psymtabs): Save to index.
25 * dwarf-index-cache.h: New file.
26 * dwarf-index-cache.c: New file.
27 * dwarf-index-write.h: New file.
28
8a99096f
SM
292018-08-07 Simon Marchi <simon.marchi@ericsson.com>
30
31 * gnulib/aclocal.m4: Re-generate.
32 * gnulib/config.in: Re-generate.
33 * gnulib/configure: Re-generate.
34 * gnulib/import/Makefile.am: Re-generate.
35 * gnulib/import/Makefile.in: Re-generate.
36 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
37 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
38 * gnulib/import/m4/mkdir.m4: New file.
39 * gnulib/import/mkdir.c: New file.
40 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
41 module.
42
5c831bb1
SM
432018-08-07 Simon Marchi <simon.marchi@ericsson.com>
44
45 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
46 * common/scoped_mmap.c: New file.
47 * common/scoped_mmap.h (destroy): New method.
48 (~scoped_mmap, reset): Use destroy.
49 (scoped_mmap): New move constructor.
50 (mmap_file): New declaration.
51 * unittests/scoped_mmap-selftests.c (test_normal,
52 test_invalid_filename, run_tests): New functions.
53 (_initialize_scoped_mmap_selftests): Register selftest.
54
4485a1c1
SM
552018-08-07 Simon Marchi <simon.marchi@ericsson.com>
56
57 * dwarf2read.c (read_gdb_index_from_section): Rename to...
58 (read_gdb_index_from_buffer): ... this. Remove section
59 parameter, add buffer parameter.
60 (get_gdb_index_contents_ftype,
61 get_gdb_index_contents_dwz_ftype): New typedefs.
62 (dwarf2_read_gdb_index): Add callback parameters to get the
63 index contents.
64 (get_gdb_index_contents_from_section): New.
65 (dwarf2_initialize_objfile): Update call to
66 dwarf2_read_gdb_index.
67
528e1572
SM
682018-08-07 Simon Marchi <simon.marchi@ericsson.com>
69
70 * common/filestuff.h (gdb_fopen_cloexec): New overload.
71 (gdb_open_cloexec): Likewise.
72 * nat/linux-osdata.c (command_from_pid): Use string_printf.
73 (commandline_from_pid): Likewise.
74 (linux_xfer_osdata_threads): Likewise.
75 (linux_xfer_osdata_fds): Likewise.
76 * ada-lang.c (is_package_name): Likewise.
77 * auxv.c (procfs_xfer_auxv): Likewise.
78 * breakpoint.c (print_one_breakpoint_location): Use
79 uiout::field_fmt.
80 (print_one_catch_solib): Use string_printf.
81 * coff-pe-read.c (add_pe_exported_sym): Likewise.
82 (add_pe_forwarded_sym): Likewise.
83 * dwarf2read.c (create_type_unit_group): Likewise.
84 (build_error_marker_type): Likewise.
85 * infcall.c (get_function_name): Likewise.
86 * valprint.c (print_converted_chars_to_obstack): Likewise.
87 * xtensa-tdep.c (xtensa_register_type): Likewise.
88
a7f25a84
SM
892018-08-06 Simon Marchi <simon.marchi@ericsson.com>
90
91 * remote.c (remote_target::download_tracepoint): Fix format
92 string errors.
93
296956be
PFC
942018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
95
96 * tracefile.c: Include common/byte-vector.h.
97 (trace_save): Change type of buf to gdb::byte_vector. Initialize
98 with trace_regblock_size if needed. Update uses of buf.
99
a04b9d62
PFC
1002018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
101
102 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
103 std::vector<unsigned char>.
104 * tracepoint.c (collection_list::collection_list): Remove
105 m_regs_mask initializer from initializer list. Resize
106 m_regs_mask using the largest remote register number.
107 (collection_list::add_remote_register): Remove size check on
108 m_regs_mask. Use at to access element.
109 (collection_list::stringify): Change type of temp_buf to
110 gdb::char_vector. Update uses of temp_buf. Resize if needed to
111 stringify the register mask. Use pack_hex_byte for the register
112 mask.
113
4277c4b8
PFC
1142018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
115
116 * tracepoint.h (class collection_list) <add_register>: Remove.
117 <add_remote_register, add_ax_registers, add_local_register>:
118 Declare.
119 <add_memrange>: Add scope parameter.
120 * tracepoint.c (encode_actions_1): Likewise.
121 (collection_list::add_register): Rename to ...
122 (collection_list::add_remote_register): ... this. Update
123 comment.
124 (collection_list::add_ax_registers, add_local_register): New
125 methods.
126 (collection_list::add_memrange): Add scope parameter. Call
127 add_local_register instead of add_register.
128 (finalize_tracepoint_aexpr): New function.
129 (collection_list::collect_symbol): Update calls to add_memrange.
130 Call add_local_register instead of add_register. Call
131 add_ax_registers. Call finalize_tracepoint_aexpr.
132 (encode_actions_1): Get remote regnos for $reg action. Call
133 add_remote_register, add_ax_registers, and add_local_register.
134 Update call to add_memrange. Call finalize_tracepoint_aexpr.
135 (validate_actionline): Call finalize_tracepoint_aexpr.
136
3df3a985
PFC
1372018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
138
139 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
140 Replace array buf with gdb::char_vector buf, of size
141 get_remote_packet_size (). Replace references to buf and
142 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
143 and xsnprintf with snprintf. Raise errors if the buffer is too
144 small.
145
aa6f3694
PFC
1462018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
147
148 * remote.c (remote_target::download_tracepoint): Fix the has_more
149 predicate in the QTDP action list iteration.
150
05abfc39
PFC
1512018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
152
153 * remote.c (remote_target::download_tracepoint): Fix indentation
154 in for block.
155
821a2682
RO
1562018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
157
158 * proc-api.c (_initialize_proc_api): Remove c, unused.
159 * procfs.c (procfs_init_inferior): Remove signals, unused.
160 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
161 unused.
162
95347337
AB
1632018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
164 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
167 'W_STOPCODE (0)' as this could be ambiguous.
168
425699f5
SDJ
1692018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
170
171 * ser-tcp.c (net_open): Fix thinko when deciding whether to
172 disable TCP's Nagle algorithm (use "ai_protocol" instead of
173 "ai_socktype").
174
3e1d3d8c
TT
1752018-08-02 Tom Tromey <tom@tromey.com>
176
177 PR symtab/16842.
178 * dwarf2read.c (read_func_scope): Set symtab on template parameter
179 symbols.
180 (process_structure_scope): Likewise.
181
15843549
XR
1822018-08-02 Xavier Roirand <roirand@adacore.com>
183
184 PR gdb/22629:
185 * darwin-nat.c (darwin_kill_inferior): Fix handling of
186 kill inferior.
187
b5bddbbb
TT
1882018-08-02 Tom Tromey <tom@tromey.com>
189
190 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
191 (darwin_suspend_inferior, darwin_resume_inferior)
192 (darwin_decode_notify_message, darwin_resume_inferior_threads)
193 (darwin_check_new_threads): Check result of get_darwin_inferior.
194
f61cfa07
JB
1952018-07-31 Joel Brobecker <brobecker@adacore.com>
196
197 GDB 8.1.1 released.
198
5abe0f0c
JV
1992018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
200
201 * varobj.c (varobj_get_path_expr_parent): Report an error if
202 parent is a dynamic varobj.
203
472fa5ee
SM
2042018-07-31 Simon Marchi <simon.marchi@ericsson.com>
205
206 * gnulib/aclocal.m4: Re-generate.
207 * gnulib/config.in: Re-generate.
208 * gnulib/configure: Re-generate.
209 * gnulib/import/Makefile.in: Re-generate.
210 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
211 * gnulib/import/m4/onceonly.m4: Re-generate.
212
1c28969e
SM
2132018-07-31 Simon Marchi <simon.marchi@ericsson.com>
214
215 * target-descriptions.c (struct xml_test_tdesc): New.
216 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
217 (record_xml_tdesc): Update.
218 (maintenance_check_xml_descriptions): Update.
219 * target-descriptions.h (record_xml_tdesc): Update comment.
220
c8f2dc0d
AB
2212018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
224 checking array bounds are defined.
225
463c08d1
TT
2262018-07-30 Tom Tromey <tom@tromey.com>
227
228 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
229 irreflexivity violation.
230
dba7455e
TT
2312018-07-30 Tom Tromey <tom@tromey.com>
232
233 * cli/cli-decode.c (lookup_cmd): Remove lint code.
234 * value.c (unpack_long): Remove lint code.
235 * valops.c (value_ind): Remove lint code.
236 * valarith.c (value_x_binop, value_x_unop, value_equal)
237 (value_pos): Remove lint code.
238
37cc0cae
TV
2392018-07-28 Tom de Vries <tdevries@suse.de>
240
241 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
242 with undefined upper bound as <optimized out>.
243
129eb0f1
SDJ
2442018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
245
246 * gcore.in: Rename variable "name" to "prefix". Expand
247 "usage" text.
248
6af79d7b
JT
2492018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
250
251 * windows-nat.c (windows_nat_target::create_inferior): Update to
252 call close() in global namespace.
253
79748972
TT
2542018-07-26 Tom Tromey <tom@tromey.com>
255
256 * dwarf-index-write.c (add_address_entry): Don't add objfile
257 offsets.
258 * dbxread.c (find_stab_function): Rename from
259 find_stab_function_addr. Return a bound_minimal_symbol.
260 (read_dbx_symtab): Use raw_text_low, raw_text_high.
261 Don't add objfile offsets.
262 (end_psymtab): Use raw_text_low, raw_text_high,
263 MSYMBOL_VALUE_RAW_ADDRESS.
264 (read_ofile_symtab): Update.
265 (process_one_symbol): Update.
266 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
267 offsets.
268 (dw2_relocate): Remove.
269 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
270 searching addrmap.
271 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
272 Update.
273 (process_psymtab_comp_unit_reader, add_partial_symbol)
274 (add_partial_subprogram, dwarf2_ranges_read): Update.
275 (load_partial_dies): Update.
276 (add_address_entry): Don't add objfile offsets.
277 (dwarf2_build_include_psymtabs): Update.
278 (create_addrmap_from_aranges): Don't add objfile offsets.
279 (dw2_find_pc_sect_compunit_symtab): Update.
280 * mdebugread.c (parse_symbol): Don't add objfile offsets.
281 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
282 Update.
283 (parse_partial_symbols): Don't add objfile offsets. Use
284 raw_text_low, raw_text_high. Update.
285 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
286 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
287 or call 'relocate' quick function. Clear psymbol_map.
288 * psympriv.h (struct partial_symbol) <address>: Add section
289 offset.
290 <set_unrelocated_address>: Rename from set_address.
291 <raw_text_low, raw_text_high>: New methods.
292 <text_low, text_high>: Add objfile parameter.
293 (add_psymbol_to_bcache): Add 'section' parameter. Call
294 set_unrelocated_address.
295 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
296 (find_pc_psymbol): Update.
297 (fixup_psymbol_section, relocate_psymtabs): Remove.
298 (dump_psymtab, psym_functions): Update.
299 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
300 parameter.
301 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
302 (start_psymtab_common): Update.
303 * symfile-debug.c (debug_qf_relocate): Remove.
304 (debug_sym_quick_functions): Update.
305 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
306 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
307 Update.
308
52948f01
TT
3092018-07-26 Tom Tromey <tromey@redhat.com>
310
311 * dbxread.c (end_psymtab): Use text_high_valid and
312 text_low_valid.
313 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
314 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
315 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
316 Update comment.
317 <text_low_valid, text_high_valid>: New fields.
318 <set_text_low, set_text_high>: Update.
319 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
320
4ae976d1
TT
3212018-07-26 Tom Tromey <tom@tromey.com>
322
323 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
324 Update.
325 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
326 textlow and texthigh fields.
327 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
328 Update.
329 * mdebugread.c (parse_lines, parse_partial_symbols)
330 (psymtab_to_symtab_1): Update.
331 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
332 Rename fields. Update comment. Now private.
333 <text_low, text_high, set_text_low, set_text_high>: New methods.
334 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
335 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
336 (start_psymtab_common, maintenance_info_psymtabs)
337 (maintenance_check_psymtabs): Update.
338 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
339 texthigh fields.
340 (scan_xcoff_symtab): Update.
341
02e9e7f7
TT
3422018-07-26 Tom Tromey <tromey@redhat.com>
343
344 * psympriv.h (struct partial_symbol) <unrelocated_address,
345 address, set_address>: New methods.
346 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
347 (fixup_psymbol_section, relocate_psymtabs): Update.
348 (print_partial_symbols): Add 'objfile' parameter. Update.
349 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
350 Update.
351
8a6d4234
TT
3522018-07-26 Tom Tromey <tom@tromey.com>
353
354 * dwarf-index-write.c (write_psymbols, debug_names::insert)
355 (debug_names::write_psymbols): Update.
356 * psympriv.h (struct partial_symbol): Derive from
357 general_symbol_info.
358 <obj_section>: New method.
359 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
360 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
361 (find_pc_sect_psymbol, fixup_psymbol_section)
362 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
363 (print_partial_symbols, recursively_search_psymtabs)
364 (compare_psymbols, psymbol_hash, psymbol_compare)
365 (add_psymbol_to_bcache, maintenance_check_psymtabs)
366 (psymbol_name_matches, psym_fill_psymbol_map): Update.
367
08994e1d
TT
3682018-07-26 Tom Tromey <tromey@redhat.com>
369
370 * dbxread.c (end_psymtab): Remove dead code.
371
3c3bb058
AB
3722018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
375 DWARF unwinders are disabled.
376 * dwarf2-frame.c: Add dwarf2read.h include.
377 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
378 disabled.
379 (dwarf2_frame_unwinders_enabled_p): Define.
380 (show_dwarf_unwinders_enabled_p): New function.
381 (_initialize_dwarf2_frame): Register switch to control DWARF
382 unwinder use.
383 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
384 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
385 (show_dwarf_cmdlist): Remove static keyword.
386 * dwarf2read.h (set_dwarf_cmdlist): Declare.
387 (show_dwarf_cmdlist): Declare.
388 * NEWS: Document new feature.
389
9e7f3bbb
TV
3902018-07-26 Tom de Vries <tdevries@suse.de>
391
392 PR breakpoints/23366
393 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
394
506f5c41
TV
3952018-07-26 Tom de Vries <tdevries@suse.de>
396
397 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
398 DW_AT_count can't be translated to a dynamic prop.
399
16f808ec
TV
4002018-07-25 Tom de Vries <tdevries@suse.de>
401
402 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
403 try/catch.
404
d7154a8d
JV
4052018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
406
407 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
408
a45389f6
JB
4092018-07-25 Joel Brobecker <brobecker@adacore.com>
410
411 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
412
380618d6
KS
4132018-07-24 Keith Seitz <keiths@redhat.comt
414
415 PR symtab/23010
416 * dwarf2read.c (dw2_add_symbol_to_list): New function.
417 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
418 instead of add_symbol_to_list.
419 (read_file_scope): Call prepare_one_comp_unit before reading
420 any other DIEs.
421
4b17aefe
SM
4222018-07-24 Simon Marchi <simon.marchi@ericsson.com>
423
424 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
425
29d17e47
TT
4262018-07-24 Tom Tromey <tom@tromey.com>
427
428 * utils.c (malloc, realloc, free): Don't declare.
429 * configure, config.in: Rebuild.
430 * configure.ac: Don't check for declarations of free, malloc, or
431 realloc.
432
cf4088a9
SM
4332018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * aarch64-linux-nat.c
436 (aarch64_linux_nat_target::stopped_data_address): Remove unused
437 variable.
438 * arm-linux-nat.c (fetch_regs): Likewise.
439 (store_regs): Likewise.
440 (fetch_vfp_regs): Likewise.
441 (store_vfp_regs): Likewise.
442 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
443 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
444 (arm_linux_nat_target::insert_watchpoint): Likewise.
445 (arm_linux_nat_target::remove_watchpoint): Likewise.
446 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
447 Likewise.
448 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
449 Likewise.
450 * ppc-linux-nat.c (fetch_register): Likewise.
451 (fetch_all_gp_regs): Likewise.
452 (fetch_ppc_registers): Likewise.
453 (store_all_gp_regs): Likewise.
454 (store_ppc_registers): Likewise.
455 (hwdebug_insert_point): Likewise.
456 (can_use_watchpoint_cond_accel): Likewise.
457 * remote-sim.c (gdb_os_write_stdout): Likewise.
458
a0de763e
TT
4592018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
460 Tom Tromey <tom@tromey.com>
461
462 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
463 test for it.
464 * configure: Rebuild.
465
3b20124b
TT
4662018-07-22 Tom Tromey <tom@tromey.com>
467
468 * regformats/regdat.sh: Define xmltarget_${name} inside
469 #ifndef IN_PROCESS_AGENT.
470
8c8807f4
TT
4712018-07-22 Tom Tromey <tom@tromey.com>
472
473 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
474
c486b610
TT
4752018-07-22 Tom Tromey <tom@tromey.com>
476
477 * symfile.c (reread_symbols): Notify iter, not objfile.
478
494f80a9
TT
4792018-07-22 Tom Tromey <tom@tromey.com>
480
481 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
482 Use arch_ops.
483 (ravenscar_thread_target::prepare_to_store): Likewise.
484
c51f6a54
TT
4852018-07-22 Tom Tromey <tom@tromey.com>
486
487 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
488 unused variable. Call value_fetch_lazy when needed.
489 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
490 Remove unused variable. Call value_fetch_lazy when needed.
491
374fd1fd
TT
4922018-07-22 Tom Tromey <tom@tromey.com>
493
494 * m32c-tdep.c (mark_dma): Return void.
495 (make_regs): Remove unused declarations.
496
d5e9a511
TT
4972018-07-22 Tom Tromey <tom@tromey.com>
498
499 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
500 cmdscm_get_valid_command_smob_arg_unsafe for effect.
501 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
502 bkscm_get_valid_block_smob_arg_unsafe for effect.
503
996d693a
TT
5042018-07-22 Tom Tromey <tom@tromey.com>
505
506 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
507 value_type.
508
15766370
TT
5092018-07-22 Tom Tromey <tom@tromey.com>
510
511 * windows-nat.c (saved_context): Conditionally define.
512 * remote.c (remote_target::remote_btrace_maybe_reopen):
513 Conditionally declare "warned".
514 * inflow.c (sigquit_ours): Conditionally define.
515 (new_tty): Move "tty" declaration inside #if.
516 * guile/guile.c (guile_datadir): Conditionally define.
517 * charset.c (set_be_le_names): Move some declarations inside #if.
518 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
519 #if.
520 (parse_xml_btrace_conf): Likewise.
521
f4e80e13
TT
5222018-07-22 Tom Tromey <tom@tromey.com>
523
524 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
525
8d49165d
TT
5262018-07-22 Tom Tromey <tom@tromey.com>
527
528 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
529 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
530 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
531 * buildsym-legacy.c (get_macro_table): Remove unused variable.
532 * stack.c (frame_apply_level_command): Remove unused variable.
533 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
534 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
535 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
536 unused variable.
537 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
538 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
539 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
540 variable.
541 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
542 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
543 variable.
544 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
545 Remove unused variable.
546 * cli/cli-script.c (recurse_read_control_structure): Remove unused
547 variable.
548 * common/tdesc.c (print_xml_feature::visit): Remove unused
549 variable.
550 * compile/compile-object-load.c (store_regs): Remove unused
551 variables.
552 * complaints.c (clear_complaints): Remove unused variable.
553 * corelow.c (core_target_open): Remove unused variable.
554 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
555 variable.
556 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
557 variable.
558 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
559 variable.
560 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
561 variable.
562 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
563 variable.
564 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
565 variable.
566 * ia64-tdep.c (examine_prologue): Remove unused variable.
567 * infcall.c (run_inferior_call): Remove unused variable.
568 * inferior.c (exit_inferior): Remove unused variable.
569 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
570 * linespec.c (decode_line_2): Remove unused variable.
571 * linux-nat.c (super_close): Remove.
572 * linux-tdep.c (linux_info_proc): Remove unused variable.
573 * mi/mi-main.c (mi_execute_command): Remove unused variable.
574 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
575 Remove unused variable.
576 * parse.c (find_minsym_type_and_address): Remove unused variable.
577 * printcmd.c (info_symbol_command, printf_floating): Remove unused
578 variable.
579 * python/py-breakpoint.c (bppy_set_commands): Remove unused
580 variable.
581 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
582 variables.
583 * record-btrace.c (record_btrace_target::store_registers): Remove
584 unused variable.
585 (cmd_show_record_btrace_cpu): Remove unused variable.
586 * riscv-tdep.c (riscv_register_reggroup_p)
587 (riscv_push_dummy_call, riscv_return_value): Remove unused
588 variable.
589 * rust-exp.y (literal): Remove unused variable.
590 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
591 unused variable.
592 <STRUCTOP_ANONYMOUS>: Likewise.
593 * s390-linux-tdep.c (s390_linux_init_abi_31)
594 (s390_linux_init_abi_64): Remove unused variable.
595 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
596 (file_select_thread, net_windows_open, _initialize_ser_windows):
597 Remove unused variables.
598 * symtab.c (find_pc_sect_line): Remove unused variable.
599 * target-memory.c (compute_garbled_blocks): Remove unused
600 variable.
601 (target_write_memory_blocks): Remove unused variable.
602 * target.c (target_stack::unpush): Remove unused variables.
603 * tracepoint.c (start_tracing, all_tracepoint_actions)
604 (merge_uploaded_trace_state_variables)
605 (print_one_static_tracepoint_marker): Remove unused variable.
606 * unittests/basic_string_view/element_access/char/1.cc (test01):
607 Remove unused variable.
608 * windows-nat.c (windows_continue, windows_add_all_dlls)
609 (do_initial_windows_stuff, windows_nat_target::create_inferior):
610 Remove unused variables.
611
17cbafdb
SM
6122018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
615 attr_profile in HAVE_ELF.
616 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
617 HAVE_ELF.
618
0ee6c332
SM
6192018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
620
621 * frame.c (frame_register_unwind): Change parameter name.
622 (frame_unwind_register): Likewise.
623 (frame_unwind_register_value): Likewise.
624 (frame_unwind_register_signed): Likewise.
625 (frame_unwind_register_unsigned): Likewise.
626 * frame.h (frame_register_unwind): Likewise.
627 (frame_unwind_register): Likewise.
628 (frame_unwind_register_value): Likewise.
629 (frame_unwind_register_signed): Likewise.
630 (frame_unwind_register_unsigned): Likewise.
631 (frame_unwind_arch): Likewise.
632
e2e31f10
MR
6332018-07-20 Maciej W. Rozycki <macro@mips.com>
634
635 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
636 ISA maintenance.
637
2d389915
MR
6382018-07-20 Maciej W. Rozycki <macro@mips.com>
639
640 * mips-linux-nat.c (mips_linux_nat_target::read_description):
641 Call `get_ptrace_pid' rather than extracting the ptrace PID by
642 hand.
643
cbb09508
KS
6442018-07-20 Keith Seitz <keiths@redhat.com>
645
646 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
647 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
648 m_compunit_symtab, m_language>: Add "m_" prefix.
649 Update all uses.
650 * buildsym.c: Update all uses.
651
bfe2e011
TT
6522018-07-20 Tom Tromey <tom@tromey.com>
653
654 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
655 * buildsym.h (record_line_ftype): Remove typedef.
656
0e6f3061
TT
6572018-07-20 Tom Tromey <tom@tromey.com>
658
659 * buildsym-legacy.h (augment_type_symtab): Don't declare.
660 (end_expandable_symtab): Likewise.
661 (end_symtab_get_static_block): Likewise.
662 (end_symtab_from_static_block): Likewise.
663 * buildsym-legacy.c (augment_type_symtab): Remove.
664 (end_expandable_symtab): Remove.
665 (end_symtab_get_static_block): Remove.
666 (end_symtab_from_static_block): Remove.
667
804d2729
TT
6682018-07-20 Tom Tromey <tom@tromey.com>
669
670 * dwarf2read.c: Include buildsym.h.
671 (struct dwarf2_cu) <builder>: New method.
672 (fixup_go_packaging): Update.
673 (process_full_comp_unit, process_full_type_unit): Update. Don't
674 use scoped_free_pendings.
675 (using_directives): Add "cu" parameter, remove "language".
676 (read_import_statement, setup_type_unit_groups, )
677 (read_func_scope, read_lexical_block_scope)
678 (dwarf2_record_block_ranges, read_namespace): Update.
679 (lnp_state_machine::lnp_state_machine): Add cu parameter.
680 (lnp_state_machine::handle_end_sequence): Update.
681 (class lnp_state_machine) <m_cu>: New member.
682 <m_record_line_callback>: Remove.
683 <m_currently_recording_lines>: New member.
684 (lnp_state_machine::handle_set_file): Update.
685 (noop_record_line): Remove.
686 (dwarf_record_line_p): Add cu parameter.
687 (dwarf_record_line_1, dwarf_finish_line): Likewise.
688 (lnp_state_machine::record_line)
689 (lnp_state_machine::lnp_state_machine)
690 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
691 (dwarf_decode_lines): Update.
692 (dwarf2_start_subfile): Add cu parameter.
693 (dwarf2_start_symtab, new_symbol): Update.
694 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
695 Remove dwarf2_per_objfile parameter.
696 (dwarf_decode_macros): Update.
697
80e649fc
TT
6982018-07-20 Tom Tromey <tom@tromey.com>
699
700 * stabsread.c (define_symbol): Update.
701 * buildsym-legacy.h (get_buildsym_compunit): Declare.
702 * dwarf2read.c (new_symbol): Update.
703 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
704 * cp-namespace.c: Include buildsym.h.
705 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
706 * buildsym-legacy.c (get_buildsym_compunit): New function.
707
0baae8db
TT
7082018-07-20 Tom Tromey <tom@tromey.com>
709
710 * xcoffread.c: Include buildsym-legacy.h.
711 * windows-nat.c: Include buildsym-legacy.h.
712 * stabsread.c: Include buildsym-legacy.h.
713 * mdebugread.c: Include buildsym-legacy.h.
714 * buildsym-legacy.h: New file.
715 * buildsym-legacy.c: New file, from buildsym.c.
716 * go32-nat.c: Include buildsym-legacy.h.
717 * dwarf2read.c: Include buildsym-legacy.h.
718 * dbxread.c: Include buildsym-legacy.h.
719 * cp-namespace.c: Include buildsym-legacy.h.
720 * coffread.c: Include buildsym-legacy.h.
721 * buildsym.h: Move some contents to buildsym-legacy.h.
722 * buildsym.c: Include buildsym-legacy.h. Move many functions to
723 buildsym-legacy.c.
724 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
725
ab209f6f
TT
7262018-07-20 Tom Tromey <tom@tromey.com>
727
728 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
729 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
730 (buildsym_compunit::buildsym_compunit)
731 (buildsym_compunit::~buildsym_compunit)
732 (buildsym_compunit::get_macro_table): Define.
733
74c72eac
TT
7342018-07-20 Tom Tromey <tom@tromey.com>
735
736 * buildsym.c (reset_symtab_globals): Remove.
737 (buildsym_compunit::end_symtab_from_static_block): Update.
738 (buildsym_compunit::augment_type_symtab): Update.
739 (end_symtab_from_static_block): Call free_buildsym_compunit.
740 (augment_type_symtab, end_symtab, end_expandable_symtab):
741 Likewise.
742
da6580e5
TT
7432018-07-20 Tom Tromey <tom@tromey.com>
744
745 * arch-utils.c: Do not include buildsym.h.
746 * mipsread.c: Do not include buildsym.h.
747 * machoread.c: Do not include buildsym.h.
748 * elfread.c: Do not include buildsym.h.
749
4a2125f5
TT
7502018-07-20 Tom Tromey <tom@tromey.com>
751
752 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
753 initialization.
754 (buildsym_compunit): Add new constructor.
755 (struct buildsym_compunit) <get_last_source_file, finish_block,
756 record_block_range, start_subfile, patch_subfile_names,
757 push_subfile, pop_subfile, record_line, get_compunit_symtab,
758 set_last_source_start_addr, get_last_source_start_addr,
759 get_local_using_directives, set_local_using_directives,
760 get_global_using_directives, outermost_context_p,
761 get_current_context_stack, get_context_stack_depth,
762 get_current_subfile, get_local_symbols, get_file_symbols,
763 get_global_symbols, record_debugformat, record_producer,
764 push_context, pop_context, end_symtab_get_static_block,
765 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
766 New public methods.
767 <record_pending_block, finish_block_internal, make_blockvector,
768 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
769 private methods.
770 Update all users.
771
7722018-05-22 Tom Tromey <tom@tromey.com>
773
774 * buildsym.c (record_pending_block): Move earlier. Remove objfile
775 parameter.
776 (finish_block_internal): Update.
777
6b213a47
TT
7782018-07-20 Tom Tromey <tom@tromey.com>
779
780 * buildsym.c (record_pending_block): Move earlier. Remove objfile
781 parameter.
782 (finish_block_internal): Update.
783
b80a981d
TT
7842018-07-20 Tom Tromey <tom@tromey.com>
785
786 * buildsym.h (EXTERN): Don't define or undef.
787 * buildsym.c (EXTERN): Don't define.
788
ddb70602
TT
7892018-07-20 Tom Tromey <tom@tromey.com>
790
791 * buildsym.c: Remove TODO comment.
792
b37dd3bc
TT
7932018-07-20 Tom Tromey <tom@tromey.com>
794
795 * coffread.c (coff_symtab_read): Update.
796 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
797 (xcoff_new_init): Update.
798 * mipsread.c (mipscoff_new_init): Update.
799 * mdebugread.c (mdebug_build_psymtabs): Update.
800 * elfread.c (elf_new_init): Update.
801 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
802 Update.
803 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
804 (coffstab_build_psymtabs, elfstab_build_psymtabs)
805 (stabsect_build_psymtabs): Update.
806 * buildsym.h (buildsym_init): Don't declare.
807 * buildsym.c: Update comment.
808 (prepare_for_building): Remove.
809 (start_symtab, restart_symtab): Update.
810 (reset_symtab_globals): Update comment.
811 (buildsym_init): Remove.
812
e148f09d
TT
8132018-07-20 Tom Tromey <tom@tromey.com>
814
815 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
816 * stabsread.c (patch_block_stabs, define_symbol, read_type)
817 (read_enum_type, common_block_start, common_block_end)
818 (cleanup_undefined_types_1, finish_global_stabs): Update.
819 * mdebugread.c (psymtab_to_symtab_1): Update.
820 * dwarf2read.c (fixup_go_packaging, read_func_scope)
821 (read_lexical_block_scope, new_symbol): Update.
822 * dbxread.c (process_one_symbol): Update.
823 * coffread.c (coff_symtab_read, process_coff_symbol)
824 (coff_read_enum_type): Update.
825 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
826 declare.
827 (get_local_symbols, get_file_symbols, get_global_symbols): New
828 functions.
829 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
830 m_global_symbols.
831 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
832 (~scoped_free_pendings): Update.
833 (finish_block, prepare_for_building, reset_symtab_globals)
834 (end_symtab_get_static_block, end_symtab_with_blockvector)
835 (augment_type_symtab, push_context): Update.
836 (get_local_symbols, get_file_symbols, get_global_symbols): New
837 functions.
838 (buildsym_init): Update.
839
93b8bea4
TT
8402018-07-20 Tom Tromey <tom@tromey.com>
841
842 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
843 (process_full_type_unit): Likewise.
844 (dwarf2_start_symtab): Set list_in_scope.
845
f62f6af5
TT
8462018-07-20 Tom Tromey <tom@tromey.com>
847
848 * dwarf2read.c (process_psymtab_comp_unit_reader)
849 (build_type_psymtabs_reader): Do not set list_in_scope.
850
1d376700
TT
8512018-07-20 Tom Tromey <tom@tromey.com>
852
853 * buildsym.c (free_pendings): Remove.
854 (add_symbol_to_list, scoped_free_pendings)
855 (finish_block_internal, buildsym_init): Update.
856
c233e9c6
TT
8572018-07-20 Tom Tromey <tom@tromey.com>
858
859 * xcoffread.c (read_xcoff_symtab): Update.
860 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
861 Update.
862 * dbxread.c (process_one_symbol): Update.
863 * coffread.c (coff_symtab_read): Update.
864 * buildsym.h (finish_block): Update.
865 * buildsym.c (finish_block): Remove "listhead" argument.
866 (end_symtab_get_static_block): Update.
867
5ac04550
TT
8682018-07-20 Tom Tromey <tom@tromey.com>
869
870 * buildsym.h (class scoped_free_pendings): Remove constructor.
871 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
872 method.
873 <m_pending_block_obstack, m_pending_blocks>: New members.
874 (pending_block_obstack, pending_blocks): Remove.
875 (scoped_free_pendings::scoped_free_pendings): Default.
876 (~scoped_free_pendings): Update.
877 (free_pending_blocks): Remove.
878 (finish_block_internal, record_pending_block, make_blockvector)
879 (end_symtab_get_static_block, augment_type_symtab, push_context)
880 (buildsym_init): Update.
881
7ea05a7b
TT
8822018-07-20 Tom Tromey <tom@tromey.com>
883
884 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
885 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
886 members.
887 (pending_addrmap, pending_addrmap_obstack)
888 (pending_addrmap_interesting): Remove.
889 (scoped_free_pendings, record_block_range, make_blockvector)
890 (prepare_for_building, reset_symtab_globals, buildsym_init):
891 Update.
892
3c65e5b3
TT
8932018-07-20 Tom Tromey <tom@tromey.com>
894
895 * xcoffread.c (process_linenos): Update.
896 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
897 * mdebugread.c (psymtab_to_symtab_1): Update.
898 * dwarf2read.c (setup_type_unit_groups)
899 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
900 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
901 * dbxread.c (process_one_symbol): Update.
902 * coffread.c (coff_symtab_read, enter_linenos)
903 (process_coff_symbol): Update.
904 * buildsym.h (current_subfile): Don't declare.
905 (get_current_subfile): Declare.
906 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
907 member.
908 (start_subfile, free_buildsym_compunit, push_subfile)
909 (prepare_for_building, start_symtab): Update.
910 (get_current_subfile): New function.
911
a60f3166
TT
9122018-07-20 Tom Tromey <tom@tromey.com>
913
914 * coffread.c (coff_symtab_read): Update.
915 * xcoffread.c (read_xcoff_symtab): Update.
916 * dwarf2read.c (new_symbol): Update.
917 (read_func_scope, read_lexical_block_scope): Update.
918 * dbxread.c (process_one_symbol): Update.
919 * buildsym.h (context_stack, context_stack_depth): Don't declare.
920 (outermost_context_p): Remove macro.
921 (outermost_context_p, get_current_context_stack)
922 (get_context_stack_depth): Declare.
923 (pop_context): Return struct context_stack.
924 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
925 member.
926 (context_stack_size): Remove.
927 (INITIAL_CONTEXT_STACK_SIZE): Remove.
928 (prepare_for_building, end_symtab_get_static_block)
929 (augment_type_symtab, push_context): Update.
930 (pop_context): Return struct context_stack.
931 (outermost_context_p, get_current_context_stack)
932 (get_context_stack_depth): New functions.
933 (buildsym_init): Update.
934
56ba65a0
TT
9352018-07-20 Tom Tromey <tom@tromey.com>
936
937 * rust-exp.y: Now a pure parser. Update all rules.
938 (%union): Move earlier.
939 (current_parser, work_obstack): Remove globals.
940 (rust_parser, ~rust_parser): Update.
941 (class rust_parser) <copy_name, concat3, crate_name, super_name,
942 lex_character, lex_number, lex_string, lex_identifier,
943 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
944 convert_name, convert_params_to_expression,
945 convert_ast_to_expression, ast_basic_type, ast_operation,
946 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
947 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
948 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
949 ast_array_type, ast_slice_type, ast_reference_type,
950 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
951 (rust_parse): Update.
952 (rustyyerror, rustyylex): Add parser parameter.
953 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
954 (rust_lex_stringish_test, rust_lex_test_sequence)
955 (rust_lex_test_trailing_dot, rust_lex_test_completion)
956 (rust_lex_test_push_back, rust_lex_tests): Update.
957
4c693332
PA
9582018-07-19 Pedro Alves <palves@redhat.com>
959
960 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
961 gdb::unique_xmalloc_ptr.
962 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
963 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
964 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
965 copy-initialization.
966 * guile/scm-pretty-print.c (ppscm_print_children): Use
967 gdb::unique_xmalloc_ptr instead of cleanups.
968 (gdbscm_apply_val_pretty_printer): Remove cleanups.
969 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
970 gdb::unique_xmalloc_ptr.
971 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
972 Adjust to use gdb::unique_xmalloc_ptr.
973 * guile/scm-utils.c (extract_arg): Adjust.
974 * guile/scm-value.c (gdbscm_value_field): Adjust to use
975 gdb::unique_xmalloc_ptr instead of a cleanup.
976
4581dc82
TT
9772018-07-19 Tom Tromey <tom@tromey.com>
978
979 * utils.c (do_value_free_to_mark)
980 (make_cleanup_value_free_to_mark): Remove.
981 * utils.h (make_cleanup_value_free_to_mark): Remove.
982
43cc6c3a
PA
9832018-07-19 Pedro Alves <palves@redhat.com>
984
985 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
986 forwarding reference.
987
3a5f2a48
PA
9882018-07-18 Pedro Alves <palves@redhat.com>
989
990 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
991 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
992 cleanup.
993
557e56be
PA
9942018-07-18 Pedro Alves <palves@redhat.com>
995
996 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
997 exceptions.
998 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
999 (gdbscm_wrap): New.
1000 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1001 directly instead of a cleanup.
1002 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1003 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1004 (vlscm_binop_gdbthrow): New, factored out from ...
1005 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1006 (vlscm_rich_compare): Use gdbscm_wrap.
1007 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1008 instead of a cleanup.
1009 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1010 cleanup.
1011 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1012 Use xfree directly instead of a cleanup.
1013 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1014 Adjust to use gdbscm_wrap and scoped_value_mark.
1015 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1016 (gdbscm_value_address, gdbscm_value_dereference)
1017 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1018 scoped_value_mark.
1019 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1020 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1021 scoped_value_mark.
1022 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1023 gdbscm_wrap and scoped_value_mark.
1024 (gdbscm_value_to_string): Use xfree directly instead of a
1025 cleanup. Move 'buffer' unique_ptr to TRY scope.
1026 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1027 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1028 scoped_value_mark.
1029 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1030 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1031 scoped_value_mark.
1032 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1033 gdbscm_wrap.
1034
42dc7699
TV
10352018-07-18 Tom de Vries <tdevries@suse.de>
1036
1037 * findvar.c (default_read_var_value): Also resolve dynamic type for
1038 LOC_OPTIMIZED_OUT vars.
1039
6592ceed
MR
10402018-07-18 Maciej W. Rozycki <macro@mips.com>
1041
1042 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1043 decoding.
1044
c6c6149a
TT
10452018-07-17 Tom Tromey <tom@tromey.com>
1046
1047 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1048 (compute_enum_list, pascm_set_param_value_x)
1049 (gdbscm_parameter_value): Update.
1050 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1051 (gdbscm_scm_to_host_string): Update.
1052 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1053 Update.
1054 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1055 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1056 * guile/scm-string.c (gdbscm_scm_to_string): Return
1057 unique_xmalloc_ptr.
1058 (gdbscm_scm_to_host_string): Likewise.
1059
a1a31cb8
TT
10602018-07-17 Tom Tromey <tom@tromey.com>
1061
1062 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1063 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1064 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1065 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1066 unique_xmalloc_ptr.
1067
15bf3002
TT
10682018-07-17 Tom Tromey <tom@tromey.com>
1069
1070 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1071 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1072 Update.
1073 * guile/scm-cmd.c (cmdscm_function): Update.
1074 * guile/scm-pretty-print.c
1075 (ppscm_print_exception_unless_memory_error): Update.
1076 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1077 Return unique_xmalloc_ptr.
1078
7eb1a66c
TT
10792018-07-17 Tom Tromey <tom@tromey.com>
1080
1081 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1082 Use string_printf.
1083
ce73f310
JW
10842018-07-17 Jim Wilson <jimw@sifive.com>
1085
27724bad
JW
1086 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1087 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1088 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1089 unecessary braces after EF_RISCV_RVC test. Delete call to
1090 set_gdbarch_decr_pc_after_break.
1091
ce73f310
JW
1092 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1093 RISCV_LAST_FP_REGNUM + 1.
1094 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1095
056dec39
TT
10962018-07-17 Tom Tromey <tom@tromey.com>
1097
1098 * configure.ac: Remove --disable-gdbcli.
1099 * configure: Rebuild.
1100 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1101 (SUBDIR_CLI_CFLAGS): Remove.
1102 (SFILES): Use SUBDIR_CLI_SRCS.
1103 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1104
4735f0ed
TT
11052018-07-17 Tom Tromey <tom@tromey.com>
1106
1107 PR gdb/18624:
1108 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1109
117a0e99
JW
11102018-07-16 Jim Wilson <jimw@sifive.com>
1111
1112 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1113
8a67aaa8
SM
11142018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1115
1116 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1117 variable.
1118 (libunwind_frame_sniffer): Likewise.
1119 (libunwind_frame_prev_register): Likewise.
1120 (libunwind_sigtramp_frame_sniffer): Likewise.
1121 * ia64-tdep.c (ia64_access_reg): Likewise.
1122 (ia64_access_rse_reg): Likewise.
1123 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1124 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1125
ec74dcd8
SM
11262018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1127
1128 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1129
a700e753
SM
11302018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1131
1132 * remote-sim.c (gdbsim_target::close,
1133 gdbsim_target::mourn_inferior): Remove unused variables.
1134
8b411ff8
SM
11352018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * ia64-tdep.c (ktab_buf): New global.
1138 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1139 (get_kernel_table): Adjust.
1140
edb0470b
TT
11412018-07-16 Tom Tromey <tom@tromey.com>
1142
1143 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1144 * dwarf2read.c (using_directives, new_symbol): Use
1145 outermost_context_p.
1146 * dbxread.c (process_one_symbol): Use outermost_context_p.
1147 * coffread.c (coff_symtab_read): Use outermost_context_p.
1148
6cccc9a8
TT
11492018-07-16 Tom Tromey <tom@tromey.com>
1150
1151 * dwarf2read.c (using_directives, read_func_scope)
1152 (read_lexical_block_scope): Update.
1153 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1154 * buildsym.h (local_using_directives, global_using_directives):
1155 Don't declare.
1156 (get_local_using_directives, set_local_using_directives)
1157 (get_global_using_directives): Declare.
1158 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1159 m_global_using_directives>: New members.
1160 (finish_block_internal, prepare_for_building)
1161 (reset_symtab_globals, end_symtab_get_static_block)
1162 (push_context): Update.
1163 (get_local_using_directives, set_local_using_directives)
1164 (get_global_using_directives): New functions.
1165 (buildsym_init): Update.
1166
652788a7
TT
11672018-07-16 Tom Tromey <tom@tromey.com>
1168
1169 * xcoffread.c (xcoff_initial_scan): Don't call
1170 free_pending_blocks.
1171 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1172 * buildsym.h (class scoped_free_pendings): Add constructor.
1173 (free_pending_blocks): Don't declare.
1174 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1175 (free_pending_blocks): Now static.
1176
8419ee53
TT
11772018-07-16 Tom Tromey <tom@tromey.com>
1178
1179 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1180 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1181 member.
1182 (struct subfile_stack): Remove.
1183 (subfile_stack): Remove.
1184 (push_subfile, pop_subfile, buildsym_init): Update.
1185
ccdac490
TT
11862018-07-16 Tom Tromey <tom@tromey.com>
1187
1188 * buildsym.c (push_subfile): Use gdb_assert.
1189 (pop_subfile): Use gdb_assert.
1190
43130d6f
TT
11912018-07-16 Tom Tromey <tom@tromey.com>
1192
1193 * buildsym.h (merge_symbol_lists): Remove.
1194 * buildsym.c (merge_symbol_lists): Remove.
1195
77d6f1aa
TT
11962018-07-16 Tom Tromey <tom@tromey.com>
1197
1198 * stabsread.c (scan_file_globals): Update comment.
1199 * stabsread.h (scan_file_globals): Move from buildsym.h.
1200 * buildsym.h (scan_file_globals): Move to stabsread.h.
1201
2c722d18
TT
12022018-07-16 Tom Tromey <tom@tromey.com>
1203
1204 * xcoffread.c (xcoff_new_init): Update.
1205 * mipsread.c (mipscoff_new_init): Update.
1206 * mdebugread.c (mdebug_build_psymtabs): Update.
1207 * elfread.c (elf_new_init): Update.
1208 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1209 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1210 * buildsym.h (buildsym_new_init): Don't declare.
1211 * buildsym.c (buildsym_new_init): Remove.
1212
5985ac61
TT
12132018-07-16 Tom Tromey <tom@tromey.com>
1214
1215 * stabsread.h (within_function): Move from buildsym.h.
1216 * stabsread.c (start_stabs): Clear within_function.
1217 * coffread.c (coff_start_symtab): Clear within_function.
1218 * buildsym.h (within_function): Move to stabsread.h.
1219 * buildsym.c (prepare_for_building): Update.
1220
6b84eeb2
TT
12212018-07-16 Tom Tromey <tom@tromey.com>
1222
1223 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1224 * dwarf2read.c (dwarf2_start_symtab): Don't set
1225 processing_gcc_compilation.
1226 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1227
2150c3ef
TT
12282018-07-16 Tom Tromey <tom@tromey.com>
1229
1230 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1231 (next_symbol_text_func): Move from buildsym.h.
1232 * stabsread.c (hashname): Move from buildsym.c.
1233 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1234 (next_symbol_text_func, hashname): Move to stabsread.h.
1235 * buildsym.c: Don't include bcache.h
1236 (hashname): Move to stasbread.c.
1237
0ec44fc0
TT
12382018-07-16 Tom Tromey <tom@tromey.com>
1239
1240 * buildsym.h (context_stack_size): Don't declare.
1241 * buildsym.c (context_stack_size): New global.
1242
81cc346d
TT
12432018-07-16 Tom Tromey <tom@tromey.com>
1244
1245 * dbxread.c (processing_acc_compilation): New global.
1246 * buildsym.h (processing_acc_compilation): Don't declare.
1247
2c99ee5c
TT
12482018-07-16 Tom Tromey <tom@tromey.com>
1249
1250 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1251 * dbxread.c (read_ofile_symtab): Update.
1252 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1253 * buildsym.h (last_source_start_addr): Remove.
1254 (set_last_source_start_addr, get_last_source_start_addr):
1255 Declare.
1256 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1257 parameter.
1258 (struct buildsym_compunit) <m_last_source_start_addr>: New
1259 member.
1260 (prepare_for_building): Remove start_addr parameter.
1261 (start_symtab, restart_symtab, end_symtab_get_static_block)
1262 (end_symtab_with_blockvector): Update.
1263 (set_last_source_start_addr, get_last_source_start_addr): New
1264 functions.
1265
530fedbc
TT
12662018-07-16 Tom Tromey <tom@tromey.com>
1267
1268 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1269 member.
1270 (have_line_numbers): Remove.
1271 (record_line, prepare_for_building, end_symtab_get_static_block)
1272 (augment_type_symtab): Update.
1273
6a976300
TT
12742018-07-16 Tom Tromey <tom@tromey.com>
1275
1276 * buildsym.c (~buildsym_compunit): Free the macro table.
1277 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1278 methods.
1279 <m_pending_macros>: New member.
1280 (pending_macros): Remove.
1281 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1282 (reset_symtab_globals, end_symtab_get_static_block)
1283 (end_symtab_with_blockvector, augment_type_symtab)
1284 (buildsym_init): Update.
1285
c0015d44
TT
12862018-07-16 Tom Tromey <tom@tromey.com>
1287
1288 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1289 parameter.
1290 (buildsym_compunit::set_last_source_file): New method.
1291 <m_last_source_file>: New member.
1292 (prepare_for_building): Remove "name" parameter.
1293 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1294 (last_source_file): Remove.
1295 (set_last_source_file, get_last_source_file): Update.
1296
e62cca7c
TT
12972018-07-16 Tom Tromey <tom@tromey.com>
1298
1299 * buildsym.c (prepare_for_building): Add assert.
1300
905eb0e2
TT
13012018-07-16 Tom Tromey <tom@tromey.com>
1302
1303 * buildsym.c (~buildsym_compunit): Update.
1304 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1305 (start_subfile, patch_subfile_names)
1306 (end_symtab_with_blockvector): Update.
1307
b248663f
TT
13082018-07-16 Tom Tromey <tom@tromey.com>
1309
1310 * buildsym.c (struct buildsym_compunit): Add constructor,
1311 destructor, initializers.
1312 (start_buildsym_compunit): Remove.
1313 (free_buildsym_compunit): Use "delete".
1314 (start_symtab, restart_symtab): Use "new".
1315
ff27d073
SM
13162018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1317
1318 * symfile.c (set_objfile_default_section_offset): Remove struct
1319 keyword.
1320
6a15ecf5
SH
13212018-07-14 Stafford Horne <shorne@gmail.com>
1322
1323 * (Responsible Maintainers): Add myself as or1k maintainer.
1324
027a4c30
TT
13252018-07-13 Tom Tromey <tom@tromey.com>
1326
1327 * symfile.c (set_objfile_default_section_offset): Use extra braces
1328 around initializer.
1329
5c1eda30
AA
13302018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1331
1332 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1333 non-branching basr.
1334
bc7b042b
PW
13352018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1336
1337 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1338 unittests/cli-utils-selftests.c
1339 * unittests/cli-utils-selftests.c: New file.
1340
a14c4daa
PW
13412018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1342
1343 * NEWS: Mention new commands. Mention change to 'thread apply'.
1344
1fe75df7
PW
13452018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1346
1347 * thread.c (thr_try_catch_cmd): New function.
1348 (thread_apply_all_command): Handle qcs flags.
1349 (thread_apply_command): Handle qcs flags.
1350 (taas_command): New function.
1351 (tfaas_command): New function.
1352 (_initialize_thread): Update to setup the new commands 'taas
1353 and 'tfaas'. Change doc string for 'thread apply'.
1354
6a70eb7d
PW
13552018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1356
1357 * stack.c: (trailing_outermost_frame): New function, mostly
1358 extracted from backtrace_command_1.
1359 (leading_innermost_frame): New function.
1360 (backtrace_command_1): Update to call trailing_outermost_frame.
1361 (frame_apply_command_count): New function.
1362 (frame_apply_level_command): New function.
1363 (frame_apply_all_command): New function.
1364 (frame_apply_command): New function.
1365 (faas_command): New function.
1366 (frame_cmd_list): New variable.
1367 (_initialize_stack): Update to setup the new commands 'frame apply'
1368 and 'faas'.
1369
529c08b2
PW
13702018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1371
1372 * cli-utils.c (number_or_range_parser::get_number): Only handle
1373 numbers or convenience var as numbers.
1374 (parse_flags): New function.
1375 (parse_flags_qcs): New function.
1376 (number_or_range_parser::finished): Ensure parsing end is detected
1377 before end of string.
1378 * cli-utils.h (parse_flags): New function.
1379 (parse_flags_qcs): New function.
1380 (number_or_range_parser): Remove m_finished bool.
1381 (number_or_range_parser::skip_range): Set m_in_range to false.
1382
64b58472
SDJ
13832018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
1384
1385 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
1386 on Windows.
1387
c7ab0aef
SDJ
13882018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1389 Jan Kratochvil <jan.kratochvil@redhat.com>
1390 Paul Fertser <fercerpav@gmail.com>
1391 Tsutomu Seki <sekiriki@gmail.com>
1392 Pedro Alves <palves@redhat.com>
1393
1394 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1395 'unittests/parse-connection-spec-selftests.c'.
1396 (COMMON_SFILES): Add 'common/netstuff.c'.
1397 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
1398 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
1399 * common/netstuff.c: New file.
1400 * common/netstuff.h: New file.
1401 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
1402 (wait_for_connect): Update comment. New parameter
1403 'gdb::optional<int> sock' instead of 'struct serial *scb'.
1404 Use 'sock' directly instead of 'scb->fd'.
1405 (try_connect): New function, with code from 'net_open'.
1406 (net_open): Rewrite main loop to deal with multiple
1407 sockets/addresses. Handle IPv6-style hostnames; implement
1408 support for IPv6 connections.
1409 * unittests/parse-connection-spec-selftests.c: New file.
1410
4c7333b3
PA
14112018-07-11 Pedro Alves <palves@redhat.com>
1412
1413 PR gdb/23377
1414 * remote.c (remote_target::remote_detach_pid): Call
1415 set_current_process.
1416
a6f88f6e
PA
14172018-07-11 Pedro Alves <palves@redhat.com>
1418
1419 * h8300-tdep.c (h8300_gdbarch_init): Remove
1420 set_gdbarch_ecoff_reg_to_regnum calls.
1421
16ff70dd
SDJ
14222018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1423
1424 PR c++/23373
1425 * c-typeprint.c (c_type_print_base_struct_union): Don't print
1426 offsets/sizes for static members of a class/struct.
1427
12863263
AH
14282018-07-11 Alan Hayward <alan.hayward@arm.com>
1429
1430 * target-descriptions.c (tdesc_register_bitsize): Rename.
1431 * target-descriptions.h (tdesc_register_bitsize): Likewise.
1432 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
1433 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
1434
1123588c
TT
14352018-07-10 Tom Tromey <tom@tromey.com>
1436
1437 * breakpoint.c (moribund_locations): Now static and a
1438 std::vector.
1439 (breakpoint_init_inferior, moribund_breakpoint_here_p)
1440 (build_bpstat_chain, update_global_location_list)
1441 (breakpoint_retire_moribund): Update.
1442 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
1443 VEC.
1444
8c49aa89
AB
14452018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
1448 (riscv_register_reggroup_p): Use new function, remove unneeded
1449 parenthesis.
1450 (riscv_push_dummy_call): Extend assert to compare against xlen or
1451 flen based on register type.
1452
42ecac17
AB
14532018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
1456
055303e2
AB
14572018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * remote.c (show_hardware_watchpoint_limit): New function.
1460 (show_hardware_watchpoint_length_limit): New function.
1461 (show_hardware_breakpoint_limit): New function.
1462 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
1463 where appropriate, update help text.
1464
8fd32c1c
TT
14652018-07-09 Tom Tromey <tom@tromey.com>
1466
1467 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
1468 (CLIBS): Don't mention NAT_CLIBS.
1469
31278b51
TT
14702018-07-09 Tom Tromey <tom@tromey.com>
1471
1472 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
1473 (LIBGDB_OBS, clean mostlyclean): Update.
1474 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
1475
e5fd1493
TT
14762018-07-09 Tom Tromey <tom@tromey.com>
1477
1478 * Makefile.in (%.c: %.y): Use ECHO_YACC.
1479 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
1480 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
1481
981e0c0c
TT
14822018-07-09 Tom Tromey <tom@tromey.com>
1483
1484 * Makefile.in (ALLDEPFILES): Remove exec.c.
1485 (COMMON_OBS): Remove exec.o.
1486 (COMMON_SFILES): Add exec.c.
1487
14ccceb2
TT
14882018-07-09 Tom Tromey <tom@tromey.com>
1489
1490 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
1491
5d3c3a68
TT
14922018-07-09 Tom Tromey <tom@tromey.com>
1493
1494 * Makefile.in (clean mostlyclean): Remove stamp-version.
1495 (version.c): Depend on stamp-version.
1496 (stamp-version): New rule, from version.c rule.
1497
1998086d
TT
14982018-07-09 Tom Tromey <tom@tromey.com>
1499
1500 * Makefile.in (init.c): Depend on stamp-init.
1501 (stamp-init): New rule, from init.c rule.
1502 (clean mostlyclean): Remove stamp-init.
1503
4c754949
TT
15042018-07-09 Tom Tromey <tom@tromey.com>
1505
1506 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
1507 SUBDIR_GCC_COMPILE_SRCS.
1508
6497f1dd
TT
15092018-07-09 Tom Tromey <tom@tromey.com>
1510
1511 * Makefile.in (init.c): Remove some unused sed rules.
1512
97a34db9
TT
15132018-07-09 Tom Tromey <tom@tromey.com>
1514
1515 * Makefile.in (TSOBS): Remove.
1516 (INIT_FILES): Update.
1517 (LIBGDB_OBS): Update.
1518 (COMMON_SFILES): Add inflow.c.
1519 (SFILES): Remove inflow.c.
1520
25289ac1
JK
15212018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1522
1523 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
1524
e83f4d97
SM
15252018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
1526
4869c585
SM
1527 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
1528 get_saveloc_name, is_signal_frame_name, step_name,
1529 init_remote_name, create_addr_space_name,
1530 destroy_addr_space_name, search_unwind_table_name,
1531 find_dyn_list_name): Constify.
e83f4d97 1532
6821842f
SM
15332018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * darwin-nat.c (darwin_pthread_kill): New function.
1536 (darwin_resume_thread): Use darwin_pthread_kill.
1537
c530603c
TV
15382018-07-05 Tom de Vries <tdevries@suse.de>
1539
1540 * macroexp.c (macro_buffer) <operator=>: New member function.
1541
a7d0f0f0
TT
15422018-07-04 Tom Tromey <tom@tromey.com>
1543
1544 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
1545
6242c6a6
SM
15462018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
1547
1548 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
1549 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
1550 * maint.c: Likewise.
1551 * top.c: Likewise.
1552
4e5b2f89
JB
15532018-07-04 Joel Brobecker <brobecker@adacore.com>
1554
1555 * NEWS: Create a new section for the next release branch.
1556 Rename the section of the current branch, now that it has
1557 been cut.
1558
538ccc4a
JB
15592018-07-04 Joel Brobecker <brobecker@adacore.com>
1560
1561 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
1562 * version.in: Bump version to 8.2.50.DATE-git.
1563
1b919490
VB
15642018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1565 Pedro Alves <palves@redhat.com>
1566
1567 * linux-nat.c (linux_init_ptrace): Rename to ...
1568 (linux_init_ptrace_procfs): ... this. Call
1569 linux_proc_init_warnings.
1570 (linux_nat_target::post_attach)
1571 (linux_nat_target::post_startup_inferior): Adjust.
1572 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
1573 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
1574
1ea5da02
TV
15752018-07-04 Tom de Vries <tdevries@suse.de>
1576
1577 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
1578 check ...
1579 (read_comp_unit_head): ... here.
1580
f51e0e20
TT
15812018-07-03 Tom Tromey <tom@tromey.com>
1582
1583 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
1584 (stop_tracing, tstatus_command)
1585 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
1586 (print_one_static_tracepoint_marker): Update.
1587 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
1588 std::vector.
1589 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
1590 VEC.
1591 (all_tracepoints, static_tracepoints_here): Return std::vector.
1592
d7e15655
TT
15932018-07-03 Tom Tromey <tom@tromey.com>
1594
1595 * common/ptid.c (ptid_equal): Remove.
1596 * common/ptid.h (ptid_equal): Don't declare.
1597 * ada-tasks.c: Update.
1598 * breakpoint.c: Update.
1599 * common/agent.c: Update.
1600 * corelow.c: Update.
1601 * darwin-nat-info.c: Update.
1602 * darwin-nat.c: Update.
1603 * dcache.c: Update.
1604 * dtrace-probe.c: Update.
1605 * dummy-frame.c: Update.
1606 * fbsd-nat.c: Update.
1607 * frame.c: Update.
1608 * gdbthread.h: Update.
1609 * gnu-nat.c: Update.
1610 * go32-nat.c: Update.
1611 * inf-loop.c: Update.
1612 * inf-ptrace.c: Update.
1613 * infcall.c: Update.
1614 * infcmd.c: Update.
1615 * inflow.c: Update.
1616 * infrun.c: Update.
1617 * linux-fork.c: Update.
1618 * linux-nat.c: Update.
1619 * linux-thread-db.c: Update.
1620 * mi/mi-cmd-var.c: Update.
1621 * mi/mi-interp.c: Update.
1622 * mi/mi-main.c: Update.
1623 * nto-procfs.c: Update.
1624 * ppc-linux-tdep.c: Update.
1625 * procfs.c: Update.
1626 * python/py-inferior.c: Update.
1627 * python/py-record-btrace.c: Update.
1628 * python/py-record.c: Update.
1629 * ravenscar-thread.c: Update.
1630 * regcache.c: Update.
1631 * remote-sim.c: Update.
1632 * remote.c: Update.
1633 * sol-thread.c: Update.
1634 * solib.c: Update.
1635 * target.c: Update.
1636 * tui/tui-stack.c: Update.
1637 * varobj.c: Update.
1638 * windows-nat.c: Update.
1639 * windows-tdep.c: Update.
1640
26a57c92
TT
16412018-07-03 Tom Tromey <tom@tromey.com>
1642
1643 * common/ptid.c (ptid_match): Remove.
1644 * common/ptid.h (ptid_match): Don't declare.
1645 * fbsd-nat.c: Update.
1646 * infcmd.c: Update.
1647 * infrun.c: Update.
1648 * linux-nat.c: Update.
1649 * record-btrace.c: Update.
1650 * regcache.c: Update.
1651 * remote.c: Update.
1652
d2a107e3
TT
16532018-07-03 Tom Tromey <tom@tromey.com>
1654
1655 * common/ptid.c (ptid_tid_p): Remove.
1656 * common/ptid.h (ptid_tid_p): Don't declare.
1657 * sol-thread.c: Update.
1658
15a9e13e
TT
16592018-07-03 Tom Tromey <tom@tromey.com>
1660
1661 * common/ptid.c (ptid_lwp_p): Remove.
1662 * common/ptid.h (ptid_lwp_p): Don't declare.
1663 * fbsd-nat.c: Update.
1664 * linux-nat.c: Update.
1665 * nat/linux-procfs.c: Update.
1666 * nat/x86-linux-dregs.c: Update.
1667 * sol-thread.c: Update.
1668
0e998d96
TT
16692018-07-03 Tom Tromey <tom@tromey.com>
1670
1671 * common/ptid.c (ptid_is_pid): Remove.
1672 * common/ptid.h (ptid_is_pid): Don't declare.
1673 * infrun.c: Update.
1674 * linux-nat.c: Update.
1675 * mi/mi-interp.c: Update.
1676 * remote.c: Update.
1677 * thread.c: Update.
1678
cc6bcb54
TT
16792018-07-03 Tom Tromey <tom@tromey.com>
1680
1681 * common/ptid.c (ptid_get_tid): Remove.
1682 * common/ptid.h (ptid_get_tid): Don't declare.
1683 * ada-tasks.c: Update.
1684 * aix-thread.c: Update.
1685 * bsd-uthread.c: Update.
1686 * darwin-nat.c: Update.
1687 * fbsd-nat.c: Update.
1688 * i386-darwin-nat.c: Update.
1689 * infrun.c: Update.
1690 * linux-tdep.c: Update.
1691 * nto-procfs.c: Update.
1692 * ppc-ravenscar-thread.c: Update.
1693 * python/py-infthread.c: Update.
1694 * ravenscar-thread.c: Update.
1695 * sol-thread.c: Update.
1696 * sparc-ravenscar-thread.c: Update.
1697 * windows-nat.c: Update.
1698
e38504b3
TT
16992018-07-03 Tom Tromey <tom@tromey.com>
1700
1701 * common/ptid.c (ptid_get_lwp): Remove.
1702 * common/ptid.h (ptid_get_lwp): Don't declare.
1703 * aarch64-linux-nat.c: Update.
1704 * ada-tasks.c: Update.
1705 * aix-thread.c: Update.
1706 * amd64-linux-nat.c: Update.
1707 * arm-linux-nat.c: Update.
1708 * corelow.c: Update.
1709 * fbsd-nat.c: Update.
1710 * fbsd-tdep.c: Update.
1711 * gnu-nat.c: Update.
1712 * i386-cygwin-tdep.c: Update.
1713 * i386-gnu-nat.c: Update.
1714 * i386-linux-nat.c: Update.
1715 * ia64-linux-nat.c: Update.
1716 * inf-ptrace.c: Update.
1717 * infrun.c: Update.
1718 * linux-fork.c: Update.
1719 * linux-nat.c: Update.
1720 * linux-tdep.c: Update.
1721 * linux-thread-db.c: Update.
1722 * mips-linux-nat.c: Update.
1723 * nat/aarch64-linux-hw-point.c: Update.
1724 * nat/aarch64-linux.c: Update.
1725 * nat/linux-btrace.c: Update.
1726 * nat/linux-osdata.c: Update.
1727 * nat/linux-procfs.c: Update.
1728 * nat/x86-linux-dregs.c: Update.
1729 * obsd-nat.c: Update.
1730 * ppc-fbsd-nat.c: Update.
1731 * ppc-linux-nat.c: Update.
1732 * procfs.c: Update.
1733 * python/py-infthread.c: Update.
1734 * ravenscar-thread.c: Update.
1735 * remote.c: Update.
1736 * s390-linux-nat.c: Update.
1737 * sol-thread.c: Update.
1738 * sol2-tdep.c: Update.
1739 * spu-linux-nat.c: Update.
1740 * x86-linux-nat.c: Update.
1741 * xtensa-linux-nat.c: Update.
1742
e99b03dc
TT
17432018-07-03 Tom Tromey <tom@tromey.com>
1744
1745 * common/ptid.c (ptid_get_pid): Remove.
1746 * common/ptid.h (ptid_get_pid): Don't declare.
1747 * aarch64-linux-nat.c: Update.
1748 * ada-lang.c: Update.
1749 * aix-thread.c: Update.
1750 * alpha-bsd-nat.c: Update.
1751 * amd64-fbsd-nat.c: Update.
1752 * amd64-linux-nat.c: Update.
1753 * arm-linux-nat.c: Update.
1754 * arm-nbsd-nat.c: Update.
1755 * auxv.c: Update.
1756 * break-catch-syscall.c: Update.
1757 * breakpoint.c: Update.
1758 * bsd-uthread.c: Update.
1759 * corelow.c: Update.
1760 * ctf.c: Update.
1761 * darwin-nat.c: Update.
1762 * fbsd-nat.c: Update.
1763 * fbsd-tdep.c: Update.
1764 * gcore.c: Update.
1765 * gnu-nat.c: Update.
1766 * hppa-nbsd-nat.c: Update.
1767 * hppa-obsd-nat.c: Update.
1768 * i386-fbsd-nat.c: Update.
1769 * ia64-linux-nat.c: Update.
1770 * inf-ptrace.c: Update.
1771 * infcmd.c: Update.
1772 * inferior.c: Update.
1773 * inferior.h: Update.
1774 * inflow.c: Update.
1775 * infrun.c: Update.
1776 * linux-fork.c: Update.
1777 * linux-nat.c: Update.
1778 * linux-tdep.c: Update.
1779 * linux-thread-db.c: Update.
1780 * m68k-bsd-nat.c: Update.
1781 * mi/mi-interp.c: Update.
1782 * mi/mi-main.c: Update.
1783 * mips-linux-nat.c: Update.
1784 * mips-nbsd-nat.c: Update.
1785 * mips64-obsd-nat.c: Update.
1786 * nat/aarch64-linux-hw-point.c: Update.
1787 * nat/aarch64-linux.c: Update.
1788 * nat/linux-btrace.c: Update.
1789 * nat/linux-osdata.c: Update.
1790 * nat/linux-procfs.c: Update.
1791 * nat/x86-linux-dregs.c: Update.
1792 * nto-procfs.c: Update.
1793 * obsd-nat.c: Update.
1794 * ppc-linux-nat.c: Update.
1795 * ppc-nbsd-nat.c: Update.
1796 * ppc-obsd-nat.c: Update.
1797 * proc-service.c: Update.
1798 * procfs.c: Update.
1799 * python/py-inferior.c: Update.
1800 * python/py-infthread.c: Update.
1801 * ravenscar-thread.c: Update.
1802 * record.c: Update.
1803 * remote-sim.c: Update.
1804 * remote.c: Update.
1805 * rs6000-nat.c: Update.
1806 * s390-linux-nat.c: Update.
1807 * sh-nbsd-nat.c: Update.
1808 * sol-thread.c: Update.
1809 * sparc-nat.c: Update.
1810 * sparc64-tdep.c: Update.
1811 * spu-linux-nat.c: Update.
1812 * spu-tdep.c: Update.
1813 * target-debug.h: Update.
1814 * target.c: Update.
1815 * thread.c: Update.
1816 * tid-parse.c: Update.
1817 * tracefile-tfile.c: Update.
1818 * vax-bsd-nat.c: Update.
1819 * windows-nat.c: Update.
1820 * x86-linux-nat.c: Update.
1821 * x86-nat.c: Update.
1822
f2907e49
TT
18232018-07-03 Tom Tromey <tom@tromey.com>
1824
1825 * common/ptid.c (pid_to_ptid): Remove.
1826 * common/ptid.h (pid_to_ptid): Don't declare.
1827 * aix-thread.c: Update.
1828 * arm-linux-nat.c: Update.
1829 * common/ptid.c: Update.
1830 * common/ptid.h: Update.
1831 * corelow.c: Update.
1832 * ctf.c: Update.
1833 * darwin-nat.c: Update.
1834 * fbsd-nat.c: Update.
1835 * fork-child.c: Update.
1836 * gnu-nat.c: Update.
1837 * go32-nat.c: Update.
1838 * inf-ptrace.c: Update.
1839 * infcmd.c: Update.
1840 * inferior.c: Update.
1841 * infrun.c: Update.
1842 * linux-fork.c: Update.
1843 * linux-nat.c: Update.
1844 * nat/aarch64-linux-hw-point.c: Update.
1845 * nat/fork-inferior.c: Update.
1846 * nat/x86-linux-dregs.c: Update.
1847 * nto-procfs.c: Update.
1848 * obsd-nat.c: Update.
1849 * procfs.c: Update.
1850 * progspace.c: Update.
1851 * remote.c: Update.
1852 * rs6000-nat.c: Update.
1853 * s390-linux-nat.c: Update.
1854 * sol-thread.c: Update.
1855 * spu-linux-nat.c: Update.
1856 * target.c: Update.
1857 * top.c: Update.
1858 * tracefile-tfile.c: Update.
1859 * windows-nat.c: Update.
1860
fd79271b
TT
18612018-07-03 Tom Tromey <tom@tromey.com>
1862
1863 * common/ptid.h (ptid_build): Don't declare.
1864 * common/ptid.c (ptid_build): Remove.
1865 * aix-thread.c: Update.
1866 * bsd-kvm.c: Update.
1867 * bsd-uthread.c: Update.
1868 * common/agent.c: Update.
1869 * common/ptid.c: Update.
1870 * common/ptid.h: Update.
1871 * corelow.c: Update.
1872 * darwin-nat.c: Update.
1873 * fbsd-nat.c: Update.
1874 * gnu-nat.c: Update.
1875 * linux-fork.c: Update.
1876 * linux-nat.c: Update.
1877 * linux-thread-db.c: Update.
1878 * nat/linux-osdata.c: Update.
1879 * nat/linux-procfs.c: Update.
1880 * nto-procfs.c: Update.
1881 * obsd-nat.c: Update.
1882 * proc-service.c: Update.
1883 * procfs.c: Update.
1884 * ravenscar-thread.c: Update.
1885 * remote-sim.c: Update.
1886 * remote.c: Update.
1887 * sol-thread.c: Update.
1888 * target.c: Update.
1889 * windows-nat.c: Update.
1890
057302ce
TT
18912018-07-03 Tom Tromey <tom@tromey.com>
1892
1893 * infrun.c (follow_exec): Use exit_inferior_silent.
1894 * inferior.c (exit_inferior_num_silent): Remove.
1895 * inferior.h (exit_inferior_num_silent): Don't declare.
1896
a50c11c6
TT
18972018-07-03 Tom Tromey <tom@tromey.com>
1898
1899 PR cli/23340:
1900 * darwin-nat.c (darwin_attach_pid): Reset inferior and
1901 inferior_ptid on error.
1902
471b9d15
MR
19032018-07-02 Maciej W. Rozycki <macro@mips.com>
1904 Simon Marchi <simon.marchi@polymtl.ca>
1905
1906 PR tdep/8282
1907 * disasm.h (gdb_disassembler): Add
1908 `m_disassembler_options_holder'. member
1909 * disasm.c (get_all_disassembler_options): New function.
1910 (gdb_disassembler::gdb_disassembler): Use it.
1911 (gdb_buffered_insn_length_init_dis): Likewise.
1912 (gdb_buffered_insn_length): Adjust accordingly.
1913 (set_disassembler_options): Handle options with arguments.
1914 (show_disassembler_options_sfunc): Likewise. Add a leading new
1915 line if showing options with descriptions.
1916 (disassembler_options_completer): Adapt to using the
1917 `disasm_options_and_args_t' structure.
1918 * mips-tdep.c (mips_disassembler_options): New variable.
1919 (mips_disassembler_options_o32): Likewise.
1920 (mips_disassembler_options_n32): Likewise.
1921 (mips_disassembler_options_n64): Likewise.
1922 (gdb_print_insn_mips): Don't set `disassembler_options'.
1923 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
1924 functions.
1925 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
1926 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
1927 `gdbarch_disassembler_options_implicit' and
1928 `gdbarch_valid_disassembler_options'.
1929 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
1930 `disasm_options_and_args_t' structure.
1931 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
1932 method.
1933 (valid_disassembler_options): Switch from `disasm_options_t' to
1934 the `disasm_options_and_args_t' structure.
1935 * NEWS: Document `set disassembler-options' support for the MIPS
1936 target.
1937 * gdbarch.h: Regenerate.
1938 * gdbarch.c: Regenerate.
1939
41823f29
SH
19402018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1941
1942 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
1943
41206e32
JB
19442018-06-29 Joel Brobecker <brobecker@adacore.com>
1945
1946 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
1947 parameter in call to amd64_target_description.
1948 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
1949 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
1950 (amd64fbsd_init_abi): Likewise.
1951 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1952 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
1953 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
1954 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
1955
de52b960
PA
19562018-06-29 Pedro Alves <palves@redhat.com>
1957
1958 * gdb/amd64-tdep.h (amd64_create_target_description): Add
1959 "segments" parameter.
1960 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
1961 (_initialize_amd64_tdep): Update call to
1962 amd64_create_target_description.
1963 (amd64_target_description): Add "segments" parameter. Adjust
1964 the implementation to use it.
1965 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
1966 call to amd64_create_target_description.
1967 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
1968 * gdb/arch/amd64.h (amd64_create_target_description): Add
1969 "segments" register.
1970 * gdb/arch/amd64.c (amd64_create_target_description): Add
1971 "segments" parameter. Call create_feature_i386_64bit_segments
1972 only if SEGMENTS is true.
1973 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
1974 call to amd64_create_target_description.
1975
75acb486
PA
19762018-06-29 Pedro Alves <palves@redhat.com>
1977
1978 * thread.c (thread_target_id_str): New, factored out from ...
1979 (print_thread_info_1): ... here. Use it to compute the max
1980 "Target Id" column width.
1981
c76a8ea3
PA
19822018-06-29 Pedro Alves <palves@redhat.com>
1983
1984 * remote.c (remote_target::extra_thread_info): Delete
1985 'display_buf' and 'n' locals. from the cache, regardless of
1986 packet mechanims is in use. Use cache for qThreadExtra and qP
1987 methods too.
1988
cd2bb709
PA
19892018-06-29 Pedro Alves <palves@redhat.com>
1990
1991 * blockframe.c (find_pc_sect_containing_function): New function.
1992 * breakpoint.c (print_breakpoint_location): Don't call
1993 find_pc_sect_function.
1994 * linespec.c (create_sals_line_offset): Record the location's
1995 symbol in the sal.
1996 * linespec.c (convert_address_location_to_sals): Fill in sal's
1997 symbol with find_pc_sect_containing_function.
1998 * symtab.c (find_function_start_sal): Rename to ...
1999 (find_function_start_sal_1): ... this.
2000 (find_function_start_sal): Reimplement as wrapper around
2001 find_function_start_sal_1, and use
2002 find_pc_sect_containing_function to fill in the sal's symbol.
2003 (find_function_start_sal(symbol*, bool)): Adjust.
2004 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2005 comments.
2006 (find_pc_sect_containing_function): Declare.
2007
991ff292
PA
20082018-06-29 Pedro Alves <palves@redhat.com>
2009
2010 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2011 true if the the location has no symbol.
2012
44cee4fd
TT
20132018-06-28 Tom Tromey <tom@tromey.com>
2014
2015 * NEWS: Mention --enable-codesign.
2016 * silent-rules.mk (ECHO_SIGN): New variable.
2017 * configure.ac: Add --enable-codesign.
2018 * configure: Rebuild.
2019 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2020 (gdb$(EXEEXT)): Optionally invoke codesign.
2021
f2ffa92b
PA
20222018-06-28 Pedro Alves <palves@redhat.com>
2023
2024 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2025 comments.
2026 (switch_to_thread_no_regs): Adjust comment.
2027 * infcmd.c (stop_pc): Delete.
2028 (post_create_inferior, info_program_command): Replace references
2029 to stop_pc with references to thread_info->suspend.stop_pc.
2030 * inferior.h (stop_pc): Delete declaration.
2031 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2032 (handle_inferior_event_1, handle_signal_stop)
2033 (process_event_stop_test, keep_going_stepped_thread)
2034 (handle_step_into_function, handle_step_into_function_backward)
2035 (print_stop_location): Replace references to stop_pc with
2036 references to thread_info->suspend.stop_pc.
2037 (struct infcall_suspend_state) <stop_pc>: Delete field.
2038 (save_infcall_suspend_state, restore_infcall_suspend_state):
2039 Remove references to inf_stat->stop_pc.
2040 * linux-fork.c (fork_load_infrun_state): Likewise.
2041 * record-btrace.c (record_btrace_set_replay): Likewise.
2042 * record-full.c (record_full_goto_entry): Likewise.
2043 * remote.c (print_one_stopped_thread): Likewise.
2044 * target.c (target_resume): Extend comment.
2045 * thread.c (set_executing_thread): New.
2046 (set_executing): Use it.
2047 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2048 Remove references to stop_pc.
2049
ecdc3a72
PA
20502018-06-28 Pedro Alves <palves@redhat.com>
2051
2052 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2053 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2054
d95d3aef
TT
20552018-06-28 Tom Tromey <tom@tromey.com>
2056
2057 * coffread.c (coff_symfile_finish): Update.
2058 * xcoffread.c (xcoff_symfile_finish): Update.
2059 * elfread.c (elf_symfile_finish): Update.
2060 * symfile.h (dwarf2_free_objfile): Don't declare.
2061 * dwarf2read.c (_initialize_dwarf2_read): Use
2062 register_objfile_data_with_cleanup.
2063 (dwarf2_free_objfile): Now static. Change signature.
2064
291f9a96
PT
20652018-06-28 Petr Tesarik <ptesarik@suse.cz>
2066
2067 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2068 option "-o" to add-symbol-file-load to add an offset to each
2069 section's load address.
2070 * symfile.c (set_objfile_default_section_offset): New function.
2071
d81a3eaf
PT
20722018-06-28 Petr Tesarik <ptesarik@suse.cz>
2073
2074 * symfile.c (add_symbol_file_command): Make sure that sections
2075 with the same name are sorted in the same order.
2076
ed6dfe51
PT
20772018-06-28 Petr Tesarik <ptesarik@suse.cz>
2078
2079 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2080 require the second argument. If omitted, load sections at the
2081 addresses specified in the file.
2082
d4d429d5
PT
20832018-06-28 Petr Tesarik <ptesarik@suse.cz>
2084
2085 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2086 (_initialize_symfile): Add option "-o" to symbol-file to add an
2087 offset to each section of the symbol file.
2088
39b27ab6
PT
20892018-06-28 Petr Tesarik <ptesarik@suse.cz>
2090
2091 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2092
41827fc3
TT
20932018-06-27 Tom Tromey <tom@tromey.com>
2094
2095 * stack.c (_initialize_stack): Update "func" help text.
2096
0c6aef22
TT
20972018-06-27 Tom Tromey <tom@tromey.com>
2098
2099 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2100 std::vector.
2101 (unwind_infopy_str, pyuw_create_unwind_info)
2102 (unwind_infopy_add_saved_register, pyuw_sniffer)
2103 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2104 Update.
2105 (struct saved_reg): Add constructor.
2106 <value>: Now a gdbpy_ref<>.
2107
63177289
TT
21082018-06-27 Tom Tromey <tom@tromey.com>
2109
2110 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2111
e76f78a0
SM
21122018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2113
2114 * gdb-gdb.py.in: Format using autopep8.
2115
9a14af7b
SM
21162018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2117
2118 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2119 (type_lookup_function): Recognize CORE_ADDR values.
2120
189366cd
SM
21212018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2122
2123 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2124 print tag_name.
2125
68ad5fb9
SM
21262018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2127
2128 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2129 <__lt__>: Add.
2130
141ec9f6
SM
21312018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2132
2133 * gdb-gdb.py: Move to...
2134 * gdb-gdb.py.in: ... here.
2135 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2136 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2137 dependencies.
2138 (distclean): Remove gdb-gdb.py when cleaning.
2139 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2140 * configure: Re-generate.
2141
4c4e7ad4
PA
21422018-06-27 Pedro Alves <palves@redhat.com>
2143
2144 * proc-service.c (get_ps_regcache): New.
2145 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2146 (ps_lsetfpregs): Use it.
2147
7ab6656f
OJ
21482018-06-27 Omair Javaid <omair.javaid@linaro.org>
2149
2150 PR gdb/21695
2151 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2152 (dwarf_decode_lines_1): Adjust.
2153
bd583225
SM
21542018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2155
2156 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2157 override.
2158 <info_proc>: Likewise.
2159
9a325b7b
JB
21602018-06-26 Joel Brobecker <brobecker@adacore.com>
2161
2162 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2163 to windows_fetch_one_register, and only handle the case of
2164 fetching one register. Move the code that reloads the context
2165 and iterates over all registers if R is negative to...
2166 (windows_nat_target::fetch_registers): ... here.
2167 (do_windows_store_inferior_registers): Rename to
2168 windows_store_one_register, and only handle the case of storing
2169 one register. Move the code that handles the case where r is
2170 negative to...
2171 (windows_nat_target::store_registers) ... here.
2172
a33ccfc7
TT
21732018-06-26 Tom Tromey <tom@tromey.com>
2174
2175 PR rust/22574:
2176 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2177 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2178 Update.
2179 (rust_internal_print_type): Add podata parameter.
2180 (rust_print_type): Update.
2181
e0c547d1
TT
21822018-06-26 Tom Tromey <tom@tromey.com>
2183
2184 * typeprint.h (struct print_offset_data) <update, finish,
2185 maybe_print_hole>: New methods.
2186 <indentation>: New constant.
2187 * typeprint.c (print_offset_data::indentation): Define.
2188 (print_offset_data::maybe_print_hole, print_offset_data::update)
2189 (print_offset_data::finish): Move from c-typeprint.c and rename.
2190 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2191 (print_spaces_filtered_with_print_options): Update.
2192 (c_print_type_union_field_offset, maybe_print_hole)
2193 (c_print_type_struct_field_offset): Move to typeprint.c and
2194 rename.
2195 (c_type_print_base_struct_union): Update.
2196
75cbc781
PA
21972018-06-25 Pedro Alves <palves@redhat.com>
2198
2199 * gdbthread.h (thread_info_ref, delete_thread)
2200 (delete_thread_silent, first_thread_of_inferior)
2201 (any_thread_of_inferior, switch_to_thread)
2202 (enable_thread_stack_temporaries)
2203 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2204 (get_last_thread_stack_temporary)
2205 (value_in_thread_stack_temporaries, can_access_registers_thread):
2206 Spell out "struct thread_info" instead of just "thread_info".
2207 * inferior.h (notice_new_inferior): Likewise.
2208
b7a08269
PA
22092018-06-25 Pedro Alves <palves@redhat.com>
2210
2211 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2212 pass thread_info pointer to delete_thread.
2213 (windows_nat_target::detach): Pass inferior pointer to
2214 detach_inferior.
2215 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2216 delete_thread.
2217 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2218 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2219 and pass a thread_info pointer to delete_thread.
2220 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2221 pass thread_info pointer to delete_thread.
2222 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2223 delete_thread_silent call.
2224 * procfs.c (procfs_target::detach): Pass inferior pointer to
2225 detach_inferior.
2226 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2227 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2228 delete_thread_silent call.
2229 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2230 pass thread_info pointer to delete_thread.
2231 (windows_nat_target::detach): Pass inferior pointer to
2232 delete_inferior.
2233
8e7767e3
AH
22342018-06-22 Alan Hayward <alan.hayward@arm.com>
2235
2236 * regcache.c (readable_regcache::read_part): Fix asserts.
2237 (reg_buffer::raw_collect_part): New function.
2238 (regcache::write_part): Fix asserts.
2239 (reg_buffer::raw_supply_part): New function.
2240 (regcache::transfer_regset_register): New helper function.
2241 (regcache::transfer_regset): Call new functions.
2242 (regcache_supply_regset): Use gdb_byte*.
2243 (regcache::supply_regset): Likewise.
2244 (regcache_collect_regset): Likewise.
2245 (regcache::collect_regset): Likewise.
2246 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2247 (reg_buffer::raw_supply_part): Likewise.
2248 (regcache::transfer_regset_register): Likewise.
2249 (regcache::transfer_regset): Use gdb_byte*.
2250
bfd60e34
AH
22512018-06-22 Alan Hayward <alan.hayward@arm.com>
2252
2253 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2254
00431a78
PA
22552018-06-21 Pedro Alves <palves@redhat.com>
2256
2257 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2258 instead of a ptid_t. All callers adjusted.
2259 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2260 adjusted.
2261 (print_ada_task_info, display_current_task_id, task_command_1):
2262 Adjust.
2263 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2264 inferior_thread.
2265 (breakpoint_kind): Adjust.
2266 (remove_breakpoints_pid): Rename to ...
2267 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2268 pointer. All callers adjusted.
2269 (bpstat_clear_actions): Use inferior_thread.
2270 (get_bpstat_thread): New.
2271 (bpstat_do_actions): Use it.
2272 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2273 to take a thread_info pointer. All callers adjusted.
2274 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2275 (breakpoint_re_set_thread): Use inferior_thread.
2276 * breakpoint.h (struct inferior): Forward declare.
2277 (bpstat_stop_status): Update.
2278 (remove_breakpoints_pid): Delete.
2279 (remove_breakpoints_inf): New.
2280 * bsd-uthread.c (bsd_uthread_target::wait)
2281 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2282 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2283 (maint_btrace_packet_history_cmd)
2284 (maint_btrace_clear_packet_history_cmd): Adjust.
2285 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2286 inferior_thread.
2287 * cli/cli-interp.c: Include "inferior.h".
2288 * common/refcounted-object.h (struct
2289 refcounted_object_ref_policy): New.
2290 * compile/compile-object-load.c: Include gdbthread.h.
2291 (store_regs): Use inferior_thread.
2292 * corelow.c (core_target::close): Use current_inferior.
2293 (core_target_open): Adjust to use first_thread_of_inferior and use
2294 the current inferior.
2295 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2296 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2297 <thread>: ... this new field. All references adjusted.
2298 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2299 Take a thread_info pointer instead of a ptid_t.
2300 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2301 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2302 thread_info pointer instead of a ptid_t.
2303 * elfread.c: Include "inferior.h".
2304 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2305 Use inferior_thread.
2306 * eval.c (evaluate_subexp): Likewise.
2307 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2308 inferior_thread.
2309 * gdb_proc_service.h (struct thread_info): Forward declare.
2310 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2311 <thread>: ... this new field. All references adjusted.
2312 * gdbarch.h, gdbarch.c: Regenerate.
2313 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2314 'thread' parameter. All implementations and callers adjusted.
2315 * gdbthread.h (thread_info) <set_running>: New method.
2316 (delete_thread, delete_thread_silent): Take a thread_info pointer
2317 instead of a ptid.
2318 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2319 (first_thread_of_process): Delete, replaced by ...
2320 (first_thread_of_inferior): ... this new function. All callers
2321 adjusted.
2322 (any_live_thread_of_process): Delete, replaced by ...
2323 (any_live_thread_of_inferior): ... this new function. All callers
2324 adjusted.
2325 (switch_to_thread, switch_to_no_thread): Declare.
2326 (is_executing): Delete.
2327 (enable_thread_stack_temporaries): Update comment.
2328 <enable_thread_stack_temporaries>: Take a thread_info pointer
2329 instead of a ptid_t. Incref the thread.
2330 <~enable_thread_stack_temporaries>: Decref the thread.
2331 <m_ptid>: Delete
2332 <m_thr>: New.
2333 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2334 (get_last_thread_stack_temporary)
2335 (value_in_thread_stack_temporaries, can_access_registers_thread):
2336 Take a thread_info pointer instead of a ptid_t. All callers
2337 adjusted.
2338 * infcall.c (get_call_return_value): Use inferior_thread.
2339 (run_inferior_call): Work with thread pointers instead of ptid_t.
2340 (call_function_by_hand_dummy): Work with thread pointers instead
2341 of ptid_t. Use thread_info_ref.
2342 * infcmd.c (proceed_thread_callback): Access thread's state
2343 directly.
2344 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2345 access thread's state directly.
2346 (continue_command): Use inferior_thread.
2347 (info_program_command): Use find_thread_ptid and access thread
2348 state directly.
2349 (proceed_after_attach_callback): Use thread state directly.
2350 (notice_new_inferior): Take a thread_info pointer instead of a
2351 ptid_t. All callers adjusted.
2352 (exit_inferior): Take an inferior pointer instead of a pid. All
2353 callers adjusted.
2354 (exit_inferior_silent): New.
2355 (detach_inferior): Delete.
2356 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2357 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2358 (detach_inferior_command, kill_inferior_command): Use
2359 find_inferior_id instead of valid_gdb_inferior_id and
2360 gdb_inferior_id_to_pid.
2361 (inferior_command): Use inferior and thread pointers.
2362 * inferior.h (struct thread_info): Forward declare.
2363 (notice_new_inferior): Take a thread_info pointer instead of a
2364 ptid_t. All callers adjusted.
2365 (detach_inferior): Delete declaration.
2366 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2367 instead of a pid. All callers adjusted.
2368 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2369 (valid_gdb_inferior_id): Delete.
2370 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2371 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2372 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
2373 ...
2374 <inf>: ... this new field.
2375 <step_ptid>: Delete, replaced by ...
2376 <step_thread>: ... this new field.
2377 (get_displaced_stepping_state): Take an inferior pointer instead
2378 of a pid. All callers adjusted.
2379 (displaced_step_in_progress_any_inferior): Adjust.
2380 (displaced_step_in_progress_thread): Take a thread pointer instead
2381 of a ptid_t. All callers adjusted.
2382 (displaced_step_in_progress, add_displaced_stepping_state): Take
2383 an inferior pointer instead of a pid. All callers adjusted.
2384 (get_displaced_step_closure_by_addr): Adjust.
2385 (remove_displaced_stepping_state): Take an inferior pointer
2386 instead of a pid. All callers adjusted.
2387 (displaced_step_prepare_throw, displaced_step_prepare)
2388 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
2389 All callers adjusted.
2390 (start_step_over): Adjust.
2391 (infrun_thread_ptid_changed): Remove bit updating ptids in the
2392 displaced step queue.
2393 (do_target_resume): Adjust.
2394 (fetch_inferior_event): Use inferior_thread.
2395 (context_switch, get_inferior_stop_soon): Take an
2396 execution_control_state pointer instead of a ptid_t. All callers
2397 adjusted.
2398 (switch_to_thread_cleanup): Delete.
2399 (stop_all_threads): Use scoped_restore_current_thread.
2400 * inline-frame.c: Include "gdbthread.h".
2401 (inline_state) <inline_state>: Take a thread pointer instead of a
2402 ptid_t. All callers adjusted.
2403 <ptid>: Delete, replaced by ...
2404 <thread>: ... this new field.
2405 (find_inline_frame_state): Take a thread pointer instead of a
2406 ptid_t. All callers adjusted.
2407 (skip_inline_frames, step_into_inline_frame)
2408 (inline_skipped_frames, inline_skipped_symbol): Take a thread
2409 pointer instead of a ptid_t. All callers adjusted.
2410 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
2411 (inline_skipped_frames, inline_skipped_symbol): Likewise.
2412 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
2413 pointers directly.
2414 * linux-nat.c (get_detach_signal): Likewise.
2415 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
2416 (thread_db_notice_clone): Adjust.
2417 (thread_db_find_new_threads_silently)
2418 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
2419 a thread pointer instead of a ptid_t. All callers adjusted.
2420 * mi/mi-cmd-var.c: Include "inferior.h".
2421 (mi_cmd_var_update_iter): Update to use thread pointers.
2422 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
2423 inferior directly.
2424 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
2425 out to ...
2426 (mi_output_running): ... this new function.
2427 (mi_on_resume_1): Adjust to use it.
2428 (mi_user_selected_context_changed): Adjust to use inferior_thread.
2429 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
2430 directly.
2431 (interrupt_thread_callback): : Adjust to use thread and inferior
2432 pointers.
2433 * proc-service.c: Include "gdbthread.h".
2434 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
2435 * progspace-and-thread.c: Include "inferior.h".
2436 * progspace.c: Include "inferior.h".
2437 * python/py-exitedevent.c (create_exited_event_object): Adjust to
2438 hold a reference to an inferior_object.
2439 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
2440 inferior_thread.
2441 * python/py-inferior.c (struct inferior_object): Give the type a
2442 tag name instead of a typedef.
2443 (python_on_normal_stop): No need to check if the current thread is
2444 listed.
2445 (inferior_to_inferior_object): Change return type to
2446 inferior_object. All callers adjusted.
2447 (find_thread_object): Delete, bits factored out to ...
2448 (thread_to_thread_object): ... this new function.
2449 * python/py-infthread.c (create_thread_object): Use
2450 inferior_to_inferior_object.
2451 (thpy_is_stopped): Use thread pointer directly.
2452 (gdbpy_selected_thread): Use inferior_thread.
2453 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
2454 field, replaced with ...
2455 <thread>: ... this new field. All users adjusted.
2456 (btpy_insn_or_gap_new): Drop const.
2457 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
2458 callers adjusted.
2459 * python/py-record.c: Include "gdbthread.h".
2460 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2461 a ptid_t. All callers adjusted.
2462 (gdbpy_current_recording): Use inferior_thread.
2463 * python/py-record.h (recpy_record_object) <ptid>: Delete
2464 field, replaced with ...
2465 <thread>: ... this new field. All users adjusted.
2466 (recpy_element_object) <ptid>: Delete
2467 field, replaced with ...
2468 <thread>: ... this new field. All users adjusted.
2469 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2470 a ptid_t. All callers adjusted.
2471 * python/py-threadevent.c: Include "gdbthread.h".
2472 (get_event_thread): Use thread_to_thread_object.
2473 * python/python-internal.h (struct inferior_object): Forward
2474 declare.
2475 (find_thread_object, find_inferior_object): Delete declarations.
2476 (thread_to_thread_object, inferior_to_inferior_object): New
2477 declarations.
2478 * record-btrace.c: Include "inferior.h".
2479 (require_btrace_thread): Use inferior_thread.
2480 (record_btrace_frame_sniffer)
2481 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
2482 (get_thread_current_frame): Use scoped_restore_current_thread and
2483 switch_to_thread.
2484 (get_thread_current_frame): Use thread pointer directly.
2485 (record_btrace_replay_at_breakpoint): Use thread's inferior
2486 pointer directly.
2487 * record-full.c: Include "inferior.h".
2488 * regcache.c: Include "gdbthread.h".
2489 (get_thread_arch_regcache): Use the inferior's address space
2490 directly.
2491 (get_thread_regcache, registers_changed_thread): New.
2492 * regcache.h (get_thread_regcache(thread_info *thread)): New
2493 overload.
2494 (registers_changed_thread): New.
2495 (remote_target) <remote_detach_1>: Swap order of parameters.
2496 (remote_add_thread): <remote_add_thread>: Return the new thread.
2497 (get_remote_thread_info(ptid_t)): New overload.
2498 (remote_target::remote_notice_new_inferior): Use thread pointers
2499 directly.
2500 (remote_target::process_initial_stop_replies): Use
2501 thread_info::set_running.
2502 (remote_target::remote_detach_1, remote_target::detach)
2503 (extended_remote_target::detach): Adjust.
2504 * stack.c (frame_show_address): Use inferior_thread.
2505 * target-debug.h (target_debug_print_thread_info_pp): New.
2506 * target-delegates.c: Regenerate.
2507 * target.c (default_thread_address_space): Delete.
2508 (memory_xfer_partial_1): Use current_inferior.
2509 (target_detach): Use current_inferior.
2510 (target_thread_address_space): Delete.
2511 (generic_mourn_inferior): Use current_inferior.
2512 * target.h (struct target_ops) <thread_address_space>: Delete.
2513 (target_thread_address_space): Delete.
2514 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
2515 pointers directly.
2516 (delete_thread_1, delete_thread, delete_thread_silent): Take a
2517 thread pointer instead of a ptid_t. Adjust all callers.
2518 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
2519 (first_thread_of_process): Delete, replaced by ...
2520 (first_thread_of_inferior): ... this new function. All callers
2521 adjusted.
2522 (any_thread_of_process): Rename to ...
2523 (any_thread_of_inferior): ... this, and take an inferior pointer.
2524 (any_live_thread_of_process): Rename to ...
2525 (any_live_thread_of_inferior): ... this, and take an inferior
2526 pointer.
2527 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2528 (value_in_thread_stack_temporaries)
2529 (get_last_thread_stack_temporary): Take a thread pointer instead
2530 of a ptid_t. Adjust all callers.
2531 (thread_info::set_running): New.
2532 (validate_registers_access): Use inferior_thread.
2533 (can_access_registers_ptid): Rename to ...
2534 (can_access_registers_thread): ... this, and take a thread
2535 pointer.
2536 (print_thread_info_1): Adjust to compare thread pointers instead
2537 of ptids.
2538 (switch_to_no_thread, switch_to_thread): Make extern.
2539 (scoped_restore_current_thread::~scoped_restore_current_thread):
2540 Use m_thread pointer directly.
2541 (scoped_restore_current_thread::scoped_restore_current_thread):
2542 Use inferior_thread.
2543 (thread_command): Use thread pointer directly.
2544 (thread_num_make_value_helper): Use inferior_thread.
2545 * top.c (execute_command): Use inferior_thread.
2546 * tui/tui-interp.c: Include "inferior.h".
2547 * varobj.c (varobj_create): Use inferior_thread.
2548 (value_of_root_1): Use find_thread_global_id instead of
2549 global_thread_id_to_ptid.
2550
33bab475
AH
25512018-06-21 Alan Hayward <alan.hayward@arm.com>
2552
2553 * regcache.c (readable_regcache::read_part): Avoid memcpy when
2554 possible.
2555 (regcache::write_part): Likewise.
2556 (readable_regcache::cooked_read_part): Update comment.
2557 (readable_regcache::cooked_write_part): Likewise.
2558 * regcache.h: (readable_regcache::read_part): Likewise.
2559 (regcache::write_part): Likewise.
2560
8363f9d5
RB
25612018-06-21 Richard Bunt <richard.bunt@arm.com>
2562 Dirk Schubert <dirk.schubert@arm.com>
2563
2564 * aarch64-linux-nat.c (post_attach): New.
2565 (aarch64_linux_nat_target::post_attach): Override post_attach to
2566 record the number of hardware debug registers.
2567
0d0b0ea2
TT
25682018-06-20 Tom Tromey <tom@tromey.com>
2569
2570 * python/py-param.c (add_setshow_generic): Make parameters const.
2571 (parmpy_init): Update.
2572
302abd6e
SM
25732018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2574
2575 * regcache.h (regcache_cooked_read_ftype): Rename to...
2576 (register_read_ftype): ...this, change type to function_view.
2577 (class reg_buffer) <save>: Remove src parameter.
2578 (readonly_detached_regcache) <readonly_detached_regcache>: Make
2579 parameter non-const in first overload. Remove src parameter in
2580 second overload.
2581 * regcache.c (do_cooked_read): Remove.
2582 (readonly_detached_regcache::readonly_detached_regcache): Make
2583 parameter non-const, adjust call to other constructor.
2584 (reg_buffer::save): Remove src parameter.
2585 * frame.c (do_frame_register_read): Remove.
2586 (frame_save_as_regcache): Use lambda function.
2587 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
2588 parameter to ppu2spu_data *.
2589 (ppu2spu_sniffer): Use lambda function.
2590
19f3f25f
SM
25912018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * record-full.c (record_full_target::insert_breakpoint): Remove
2594 "struct" keyword, add const.
2595
d0ac1c44
SM
25962018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2597
2598 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
2599 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
2600 * configure.ac: Remove AC_PREREQ, add missing quoting.
2601 * gnulib/configure.ac: Modernize usage of
2602 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
2603 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
2604 (AUTOMAKE_VERSION): Bump to 1.15.1.
2605 * configure: Re-generate.
2606 * config.in: Re-generate.
2607 * aclocal.m4: Re-generate.
2608 * gnulib/aclocal.m4: Re-generate.
2609 * gnulib/config.in: Re-generate.
2610 * gnulib/configure: Re-generate.
2611 * gnulib/import/Makefile.in: Re-generate.
2612
6ae50267
PA
26132018-06-19 Pedro Alves <palves@redhat.com>
2614
2615 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
2616 (lookup_minimal_symbol_by_pc_section): ... here with
2617 gdb_assert_not_reached added.
2618
61b04dd0
PA
26192018-06-19 Pedro Alves <palves@redhat.com>
2620
2621 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
2622 parameter with a block parameter. Compare location's block symbol
2623 with the frame's block instead of addresses.
2624 (skip_inline_frames): Pass the current block instead of the
2625 frame's address. Break out as soon as we determine the frame
2626 should not be skipped.
2627
f709fabb
TT
26282018-06-18 Tom Tromey <tom@tromey.com>
2629
2630 * solib-aix.c (solib_aix_get_section_offsets): Return
2631 unique_xmalloc_ptr.
2632 (solib_aix_solib_create_inferior_hook): Update.
2633
668eb2f0
TT
26342018-06-18 Tom Tromey <tom@tromey.com>
2635
2636 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
2637
309822ca
TT
26382018-06-18 Tom Tromey <tom@tromey.com>
2639
2640 * solib-frv.c (frv_relocate_main_executable): Use
2641 unique_xmalloc_ptr.
2642 * solib-dsbt.c (dsbt_relocate_main_executable): Use
2643 unique_xmalloc_ptr.
2644
06424eac
TT
26452018-06-18 Tom Tromey <tom@tromey.com>
2646
2647 * objfiles.h (inhibit_section_map_updates): Update.
2648 (resume_section_map_updates, resume_section_map_updates_cleanup):
2649 Remove.
2650 * solib-svr4.c (svr4_handle_solib_event): Update.
2651 * objfiles.c (inhibit_section_map_updates): Return
2652 scoped_restore_tmpl<int>.
2653 (resume_section_map_updates, resume_section_map_updates_cleanup):
2654 Remove.
2655
b4be9fad
TT
26562018-06-18 Tom Tromey <tom@tromey.com>
2657
2658 * valprint.h (read_string): Update.
2659 * valprint.c (read_string): Change type of "buffer".
2660 (val_print_string): Update.
2661 * python/py-value.c (valpy_string): Update.
2662 * language.h (struct language_defn) <la_get_string>: Change
2663 type of "buffer".
2664 (default_get_string, c_get_string): Update.
2665 * language.c (default_get_string): Change type of "buffer".
2666 * guile/scm-value.c (gdbscm_value_to_string): Update.
2667 * c-lang.c (c_get_string): Change type of "buffer".
2668
3f0dbd67
TT
26692018-06-18 Tom Tromey <tom@tromey.com>
2670
2671 * ser-mingw.c (struct pipe_state_destroyer): New.
2672 (pipe_state_up): New typedef.
2673 (cleanup_pipe_state): Remove.
2674 (pipe_windows_open): Use pipe_state_up. Don't release argv.
2675
69d340c6
TT
26762018-06-18 Tom Tromey <tom@tromey.com>
2677
2678 * rust-lang.h (rust_yyerror): Don't declare.
2679 * rust-lang.c (rust_language_defn): Update.
2680 * rust-exp.y (yyerror): Now static.
2681 * parse.c (parse_exp_in_context_1): Update.
2682 * p-lang.h (p_yyerror): Don't declare.
2683 * p-lang.c (p_language_defn): Update.
2684 * p-exp.y (yyerror): Now static.
2685 * opencl-lang.c (opencl_language_defn): Update.
2686 * objc-lang.c (objc_language_defn): Update.
2687 * m2-lang.h (m2_yyerror): Don't declare.
2688 * m2-lang.c (m2_language_defn): Update.
2689 * m2-exp.y (yyerror): Now static.
2690 * language.h (struct language_defn) <la_error>: Remove.
2691 * language.c (unk_lang_error): Remove.
2692 (unknown_language_defn, auto_language_defn): Remove.
2693 * go-lang.h (go_yyerror): Don't declare.
2694 * go-lang.c (go_language_defn): Update.
2695 * go-exp.y (yyerror): Now static.
2696 * f-lang.h (f_yyerror): Don't declare.
2697 * f-lang.c (f_language_defn): Update.
2698 * f-exp.y (yyerror): Now static.
2699 * d-lang.h (d_yyerror): Don't declare.
2700 * d-lang.c (d_language_defn): Update.
2701 * d-exp.y (yyerror): Now static.
2702 * c-lang.h (c_yyerror): Don't declare.
2703 * c-lang.c (c_language_defn, cplus_language_defn)
2704 (asm_language_defn, minimal_language_defn): Update.
2705 * c-exp.y (yyerror): Now static.
2706 * ada-lang.h (ada_yyerror): Don't declare.
2707 * ada-lang.c (ada_language_defn): Update.
2708 * ada-exp.y (yyerror): Now static.
2709
e9902bfc
AH
27102018-06-18 Alan Hayward <alan.hayward@arm.com>
2711
2712 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
2713 (store_sveregs_to_thread): Likewise.
2714 (aarch64_linux_fetch_inferior_registers): Check for SVE.
2715 (aarch64_linux_store_inferior_registers): Likewise.
2716 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
2717 function.
2718 (aarch64_sve_regs_copy_to_regcache): Likewise.
2719 (aarch64_sve_regs_copy_from_regcache): Likewise.
2720 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
2721 declaration.
2722 (aarch64_sve_regs_copy_to_regcache): Likewise.
2723 (aarch64_sve_regs_copy_from_regcache): Likewise.
2724 (sve_context): Structure from Linux headers.
2725 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
2726 (SVE_SIG_ZREG_SIZE): Likewise.
2727 (SVE_SIG_PREG_SIZE): Likewise.
2728 (SVE_SIG_FFR_SIZE): Likewise.
2729 (SVE_SIG_REGS_OFFSET): Likewise.
2730 (SVE_SIG_ZREGS_OFFSET): Likewise.
2731 (SVE_SIG_ZREG_OFFSET): Likewise.
2732 (SVE_SIG_ZREGS_SIZE): Likewise.
2733 (SVE_SIG_PREGS_OFFSET): Likewise.
2734 (SVE_SIG_PREG_OFFSET): Likewise.
2735 (SVE_SIG_PREGS_SIZE): Likewise.
2736 (SVE_SIG_FFR_OFFSET): Likewise.
2737 (SVE_SIG_REGS_SIZE): Likewise.
2738 (SVE_SIG_CONTEXT_SIZE): Likewise.
2739 (SVE_PT_REGS_MASK): Likewise.
2740 (SVE_PT_REGS_FPSIMD): Likewise.
2741 (SVE_PT_REGS_SVE): Likewise.
2742 (SVE_PT_VL_INHERIT): Likewise.
2743 (SVE_PT_VL_ONEXEC): Likewise.
2744 (SVE_PT_REGS_OFFSET): Likewise.
2745 (SVE_PT_FPSIMD_OFFSET): Likewise.
2746 (SVE_PT_FPSIMD_SIZE): Likewise.
2747 (SVE_PT_SVE_ZREG_SIZE): Likewise.
2748 (SVE_PT_SVE_PREG_SIZE): Likewise.
2749 (SVE_PT_SVE_FFR_SIZE): Likewise.
2750 (SVE_PT_SVE_FPSR_SIZE): Likewise.
2751 (SVE_PT_SVE_FPCR_SIZE): Likewise.
2752 (__SVE_SIG_TO_PT): Likewise.
2753 (SVE_PT_SVE_OFFSET): Likewise.
2754 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
2755 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
2756 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
2757 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
2758 (SVE_PT_SVE_PREG_OFFSET): Likewise.
2759 (SVE_PT_SVE_PREGS_SIZE): Likewise.
2760 (SVE_PT_SVE_FFR_OFFSET): Likewise.
2761 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
2762 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
2763 (SVE_PT_SVE_SIZE): Likewise.
2764 (SVE_PT_SIZE): Likewise.
2765 (HAS_SVE_STATE): New define.
2766
17a1cc89
AH
27672018-06-18 Alan Hayward <alan.hayward@arm.com>
2768
2769 * nat/aarch64-sve-linux-sigcontext.h: New file.
2770 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
2771 new files.
2772 (SVE_VQ_MIN): Likewise.
2773 (SVE_VQ_MAX): Likewise.
2774 (SVE_VL_MIN): Likewise.
2775 (SVE_VL_MAX): Likewise.
2776 (SVE_NUM_ZREGS): Likewise.
2777 (SVE_NUM_PREGS): Likewise.
2778 (sve_vl_valid): Likewise.
2779 (struct user_sve_header): Likewise.
2780
7010835a
AB
27812018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
2782 Richard Bunt <Richard.Bunt@arm.com>
2783
2784 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
2785 was requested by GDB.
2786
479b3ef4
TV
27872018-06-15 Tom de Vries <tdevries@suse.de>
2788
2789 * MAINTAINERS (Write After Approval): Add Tom de Vries.
2790
8199b8f4
SM
27912018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * gnulib/update-gnulib.sh: Print expected versions of
2794 autoconf/aclocal.
2795
55c748a1
SM
27962018-06-14 Simon Marchi <simon.marchi@ericsson.com>
2797
2798 * arch-utils.c (default_type_align): Use type_length_units.
2799 * gdbtypes.c (type_align): Use type_length_units.
2800
87a8eca7
PW
28012018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2802
2803 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
2804 of 'define' command.
2805
5d9a0608
TV
28062018-06-14 Tom de Vries <tdevries@suse.de>
2807
2808 PR cli/22573
2809 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
2810 get_no_prettyformat_print_options.
2811
ab89b5a5
SM
28122018-06-13 Simon Marchi <simon.marchi@ericsson.com>
2813
2814 * sparc-nat.h: Include target.h.
2815 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
2816 <fetch_registers>: Remove this argument in function call.
2817 <store_registers>: Remove this argument in function call, remove
2818 extra semicolon.
2819 <low_forget_process>: Call sparc64_forget_process instead of
2820 sparc_forget_process.
2821
62c808ae
RO
28222018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2823
2824 * procfs.c (_initialize_procfs): Use add_inf_child_target.
2825 (procfs_target::make_corefile_notes): Adjust to new
2826 target_read_alloc return type.
2827
1840d81a
AB
28282018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
2829 Stephen Roberts <stephen.roberts@arm.com>
2830
2831 PR gdb/22882
2832 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
2833 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
2834 Move should_notify_stop local into more inner scope.
2835
9516f85a
AB
28362018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
2837 Stephen Roberts <stephen.roberts@arm.com>
2838
2839 PR gdb/22882
2840 * infrun.c (resume_1): Add call to mark_async_event_handler.
2841
defd2172
AB
28422018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * infrun.c (do_target_wait): Change old version of $pc printed.
2845
7b23e087
SM
28462018-06-11 Simon Marchi <simon.marchi@ericsson.com>
2847
2848 * dwarf2read.c (read_index_from_section): Rename to...
2849 (read_gdb_index_from_section): ... this, update all callers.
2850 (dwarf2_read_index): Rename to...
2851 (dwarf2_read_gdb_index): ... this, update all callers.
2852
69c67a0b
JDA
28532018-06-11 John David Anglin <danglin@gcc.gnu.org>
2854
2855 * gdb/hppa-linux-nat.c
2856 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
2857 hppa_linux_nat_target::fetch_registers.
2858
65d4cada
AH
28592018-06-11 Alan Hayward <alan.hayward@arm.com>
2860
2861 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
2862 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
2863 (AARCH64_DWARF_SVE_FFR): Likewise.
2864 (AARCH64_DWARF_SVE_P0): Likewise.
2865 (AARCH64_DWARF_SVE_Z0): Likewise.
2866
f868386e
AH
28672018-06-11 Alan Hayward <alan.hayward@arm.com>
2868
2869 * common/common-regcache.h (raw_compare): New function.
2870 * regcache.c (regcache::raw_compare): Likewise.
2871 * regcache.h (regcache::raw_compare): New declaration.
2872
9c861883
AH
28732018-06-11 Alan Hayward <alan.hayward@arm.com>
2874
2875 * common/common-regcache.h (reg_buffer_common): New structure.
2876 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
2877 (reg_buffer::raw_supply): Likewise.
2878 (reg_buffer::raw_supply_integer): Likewise.
2879 (reg_buffer::raw_supply_zeroed): Likewise.
2880 (reg_buffer::raw_collect): Likewise.
2881 (reg_buffer::raw_collect_integer): Likewise.
2882 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
2883 (reg_buffer::raw_supply): Likewise.
2884 (reg_buffer::raw_supply_integer): Likewise.
2885 (reg_buffer::raw_supply_zeroed): Likewise.
2886 (reg_buffer::raw_collect): Likewise.
2887 (reg_buffer::raw_collect_integer): Likewise.
2888
953edf2b
TT
28892018-06-10 Tom Tromey <tom@tromey.com>
2890
2891 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
2892 (class remote_state) <stop_reply_queue>: Now std::vector.
2893 (remote_state::~remote_state)
2894 (remote_target::stop_reply_queue_length): Update.
2895 (struct queue_iter_param, remove_child_of_pending_fork)
2896 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
2897 (check_pending_event_prevents_wildcard_vcont_callback)
2898 (remove_stop_reply_for_inferior)
2899 (remove_stop_reply_of_remote_state)
2900 (remote_notif_remove_once_on_match)
2901 (stop_reply_match_ptid_and_ws)
2902 (remote_kill_child_of_pending_fork): Remove.
2903 (remote_target::remove_new_fork_children)
2904 (remote_target::check_pending_events_prevent_wildcard_vcont)
2905 (remote_target::discard_pending_stop_replies)
2906 (remote_target::discard_pending_stop_replies_in_queue)
2907 (remote_target::remote_notif_remove_queued_reply)
2908 (remote_target::queued_stop_reply)
2909 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
2910 (remote_target::wait, remote_target::kill_new_fork_children)
2911 (remote_target::async): Update.
2912
1ddbba9d
TT
29132018-06-10 Tom Tromey <tom@tromey.com>
2914
2915 * record-full.c (record_full_arch_list_cleanups): Remove.
2916 (record_full_message): Use try/catch.
2917 (record_full_wait_cleanups): Remove.
2918 (record_full_wait_1): Use try/catch.
2919 (record_full_restore): Likewise.
2920
219605fd
TT
29212018-06-10 Tom Tromey <tom@tromey.com>
2922
2923 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
2924 declare VEC. Add constructor.
2925 <in_target_beneath>: Now bool.
2926 (record_full_breakpoints): Now a std::vector, static.
2927 (record_full_sync_record_breakpoints)
2928 (record_full_init_record_breakpoints)
2929 (record_full_target::insert_breakpoint)
2930 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
2931
71b73764
SM
29322018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * dwarf2read.c (process_cu_includes): Remove struct keyword.
2935 * serial.c (serial_interface_lookup): Remove struct keyword.
2936
4360561f
TT
29372018-06-10 Tom Tromey <tom@tromey.com>
2938
2939 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
2940 method.
2941 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
2942 a method.
2943 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
2944 method.
2945 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
2946 "beneath" as a method.
2947 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
2948 Use "beneath" as a method.
2949
d14b92bf
TT
29502018-06-10 Tom Tromey <tom@tromey.com>
2951
2952 * tracefile.c (struct trace_file_writer_deleter): New.
2953 <operator()>: Rename from trace_file_writer_xfree.
2954 (trace_file_writer_up): New typedef.
2955 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
2956
835dcf92
SM
29572018-06-09 Simon Marchi <simon.marchi@ericsson.com>
2958
2959 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
2960 <m_registers, m_register_status>: Change type to
2961 std::unique_ptr.
2962 * regcache.c (reg_buffer::reg_buffer): Use new instead of
2963 XCNEWVEC.
2964
aac0d564
SM
29652018-06-09 Simon Marchi <simon.marchi@ericsson.com>
2966
2967 * common/common-regcache.h (enum register_status): Add
2968 underlying type "signed char".
2969 * regcache.h (reg_buffer) <m_register_status>: Change type to
2970 register_status *.
2971 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
2972 register_status instead of signed char.
2973 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
2974 (reg_buffer::get_register_status): Remove cast.
2975 (readable_regcache::raw_read): Remove cast.
2976 (readable_regcache::cooked_read): Remove cast.
2977
77ad7394
TT
29782018-06-09 Tom Tromey <tom@tromey.com>
2979
2980 * source.c (reverse_search_command, forward_search_command): Use
2981 scoped_fd.
2982
191cca63
TT
29832018-06-09 Tom Tromey <tom@tromey.com>
2984
2985 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
2986 (serial_ops_list): Now static, std::vector.
2987 (serial_interface_lookup, serial_add_interface): Update.
2988
c5d0225d
TT
29892018-06-09 Tom Tromey <tom@tromey.com>
2990
2991 * dwarf2read.c (process_cu_includes): Update.
2992 (process_full_comp_unit): Update.
2993 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
2994 std::vector.
2995
aeab5128
PK
29962018-06-08 Paul Koning <paul_koning@dell.com>
2997
2998 PR gdb/23252
2999
3000 * python/python.c (do_start_initialization):
3001 Avoid call to internal Python API.
3002 (init__gdb_module): New function.
3003
5045b3d7
GB
30042018-06-08 Gary Benson <gbenson@redhat.com>
3005
3006 * linux-thread-db.c (valprint.h): New include.
3007 (struct check_thread_db_info): New structure.
3008 (check_thread_db_on_load, tdb_testinfo): New static globals.
3009 (check_thread_db, check_thread_db_callback): New functions.
3010 (try_thread_db_load_1): Run integrity checks if requested.
3011 (maintenance_check_libthread_db): New function.
3012 (_initialize_thread_db): Register "maint check libthread-db"
3013 and "maint set/show check-libthread-db".
3014 * NEWS: Mention the above new commands.
3015
2f4f025f
TT
30162018-06-08 Tom Tromey <tom@tromey.com>
3017
3018 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3019 now a method.
3020
343b0027
TT
30212018-06-08 Tom Tromey <tom@tromey.com>
3022
3023 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3024
8dcc53b3
TT
30252018-06-08 Tom Tromey <tom@tromey.com>
3026
3027 * common/btrace-common.h (struct btrace_data): Add constructor,
3028 destructor, move assignment operator.
3029 <empty, clear, fini>: New methods.
3030 <format>: Initialize.
3031 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3032 (btrace_data_empty): Don't declare.
3033 * common/btrace-common.c (btrace_data_init): Remove.
3034 (btrace_data::fini): Rename from btrace_data_fini.
3035 (btrace_data::empty): Rename from btrace_data_empty.
3036 (btrace_data::clear): Rename from btrace_data_clear. Return
3037 bool.
3038 * btrace.h (make_cleanup_btrace_data): Don't declare.
3039 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3040 (parse_xml_btrace): Update.
3041 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3042 (maint_btrace_clear_packet_history_cmd): Update.
3043
a1740ee1
PA
30442018-06-07 Pedro Alves <palves@redhat.com>
3045
3046 * target.h (target_ops) <beneath>: Now a method. All references
3047 updated.
3048 (class target_stack): New.
3049 * target.c (g_target_stack): New.
3050 (g_current_top_target): Delete.
3051 (current_top_target): Get the top target out of g_target_stack.
3052 (target_stack::push, target_stack::unpush): New.
3053 (push_target, unpush_target): Reimplement.
3054 (target_is_pushed): Reimplement in terms of g_target_stack.
3055 (target_ops::beneath, target_stack::find_beneath): New.
3056
d6ca69cd
PA
30572018-06-07 Pedro Alves <palves@redhat.com>
3058
3059 * target.h (find_target_beneath): Delete declaration.
3060 * target.c (find_target_beneath): Delete definition.
3061 * aix-thread.c: All callers of find_target_beneath adjusted to
3062 call target_ops::beneath instead.
3063 * bsd-uthread.c: Likewise.
3064 * linux-thread-db.c: Likewise.
3065 * ravenscar-thread.c: Likewise.
3066 * sol-thread.c: Likewise.
3067 * spu-multiarch.c: Likewise.
3068
b6a8c27b
PA
30692018-06-07 Pedro Alves <palves@redhat.com>
3070
3071 * target.h (target_ops) <beneath>: Now a method. All references
3072 updated.
3073 (target_ops) <m_beneath>: New.
3074 * target.c (target_ops::beneath): New.
3075 * corelow.c: Adjust all references to target_ops::beneath.
3076 * linux-thread-db.c: Likewise.
3077 * make-target-delegates: Likewise.
3078 * record-btrace.c: Likewise.
3079 * record-full.c: Likewise.
3080 * remote.c: Likewise.
3081 * target.c: Likewise.
3082 * target-delegates.c: Regenerate.
3083
8b88a78e
PA
30842018-06-07 Pedro Alves <palves@redhat.com>
3085
3086 * target.h (target_stack): Delete.
3087 (current_top_target): Declare function.
3088 * target.c (target_stack): Delete.
3089 (g_current_top_target): New.
3090 (current_top_target): New function.
3091 * auxv.c: Use current_top_target instead of target_stack
3092 throughout.
3093 * avr-tdep.c: Likewise.
3094 * breakpoint.c: Likewise.
3095 * corefile.c: Likewise.
3096 * elfread.c: Likewise.
3097 * eval.c: Likewise.
3098 * exceptions.c: Likewise.
3099 * frame.c: Likewise.
3100 * gdbarch-selftests.c: Likewise.
3101 * gnu-v3-abi.c: Likewise.
3102 * ia64-tdep.c: Likewise.
3103 * ia64-vms-tdep.c: Likewise.
3104 * infcall.c: Likewise.
3105 * infcmd.c: Likewise.
3106 * infrun.c: Likewise.
3107 * linespec.c: Likewise.
3108 * linux-tdep.c: Likewise.
3109 * minsyms.c: Likewise.
3110 * ppc-linux-nat.c: Likewise.
3111 * ppc-linux-tdep.c: Likewise.
3112 * procfs.c: Likewise.
3113 * regcache.c: Likewise.
3114 * remote.c: Likewise.
3115 * rs6000-tdep.c: Likewise.
3116 * s390-linux-nat.c: Likewise.
3117 * s390-tdep.c: Likewise.
3118 * solib-aix.c: Likewise.
3119 * solib-darwin.c: Likewise.
3120 * solib-dsbt.c: Likewise.
3121 * solib-spu.c: Likewise.
3122 * solib-svr4.c: Likewise.
3123 * solib-target.c: Likewise.
3124 * sparc-tdep.c: Likewise.
3125 * sparc64-tdep.c: Likewise.
3126 * spu-tdep.c: Likewise.
3127 * symfile.c: Likewise.
3128 * symtab.c: Likewise.
3129 * target-descriptions.c: Likewise.
3130 * target-memory.c: Likewise.
3131 * target.c: Likewise.
3132 * target.h: Likewise.
3133 * tracefile-tfile.c: Likewise.
3134 * tracepoint.c: Likewise.
3135 * valops.c: Likewise.
3136 * valprint.c: Likewise.
3137 * value.c: Likewise.
3138 * windows-tdep.c: Likewise.
3139 * mi/mi-main.c: Likewise.
3140
c7110220
TT
31412018-06-07 Tom Tromey <tom@tromey.com>
3142
3143 * valprint.h (build_address_symbolic): Declare.
3144 * printcmd.c (print_address_symbolic): Update.
3145 (build_address_symbolic): Change "name" and "filename" to
3146 std::string.
3147 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3148 Update.
3149 * defs.h (build_address_symbolic): Remove declaration.
3150
63bad7b6
AH
31512018-06-07 Alan Hayward <alan.hayward@arm.com>
3152
3153 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3154 (aarch64_vnv_type): Add function.
3155 (aarch64_pseudo_register_name): Add V regs for SVE.
3156 (aarch64_pseudo_register_type): Likewise.
3157 (aarch64_pseudo_register_reggroup_p): Likewise.
3158 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3159 (aarch64_pseudo_read_value): Add V regs for SVE.
3160 (aarch64_pseudo_write_2): Use V0 offset for SVE
3161 (aarch64_pseudo_write): Add V regs for SVE.
3162 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3163
13e3c608
SDJ
31642018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3165
3166 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3167 (sve_vl_from_vq): Likewise.
3168
c61b06a1
TT
31692018-06-05 Tom Tromey <tom@tromey.com>
3170
3171 * cli/cli-cmds.c (show_version): Update.
3172 * top.c (print_gdb_version): Add "interactive" parameter.
3173 Update.
3174 * main.c (captured_main_1): Update.
3175 * top.h (print_gdb_version): Add "interactive" parameter and a
3176 comment.
3177
115f7325
DM
31782018-06-05 David Malcolm <dmalcolm@redhat.com>
3179
3180 * common/enum-flags.h: Add trailing semicolon to example in
3181 comment.
3182
eb6af809
TT
31832018-06-05 Tom Tromey <tom@tromey.com>
3184
3185 PR cli/12326:
3186 * NEWS: Add entry about pager.
3187 * utils.c (pagination_disabled_for_command): New global.
3188 (prompt_for_continue): Allow "c" response to prompt.
3189 (reinitialize_more_filter): Clear
3190 pagination_disabled_for_command.
3191 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3192
54d343a2
TT
31932018-06-04 Tom Tromey <tom@tromey.com>
3194
3195 * ada-lang.h (ada_lookup_symbol_list): Update.
3196 * ada-lang.c (resolve_subexp): Update.
3197 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3198 parameter.
3199 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3200 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3201 results parameter to std::vector.
3202 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3203 Update.
3204 * ada-exp.y (block_lookup): Update.
3205 (select_possible_type_sym): Change type of syms. Remove nsyms
3206 parameter.
3207 (write_var_or_type, write_name_assoc): Update.
3208
178d6a63
JB
32092018-06-04 Joel Brobecker <brobecker@adacore.com>
3210
3211 * windows-nat.c (windows_nat_target::xfer_partial): Return
3212 TARGET_XFER_E_IO if we need to delegate to the target beneath
3213 but BENEATH is NULL.
3214
baf00c2d
SM
32152018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3216
3217 * Makefile.in (config.status): Add configure.nat as a
3218 dependency.
3219
214b073c
TT
32202018-06-04 Tom Tromey <tom@tromey.com>
3221
3222 * cp-name-parser.y (cpname_state): Add method declarations.
3223 (HANDLE_QUAL): Update.
3224 (cpname_state::d_grab, cpname_state::fill_comp)
3225 (cpname_state::make_operator, cpname_state::make_dtor)
3226 (cpname_state::make_builtin_type, cpname_state::make_name)
3227 (cpname_state::d_qualify, cpname_state::d_int_type)
3228 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3229 (%union): Move earlier.
3230
62b74cb8
AH
32312018-06-04 Alan Hayward <alan.hayward@arm.com>
3232
3233 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3234
3c5cd5c3
AH
32352018-06-04 Alan Hayward <alan.hayward@arm.com>
3236
3237 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3238 (aarch64_pseudo_write_1): Likewise.
3239 (aarch64_pseudo_read_value): Use helper.
3240 (aarch64_pseudo_write): Likewise.
3241
59f413d5
PA
32422018-06-04 Pedro Alves <palves@redhat.com>
3243
3244 * darwin-nat.c (darwin_ops): Delete.
3245 (darwin_attach_pid): Use get_native_target.
3246
1332a140
AH
32472018-06-04 Alan Hayward <alan.hayward@arm.com>
3248
3249 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3250 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3251
ba2d2bb2
AH
32522018-06-04 Alan Hayward <alan.hayward@arm.com>
3253
3254 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3255 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3256 (aarch64_gdbarch_init): Check for SVE.
3257 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3258
32592018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
3260
3261 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3262 * aarch64-tdep.h (aarch64_read_description): Likewise.
3263 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3264 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3265 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3266 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3267 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3268
41c60b4b
SM
32692018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3270
3271 * value.c (value_fetch_lazy_bitfield): New.
3272 (value_fetch_lazy_memory): New.
3273 (value_fetch_lazy_register): New.
3274 (value_fetch_lazy): Factor out to smaller functions.
3275
7b640f72
TT
32762018-06-01 Tom Tromey <tom@tromey.com>
3277
3278 * cp-name-parser.y (backslashable, represented): Now const.
3279
98e69eb3
TT
32802018-06-01 Tom Tromey <tom@tromey.com>
3281
3282 * cp-name-parser.y: Include parser-defs.h.
3283 (parser_fprintf): Remove declaration.
3284
49265499
TT
32852018-06-01 Tom Tromey <tom@tromey.com>
3286
3287 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3288 %parse-param.
3289 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3290 (global_result): Remove globals.
3291 (struct cpname_state): New.
3292 (yyparse): Don't declare.
3293 (yylex, yyerror): Move declarations after %union.
3294 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3295 (make_name): Add state parameter.
3296 Update all callers.
3297 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3298 parameter.
3299 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3300 Update.
3301 (yylex): Add lvalp, state parameters.
3302 (yyerror): Add state parameter.
3303 (cp_demangled_name_to_comp): Update.
3304
55b6c984
TT
33052018-06-01 Tom Tromey <tom@tromey.com>
3306
3307 * cp-name-parser.y (parser_fprintf): Declare.
3308 (GDB_YY_REMAP_PREFIX): Define.
3309 Include yy-remap.h. Don't redefine yy* identifiers.
3310
3513a6bb
TT
33112018-06-01 Tom Tromey <tom@tromey.com>
3312
3313 * python/py-type.c (typy_legacy_template_argument): Update.
3314 * cp-support.h (cp_demangled_name_to_comp): Update.
3315 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3316 parameter to be a "std::string *".
3317 (main): Update.
3318
e9cb46ab
L
33192018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3320
3321 * ada-lex.l: Include "diagnostics.h" instead of
3322 "common/diagnostics.h".
3323 * unittests/environ-selftests.c: Likewise.
3324 * common/diagnostics.h: Moved to ../include.
3325
8e817061
JB
33262018-06-01 Joel Brobecker <brobecker@adacore.com>
3327
3328 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3329 to language_mode_manual while calling breakpoint_re_set_one.
3330
a737d952
TT
33312018-06-01 Tom Tromey <tom@tromey.com>
3332
3333 * valops.c (value_cast_structs, destructor_name_p): Update.
3334 * symtab.c (gdb_mangle_name): Update.
3335 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3336 Update.
3337 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3338 (pascal_object_print_value_fields, pascal_object_print_value):
3339 Update.
3340 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3341 * linespec.c (find_methods): Update.
3342 * gdbtypes.h (type_name_no_tag): Remove.
3343 (type_name_or_error): Rename from type_name_no_tag_or_error.
3344 * gdbtypes.c (type_name_no_tag): Remove.
3345 (type_name_or_error): Rename from type_name_no_tag_or_error.
3346 (lookup_struct_elt_type, check_typedef): Update.
3347 * expprint.c (print_subexp_standard): Update.
3348 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3349 * d-namespace.c (d_lookup_nested_symbol): Update.
3350 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3351 (cp_print_class_member): Update.
3352 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3353 * completer.c (add_struct_fields): Update.
3354 * c-typeprint.c (cp_type_print_derivation_info)
3355 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3356 Update.
3357 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3358 (ada_prefer_type, ada_is_exception_sym): Update.
3359
e86ca25f
TT
33602018-06-01 Tom Tromey <tom@tromey.com>
3361
3362 * valops.c (enum_constant_from_type, value_namespace_elt)
3363 (value_maybe_namespace_elt): Update.
3364 * valarith.c (find_size_for_pointer_math): Update.
3365 * target-descriptions.c (make_gdb_type): Update.
3366 * symmisc.c (print_symbol): Update.
3367 * stabsread.c (define_symbol, read_type)
3368 (complain_about_struct_wipeout, add_undefined_type)
3369 (cleanup_undefined_types_1): Update.
3370 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3371 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3372 (rust_internal_print_type, rust_composite_type)
3373 (rust_evaluate_funcall, rust_evaluate_subexp)
3374 (rust_inclusive_range_type_p): Update.
3375 * python/py-type.c (typy_get_tag): Update.
3376 * p-typeprint.c (pascal_type_print_base): Update.
3377 * mdebugread.c (parse_symbol, parse_type): Update.
3378 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
3379 Update.
3380 * guile/scm-type.c (gdbscm_type_tag): Update.
3381 * go-lang.c (sixg_string_p): Update.
3382 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
3383 Update.
3384 * gdbtypes.h (struct main_type) <tag_name>: Remove.
3385 (TYPE_TAG_NAME): Remove.
3386 * gdbtypes.c (type_name_no_tag): Simplify.
3387 (check_typedef, check_types_equal, recursive_dump_type)
3388 (copy_type_recursive, arch_composite_type): Update.
3389 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
3390 in summary mode when needed.
3391 * eval.c (evaluate_funcall): Update.
3392 * dwarf2read.c (fixup_go_packaging, read_structure_type)
3393 (process_structure_scope, read_enumeration_type)
3394 (read_namespace_type, read_module_type, determine_prefix): Update.
3395 * cp-support.c (inspect_type): Update.
3396 * coffread.c (process_coff_symbol, decode_base_type): Update.
3397 * c-varobj.c (c_is_path_expr_parent): Update.
3398 * c-typeprint.c (c_type_print_base_struct_union): Update.
3399 (c_type_print_base_1): Update. Print struct/class/union/enum in
3400 summary when using C language.
3401 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
3402 (gen_maybe_namespace_elt): Update.
3403 * ada-lang.c (ada_type_name): Simplify.
3404 (empty_record, ada_template_to_fixed_record_type_1)
3405 (template_to_static_fixed_type)
3406 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
3407
c1ec8cea
TT
34082018-06-01 Tom Tromey <tom@tromey.com>
3409
3410 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
3411 c_print_type.
3412 * c-typeprint.c (c_print_type_1): Add "language" parameter.
3413 (c_print_type): Update.
3414 (c_print_type): New overload.
3415 (c_type_print_varspec_prefix, c_type_print_args)
3416 (c_type_print_varspec_suffix, c_print_type_no_offsets)
3417 (c_type_print_base_struct_union, c_type_print_base_1)
3418 (cp_type_print_method_args): Add "language" parameter.
3419 (c_type_print_base): Update.
3420 * c-lang.h (c_print_type): Add new overload.
3421
bc8453a7
TT
34222018-06-01 Tom Tromey <tom@tromey.com>
3423
3424 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
3425 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
3426
739e8682
AH
34272018-06-01 Alan Hayward <alan.hayward@arm.com>
3428
3429 * aarch64-tdep.c (aarch64_sve_register_names): New const
3430 var.
3431 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
3432 (AARCH64_SVE_Z_REGS_NUM): New define.
3433 (AARCH64_SVE_P_REGS_NUM): Likewise.
3434 (AARCH64_SVE_NUM_REGS): Likewise.
3435
8a60efe7
UB
34362018-05-31 Uros Bizjak <ubizjak@gmail.com>
3437
3438 * nat/linux-ptrace.h [__alpha__]
3439 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
3440 definitions.
3441
4b2dfa9d
MR
34422018-05-31 Maciej W. Rozycki <macro@mips.com>
3443
3444 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
3445 the endianness selected.
3446 * NEWS: Document `set endian auto' mode operation update.
3447
122394f1
AH
34482018-05-31 Alan Hayward <alan.hayward@arm.com>
3449
3450 * Makefile.in: Add new header.
3451 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
3452 (sve_vl_from_vg): Likewise.
3453 (sve_vq_from_vl): Likewise.
3454 (sve_vl_from_vq): Likewise.
3455 (sve_vq_from_vg): Likewise.
3456 (sve_vg_from_vq): Likewise.
3457 * configure.nat: Add new c file.
3458 * nat/aarch64-sve-linux-ptrace.c: New file.
3459 * nat/aarch64-sve-linux-ptrace.h: New file.
3460
95228a0d
AH
34612018-05-31 Alan Hayward <alan.hayward@arm.com>
3462
3463 * aarch64-linux-nat.c (aarch64_linux_read_description):
3464 Add parmeter zero.
3465 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3466 Likewise.
3467 * aarch64-tdep.c (tdesc_aarch64_list): Add.
3468 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
3469 (aarch64_gdbarch_init): Add parmeter zero.
3470 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
3471 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
3472 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
3473 parmeter.
3474 * doc/gdb.texinfo: Describe SVE feature
3475 * features/aarch64-sve.c: New file.
3476
5969f0db
OJ
34772018-05-31 Omair Javaid <omair.javaid@linaro.org>
3478
3479 PR gdb/23210
3480 * gdbarch.sh (significant_addr_bit): Default to zero when
3481 not set by target architecture.
3482 * gdbarch.c: Re-generated.
3483 * utils.c (address_significant): Update.
3484
61367c61
JB
34852018-05-30 Joel Brobecker <brobecker@adacore.com>
3486
3487 * stack.c (func_command): Remove trailing newline in call to error.
3488
34a79281
SM
34892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3490
3491 * regcache.h (regcache_raw_collect): Remove, update callers to
3492 use regcache::raw_collect.
3493 * regcache.c (regcache_raw_collect): Remove.
3494
73e1c03f
SM
34952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3496
3497 * regcache.h (regcache_raw_supply): Remove, update callers to
3498 use detached_regcache::raw_supply.
3499 * regcache.c (regcache_raw_supply): Remove.
3500
e4c4a59b
SM
35012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3502
3503 * regcache.h (regcache_cooked_write_part): Remove, update
3504 callers to use regcache::cooked_write_part.
3505 * regcache.c (regcache_cooked_write_part): Remove.
3506
73bb0000
SM
35072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3508
3509 * regcache.h (regcache_cooked_read_part): Remove, update callers
3510 to use readable_regcache::cooked_read_part.
3511 * regcache.c (regcache_cooked_read_part): Remove.
3512
46a45e9d
SM
35132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3514
3515 * regcache.h (regcache_cooked_read_value): Remove, update
3516 callers to use readable_regcache::cooked_read_value.
3517 * regcache.c (regcache_cooked_read_value): Remove.
3518
b66f5587
SM
35192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3520
3521 * regcache.h (regcache_cooked_write): Remove, update callers to
3522 use regcache::cooked_write.
3523 * regcache.c (regcache_cooked_write): Remove.
3524
6aa7d724
SM
35252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3526
3527 * regcache.h (regcache_invalidate): Remove, update callers to
3528 use detached_regcache::invalidate instead.
3529 * regcache.c (regcache_invalidate): Remove.
3530
4f0420fd
SM
35312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3532
3533 * regcache.h (regcache_raw_write_part): Remove, update callers
3534 to use regcache::raw_write_part instead.
3535 * regcache.c (regcache_raw_write_part): Remove.
3536
502fe83e
SM
35372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3538
3539 * regcache.h (regcache_raw_read_part): Remove, update callers to
3540 use readable_regcache::raw_read_part instead.
3541 * regcache.c (regcache_raw_read_part): Remove.
3542
dca08e1f
SM
35432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3544
3545 * regcache.h (regcache_cooked_read): Remove, update callers to
3546 use readable_regcache::cooked_read instead.
3547 * regcache.c (regcache_cooked_read): Remove.
3548
10eaee5f
SM
35492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3550
3551 * regcache.h (regcache_raw_write): Remove, update callers to use
3552 regcache::raw_write instead.
3553 * regcache.c (regcache_raw_write): Remove.
3554
0b883586
SM
35552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3556
3557 * regcache.h (regcache_raw_read): Remove, update callers to use
3558 readable_regcache::raw_read instead.
3559 * regcache.c (regcache_raw_read): Remove.
3560
0b47d985
SM
35612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3562
3563 * regcache.h (regcache_raw_update): Remove, update callers to
3564 use readable_regcache::raw_update instead.
3565 * regcache.c (regcache_raw_update): Remove.
3566
0ec9f114
SM
35672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3568
3569 * regcache.h (regcache_register_status): Remove, update callers
3570 to use reg_buffer::get_register_status directly instead.
3571 * regcache.c (regcache_register_status): Remove.
3572
222312d3
SM
35732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3574
3575 * regcache.h (regcache_get_ptid): Remove, update all callers to
3576 call regcache::ptid instead.
3577 * regcache.c (regcache_get_ptid): Remove.
3578
fdbe37e3
SM
35792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3580
3581 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
3582
f7c6f423
PA
35832018-05-30 Pedro Alves <palves@redhat.com>
3584
3585 * common/common-exceptions.h (exception_rethrow): Use
3586 ATTRIBUTE_NORETURN.
3587
52941706
SM
35882018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * breakpoint.c (print_solib_event, check_status_catch_solib):
3591 Remove struct keyword in range-based for loops.
3592 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
3593 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
3594 Likewise.
3595 * linespec.c (find_superclass_methods, search_minsyms_for_name):
3596 Likewise.
3597 * symfile.c (addr_info_make_relative): Likewise.
3598 * thread.c (value_in_thread_stack_temporaries): Likewise.
3599
bf2977b5
WP
36002018-06-12 Weimin Pan <weimin.pan@oracle.com>
3601
3602 PR gdb/16841
3603 * valops.c (value_struct_elt_for_reference): Call check_typedef on
3604 aggregate type to get its real type before accessing it.
3605
64cc34d8
WP
36062018-05-29 Weimin Pan <weimin.pan@oracle.com>
3607
3608 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
3609 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
3610 * coff-pe-read.c (add_pe_forwarded_sym): Replace
3611 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
3612 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
3613 * jit.c (jit_breakpoint_re_set_internal): Likewise.
3614 * printcmd.c (info_address_command): Likewise.
3615
e7ec8713
TT
36162018-05-29 Tom Tromey <tom@tromey.com>
3617
3618 * windows-nat.c (handle_exception): Update fall-through comment.
3619
bcb430e4
TT
36202018-05-29 Tom Tromey <tom@tromey.com>
3621
3622 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
3623 (struct program_space) <added_solibs>: Now a std::vector.
3624 * breakpoint.c (print_solib_event): Update.
3625 (check_status_catch_solib): Update.
3626 * progspace.c (clear_program_space_solib_cache): Update.
3627 * solib.c (update_solib_list): Update.
3628
894882e3
TT
36292018-05-29 Tom Tromey <tom@tromey.com>
3630
3631 * python/py-type.c (typy_richcompare): Update.
3632 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
3633 * gdbtypes.h (types_deeply_equal): Return bool.
3634 (types_equal): Likewise.
3635 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
3636 declare VEC.
3637 (check_types_equal): Change worklist to std::vector. Return
3638 bool.
3639 (struct type_equality_entry): Add constructor.
3640 (compare_maybe_null_strings): Return bool.
3641 (check_types_worklist): Return bool. Change worklist to
3642 std::vector.
3643 (types_deeply_equal): Use std::vector.
3644 (types_equal): Return bool.
3645 (compare_maybe_null_strings): Simplify.
3646
10b2ded4
TT
36472018-05-29 Tom Tromey <tom@tromey.com>
3648
3649 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
3650
4f7deebe
TT
36512018-05-29 Tom Tromey <tom@tromey.com>
3652
3653 * objc-lang.h: Don't include cp-support.h.
3654 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
3655 declare VEC.
3656
b8283aea
TT
36572018-05-27 Tom Tromey <tom@tromey.com>
3658
3659 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
3660
41a883c8
TT
36612018-05-25 Tom Tromey <tom@tromey.com>
3662
3663 * value.c (value::location): Initialize.
3664
bf259e25
TT
36652018-05-25 Tom Tromey <tom@tromey.com>
3666
3667 * dbxread.c (init_bincl_list): Remove.
3668 (bincl_list): Now a std::vector.
3669 (bincls_allocated, next_bincl): Remove.
3670 (free_bincl_list, do_free_bincl_list_cleanup)
3671 (make_cleanup_free_bincl_list): Remove.
3672 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
3673 unique_xmalloc_ptr.
3674 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
3675 (struct header_file_location): Add constructor.
3676 (add_bincl_to_list): Remove.
3677
d525a99b
TT
36782018-05-25 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui.c (tui_enable): Update.
3681 * mi/mi-interp.c (mi_interp::init): Update.
3682 * interps.h (class interp) <name>: New method.
3683 <m_name>: Rename from name.
3684 (~scoped_restore_interp): Update.
3685 * interps.c (interp::interp): Update.
3686 (interp_add, interp_set, interp_lookup_existing)
3687 (current_interp_named_p): Update.
3688
da505cff
TT
36892018-05-25 Tom Tromey <tom@tromey.com>
3690
3691 * interps.c (interp_name): Remove.
3692 * mi/mi-interp.c (mi_interp::init): Update.
3693 * interps.h (interp_name): Remove.
3694 (~scoped_restore_interp): Update.
3695 * tui/tui.c (tui_enable): Update.
3696
29f94340
TT
36972018-05-25 Tom Tromey <tom@tromey.com>
3698
3699 * utils.c (fputs_maybe_filtered): Update.
3700 * linespec.c (decode_line_full): Update.
3701 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
3702 (mi_print_breakpoint_for_event, mi_solib_loaded)
3703 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3704 (mi_user_selected_context_changed): Update.
3705 * mi/mi-main.c (mi_execute_command): Update.
3706 * cli/cli-script.c (execute_control_command): Update.
3707 * python/python.c (execute_gdb_command): Update.
3708 * solib.c (info_sharedlibrary_command): Update.
3709 * interps.c (interp_ui_out): Remove.
3710 * interps.h (interp_ui_out): Remove.
3711
716b8bc5
TT
37122018-05-25 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
3715 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
3716 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
3717
753ff9bd
TT
37182018-05-25 Tom Tromey <tom@tromey.com>
3719
3720 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
3721 * interps.c (interp_exec): Use scoped_restore.
3722
5ca3b260
TT
37232018-05-25 Tom Tromey <tom@tromey.com>
3724
3725 * remote.c (remote_target::remote_file_get): Use
3726 gdb::byte_vector.
3727 (remote_target::remote_file_put): Likewise.
3728
3173aa2f
TT
37292018-05-25 Tom Tromey <tom@tromey.com>
3730
3731 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
3732 a std::string.
3733 (get_pe_section_index, add_pe_exported_sym): Update.
3734 (read_pe_exported_syms): Use gdb::def_vector.
3735
09a5e1b5
TT
37362018-05-25 Tom Tromey <tom@tromey.com>
3737
3738 * frame.c (remove_prev_frame): Remove.
3739 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
3740
d8dab6c3
MR
37412018-05-25 Maciej W. Rozycki <macro@mips.com>
3742
3743 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
3744 Remove prototypes.
3745 * mips-linux-nat.c (supply_fpregset): Always call
3746 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
3747 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
3748 `mips_fill_fpregset'.
3749 * mips-linux-tdep.c (mips_supply_fpregset)
3750 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
3751 (mips_fill_fpregset_wrapper): Remove functions.
3752 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
3753 (mips_linux_fpregset): Remove variable.
3754 (mips_linux_iterate_over_regset_sections): Use
3755 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
3756 (mips_linux_o32_sigframe_init): Remove comment.
3757
3c69da40
PA
37582018-05-25 Pedro Alves <palves@redhat.com>
3759
3760 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
3761 (struct readahead_cache, struct packet_reg, struct
3762 remote_arch_state, class remote_state): Move higher up in the
3763 file.
3764 (remote_target::m_remote_state): Now an object instead of a pointer.
3765 (remote_target::get_remote_state): Adjust.
3766
39f0c204
AB
37672018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * stack.c (select_and_print_frame): Delete.
3770 (struct function_bounds): Move struct within function.
3771 (func_command): Most content moved into new function
3772 find_frame_for_function, use new function, print result, add
3773 function comment.
3774 (find_frame_for_function): New function, now returns a result.
3775
d392224a
PW
37762018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3777
3778 * stack.c (iterate_over_block_arg_vars): Fix comment.
3779 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
3780
45f25d6c
AB
37812018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
3782
3783 PR gdb/23203
3784 * frame.c
3785 (scoped_restore_selected_frame::scoped_restore_selected_frame):
3786 Define.
3787 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
3788 Define.
3789 * frame.h (class scoped_restore_selected_frame): New class.
3790 * stack.c (print_frame_local_vars): Remove catching and rethrowing
3791 of any exception, use scoped_restore_selected_frame to restore the
3792 frame instead.
3793
da05d921
PA
37942018-05-24 Pedro Alves <palves@redhat.com>
3795
3796 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
3797 override.
3798
a8be540e
TT
37992018-05-23 Tom Tromey <tom@tromey.com>
3800
3801 * complaints.c (struct complaints): Remove.
3802 (symfile_complaint_book): Remove.
3803 (series): New global.
3804 (complaint_internal): Update.
3805 (clear_complaints): Update.
3806
ff1cf532
TT
38072018-05-23 Tom Tromey <tom@tromey.com>
3808
3809 * complaints.c (counters): New global.
3810 (struct complain): Remove.
3811 (struct complaints) <root>: Remove.
3812 (complaint_sentinel): Remove.
3813 (symfile_complaint_book): Update.
3814 (find_complaint) Remove.
3815 (complaint_internal, clear_complaints): Update.
3816
7ff88174
TT
38172018-05-23 Tom Tromey <tom@tromey.com>
3818
3819 * complaints.c (struct complain) <file, line>: Remove.
3820 (find_complaint): Remove file, line parameters.
3821 (complaint_internal): Update.
3822
de54e1a5
TT
38232018-05-23 Tom Tromey <tom@tromey.com>
3824
3825 * complaints.c (vcomplaint): Remove.
3826 (complaint_internal) Merge in contents of vcomplaint.
3827
2ac237e5
TT
38282018-05-23 Tom Tromey <tom@tromey.com>
3829
3830 * complaints.c (struct complaints) <explanation>: Remove.
3831 (symfile_explanations): Remove.
3832 (symfile_complaint_book): Update.
3833 (vcomplaint): Update.
3834 (struct explanation): Remove.
3835
b98664d3
TT
38362018-05-23 Tom Tromey <tom@tromey.com>
3837
3838 * complaints.c (symfile_complaints): Remove.
3839 (complaint_internal): Remove "complaints" parameter.
3840 (clear_complaints, vcomplaint): Remove "c" parameter.
3841 (get_complaints): Remove.
3842 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
3843 (dwarf2_debug_line_missing_file_complaint)
3844 (dwarf2_debug_line_missing_end_sequence_complaint)
3845 (dwarf2_complex_location_expr_complaint)
3846 (dwarf2_const_value_length_mismatch_complaint)
3847 (dwarf2_section_buffer_overflow_complaint)
3848 (dwarf2_macro_malformed_definition_complaint)
3849 (dwarf2_invalid_attrib_class_complaint)
3850 (create_addrmap_from_index, dw2_symtab_iter_next)
3851 (dw2_expand_marked_cus)
3852 (dw2_debug_names_iterator::find_vec_in_debug_names)
3853 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
3854 (create_debug_type_hash_table, init_cutu_and_read_dies)
3855 (partial_die_parent_scope, add_partial_enumeration)
3856 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
3857 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
3858 (read_import_statement, read_file_scope, create_dwo_cu_reader)
3859 (create_cus_hash_table, create_dwp_hash_table)
3860 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3861 (dwarf2_rnglists_process, dwarf2_ranges_process)
3862 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
3863 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
3864 (handle_struct_member_die, process_structure_scope)
3865 (read_array_type, read_common_block, read_module_type)
3866 (read_tag_pointer_type, read_typedef, read_base_type)
3867 (read_subrange_type, load_partial_dies, partial_die_info::read)
3868 (partial_die_info::read, partial_die_info::read)
3869 (partial_die_info::read, read_checked_initial_length_and_offset)
3870 (dwarf2_string_attr, read_formatted_entries)
3871 (dwarf_decode_line_header)
3872 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3873 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
3874 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
3875 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3876 (get_signatured_type, get_DW_AT_signature_type)
3877 (decode_locdesc, file_file_name, consume_improper_spaces)
3878 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
3879 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3880 (dwarf2_symbol_mark_computed, set_die_type)
3881 (read_attribute_value): Update.
3882 * stap-probe.c (handle_stap_probe, get_stap_base_address):
3883 Update.
3884 * dbxread.c (unknown_symtype_complaint)
3885 (lbrac_mismatch_complaint, repeated_header_complaint)
3886 (set_namestring, function_outside_compilation_unit_complaint)
3887 (read_dbx_symtab, process_one_symbol): Update.
3888 * gdbtypes.c (stub_noname_complaint): Update.
3889 * windows-nat.c (handle_unload_dll): Update.
3890 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
3891 (decode_base_type): Update.
3892 * xcoffread.c (bf_notfound_complaint, ef_complaint)
3893 (eb_complaint, record_include_begin, record_include_end)
3894 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
3895 (process_xcoff_symbol, read_symbol)
3896 (function_outside_compilation_unit_complaint)
3897 (scan_xcoff_symtab): Update.
3898 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
3899 * buildsym.c (finish_block_internal, make_blockvector)
3900 (end_symtab_get_static_block, augment_type_symtab): Update.
3901 * dtrace-probe.c (dtrace_process_dof)
3902 (dtrace_static_probe_ops::get_probes): Update.
3903 * complaints.h (struct complaint): Don't declare.
3904 (symfile_complaints): Remove.
3905 (complaint_internal): Remove "complaints" parameter.
3906 (complaint): Likewise.
3907 (clear_complaints): Likewise.
3908 * symfile.c (syms_from_objfile_1, finish_new_objfile)
3909 (reread_symbols): Update.
3910 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
3911 (dwarf2_frame_cache, decode_frame_entry): Update.
3912 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
3913 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3914 (info_selectors_command): Update.
3915 * macrotab.c (macro_include, check_for_redefinition)
3916 (macro_undef): Update.
3917 * objfiles.c (filter_overlapping_sections): Update.
3918 * stabsread.c (invalid_cpp_abbrev_complaint)
3919 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
3920 (define_symbol, error_type, read_type, rs6000_builtin_type)
3921 (stabs_method_name_from_physname, read_member_functions)
3922 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
3923 (attach_fields_to_type, complain_about_struct_wipeout)
3924 (read_range_type, read_args, common_block_start)
3925 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
3926 Update.
3927 * mdebugread.c (index_complaint, unknown_ext_complaint)
3928 (basic_type_complaint, bad_tag_guess_complaint)
3929 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
3930 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
3931 (parse_procedure, parse_lines)
3932 (function_outside_compilation_unit_complaint)
3933 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
3934 (bad_tag_guess_complaint, reg_value_complaint): Update.
3935 * cp-support.c (demangled_name_complaint): Update.
3936 * macroscope.c (sal_macro_scope): Update.
3937 * dwarf-index-write.c (class debug_names): Update.
3938
4e9668d0
TT
39392018-05-23 Tom Tromey <tom@tromey.com>
3940
3941 * complaints.c (clear_complaints): Remove "noisy" parameter.
3942 * complaints.h (clear_complaints): Update.
3943 * symfile.c (syms_from_objfile_1, finish_new_objfile)
3944 (reread_symbols): Update.
3945
43ba33c7
TT
39462018-05-23 Tom Tromey <tom@tromey.com>
3947
3948 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
3949 SUBSEQUENT_MESSAGE.
3950 (vcomplaint, clear_complaints): Update.
3951 (symfile_explanations): Remove some messages.
3952
2b9496b2
TT
39532018-05-23 Tom Tromey <tom@tromey.com>
3954
3955 * complaints.c (internal_complaint): Remove.
3956 * complaints.h (internal_complaint): Remove.
3957
35f1fea3
MR
39582018-05-22 Maciej W. Rozycki <macro@mips.com>
3959
3960 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
3961
6b8edb51
PA
39622018-05-22 Pedro Alves <palves@redhat.com>
3963
3964 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
3965 (remote_fileio_badfd, remote_fileio_return_errno)
3966 (remote_fileio_return_success, remote_fileio_func_open)
3967 (remote_fileio_func_open, remote_fileio_func_close)
3968 (remote_fileio_func_read, remote_fileio_func_write)
3969 (remote_fileio_func_lseek, remote_fileio_func_rename)
3970 (remote_fileio_func_unlink, remote_fileio_func_stat)
3971 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3972 (remote_fileio_func_isatty, remote_fileio_func_system): Add
3973 remote_target parameter.
3974 (remote_fio_func_map) <func>: Add remote_target parameter.
3975 (do_remote_fileio_request, remote_fileio_request):
3976 * remote-fileio.h (remote_fileio_request):
3977 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
3978 remote_target parameter.
3979 (remote_notif_process, handle_notification): Adjust to pass down
3980 the remote.
3981 (remote_notif_state_allocate): Add remote_target parameter. Save
3982 it.
3983 * remote-notif.h (struct remote_target): Forward declare.
3984 (struct notif_client) <parse, ack, can_get_pending_events>: Add
3985 remote_target parameter.
3986 (struct remote_notif_state) <remote>: New field.
3987 (remote_notif_ack, remote_notif_parse): Add remote_target
3988 parameter.
3989 (remote_notif_state_allocate, remote_notif_state_allocate): Add
3990 remote_target parameter.
3991 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
3992 (threads_listing_context, rmt_thread_action, protocol_feature)
3993 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
3994 (packet_result, struct threads_listing_context, remote_state):
3995 Move definitions and declarations higher up.
3996 (remote_target) <~remote_target>: Declare.
3997 (remote_download_command_source, remote_file_put, remote_file_get)
3998 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
3999 (remote_hostio_pread_vFile, remote_hostio_send_command)
4000 (remote_hostio_set_filesystem, remote_hostio_open)
4001 (remote_hostio_close, remote_hostio_unlink, remote_state)
4002 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4003 (get_memory_write_packet_size, get_memory_read_packet_size)
4004 (append_pending_thread_resumptions, remote_detach_1)
4005 (append_resumption, remote_resume_with_vcont)
4006 (add_current_inferior_and_thread, wait_ns, wait_as)
4007 (process_stop_reply, remote_notice_new_inferior)
4008 (process_initial_stop_replies, remote_add_thread)
4009 (btrace_sync_conf, remote_btrace_maybe_reopen)
4010 (remove_new_fork_children, kill_new_fork_children)
4011 (discard_pending_stop_replies, stop_reply_queue_length)
4012 (check_pending_events_prevent_wildcard_vcont)
4013 (discard_pending_stop_replies_in_queue, stop_reply)
4014 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4015 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4016 (remote_interrupt_as, remote_interrupt_ns)
4017 (remote_get_noisy_reply, remote_query_attached)
4018 (remote_add_inferior, remote_current_thread, get_current_thread)
4019 (set_thread, set_general_thread, set_continue_thread)
4020 (set_general_process, write_ptid)
4021 (remote_unpack_thread_info_response, remote_get_threadinfo)
4022 (parse_threadlist_response, remote_get_threadlist)
4023 (remote_threadlist_iterator, remote_get_threads_with_ql)
4024 (remote_get_threads_with_qxfer)
4025 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4026 (get_offsets, remote_check_symbols, remote_supported_packet)
4027 (remote_query_supported, remote_packet_size)
4028 (remote_serial_quit_handler, remote_detach_pid)
4029 (remote_vcont_probe, remote_resume_with_hc)
4030 (send_interrupt_sequence, interrupt_query)
4031 (remote_notif_get_pending_events, fetch_register_using_p)
4032 (send_g_packet, process_g_packet, fetch_registers_using_g)
4033 (store_register_using_P, store_registers_using_G)
4034 (set_remote_traceframe, check_binary_download)
4035 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4036 (remote_xfer_live_readonly_partial, remote_read_bytes)
4037 (remote_send_printf, remote_flash_write, readchar)
4038 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4039 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4040 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4041 (extended_remote_disable_randomization, extended_remote_run)
4042 (send_environment_packet, extended_remote_environment_support)
4043 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4044 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4045 (packet_command): Now methods of ...
4046 (remote_target): ... this class.
4047 (m_remote_state) <remote_target>: New field.
4048 (struct remote_state) <stop_reply_queue,
4049 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4050 fields.
4051 (remote_state::remote_state): Allocate stop_reply_queue.
4052 (remote_state): Delete global.
4053 (get_remote_state_raw): Delete.
4054 (remote_target::get_remote_state): Allocate m_remote_state on
4055 demand.
4056 (get_current_remote_target): New.
4057 (remote_ops, extended_remote_ops): Delete.
4058 (wait_forever_enabled_p, remote_async_inferior_event_token):
4059 Delete, moved to struct remote_state.
4060 (remote_target::close): Delete self. Destruction bits split to
4061 ...
4062 (remote_target::~remote_target): ... this.
4063 (show_memory_packet_size): Adjust to use
4064 get_current_remote_target.
4065 (struct protocol_feature) <func>: Add remote_target parameter.
4066 All callers adjusted.
4067 (curr_quit_handler_target): New.
4068 (remote_serial_quit_handler): Reimplement.
4069 (remote_target::open_1): Adjust to use get_current_remote_target.
4070 Heap-allocate remote_target/extended_remote_target instances.
4071 (vcont_builder::vcont_builder): Add remote_target parameter, and
4072 save it in m_remote. All callers adjusted.
4073 (vcont_builder::m_remote): New field.
4074 (vcont_builder::restart, vcont_builder::flush)
4075 (vcont_builder::push_action): Use it.
4076 (remote_target::commit_resume): Use it.
4077 (struct queue_iter_param) <remote>: New field.
4078 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4079 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4080 (check_pending_event_prevents_wildcard_vcont_callback)
4081 (remote_target::check_pending_events_prevent_wildcard_vcont)
4082 (remote_target::discard_pending_stop_replies)
4083 (remote_target::discard_pending_stop_replies_in_queue)
4084 (remote_target::remote_notif_remove_queued_reply): Fill in
4085 'remote' field.
4086 (remote_notif_get_pending_events): New.
4087 (remote_target::readchar, remote_target::remote_serial_write):
4088 Save/restore curr_quit_handler_target.
4089 (putpkt): New.
4090 (kill_new_fork_children): Fill in 'remote' field.
4091 (packet_command): Use get_current_remote_target, defer to
4092 remote_target method of same name.
4093 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4094 parameter, and save it in m_remote. All callers adjusted.
4095 (scoped_remote_fd::release): Use m_remote.
4096 (scoped_remote_fd::m_remote): New field.
4097 (remote_file_put, remote_file_get, remote_file_delete): Use
4098 get_current_remote_target, defer to remote_target method of same
4099 name.
4100 (remote_btrace_reset): Add remote_state paremeter. Update all
4101 callers.
4102 (remote_async_inferior_event_handler). Pass down 'data'.
4103 (remote_new_objfile): Use get_current_remote_target.
4104 (remote_target::vcont_r_supported): New.
4105 (set_range_stepping): Use get_current_remote_target and
4106 remote_target::vcont_r_supported.
4107 (_initialize_remote): Don't allocate 'remote_state' and
4108 'stop_reply_queue' globals.
4109 * remote.h (struct remote_target): Forward declare.
4110 (getpkt, putpkt, remote_notif_get_pending_events): Add
4111 'remote_target' parameter.
4112
f5db4863
PA
41132018-05-22 Pedro Alves <palves@redhat.com>
4114
4115 * remote.c (vcont_builder): Now a class. Make all data members
4116 private.
4117 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4118 Declare methods.
4119 (vcont_builder_restart): Rename to ...
4120 (vcont_builder::restart): ... this.
4121 (vcont_builder_flush): Rename to ...
4122 (vcont_builder::flush): ... this.
4123 (vcont_builder_push_action): Rename to ...
4124 (vcont_builder::push_action): ... this.
4125 (remote_target::commit_resume): Adjust.
4126
cc0be08f
PA
41272018-05-22 Pedro Alves <palves@redhat.com>
4128
4129 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4130 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4131 (get_fixed_memory_packet_size): New.
4132 (get_memory_packet_size): Use it.
4133 (set_memory_packet_size): Don't override the config size with
4134 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4135 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4136 Don't refer to get_memory_packet_size if not connected to a remote
4137 target. Show "(default)" if configured size is 0.
4138
9607784a
PA
41392018-05-22 Pedro Alves <palves@redhat.com>
4140
4141 * remote.c (remote_target::mourn_inferior): Move
4142 discard_pending_stop_replies call here from ...
4143 (_initialize_remote): ... here.
4144
0e9a6b2f
PA
41452018-05-22 Pedro Alves <palves@redhat.com>
4146
4147 * remote.c (compare_section_command): Remove set_general_process
4148 call.
4149
43c3a0e4
PA
41502018-05-22 Pedro Alves <palves@redhat.com>
4151
4152 * remote.c (struct packet_reg, struct remote_arch_state):
4153 Move higher up in the file.
4154 (remote_state) <m_arch_states>: Store remote_arch_state values
4155 instead of remote_arch_state pointers.
4156 (remote_state::get_remote_arch_state): Adjust.
4157
9d6eea31
PA
41582018-05-22 Pedro Alves <palves@redhat.com>
4159
4160 * remote.c: Include <unordered_map>.
4161 (remote_state): Now a class.
4162 (remote_state) <get_remote_arch_state>: Declare method.
4163 <get_remote_arch_state>: New field.
4164 (remote_arch_state) <remote_arch_state>: Declare ctor.
4165 <regs>: Now a unique_ptr.
4166 (remote_gdbarch_data_handle): Delete.
4167 (get_remote_arch_state): Delete.
4168 (remote_state::get_remote_arch_state): New.
4169 (get_remote_state): Adjust to call remote_state's
4170 get_remote_arch_state method.
4171 (init_remote_state): Delete, bits factored out to ...
4172 (remote_arch_state::remote_arch_state): ... this new method.
4173 (get_remote_packet_size, get_memory_packet_size)
4174 (process_g_packet, remote_target::fetch_registers)
4175 (remote_target::prepare_to_store, store_registers_using_G)
4176 (remote_target::store_registers, remote_target::get_trace_status):
4177 Adjust to call remote_state's method.
4178 (_initialize_remote): Remove reference to
4179 remote_gdbarch_data_handle.
4180
dd194f6b
PA
41812018-05-22 Pedro Alves <palves@redhat.com>
4182
4183 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4184 pread>: New method declarations.
4185 (remote_target::open_1): Adjust.
4186 (readahead_cache_invalidate): Rename to ...
4187 (readahead_cache::invalidate): ... this, and adjust to be a class
4188 method.
4189 (readahead_cache_invalidate_fd): Rename to ...
4190 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4191 class method.
4192 (remote_hostio_pwrite): Adjust.
4193 (remote_hostio_pread_from_cache): Rename to ...
4194 (readahead_cache::pread): ... this, and adjust to be a class
4195 method.
4196 (remote_hostio_close): Adjust.
4197
440b7aec
PA
41982018-05-22 Pedro Alves <palves@redhat.com>
4199
4200 * remote.c (remote_hostio_close_cleanup): Delete.
4201 (class scoped_remote_fd): New.
4202 (remote_file_put, remote_file_get): Use it.
4203
de44f5a7
PA
42042018-05-22 Pedro Alves <palves@redhat.com>
4205
4206 (struct vCont_action_support): Use bool and initialize all fields.
4207 (struct readahead_cache): Initialize all fields.
4208 (remote_state): Use bool and initialize all fields.
4209 (remote_state::remote_state, remote_state::~remote_state): New.
4210 (new_remote_state): Delete.
4211 (_initialize_remote): Use new to allocate remote_state.
4212
b1b60145
PA
42132018-05-22 Pedro Alves <palves@redhat.com>
4214 張俊芝 <zjz@zjz.name>
4215
4216 PR gdb/22973
4217 * c-exp.y: Include "c-support.h".
4218 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4219 of tolower. Use c_ident_is_alpha to scan names.
4220 * c-lang.c: Include "c-support.h".
4221 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4222 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4223 * c-support.h: New file, with bits factored out from ...
4224 * cp-name-parser.y: ... this file.
4225 Include "c-support.h".
4226 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4227 c-support.h and renamed.
4228 (symbol_end, yylex): Adjust.
4229
0ec848ad
PFC
42302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4231
4232 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4233 parameter type to CORE_ADDR.
4234 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4235 parameter type in declaration to CORE_ADDR.
4236 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4237 target_auxv_search to get AT_HWCAP and use the result to get the
4238 target description.
4239 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4240 to CORE_ADDR. Remove the cast of the return value to unsigned
4241 long. Fix error predicate of target_auxv_search.
4242 (ppc_linux_nat_target::read_description): Change the type of the
4243 hwcap variable to CORE_ADDR.
4244
0fb2aaa1
PFC
42452018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4246
4247 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4248 if the size of fpscr is larger than 32 bits.
4249
2c3305f6
PFC
42502018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4251
4252 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4253 (ppc32_linux_vsxregmap): New global.
4254 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4255 regcache_supply_regset, and regcache_collect_regset.
4256 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4257 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4258 (fetch_vsx_register, store_vsx_register): Remove.
4259 (fetch_vsx_registers): Add regno parameter. Get regset using
4260 ppc_linux_vsxregset. Use regset to supply registers.
4261 (store_vsx_registers): Add regno parameter. Get regset using
4262 ppc_linux_vsxregset. Use regset to collect registers.
4263 (fetch_register): Call fetch_vsx_registers instead of
4264 fetch_vsx_register.
4265 (store_register): Call store_vsx_registers instead of
4266 store_vsx_register.
4267 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4268 new regno parameter.
4269 (store_ppc_registers): Call store_vsx_registers with -1 for the
4270 new regno parameter.
4271 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4272 (ppc_collect_vsxregset): Remove.
4273
1d75a658
PFC
42742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4275
4276 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4277 offset fields.
4278 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4279 for vector register offset fields.
4280 (ppc64_fbsd_reg_offsets): Likewise.
4281 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4282 to vector register offset fields.
4283 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4284 to vector register offset fields.
4285 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4286 vector register offset fields.
4287 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4288 initializers for vector register offset fields.
4289 (rs6000_aix64_reg_offsets): Likewise.
4290 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4291 (ppc_supply_vrregset): Remove.
4292 (ppc_collect_vrregset): Remove.
4293 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4294 (ppc_linux_vrregset) : New function.
4295 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4296 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4297 (ppc32_linux_vrregset): Remove.
4298 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4299 and use result instead of ppc32_linux_vrregset.
4300 (ppc32_linux_reg_offsets): Remove initializers for vector register
4301 offset fields.
4302 (ppc64_linux_reg_offsets): Likewise.
4303 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4304 * ppc-linux-nat.c: Include regset.h.
4305 (gdb_vrregset_t): Adjust comment to account for little-endian
4306 mode.
4307 (supply_vrregset, fill_vrregset): Remove.
4308 (fetch_altivec_register, store_altivec_register): Remove.
4309 (fetch_altivec_registers): Add regno parameter. Get regset using
4310 ppc_linux_vrregset. Use regset to supply registers.
4311 (store_altivec_registers): Add regno parameter. Get regset using
4312 ppc_linux_vrregset. Use regset to collect registers.
4313 (fetch_register): Call fetch_altivec_registers instead of
4314 fetch_altivec_register.
4315 (store_register): Call store_altivec_registers instead of
4316 store_altivec_register.
4317 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4318 the new regno parameter.
4319 (store_ppc_registers): Call store_altivec_registers with -1 for
4320 the new regno parameter.
4321
d078308a
PFC
43222018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4323
4324 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4325 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4326 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4327 (gdb_vrregset_t): Change array type size to
4328 PPC_LINUX_SIZEOF_VRREGSET.
4329 (gdb_vsxregset_t): Change array type size to
4330 PPC_LINUX_SIZEOF_VSXREGSET.
4331 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4332 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4333 PPC_LINUX_SIZEOF_VSXREGSET.
4334
2e077f5e
PFC
43352018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4336
4337 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4338 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4339 nat/ppc-linux.c.
4340 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4341 ppc_linux_target_wordsize with tid.
4342 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4343 wordsize with tid.
4344 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4345 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4346 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4347 tid parameter. Remove static specifier.
4348 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4349 (ppc_linux_target_wordsize): New declaration.
4350
bd64614e
PFC
43512018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4352
4353 * arch/ppc-linux-common.c: New file.
4354 * arch/ppc-linux-common.h: New file.
4355 * arch/ppc-linux-tdesc.h: New file.
4356 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4357 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4358 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4359 arch/ppc-linux-tdesc.h.
4360 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4361 arch/ppc-linux-tdesc.h.
4362 (ppc_linux_nat_target::read_description): Remove target
4363 description matching code. Fill a ppc_linux_features struct and
4364 call ppc_linux_match_description with it. Move comment about ISA
4365 2.05 to ppc-linux-common.c.
4366 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4367 arch/ppc-linux-tdesc.h.
4368 (ppc_linux_core_read_description): Remove target description
4369 matching code. Fill a ppc_linux_features struct and call
4370 ppc_linux_match_description with it.
4371 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4372 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4373 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4374 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4375 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4376 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4377 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4378 (tdesc_powerpc_e500l): Remove.
4379
241db429
JB
43802018-05-22 Joel Brobecker <brobecker@adacore.com>
4381
4382 * ada-lang.c (catch_assert_command): Pass empty string instead
4383 of NULL for excep_string argument.
4384
75d74cca
MR
43852018-05-22 Maciej W. Rozycki <macro@mips.com>
4386
4387 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
4388 the width of the requested register exceeds the width of the
4389 `ptrace' data type.
4390
122b53ea
TT
43912018-05-21 Tom Tromey <tom@tromey.com>
4392
4393 * printcmd.c (output_command): Remove.
4394 (output_command_const): Rename to output_command.
4395 * valprint.h (output_command): Rename from output_command_const.
4396 * tracepoint.c (trace_dump_actions): Call output_command.
4397
bc18fbb5
TT
43982018-05-21 Tom Tromey <tom@tromey.com>
4399
4400 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4401 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
4402 * ada-lang.h (create_ada_exception_catchpoint): Update.
4403 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
4404 std::string.
4405 (create_excep_cond_exprs, ~ada_catchpoint)
4406 (should_stop_exception, print_one_exception)
4407 (print_mention_exception, print_recreate_exception): Update.
4408 (ada_get_next_arg): Remove.
4409 (catch_ada_exception_command_split): Use std::string. Change type
4410 of "excep_string", "cond_string".
4411 (catch_ada_exception_command): Update.
4412 (create_ada_exception_catchpoint): Change type of excep_string.
4413 (ada_exception_sal): Remove excep_string parameter.
4414 (~ada_catchpoint): Remove.
4415
790217f6
TT
44162018-05-21 Tom Tromey <tom@tromey.com>
4417
4418 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
4419 cleanup.
4420
6f46ac85
TT
44212018-05-21 Tom Tromey <tom@tromey.com>
4422
4423 * ada-lang.c (ada_exception_message_1, ada_exception_message):
4424 Return unique_xmalloc_ptr.
4425 (print_it_exception): Update.
4426
15b6611c
TT
44272018-05-21 Tom Tromey <tom@tromey.com>
4428
4429 * tracepoint.c (trace_dump_actions): Use std::string.
4430
c0c9f665
TT
44312018-05-21 Tom Tromey <tom@tromey.com>
4432
4433 * symfile.c (reread_symbols): Use std::string for original_name.
4434
22ca247e
TT
44352018-05-21 Tom Tromey <tom@tromey.com>
4436
4437 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
4438 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
4439 constructor.
4440
184cde75
SM
44412018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
4442
4443 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
4444 instance to...
4445 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
4446 * objfiles.c (get_objfile_bfd_data): Allocate
4447 objfile_per_bfd_storage with obstack_new when allocating on
4448 obstack.
4449
e39db4db
SM
44502018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4451
4452 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
4453 OBSTACK_ZALLOC.
4454 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4455 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4456 * mdebugread.c (mdebug_build_psymtabs): Likewise.
4457 (add_pending): Likewise.
4458 (parse_symbol): Likewise.
4459 (parse_partial_symbols): Likewise.
4460 (psymtab_to_symtab_1): Likewise.
4461 (new_psymtab): Likewise.
4462 (elfmdebug_build_psymtabs): Likewise.
4463 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4464 * objfiles.c (get_objfile_bfd_data): Likewise.
4465 (objfile_register_static_link): Likewise.
4466 * psymtab.c (allocate_psymtab): Likewise.
4467 * stabsread.c (read_member_functions): Likewise.
4468 * xcoffread.c (xcoff_end_psymtab): Likewise.
4469
284a0e3c
SM
44702018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4471
4472 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
4473 compiler supports std::is_trivially_constructible.
4474 * common/poison.h: Include obstack.h.
4475 (IsMallocable): Define to is_trivially_constructible if the
4476 compiler supports it, define to true_type otherwise.
4477 (xobnew): New.
4478 (XOBNEW): Redefine.
4479 (xobnewvec): New.
4480 (XOBNEWVEC): Redefine.
4481 * gdb_obstack.h (obstack_zalloc): New.
4482 (OBSTACK_ZALLOC): Redefine.
4483 (obstack_calloc): New.
4484 (OBSTACK_CALLOC): Redefine.
4485 (obstack_new): New.
4486 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
4487 (gdbarch_obstack): New declaration in gdbarch.h, definition in
4488 gdbarch.c.
4489 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
4490 obstack_calloc/obstack_zalloc.
4491 (gdbarch_obstack_zalloc): Remove.
4492 * target-descriptions.c (tdesc_data_init): Use obstack_new.
4493
59f66be3
PW
44942018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4495
4496 * stack.c (backtrace_command_1): Remove useless variable int i.
4497
50c65c2d
PW
44982018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4499
4500 * stack.c (print_frame_info): Fix comment.
4501
7ff8cb8c
TT
45022018-05-18 Tom Tromey <tom@tromey.com>
4503
4504 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
4505 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
4506 (~dwarf2_per_objfile): Update
4507 (dwarf2_get_dwz_file): Use new.
4508 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
4509 unique_ptr.
4510
400174b1
TT
45112018-05-18 Tom Tromey <tom@tromey.com>
4512
4513 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
4514 unique_ptr.
4515 * dwarf2read.c (struct dwp_file): Add constructor and
4516 initializers.
4517 (open_and_init_dwp_file): Return a unique_ptr.
4518 (dwarf2_per_objfile, create_dwp_hash_table)
4519 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
4520 (lookup_dwo_unit_in_dwp): Update.
4521 (open_and_init_dwp_file, get_dwp_file): Update.
4522
3063847f
TT
45232018-05-18 Tom Tromey <tom@tromey.com>
4524
4525 * dwarf2read.c (dwarf2_per_objfile): Update.
4526 (struct mapped_index): Add initializers.
4527 (dwarf2_read_index): Use new.
4528 (dw2_symtab_iter_init): Update.
4529 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
4530 unique_ptr.
4531
d3d02dee
SM
45322018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4533
4534 * dwarf2read.c (mapped_index) <total_size>: Remove.
4535
1d143c36
SM
45362018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4537
4538 * unittests/format_pieces-selftests.c (test_format_specifier):
4539 Add ARI comments.
4540
ce1e8424
TT
45412018-05-18 Tom Tromey <tom@tromey.com>
4542
4543 * c-typeprint.c (maybe_print_hole): New function.
4544 (c_print_type_struct_field_offset): Update.
4545 (c_type_print_base_struct_union): Call maybe_print_hole.
4546
ddfe970e
KS
45472018-05-17 Keith Seitz <keiths@redhat.com>
4548
4549 * breakpoint.c (build_bpstat_chain): New function, moved from
4550 bpstat_stop_status.
4551 (bpstat_stop_status): Add optional parameter, `stop_chain'.
4552 If no stop chain is passed, call build_bpstat_chain to build it.
4553 * breakpoint.h (build_bpstat_chain): Declare.
4554 (bpstat_stop_status): Move documentation here from breakpoint.c.
4555 * infrun.c (handle_signal_stop): Before eliding inlined frames,
4556 build the stop chain and pass it to skip_inline_frames.
4557 Pass this stop chain to bpstat_stop_status.
4558 * inline-frame.c: Include breakpoint.h.
4559 (stopped_by_user_bp_inline_frame): New function.
4560 (skip_inline_frames): Add parameter `stop_chain'.
4561 Move documention to inline-frame.h.
4562 If non-NULL, use stopped_by_user_bp_inline_frame to determine
4563 whether the frame should be elided.
4564 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
4565 Add moved documentation and update for new parameter.
4566
b17992c1
SM
45672018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4568
4569 PR cli/14975
4570 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4571 unittests/format_pieces-selftests.c.
4572 * common/format.h (format_piece) <operator==>: New.
4573 (format_pieces) <operator[]>: Remove.
4574 * common/format.c (format_pieces::format_pieces): Handle \e.
4575 * unittests/format_pieces-selftests.c: New.
4576
58f0c718
TT
45772018-05-17 Tom Tromey <tom@tromey.com>
4578
4579 PR symtab/23010:
4580 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
4581 (dw2_instantiate_symtab): Add skip_partial parameter.
4582 (dw2_find_last_source_symtab, dw2_map_expand_apply)
4583 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
4584 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
4585 (dw2_expand_symtabs_matching_one)
4586 (dw2_find_pc_sect_compunit_symtab)
4587 (dw2_debug_names_lookup_symbol)
4588 (dw2_debug_names_expand_symtabs_for_function): Update.
4589 (init_cutu_and_read_dies): Add skip_partial parameter.
4590 (process_psymtab_comp_unit, build_type_psymtabs_1)
4591 (process_skeletonless_type_unit, load_partial_comp_unit)
4592 (psymtab_to_symtab_1): Update.
4593 (load_full_comp_unit): Add skip_partial parameter.
4594 (process_imported_unit_die, dwarf2_read_addr_index)
4595 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
4596 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
4597 (read_signatured_type): Update.
4598
3e618834
SM
45992018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4600
4601 * value.c (release_value): Remove unused variable.
4602 (record_latest_value): Likewise.
4603 (access_value_history): Likewise.
4604 (preserve_values): Likewise.
4605
fe10fe31
TT
46062018-05-17 Tom Tromey <tom@tromey.com>
4607
4608 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
4609 Initialize.
4610
1d761124
MR
46112018-05-16 Maciej W. Rozycki <macro@mips.com>
4612
4613 PR gdb/22286
4614 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
4615 Also handle registers whose width is not a multiple of
4616 PTRACE_TYPE_RET.
4617 (linux_nat_trad_target::store_register): Likewise.
4618
06333fea
TT
46192018-05-16 Tom Tromey <tom@tromey.com>
4620
4621 * gdbcore.h (core_bfd): Redefine.
4622 * corelow.c (core_target::close): Update.
4623 (core_target_open): Update.
4624 * progspace.h (struct program_space) <cbfd>: Now a
4625 gdb_bfd_ref_ptr.
4626
921222e2
TT
46272018-05-16 Tom Tromey <tom@tromey.com>
4628
4629 PR cli/19551:
4630 * symfile-add-flags.h (enum symfile_add_flags)
4631 <SYMFILE_NOT_FILENAME>: New constant.
4632 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
4633 objfile name from BFD.
4634 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
4635 * minidebug.c (find_separate_debug_file_in_section): Put
4636 ".gnu_debugdata" into BFD's file name.
4637
3acb7083
SM
46382018-05-16 Simon Marchi <simon.marchi@ericsson.com>
4639
4640 * regcache.c (regcache_read_ftype, regcache_write_ftype):
4641 Remove.
4642
561a72d4
TC
46432018-05-15 Tamar Christina <tamar.christina@arm.com>
4644
4645 PR binutils/21446
4646 * aarch64-tdep.c (aarch64_analyze_prologue,
4647 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
4648 Indicate not interested in errors.
4649
4e6ff0e1
MR
46502018-05-15 Maciej W. Rozycki <macro@mips.com>
4651
4652 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
4653 Supply the MIPS_ZERO_REGNUM register.
4654
ea33cd92
MR
46552018-05-15 Maciej W. Rozycki <macro@mips.com>
4656
4657 * mips-tdep.c (mask_address_var): Make variable static.
4658
2d79090e
TT
46592018-05-14 Tom Tromey <tom@tromey.com>
4660
4661 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
4662
cf4912ae
AB
46632018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
4664
4665 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
4666 FXSAVE_ADDR for the mxcsr register.
4667
67e6f569
MF
46682018-05-11 Max Filippov <jcmvbkbc@gmail.com>
4669
4670 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
4671
15244507
PA
46722018-05-11 Pedro Alves <palves@redhat.com>
4673
4674 * corelow.c (core_target) <core_target>: No longer inline.
4675 Initialize m_core_gdbarch, m_core_vec and build the section table
4676 here.
4677 <~core_target>: New.
4678 <core_gdbarch, get_core_register_section>: New methods.
4679 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
4680 factored out from ...
4681 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
4682 (core_ops): Delete.
4683 (sniff_core_bfd): Add gdbarch parameter.
4684 (core_close): Delete, merged into ...
4685 (core_target::close): ... here. Delete self.
4686 (core_close_cleanup): Delete.
4687 (core_target_open): Allocate a core_target on the heap. Use a
4688 unique_ptr instead of a cleanup. Bits moved into the core_target
4689 ctor. Adjust to use core_target methods instead of globals.
4690 (get_core_register_section): Rename to ...
4691 (core_target::get_core_register_section): ... this and adjust.
4692 (struct get_core_registers_cb_data): New.
4693 (get_core_registers_cb): Use it. Use bool.
4694 (core_target::fetch_registers, core_target::files_info)
4695 (core_target::xfer_partial, core_target::read_description)
4696 (core_target::pid_to, core_target::thread_name): Adjust to
4697 reference class fields instead of globals.
4698 * target.h (struct target_ops_deleter, target_ops_up): New.
4699
451953fa
PA
47002018-05-11 Pedro Alves <palves@redhat.com>
4701
4702 * corefile.c (core_file_command): Move to corelow.c.
4703 * corelow.c (the_core_target): Delete.
4704 (core_file_command): Moved from corefile.c. Check exec_bfd
4705 instead of the_core_target. Use target_detach instead of calling
4706 into the_core_target directly.
4707 (maybe_say_no_core_file_now): New.
4708 (core_target::detach): Use it.
4709 (_initialize_corelow): Remove references to the_core_target.
4710 * gdbcore.h (the_core_target): Delete.
4711
e540a5a2 47122018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 4713 Pedro Alves <palves@redhat.com>
e540a5a2
TT
4714
4715 * corefile.c (core_bfd): Remove.
4716 * gdbcore.h (core_bfd): Now a macro.
4717 * progspace.h (struct program_space) <cbfd>: New field.
4718
633cf254
TT
47192018-05-11 Tom Tromey <tom@tromey.com>
4720
4721 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
4722 gdb::def_vector.
4723
1a34f210
TT
47242018-05-10 Tom Tromey <tom@tromey.com>
4725
4726 * configure: Rebuild.
4727 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
4728
190852c8
JB
47292018-05-10 Joel Brobecker <brobecker@adacore.com>
4730
4731 PR server/23158:
4732 * regformats/regdat.sh: Adjust script, following the addition
4733 of the new expedite_regs parameter to init_target_desc.
4734
8727de56
OJ
47352018-05-10 Omair Javaid <omair.javaid@linaro.org>
4736
4737 PR gdb/23127
4738 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
4739 set_gdbarch_significant_addr_bit.
4740 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
4741 set_gdbarch_significant_addr_bit.
4742 * utils.c (address_significant): Update to sign extend addr.
4743
37d9e062
MF
47442018-05-09 Max Filippov <jcmvbkbc@gmail.com>
4745
4746 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
4747 (xtensa_linux_init_abi): Limit tdep->num_regs by
4748 tdep->num_nopriv_regs.
4749 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
4750 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
4751 not initialized.
4752
7402fbca
SM
47532018-05-08 Simon Marchi <simon.marchi@ericsson.com>
4754
4755 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
4756
8ee22052
AB
47572018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
4760 (I387_MXCSR_INIT_VAL): New constant.
4761 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
4762 buffer if it was supplied by the inferior.
4763 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
4764 (i387_xsave_get_clear_bv): New function.
4765 (i387_supply_xsave): Only read x87 control registers from the
4766 xsave buffer if the feature is enabled, and the state will have
4767 been written, otherwise, provide a suitable default.
4768 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
4769 including x87 control registers. Update control registers if they
4770 have changed from the default value, and mark features as enabled
4771 as required.
4772 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
4773
968ae51b
UW
47742018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4775
4776 * spu-tdep.c (info_spu_event_command): Fix output formatting.
4777
aff689d3
TT
47782018-05-07 Tom Tromey <tom@tromey.com>
4779
4780 * configure: Rebuild.
4781 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
4782
ce887586
TT
47832018-05-07 Tom Tromey <tom@tromey.com>
4784
4785 PR tdep/20362:
4786 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
4787 bit. Use correct value for VDIV.
4788
85e26832
TT
47892018-05-04 Tom Tromey <tom@tromey.com>
4790
4791 * configure: Rebuild.
4792 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
4793
449b1ac7
TT
47942018-05-04 Tom Tromey <tom@tromey.com>
4795
4796 * linux-record.c (record_linux_system_call) <case
4797 RECORD_SYS_RECVFROM>: Add "break".
4798
15c9ffd6
TT
47992018-05-04 Tom Tromey <tom@tromey.com>
4800
4801 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
4802 Add missing "break".
4803 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
4804 Add missing "break".
4805
e3829d13
TT
48062018-05-04 Tom Tromey <tom@tromey.com>
4807
4808 * rs6000-tdep.c (ppc_process_record_op4)
4809 (ppc_process_record_op63): Add fall-through comment.
4810
da0e1563
TT
48112018-05-04 Tom Tromey <tom@tromey.com>
4812
4813 * i386-tdep.c (i386_process_record): Add fall-through comment.
4814
0019cd49
TT
48152018-05-04 Tom Tromey <tom@tromey.com>
4816
4817 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
4818 comment.
4819
565e0eda
TT
48202018-05-04 Tom Tromey <tom@tromey.com>
4821
4822 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
4823 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
4824 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
4825 comment.
4826 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
4827 comment.
4828 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
4829 comment.
4830
621846f4
TT
48312018-05-04 Tom Tromey <tom@tromey.com>
4832
4833 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
4834
86a73007
TT
48352018-05-04 Tom Tromey <tom@tromey.com>
4836
4837 * s390-tdep.c (s390_process_record): Fix fall-through comments.
4838 * xcoffread.c (scan_xcoff_symtab): Move comment later.
4839 * symfile.c (section_is_mapped): Fix fall-through comment.
4840 * stabsread.c (define_symbol, read_member_functions): Fix
4841 fall-through comment.
4842 * s390-linux-tdep.c (s390_process_record): Fix fall-through
4843 comment.
4844 * remote.c (remote_wait_as): Fix fall-through comment.
4845 * p-exp.y (yylex): Fix fall-through comment.
4846 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
4847 comment.
4848 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
4849 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
4850 * jv-exp.y (yylex): Fix fall-through comment.
4851 * go-exp.y (lex_one_token): Fix fall-through comment.
4852 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
4853 fall-through comment.
4854 * f-exp.y (yylex): Fix fall-through comment.
4855 * dwarf2read.c (process_die): Fix fall-through comments.
4856 * dbxread.c (process_one_symbol): Fix fall-through comment.
4857 * d-exp.y (lex_one_token): Fix fall-through comment.
4858 * cp-name-parser.y (yylex): Fix fall-through comment.
4859 * coffread.c (coff_symtab_read): Fix fall-through comment.
4860 * c-exp.y (lex_one_token): Fix fall-through comment.
4861 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
4862 comment.
4863 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
4864 comment.
4865
56bcdbea
TT
48662018-05-04 Tom Tromey <tom@tromey.com>
4867
4868 PR python/22730:
4869 * NEWS: Mention gdb.execute change.
4870 * gdbcmd.h (execute_control_command): Don't declare.
4871 * python/python.c (execute_gdb_command): Use read_command_lines_1,
4872 execute_control_commands, execute_control_commands_to_string.
4873 * cli/cli-script.h (execute_control_commands)
4874 (execute_control_commands_to_string): Declare.
4875 (execute_control_command): Add from_tty parameter.
4876 * cli/cli-script.c (execute_control_commands)
4877 (execute_control_commands_to_string): New functions.
4878 (execute_user_command): Use execute_control_commands.
4879 (execute_control_command_1): Add "from_tty" parameter. Update.
4880 (execute_control_command): Likewise.
4881
a913fffb
TT
48822018-05-04 Tom Tromey <tom@tromey.com>
4883
4884 PR python/22731:
4885 * NEWS: Mention that breakpoint commands are writable.
4886 * python/py-breakpoint.c (bppy_set_commands): New function.
4887 (breakpoint_object_getset) <"commands">: Use it.
4888
60b3cef2
TT
48892018-05-04 Tom Tromey <tom@tromey.com>
4890
4891 * tracepoint.c (actions_command): Update.
4892 * mi/mi-cmd-break.c (mi_command_line_array)
4893 (mi_command_line_array_cnt, mi_command_line_array_ptr)
4894 (mi_read_next_line): Remove.
4895 (mi_cmd_break_commands): Update.
4896 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
4897 function_view.
4898 * cli/cli-script.c (get_command_line): Update.
4899 (process_next_line): Use function_view. Constify.
4900 (recurse_read_control_structure, read_command_lines)
4901 (read_command_lines_1): Change argument types to function_view.
4902 (do_define_command, document_command): Update.
4903 * breakpoint.h (check_tracepoint_command): Don't declare.
4904 * breakpoint.c (check_tracepoint_command): Remove.
4905 (commands_command_1, create_tracepoint_from_upload): Update.
4906
7a2c85f2
TT
49072018-05-04 Tom Tromey <tom@tromey.com>
4908
4909 PR gdb/11750:
4910 * cli/cli-script.h (enum command_control_type) <define_control>:
4911 New constant.
4912 * cli/cli-script.c (multi_line_command_p): Handle define_control.
4913 (build_command_line, execute_control_command_1)
4914 (process_next_line): Likewise.
4915 (do_define_command): New function, extracted from define_command.
4916 (define_command): Use it.
4917
295dc222
TT
49182018-05-04 Tom Tromey <tom@tromey.com>
4919
4920 * tracepoint.c (actions_command): Update.
4921 * cli/cli-script.h (read_command_lines): Update.
4922 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
4923 (MAX_TMPBUF): Remove define.
4924 (define_command): Use string_printf.
4925 (document_command): Likewise.
4926 * breakpoint.c (commands_command_1): Update.
4927
1263a9d5
TT
49282018-05-04 Tom Tromey <tom@tromey.com>
4929
4930 * top.c (execute_command): Update.
4931 * cli/cli-script.h (print_command_lines): Now varargs.
4932 * cli/cli-script.c (print_command_lines): Now varargs.
4933 (execute_control_command_1) <case while_control, case if_control>:
4934 Update.
4935
12973681
TT
49362018-05-04 Tom Tromey <tom@tromey.com>
4937
4938 * tracepoint.c (all_tracepoint_actions): Rename from
4939 all_tracepoint_actions_and_cleanup. Change return type.
4940 (actions_command, encode_actions_1, encode_actions)
4941 (trace_dump_actions, tdump_command): Update.
4942 * remote.c (remote_download_command_source): Update.
4943 * python/python.c (gdbpy_eval_from_control_command)
4944 (python_command, python_interactive_command): Update.
4945 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
4946 * guile/guile.c (guile_command)
4947 (gdbscm_eval_from_control_command, guile_command): Update.
4948 * compile/compile.c (compile_code_command)
4949 (compile_print_command, compile_to_object): Update.
4950 * cli/cli-script.h (struct command_lines_deleter): New.
4951 (counted_command_line): New typedef.
4952 (struct command_line): Add constructor, destructor.
4953 <body_list>: Remove.
4954 <body_list_0, body_list_1>: New members.
4955 (command_line_up): Remove typedef.
4956 (read_command_lines, read_command_lines_1, get_command_line):
4957 Update.
4958 (copy_command_lines): Don't declare.
4959 * cli/cli-script.c (build_command_line): Use "new".
4960 (get_command_line): Return counted_command_line.
4961 (print_command_lines, execute_user_command)
4962 (execute_control_command_1, while_command, if_command): Update.
4963 (realloc_body_list): Remove.
4964 (process_next_line, recurse_read_control_structure): Update.
4965 (read_command_lines, read_command_lines_1): Return counted_command_line.
4966 (free_command_lines): Use "delete".
4967 (copy_command_lines): Remove.
4968 (define_command, document_command, show_user_1): Update.
4969 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
4970 a counted_command_line.
4971 * breakpoint.h (counted_command_line): Remove typedef.
4972 (breakpoint_set_commands): Update.
4973 * breakpoint.c (check_no_tracepoint_commands)
4974 (validate_commands_for_breakpoint): Update.
4975 (breakpoint_set_commands): Change commands to be a
4976 counted_command_line.
4977 (commands_command_1, update_dprintf_command_list)
4978 (create_tracepoint_from_upload): Update.
4979
e2fc72e2
TT
49802018-05-04 Tom Tromey <tom@tromey.com>
4981
4982 * cli/cli-decode.h (cmd_list_element): New constructor.
4983 (~cmd_list_element): New destructor.
4984 (struct cmd_list_element): Add initializers.
4985 * cli/cli-decode.c (do_add_cmd): Use "new".
4986 (delete_cmd): Use "delete".
4987
a3b60e45
JK
49882018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 Pedro Alves <palves@redhat.com>
4990
4991 PR breakpoints/19806 and support for PR external/20207.
4992 * NEWS: Mention Aarch64 watchpoint improvements.
4993 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
4994 watchpoints and PR external/20207 watchpoints.
4995 * nat/aarch64-linux-hw-point.c
4996 (kernel_supports_any_contiguous_range): New.
4997 (aarch64_watchpoint_offset): New.
4998 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
4999 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5000 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5001 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5002 next_addr_orig_p. Support PR external/20207 watchpoints.
5003 (aarch64_downgrade_regs): New.
5004 (aarch64_dr_state_insert_one_point): New parameters offset and
5005 addr_orig.
5006 (aarch64_dr_state_remove_one_point): Likewise.
5007 (aarch64_handle_breakpoint): Update caller.
5008 (aarch64_handle_aligned_watchpoint): Likewise.
5009 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5010 aligned_offset.
5011 (aarch64_linux_set_debug_regs): Remove const from state. Call
5012 aarch64_downgrade_regs.
5013 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5014 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5015 (DR_CONTROL_MASK): ... this.
5016 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5017 (unsigned int aarch64_watchpoint_offset): New prototype.
5018 (aarch64_linux_set_debug_regs): Remove const from state.
5019 * utils.c (align_up, align_down): Move to ...
5020 * common/common-utils.c (align_up, align_down): ... here.
5021 * utils.h (align_up, align_down): Move to ...
5022 * common/common-utils.h (align_up, align_down): ... here.
5023
05bc7456
JB
50242018-05-04 Joel Brobecker <brobecker@adacore.com>
5025
5026 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5027 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5028 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5029 Re-implement to match the ABI as summarized in GCC's
5030 gcc/config/sparc/sparc.c. All callers updated.
5031 (sparc32_store_arguments): Remove assertion.
5032
2f433492
TT
50332018-05-04 Tom Tromey <tom@tromey.com>
5034
5035 * printcmd.c: Don't include tui.h.
5036 (decode_format): Use skip_spaces.
5037
9be2ae8f
TT
50382018-05-04 Tom Tromey <tom@tromey.com>
5039
5040 PR gdb/22619:
5041 * printcmd.c (last_count): New global.
5042 (x_command): Use saved count when repeating.
5043
f0b3976b
TT
50442018-05-04 Tom Tromey <tom@tromey.com>
5045
5046 * nto-procfs.c (do_closedir_cleanup): Remove.
5047 (procfs_pidlist): Use gdb_dir_up.
5048 * procfs.c (do_closedir_cleanup): Remove.
5049 (proc_update_threads): Use gdb_dir_up.
5050 * common/filestuff.h (struct gdb_dir_deleter): New.
5051 (gdb_dir_up): New typedef.
5052
862d101a
TT
50532018-05-04 Tom Tromey <tom@tromey.com>
5054
5055 * ada-lang.c (print_mention_exception): Use std::string.
5056
cb7de75e
TT
50572018-05-04 Tom Tromey <tom@tromey.com>
5058
5059 * ada-lang.c (create_excep_cond_exprs): Update.
5060 (ada_exception_catchpoint_cond_string): Use std::string.
5061
49d83361
TT
50622018-05-04 Tom Tromey <tom@tromey.com>
5063
5064 * ada-lang.c (xget_renaming_scope): Return std::string.
5065 (old_renaming_is_invisible): Update.
5066
ade72a34
TT
50672018-05-04 Tom Tromey <tom@tromey.com>
5068
5069 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5070 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5071
2be4d7f0
UW
50722018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5073
5074 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5075
69b6ecb0
TT
50762018-05-04 Tom Tromey <tom@tromey.com>
5077
5078 * remote.c (remote_query_supported_append): Change type.
5079 (remote_check_symbols): Update.
5080
bf27f0e2
PP
50812018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5082
5083 PR gdb/11420
5084 * configure.ac: Prepend libpython.
5085 * python/python-config.py: Likewise.
5086 * configure: Regenerate.
5087
4ea17de8
SM
50882018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5089
5090 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5091
bd732259
PA
50922018-05-03 Pedro Alves <palves@redhat.com>
5093
5094 * s390-linux-nat.c
5095 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5096 override. Write 'true' instead of '1'.
5097 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5098 declaration.
5099
d9f719f1
PA
51002018-05-02 Pedro Alves <palves@redhat.com>
5101
5102 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5103 add_inf_child_target.
5104 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5105 add_inf_child_target.
5106 * aix-thread.c (aix_thread_target_info): New.
5107 (aix_thread_target) <shortname, longname, doc>: Delete.
5108 <info>: New.
5109 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5110 add_inf_child_target.
5111 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5112 add_inf_child_target.
5113 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5114 add_inf_child_target.
5115 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5116 add_inf_child_target.
5117 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5118 add_inf_child_target.
5119 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5120 add_inf_child_target.
5121 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5122 add_inf_child_target.
5123 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5124 add_inf_child_target.
5125 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5126 add_inf_child_target.
5127 * bfd-target.c (target_bfd_target_info): New.
5128 (target_bfd) <shortname, longname, doc>: Delete.
5129 <info>: New.
5130 * bsd-kvm.c (bsd_kvm_target_info): New.
5131 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5132 <info>: New.
5133 (bsd_kvm_target::open): Rename to ...
5134 (bsd_kvm_target_open): ... this. Adjust.
5135 * bsd-uthread.c (bsd_uthread_target_info): New.
5136 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5137 <info>: New.
5138 * corefile.c (core_file_command): Adjust.
5139 * corelow.c (core_target_info): New.
5140 (core_target) <shortname, longname, doc>: Delete.
5141 <info>: New.
5142 (core_target::open): Rename to ...
5143 (core_target_open): ... this. Adjust.
5144 * ctf.c (ctf_target_info): New.
5145 (ctf_target) <shortname, longname, doc>: Delete.
5146 <info>: New.
5147 (ctf_target::open): Rename to ...
5148 (ctf_target_open): ... this.
5149 (_initialize_ctf): Adjust.
5150 * exec.c (exec_target_info): New.
5151 (exec_target) <shortname, longname, doc>: Delete.
5152 <info>: New.
5153 (exec_target::open): Rename to ...
5154 (exec_target_open): ... this.
5155 * gdbcore.h (core_target_open): Declare.
5156 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5157 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5158 add_inf_child_target.
5159 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5160 add_inf_child_target.
5161 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5162 add_inf_child_target.
5163 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5164 add_inf_child_target.
5165 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5166 add_inf_child_target.
5167 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5168 add_inf_child_target.
5169 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5170 add_inf_child_target.
5171 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5172 add_inf_child_target.
5173 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5174 add_inf_child_target.
5175 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5176 add_inf_child_target.
5177 * inf-child.c (inf_child_target_info): New.
5178 (inf_child_target::info): New.
5179 (inf_child_open_target): Remove 'target' parameter. Use
5180 get_native_target instead.
5181 (inf_child_target::open): Delete.
5182 (add_inf_child_target): New.
5183 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5184 Delete.
5185 <info>: New.
5186 (add_inf_child_target): Declare.
5187 (inf_child_open_target): Declare.
5188 * linux-thread-db.c (thread_db_target_info): New.
5189 (thread_db_target) <shortname, longname, doc>: Delete.
5190 <info>: New.
5191 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5192 add_inf_child_target.
5193 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5194 add_inf_child_target.
5195 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5196 add_inf_child_target.
5197 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5198 add_inf_child_target.
5199 * make-target-delegates (print_class): Adjust.
5200 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5201 add_inf_child_target.
5202 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5203 add_inf_child_target.
5204 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5205 add_inf_child_target.
5206 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5207 add_inf_child_target.
5208 * nto-procfs.c (nto_native_target_info): New.
5209 (nto_procfs_target_native) <shortname, longname, doc>:
5210 Delete.
5211 <info>: New.
5212 (nto_procfs_target_info): New.
5213 (nto_procfs_target_procfs) <shortname, longname, doc>:
5214 Delete.
5215 <info>: New.
5216 (init_procfs_targets): Adjust.
5217 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5218 add_inf_child_target.
5219 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5220 add_inf_child_target.
5221 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5222 add_inf_child_target.
5223 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5224 add_inf_child_target.
5225 * ravenscar-thread.c (ravenscar_target_info): New.
5226 (ravenscar_thread_target) <shortname, longname, doc>:
5227 Delete.
5228 <info>: New.
5229 * record-btrace.c (record_btrace_target_info):
5230 (record_btrace_target) <shortname, longname, doc>: Delete.
5231 <info>: New.
5232 (record_btrace_target::open): Rename to ...
5233 (record_btrace_target_open): ... this. Adjust.
5234 * record-full.c (record_longname, record_doc): New.
5235 (record_full_base_target) <shortname, longname, doc>: Delete.
5236 <info>: New.
5237 (record_full_target_info): New.
5238 (record_full_target): <shortname>: Delete.
5239 <info>: New.
5240 (record_full_core_open_1, record_full_open_1): Update comments.
5241 (record_full_base_target::open): Rename to ...
5242 (record_full_open): ... this.
5243 (cmd_record_full_restore): Update.
5244 (_initialize_record_full): Update.
5245 * remote-sim.c (remote_sim_target_info): New.
5246 (gdbsim_target) <shortname, longname, doc>: Delete.
5247 <info>: New.
5248 (gdbsim_target::open): Rename to ...
5249 (gdbsim_target_open): ... this.
5250 (_initialize_remote_sim): Adjust.
5251 * remote.c (remote_doc): New.
5252 (remote_target_info): New.
5253 (remote_target) <shortname, longname, doc>: Delete.
5254 <info>: New.
5255 (extended_remote_target_info): New.
5256 (extended_remote_target) <shortname, longname, doc>: Delete.
5257 <info>: New.
5258 (remote_target::open_1): Make static. Adjust.
5259 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5260 * s390-linux-nat.c (_initialize_s390_nat): Use
5261 add_inf_child_target.
5262 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5263 add_inf_child_target.
5264 * sol-thread.c (thread_db_target_info): New.
5265 (sol_thread_target) <shortname, longname, doc>: Delete.
5266 <info>: New.
5267 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5268 add_inf_child_target.
5269 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5270 add_inf_child_target.
5271 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5272 add_inf_child_target.
5273 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5274 add_inf_child_target.
5275 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5276 add_inf_child_target.
5277 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5278 add_inf_child_target.
5279 * spu-linux-nat.c (_initialize_spu_nat): Use
5280 add_inf_child_target.
5281 * spu-multiarch.c (spu_multiarch_target_info): New.
5282 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5283 <info>: New.
5284 * target-delegates.c: Regenerate.
5285 * target.c: Include <unordered_map>.
5286 (target_ops_p): Delete.
5287 (DEF_VEC_P(target_ops_p)): Delete.
5288 (target_factories): New.
5289 (test_target_info): New.
5290 (test_target_ops::info): New.
5291 (open_target): Adjust to use target_factories.
5292 (add_target_with_completer): Rename to ...
5293 (add_target): ... this. Change prototype. Register target_info
5294 and open callback in target_factories. Register target_info in
5295 command context instead of target_ops.
5296 (add_target): Delete old implementation.
5297 (add_deprecated_target_alias): Change prototype. Adjust.
5298 (the_native_target): New.
5299 (set_native_target, get_native_target): New.
5300 (find_default_run_target): Use the_native_target.
5301 (find_attach_target, find_run_target): Simplify.
5302 (target_ops::open): Delete.
5303 (dummy_target_info): New.
5304 (dummy_target::shortname, dummy_target::longname)
5305 (dummy_target::doc): Delete.
5306 (dummy_target::info): New.
5307 (debug_target::shortname, debug_target::longname)
5308 (debug_target::doc): Delete.
5309 (debug_target::info): New.
5310 * target.h (struct target_info): New.
5311 (target_ops::~target_ops): Add comment.
5312 (target_ops::info): New.
5313 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5314 longer virtual. Implement in terms of target_info.
5315 (set_native_target, get_native_target): Declare.
5316 (target_open_ftype): New.
5317 (add_target, add_target_with_completer)
5318 (add_deprecated_target_alias): Change prototype.
5319 (test_target) <shortname, longname, doc>: Delete.
5320 <info>: New.
5321 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5322 add_inf_child_target.
5323 * tracefile-tfile.c (tfile_target_info): New.
5324 (tfile_target) <shortname, longname, doc>: Delete.
5325 <info>: New.
5326 (tfile_target::open): Rename to ...
5327 (tfile_target_open): ... this.
5328 (_initialize_tracefile_tfile): Adjust.
5329 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5330 add_inf_child_target.
5331 * windows-nat.c (_initialize_windows_nat): Use
5332 add_inf_child_target.
5333 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5334 add_inf_child_target.
5335
135340af
PA
53362018-05-02 Pedro Alves <palves@redhat.com>
5337
5338 * linux-nat.h (linux_nat_target) <low_new_thread,
5339 low_delete_thread, low_new_fork, low_forget_process,
5340 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5341 New virtual methods.
5342 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5343 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5344 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5345 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5346 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5347 Delete.
5348 * linux-fork.c (delete_fork): Adjust to call low method.
5349 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5350 (linux_nat_new_fork, linux_nat_forget_process_hook)
5351 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5352 (linux_nat_status_is_event):
5353 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5354 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5355 to call low method.
5356 (sigtrap_is_event): Rename to ...
5357 (linux_nat_target::low_status_is_event): ... this.
5358 (linux_nat_set_status_is_event): Delete.
5359 (save_stop_reason, linux_nat_wait_1)
5360 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5361 low methods.
5362 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5363 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5364 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5365 (linux_nat_set_prepare_to_resume): Delete.
5366 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5367 low virtual methods.
5368 * amd64-linux-nat.c: Likewise.
5369 * arm-linux-nat.c: Likewise.
5370 * i386-linux-nat.c: Likewise.
5371 * ia64-linux-nat.c: Likewise.
5372 * mips-linux-nat.c: Likewise.
5373 * ppc-linux-nat.c: Likewise.
5374 * s390-linux-nat.c: Likewise.
5375 * sparc64-linux-nat.c: Likewise.
5376 * x86-linux-nat.c: Likewise.
5377 * x86-linux-nat.h: Include "nat/x86-linux.h".
5378 (x86_linux_nat_target) <low_new_fork, low_forget_process,
5379 low_prepare_to_resume, low_new_thread, low_delete_thread>:
5380 Override methods.
5381
57810aa7
PA
53822018-05-02 Pedro Alves <palves@redhat.com>
5383
5384 * target.h (target_ops)
5385 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5386 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
5387 stopped_by_watchpoint, have_continuable_watchpoint,
5388 stopped_data_address, watchpoint_addr_within_range,
5389 can_accel_watchpoint_condition, can_run, thread_alive,
5390 has_all_memory, has_memory, has_stack, has_registers,
5391 has_execution, can_async_p, is_async_p, supports_non_stop,
5392 always_non_stop_p, can_execute_reverse, supports_multi_process,
5393 supports_enable_disable_tracepoint,
5394 supports_disable_randomization, supports_string_tracing,
5395 supports_evaluation_of_breakpoint_conditions,
5396 can_run_breakpoint_commands, filesystem_is_local,
5397 can_download_tracepoint, get_trace_state_variable_value,
5398 set_trace_notes, get_tib_address, use_agent, can_use_agent,
5399 record_is_replaying, record_will_replay,
5400 augmented_libraries_svr4_read>: Adjust to return bool.
5401 * aarch64-linux-nat.c: All implementations adjusted.
5402 * aix-thread.c: All implementations adjusted.
5403 * arm-linux-nat.c: All implementations adjusted.
5404 * breakpoint.c: All implementations adjusted.
5405 * bsd-kvm.c: All implementations adjusted.
5406 * bsd-uthread.c: All implementations adjusted.
5407 * corelow.c: All implementations adjusted.
5408 * ctf.c: All implementations adjusted.
5409 * darwin-nat.c: All implementations adjusted.
5410 * darwin-nat.h: All implementations adjusted.
5411 * exec.c: All implementations adjusted.
5412 * fbsd-nat.c: All implementations adjusted.
5413 * fbsd-nat.h: All implementations adjusted.
5414 * gnu-nat.c: All implementations adjusted.
5415 * gnu-nat.h: All implementations adjusted.
5416 * go32-nat.c: All implementations adjusted.
5417 * ia64-linux-nat.c: All implementations adjusted.
5418 * inf-child.c: All implementations adjusted.
5419 * inf-child.h: All implementations adjusted.
5420 * inf-ptrace.c: All implementations adjusted.
5421 * inf-ptrace.h: All implementations adjusted.
5422 * linux-nat.c: All implementations adjusted.
5423 * linux-nat.h: All implementations adjusted.
5424 * mips-linux-nat.c: All implementations adjusted.
5425 * nto-procfs.c: All implementations adjusted.
5426 * ppc-linux-nat.c: All implementations adjusted.
5427 * procfs.c: All implementations adjusted.
5428 * ravenscar-thread.c: All implementations adjusted.
5429 * record-btrace.c: All implementations adjusted.
5430 * record-full.c: All implementations adjusted.
5431 * remote-sim.c: All implementations adjusted.
5432 * remote.c: All implementations adjusted.
5433 * s390-linux-nat.c: All implementations adjusted.
5434 * sol-thread.c: All implementations adjusted.
5435 * spu-multiarch.c: All implementations adjusted.
5436 * target-delegates.c: All implementations adjusted.
5437 * target.c: All implementations adjusted.
5438 * target.h: All implementations adjusted.
5439 * tracefile-tfile.c: All implementations adjusted.
5440 * tracefile.c: All implementations adjusted.
5441 * tracefile.h: All implementations adjusted.
5442 * windows-nat.c: All implementations adjusted.
5443 * x86-linux-nat.h: All implementations adjusted.
5444 * x86-nat.h: All implementations adjusted.
5445
ad6a4e2d
PA
54462018-05-02 Pedro Alves <palves@redhat.com>
5447
5448 * make-target-delegates (scan_target_h): Don't trim lines here.
5449 Replace sequences of tabs and/or whitespace with a single
5450 whitespace.
5451 (top level, parsing methods): Trim each line before processing it
5452 here.
5453
f6ac5f3d
PA
54542018-05-02 Pedro Alves <palves@redhat.com>
5455 John Baldwin <jhb@freebsd.org>
5456
5457 * target.h (enum strata) <debug_stratum>: New.
5458 (struct target_ops) <all delegation methods>: Replace by C++
5459 virtual methods, and drop "to_" prefix. All references updated
5460 throughout.
5461 <to_shortname, to_longname, to_doc, to_data,
5462 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
5463 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
5464 virtual methods. All references updated throughout.
5465 <can_attach, supports_terminal_ours, can_create_inferior,
5466 get_thread_control_capabilities, attach_no_wait>: New
5467 virtual methods.
5468 <insert_breakpoint, remove_breakpoint>: Now
5469 TARGET_DEFAULT_NORETURN methods.
5470 <info_proc>: Now returns bool.
5471 <to_magic>: Delete.
5472 (OPS_MAGIC): Delete.
5473 (current_target): Delete. All references replaced by references
5474 to ...
5475 (target_stack): ... this. New.
5476 (target_shortname, target_longname): Adjust.
5477 (target_can_run): Now a function declaration.
5478 (default_child_has_all_memory, default_child_has_memory)
5479 (default_child_has_stack, default_child_has_registers)
5480 (default_child_has_execution): Remove target_ops parameter.
5481 (complete_target_initialization): Delete.
5482 (memory_breakpoint_target): New template class.
5483 (test_target_ops): Refactor as a C++ class with virtual methods.
5484 * make-target-delegates (NAME_PART): Tighten.
5485 (POINTER_PART, CP_SYMBOL): New.
5486 (SIMPLE_RETURN_PART): Reimplement.
5487 (VEC_RETURN_PART): Expect less.
5488 (RETURN_PART, VIRTUAL_PART): New.
5489 (METHOD): Adjust to C++ virtual methods.
5490 (scan_target_h): Remove reference to C99.
5491 (dname): Output "target_ops::" prefix.
5492 (write_function_header): Adjust to output a C++ class method.
5493 (write_declaration): New.
5494 (write_delegator): Adjust to output a C++ class method.
5495 (tdname): Output "dummy_target::" prefix.
5496 (write_tdefault, write_debugmethod): Adjust to output a C++ class
5497 method.
5498 (tdefault_names, debug_names): Delete.
5499 (return_types, tdefaults, styles, argtypes_array): New.
5500 (top level): All methods are delegators.
5501 (print_class): New.
5502 (top level): Print dummy_target and debug_target classes.
5503 * target-delegates.c: Regenerate.
5504 * target-debug.h (target_debug_print_enum_info_proc_what)
5505 (target_debug_print_thread_control_capabilities)
5506 (target_debug_print_thread_info_p): New.
5507 * target.c (dummy_target): Delete.
5508 (the_dummy_target, the_debug_target): New.
5509 (target_stack): Now extern.
5510 (set_targetdebug): Push/unpush debug target.
5511 (default_child_has_all_memory, default_child_has_memory)
5512 (default_child_has_stack, default_child_has_registers)
5513 (default_child_has_execution): Remove target_ops parameter.
5514 (complete_target_initialization): Delete.
5515 (add_target_with_completer): No longer call
5516 complete_target_initialization.
5517 (target_supports_terminal_ours): Use regular delegation.
5518 (update_current_target): Delete.
5519 (push_target): No longer check magic number. Don't call
5520 update_current_target.
5521 (unpush_target): Don't call update_current_target.
5522 (target_is_pushed): No longer check magic number.
5523 (target_require_runnable): Skip for all stratums over
5524 process_stratum.
5525 (target_ops::info_proc): New.
5526 (target_info_proc): Use find_target_at and
5527 find_default_run_target.
5528 (target_supports_disable_randomization): Use regular delegation.
5529 (target_get_osdata): Use find_target_at.
5530 (target_ops::open, target_ops::close, target_ops::can_attach)
5531 (target_ops::attach, target_ops::can_create_inferior)
5532 (target_ops::create_inferior, target_ops::can_run)
5533 (target_can_run): New.
5534 (default_fileio_target): Use regular delegation.
5535 (target_ops::fileio_open, target_ops::fileio_pwrite)
5536 (target_ops::fileio_pread, target_ops::fileio_fstat)
5537 (target_ops::fileio_close, target_ops::fileio_unlink)
5538 (target_ops::fileio_readlink): New.
5539 (target_fileio_open_1, target_fileio_unlink)
5540 (target_fileio_readlink): Always call the target method. Handle
5541 FILEIO_ENOSYS.
5542 (return_zero, return_zero_has_execution): Delete.
5543 (init_dummy_target): Delete.
5544 (dummy_target::dummy_target, dummy_target::shortname)
5545 (dummy_target::longname, dummy_target::doc)
5546 (debug_target::debug_target, debug_target::shortname)
5547 (debug_target::longname, debug_target::doc): New.
5548 (target_supports_delete_record): Use regular delegation.
5549 (setup_target_debug): Delete.
5550 (maintenance_print_target_stack): Skip debug_stratum.
5551 (initialize_targets): Instantiate the_dummy_target and
5552 the_debug_target.
5553 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
5554 use target_stack.
5555 (target_auxv_search, fprint_target_auxv): Adjust.
5556 (info_auxv_command): Adjust to use target_stack.
5557 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
5558 * exceptions.c (print_flush): Handle a NULL target_stack.
5559 * regcache.c (target_ops_no_register): Refactor as class with
5560 virtual methods.
5561
5562 * exec.c (exec_target): New class.
5563 (exec_ops): Now an exec_target.
5564 (exec_open, exec_close_1, exec_get_section_table)
5565 (exec_xfer_partial, exec_files_info, exec_has_memory)
5566 (exec_make_note_section): Refactor as exec_target methods.
5567 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
5568 Delete.
5569 (exec_target::find_memory_regions): New.
5570 (_initialize_exec): Don't call init_exec_ops.
5571 * gdbcore.h (exec_file_clear): Delete.
5572
5573 * corefile.c (core_target): Delete.
5574 (core_file_command): Adjust.
5575 * corelow.c (core_target): New class.
5576 (the_core_target): New.
5577 (core_close): Remove target_ops parameter.
5578 (core_close_cleanup): Adjust.
5579 (core_target::close): New.
5580 (core_open, core_detach, get_core_registers, core_files_info)
5581 (core_xfer_partial, core_thread_alive, core_read_description)
5582 (core_pid_to_str, core_thread_name, core_has_memory)
5583 (core_has_stack, core_has_registers, core_info_proc): Rework as
5584 core_target methods.
5585 (ignore, core_remove_breakpoint, init_core_ops): Delete.
5586 (_initialize_corelow): Initialize the_core_target.
5587 * gdbcore.h (core_target): Delete.
5588 (the_core_target): New.
5589
5590 * ctf.c: (ctf_target): New class.
5591 (ctf_ops): Now a ctf_target.
5592 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
5593 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
5594 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
5595 methods.
5596 (init_ctf_ops): Delete.
5597 (_initialize_ctf): Don't call it.
5598 * tracefile-tfile.c (tfile_target): New class.
5599 (tfile_ops): Now a tfile_target.
5600 (tfile_open, tfile_close, tfile_files_info)
5601 (tfile_get_tracepoint_status, tfile_trace_find)
5602 (tfile_fetch_registers, tfile_xfer_partial)
5603 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
5604 Refactor as tfile_target methods.
5605 (tfile_xfer_partial_features): Remove target_ops parameter.
5606 (init_tfile_ops): Delete.
5607 (_initialize_tracefile_tfile): Don't call it.
5608 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
5609 (tracefile_has_stack, tracefile_has_registers)
5610 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
5611 tracefile_target methods.
5612 (init_tracefile_ops): Delete.
5613 (tracefile_target::tracefile_target): New.
5614 * tracefile.h: Include "target.h".
5615 (tracefile_target): New class.
5616 (init_tracefile_ops): Delete.
5617
5618 * spu-multiarch.c (spu_multiarch_target): New class.
5619 (spu_ops): Now a spu_multiarch_target.
5620 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
5621 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5622 (spu_search_memory, spu_mourn_inferior): Refactor as
5623 spu_multiarch_target methods.
5624 (init_spu_ops): Delete.
5625 (_initialize_spu_multiarch): Remove references to init_spu_ops,
5626 complete_target_initialization.
5627
5628 * ravenscar-thread.c (ravenscar_thread_target): New class.
5629 (ravenscar_ops): Now a ravenscar_thread_target.
5630 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
5631 (ravenscar_thread_alive, ravenscar_pid_to_str)
5632 (ravenscar_fetch_registers, ravenscar_store_registers)
5633 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
5634 (ravenscar_stopped_by_hw_breakpoint)
5635 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
5636 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
5637 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
5638 methods.
5639 (init_ravenscar_thread_ops): Delete.
5640 (_initialize_ravenscar): Remove references to
5641 init_ravenscar_thread_ops and complete_target_initialization.
5642
5643 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
5644 (bsd_uthread_target): New class.
5645 (bsd_uthread_ops): Now a bsd_uthread_target.
5646 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
5647 (bsd_uthread_close, bsd_uthread_mourn_inferior)
5648 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
5649 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
5650 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
5651 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
5652 (bsd_uthread_target): Delete function.
5653 (_initialize_bsd_uthread): Remove reference to
5654 complete_target_initialization.
5655
5656 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
5657 (target_bfd): ... this new class.
5658 (target_bfd_xfer_partial, target_bfd_get_section_table)
5659 (target_bfd_close): Refactor as target_bfd methods.
5660 (target_bfd::~target_bfd): New.
5661 (target_bfd_reopen): Adjust.
5662 (target_bfd::close): New.
5663
5664 * record-btrace.c (record_btrace_target): New class.
5665 (record_btrace_ops): Now a record_btrace_target.
5666 (record_btrace_open, record_btrace_stop_recording)
5667 (record_btrace_disconnect, record_btrace_close)
5668 (record_btrace_async, record_btrace_info)
5669 (record_btrace_insn_history, record_btrace_insn_history_range)
5670 (record_btrace_insn_history_from, record_btrace_call_history)
5671 (record_btrace_call_history_range)
5672 (record_btrace_call_history_from, record_btrace_record_method)
5673 (record_btrace_is_replaying, record_btrace_will_replay)
5674 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5675 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
5676 (record_btrace_store_registers, record_btrace_prepare_to_store)
5677 (record_btrace_to_get_unwinder)
5678 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
5679 (record_btrace_commit_resume, record_btrace_wait)
5680 (record_btrace_stop, record_btrace_can_execute_reverse)
5681 (record_btrace_stopped_by_sw_breakpoint)
5682 (record_btrace_supports_stopped_by_sw_breakpoint)
5683 (record_btrace_stopped_by_hw_breakpoint)
5684 (record_btrace_supports_stopped_by_hw_breakpoint)
5685 (record_btrace_update_thread_list, record_btrace_thread_alive)
5686 (record_btrace_goto_begin, record_btrace_goto_end)
5687 (record_btrace_goto, record_btrace_stop_replaying_all)
5688 (record_btrace_execution_direction)
5689 (record_btrace_prepare_to_generate_core)
5690 (record_btrace_done_generating_core): Refactor as
5691 record_btrace_target methods.
5692 (init_record_btrace_ops): Delete.
5693 (_initialize_record_btrace): Remove reference to
5694 init_record_btrace_ops.
5695 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
5696 the execution_direction global.
5697 (record_full_base_target, record_full_target)
5698 (record_full_core_target): New classes.
5699 (record_full_ops): Now a record_full_target.
5700 (record_full_core_ops): Now a record_full_core_target.
5701 (record_full_target::detach, record_full_target::disconnect)
5702 (record_full_core_target::disconnect)
5703 (record_full_target::mourn_inferior, record_full_target::kill):
5704 New.
5705 (record_full_open, record_full_close, record_full_async): Refactor
5706 as methods of the record_full_base_target class.
5707 (record_full_resume, record_full_commit_resume): Refactor
5708 as methods of the record_full_target class.
5709 (record_full_wait, record_full_stopped_by_watchpoint)
5710 (record_full_stopped_data_address)
5711 (record_full_stopped_by_sw_breakpoint)
5712 (record_full_supports_stopped_by_sw_breakpoint)
5713 (record_full_stopped_by_hw_breakpoint)
5714 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
5715 methods of the record_full_base_target class.
5716 (record_full_store_registers, record_full_xfer_partial)
5717 (record_full_insert_breakpoint, record_full_remove_breakpoint):
5718 Refactor as methods of the record_full_target class.
5719 (record_full_can_execute_reverse, record_full_get_bookmark)
5720 (record_full_goto_bookmark, record_full_execution_direction)
5721 (record_full_record_method, record_full_info, record_full_delete)
5722 (record_full_is_replaying, record_full_will_replay)
5723 (record_full_goto_begin, record_full_goto_end, record_full_goto)
5724 (record_full_stop_replaying): Refactor as methods of the
5725 record_full_base_target class.
5726 (record_full_core_resume, record_full_core_kill)
5727 (record_full_core_fetch_registers)
5728 (record_full_core_prepare_to_store)
5729 (record_full_core_store_registers, record_full_core_xfer_partial)
5730 (record_full_core_insert_breakpoint)
5731 (record_full_core_remove_breakpoint)
5732 (record_full_core_has_execution): Refactor
5733 as methods of the record_full_core_target class.
5734 (record_full_base_target::supports_delete_record): New.
5735 (init_record_full_ops): Delete.
5736 (init_record_full_core_ops): Delete.
5737 (record_full_save): Refactor as method of the
5738 record_full_base_target class.
5739 (_initialize_record_full): Remove references to
5740 init_record_full_ops and init_record_full_core_ops.
5741
5742 * remote.c (remote_target, extended_remote_target): New classes.
5743 (remote_ops): Now a remote_target.
5744 (extended_remote_ops): Now an extended_remote_target.
5745 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
5746 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
5747 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
5748 (remote_pass_signals, remote_set_syscall_catchpoint)
5749 (remote_program_signals, )
5750 (remote_thread_always_alive): Remove target_ops parameter.
5751 (remote_thread_alive, remote_thread_name)
5752 (remote_update_thread_list, remote_threads_extra_info)
5753 (remote_static_tracepoint_marker_at)
5754 (remote_static_tracepoint_markers_by_strid)
5755 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
5756 (remote_open): Refactor as methods of remote_target.
5757 (extended_remote_open, extended_remote_detach)
5758 (extended_remote_attach, extended_remote_post_attach):
5759 (extended_remote_supports_disable_randomization)
5760 (extended_remote_create_inferior): : Refactor as method of
5761 extended_remote_target.
5762 (remote_set_permissions, remote_open_1, remote_detach)
5763 (remote_follow_fork, remote_follow_exec, remote_disconnect)
5764 (remote_resume, remote_commit_resume, remote_stop)
5765 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
5766 (remote_terminal_ours, remote_wait, remote_fetch_registers)
5767 (remote_prepare_to_store, remote_store_registers)
5768 (remote_flash_erase, remote_flash_done, remote_files_info)
5769 (remote_kill, remote_mourn, remote_insert_breakpoint)
5770 (remote_remove_breakpoint, remote_insert_watchpoint)
5771 (remote_watchpoint_addr_within_range)
5772 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
5773 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
5774 (remote_supports_stopped_by_sw_breakpoint)
5775 (remote_stopped_by_hw_breakpoint)
5776 (remote_supports_stopped_by_hw_breakpoint)
5777 (remote_stopped_by_watchpoint, remote_stopped_data_address)
5778 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5779 (remote_verify_memory): Refactor as methods of remote_target.
5780 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
5781 parameter.
5782 (remote_xfer_partial, remote_get_memory_xfer_limit)
5783 (remote_search_memory, remote_rcmd, remote_memory_map)
5784 (remote_pid_to_str, remote_get_thread_local_address)
5785 (remote_get_tib_address, remote_read_description): Refactor as
5786 methods of remote_target.
5787 (remote_target::fileio_open, remote_target::fileio_pwrite)
5788 (remote_target::fileio_pread, remote_target::fileio_close): New.
5789 (remote_hostio_readlink, remote_hostio_fstat)
5790 (remote_filesystem_is_local, remote_can_execute_reverse)
5791 (remote_supports_non_stop, remote_supports_disable_randomization)
5792 (remote_supports_multi_process, remote_supports_cond_breakpoints)
5793 (remote_supports_enable_disable_tracepoint)
5794 (remote_supports_string_tracing)
5795 (remote_can_run_breakpoint_commands, remote_trace_init)
5796 (remote_download_tracepoint, remote_can_download_tracepoint)
5797 (remote_download_trace_state_variable, remote_enable_tracepoint)
5798 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
5799 (remote_trace_start, remote_get_trace_status)
5800 (remote_get_tracepoint_status, remote_trace_stop)
5801 (remote_trace_find, remote_get_trace_state_variable_value)
5802 (remote_save_trace_data, remote_get_raw_trace_data)
5803 (remote_set_disconnected_tracing, remote_core_of_thread)
5804 (remote_set_circular_trace_buffer, remote_traceframe_info)
5805 (remote_get_min_fast_tracepoint_insn_len)
5806 (remote_set_trace_buffer_size, remote_set_trace_notes)
5807 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
5808 (remote_disable_btrace, remote_teardown_btrace)
5809 (remote_read_btrace, remote_btrace_conf)
5810 (remote_augmented_libraries_svr4_read, remote_load)
5811 (remote_pid_to_exec_file, remote_can_do_single_step)
5812 (remote_execution_direction, remote_thread_handle_to_thread_info):
5813 Refactor as methods of remote_target.
5814 (init_remote_ops, init_extended_remote_ops): Delete.
5815 (remote_can_async_p, remote_is_async_p, remote_async)
5816 (remote_thread_events, remote_upload_tracepoints)
5817 (remote_upload_trace_state_variables): Refactor as methods of
5818 remote_target.
5819 (_initialize_remote): Remove references to init_remote_ops and
5820 init_extended_remote_ops.
5821
5822 * remote-sim.c (gdbsim_target): New class.
5823 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
5824 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
5825 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
5826 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
5827 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
5828 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
5829 Refactor as methods of gdbsim_target.
5830 (gdbsim_ops): Now a gdbsim_target.
5831 (init_gdbsim_ops): Delete.
5832 (gdbsim_cntrl_c): Adjust.
5833 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
5834
5835 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
5836 (the_amd64_linux_nat_target): New.
5837 (amd64_linux_fetch_inferior_registers)
5838 (amd64_linux_store_inferior_registers): Refactor as methods of
5839 amd64_linux_nat_target.
5840 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
5841 * i386-linux-nat.c: Don't include "linux-nat.h".
5842 (i386_linux_nat_target): New class.
5843 (the_i386_linux_nat_target): New.
5844 (i386_linux_fetch_inferior_registers)
5845 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
5846 as methods of i386_linux_nat_target.
5847 (_initialize_i386_linux_nat): Adjust. Set linux_target.
5848 * inf-child.c (inf_child_ops): Delete.
5849 (inf_child_fetch_inferior_registers)
5850 (inf_child_store_inferior_registers): Delete.
5851 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
5852 methods of inf_child_target.
5853 (inf_child_target::supports_terminal_ours)
5854 (inf_child_target::terminal_init)
5855 (inf_child_target::terminal_inferior)
5856 (inf_child_target::terminal_ours_for_output)
5857 (inf_child_target::terminal_ours, inf_child_target::interrupt)
5858 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
5859 New.
5860 (inf_child_open, inf_child_disconnect, inf_child_close)
5861 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
5862 (inf_child_post_startup_inferior, inf_child_can_run)
5863 (inf_child_pid_to_exec_file): Refactor as methods of
5864 inf_child_target.
5865 (inf_child_follow_fork): Delete.
5866 (inf_child_target::can_create_inferior)
5867 (inf_child_target::can_attach): New.
5868 (inf_child_target::has_all_memory, inf_child_target::has_memory)
5869 (inf_child_target::has_stack, inf_child_target::has_registers)
5870 (inf_child_target::has_execution): New.
5871 (inf_child_fileio_open, inf_child_fileio_pwrite)
5872 (inf_child_fileio_pread, inf_child_fileio_fstat)
5873 (inf_child_fileio_close, inf_child_fileio_unlink)
5874 (inf_child_fileio_readlink, inf_child_use_agent)
5875 (inf_child_can_use_agent): Refactor as methods of
5876 inf_child_target.
5877 (return_zero, inf_child_target): Delete.
5878 (inf_child_target::inf_child_target): New.
5879 * inf-child.h: Include "target.h".
5880 (inf_child_target): Delete function prototype.
5881 (inf_child_target): New class.
5882 (inf_child_open_target, inf_child_mourn_inferior)
5883 (inf_child_maybe_unpush_target): Delete.
5884 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
5885 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
5886 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
5887 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
5888 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
5889 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
5890 (inf_ptrace_wait, inf_ptrace_xfer_partial)
5891 (inf_ptrace_thread_alive, inf_ptrace_files_info)
5892 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
5893 methods of inf_ptrace_target.
5894 (inf_ptrace_target): Delete function.
5895 * inf-ptrace.h: Include "inf-child.h".
5896 (inf_ptrace_target): Delete function declaration.
5897 (inf_ptrace_target): New class.
5898 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
5899 * linux-nat.c (linux_target): New.
5900 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
5901 (linux_nat_target::~linux_nat_target): New.
5902 (linux_child_post_attach, linux_child_post_startup_inferior)
5903 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
5904 (linux_child_remove_fork_catchpoint)
5905 (linux_child_insert_vfork_catchpoint)
5906 (linux_child_remove_vfork_catchpoint)
5907 (linux_child_insert_exec_catchpoint)
5908 (linux_child_remove_exec_catchpoint)
5909 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
5910 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
5911 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
5912 (linux_nat_stopped_data_address)
5913 (linux_nat_stopped_by_sw_breakpoint)
5914 (linux_nat_supports_stopped_by_sw_breakpoint)
5915 (linux_nat_stopped_by_hw_breakpoint)
5916 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
5917 (linux_nat_kill, linux_nat_mourn_inferior)
5918 (linux_nat_xfer_partial, linux_nat_thread_alive)
5919 (linux_nat_update_thread_list, linux_nat_pid_to_str)
5920 (linux_nat_thread_name, linux_child_pid_to_exec_file)
5921 (linux_child_static_tracepoint_markers_by_strid)
5922 (linux_nat_is_async_p, linux_nat_can_async_p)
5923 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
5924 (linux_nat_supports_multi_process)
5925 (linux_nat_supports_disable_randomization, linux_nat_async)
5926 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
5927 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
5928 (linux_nat_fileio_open, linux_nat_fileio_readlink)
5929 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
5930 methods of linux_nat_target.
5931 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
5932 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
5933 parameter.
5934 (check_stopped_by_watchpoint): Adjust.
5935 (linux_xfer_partial): Delete.
5936 (linux_target_install_ops, linux_target, linux_nat_add_target):
5937 Delete.
5938 (linux_nat_target::linux_nat_target): New.
5939 * linux-nat.h: Include "inf-ptrace.h".
5940 (linux_nat_target): New.
5941 (linux_target, linux_target_install_ops, linux_nat_add_target):
5942 Delete function declarations.
5943 (linux_target): Declare global.
5944 * linux-thread-db.c (thread_db_target): New.
5945 (thread_db_target::thread_db_target): New.
5946 (thread_db_ops): Delete.
5947 (the_thread_db_target): New.
5948 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
5949 (thread_db_update_thread_list, thread_db_pid_to_str)
5950 (thread_db_extra_thread_info)
5951 (thread_db_thread_handle_to_thread_info)
5952 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
5953 (thread_db_resume): Refactor as methods of thread_db_target.
5954 (init_thread_db_ops): Delete.
5955 (_initialize_thread_db): Remove reference to init_thread_db_ops.
5956 * x86-linux-nat.c: Don't include "linux-nat.h".
5957 (super_post_startup_inferior): Delete.
5958 (x86_linux_nat_target::~x86_linux_nat_target): New.
5959 (x86_linux_child_post_startup_inferior)
5960 (x86_linux_read_description, x86_linux_enable_btrace)
5961 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
5962 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
5963 methods of x86_linux_nat_target.
5964 (x86_linux_create_target): Delete. Bits folded ...
5965 (x86_linux_add_target): ... here. Now takes a linux_nat_target
5966 pointer.
5967 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
5968 (x86_linux_nat_target): New class.
5969 (x86_linux_create_target): Delete.
5970 (x86_linux_add_target): Now takes a linux_nat_target pointer.
5971 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
5972 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
5973 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
5974 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
5975 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
5976 make extern.
5977 (x86_use_watchpoints): Delete.
5978 * x86-nat.h: Include "breakpoint.h" and "target.h".
5979 (x86_use_watchpoints): Delete.
5980 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
5981 (x86_stopped_by_watchpoint, x86_stopped_data_address)
5982 (x86_insert_watchpoint, x86_remove_watchpoint)
5983 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
5984 (x86_stopped_by_hw_breakpoint): New declarations.
5985 (x86_nat_target): New template class.
5986
5987 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
5988 (the_ppc_linux_nat_target): New.
5989 (ppc_linux_fetch_inferior_registers)
5990 (ppc_linux_can_use_hw_breakpoint)
5991 (ppc_linux_region_ok_for_hw_watchpoint)
5992 (ppc_linux_ranged_break_num_registers)
5993 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
5994 (ppc_linux_insert_mask_watchpoint)
5995 (ppc_linux_remove_mask_watchpoint)
5996 (ppc_linux_can_accel_watchpoint_condition)
5997 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
5998 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
5999 (ppc_linux_watchpoint_addr_within_range)
6000 (ppc_linux_masked_watch_num_registers)
6001 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6002 (ppc_linux_read_description): Refactor as methods of
6003 ppc_linux_nat_target.
6004 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6005
6006 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6007 (procfs_target): New class.
6008 (the_procfs_target): New.
6009 (procfs_target): Delete function.
6010 (procfs_auxv_parse, procfs_attach, procfs_detach)
6011 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6012 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6013 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6014 (procfs_create_inferior, procfs_update_thread_list)
6015 (procfs_thread_alive, procfs_pid_to_str)
6016 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6017 (procfs_stopped_data_address, procfs_insert_watchpoint)
6018 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6019 (proc_find_memory_regions, procfs_info_proc)
6020 (procfs_make_note_section): Refactor as methods of procfs_target.
6021 (_initialize_procfs): Adjust.
6022 * sol-thread.c (sol_thread_target): New class.
6023 (sol_thread_ops): Now a sol_thread_target.
6024 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6025 (sol_thread_fetch_registers, sol_thread_store_registers)
6026 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6027 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6028 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6029 (init_sol_thread_ops): Delete.
6030 (_initialize_sol_thread): Adjust. Remove references to
6031 init_sol_thread_ops and complete_target_initialization.
6032
6033 * windows-nat.c (windows_nat_target): New class.
6034 (windows_fetch_inferior_registers)
6035 (windows_store_inferior_registers, windows_resume, windows_wait)
6036 (windows_attach, windows_detach, windows_pid_to_exec_file)
6037 (windows_files_info, windows_create_inferior)
6038 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6039 (windows_close, windows_pid_to_str, windows_xfer_partial)
6040 (windows_get_tib_address, windows_get_ada_task_ptid)
6041 (windows_thread_name, windows_thread_alive): Refactor as
6042 windows_nat_target methods.
6043 (do_initial_windows_stuff): Adjust.
6044 (windows_target): Delete function.
6045 (_initialize_windows_nat): Adjust.
6046
6047 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6048 (darwin_mourn_inferior, darwin_kill_inferior)
6049 (darwin_create_inferior, darwin_attach, darwin_detach)
6050 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6051 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6052 (darwin_supports_multi_process): Refactor as darwin_nat_target
6053 methods.
6054 (darwin_resume_to, darwin_files_info): Delete.
6055 (_initialize_darwin_inferior): Rename to ...
6056 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6057 * darwin-nat.h: Include "inf-child.h".
6058 (darwin_nat_target): New class.
6059 (darwin_complete_target): Delete.
6060 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6061 (darwin_target): New.
6062 (i386_darwin_fetch_inferior_registers)
6063 (i386_darwin_store_inferior_registers): Refactor as methods of
6064 darwin_nat_target.
6065 (darwin_complete_target): Delete, with ...
6066 (_initialize_i386_darwin_nat): ... bits factored out here.
6067
6068 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6069 (the_alpha_linux_nat_target): New.
6070 (alpha_linux_register_u_offset): Refactor as
6071 alpha_linux_nat_target method.
6072 (_initialize_alpha_linux_nat): Adjust.
6073 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6074 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6075 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6076 methods of linux_nat_trad_target.
6077 (linux_trad_target): Delete.
6078 * linux-nat-trad.h (linux_trad_target): Delete function.
6079 (linux_nat_trad_target): New class.
6080 * mips-linux-nat.c (mips_linux_nat_target): New class.
6081 (super_fetch_registers, super_store_registers, super_close):
6082 Delete.
6083 (the_mips_linux_nat_target): New.
6084 (mips64_linux_regsets_fetch_registers)
6085 (mips64_linux_regsets_store_registers)
6086 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6087 (mips_linux_register_u_offset, mips_linux_read_description)
6088 (mips_linux_can_use_hw_breakpoint)
6089 (mips_linux_stopped_by_watchpoint)
6090 (mips_linux_stopped_data_address)
6091 (mips_linux_region_ok_for_hw_watchpoint)
6092 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6093 (mips_linux_close): Refactor as methods of mips_linux_nat.
6094 (_initialize_mips_linux_nat): Adjust to C++ification.
6095
6096 * aix-thread.c (aix_thread_target): New class.
6097 (aix_thread_ops): Now an aix_thread_target.
6098 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6099 (aix_thread_fetch_registers, aix_thread_store_registers)
6100 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6101 (aix_thread_thread_alive, aix_thread_pid_to_str)
6102 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6103 Refactor as methods of aix_thread_target.
6104 (init_aix_thread_ops): Delete.
6105 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6106 and complete_target_initialization.
6107 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6108 (rs6000_nat_target): New class.
6109 (the_rs6000_nat_target): New.
6110 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6111 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6112 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6113 (super_create_inferior): Delete.
6114 (_initialize_rs6000_nat): Adjust to C++ification.
6115
6116 * arm-linux-nat.c (arm_linux_nat_target): New class.
6117 (the_arm_linux_nat_target): New.
6118 (arm_linux_fetch_inferior_registers)
6119 (arm_linux_store_inferior_registers, arm_linux_read_description)
6120 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6121 (arm_linux_remove_hw_breakpoint)
6122 (arm_linux_region_ok_for_hw_watchpoint)
6123 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6124 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6125 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6126 arm_linux_nat_target.
6127 (_initialize_arm_linux_nat): Adjust to C++ification.
6128
6129 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6130 (the_aarch64_linux_nat_target): New.
6131 (aarch64_linux_fetch_inferior_registers)
6132 (aarch64_linux_store_inferior_registers)
6133 (aarch64_linux_child_post_startup_inferior)
6134 (aarch64_linux_read_description)
6135 (aarch64_linux_can_use_hw_breakpoint)
6136 (aarch64_linux_insert_hw_breakpoint)
6137 (aarch64_linux_remove_hw_breakpoint)
6138 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6139 (aarch64_linux_region_ok_for_hw_watchpoint)
6140 (aarch64_linux_stopped_data_address)
6141 (aarch64_linux_stopped_by_watchpoint)
6142 (aarch64_linux_watchpoint_addr_within_range)
6143 (aarch64_linux_can_do_single_step): Refactor as methods of
6144 aarch64_linux_nat_target.
6145 (super_post_startup_inferior): Delete.
6146 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6147
6148 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6149 (the_hppa_linux_nat_target): New.
6150 (hppa_linux_fetch_inferior_registers)
6151 (hppa_linux_store_inferior_registers): Refactor as methods of
6152 hppa_linux_nat_target.
6153 (_initialize_hppa_linux_nat): Adjust to C++ification.
6154
6155 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6156 (the_ia64_linux_nat_target): New.
6157 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6158 (ia64_linux_stopped_data_address)
6159 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6160 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6161 ia64_linux_nat_target methods.
6162 (super_xfer_partial): Delete.
6163 (_initialize_ia64_linux_nat): Adjust to C++ification.
6164
6165 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6166 (the_m32r_linux_nat_target): New.
6167 (m32r_linux_fetch_inferior_registers)
6168 (m32r_linux_store_inferior_registers): Refactor as
6169 m32r_linux_nat_target methods.
6170 (_initialize_m32r_linux_nat): Adjust to C++ification.
6171
6172 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6173 (the_m68k_linux_nat_target): New.
6174 (m68k_linux_fetch_inferior_registers)
6175 (m68k_linux_store_inferior_registers): Refactor as
6176 m68k_linux_nat_target methods.
6177 (_initialize_m68k_linux_nat): Adjust to C++ification.
6178
6179 * s390-linux-nat.c (s390_linux_nat_target): New class.
6180 (the_s390_linux_nat_target): New.
6181 (s390_linux_fetch_inferior_registers)
6182 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6183 (s390_insert_watchpoint, s390_remove_watchpoint)
6184 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6185 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6186 (s390_auxv_parse, s390_read_description): Refactor as methods of
6187 s390_linux_nat_target.
6188 (_initialize_s390_nat): Adjust to C++ification.
6189
6190 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6191 (the_sparc_linux_nat_target): New.
6192 (_initialize_sparc_linux_nat): Adjust to C++ification.
6193 * sparc-nat.c (sparc_fetch_inferior_registers)
6194 (sparc_store_inferior_registers): Remove target_ops parameter.
6195 * sparc-nat.h (sparc_fetch_inferior_registers)
6196 (sparc_store_inferior_registers): Remove target_ops parameter.
6197 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6198 (the_sparc64_linux_nat_target): New.
6199 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6200
6201 * spu-linux-nat.c (spu_linux_nat_target): New class.
6202 (the_spu_linux_nat_target): New.
6203 (spu_child_post_startup_inferior, spu_child_post_attach)
6204 (spu_child_wait, spu_fetch_inferior_registers)
6205 (spu_store_inferior_registers, spu_xfer_partial)
6206 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6207 methods.
6208 (_initialize_spu_nat): Adjust to C++ification.
6209
6210 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6211 (the_tilegx_linux_nat_target): New.
6212 (fetch_inferior_registers, store_inferior_registers):
6213 Refactor as methods.
6214 (_initialize_tile_linux_nat): Adjust to C++ification.
6215
6216 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6217 (the_xtensa_linux_nat_target): New.
6218 (xtensa_linux_fetch_inferior_registers)
6219 (xtensa_linux_store_inferior_registers): Refactor as
6220 xtensa_linux_nat_target methods.
6221 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6222
6223 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6224 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6225 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6226 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6227 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6228 (fbsd_stopped_by_sw_breakpoint)
6229 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6230 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6231 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6232 (fbsd_post_startup_inferior, fbsd_post_attach)
6233 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6234 (fbsd_set_syscall_catchpoint)
6235 (super_xfer_partial, super_resume, super_wait)
6236 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6237 (fbsd_handle_debug_trap): Remove target_ops parameter.
6238 (fbsd_nat_add_target): Delete.
6239 * fbsd-nat.h: Include "inf-ptrace.h".
6240 (fbsd_nat_add_target): Delete.
6241 (USE_SIGTRAP_SIGINFO): Define.
6242 (fbsd_nat_target): New class.
6243
6244 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6245 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6246 (amd64bsd_target): Delete.
6247 * amd64-bsd-nat.h: New file.
6248 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6249 "x86-bsd-nat.h".
6250 (amd64_fbsd_nat_target): New class.
6251 (the_amd64_fbsd_nat_target): New.
6252 (amd64fbsd_read_description): Refactor as method of
6253 amd64_fbsd_nat_target.
6254 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6255 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6256 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6257 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6258 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6259 (i386bsd_target): Delete.
6260 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6261 (i386bsd_fetch_inferior_registers)
6262 (i386bsd_store_inferior_registers): Declare.
6263 (i386_bsd_nat_target): New class.
6264 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6265 (the_i386_fbsd_nat_target): New.
6266 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6267 i386_fbsd_nat_target methods.
6268 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6269 (_initialize_i386fbsd_nat): Adjust to C++ification.
6270 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6271 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6272 (_initialize_x86_bsd_nat): Adjust to C++ification.
6273 * x86-bsd-nat.h: Include "x86-nat.h".
6274 (x86bsd_target): Delete declaration.
6275 (x86bsd_nat_target): New class.
6276
6277 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6278 (the_aarch64_fbsd_nat_target): New.
6279 (aarch64_fbsd_fetch_inferior_registers)
6280 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6281 aarch64_fbsd_nat_target.
6282 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6283 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6284 (the_alpha_bsd_nat_target): New.
6285 (alphabsd_fetch_inferior_registers)
6286 (alphabsd_store_inferior_registers): Refactor as
6287 alpha_bsd_nat_target methods.
6288 (_initialize_alphabsd_nat): Refactor as methods of
6289 alpha_bsd_nat_target.
6290 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6291 (the_amd64_nbsd_nat_target): New.
6292 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6293 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6294 (the_amd64_obsd_nat_target): New.
6295 (_initialize_amd64obsd_nat): Adjust to C++ification.
6296 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6297 (the_arm_fbsd_nat_target): New.
6298 (arm_fbsd_fetch_inferior_registers)
6299 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6300 (_initialize_arm_fbsd_nat): Refactor as methods of
6301 arm_fbsd_nat_target.
6302 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6303 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6304 (the_arm_netbsd_nat_target): New.
6305 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6306 arm_netbsd_nat_target.
6307 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6308 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6309 (the_hppa_nbsd_nat_target): New.
6310 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6311 hppa_nbsd_nat_target methods.
6312 (_initialize_hppanbsd_nat): Adjust to C++ification.
6313 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6314 (the_hppa_obsd_nat_target): New.
6315 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6316 methods of hppa_obsd_nat_target.
6317 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6318 add_target.
6319 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6320 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6321 add_target.
6322 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6323 (_initialize_i386obsd_nat): Use add_target.
6324 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6325 (the_m68k_bsd_nat_target): New.
6326 (m68kbsd_fetch_inferior_registers)
6327 (m68kbsd_store_inferior_registers): Refactor as methods of
6328 m68k_bsd_nat_target.
6329 (_initialize_m68kbsd_nat): Adjust to C++ification.
6330 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6331 (the_mips_fbsd_nat_target): New.
6332 (mips_fbsd_fetch_inferior_registers)
6333 (mips_fbsd_store_inferior_registers): Refactor as methods of
6334 mips_fbsd_nat_target.
6335 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6336 add_target.
6337 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6338 (the_mips_nbsd_nat_target): New.
6339 (mipsnbsd_fetch_inferior_registers)
6340 (mipsnbsd_store_inferior_registers): Refactor as methods of
6341 mips_nbsd_nat_target.
6342 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6343 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6344 (the_mips64_obsd_nat_target): New.
6345 (mips64obsd_fetch_inferior_registers)
6346 (mips64obsd_store_inferior_registers): Refactor as methods of
6347 mips64_obsd_nat_target.
6348 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6349 add_target.
6350 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6351 nbsd_nat_target.
6352 * nbsd-nat.h: Include "inf-ptrace.h".
6353 (nbsd_nat_target): New class.
6354 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6355 (obsd_wait): Refactor as methods of obsd_nat_target.
6356 (obsd_add_target): Delete.
6357 * obsd-nat.h: Include "inf-ptrace.h".
6358 (obsd_nat_target): New class.
6359 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6360 (the_ppc_fbsd_nat_target): New.
6361 (ppcfbsd_fetch_inferior_registers)
6362 (ppcfbsd_store_inferior_registers): Refactor as methods of
6363 ppc_fbsd_nat_target.
6364 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6365 add_target.
6366 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6367 (the_ppc_nbsd_nat_target): New.
6368 (ppcnbsd_fetch_inferior_registers)
6369 (ppcnbsd_store_inferior_registers): Refactor as methods of
6370 ppc_nbsd_nat_target.
6371 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6372 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
6373 (the_ppc_obsd_nat_target): New.
6374 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
6375 methods of ppc_obsd_nat_target.
6376 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
6377 add_target.
6378 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
6379 (the_sh_nbsd_nat_target): New.
6380 (shnbsd_fetch_inferior_registers)
6381 (shnbsd_store_inferior_registers): Refactor as methods of
6382 sh_nbsd_nat_target.
6383 (_initialize_shnbsd_nat): Adjust to C++ification.
6384 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
6385 (inf_ptrace_xfer_partial): Delete.
6386 (sparc_xfer_partial, sparc_target): Delete.
6387 * sparc-nat.h (sparc_fetch_inferior_registers)
6388 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
6389 (sparc_target): Delete function declaration.
6390 (sparc_target): New template class.
6391 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
6392 (_initialize_sparcnbsd_nat): Adjust to C++ification.
6393 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
6394 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
6395 add_target.
6396 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
6397 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
6398 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
6399 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
6400 add_target.
6401 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
6402 (the_vax_bsd_nat_target): New.
6403 (vaxbsd_fetch_inferior_registers)
6404 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
6405 methods.
6406 (_initialize_vaxbsd_nat): Adjust to C++ification.
6407
6408 * bsd-kvm.c (bsd_kvm_target): New class.
6409 (bsd_kvm_ops): Now a bsd_kvm_target.
6410 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
6411 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
6412 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
6413 bsd_kvm_target.
6414 (bsd_kvm_return_one): Delete.
6415 (bsd_kvm_add_target): Adjust to C++ification.
6416
6417 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
6418 (nto_procfs_target_procfs): New classes.
6419 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
6420 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
6421 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
6422 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
6423 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
6424 (procfs_remove_hw_breakpoint, procfs_resume)
6425 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
6426 (procfs_kill_inferior, procfs_store_registers)
6427 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
6428 as methods of nto_procfs_target.
6429 (nto_procfs_ops): Now an nto_procfs_target_procfs.
6430 (nto_native_ops): Delete.
6431 (procfs_open, procfs_native_open): Delete.
6432 (nto_native_ops): Now an nto_procfs_target_native.
6433 (init_procfs_targets): Adjust to C++ification.
6434 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
6435 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
6436 Refactor as methods of nto_procfs_target.
6437
6438 * go32-nat.c (go32_nat_target): New class.
6439 (the_go32_nat_target): New.
6440 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
6441 (go32_store_registers, go32_xfer_partial, go32_files_info)
6442 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
6443 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
6444 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
6445 (go32_pid_to_str): Refactor as methods of go32_nat_target.
6446 (go32_target): Delete.
6447 (_initialize_go32_nat): Adjust to C++ification.
6448
6449 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
6450 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
6451 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
6452 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
6453 gnu_nat_target.
6454 (gnu_target): Delete.
6455 * gnu-nat.h (gnu_target): Delete.
6456 (gnu_nat_target): New class.
6457 * i386-gnu-nat.c (gnu_base_target): New.
6458 (i386_gnu_nat_target): New class.
6459 (the_i386_gnu_nat_target): New.
6460 (_initialize_i386gnu_nat): Adjust to C++ification.
6461
3fffc070
PA
64622018-05-02 Pedro Alves <palves@redhat.com>
6463
6464 * bfd-target.c (target_bfd_xclose): Rename to ...
6465 (target_bfd_close): ... this.
6466 (target_bfd_reopen): Adjust.
6467 * target.c (target_close): Remove references to to_xclose.
6468 * target.h (target_ops::to_xclose): Delete.
6469 (target_ops::to_close): Update comments.
6470
6798487f
PA
64712018-05-02 Pedro Alves <palves@redhat.com>
6472
6473 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
6474 "linux-nat.h".
6475 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
6476 * inf-ptrace.c (inf_ptrace_register_u_offset)
6477 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6478 (inf_ptrace_store_register, inf_ptrace_store_registers)
6479 (inf_ptrace_trad_target): Move to ...
6480 * linux-nat-trad.c: ... this new file.
6481 * linux-nat-trad.h: New file.
6482 * linux-nat.c (linux_target_install_ops): Make extern.
6483 (linux_trad_target): Delete.
6484 * linux-nat.h (linux_trad_target): Delete declaration.
6485 (linux_target_install_ops): Declare.
6486 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
6487 "linux-nat.h".
6488
c1955e17
PA
64892018-05-02 Pedro Alves <palves@redhat.com>
6490
6491 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6492 procfs_target/add_target here.
6493 * procfs.c (procfs_target): Make static.
6494 (_initialize_procfs): Call add_target here.
6495 * procfs.h (struct target_ops): Remove forward declaration.
6496 (procfs_target): Remove declaration.
6497 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
6498
b5c8fcb1
PA
64992018-05-02 Pedro Alves <palves@redhat.com>
6500
6501 * procfs.c (procfs_stopped_by_watchpoint)
6502 (procfs_insert_watchpoint, procfs_remove_watchpoint)
6503 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
6504 Forward declare.
6505 (procfs_use_watchpoints): Delete, move contents...
6506 (procfs_target): ... here.
6507 * procfs.h (procfs_use_watchpoints): Delete declaration.
6508 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6509 procfs_use_watchpoints.
6510 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
6511 procfs_use_watchpoints.
6512
0489430a
TT
65132018-05-02 Tom Tromey <tom@tromey.com>
6514
6515 PR python/20084:
6516 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
6517 and var_zuinteger_unlimited.
6518 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
6519 and PARAM_ZUINTEGER_UNLIMITED.
6520 (set_parameter_value): Handle var_zuinteger and
6521 var_zuinteger_unlimited.
6522 (add_setshow_generic): Likewise.
6523 (parmpy_init): Likewise.
6524
1632f8ba
DR
65252018-04-28 Dan Robertson <danlrobertson89@gmail.com>
6526
6527 PR rust/23124
6528 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
6529 pointer is not null before dereferencing it.
6530
76761936
TT
65312018-04-30 Tom Tromey <tom@tromey.com>
6532
6533 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
6534 is_mi_like_p.
6535
2d33446d
TT
65362018-04-30 Tom Tromey <tom@tromey.com>
6537
6538 * breakpoint.c (mention): Remove use of is_mi_like_p.
6539 (print_mention_ranged_breakpoint): Likewise.
6540 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
6541 of is_mi_like_p.
6542
f3c6abab
TT
65432018-04-30 Tom Tromey <tom@tromey.com>
6544
6545 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
6546
40c03530
TT
65472018-04-30 Tom Tromey <tom@tromey.com>
6548
6549 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
6550 (info_spu_event_command): Remove some uses of is_mi_like_p.
6551
2038b7fd
TT
65522018-04-30 Tom Tromey <tom@tromey.com>
6553
6554 * python/py-framefilter.c (py_print_single_arg)
6555 (enumerate_locals, py_print_args, py_print_frame): Remove some
6556 uses of is_mi_like_p.
6557
4904c3c6
TT
65582018-04-30 Tom Tromey <tom@tromey.com>
6559
6560 * ui-out.c: Update.
6561 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
6562 * ui-out.h (ui_out::is_mi_like_p): Now const.
6563 (ui_out::do_is_mi_like_p): Now const.
6564 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
6565
7c66fffc
TT
65662018-04-30 Tom Tromey <tom@tromey.com>
6567
6568 * varobj.c (varobj_set_visualizer): Use new_reference.
6569 * python/python.c (gdbpy_decode_line): Use new_reference.
6570 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
6571 new_reference.
6572
bbfa6f00
TT
65732018-04-30 Tom Tromey <tom@tromey.com>
6574
6575 * varobj.c (install_new_value): Use new_reference.
6576 * value.h (value_incref): Return void. Swap intro comment with
6577 value_decref.
6578 * value.c (set_value_parent): Use new_reference.
6579 (value_incref): Return void. Update intro comment.
6580 (release_value): Use new_reference.
6581 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
6582
1831a9f9
TT
65832018-04-30 Tom Tromey <tom@tromey.com>
6584
6585 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
6586 * gdb_bfd.h (new_bfd_ref): Remove.
6587 (gdb_bfd_open): Update comment.
6588 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6589 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
6590 (gdb_bfd_fdopenr): Use new_reference.
6591 * exec.c (exec_file_attach): Use new_reference.
6592
7c1b5f3d
TT
65932018-04-30 Tom Tromey <tom@tromey.com>
6594
6595 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
6596 method.
6597
e11fb955
TT
65982018-04-30 Tom Tromey <tom@tromey.com>
6599
6600 * jit.c (jit_read_code_entry): Use type_align.
6601 * i386-tdep.c (i386_gdbarch_init): Don't call
6602 set_gdbarch_long_long_align_bit.
6603 * gdbarch.sh: Remove long_long_align_bit.
6604 * gdbarch.c, gdbarch.h: Rebuild.
6605 * arc-tdep.c (arc_type_align): New function.
6606 (arc_gdbarch_init): Use arc_type_align. Don't call
6607 set_gdbarch_long_long_align_bit.
6608
2fff16dd
TT
66092018-04-30 Tom Tromey <tom@tromey.com>
6610
6611 * rust-lang.c (rust_type_alignment): Remove.
6612 (rust_composite_type): Use type_align.
6613
6d7bb824
TT
66142018-04-30 Tom Tromey <tom@tromey.com>
6615
6616 * NEWS: Mention Type.align.
6617 * python/py-type.c (typy_get_alignof): New function.
6618 (type_object_getset): Add "alignof".
6619
007e1530
TT
66202018-04-30 Tom Tromey <tom@tromey.com>
6621
6622 PR exp/17095:
6623 * NEWS: Update.
6624 * std-operator.def (UNOP_ALIGNOF): New operator.
6625 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
6626 New.
6627 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
6628 * c-lang.c (c_op_print_tab): Add alignof.
6629 * c-exp.y (ALIGNOF): New token.
6630 (exp): Add "ALIGNOF" production.
6631 (ident_tokens): Add _Alignof and alignof.
6632
2b4424c3
TT
66332018-04-30 Tom Tromey <tom@tromey.com>
6634
6635 * i386-tdep.c (i386_type_align): New function.
6636 (i386_gdbarch_init): Update.
6637 * gdbarch.sh (type_align): New method.
6638 * gdbarch.c, gdbarch.h: Rebuild.
6639 * arch-utils.h (default_type_align): Declare.
6640 * arch-utils.c (default_type_align): New function.
6641 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
6642 (struct type) <align_log2>: New field.
6643 <instance_flags>: Now a bitfield.
6644 (TYPE_RAW_ALIGN): New macro.
6645 (type_align, type_raw_align, set_type_align): Declare.
6646 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
6647 functions.
6648 * dwarf2read.c (quirk_rust_enum): Set type alignment.
6649 (get_alignment, maybe_set_alignment): New functions.
6650 (read_structure_type, read_enumeration_type, read_array_type)
6651 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
6652 (read_subrange_type, read_base_type): Set type alignment.
6653
d33bc52e
SM
66542018-04-30 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * dwarf2read.c (read_index_from_section): Use bool.
6657
e28b63a9
FG
66582018-04-29 Fabian Groffen <grobian@gentoo.org>
6659
6660 PR gdb/22950
6661 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
6662 with #ifdef.
6663
cd8c76e4
JR
66642018-04-29 John Reiser <jreiser@BitWagon.com>
6665
6666 PR build/22873
6667 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
6668 last step, and do it atomically.
6669
476d250e
AO
66702018-04-27 Alexandre Oliva <aoliva@redhat.com>
6671
6672 * compile/compile-c-types.c (convert_int, convert_float):
6673 Update for C FE v1.
6674
6873858b
TT
66752018-04-27 Tom Tromey <tom@tromey.com>
6676
6677 PR rust/22545:
6678 * rust-lang.c (rust_inclusive_range_type_p): New function.
6679 (rust_range): Handle inclusive ranges.
6680 (rust_compute_range): Likewise.
6681 * rust-exp.y (struct rust_op) <inclusive>: New field.
6682 (DOTDOTEQ): New constant.
6683 (range_expr): Add "..=" productions.
6684 (operator_tokens): Add "..=" token.
6685 (ast_range): Add "inclusive" parameter.
6686 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
6687 ranges.
6688 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
6689 bounds values.
6690 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
6691 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
6692 Update comments.
6693 * expprint.c (print_subexp_standard): Handle new bounds values.
6694 (dump_subexp_body_standard): Likewise.
6695
632e107b
TT
66962018-04-27 Tom Tromey <tom@tromey.com>
6697
6698 * configure: Rebuild.
6699 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
6700 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
6701 "OVERRIDE".
6702 (class symbol_needs_eval_context): Likewise.
6703 * dwarf2read.c (mock_mapped_index::symbol_name_count)
6704 (mock_mapped_index::symbol_name_at): Use "override". Remove
6705 "virtual".
6706 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
6707 "override".
6708 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
6709 * aarch64-tdep.c (instruction_reader::read): Use "override".
6710 (instruction_reader_test::read): Likewise.
6711 * arm-tdep.c (instruction_reader::read): Use "override".
6712 (instruction_reader_thumb::read): Likewise.
6713
b75abf5b
AK
67142018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
6715
6716 PR remote/9665
6717 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
6718 instead of remote_send.
6719 (remote_send): Remove.
6720
79188d8d
PA
67212018-04-26 Pedro Alves <palves@redhat.com>
6722
6723 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
6724 find_function_start_sal instead of find_pc_line.
6725
f50776aa
PA
67262018-04-26 Pedro Alves <palves@redhat.com>
6727
6728 * breakpoint.c (set_breakpoint_location_function): Handle
6729 mst_data_gnu_ifunc.
6730 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
6731 * elfread.c (elf_symtab_read): Give data symbols with
6732 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
6733 (elf_rel_plt_read): Update comment.
6734 * linespec.c (convert_linespec_to_sals): Handle
6735 mst_data_gnu_ifunc.
6736 (minsym_found): Handle mst_data_gnu_ifunc.
6737 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
6738 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
6739 * parse.c (find_minsym_type_and_address): Handle
6740 mst_data_gnu_ifunc.
6741 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
6742 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
6743 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
6744 comment.
6745 <mst_data_gnu_ifunc>: New enumerator.
6746
20944a6e
PA
67472018-04-26 Pedro Alves <palves@redhat.com>
6748
6749 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
6750 (lookup_minimal_symbol_by_pc_section): ... this. Replace
6751 'want_trampoline' parameter by a lookup_msym_prefer parameter.
6752 Handle it.
6753 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
6754 (lookup_minimal_symbol_by_pc): Adjust.
6755 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
6756 (lookup_solib_trampoline_symbol_by_pc): Adjust.
6757 * minsyms.h (lookup_msym_prefer): New enum.
6758 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
6759 parameter by a lookup_msym_prefer parameter.
6760
1adeb822
PA
67612018-04-26 Pedro Alves <palves@redhat.com>
6762
6763 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
6764 ends in "@plt" instead of looking at the symbol's section.
6765
a0aca7b0
PA
67662018-04-26 Pedro Alves <palves@redhat.com>
6767
6768 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
6769 all references.
6770 (find_pc_partial_function_gnu_ifunc): Rename to ...
6771 (find_pc_partial_function): ... this, and remove references to
6772 'is_gnu_ifunc_p'.
6773 (find_pc_partial_function): Delete old implementation.
6774 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
6775
76af0f26
PA
67762018-04-26 Pedro Alves <palves@redhat.com>
6777
6778 * linespec.c (struct bound_minimal_symbol_search_key): New.
6779 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
6780 skip first line if we found a GNU ifunc minimal symbol by name.
6781 (compare_msymbols): Change parameters to work with a destructured
6782 lhs minsym.
6783 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
6784 functions.
6785
3467ec66
PA
67862018-04-26 Pedro Alves <palves@redhat.com>
6787
6788 * breakpoint.c (set_breakpoint_location_function): Don't resolve
6789 ifunc targets here. Instead, if we have an ifunc minsym, use its
6790 address/name.
6791 (add_location_to_breakpoint): Store the minsym and the objfile in
6792 the breakpoint location.
6793 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
6794 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
6795 Record the minsym in the sal.
6796 * symtab.h (symtab_and_line) <msymbol>: New field.
6797
28f4fa4d
PA
67982018-04-26 Pedro Alves <palves@redhat.com>
6799
6800 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
6801 unless we actually resolved the ifunc.
6802
ca31ab1d
PA
68032018-04-26 Pedro Alves <palves@redhat.com>
6804
6805 * c-exp.y (variable production): Prefer ifunc minsyms over
6806 regular function symbols.
6807 * symtab.c (find_gnu_ifunc): New function.
6808 * minsyms.h (lookup_msym_prefer): New enum.
6809 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
6810 parameter by a lookup_msym_prefer parameter.
6811 * symtab.h (find_gnu_ifunc): New declaration.
6812
8388016d
PA
68132018-04-26 Pedro Alves <palves@redhat.com>
6814
6815 * blockframe.c (find_gnu_ifunc_target_type): New function.
6816 (find_function_type): New.
6817 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
6818 return a value with a memory address.
6819 (eval_call): For calls to GNU ifunc functions, try to find the
6820 type of the target function from the type that the resolver
6821 returns.
6822 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
6823 symbols.
6824 * infcall.c (find_function_return_type): Delete.
6825 (find_function_addr): Add 'function_type' parameter. For calls to
6826 GNU ifunc functions, try to find the type of the target function
6827 from the type that the resolver returns, and return it via
6828 FUNCTION_TYPE.
6829 (call_function_by_hand_dummy): Adjust to use the function type
6830 returned by find_function_addr.
6831 (find_function_addr): Add 'function_type' parameter and move
6832 description here.
6833 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
6834 declarations.
6835
a376e11d
PA
68362018-04-26 Pedro Alves <palves@redhat.com>
6837
6838 * c-exp.y (variable production): Skip finding an alias for ifunc
6839 symbols.
6840
02e169e2
PA
68412018-04-26 Pedro Alves <palves@redhat.com>
6842
6843 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
6844
249b5733
PA
68452018-04-25 Pedro Alves <palves@redhat.com>
6846
6847 * infcmd.c (kill_command): Print the pid as string, not the whole
6848 thread's ptid. Add comment. s/has been killed/killed/ in output
6849 message.
6850 * remote.c (remote_detach_1): Print the pid as string, not the
6851 whole thread's ptid.
6852
f67c0c91
SDJ
68532018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6854 Sergio Durigan Junior <sergiodj@redhat.com>
6855 Pedro Alves <palves@redhat.com>
6856
6857 * infcmd.c (kill_command): Print message when inferior has
6858 been killed.
6859 * inferior.c (print_inferior_events): Remove 'static'. Set as
6860 '1'.
6861 (add_inferior): Improve message printed when
6862 'print_inferior_events' is on.
6863 (exit_inferior): Remove message printed when
6864 'print_inferior_events' is on.
6865 (detach_inferior): Improve message printed when
6866 'print_inferior_events' is on.
6867 (initialize_inferiors): Use 'add_inferior_silent' to set
6868 'current_inferior_'.
6869 * inferior.h (print_inferior_events): Declare here as
6870 'extern'.
6871 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
6872 '[Detaching...]' messages when 'print_inferior_events' is on.
6873 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
6874 as prefix/suffix for messages. Remove periods. Fix erroneous
6875 'Detaching after fork from child...', replace it by '... from
6876 parent...'.
6877 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
6878 prefix/suffix when printing 'Detaching...' messages. Print
6879 them when 'print_inferior_events' is on.
6880 * remote.c (remote_detach_1): Print message when detaching
6881 from inferior and '!is_fork_parent'.
6882
e427af18
TT
68832018-04-24 Tom Tromey <tom@tromey.com>
6884
6885 * cli-out.h: Reindent.
6886
05b1d8d6
TT
68872018-04-24 Tom Tromey <tom@tromey.com>
6888
6889 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
6890 (cli_ui_out::do_field_string): Use fputs_filtered.
6891 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
6892
a95c7dab
TT
68932018-04-23 Tom Tromey <tom@tromey.com>
6894
6895 * guile/scm-frame.c (gdbscm_frame_read_var): Use
6896 gdb::unique_xmalloc_ptr.
6897
458412c3
TT
68982018-04-23 Tom Tromey <tom@tromey.com>
6899
6900 * configure: Rebuild.
6901
db86b02b
RS
69022018-04-22 Rajendra SY <rajendra.sy@gmail.com>
6903
6904 PR gdb/23095
6905 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
6906 prepare_for_testing. Set normal_bp to r_debug_state if target
6907 is bsd.
6908
00aecdcf
PA
69092018-04-21 Pedro Alves <palves@redhat.com>
6910 Rajendra SY <rajendra.sy@gmail.com>
6911
6912 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
6913 * remote.c (extended_remote_attach): In all-stop mode, mark the
6914 thread as executing.
6915
224608c3
PW
69162018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6917
6918 * thread.c (thread_apply_all_command): Fix comment.
6919 (thread_command): Fix comment.
6920
3b74854b
AH
69212018-04-10 Alan Hayward <alan.hayward@arm.com>
6922
6923 * common/tdesc.h (tdesc_create_feature): Remove xml filename
6924 parameter.
6925 * features/aarch64-core.c (create_feature_aarch64_core):
6926 Regenerate.
6927 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
6928 Likewise.
6929 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
6930 Likewise.
6931 * features/i386/32bit-avx512.c
6932 (create_feature_i386_32bit_avx512): Likewise.
6933 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
6934 Likewise.
6935 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
6936 Likewise.
6937 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
6938 Likewise.
6939 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
6940 Likewise.
6941 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
6942 Likewise.
6943 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
6944 Likewise.
6945 * features/i386/64bit-avx512.c
6946 (create_feature_i386_64bit_avx512): Likewise.
6947 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
6948 Likewise.
6949 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
6950 Likewise.
6951 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
6952 Likewise.
6953 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
6954 Likewise.
6955 * features/i386/64bit-segments.c
6956 (create_feature_i386_64bit_segments): Likewise.
6957 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
6958 Likewise.
6959 * features/i386/x32-core.c
6960 (create_feature_i386_x32_core): Likewise.
6961 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
6962 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
6963 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
6964 * target-descriptions.c: In generated code, don't pass xml
6965 filename.
6966
e98577a9
AH
69672018-04-18 Alan Hayward <alan.hayward@arm.com>
6968
6969 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
6970 (print_xml_feature::visit_post): Likewise.
6971 (print_xml_feature::visit): Likewise.
6972 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
6973 (print_xml_feature): Add new class.
6974 * regformats/regdat.sh: Null xmltarget on feature targets.
6975 * target-descriptions.c (struct target_desc): Add xmltarget.
6976 (maintenance_check_tdesc_xml_convert): Add unittest function.
6977 (tdesc_get_features_xml): Add function to get xml.
6978 (maintenance_check_xml_descriptions): Test xml generation.
6979 * xml-tdesc.c (string_read_description_xml): Add function.
6980 * xml-tdesc.h (string_read_description_xml): Add declaration.
6981
ad7fc756
AH
69822018-04-18 Alan Hayward <alan.hayward@arm.com>
6983
6984 * features/Makefile: Add feature marker to targets with new style
6985 target descriptions.
6986 * regformats/aarch64.dat: Regenerate.
6987 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
6988 * regformats/i386/amd64-avx-linux.dat: Likewise.
6989 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
6990 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
6991 * regformats/i386/amd64-linux.dat: Likewise.
6992 * regformats/i386/amd64-mpx-linux.dat: Likewise.
6993 * regformats/i386/amd64.dat: Likewise.
6994 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
6995 * regformats/i386/i386-avx-linux.dat: Likewise.
6996 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
6997 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
6998 * regformats/i386/i386-linux.dat: Likewise.
6999 * regformats/i386/i386-mmx-linux.dat: Likewise.
7000 * regformats/i386/i386-mpx-linux.dat: Likewise.
7001 * regformats/i386/i386.dat: Likewise.
7002 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7003 * regformats/i386/x32-avx-linux.dat: Likewise.
7004 * regformats/i386/x32-linux.dat: Likewise.
7005 * regformats/tic6x-c62x-linux.dat: Likewise.
7006 * regformats/tic6x-c64x-linux.dat: Likewise.
7007 * regformats/tic6x-c64xp-linux.dat: Likewise.
7008 * regformats/regdat.sh: Parse feature marker.
7009
d278f585
AH
70102018-04-18 Alan Hayward <alan.hayward@arm.com>
7011
7012 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7013 (tdesc_osabi_name): Likewise.
7014 * target-descriptions.c (tdesc_architecture_name): Add new
7015 function.
7016 (tdesc_osabi_name): Likewise.
7017
eee8a18d
AH
70182018-04-18 Alan Hayward <alan.hayward@arm.com>
7019
7020 * common/tdesc.c (tdesc_predefined_type): Move to here.
7021 (tdesc_named_type): Likewise.
7022 (tdesc_create_vector): Likewise.
7023 (tdesc_create_struct): Likewise.
7024 (tdesc_set_struct_size): Likewise.
7025 (tdesc_create_union): Likewise.
7026 (tdesc_create_flags): Likewise.
7027 (tdesc_create_enum): Likewise.
7028 (tdesc_add_field): Likewise.
7029 (tdesc_add_typed_bitfield): Likewise.
7030 (tdesc_add_bitfield): Likewise.
7031 (tdesc_add_flag): Likewise.
7032 (tdesc_add_enum_value): Likewise.
7033 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7034 (struct tdesc_type_vector): Likewise.
7035 (struct tdesc_type_field): Likewise.
7036 (struct tdesc_type_with_fields): Likewise.
7037 (tdesc_create_enum): Add declaration.
7038 (tdesc_add_typed_bitfield): Likewise.
7039 (tdesc_add_enum_value): Likewise.
7040 * target-descriptions.c (tdesc_type_field): Move from here.
7041 (tdesc_type_builtin): Likewise.
7042 (tdesc_type_vector): Likewise.
7043 (tdesc_type_with_fields): Likewise.
7044 (tdesc_predefined_types): Likewise.
7045 (tdesc_named_type): Likewise.
7046 (tdesc_create_vector): Likewise.
7047 (tdesc_create_struct): Likewise.
7048 (tdesc_set_struct_size): Likewise.
7049 (tdesc_create_union): Likewise.
7050 (tdesc_create_flags): Likewise.
7051 (tdesc_create_enum): Likewise.
7052 (tdesc_add_field): Likewise.
7053 (tdesc_add_typed_bitfield): Likewise.
7054 (tdesc_add_bitfield): Likewise.
7055 (tdesc_add_flag): Likewise.
7056 (tdesc_add_enum_value): Likewise.
7057 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7058 (tdesc_add_typed_bitfield): Likewise.
7059 (tdesc_add_enum_value): Likewise.
7060
82ec9bc7
AH
70612018-04-18 Alan Hayward <alan.hayward@arm.com>
7062
7063 * common/tdesc.c (tdesc_feature::accept): Move to here.
7064 (tdesc_feature::operator==): Likewise.
7065 (tdesc_create_reg): Likewise.
7066 * common/tdesc.h (tdesc_type_kind): Likewise.
7067 (struct tdesc_type): Likewise.
7068 (struct tdesc_feature): Likewise.
7069 * regformats/regdat.sh: Create a feature.
7070 * target-descriptions.c (tdesc_type_kind): Move from here.
7071 (tdesc_type): Likewise.
7072 (tdesc_type_up): Likewise.
7073 (tdesc_feature): Likewise.
7074 (tdesc_create_reg): Likewise.
7075
ea3e7d71
AH
70762018-04-18 Alan Hayward <alan.hayward@arm.com>
7077
7078 * Makefile.in: Add arch/tdesc.c
7079 * common/tdesc.c: New file.
7080 * common/tdesc.h (tdesc_element_visitor): Move to here.
7081 (tdesc_element): Likewise.
7082 (tdesc_reg): Likewise.
7083 (tdesc_reg_up): Likewise.
7084 * regformats/regdef.h (reg): Add offset to constructors.
7085 * target-descriptions.c (tdesc_element_visitor): Move from here.
7086 (tdesc_element): Likewise.
7087 (tdesc_reg): Likewise.
7088 (tdesc_reg_up): Likewise.
7089
bedda9ac
TT
70902018-04-17 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7093 discriminant field.
7094
a037790e
TT
70952018-04-17 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7098
c7dcbf88
AA
70992018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7100
7101 * symtab.c (print_symbol_info): Skip printing filename and line
7102 number when `last' is NULL.
7103 (symtab_symbol_info): Use empty string instead of NULL for first
7104 invocation of print_symbol_info.
7105 (rbreak_command): Pass NULL to `last' parameter of
7106 print_symbol_info.
7107
07d28c77
SM
71082018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7109
7110 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7111 instead of nullptr.
7112
8a3de5e1
PA
71132018-04-16 Pedro Alves <palves@redhat.com>
7114
7115 * MAINTAINERS (sh): Remove.
7116 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7117 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7118 (ALLDEPFILES): Remove sh64-tdep.c.
7119 * NEWS: Mentions that support for SH-5/SH64 is removed.
7120 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7121 (sh*-*-openbsd*): Ditto.
7122 (sh64-*-elf*): Remove.
7123 (sh*): Remove.
7124 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7125 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7126 * sh-tdep.c: No longer include "sh64-tdep.h".
7127 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7128 * sh64-tdep.c, sh64-tdep.h: Remove files.
7129
a2a79012
PA
71302018-04-16 Pedro Alves <palves@redhat.com>
7131
7132 * MAINTAINERS: Remove m88k.
7133 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7134 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7135 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7136 * NEWS: Mention that support for m88k was removed.
7137 * configure.host (m88*-*-*): Remove support.
7138 * configure.nat (m88k-*-*): Remove support.
7139 * configure.tgt (m88*-*-openbsd*): Remove.
7140 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7141
eda4efb1
SM
71422018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * configure.tgt (x86_tobjs): New variable.
7145 (amd64_tobjs, i386_tobjs): Use it.
7146
b744723f
AA
71472018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7148
7149 * symtab.c (print_symbol_info): Precede the symbol definition by
7150 the line number when available.
7151 * NEWS: Advertise this enhancement.
7152
4a4495d6
MM
71532018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7154
7155 * NEWS (New options): announce set/show record btrace cpu.
7156 * btrace.c: Include record-btrace.h.
7157 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7158 the vendor is unknown.
7159 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7160 Maybe overwrite the btrace configuration's cpu.
7161 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7162 (btrace_fetch): Add cpu parameter. Update callers.
7163 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7164 Maybe overwrite the btrace configuration's cpu. Skip enabling
7165 errata workarounds if the vendor is unknown.
7166 * python/py-record-btrace.c: Include record-btrace.h.
7167 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7168 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7169 * record-btrace.c (record_btrace_cpu_state_kind): New.
7170 (record_btrace_cpu): New.
7171 (set_record_btrace_cpu_cmdlist): New.
7172 (record_btrace_get_cpu): New.
7173 (require_btrace_thread, record_btrace_info)
7174 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7175 (cmd_set_record_btrace_cpu_none): New.
7176 (cmd_set_record_btrace_cpu_auto): New.
7177 (cmd_set_record_btrace_cpu): New.
7178 (cmd_show_record_btrace_cpu): New.
7179 (_initialize_record_btrace): Initialize set/show record btrace cpu
7180 commands.
7181 * record-btrace.h (record_btrace_get_cpu): New.
7182
69f90c75
MM
71832018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7184
7185 * record.c (set_record_command): Fix typo in message.
7186
b85310e1
MM
71872018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7188
7189 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7190
1d509aa6
MM
71912018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7192
7193 * infrun.c (process_event_stop_test): Call
7194 gdbarch_in_indirect_branch_thunk.
7195 * gdbarch.sh (in_indirect_branch_thunk): New.
7196 * gdbarch.c: Regenerated.
7197 * gdbarch.h: Regenerated.
7198 * x86-tdep.h: New.
7199 * x86-tdep.c: New.
7200 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7201 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7202 (ALLDEPFILES): Add x86-tdep.c.
7203 * arch-utils.h (default_in_indirect_branch_thunk): New.
7204 * arch-utils.c (default_in_indirect_branch_thunk): New.
7205 * i386-tdep: Include x86-tdep.h.
7206 (i386_in_indirect_branch_thunk): New.
7207 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7208 function.
7209 * amd64-tdep: Include x86-tdep.h.
7210 (amd64_in_indirect_branch_thunk): New.
7211 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7212
b4be9bfd
JK
72132018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7214
7215 PR gdb/23053
7216 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7217 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7218 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7219 regression.
7220
53d7df28
TT
72212018-04-12 Tom Tromey <tom@tromey.com>
7222
7223 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7224 (rust_evaluate_subexp): Likewise.
7225
70b33f19
PA
72262018-04-12 Pedro Alves <palves@redhat.com>
7227
7228 * procfs.c (procfs_detach): Make forward declaration's prototype
7229 match definition's protototype.
7230 (proc_get_LDT_entry): Remove stale do_cleanups call.
7231
436411b1
PA
72322018-04-12 Pedro Alves <palves@redhat.com>
7233
7234 * target.h (target_ops::to_has_exited): Delete.
7235 (target_has_exited): Delete.
7236 * target-delegates.c: Regenerate.
7237
20db9c52
PA
72382018-04-11 Pedro Alves <palves@redhat.com>
7239
7240 * target.c (fileio_fh_t::t): Add comment.
7241 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7242 (target_fileio_close): Handle a NULL target.
7243 (invalidate_fileio_fh): New.
7244 (target_close): Call it.
7245 * remote.c (remote_hostio_send_command): No longer check whether
7246 remote_desc is open.
7247
5ff79300
PA
72482018-04-11 Pedro Alves <palves@redhat.com>
7249
7250 * target.c (fileio_fh_t): Make it a named struct instead of a
7251 typedef.
7252 (fileio_fh_t::is_closed): New method.
7253 (DEF_VEC_O (fileio_fh_t)): Remove.
7254 (fileio_fhandles): Now a std::vector.
7255 (is_closed_fileio_fh): Delete.
7256 (acquire_fileio_fd): Adjust. Rename parameters.
7257 (release_fileio_fd): Adjust.
7258 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7259 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7260 (target_fileio_close): Adjust.
7261
6e22e10d
SM
72622018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7263
7264 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7265 index.
7266
731f534f
PA
72672018-04-10 Pedro Alves <palves@redhat.com>
7268
7269 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7270 (scoped_finish_thread_state): New class.
7271 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7272 cleanup.
7273 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7274 (fetch_inferior_event, normal_stop): Likewise.
7275 * thread.c (finish_thread_state_cleanup): Delete.
7276
d5f4488f
SM
72772018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7278 Pedro Alves <palves@redhat.com>
7279
7280 * value.c: Include "selftest.h" and "common/array-view.h".
7281 (struct range) <operator ==>: New.
7282 (test_ranges_contain): New.
7283 (check_ranges_vector): New.
7284 (test_insert_into_bit_range_vector): New.
7285 (_initialize_values): Register selftests.
7286 * common/array-view.h (operator==, operator!=): New.
7287
b24531ed
SM
72882018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7289
7290 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7291 an iterator.
7292 * inline-frame.c: Include <algorithm>.
7293 (struct inline_state): Add constructor.
7294 (inline_state_s): Remove.
7295 (DEF_VEC_O(inline_state_s)): Remove.
7296 (inline_states): Change type to std::vector.
7297 (find_inline_frame_state): Adjust to std::vector.
7298 (allocate_inline_frame_state): Remove.
7299 (clear_inline_frame_state): Adjust to std::vector.
7300 (skip_inline_frames): Adjust to std::vector.
7301
c252925c
SM
73022018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * tracepoint.h (struct trace_state_variable): Add constructor.
7305 <name>: Change type to std::string.
7306 * tracepoint.c (tsv_s): Remove.
7307 (DEF_VEC_O(tsv_s)): Remove.
7308 (tvariables): Change to std::vector.
7309 (create_trace_state_variable): Adjust to std::vector.
7310 (find_trace_state_variable): Likewise.
7311 (find_trace_state_variable_by_number): Likewise.
7312 (delete_trace_state_variable): Likewise.
7313 (trace_variable_command): Adjust to std::string.
7314 (delete_trace_variable_command): Likewise.
7315 (tvariables_info_1): Adjust to std::vector.
7316 (save_trace_state_variables): Likewise.
7317 (start_tracing): Likewise.
7318 (merge_uploaded_trace_state_variables): Adjust to std::vector
7319 and std::string.
7320 * target.h (struct target_ops)
7321 <to_download_trace_state_variable>: Pass reference to
7322 trace_state_variable.
7323 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7324 * target-delegates.c: Re-generate.
7325 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7326 (mi_tsv_deleted): Likewise.
7327 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7328 * remote.c (remote_download_trace_state_variable): Change
7329 pointer to reference and adjust.
7330 * make-target-delegates (parse_argtypes): Handle references.
7331 (write_function_header): Likewise.
7332 (munge_type): Likewise.
7333
c9638d26
SM
73342018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7335
7336 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7337 string_view-selftests.c.
7338 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7339 testsuite.
7340 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7341 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7342 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7343 * unittests/basic_string_view/element_access/char/1.cc:
7344 Likewise.
7345 * unittests/basic_string_view/element_access/char/empty.cc:
7346 Likewise.
7347 * unittests/basic_string_view/element_access/char/front_back.cc:
7348 Likewise.
7349 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7350 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7351 Likewise.
7352 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7353 Likewise.
7354 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7355 Likewise.
7356 * unittests/basic_string_view/operations/compare/char/1.cc:
7357 Likewise.
7358 * unittests/basic_string_view/operations/compare/char/13650.cc:
7359 Likewise.
7360 * unittests/basic_string_view/operations/copy/char/1.cc:
7361 Likewise.
7362 * unittests/basic_string_view/operations/data/char/1.cc:
7363 Likewise.
7364 * unittests/basic_string_view/operations/find/char/1.cc:
7365 Likewise.
7366 * unittests/basic_string_view/operations/find/char/2.cc:
7367 Likewise.
7368 * unittests/basic_string_view/operations/find/char/3.cc:
7369 Likewise.
7370 * unittests/basic_string_view/operations/find/char/4.cc:
7371 Likewise.
7372 * unittests/basic_string_view/operations/rfind/char/1.cc:
7373 Likewise.
7374 * unittests/basic_string_view/operations/rfind/char/2.cc:
7375 Likewise.
7376 * unittests/basic_string_view/operations/rfind/char/3.cc:
7377 Likewise.
7378 * unittests/basic_string_view/operations/substr/char/1.cc:
7379 Likewise.
7380 * unittests/basic_string_view/operators/char/2.cc: Likewise.
7381 * unittests/string_view-selftests.c: New file.
7382
fdc11678
SM
73832018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7384
7385 * unittests/basic_string_view/capacity/1.cc: New file.
7386 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
7387 * unittests/basic_string_view/cons/char/1.cc: New file.
7388 * unittests/basic_string_view/cons/char/2.cc: New file.
7389 * unittests/basic_string_view/cons/char/3.cc: New file.
7390 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
7391 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
7392 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
7393 * unittests/basic_string_view/element_access/char/1.cc: New file.
7394 * unittests/basic_string_view/element_access/char/2.cc: New file.
7395 * unittests/basic_string_view/element_access/char/empty.cc: New file.
7396 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
7397 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
7398 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
7399 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
7400 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
7401 * unittests/basic_string_view/include.cc: New file.
7402 * unittests/basic_string_view/inserters/char/1.cc: New file.
7403 * unittests/basic_string_view/inserters/char/2.cc: New file.
7404 * unittests/basic_string_view/inserters/char/3.cc: New file.
7405 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
7406 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
7407 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
7408 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
7409 * unittests/basic_string_view/literals/types.cc: New file.
7410 * unittests/basic_string_view/literals/values.cc: New file.
7411 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
7412 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
7413 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
7414 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
7415 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
7416 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
7417 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
7418 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
7419 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
7420 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
7421 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
7422 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
7423 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
7424 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
7425 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
7426 * unittests/basic_string_view/operations/data/char/1.cc: New file.
7427 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
7428 * unittests/basic_string_view/operations/find/char/1.cc: New file.
7429 * unittests/basic_string_view/operations/find/char/2.cc: New file.
7430 * unittests/basic_string_view/operations/find/char/3.cc: New file.
7431 * unittests/basic_string_view/operations/find/char/4.cc: New file.
7432 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
7433 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
7434 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
7435 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
7436 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
7437 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
7438 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
7439 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
7440 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
7441 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
7442 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
7443 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
7444 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
7445 * unittests/basic_string_view/operators/char/2.cc: New file.
7446 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
7447 * unittests/basic_string_view/range_access/char/1.cc: New file.
7448 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
7449 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
7450 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
7451 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
7452 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
7453 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
7454 * unittests/basic_string_view/requirements/typedefs.cc: New file.
7455 * unittests/basic_string_view/typedefs.cc: New file.
7456 * unittests/basic_string_view/types/1.cc: New file.
7457
8345c4a2
SM
74582018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7459
7460 * common/gdb_string_view.h: Remove libstdc++ implementation
7461 details, adjust to gdb reality.
7462 * common/gdb_string_view.tcc: Likewise.
7463 * cli/cli-script.c (struct string_view): Remove.
7464 (user_args) <m_args>: Change element type to gdb::string_view.
7465 (user_args::insert_args): Adjust.
7466
7adcdf08
SM
74672018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7468
7469 * common/gdb_string_view.h: New file.
7470 * common/gdb_string_view.tcc: New file.
7471
41260ac2
SM
74722018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7473
7474 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
7475 * configure: Re-generate.
7476
0bee6dd4
PA
74772018-04-09 Pedro Alves <palves@redhat.com>
7478
7479 * gdbarch.sh: Include "observable.h" instead of "observer.h".
7480 (set_target_gdbarch): Call
7481 gdb::observers::architecture_changed.notify instead of
7482 observer_notify_architecture_changed.
7483
6f14adc5
SM
74842018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * tracepoint.c (struct current_traceframe_cleanup): Remove.
7487 (do_restore_current_traceframe_cleanup): Remove.
7488 (restore_current_traceframe_cleanup_dtor): Remove.
7489 (make_cleanup_restore_current_traceframe): Remove.
7490 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
7491 New.
7492 * tracepoint.h (struct scoped_restore_current_traceframe): New.
7493 * infrun.c (fetch_inferior_event): Use
7494 scoped_restore_current_traceframe.
7495
b2bdb8cf
SM
74962018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
7499 Remove.
7500 <n_allocated_type_units>: Remove.
7501 <all_type_units>: Change to std::vector.
7502 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7503 to std::vector change.
7504 (dwarf2_per_objfile::get_cutu): Likewise.
7505 (dwarf2_per_objfile::get_tu): Likewise.
7506 (create_signatured_type_table_from_index): Likewise.
7507 (create_signatured_type_table_from_debug_names): Likewise.
7508 (dw2_symtab_iter_next): Likewise.
7509 (dw2_print_stats): Likewise.
7510 (dw2_expand_all_symtabs): Likewise.
7511 (dw2_expand_marked_cus): Likewise.
7512 (dw2_debug_names_iterator::next): Likewise.
7513 (dwarf2_initialize_objfile): Likewise.
7514 (add_signatured_type_cu_to_table): Likewise.
7515 (create_all_type_units): Likewise.
7516 (add_type_unit): Likewise.
7517 (struct tu_abbrev_offset): Add constructor.
7518 (build_type_psymtabs_1): Adjust to std::vector change.
7519 (print_tu_stats): Likewise.
7520 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7521 (write_debug_names): Likewise.
7522
b76e467d
SM
75232018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7524
7525 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
7526 Make an std::vector.
7527 <n_comp_units>: Remove.
7528 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7529 to std::vector change.
7530 (dwarf2_per_objfile::get_cutu): Likewise.
7531 (dwarf2_per_objfile::get_cu): Likewise.
7532 (create_cus_from_index): Likewise.
7533 (create_addrmap_from_index): Likewise.
7534 (create_addrmap_from_aranges): Likewise.
7535 (dwarf2_read_index): Likewise.
7536 (dw2_find_last_source_symtab): Likewise.
7537 (dw2_map_symtabs_matching_filename): Likewise.
7538 (dw2_symtab_iter_next): Likewise.
7539 (dw2_print_stats): Likewise.
7540 (dw2_expand_all_symtabs): Likewise.
7541 (dw2_expand_symtabs_with_fullname): Likewise.
7542 (dw2_expand_marked_cus): Likewise.
7543 (dw2_map_symbol_filenames): Likewise.
7544 (create_cus_from_debug_names): Likewise.
7545 (dwarf2_read_debug_names): Likewise.
7546 (dw2_debug_names_iterator::next): Likewise.
7547 (dwarf2_initialize_objfile): Likewise.
7548 (set_partial_user): Likewise.
7549 (dwarf2_build_psymtabs_hard): Likewise.
7550 (read_comp_units_from_section): Remove arguments, adjust to
7551 std::vector change.
7552 (create_all_comp_units): Adjust to std::vector and
7553 read_comp_units_from_section changes.
7554 (dwarf2_find_containing_comp_unit): Adjust to std::vector
7555 change.
7556 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7557 (psyms_seen_size): Likewise.
7558 (write_gdbindex): Likewise.
7559 (write_debug_names): Likewise.
7560
12359b5e
SM
75612018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7562
7563 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
7564 with dwarf2_per_objfile.
7565 (create_cus_from_index): Likewise.
7566 (create_signatured_type_table_from_index): Likewise.
7567 (dwarf2_read_index): Likewise.
7568 (dwarf2_initialize_objfile): Likewise.
7569 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
7570 per_cu rather than get_dwarf2_per_objfile.
7571
ff4c9fec
SM
75722018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7573
7574 * dwarf2read.h (struct signatured_type): Forward declare.
7575 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
7576 New methods.
7577 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
7578 (dw2_get_cutu): ...this.
7579 (dwarf2_per_objfile::get_cu): Rename from...
7580 (dw2_get_cu): ...this.
7581 (dwarf2_per_objfile::get_tu): New.
7582 (create_addrmap_from_index): Adjust.
7583 (create_addrmap_from_aranges): Adjust.
7584 (dw2_find_last_source_symtab): Adjust.
7585 (dw2_map_symtabs_matching_filename): Adjust.
7586 (dw2_symtab_iter_next): Adjust.
7587 (dw2_print_stats): Adjust.
7588 (dw2_expand_all_symtabs): Adjust.
7589 (dw2_expand_symtabs_with_fullname): Adjust.
7590 (dw2_expand_marked_cus): Adjust.
7591 (dw_expand_symtabs_matching_file_matcher): Adjust.
7592 (dw2_map_symbol_filenames): Adjust.
7593 (dw2_debug_names_iterator::next): Adjust.
7594 (dwarf2_initialize_objfile): Adjust.
7595 (set_partial_user): Adjust.
7596 (dwarf2_build_psymtabs_hard): Adjust.
7597
5ca3fcb6
SM
75982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7599
7600 * dwarf2read.c (create_signatured_type_table_from_debug_names):
7601 Remove unused variables.
7602 (dw2_map_symtabs_matching_filename): Likewise.
7603 (dwarf2_record_block_ranges): Likewise.
7604 (dwarf2_read_addr_index): Likewise.
7605 (follow_die_offset): Likewise.
7606
b2e586e8
SM
76072018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7608
7609 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
7610 to symbol_file_add_main.
7611
7c4e78cf
SM
76122018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7613
7614 PR mi/22299
7615 * mi/mi-console.c (do_fputc_async_safe): New.
7616 (mi_console_file::write_async_safe): New.
7617 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
7618 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
7619 New.
7620 * ui-file.c (ui_file::putstrn): Adjust call to
7621 fputstrn_unfiltered.
7622 * utils.c (printchar): Replace do_fputs and do_fprintf
7623 parameters by do_fputc.
7624 (fputstr_filtered): Adjust call to printchar.
7625 (fputstr_unfiltered): Likewise.
7626 (fputstrn_filtered): Likewise.
7627 (fputstrn_unfiltered): Add do_fputc parameter, pass to
7628 printchar.
7629 * utils.h (do_fputc_ftype): New typedef.
7630 (fputstrn_unfiltered): Add do_fputc parameter.
7631
5dc026d3
SM
76322018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7633
7634 * regformats/i386/i386-avx.dat: Remove.
7635
c912f608
SM
76362018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7637
7638 PR gdb/22979
7639 * amd64-tdep.c (amd64_none_init_abi): New function.
7640 (amd64_x32_none_init_abi): New function.
7641 (_initialize_amd64_tdep): Register handlers for x86-64 and
7642 x64_32 with GDB_OSABI_NONE.
7643 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
7644 GDB_OSABI_NONE osabi.
7645
26540402
SM
76462018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7647
7648 PR gdb/22980
7649 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
7650 GDB_OSABI_NONE.
7651 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
7652 * osabi.c (gdb_osabi_names): Add "unknown" entry.
7653
9018be22
SM
76542018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7655
7656 * common/byte-vector.h (char_vector): New type.
7657 * target.h (target_read_alloc): Return
7658 gdb::optional<byte_vector>.
7659 (target_read_stralloc): Return gdb::optional<char_vector>.
7660 (target_get_osdata): Return gdb::optional<char_vector>.
7661 * target.c (target_read_alloc_1): Templatize. Replacement
7662 manual memory management with vector.
7663 (target_read_alloc): Change return type, adjust.
7664 (target_read_stralloc): Change return type, adjust.
7665 (target_get_osdata): Change return type, adjust.
7666 * auxv.c (struct auxv_info) <length>: Remove.
7667 <data>: Change type to gdb::optional<byte_vector>.
7668 (auxv_inferior_data_cleanup): Free auxv_info with delete.
7669 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
7670 (target_auxv_search): Adjust.
7671 (fprint_target_auxv): Adjust.
7672 * avr-tdep.c (avr_io_reg_read_command): Adjust.
7673 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
7674 (linux_make_corefile_notes): Adjust.
7675 * osdata.c (get_osdata): Adjust.
7676 * remote.c (remote_get_threads_with_qxfer): Adjust.
7677 (remote_memory_map): Adjust.
7678 (remote_traceframe_info): Adjust.
7679 (btrace_read_config): Adjust.
7680 (remote_read_btrace): Adjust.
7681 (remote_pid_to_exec_file): Adjust.
7682 * solib-aix.c (solib_aix_get_library_list): Adjust.
7683 * solib-dsbt.c (decode_loadmap): Don't free buf.
7684 (dsbt_get_initial_loadmaps): Adjust.
7685 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
7686 * solib-target.c (solib_target_current_sos): Adjust.
7687 * tracepoint.c (sdata_make_value): Adjust.
7688 * xml-support.c (xinclude_start_include): Adjust.
7689 (xml_fetch_content_from_file): Adjust.
7690 * xml-support.h (xml_fetch_another): Change return type.
7691 (xml_fetch_content_from_file): Change return type.
7692 * xml-syscall.c (xml_init_syscalls_info): Adjust.
7693 * xml-tdesc.c (file_read_description_xml): Adjust.
7694 (fetch_available_features_from_target): Change return type.
7695 (target_fetch_description_xml): Adjust.
7696 (target_read_description_xml): Adjust.
7697
14c88955
TT
76982018-04-06 Tom Tromey <tom@tromey.com>
7699
7700 * value.c (~value): Update.
7701 (struct value) <contents>: Now unique_xmalloc_ptr.
7702 (value_contents_bits_eq, allocate_value_contents)
7703 (value_contents_raw, value_contents_all_raw)
7704 (value_contents_for_printing, value_contents_for_printing_const)
7705 (set_value_enclosing_type): Update.
7706
0c7e6dd8
TT
77072018-04-06 Tom Tromey <tom@tromey.com>
7708
7709 * value.c (range_s): Remove typedef, VEC.
7710 (struct range): Add operator<.
7711 (range_lessthan): Remove.
7712 (ranges_contain): Change type.
7713 (~value): Update.
7714 (struct value) <unavailable, optimized_out>: Now std::vector.
7715 (value_entirely_available)
7716 (value_entirely_covered_by_range_vector)
7717 (value_entirely_unavailable, value_entirely_optimized_out):
7718 Update.
7719 (insert_into_bit_range_vector): Change argument type.
7720 (find_first_range_overlap): Likewise.
7721 (struct ranges_and_idx, value_contents_bits_eq)
7722 (require_not_optimized_out, require_available): Update.
7723 (ranges_copy_adjusted): Change argument types.
7724 (value_optimized_out, value_copy, value_fetch_lazy): Update.
7725
2c8331b9
TT
77262018-04-06 Tom Tromey <tom@tromey.com>
7727
7728 * value.c (~value): Update.
7729 (struct value) <parent>: Now a value_ref_ptr.
7730 (value_parent, set_value_parent, value_address, value_copy):
7731 Update.
7732
466ce3ae
TT
77332018-04-06 Tom Tromey <tom@tromey.com>
7734
7735 * value.c (struct value): Add constructor, destructor, and member
7736 initializers.
7737 (allocate_value_lazy, value_decref): Update.
7738
062d818d
TT
77392018-04-06 Tom Tromey <tom@tromey.com>
7740
7741 * value.c (struct value) <released, next>: Remove.
7742 (all_values): Now a std::vector.
7743 (allocate_value_lazy): Update.
7744 (value_next): Remove.
7745 (value_mark, value_free_to_mark, release_value)
7746 (value_release_to_mark): Update.
7747
a6535de1
TT
77482018-04-06 Tom Tromey <tom@tromey.com>
7749
7750 * value.h (fetch_subexp_value, value_release_to_mark): Update.
7751 (free_value_chain): Remove.
7752 * value.c (free_value_chain): Remove.
7753 (value_release_to_mark): Return a std::vector.
7754 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
7755 std::vector.
7756 (check_condition): Update.
7757 * eval.c (fetch_subexp_value): Change "val_chain" to a
7758 std::vector.
7759 * breakpoint.c (update_watchpoint): Update.
7760 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
7761
b5621201
TT
77622018-04-06 Tom Tromey <tom@tromey.com>
7763
7764 * value.h (free_all_values): Remove.
7765 * value.c (free_all_values): Remove.
7766
4d0266a0
TT
77672018-04-06 Tom Tromey <tom@tromey.com>
7768
7769 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
7770 (value_history_chain, value_history_count): Remove.
7771 (value_history): New global.
7772 (record_latest_value, access_value_history, show_values)
7773 (preserve_values): Update.
7774
b4d61099
TT
77752018-04-06 Tom Tromey <tom@tromey.com>
7776
7777 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
7778 * varobj.c (varobj_set_display_format, varobj_set_value)
7779 (install_default_visualizer, construct_visualizer)
7780 (install_new_value, ~varobj, varobj_get_value_type)
7781 (my_value_of_variable, varobj_editable_p): Update.
7782 * c-varobj.c (c_describe_child, c_value_of_variable)
7783 (cplus_number_of_children, cplus_describe_child): Update.
7784 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
7785 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
7786 (ada_value_of_variable, ada_value_is_changeable_p): Update.
7787
9b558729
TT
77882018-04-06 Tom Tromey <tom@tromey.com>
7789
7790 * printcmd.c (last_examine_address): Change type to
7791 value_ref_ptr.
7792 (do_examine, x_command): Update.
7793
850645cf
TT
77942018-04-06 Tom Tromey <tom@tromey.com>
7795
7796 * value.c (release_value): Update.
7797 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
7798 (struct bpstats) <val>: Now a value_ref_ptr.
7799 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
7800 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
7801 (~watchpoint, print_it_watchpoint, watch_command_1)
7802 (invalidate_bp_value_on_memory_change): Update.
7803
22bc8444
TT
78042018-04-06 Tom Tromey <tom@tromey.com>
7805
7806 * varobj.c (varobj_clear_saved_item)
7807 (update_dynamic_varobj_children, install_new_value, ~varobj):
7808 Update.
7809 * value.h (value_incref): Move declaration earlier.
7810 (value_decref): Rename from value_free.
7811 (struct value_ref_policy): New.
7812 (value_ref_ptr): New typedef.
7813 (struct value_deleter): Remove.
7814 (gdb_value_up): Remove typedef.
7815 (release_value): Change return type.
7816 (release_value_or_incref): Remove.
7817 * value.c (set_value_parent): Update.
7818 (value_incref): Change return type.
7819 (value_decref): Rename from value_free.
7820 (value_free_to_mark, free_all_values, free_value_chain): Update.
7821 (release_value): Return value_ref_ptr.
7822 (release_value_or_incref): Remove.
7823 (record_latest_value, set_internalvar, clear_internalvar):
7824 Update.
7825 * stack.c (info_frame_command): Don't call value_free.
7826 * python/py-value.c (valpy_dealloc, valpy_new)
7827 (value_to_value_object): Update.
7828 * printcmd.c (do_examine): Update.
7829 * opencl-lang.c (lval_func_free_closure): Update.
7830 * mi/mi-main.c (register_changed_p): Don't call value_free.
7831 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
7832 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
7833 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
7834 value_free.
7835 * guile/scm-value.c (vlscm_free_value_smob)
7836 (vlscm_scm_from_value): Update.
7837 * frame.c (frame_register_unwind, frame_unwind_register_signed)
7838 (frame_unwind_register_unsigned, get_frame_register_bytes)
7839 (put_frame_register_bytes): Don't call value_free.
7840 * findvar.c (address_from_register): Don't call value_free.
7841 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
7842 * dwarf2loc.c (entry_data_value_free_closure)
7843 (value_of_dwarf_reg_entry, free_pieced_value_closure)
7844 (dwarf2_evaluate_loc_desc_full): Update.
7845 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
7846 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
7847 (~watchpoint, watch_command_1)
7848 (invalidate_bp_value_on_memory_change): Update.
7849 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
7850
7f8a5d38
SM
78512018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
7852
7853 PR gdb/23022
7854 * warning.m4: Add -Wno-error=deprecated-register.
7855 * configure: Re-generate.
7856
8a76bd3b
TT
78572018-04-05 Tom Tromey <tom@tromey.com>
7858
7859 * linespec.h: Remove include of "vec.h".
7860
8e8d776e
TT
78612018-04-05 Tom Tromey <tom@tromey.com>
7862
7863 * linespec.c (typep): Remove typedef.
7864 (find_methods, find_superclass_methods): Take a std::vector.
7865 (find_method): Use std::vector.
7866
9b2f8581
TT
78672018-04-05 Tom Tromey <tom@tromey.com>
7868
7869 * utils.c (compare_strings): Remove.
7870 * utils.h (compare_strings): Remove.
7871 * objc-lang.h (find_imps): Update.
7872 * objc-lang.c (find_methods): Take a std::vector.
7873 (uniquify_strings, find_imps): Likewise.
7874 * linespec.c (find_methods): Take a std::vector.
7875 (decode_objc): Use std::vector.
7876 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
7877 a std::vector.
7878 (find_method, find_function_symbols): Use std::vector.
7879
459a2e4c
TT
78802018-04-05 Tom Tromey <tom@tromey.com>
7881
7882 * completer.c (completion_tracker::completion_tracker): Remove
7883 cast.
7884 (completion_tracker::discard_completions): Likewise.
7885 * breakpoint.c (ambiguous_names_p): Remove cast.
7886 * ada-lang.c (_initialize_ada_language): Remove cast.
7887 * utils.h (streq): Update.
7888 (streq_hash): Add new declaration.
7889 * utils.c (streq): Return bool.
7890 (streq_hash): New function.
7891
9be2c17a
TT
78922018-04-05 Tom Tromey <tom@tromey.com>
7893
7894 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
7895 Remove a string copy.
7896
f73c6ece
TT
78972018-04-05 Tom Tromey <tom@tromey.com>
7898
7899 * linespec.c (filter_results): Use std::vector.
7900 (decode_line_2, decode_line_full): Update.
7901
53a0f8a2
TT
79022018-04-05 Tom Tromey <tom@tromey.com>
7903
7904 * linespec.c (canonical_to_fullform): Return std::string.
7905 (filter_results): Update.
7906 (struct decode_line_2_item): Add constructor.
7907 <fullform, displayform>: Now std::string.
7908 (decode_line_2_compare_items): Now a std::sort comparator.
7909 (decode_line_2): Update.
7910
a5b5adf5
TT
79112018-04-05 Tom Tromey <tom@tromey.com>
7912
7913 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
7914 (unexpected_linespec_error): Update.
7915 (linespec_parse_basic, parse_linespec): Update.
7916
6a307fc5
TT
79172018-04-05 Tom Tromey <tom@tromey.com>
7918
7919 * linespec.c (linespec_parse_basic): Reindent.
7920
41c1efc6
TT
79212018-04-05 Tom Tromey <tom@tromey.com>
7922
7923 * minsyms.h (iterate_over_minimal_symbols): Update.
7924 * minsyms.c (iterate_over_minimal_symbols): Take a
7925 gdb::function_view.
7926 * linespec.c (struct collect_minsyms): Remove.
7927 (compare_msyms): Now a std::sort comparator.
7928 (add_minsym): Add parameters.
7929 (search_minsyms_for_name): Update. Use std::vector.
7930
c5edbf3d
TT
79312018-04-03 Tom Tromey <tom@tromey.com>
7932
7933 * mipsread.c (read_alphacoff_dynamic_symtab): Use
7934 gdb::byte_vector.
7935
b39efc48
WP
79362018-04-02 Weimin Pan <weimin.pan@oracle.com>
7937
7938 * MAINTAINERS (Write After Approval): Add Weimin Pan.
7939
121ad66c 79402018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
7941
7942 PR gdb/16959
7943 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
7944 printing static type.
7945
09473be8
TT
79462018-04-01 Tom Tromey <tom@tromey.com>
7947
7948 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
7949 (rs6000_xfer_shared_libraries): Update.
7950
ec1f2d91
SM
79512018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7952
7953 * common/gdb_vecs.h (char_ptr): Remove.
7954 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
7955
d8611974
SM
79562018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
7957
7958 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
7959 with std::vector.
7960 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
7961
a18ba4e4
SM
79622018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
7963
7964 * tracepoint.h (struct uploaded_tp): Initialize fields.
7965 <actions, step_actions, cmd_strings>: Change type to
7966 std::vector<char *>.
7967 * tracepoint.c (get_uploaded_tp): Allocate with new.
7968 (free_uploaded_tps): Free with delete.
7969 (parse_tracepoint_definition): Adjust to std::vector change.
7970 * breakpoint.c (read_uploaded_action): Likewise.
7971 (create_tracepoint_from_upload): Likewise.
7972 * ctf.c (ctf_write_uploaded_tp): Likewise.
7973 (SET_ARRAY_FIELD): Likewise.
7974 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
7975
a7961323
TT
79762018-03-30 Tom Tromey <tom@tromey.com>
7977
7978 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
7979 std::unique_ptr.
7980 (svr4_keep_data_in_core): Update.
7981 (svr4_read_so_list): Update.
7982
e83e4e24
TT
79832018-03-30 Tom Tromey <tom@tromey.com>
7984
7985 * windows-nat.c (handle_output_debug_string, handle_exception):
7986 Update.
7987 * target.h (target_read_string): Update.
7988 * target.c (target_read_string): Change "string" to
7989 unique_xmalloc_ptr.
7990 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7991 Update.
7992 * solib-frv.c (frv_current_sos): Update.
7993 * solib-dsbt.c (dsbt_current_sos): Update.
7994 * solib-darwin.c (darwin_current_sos): Update.
7995 * linux-thread-db.c (inferior_has_bug): Update.
7996 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
7997 Update. Remove alloca.
7998 * ada-lang.c (ada_main_name): Update.
7999
263db9a1
TT
80002018-03-30 Tom Tromey <tom@tromey.com>
8001
8002 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8003 (struct dwo_file_deleter): New.
8004 (dwo_file_up): New typedef.
8005 (open_and_init_dwo_file): Use dwo_file_up.
8006 (free_dwo_file_cleanup): Remove.
8007
5dafb3d1
TT
80082018-03-30 Tom Tromey <tom@tromey.com>
8009
8010 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8011 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8012
11ed8cad
TT
80132018-03-30 Tom Tromey <tom@tromey.com>
8014
8015 * dwarf2read.c (class free_cached_comp_units): New class.
8016 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8017 (free_cached_comp_units): Remove function.
8018
9ae79dac
TT
80192018-03-30 Tom Tromey <tom@tromey.com>
8020
8021 * utils.h (make_cleanup_unpush_target): Remove.
8022 * inf-ptrace.c (struct target_unpusher): New.
8023 (target_unpush_up) New typedef.
8024 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8025 target_unpush_up.
8026 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8027
5aa89276
TT
80282018-03-27 Tom Tromey <tom@tromey.com>
8029
8030 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8031
1dbeed45
TT
80322018-03-27 Pedro Alves <palves@redhat.com>
8033 Tom Tromey <tom@tromey.com>
8034
8035 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8036 destructor. Now a class.
8037 (gdb_readline_wrapper_cleanup): Remove function.
8038 (gdb_readline_wrapper): Remove cleanups.
8039
c819b2c0
TT
80402018-03-27 Tom Tromey <tom@tromey.com>
8041
8042 * typeprint.h (struct type_print_options) <local_typedefs,
8043 global_typedefs>: Remove "struct" keyword.
8044 (class typedef_hash_table): New class.
8045 (recursively_update_typedef_hash, add_template_parameters)
8046 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8047 (find_typedef_in_hash): Don't declare.
8048 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8049 (typedef_hash_table::recursively_update): Rename from
8050 recursively_update_typedef_hash. Now a member.
8051 (typedef_hash_table::add_template_parameters): Rename from
8052 add_template_parameters. Now a member.
8053 (typedef_hash_table::typedef_hash_table): Now a constructor;
8054 rename from create_typedef_hash.
8055 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8056 rename from free_typedef_hash.
8057 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8058 (do_free_global_table): Remove.
8059 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8060 from copy_type_recursive.
8061 (create_global_typedef_table): Remove.
8062 (typedef_hash_table::find_global_typedef): Now a member of
8063 typedef_hash_table.
8064 (typedef_hash_table::find_typedef): Rename from
8065 find_typedef_in_hash; now a member.
8066 (whatis_exp): Update.
8067 * extension.h (struct ext_lang_type_printers): Add constructor and
8068 destructor.
8069 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8070 declare.
8071 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8072 Now a constructor; rename from start_ext_lang_type_printers.
8073 (ext_lang_type_printers): Now a destructor; rename from
8074 free_ext_lang_type_printers.
8075 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8076 Update.
8077 (c_type_print_base_struct_union): Update. Remove cleanups.
8078
608219fb
TT
80792018-03-27 Tom Tromey <tom@tromey.com>
8080
8081 * dwarf-index-write.c: Include <cmath>.
8082
3fcded8f
JB
80832018-03-27 Joel Brobecker <brobecker@adacore.com>
8084
8085 * NEWS: Add entry describing new "set|show varsize-limit" command.
8086 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8087 command.
8088 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8089 "set variable".
8090
cd4fb1b2
SM
80912018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8092
8093 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8094 dwarf-index-write.c
8095 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8096 * dwarf-index-common.c: New file.
8097 * dwarf-index-common.h: New file.
8098 * dwarf-index-write.c: New file.
8099 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8100 (struct dwarf2_section_info): Move from here.
8101 (dwarf2_section_info_def): Likewise.
8102 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8103 (offset_type): Likewise.
8104 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8105 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8106 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8107 (byte_swap): Likewise.
8108 (MAYBE_SWAP): Likewise.
8109 (dwarf2_per_cu_ptr): Likewise.
8110 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8111 (struct tu_stats): Likewise.
8112 (struct dwarf2_per_objfile): Likewise.
8113 (struct dwarf2_per_cu_data): Likewise.
8114 (struct signatured_type): Likewise.
8115 (sig_type_ptr): Likewise.
8116 (DEF_VEC_P (sig_type_ptr)): Likewise.
8117 (INDEX4_SUFFIX): Likewise.
8118 (INDEX5_SUFFIX): Likewise.
8119 (DEBUG_STR_SUFFIX): Likewise.
8120 (dwarf2_read_section): Make non-static.
8121 (mapped_index_string_hash): Move from here.
8122 (dwarf5_djb_hash): Likewise.
8123 (file_write): Likewise.
8124 (class data_buf): Likewise.
8125 (struct symtab_index_entry): Likewise.
8126 (struct mapped_symtab): Likewise.
8127 (find_slot): Likewise.
8128 (hash_expand): Likewise.
8129 (add_index_entry): Likewise.
8130 (uniquify_cu_indices): Likewise.
8131 (class c_str_view): Likewise.
8132 (class c_str_view_hasher): Likewise.
8133 (class vector_hasher): Likewise.
8134 (write_hash_table): Likewise.
8135 (psym_index_map): Likewise.
8136 (struct addrmap_index_data): Likewise.
8137 (add_address_entry): Likewise.
8138 (add_address_entry_worker): Likewise.
8139 (write_address_map): Likewise.
8140 (symbol_kind): Likewise.
8141 (write_psymbols): Likewise.
8142 (struct signatured_type_index_data): Likewise.
8143 (write_one_signatured_type): Likewise.
8144 (recursively_count_psymbols): Likewise.
8145 (recursively_write_psymbols): Likewise.
8146 (class debug_names): Likewise.
8147 (check_dwarf64_offsets): Likewise.
8148 (psyms_seen_size): Likewise.
8149 (write_gdbindex): Likewise.
8150 (write_debug_names): Likewise.
8151 (assert_file_size): Likewise.
8152 (write_psymtabs_to_index): Likewise.
8153 (save_gdb_index_command): Likewise.
8154 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8155 command.
8156 * dwarf2read.h: New file.
8157
59cc4834
JB
81582018-03-27 Joel Brobecker <brobecker@adacore.com>
8159
8160 PR gdb/22670
8161 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8162 symbol name if the CU's language stores symbol names in linkage
8163 format.
8164 * language.h (struct language_defn)
8165 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8166 all instances of this struct.
8167
67501539
TT
81682018-03-26 Tom Tromey <tom@tromey.com>
8169
8170 * stack.c (backtrace_command_1): Remove verbose code.
8171
76c939ac
TT
81722018-03-26 Tom Tromey <tom@tromey.com>
8173
8174 * python/py-framefilter.c (py_print_type): Don't catch
8175 exceptions. Return void.
8176 (py_print_value): Likewise.
8177 (py_print_single_arg): Likewise.
8178 (enumerate_args): Don't catch exceptions.
8179 (py_print_args): Likewise.
8180 (py_print_frame): Likewise.
8181 (gdbpy_apply_frame_filter): Catch exceptions here.
8182
9507b29c
TT
81832018-03-26 Tom Tromey <tom@tromey.com>
8184
8185 * stack.c (_initialize_stack): Remove trailing newlines from help
8186 text. Add "Usage" line to "backtrace" help.
8187
eb68e487
TT
81882018-03-26 Tom Tromey <tom@tromey.com>
8189
8190 PR python/16486:
8191 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8192
1f111921
TT
81932018-03-26 Tom Tromey <tom@tromey.com>
8194
8195 * python/py-framefilter.c (py_print_single_arg): Return
8196 EXT_LANG_BT_ERROR from catch.
8197
fb7eb8b5
TT
81982018-03-26 Tom Tromey <tom@tromey.com>
8199
8200 PR backtrace/15584:
8201 * stack.c (backtrace_command_1): Move some code into no-filters
8202 "if".
8203
4ca59a9f
TT
82042018-03-26 Tom Tromey <tom@tromey.com>
8205
8206 * python/py-framefilter.c (throw_quit_or_print_exception): New
8207 function.
8208 (gdbpy_apply_frame_filter): Use it.
8209
92256134
TT
82102018-03-26 Tom Tromey <tom@tromey.com>
8211
8212 PR cli/17716:
8213 * python/py-framefilter.c (py_print_type, py_print_value)
8214 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8215 RETURN_MASK_ERROR.
8216
7a630bc2
TT
82172018-03-26 Tom Tromey <tom@tromey.com>
8218
8219 * python/py-framefilter.c (enumerate_args): Use
8220 gdb::unique_xmalloc_ptr.
8221
63283d4a
TT
82222018-03-26 Tom Tromey <tom@tromey.com>
8223
8224 * python/py-framefilter.c (py_print_frame): Return
8225 EXT_LANG_BT_OK.
8226 (gdbpy_apply_frame_filter): Update comment.
8227 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8228 Remove.
8229 <EXT_LANG_BT_NO_FILTERS>: Change value.
8230
978d6c75
TT
82312018-03-26 Tom Tromey <tom@tromey.com>
8232
8233 PR backtrace/15582:
8234 * stack.c (backtrace_command): Parse "hide" argument.
8235 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8236 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8237 constant.
8238
1cf7e640
TT
82392018-03-26 Tom Tromey <tom@tromey.com>
8240
8241 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8242 add "flags".
8243 (backtrace_command): Remove "fulltrace", add "flags".
8244
ea3b0687
TT
82452018-03-26 Tom Tromey <tom@tromey.com>
8246
8247 * stack.c (backtrace_command): Rewrite command line parsing.
8248
9f034d75
SM
82492018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8250
8251 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8252
ce1459e5
SM
82532018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8254
8255 * filename-seen-cache.h: Add include guard.
8256
4f7ae6f5
KS
82572018-03-26 Keith Seitz <keiths@redhat.com>
8258
8259 * symfile.c (place_section): Remove "struct" from section_addr_info
8260 in comment.
8261 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8262 "struct" keyword from section_addr_info.
8263
5cd3e386
AH
82642018-03-26 Alan Hayward <alan.hayward@arm.com>
8265
8266 * regformats/regdef.h (reg): Add constructors.
8267
3e5ef9a4
PA
82682018-03-25 Pedro Alves <palves@redhat.com>
8269
8270 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8271 if then/else bodies in var_func_name extraction.
8272
c88d2fcc 82732018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
8274
8275 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8276 lookup_minimal_symbol() to find symbol entry.
8277 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8278
b7fee5a3
KS
82792018-03-23 Keith Seitz <keiths@redhat.com>
8280
8281 PR c++/22968
8282 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8283 nested type definitions for C++, too.
8284
2cc9b304
TT
82852018-03-23 Tom Tromey <tom@tromey.com>
8286
8287 * machoread.c (struct oso_el): Add a constructor. Don't define as
8288 a typedef.
8289 (macho_register_oso): Remove.
8290 (macho_symtab_read): Take a std::vector.
8291 (oso_el_compare_name): Now a std::sort comparator.
8292 (macho_symfile_read_all_oso): Take a std::vector.
8293 (macho_symfile_read): Use std::vector. Remove cleanups.
8294
a2b2bc12
TT
82952018-03-22 Tom Tromey <tom@tromey.com>
8296
8297 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8298 (record_full_goto_bookmark): Use std::string.
8299
7a8f494c
PFC
83002018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8301
8302 PR tdep/18295
8303 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8304 a single mask.
8305
dd6d677f
PFC
83062018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8307
8308 * rs6000-tdep.c (store_insn_p): New function.
8309 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8310 and cr_reg to their unshifted values. Use store_insn_p to
8311 match LR saves using either R1 or fdata->alloca_reg. Use
8312 store_insn_p to match CR saves. Set alloca_reg_offset
8313 when alloca_reg and framep are set. Remove lr_reg shift
8314 when assigning to fdata->lr_register.
8315
26d6cec4
AA
83162018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8317
8318 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8319 command line args instead of emitting a warning.
8320
5d9310c4
SM
83212018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8322
8323 * tracepoint.h (struct static_tracepoint_marker): Initialize
8324 fields, define default constructor, move constructor and move
8325 assignment, disable the rest.
8326 <str_id, extra>: Make std::string.
8327 (release_static_tracepoint_marker): Remove.
8328 (free_current_marker): Remove.
8329 * tracepoint.c (free_current_marker): Remove.
8330 (parse_static_tracepoint_marker_definition): Adjust to
8331 std::string, use new hex2str overload.
8332 (release_static_tracepoint_marker): Remove.
8333 (print_one_static_tracepoint_marker): Get marker by reference
8334 and adjust to std::string.
8335 (info_static_tracepoint_markers_command): Adjust to std::vector
8336 changes
8337 * target.h (static_tracepoint_marker_p): Remove typedef.
8338 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8339 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8340 bool.
8341 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8342 * target-debug.h
8343 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8344 (target_debug_print_std_vector_static_tracepoint_marker): New.
8345 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8346 to...
8347 (target_debug_print_static_tracepoint_marker_p): ... this.
8348 * target-delegates.c: Re-generate.
8349 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8350 Make std::string.
8351 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8352 (decode_static_tracepoint_spec): Adjust to std::vector.
8353 (tracepoint_print_one_detail): Adjust to std::string.
8354 (strace_marker_decode_location): Adjust to std::string.
8355 (update_static_tracepoint): Adjust to std::string, remove call
8356 to release_static_tracepoint_marker.
8357 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8358 Adjust to std::vector.
8359 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8360 (remote_static_tracepoint_markers_by_strid): Adjust to
8361 std::vector.
8362 * common/rsp-low.h (hex2str): New overload with explicit count
8363 of bytes.
8364 * common/rsp-low.c (hex2str): New overload with explicit count
8365 of bytes.
8366 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8367 (_initialize_rsp_low_selftests): Add test_hex2str test.
8368 * unittests/tracepoint-selftests.c
8369 (test_parse_static_tracepoint_marker_definition): Adjust to
8370 std::string.
8371
62c222b6
SM
83722018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8373
8374 * tracepoint.c (parse_static_tracepoint_marker_definition):
8375 Consider case where the definition is followed by more
8376 definitions.
8377 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8378 tracepoint-selftests.c.
8379 * unittests/tracepoint-selftests.c: New.
8380
7eb2418f
PFC
83812018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8382
8383 * MAINTAINERS (Write After Approval): Add Pedro Franco de
8384 Carvalho.
8385
7cbe16e9
SR
83862018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8387
3d6b3b82 8388 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 8389
4ee89e90
SR
83902018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8391
3d6b3b82 8392 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 8393
92630041
TT
83942018-03-19 Tom Tromey <tom@tromey.com>
8395
8396 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
8397 "IDENT" production.
8398
76727919
TT
83992018-03-19 Pedro Alves <palves@redhat.com>
8400 Tom Tromey <tom@tromey.com>
8401
8402 * unittests/observable-selftests.c: New file.
8403 * common/observable.h: New file.
8404 * observable.h: New file.
8405 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
8406 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
8407 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
8408 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
8409 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
8410 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
8411 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
8412 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
8413 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
8414 python/py-breakpoint.c, python/py-finishbreakpoint.c,
8415 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
8416 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
8417 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
8418 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
8419 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
8420 tui/tui-interp.c, valops.c: Update all users.
8421 * tui/tui-hooks.c (tui_bp_created_observer)
8422 (tui_bp_deleted_observer, tui_bp_modified_observer)
8423 (tui_inferior_exit_observer, tui_before_prompt_observer)
8424 (tui_normal_stop_observer, tui_register_changed_observer):
8425 Remove.
8426 (tui_observers_token): New global.
8427 (attach_or_detach, tui_attach_detach_observers): New functions.
8428 (tui_install_hooks, tui_remove_hooks): Use
8429 tui_attach_detach_observers.
8430 * record-btrace.c (record_btrace_thread_observer): Remove.
8431 (record_btrace_thread_observer_token): New global.
8432 * observer.sh: Remove.
8433 * observer.c: Rename to observable.c.
8434 * observable.c (namespace gdb_observers): Define new objects.
8435 (observer_debug): Move into gdb_observers namespace.
8436 (struct observer, struct observer_list, xalloc_observer_list_node)
8437 (xfree_observer_list_node, generic_observer_attach)
8438 (generic_observer_detach, generic_observer_notify): Remove.
8439 (_initialize_observer): Update.
8440 Don't include observer.inc.
8441 * Makefile.in (generated_files): Remove observer.h, observer.inc.
8442 (clean mostlyclean): Likewise.
8443 (observer.h, observer.inc): Remove targets.
8444 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
8445 (COMMON_SFILES): Use observable.c, not observer.c.
8446 * .gitignore: Remove observer.h.
8447
1cb1f3da
TT
84482018-03-18 Tom Tromey <tom@tromey.com>
8449
8450 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
8451 gdb::def_vector.
8452 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
8453
a06ab151
TT
84542018-03-17 Tom Tromey <tom@tromey.com>
8455
8456 * auto-load.c (auto_load_objfile_script_1): Use std::string.
8457
770623f7
TT
84582018-03-17 Tom Tromey <tom@tromey.com>
8459
8460 * target.c (class scoped_target_fd): New.
8461 (target_fileio_close_cleanup): Remove.
8462 (target_fileio_read_alloc_1): Use scoped_target_fd.
8463
39be3c7e
SM
84642018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
8465
8466 * silent-rules.mk: New.
8467 * Makefile.in: Include silent-rules.mk
8468 (srcdir, VPATH, top_srcdir): Move up.
8469 (COMPILE): Add ECHO_CXX.
8470 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
8471 (init.c): Add ECHO_INIT_C.
8472 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
8473 (version.c): Add ECHO_GEN.
8474 (printcmd.o): Add ECHO_CXX.
8475 (target-float.o): Add ECHO_CXX.
8476 (ada-exp.o): Add ECHO_CXX.
8477 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
8478 (insight$(EXEEXT)): Add ECHO_CXXLD.
8479 * gnulib/configure.ac: Add AM_SILENT_RULES.
8480 * gnulib/aclocal.m4: Re-generate.
8481 * gnulib/configure: Re-generate.
8482 * gnulib/import/Makefile.in: Re-generate.
8483
37e136b1
TT
84842018-03-16 Tom Tromey <tom@tromey.com>
8485
8486 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
8487 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
8488 * utils.c (do_free_section_addr_info)
8489 (make_cleanup_free_section_addr_info): Remove.
8490 * symfile.h (struct other_sections): Add constructor.
8491 (struct section_addr_info): Remove.
8492 (section_addr_info): New typedef.
8493 (struct sym_fns) <sym_offsets>: Change type of parameter.
8494 (build_section_addr_info_from_objfile)
8495 (relative_addr_info_to_section_offsets, addr_info_make_relative)
8496 (default_symfile_offsets, symbol_file_add)
8497 (symbol_file_add_from_bfd)
8498 (build_section_addr_info_from_section_table): Update.
8499 (alloc_section_addr_info, free_section_addr_info): Don't declare.
8500 * symfile.c (alloc_section_addr_info): Remove.
8501 (build_section_addr_info_from_section_table): Change return type.
8502 Update.
8503 (build_section_addr_info_from_bfd)
8504 (build_section_addr_info_from_objfile): Likewise.
8505 (free_section_addr_info): Remove.
8506 (relative_addr_info_to_section_offsets): Change type of "addrs".
8507 (addrs_section_compar): Now a std::sort comparator.
8508 (addrs_section_sort): Change return type.
8509 (addr_info_make_relative): Change type of "addrs". Update.
8510 (default_symfile_offsets, syms_from_objfile_1)
8511 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
8512 (symbol_file_add_separate): Update.
8513 (symbol_file_add): Change type of "addrs". Update.
8514 (add_symbol_file_command): Update. Remove cleanups.
8515 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
8516 cleanups.
8517 * symfile-debug.c (debug_sym_offsets): Change type of "info".
8518 * solib.c (solib_read_symbols): Update.
8519 * objfiles.c (objfile_relocate): Update. Remove cleanups.
8520 * machoread.c (macho_symfile_offsets): Update.
8521 * jit.c (jit_bfd_try_read_symtab): Update.
8522
03afa6ef
SM
85232018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
8524
8525 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8526 unittests/utils-selftests.c.
8527 * unittests/utils-selftests.c: New file.
8528
3ae9ce5d
TT
85292018-03-14 Tom Tromey <tom@tromey.com>
8530
8531 PR cli/14977:
8532 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
8533 for NULL.
8534
b8c2339b
TT
85352018-03-14 Tom Tromey <tom@tromey.com>
8536
8537 PR cli/19918:
8538 * printcmd.c (printf_pointer): Allow "-" in format.
8539
80ae639d
TT
85402018-03-14 Tom Tromey <tom@tromey.com>
8541
8542 * printcmd.c (_initialize_printcmd): Add usage to printf.
8543
0d671d99
YQ
85442018-03-14 Yao Qi <qiyao@sourceware.org>
8545
8546 * MAINTAINERS: Update my email address.
8547
b577b6af
TT
85482018-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * machoread.c (macho_check_dsym): Change filenamep to a
8551 std::string*.
8552 (macho_symfile_read): Update.
8553 * symfile.c (load_command): Use std::string.
8554
89a3b63e
AB
85552018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
8558 to error message string.
8559 (riscv_register_name): Use xsnprintf instead of sprintf.
8560 (riscv_insn::fetch_instruction): Use gdb_assert instead of
8561 internal_error.
8562 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
8563 error.
8564 (riscv_push_dummy_call): Likewise.
8565
984c7238
TT
85662018-03-12 Tom Tromey <tom@tromey.com>
8567
8568 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
8569 Use gdb::byte_vector.
8570 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
8571
933522d1
YQ
85722018-03-12 Yao Qi <yao.qi@linaro.org>
8573
8574 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
8575 parameter type to readable_regcache.
8576 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
8577 the declaration.
8578
be2daae6
TT
85792018-03-11 Tom Tromey <tom@tromey.com>
8580
8581 * dwarf2read.c (struct nextfield): Add initializers.
8582 (struct nextfnfield): Remove.
8583 (struct fnfieldlist): Add initializers. Remove "length" and
8584 "head", use std::vector.
8585 (struct decl_field_list): Remove.
8586 (struct field_info): Add initializers.
8587 <fields, baseclasses>: Now std::vector.
8588 <nbaseclasses, nfnfields, typedef_field_list_count,
8589 nested_types_list_count>: Remove.
8590 (dwarf2_add_field, dwarf2_add_type_defn)
8591 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
8592 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
8593 (process_structure_scope): Update.
8594
484cf504
TT
85952018-03-11 Tom Tromey <tom@tromey.com>
8596
8597 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
8598 for use by std::sort.
8599 (build_type_psymtabs_1): Use std::vector.
8600
9bd8e0b0
EZ
86012018-03-09 Eli Zaretskii <eliz@gnu.org>
8602
8603 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
8604 and LIBMPFR in the printed configuration.
8605
5dc1a704
TT
86062018-03-08 Tom Tromey <tom@tromey.com>
8607
8608 * source.c (get_filename_and_charpos): Use scoped_fd.
8609 * nto-procfs.c (procfs_open_1): Use scoped_fd.
8610 (procfs_pidlist): Likewise.
8611 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
8612 (iterate_over_mappings): Likewise.
8613
fdf07f3a
TT
86142018-03-08 Tom Tromey <tom@tromey.com>
8615
8616 * infcall.c (struct call_return_meta_info)
8617 <stack_temporaries_enabled>: Remove.
8618 (get_call_return_value, call_function_by_hand_dummy): Update.
8619 * thread.c (disable_thread_stack_temporaries): Remove.
8620 (enable_thread_stack_temporaries): Remove.
8621 (thread_stack_temporaries_enabled_p): Return bool.
8622 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
8623 (get_last_thread_stack_temporary): Update.
8624 * eval.c (evaluate_subexp): Update.
8625 * gdbthread.h (class enable_thread_stack_temporaries): Now a
8626 class, not a function.
8627 (value_ptr, value_vec): Remove typedefs.
8628 (class thread_info) <stack_temporaries_enabled>: Now bool.
8629 <stack_temporaries>: Now a std::vector.
8630 (thread_stack_temporaries_enabled_p)
8631 (value_in_thread_stack_temporaries): Return bool.
8632
567a3e54
SM
86332018-03-08 Simon Marchi <simon.marchi@ericsson.com>
8634
8635 * remote.c (putpkt_binary): Fix omitted bytes reporting.
8636 (getpkt_or_notif_sane_1): Likewise.
8637
00b40057
SM
86382018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8639
8640 * build-id.c (build_id_to_debug_bfd): Use std::string.
8641
a8dbfd58
SM
86422018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8643
8644 * build-id.c (find_separate_debug_file_by_buildid): Return
8645 std::string.
8646 * build-id.h (find_separate_debug_file_by_buildid): Return
8647 std::string.
8648 * coffread.c (coff_symfile_read): Adjust to std::string.
8649 * elfread.c (elf_symfile_read): Adjust to std::string.
8650 * symfile.c (separate_debug_file_exists): Change parameter to
8651 std::string.
8652 (find_separate_debug_file): Return std::string.
8653 (find_separate_debug_file_by_debuglink): Return std::string.
8654 * symfile.h (find_separate_debug_file_by_debuglink): Return
8655 std::string.
8656
e6a58aa8
SM
86572018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8658
8659 * common/xml-utils.c (xml_escape_text): Move code to...
8660 (xml_escape_text_append): ... this new function.
8661 * common/xml-utils.h (xml_escape_text_append): New declaration.
8662 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
8663 New function.
8664 (_initialize_xml_utils): register test_xml_escape_text_append as
8665 a selftest.
8666
4ef0bef6
AH
86672018-03-07 Alan Hayward <alan.hayward@arm.com>
8668
8669 * defs.h: Remove MAX_REGISTER_SIZE.
8670 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
8671 asserts.
8672 * python/py-unwind.c (pyuw_sniffer): Likewise.
8673
e0d3522b
TT
86742018-03-07 Tom Tromey <tom@tromey.com>
8675
8676 * linux-tdep.c (linux_info_proc): Update.
8677 * target.h (struct target_ops) <to_fileio_readlink>: Return
8678 optional<string>.
8679 (target_fileio_readlink): Return optional<string>.
8680 * remote.c (remote_hostio_readlink): Return optional<string>.
8681 * inf-child.c (inf_child_fileio_readlink): Return
8682 optional<string>.
8683 * target.c (target_fileio_readlink): Return optional<string>.
8684
ea005f31
AB
86852018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * regcache.c (cooked_read_test): Add riscv to the list of
8688 architectures that have a save_reggroup.
8689
e95a97d4
AA
86902018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
8691
8692 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
8693 value is not a dynamic class object.
8694
d8344f3d
TT
86952018-03-06 Tom Tromey <tom@tromey.com>
8696
8697 * rust-exp.y: Formatting fixes.
8698
9add17f2
AB
86992018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8700
8701 * riscv-tdep.c (riscv_register_name): Remove target description
8702 support.
8703 (riscv_gdbarch_init): Remove target description check.
8704
c9486dfe
AB
87052018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8706
8707 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
8708 comment.
8709 * riscv-tdep.h: Likewise.
8710
d74aff3d
AB
87112018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
8714 (riscv_pseudo_register_write): Delete.
8715 (riscv_gdbarch_init): Remove all use of pseudo registers.
8716
7ea78b59
SM
87172018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8718
8719 * record-btrace.c (btrace_print_lines): Replace cleanup
8720 parameter with RAII equivalents.
8721 (btrace_insn_history): Replace cleanup with RAII equivalents.
8722 * ui-out.h (make_cleanup_ui_out_list_begin_end,
8723 make_cleanup_ui_out_tuple_begin_end): Remove.
8724 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
8725 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
8726 make_cleanup_ui_out_list_begin_end): Remove.
8727
53127008
SM
87282018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8729
8730 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
8731 parameter types to std::vector. Use bool.
8732 (record_btrace_wait): Replace VEC(tp_t) with
8733 std::vector<thread_info *>.
8734 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
8735
228f1508
SM
87362018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8737
8738 * record-btrace.c (record_btrace_disable_callback): Remove.
8739 (struct scoped_btrace_disable): New.
8740 (record_btrace_open): Use scoped_btrace_disable.
8741
b2970c23
AB
87422018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
8745 reading values from registers.
8746
fb294655
AB
87472018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8748
8749 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
8750 where appropriate.
8751
cab5bb9d
AB
87522018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8753
8754 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
8755 change parameter type. Use GDB's print functions, and use
8756 core_addr_to_string where appropriate.
8757 (riscv_push_dummy_call): Use core_addr_to_string where
8758 appropriate, update call to riscv_print_arg_location, and reindent
8759 a few lines.
8760 (riscv_return_value): Update call to riscv_print_arg_location.
8761
dbbb1059
AB
87622018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8763 Tim Newsome <tim@sifive.com>
8764 Albert Ou <a0u@eecs.berkeley.edu>
8765 Darius Rad <darius@bluespec.com>
8766
8767 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
8768 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
8769 (ALLDEPFILES): Add riscv-tdep.c
8770 * configure.tgt: Add riscv support.
8771 * riscv-tdep.c: New file.
8772 * riscv-tdep.h: New file.
8773 * NEWS: Mention new target.
8774 * MAINTAINERS: Add entry for riscv.
8775
5dc43913
AB
87762018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
8779 fields within aggregates.
8780
3dea1ef7
SM
87812018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
8782
8783 * record-btrace.c (btrace_print_lines): Change type of flags to
8784 gdb_disassembly_flags.
8785
7efba073
JB
87862018-03-04 John Baldwin <jhb@FreeBSD.org>
8787
8788 * fbsd-nat.c: Include "inf-ptrace.h".
8789 (USE_SIGTRAP_SIGINFO): Conditionally define.
8790 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
8791 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
8792 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
8793 function.
8794 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
8795 Likewise.
8796 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
8797 Likewise.
8798 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
8799 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
8800 "supports_stopped_by_hw_breakpoint" target methods.
8801
386a8676
JB
88022018-03-04 John Baldwin <jhb@FreeBSD.org>
8803
8804 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
8805 * fbsd-nat.c (debug_fbsd_nat): New variable.
8806 (show_fbsd_nat_debug): New function.
8807 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
8808 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
8809
12279366
JB
88102018-03-04 John Baldwin <jhb@FreeBSD.org>
8811
8812 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
8813 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
8814 prototype.
8815 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
8816 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
8817 method.
8818
54693cf5
SM
88192018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8820
8821 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
8822 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
8823
ccb2231c
SM
88242018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8825
8826 * charset.c (struct charset_vector): New.
8827 (charsets): Change type to charset_vector.
8828 (find_charset_names): Adjust.
8829 (add_one): Adjust.
8830 (_initialize_charset): Adjust.
8831
6fb16ce6
SM
88322018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8833
8834 * progspace.h (struct program_space) <deleted_solibs>: Change
8835 type to std::vector<std::string>.
8836 * progspace.c (clear_program_space_solib_cache): Adjust.
8837 * breakpoint.c (print_solib_event): Adjust.
8838 (check_status_catch_solib): Adjust.
8839 * solib.c (update_solib_list): Adjust.
8840 * ui-out.h (class ui_out) <field_string>: New overload.
8841 * ui-out.c (ui_out::field_string): New overload.
8842
564b1e3f
SM
88432018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8844
8845 * progspace.h (struct program_space): Add constructor and
8846 destructor, initialize fields.
8847 (add_program_space): Remove.
8848 * progspace.c (add_program_space): Rename to...
8849 (program_space::program_space): ... this.
8850 (release_program_space): Rename to...
8851 (program_space::~program_space): ... this.
8852 (delete_program_space): Use delete to delete program_space.
8853 (initialize_progspace): Use new to allocate program_space.
8854 * inferior.c (add_inferior_with_spaces): Likewise.
8855 (clone_inferior_command): Likewise.
8856 * infrun.c (follow_fork_inferior): Likewise.
8857 (handle_vfork_child_exec_or_exit): Likewise.
8858
e80aaf61
SM
88592018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8860
8861 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
8862 (delim_string_to_char_ptr_vec): Return std::vector of
8863 gdb::unique_xmalloc_ptr.
8864 (dirnames_to_char_ptr_vec_append): Take std::vector of
8865 gdb::unique_xmalloc_ptr.
8866 (dirnames_to_char_ptr_vec): Return std::vector of
8867 gdb::unique_xmalloc_ptr.
8868 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
8869 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
8870 (delim_string_to_char_ptr_vec): Return an std::vector of
8871 gdb::unique_xmalloc_ptr, adjust the code.
8872 (dirnames_to_char_ptr_vec_append): Take an std::vector of
8873 gdb::unique_xmalloc_ptr, adjust the code.
8874 (dirnames_to_char_ptr_vec): Return an std::vector of
8875 gdb::unique_xmalloc_ptr, adjust the code.
8876 * auto-load.c (auto_load_safe_path_vec): Change type to
8877 std::vector of gdb::unique_xmalloc_ptr.
8878 (auto_load_expand_dir_vars): Return an std::vector of
8879 gdb::unique_xmalloc_ptr, adjust the code.
8880 (auto_load_safe_path_vec_update): Adjust.
8881 (filename_is_in_auto_load_safe_path_vec): Adjust.
8882 (auto_load_objfile_script_1): Adjust.
8883 * build-id.c (build_id_to_debug_bfd): Adjust.
8884 * linux-thread-db.c (thread_db_load_search): Adjust.
8885 * source.c (add_path): Adjust.
8886 (openp): Adjust.
8887 * symfile.c (find_separate_debug_file): Adjust.
8888 * utils.c (do_free_char_ptr_vec): Remove.
8889 (make_cleanup_free_char_ptr_vec): Remove.
8890
ab818ade
SDJ
88912018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
8892
8893 PR gdb/22907
8894 * common/pathstuff.c: Conditionally include "<windows.h>".
8895
e1e6f073
GS
88962018-03-01 Georg Sauthoff <mail@georg.so>
8897
8898 PR gdb/22888
8899 * gcore.in: Quote variables and switch interpreter to bash.
8900
c7b15a66
TT
89012018-03-01 Tom Tromey <tom@tromey.com>
8902
8903 * dwarf2read.c (alloc_discriminant_info): Fix default_index
8904 assertion. Add assertion for discriminant_index.
8905 (quirk_rust_enum): Use correct base type name in univariant case.
8906
0cb7c7b0
SM
89072018-03-01 Simon Marchi <simon.marchi@ericsson.com>
8908
8909 * record.c (get_call_history_modifiers): Return a
8910 record_print_flags.
8911 (cmd_record_call_history): Adjust.
8912 * record-btrace.c (record_btrace_call_history): Adjust.
8913 (record_btrace_call_history_range): Adjust.
8914 (record_btrace_call_history_from): Adjust.
8915 * target-debug.h (target_debug_print_record_print_flags): New.
8916 * target-delegates.c: Re-generate.
8917 * target.c (target_call_history): Change flags type.
8918 (target_call_history_from): Likewise.
8919 (target_call_history_range): Likewise.
8920 * target.h (struct target_ops) <target_call_history>: Likewise.
8921 (target_call_history_from): Likewise.
8922 (target_call_history_range): Likewise.
8923
25e3c82c
SDJ
89242018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
8925 Simon Marchi <simon.marchi@polymtl.ca>
8926
8927 * common/common-utils.c: Include "sys/stat.h".
8928 (is_regular_file): Move here from "source.c"; change return
8929 type to "bool".
8930 * common/common-utils.h (is_regular_file): New prototype.
8931 * common/pathstuff.c (contains_dir_separator): New function.
8932 * common/pathstuff.h (contains_dir_separator): New prototype.
8933 * source.c: Don't include "sys/stat.h".
8934 (is_regular_file): Move to "common/common-utils.c".
8935
b4987c95
SDJ
89362018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
8937
8938 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
8939 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
8940 * auto-load.c: Include "common/pathstuff.h".
8941 * common/common-def.h (current_directory): Move here.
8942 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
8943 function.
8944 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
8945 prototype.
8946 * common/pathstuff.c: New file.
8947 * common/pathstuff.h: New file.
8948 * compile/compile.c: Include "common/pathstuff.h".
8949 * defs.h (current_directory): Move to "common/common-defs.h".
8950 * dwarf2read.c: Include "common/pathstuff.h".
8951 * exec.c: Likewise.
8952 * guile/scm-safe-call.c: Likewise.
8953 * linux-thread-db.c: Likewise.
8954 * main.c: Likewise.
8955 * nto-tdep.c: Likewise.
8956 * objfiles.c: Likewise.
8957 * source.c: Likewise.
8958 * symtab.c: Likewise.
8959 * utils.c: Include "common/pathstuff.h".
8960 (gdb_realpath): Move to "common/pathstuff.c".
8961 (gdb_realpath_keepfile): Likewise.
8962 (gdb_abspath): Likewise.
8963 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
8964 (gdb_realpath_keepfile): Likewise.
8965 (gdb_abspath): Likewise.
8966
f169cfdc
JB
89672018-02-28 John Baldwin <jhb@FreeBSD.org>
8968
8969 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
8970 wildcard process pid for super_resume for kernels with a
8971 specific bug.
8972
e05cac70
PM
89732018-02-27 Phil Muldoon <pmuldoon@redhat.com>
8974
8975 * compile/compile.c (get_args): Add additional comments
8976 explaining function.
8977
55089490
TT
89782018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
8979 Tom Tromey <tom@tromey.com>
8980
8981 * target.h (memory_write_request_s): Remove typedef. Don't define
8982 VEC.
8983 (target_write_memory_blocks): Change argument to std::vector.
8984 (struct memory_write_request): Add constructor.
8985 * target-memory.c (compare_block_starting_address): Return bool.
8986 Change argument types.
8987 (claim_memory): Change arguments to use std::vector.
8988 (split_regular_and_flash_blocks, blocks_to_erase)
8989 (compute_garbled_blocks): Likewise.
8990 (cleanup_request_data, cleanup_write_requests_vector): Remove.
8991 (target_write_memory_blocks): Change argument to std::vector.
8992 * symfile.c (struct load_section_data): Add constructor and
8993 destructor. Use std::vector for "requests".
8994 (struct load_progress_data): Add initializers.
8995 (load_section_callback): Update. Use "new".
8996 (clear_memory_write_data): Remove.
8997 (generic_load): Update.
8998
0c305b61
AH
89992018-02-27 Alan Hayward <alan.hayward@arm.com>
9000
9001 * arch/aarch64.h: Use common/tdesc.h.
9002
c5196c92
MR
90032018-02-26 Maciej W. Rozycki <macro@mips.com>
9004
9005 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9006 architecture with a 64-bit ABI.
9007
37c33887
MR
90082018-02-26 Maciej W. Rozycki <macro@mips.com>
9009
9010 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9011 ahead of target description loading.
9012
d4dd3282
TT
90132018-02-26 Tom Tromey <tom@tromey.com>
9014
9015 * stack.c (backtrace_command_1): Update.
9016 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9017 of "flags".
9018 * python/py-framefilter.c (py_print_frame)
9019 (gdbpy_apply_frame_filter): Change type of "flags".
9020 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9021 of "flags".
9022 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9023 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9024 * extension.h (enum frame_filter_flag): Rename from
9025 frame_filter_flags.
9026 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9027 (apply_ext_lang_frame_filter): Change type of "flags".
9028 * extension.c (apply_ext_lang_frame_filter): Change type of
9029 "flags".
9030 * extension-priv.h (struct extension_language_ops)
9031 <apply_frame_filter>: Change type of "flags".
9032
6893c19a
TT
90332018-02-26 Tom Tromey <tom@tromey.com>
9034
9035 PR python/16497:
9036 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9037 off-by-one in py_end computation.
9038 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9039 PRINT_MORE_FRAMES.
9040 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9041 constant.
9042
2ddeaf8a
TT
90432018-02-26 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2read.c (struct variant_field): New.
9046 (struct nextfield) <variant>: New field.
9047 (dwarf2_add_field): Handle DW_TAG_variant_part.
9048 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9049 discriminated union.
9050 (read_structure_type): Handle DW_TAG_variant_part.
9051 (handle_struct_member_die): New function, extracted from
9052 process_structure_scope. Handle DW_TAG_variant.
9053 (process_structure_scope): Handle discriminated unions. Call
9054 handle_struct_member_die.
9055
c9317f21
TT
90562018-02-26 Tom Tromey <tom@tromey.com>
9057
9058 * rust-lang.h (rust_last_path_segment): Declare.
9059 * rust-lang.c (rust_last_path_segment): Now public. Change
9060 contract.
9061 (struct disr_info): Remove.
9062 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9063 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9064 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9065 (rust_enum_p, rust_enum_variant): New function.
9066 (rust_underscore_fields): Remove "offset" parameter.
9067 (rust_print_enum): New function.
9068 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9069 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9070 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9071 enums.
9072 (rust_internal_print_type): New function, from rust_print_type.
9073 Remove enum code.
9074 (rust_print_type): Call rust_internal_print_type.
9075 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9076 Update enum handling.
9077 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9078 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9079 (rust_union_quirks): New functions.
9080 (process_full_comp_unit, process_full_type_unit): Call
9081 rust_union_quirks.
9082 (process_structure_scope): Update rust_unions if necessary.
9083
7c22600a
TT
90842018-02-26 Tom Tromey <tom@tromey.com>
9085
9086 * value.h (value_union_variant): Declare.
9087 * valops.c (value_union_variant): New function.
9088 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9089 (struct discriminant_info): New.
9090 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9091 enumerator.
9092 (struct main_type) <flag_discriminated_union>: New field.
9093
15ce8941
TT
90942018-02-26 Tom Tromey <tom@tromey.com>
9095
9096 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9097 unittests/unpack-selftests.c.
9098 * unittests/unpack-selftests.c: New file.
9099 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9100
48fbe735
YQ
91012018-02-26 Yao Qi <yao.qi@linaro.org>
9102
9103 * dwarf2read.c (struct partial_die_info) <read>: New method.
9104 (read_partial_die): Remove the declaration.
9105 (load_partial_dies): Update.
9106 (partial_die_info::partial_die_info):
9107 (read_partial_die): Change it to partial_die_info::read.
9108
52356b79
YQ
91092018-02-26 Yao Qi <yao.qi@linaro.org>
9110
9111 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9112 (fixup_partial_die): Remove declaration.
9113 (scan_partial_symbols): Update.
9114 (partial_die_parent_scope): Likewise.
9115 (partial_die_full_name): Likewise.
9116 (fixup_partial_die): Change it to partial_die_info::fixup.
9117
35cc7ed7
YQ
91182018-02-26 Yao Qi <yao.qi@linaro.org>
9119
9120 * dwarf2read.c (read_partial_die): Update the declaration.
9121 (load_partial_dies): Caller update.
9122 (read_partial_die): Remove one argument abbrev_len.
9123
6f06d47b
YQ
91242018-02-26 Yao Qi <yao.qi@linaro.org>
9125
9126 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9127 assignment operator.
9128 (load_partial_dies): Use ctor and copy ctor.
9129 (read_partial_die): Update.
9130 (dwarf2_cu::find_partial_die): Use ctor.
9131
d590ff25
YQ
91322018-02-26 Yao Qi <yao.qi@linaro.org>
9133
9134 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9135 (find_partial_die_in_comp_unit): Change it to
9136 dwarf2_cu::find_partial_die.
9137 (find_partial_die): Update.
9138
fd0a254f
YQ
91392018-02-26 Yao Qi <yao.qi@linaro.org>
9140
9141 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9142 is NULL.
9143
cd9983dd
YQ
91442018-02-26 Yao Qi <yao.qi@linaro.org>
9145
9146 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9147
f46cd62a
AH
91482018-02-26 Alan Hayward <alan.hayward@arm.com>
9149
9150 * arch/amd64.h: Use common/tdesc.h.
9151 * arch/i386.c: Likewise.
9152 * arch/i386.h: Likewise.
9153 * arch/tic6x.c: Likewise.
9154 * arch/tdesc.h: Move file from here...
9155 * common/tdesc.h: ...to here.
9156 * features/aarch64-core.c: Regenerate.
9157 * features/aarch64-fpu.c: Regenerate.
9158 * features/i386/32bit-avx.c: Regenerate.
9159 * features/i386/32bit-avx512.c: Regenerate.
9160 * features/i386/32bit-core.c: Regenerate.
9161 * features/i386/32bit-linux.c: Regenerate.
9162 * features/i386/32bit-mpx.c: Regenerate.
9163 * features/i386/32bit-pkeys.c: Regenerate.
9164 * features/i386/32bit-sse.c: Regenerate.
9165 * features/i386/64bit-avx.c: Regenerate.
9166 * features/i386/64bit-avx512.c: Regenerate.
9167 * features/i386/64bit-core.c: Regenerate.
9168 * features/i386/64bit-linux.c: Regenerate.
9169 * features/i386/64bit-mpx.c: Regenerate.
9170 * features/i386/64bit-pkeys.c: Regenerate.
9171 * features/i386/64bit-segments.c: Regenerate.
9172 * features/i386/64bit-sse.c: Regenerate.
9173 * features/i386/x32-core.c: Regenerate.
9174 * features/tic6x-c6xp.c: Regenerate.
9175 * features/tic6x-core.c: Regenerate.
9176 * features/tic6x-gp.c: Regenerate.
9177 * target-descriptions.c: Use common/tdesc.h.
9178 * target-descriptions.h: Likewise.
9179
9b292f68
TT
91802018-02-24 Tom Tromey <tom@tromey.com>
9181
9182 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9183 (try_thread_db_load_from_dir, thread_db_load_search): Use
9184 std::string.
9185 (info_auto_load_libthread_db_compare): Return bool. Change
9186 argument types.
9187 (info_auto_load_libthread_db): Use std::vector, std::string.
9188 Remove cleanups.
9189
281d762b
TT
91902018-02-24 Tom Tromey <tom@tromey.com>
9191
9192 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9193 std::string.
9194 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9195 std::string*.
9196 * gdbarch.c: Rebuild.
9197 * gdbarch.h: Rebuild.
9198 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9199 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9200 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9201 std::string*.
9202
9d8780f0
SM
92032018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9204
9205 * gdbtypes.h (sect_offset): Change type to uint64_t.
9206 (sect_offset_str): New function.
9207 * dwarf2read.c (create_addrmap_from_aranges): Use
9208 sect_offset_str.
9209 (error_check_comp_unit_head): Likewise.
9210 (create_debug_type_hash_table): Likewise.
9211 (read_cutu_die_from_dwo): Likewise.
9212 (init_cutu_and_read_dies): Likewise.
9213 (init_cutu_and_read_dies_no_follow): Likewise.
9214 (process_psymtab_comp_unit_reader): Likewise.
9215 (partial_die_parent_scope): Likewise.
9216 (peek_die_abbrev): Likewise.
9217 (process_queue): Likewise.
9218 (dwarf2_physname): Likewise.
9219 (read_namespace_alias): Likewise.
9220 (read_import_statement): Likewise.
9221 (create_dwo_cu_reader): Likewise.
9222 (create_cus_hash_table): Likewise.
9223 (lookup_dwo_cutu): Likewise.
9224 (inherit_abstract_dies): Likewise.
9225 (read_func_scope): Likewise.
9226 (read_call_site_scope): Likewise.
9227 (dwarf2_add_member_fn): Likewise.
9228 (read_common_block): Likewise.
9229 (read_module_type): Likewise.
9230 (read_typedef): Likewise.
9231 (read_subrange_type): Likewise.
9232 (load_partial_dies): Likewise.
9233 (read_partial_die): Likewise.
9234 (find_partial_die): Likewise.
9235 (read_str_index): Likewise.
9236 (dwarf2_string_attr): Likewise.
9237 (build_error_marker_type): Likewise.
9238 (lookup_die_type): Likewise.
9239 (dump_die_shallow): Likewise.
9240 (follow_die_ref): Likewise.
9241 (dwarf2_fetch_die_loc_sect_off): Likewise.
9242 (dwarf2_fetch_constant_bytes): Likewise.
9243 (follow_die_sig): Likewise.
9244 (get_signatured_type): Likewise.
9245 (get_DW_AT_signature_type): Likewise.
9246 (dwarf2_find_containing_comp_unit): Likewise.
9247 (set_die_type): Likewise.
9248
8ec57239
JB
92492018-02-21 John Baldwin <jhb@FreeBSD.org>
9250
9251 * arch/aarch64.c: Include "common-defs.h".
9252 * arch/amd64.c: Likewise.
9253 * arch/i386.c: Likewise.
9254
3eac2b65
TT
92552018-02-21 Tom Tromey <tom@tromey.com>
9256
9257 * value.h: (extract_field_op): Update.
9258 * eval.c (extract_field_op): Return a const char *.
9259 * expression.h (parse_expression_for_completion): Update.
9260 * completer.c (complete_expression): Update.
9261 (add_struct_fields): Make fieldname const.
9262 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9263 (mark_completion_tag, parse_exp_in_context_1): Update.
9264 (parse_expression_for_completion): Change "name" to
9265 unique_xmalloc_ptr*.
9266
6ccb583f
TT
92672018-02-21 Tom Tromey <tom@tromey.com>
9268
9269 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9270
c113ed0c
YQ
92712018-02-21 Yao Qi <yao.qi@linaro.org>
9272
9273 * avr-tdep.c (avr_read_pc): Change parameter type to
9274 readable_regcache.
9275 * gdbarch.sh (read_pc): Likewise.
9276 * gdbarch.c: Re-generated.
9277 * gdbarch.h: Re-generated.
9278 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9279 readable_regcache.
9280 * ia64-tdep.c (ia64_read_pc): Likewise.
9281 * mips-tdep.c (mips_read_pc): Likewise.
9282 * spu-tdep.c (spu_read_pc): Likewise.
9283
4c74fe6b
YQ
92842018-02-21 Yao Qi <yao.qi@linaro.org>
9285
9286 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9287 * regcache-dump.c: New file.
9288 * regcache.c: Move register_dump to regcache-dump.c.
9289 (maintenance_print_registers): Likewise.
9290 (maintenance_print_raw_registers): Likewise.
9291 (maintenance_print_cooked_registers): Likewise.
9292 (maintenance_print_register_groups): Likewise.
9293 (maintenance_print_remote_registers): Likewise.
9294 (_initialize_regcache): Likewise.
9295 * regcache.h (register_dump): Moved from regcache.c.
9296
796bb026
YQ
92972018-02-21 Yao Qi <yao.qi@linaro.org>
9298
9299 * regcache.c (regcache::regcache): Update.
9300 (regcache::invalidate): Move it to detached_regcache::invalidate.
9301 (get_thread_arch_aspace_regcache): Update.
9302 (regcache::raw_update): Update.
9303 (regcache::cooked_read): Remove some code.
9304 (regcache::cooked_read_value): Likewise.
9305 (regcache::raw_write): Remove assert on m_readonly_p.
9306 (regcache::raw_supply_integer): Move it to
9307 detached_regcache::raw_supply_integer.
9308 (regcache::raw_supply_zeroed): Likewise.
9309 * regcache.h (detached_regcache) <raw_supply_integer>: New
9310 declaration.
9311 <raw_supply_zeroed, invalidate>: Likewise.
9312 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9313 <invalidate>: Likewise.
9314 <m_readonly_p>: Removed.
9315
215c69dc
YQ
93162018-02-21 Yao Qi <yao.qi@linaro.org>
9317
9318 * infcmd.c (get_return_value): Let stop_regs point to
9319 get_current_regcache.
9320 * regcache.c (regcache::regcache): Remove.
9321 (register_dump_reg_buffer): New class.
9322 (regcache_print): Adjust.
9323 * regcache.h (regcache): Remove constructors.
9324
f3384e66
YQ
93252018-02-21 Yao Qi <yao.qi@linaro.org>
9326
9327 * regcache.c (class register_dump): New class.
9328 (register_dump_regcache, register_dump_none): New class.
9329 (register_dump_remote, register_dump_groups): New class.
9330 (regcache_print): Update.
9331 * regcache.h (regcache_dump_what): Move it to regcache.c.
9332 (regcache) <dump>: Remove.
9333
c8ec2f33
YQ
93342018-02-21 Yao Qi <yao.qi@linaro.org>
9335
9336 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9337 reg_buffer_rw *.
9338 (jit_unwind_reg_set_impl): Call raw_supply.
9339 (jit_frame_sniffer): Use reg_buffer_rw.
9340 * record-full.c (record_full_core_regbuf): Change its type.
9341 (record_full_core_open_1): Use reg_buffer_rw.
9342 (record_full_close): Likewise.
9343 (record_full_core_fetch_registers): Use regcache->raw_supply.
9344 (record_full_core_store_registers): Likewise.
9345 * regcache.c (regcache::get_register_status): Move it to
9346 reg_buffer.
9347 (regcache_raw_set_cached_value): Remove.
9348 (regcache::raw_set_cached_value): Remove.
9349 (regcache::raw_write): Call raw_supply.
9350 (regcache::raw_supply): Move it to reg_buffer_rw.
9351 * regcache.h (regcache_raw_set_cached_value): Remove.
9352 (reg_buffer_rw): New class.
9353
daf6667d
YQ
93542018-02-21 Yao Qi <yao.qi@linaro.org>
9355
9356 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9357 readonly_detached_regcache.
9358 (dummy_frame_prev_register): Use regcache->cooked_read.
9359 * frame.c (frame_save_as_regcache): Change return type.
9360 (frame_pop): Update.
9361 * frame.h (frame_save_as_regcache): Update declaration.
9362 * inferior.h (get_infcall_suspend_state_regcache): Update
9363 declaration.
9364 * infrun.c (infcall_suspend_state) <registers>: use
9365 readonly_detached_regcache.
9366 (save_infcall_suspend_state): Don't use regcache_dup.
9367 (get_infcall_suspend_state_regcache): Change return type.
9368 * linux-fork.c (struct fork_info) <savedregs>: Change to
9369 readonly_detached_regcache.
9370 <pc>: New field.
9371 (fork_save_infrun_state): Don't use regcache_dup.
9372 (info_checkpoints_command): Adjust.
9373 * mi/mi-main.c (register_changed_p): Update declaration.
9374 (mi_cmd_data_list_changed_registers): Use
9375 readonly_detached_regcache.
9376 (register_changed_p): Change parameter type to
9377 readonly_detached_regcache.
9378 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
9379 readonly_detached_regcache.
9380 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
9381 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
9382 New.
9383 (regcache::save): Move it to reg_buffer.
9384 (regcache::restore): Change parameter type.
9385 (regcache_dup): Remove.
9386 * regcache.h (reg_buffer) <save>: New method.
9387 (readonly_detached_regcache): New class.
9388 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
9389 readonly_detached_regcache.
9390 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
9391
fc5b8736
YQ
93922018-02-21 Yao Qi <yao.qi@linaro.org>
9393
9394 * frame.c (frame_save_as_regcache): Use regcache method save.
9395 (frame_pop): Use regcache method restore.
9396 * infrun.c (restore_infcall_suspend_state): Likewise.
9397 * linux-fork.c (fork_load_infrun_state): Likewise.
9398 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
9399 save.
9400 * regcache.c (regcache_save): Remove.
9401 (regcache::restore): More asserts.
9402 (regcache_cpy): Remove.
9403 * regcache.h (regcache_save): Remove the declaration.
9404 (regcache::restore): Move from private to public.
9405 Remove the friend declaration of regcache_cpy.
9406 (regcache_cpy): Remove declaration.
9407
849d0ba8
YQ
94082018-02-21 Yao Qi <yao.qi@linaro.org>
9409
9410 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
9411 parameter type to 'readable_regcache *'.
9412 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9413 * arm-tdep.c (arm_neon_quad_read): Likewise.
9414 (arm_pseudo_read): Likewise.
9415 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9416 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9417 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9418 * gdbarch.c: Re-generated.
9419 * gdbarch.h: Re-generated.
9420 * gdbarch.sh (pseudo_register_read): Change parameter type to
9421 'readable_regcache *'.
9422 (pseudo_register_read_value): Likewise.
9423 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
9424 (h8300_pseudo_register_read): Likewise.
9425 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
9426 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9427 (i386_pseudo_register_read_into_value): Likewise.
9428 (i386_pseudo_register_read_value): Likewise.
9429 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
9430 declaration.
9431 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
9432 * m32c-tdep.c (m32c_raw_read): Likewise.
9433 (m32c_read_flg): Likewise.
9434 (m32c_banked_register): Likewise.
9435 (m32c_banked_read): Likewise.
9436 (m32c_sb_read): Likewise.
9437 (m32c_part_read): Likewise.
9438 (m32c_cat_read): Likewise.
9439 (m32c_r3r2r1r0_read): Likewise.
9440 (m32c_pseudo_register_read): Likewise.
9441 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9442 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9443 (mep_pseudo_cr64_read): Likewise.
9444 (mep_pseudo_register_read): Likewise.
9445 * mips-tdep.c (mips_pseudo_register_read): Likewise.
9446 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9447 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9448 * regcache.c (regcache::raw_read): Move it to readable_regcache.
9449 (regcache::cooked_read): Likewise.
9450 (regcache::cooked_read_value): Likewise.
9451 (regcache_cooked_read_signed):
9452 (regcache::cooked_read): Likewise.
9453 * regcache.h (readable_regcache): New class.
9454 (regcache): Inherit readable_regcache. Move some methods to
9455 readable_regcache.
9456 * rl78-tdep.c (rl78_pseudo_register_read): Change
9457 parameter type to 'readable_regcache *'.
9458 * rs6000-tdep.c (do_regcache_raw_read): Remove.
9459 (e500_pseudo_register_read): Change parameter type to
9460 'readable_regcache *'.
9461 (dfp_pseudo_register_read): Likewise.
9462 (vsx_pseudo_register_read): Likewise.
9463 (efpr_pseudo_register_read): Likewise.
9464 * s390-tdep.c (s390_pseudo_register_read): Likewise.
9465 * sh-tdep.c (sh_pseudo_register_read): Likewise.
9466 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
9467 (sh64_pseudo_register_read): Likewise.
9468 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9469 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9470 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9471 (spu_pseudo_register_read): Likewise.
9472 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9473 (xtensa_pseudo_register_read): Likewise.
9474
31716595
YQ
94752018-02-21 Yao Qi <yao.qi@linaro.org>
9476
9477 * regcache.c (regcache::regcache): Call reg_buffer ctor.
9478 (regcache::arch): Move it to reg_buffer::arch.
9479 (regcache::register_buffer): Likewise.
9480 (regcache::assert_regnum): Likewise.
9481 (regcache::num_raw_registers): Likewise.
9482 * regcache.h (reg_buffer): New class.
9483 (regcache): Inherit reg_buffer.
9484
7104e59b
SM
94852018-02-20 Simon Marchi <simon.marchi@ericsson.com>
9486
9487 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
9488 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
9489
2d8adcbd
MM
94902018-02-20 Markus Metzger <markus.t.metzger@intel.com>
9491
9492 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
9493
b5884fa7
AH
94942018-02-19 Alan Hayward <alan.hayward@arm.com>
9495
9496 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
9497 (SFILES): Remove common/*.c files.
9498 (COMMON_OBS): Remove some *.o files built from common/*.c files.
9499 * common/common.host: Add common reference.
9500 * configure.ac: Likewise.
9501 * configure: Regenerate.
9502
fd90ace4
YQ
95032018-02-16 Yao Qi <yao.qi@linaro.org>
9504
9505 * block.c (block_namespace_info): Inherit allocate_on_obstack.
9506 (block_initialize_namespace): Use new.
9507 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
9508 (dwarf2_free_objfile): Use delete.
9509 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
9510 (copy_type_recursive): Use new.
9511 * gdb_obstack.h (allocate_on_obstack): New.
9512
85046ae2
YQ
95132018-02-15 Yao Qi <yao.qi@linaro.org>
9514
9515 PR gdb/22849
9516 * inferior.c (exit_inferior_1): Reset inf->control.
9517
355c559b
JB
95182018-02-15 Joel Brobecker <brobecker@adacore.com>
9519
9520 * ada-lang.c (ada_to_fixed_value_create): Delete advance
9521 declaration.
9522
980548fd
PA
95232018-02-14 Pedro Alves <palves@redhat.com>
9524
9525 * frame-unwind.c (frame_unwind_try_unwinder): Always call
9526 frame_cleanup_after_sniffer on exception.
9527
692d6f97
TT
95282018-02-14 Tom Tromey <tom@tromey.com>
9529
9530 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
9531 const.
9532 (solib_bfd_open): Make pathname const.
9533 * solib.c (solib_bfd_open): Make pathname const.
9534 * solib-spu.c (spu_bfd_fopen): Make name const.
9535 (spu_bfd_open): Make pathname const.
9536 * solib-darwin.c (darwin_bfd_open): Make pathname const.
9537 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
9538
e0cc99a6
TT
95392018-02-14 Tom Tromey <tom@tromey.com>
9540
9541 * symfile.c (symfile_bfd_open): Update.
9542 * source.h (openp, source_full_path_of, find_and_open_source):
9543 Change argument type to unique_xmalloc_ptr.
9544 * source.c (openp): Take a unique_xmalloc_ptr.
9545 (source_full_path_of, find_and_open_source): Likewise.
9546 (open_source_file, symtab_to_fullname): Update.
9547 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
9548 unique_xmalloc_ptr.
9549 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
9550 (exec_file_find): Update.
9551 * psymtab.c (psymtab_to_fullname): Update.
9552 * nto-tdep.h (nto_find_and_open_solib): Update.
9553 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
9554 unique_xmalloc_ptr.
9555 * exec.c (exec_file_attach): Update.
9556 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
9557 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
9558
b46a8d7c
TT
95592018-02-14 Tom Tromey <tom@tromey.com>
9560
9561 * solib.c: Include source.h.
9562 * nto-tdep.c: Include source.h.
9563 * mi/mi-cmd-env.c: Include source.h.
9564 * infcmd.c: Include source.h.
9565 * exec.c: Include source.h.
9566 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
9567 (add_path, directory_switch, source_path, init_source_path): Move
9568 declarations...
9569 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
9570 (add_path, directory_switch, source_path, init_source_path):
9571 ...here.
9572
797bc1cb
TT
95732018-02-14 Tom Tromey <tom@tromey.com>
9574
9575 * solist.h (exec_file_find, solib_find): Return
9576 unique_xmalloc_ptr.
9577 (solib_bfd_fopen): Take a const char *.
9578 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
9579 (exec_file_find, solib_find): Likewise.
9580 (solib_bfd_fopen): Do not take ownership of "pathname".
9581 (solib_bfd_open): Use unique_xmalloc_ptr.
9582 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
9583 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
9584 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
9585 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
9586
f98b2e33
JB
95872018-02-14 Joel Brobecker <brobecker@adacore.com>
9588
9589 * ada-lang.c (name_match_type_from_name): Remove reference to
9590 ada_name_for_lookup in function's documentation.
9591 * ada-lang.h (ada_name_for_lookup): Delete declaration.
9592
24b9144d
SM
95932018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9594
9595 * defs.h (enum openp_flags): New enum.
9596 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
9597 Move to enum openp_flags.
9598 (openp_flags): New enum flags.
9599 (openp): Change parameter type to openp_flags.
9600 * source.c (openp): Change parameter type to openp_flags.
9601 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
9602 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
9603
387cd15b
SM
96042018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9605
9606 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
9607 per-command.
9608
b303c6f6
AB
96092018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
9610
9611 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
9612 into...
9613 (class dwarf2_queue_guard): ...the destructor of this new class.
9614 (dw2_do_instantiate_symtab): Create instance of the new class
9615 dwarf2_queue_guard, remove cleanup.
9616
9c3630e9
TT
96172018-02-09 Tom Tromey <tom@tromey.com>
9618
9619 * source.c (find_source_lines): Don't reference past the end of
9620 the vector.
9621
c4e12631
MM
96222018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9623
9624 * remote.c (remote_btrace_maybe_reopen): Change error message.
9625 * btrace.c (btrace_enable): Likewise.
9626 (parse_xml_btrace): Likewise.
9627 (parse_xml_btrace_conf): Likewise.
9628
88711fbf
MM
96292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9630
9631 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
9632 (linux_enable_pt, linux_enable_bts): Call
9633 diagnose_perf_event_open_fail.
9634
17ad2a4f
MM
96352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9636
9637 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
9638 Remove parameter and change return type. Update callers. Move it.
9639 (linux_enable_bts, linux_enable_pt): Improve error message.
9640 (linux_enable_pt): Remove zero buffer size check.
9641 (linux_enable_btrace): Improve error messages. Remove NULL return
9642 check.
9643
de6242d3
MM
96442018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9645
9646 * btrace.c (btrace_enable): Remove target_supports_btrace call.
9647 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
9648 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
9649 (linux_supports_pt, linux_supports_btrace): Remove.
9650 (linux_enable_bts): Call cpu_supports_bts.
9651 * nat/linux-btrace.h (linux_supports_btrace): Remove.
9652 * remote.c (remote_supports_btrace): Remove.
9653 (init_remote_ops): Remove remote_supports_btrace.
9654 * target-delegates.c: Regenerated.
9655 * target.c (target_supports_btrace): Remove.
9656 * target.h (target_ops) <to_supports_btrace>: Remove
9657 (target_supports_btrace): Remove.
9658 * x86-linux-nat.c (x86_linux_create_target): Remove
9659 linux_supports_btrace.
9660
9ee23a85
MM
96612018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9662
9663 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
9664 btrace failed.
9665 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
9666 exception and use message in own exception.
9667
5c3284c1
MM
96682018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9669
9670 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
9671 (perf_event_pt_event_type): Use gdb_file_up.
9672 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
9673 scoped_fd, and scoped_mmap.
9674
84696f37
MM
96752018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9676
9677 * common/scoped_mmap.h: New.
9678 * unittests/scoped_mmap-selftest.c: New.
9679 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9680 unittests/scoped_mmap-selftest.c.
9681
ea4a0888
MM
96822018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9683
9684 * common/scoped_fd.h: New.
9685 * unittests/scoped_fd-selftest.c: New.
9686 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9687 unittests/scoped_fd-selftest.c.
9688
869e8290
TT
96892018-02-09 Tom Tromey <tom@tromey.com>
9690
9691 * auto-load.c (auto_load_section_scripts): Use
9692 gdb::unique_xmalloc_ptr.
9693
a37a2ae7
TT
96942018-02-09 Tom Tromey <tom@tromey.com>
9695
9696 * auto-load.c (execute_script_contents): Use std::string.
9697
4e725347
JB
96982018-02-09 Joel Brobecker <brobecker@adacore.com>
9699
9700 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
9701 Python function, rather than a new command.
9702
9a897d43
TT
97032018-02-08 Tom Tromey <tom@tromey.com>
9704
9705 * solib.c (solib_find_1): Use std::string.
9706 (solib_bfd_fopen): Use unique_xmalloc_ptr.
9707
58ef3771
TT
97082018-02-08 Tom Tromey <tom@tromey.com>
9709
9710 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
9711
a9abc434
TT
97122018-02-08 Tom Tromey <tom@tromey.com>
9713
9714 * source.c (find_source_lines): Use gdb::def_vector.
9715
84f27c6f
TT
97162018-02-08 Tom Tromey <tom@tromey.com>
9717
9718 * macrocmd.c (struct temporary_macro_definition): New.
9719 (macro_define_command): Use temporary_macro_definition. Remove
9720 cleanups.
9721 (free_macro_definition_ptr): Remove.
9722
0354904b
TT
97232018-02-08 Tom Tromey <tom@tromey.com>
9724
9725 * macroexp.c (maybe_expand): Use std::string.
9726
1739cf24
TT
97272018-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * macroexp.c (struct macro_buffer): Add initializers for some
9730 members.
9731 (init_buffer, init_shared_buffer, free_buffer)
9732 (free_buffer_return_text): Remove.
9733 (macro_buffer): New constructors.
9734 (~macro_buffer): New destructor.
9735 (macro_buffer::set_shared): New method.
9736 (macro_buffer::resize_buffer, macro_buffer::appendc)
9737 (macro_buffer::appendmem): Now methods, not free functions.
9738 (set_token, append_tokens_without_splicing, stringify)
9739 (macro_stringify): Update.
9740 (gather_arguments): Change return type. Remove argc_p argument,
9741 add args_ptr argument. Use std::vector.
9742 (substitute_args): Remove argc argument. Accept std::vector.
9743 (expand): Update. Use std::vector.
9744 (scan, macro_expand, macro_expand_next): Update.
9745
f6c2623e
TT
97462018-02-08 Tom Tromey <tom@tromey.com>
9747
9748 * symtab.c (default_collect_symbol_completion_matches_break_on):
9749 Use unique_xmalloc_ptr.
9750 * macroscope.h: (sal_macro_scope, user_macro_scope)
9751 (default_macro_scope): Return unique_xmalloc_ptr.
9752 * macroscope.c (sal_macro_scope, user_macro_scope)
9753 (default_macro_scope): Return unique_xmalloc_ptr.
9754 * macroexp.h (macro_expand, macro_expand_once): Return
9755 unique_xmalloc_ptr.
9756 * macroexp.c (macro_expand, macro_expand_once): Return
9757 unique_xmalloc_ptr.
9758 * macrocmd.c (macro_expand_command, macro_expand_once_command)
9759 (info_macro_command, info_macros_command): Use
9760 unique_xmalloc_ptr.
9761 * compile/compile-c-support.c (write_macro_definitions): Use
9762 unique_xmalloc_ptr.
9763 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
9764
c2e0e465
SM
97652018-02-07 Simon Marchi <simon.marchi@ericsson.com>
9766
9767 * value.c (value_static_field): Assign field type instead of
9768 containing type when returning an optimized out value.
9769
3f8c94b4
YQ
97702018-02-06 Yao Qi <yao.qi@linaro.org>
9771
9772 * ft32-tdep.c (ft32_read_pc): Remove.
9773 (ft32_write_pc): Remove.
9774 (ft32_gdbarch_init): Update.
9775 * m32r-tdep.c (m32r_read_pc): Remove.
9776 (m32r_gdbarch_init): Update.
9777 * mep-tdep.c (mep_read_pc): Remove.
9778 (mep_gdbarch_init): Update.
9779 * microblaze-tdep.c (microblaze_write_pc): Remove.
9780 (microblaze_gdbarch_init): Update.
9781 * mn10300-tdep.c (mn10300_read_pc): Remove.
9782 (mn10300_write_pc): Remove.
9783 (mn10300_gdbarch_init): Update.
9784 * moxie-tdep.c (moxie_read_pc): Remove.
9785 (moxie_write_pc): Remove.
9786 (moxie_gdbarch_init): Update.
9787
bca65a23
YQ
97882018-02-06 Yao Qi <yao.qi@linaro.org>
9789
9790 * expprint.c (print_subexp_standard): Handle
9791 OP_F77_UNDETERMINED_ARGLIST.
9792 (dump_subexp_body_standard): Likewise.
9793
583e3f90 97942018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 9795
583e3f90
YQ
9796 * target-descriptions.c (tdesc_element_visitor) Add empty
9797 implementations.
b8df6ca7
AH
9798 (tdesc_type): Move make_gdb_type from here.
9799 (tdesc_type_builtin): Likewise.
9800 (tdesc_type_vector): Likewise.
9801 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
9802 (make_gdb_type_struct): Move from tdesc_type_with_fields.
9803 (make_gdb_type_union): Likewise.
9804 (make_gdb_type_flags): Likewise.
9805 (make_gdb_type_enum): Likewise.
9806 (make_gdb_type): New function.
9807 (tdesc_register_type): Use static make_gdb_type.
9808
e813d34a
RK
98092018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
9810
9811 * infcmd.c (default_print_one_register_info): Align natural-format
9812 column values consistently one under another.
9813 (pad_to_column): New function.
9814
0eb876f5
JB
98152018-02-05 Joel Brobecker <brobecker@adacore.com>
9816
9817 * dwarf2read.c (dwarf2_physname): Move commment.
9818
0625771b
LS
98192018-02-01 Leszek Swirski <leszeks@google.com>
9820
9821 * varobj.c (varobj_formatted_print_options): Allow recursive
9822 pretty printing if pretty printing is enabled.
9823
59498c30
LS
98242018-02-01 Leszek Swirski <leszeks@google.com>
9825
9826 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
9827 names after a structop as a filename.
9828
2d9e6acb
YQ
98292018-02-01 Yao Qi <yao.qi@linaro.org>
9830
9831 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
9832 (arm_record_coproc_data_proc): Likewise.
9833
df95a9cf
YQ
98342018-02-01 Yao Qi <yao.qi@linaro.org>
9835
9836 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
9837
07e5f5cf
NP
98382018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
9839
9840 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
9841 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
9842
3045b475
PA
98432018-01-31 Pedro Alves <palves@redhat.com>
9844
9845 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
9846 * inflow.c (child_terminal_save_inferior): Wrap reference to
9847 tcgetpgrp in HAVE_TERMIOS_H.
9848 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
9849 _WIN32.
9850 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
9851 always iterate over all inferiors.
9852 (gdbsim_cntrl_c): Adjust.
9853 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
9854
929b5ad4
JB
98552018-01-31 Joel Brobecker <brobecker@adacore.com>
9856
9857 * gdbtypes.c (lookup_array_range_type): Make sure the array's
9858 index type is objfile-owned if the element type is as well.
9859
29236ca2
JB
98602018-01-31 Joel Brobecker <brobecker@adacore.com>
9861
9862 GDB 8.1 released.
9863
c81e8879
PR
98642018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
9865
9866 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
9867 "features/s390x-linux64.c".
9868 (_initialize_s390_linux_tdep): Remove initialization of tdescs
9869 s390_linux32 and s390x_linux64.
9870 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
9871 default tdesc.
9872 * s390-tdep.c: Include "features/s390-linux32.c" and
9873 "features/s390x-linux64.c".
9874 (s390_tdesc_valid): Add check for tdesc_has_registers.
9875 (s390_gdbarch_init): Make sure there is always a valid tdesc.
9876 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
9877 tdesc_s390x_linux64.
9878 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
9879 tdesc_s390x_linux64 to...
9880 * s390-tdep.h: ...here.
9881
e671cd59
PA
98822018-01-30 Pedro Alves <palves@redhat.com>
9883
9884 PR gdb/13211
9885 * config.in, configure: Regenerate.
9886 * configure.ac: Check for getpgid.
9887 * go32-nat.c (go32_pass_ctrlc): New.
9888 (go32_target): Install it.
9889 * inf-child.c (inf_child_target): Install
9890 child_terminal_save_inferior, child_pass_ctrlc and
9891 child_interrupt.
9892 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
9893 (inf_ptrace_target): No longer install it.
9894 * infcmd.c (interrupt_target_1): Adjust.
9895 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
9896 (child_interrupt): Declare.
9897 (inferior::terminal_state): New.
9898 * inflow.c (struct terminal_info): Update comments.
9899 (inferior_process_group): Delete.
9900 (terminal_is_ours): Delete.
9901 (gdb_tty_state): New.
9902 (child_terminal_init): Adjust.
9903 (is_gdb_terminal, sharing_input_terminal_1)
9904 (sharing_input_terminal): New functions.
9905 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
9906 Set the process's actual process group in the foreground if
9907 possible. Handle is_ours_for_output/is_ours distinction. Don't
9908 mark terminal as the inferior's if not sharing GDB's terminal.
9909 Don't check attach_flag.
9910 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
9911 pass down a target_terminal_state.
9912 (child_terminal_save_inferior): New, factored out from ...
9913 (child_terminal_ours_1): ... this. Handle
9914 target_terminal_state::is_ours_for_output.
9915 (child_interrupt, child_pass_ctrlc): New.
9916 (inflow_inferior_exit): Clear the inferior's terminal_state.
9917 (copy_terminal_info): Copy the inferior's terminal state.
9918 (_initialize_inflow): Remove reference to terminal_is_ours.
9919 * inflow.h (inferior_process_group): Delete.
9920 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
9921 * procfs.c (procfs_target): Don't install procfs_interrupt.
9922 (procfs_interrupt): Delete.
9923 * remote.c (remote_serial_quit_handler): Adjust.
9924 (remote_interrupt): Remove ptid parameter. Adjust.
9925 * target-delegates.c: Regenerate.
9926 * target.c: Include "terminal.h".
9927 (target_terminal::terminal_state): Rename to ...
9928 (target_terminal::m_terminal_state): ... this.
9929 (target_terminal::init): Adjust.
9930 (target_terminal::inferior): Adjust to per-inferior
9931 terminal_state.
9932 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
9933 (target_terminal::ours, target_terminal::ours_for_output): Use
9934 target_terminal_is_ours_kind.
9935 (target_interrupt): Remove ptid parameter. Adjust.
9936 (default_target_pass_ctrlc): Adjust.
9937 * target.h (target_ops::to_terminal_save_inferior): New field.
9938 (target_ops::to_interrupt): Remove ptid_t parameter.
9939 (target_interrupt): Remove ptid_t parameter. Update comment.
9940 (target_pass_ctrlc): Update comment.
9941 * target/target.h (target_terminal_state): New scoped enum,
9942 factored out of ...
9943 (target_terminal::terminal_state): ... here.
9944 (target_terminal::inferior): Update comments.
9945 (target_terminal::restore_inferior): New.
9946 (target_terminal::is_inferior, target_terminal::is_ours)
9947 (target_terminal::is_ours_for_output): Adjust.
9948 (target_terminal::scoped_restore_terminal_state): Adjust to
9949 rename, and call restore_inferior() instead of inferior().
9950 (target_terminal::scoped_restore_terminal_state::m_state): Change
9951 type.
9952 (target_terminal::terminal_state): Rename to ...
9953 (target_terminal::m_terminal_state): ... this and change type.
9954
9c3a5d93
PA
99552018-01-30 Pedro Alves <palves@redhat.com>
9956
9957 * linux-nat.c (wait_for_signal): New function.
9958 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
9959 directly.
9960 (async_terminal_is_ours)
9961 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
9962 (linux_nat_add_target): Don't override
9963 to_terminal_inferior/to_terminal_ours.
9964
69ab5edb
SDJ
99652018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
9966
9967 * remote.c (remote_follow_fork): Don't call "detach_inferior".
9968
fc8e7e75
SM
99692018-01-28 Simon Marchi <simon.marchi@ericsson.com>
9970
9971 * dwarf2read.c (free_dwo_files): Add forward-declaration.
9972 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
9973 dwarf2_per_objfile_free here.
9974 (dwarf2_per_objfile_free): Remove.
9975 (_initialize_dwarf2_read): Don't register
9976 dwarf2_per_objfile_free as a registry cleanup.
9977
b2a426e2
EZ
99782018-01-27 Eli Zaretskii <eliz@gnu.org>
9979
9980 Avoid compilation errors in MinGW native builds
9981
9982 The error is triggered by including python-internal.h, and the
9983 error message is:
9984
9985 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
9986 from build-gnulib/import/math.h:27,
9987 from d:/usr/Python26/include/pyport.h:235,
9988 from d:/usr/Python26/include/Python.h:58,
9989 from python/python-internal.h:94,
9990 from python/py-arch.c:24:
9991 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
9992 using ::hypot;
9993 ^~~~~
9994
9995 This happens because Python headers define 'hypot' to expand t
9996 '_hypot' in the Windows builds.
9997 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
9998 'hypoth'. This avoids a compilation error.
9999
0bdd8eac
AH
100002018-01-26 Alan Hayward <alan.hayward@arm.com>
10001
10002 * MAINTAINERS (Write After Approval): Fix ordering.
10003
56ae9dc3
AH
100042018-01-26 Alan Hayward <alan.hayward@arm.com>
10005
10006 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10007
7433498b
AM
100082018-01-26 Alan Modra <amodra@gmail.com>
10009
10010 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10011 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10012 Remove nop. Make const. Comment.
10013 (powerpc32_plt_stub_so_2): New.
10014 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10015 Correct count. Update uses.
10016 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10017 Move common code reading PLT entry word. Correct
10018 powerpc32_plt_stub PLT address calculation.
10019 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10020 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10021 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10022 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10023 (ppc64_standard_linkage8): Likewise.
10024 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10025 Correct insns description.
10026 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10027
0f59d5fc
PA
100282018-01-24 Pedro Alves <palves@redhat.com>
10029
10030 GCC PR libstdc++/83906
10031 * gdbtypes.c (operator==(const dynamic_prop &,
10032 const dynamic_prop &)): New.
10033 (operator==(const range_bounds &, const range_bounds &)): New.
10034 (check_types_equal): Use them instead of memcmp.
10035 * gdbtypes.h (operator==(const dynamic_prop &,
10036 const dynamic_prop &)): Declare.
10037 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10038 (operator==(const range_bounds &, const range_bounds &)): Declare.
10039 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10040
ef8914a4
PR
100412018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10042
10043 * s390-linux-tdep.c (s390_record_address_mask)
10044 (s390_record_calc_disp_common, s390_record_calc_disp)
10045 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10046 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10047 (s390_process_record): Move to s390-tdep.c.
10048 (s390_linux_init_abi_any): Adjust.
10049 * s390-tdep.c (s390_record_address_mask)
10050 (s390_record_calc_disp_common, s390_record_calc_disp)
10051 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10052 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10053 (s390_process_record): Moved from s390-linux-tdep.c
10054 (s390_gdbarch_init): Adjust.
10055
d6e58945
PR
100562018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10057
10058 * s390-linux-nat.c (s390-tdep.h): New include.
10059 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10060 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10061 (ALLDEPFILES): Add s390-tdep.c.
10062 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10063 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10064 * s390-tdep.h: ...this. New file.
10065 * s390-linux-tdep.c (s390-tdep.h): New include.
10066 (_initialize_s390_tdep): Rename to...
10067 (_initialize_s390_linux_tdep): ...this and adjust.
10068 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10069 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10070 s390-tdep.h.
10071 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10072 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10073 (s390_is_partial_instruction, s390_software_single_step)
10074 (is_non_branch_ril, s390_displaced_step_copy_insn)
10075 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10076 (s390_prologue_data, s390_addr, s390_store, s390_load)
10077 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10078 (s390_register_call_saved, s390_guess_tracepoint_registers)
10079 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10080 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10081 (s390_pseudo_register_name, s390_pseudo_register_type)
10082 (s390_pseudo_register_read, s390_pseudo_register_write)
10083 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10084 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10085 (s390_addr_bits_remove, s390_address_class_type_flags)
10086 (s390_address_class_type_flags_to_name)
10087 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10088 (s390_function_arg_float, s390_function_arg_vector)
10089 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10090 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10091 (s390_frame_align, s390_register_return_value, s390_return_value)
10092 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10093 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10094 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10095 (s390_trad_frame_prev_register, s390_unwind_cache)
10096 (s390_prologue_frame_unwind_cache)
10097 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10098 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10099 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10100 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10101 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10102 (s390_frame_base_address, s390_local_base_address)
10103 (s390_frame_base, s390_gcc_target_options)
10104 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10105 (s390_validate_reg_range, s390_tdesc_valid)
10106 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10107 * s390-tdep.c: ...this. New file.
10108
9c0b896e
PR
101092018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10110
10111 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10112 (s390_process_record, s390_gdbarch_tdep_alloc)
10113 (s390_linux_init_abi_any): Use/set new hook.
10114
7042632b
PR
101152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10116
10117 * s390-linux-tdep.c (osabi.h): New include.
10118 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10119 (s390_linux_init_abi_any): New functions.
10120 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10121
650f5e13
PR
101222018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10123
10124 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10125 tdesc_has_registers check
10126
47c9317e
PR
101272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10128
10129 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10130 (s390_validate_reg_range): New macro.
10131 (s390_gdbarch_init): Adjust.
10132
095085d8
PR
101332018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10134
10135 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10136 (s390_gdbarch_tdep_alloc): Adjust.
10137 (s390_gdbarch_init): Adjust.
10138
ab9bcc67
PR
101392018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10140
10141 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10142 <have_tdb>: Change type to bool.
10143 (s390_gdbarch_tdep_alloc): Adjust.
10144 (s390_gdbarch_init): Adjust.
10145
21f6f5ff
PR
101462018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10147
10148 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10149 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10150 (s390_gdbarch_tdep_alloc): New function.
10151 (s390_gdbarch_init): Allocate tdep at start and use its fields
10152 instead of separate variables.
10153
0eb97953
PR
101542018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10155
10156 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10157 when looking for cached gdbarch and add comment for remaining.
10158
5c319bb2
PA
101592018-01-22 Pedro Alves <palves@redhat.com>
10160 Sergio Durigan Junior <sergiodj@redhat.com>
10161
10162 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10163 case.
10164
d65ce302
MR
101652018-01-22 Maciej W. Rozycki <macro@mips.com>
10166
10167 * MAINTAINERS: Update my company e-mail address.
10168
ec7a5fcb
YQ
101692018-01-22 Yao Qi <yao.qi@linaro.org>
10170
10171 * regcache.c (cooked_write_test): New function.
10172 (_initialize_regcache): Register the test.
10173
11f57cb6
YQ
101742018-01-22 Yao Qi <yao.qi@linaro.org>
10175
10176 * ia64-tdep.c (ia64_pseudo_register_read): Call
10177 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10178 * m32c-tdep.c (m32c_cat_read): Likewise.
10179 (m32c_r3r2r1r0_read): Likewise.
10180 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10181 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10182
03f50fc8
YQ
101832018-01-22 Yao Qi <yao.qi@linaro.org>
10184
10185 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10186 method raw_read instead of regcache_raw_read.
10187 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10188 * arm-tdep.c (arm_neon_quad_read): Likewise.
10189 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10190 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10191 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10192 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10193 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10194 (i386_pseudo_register_read_into_value): Likewise.
10195 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10196 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10197 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10198 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10199 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10200 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10201 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10202 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10203 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10204
dc711524
YQ
102052018-01-22 Yao Qi <yao.qi@linaro.org>
10206
10207 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10208 * configure.tgt: Remove target mt.
10209 * mt-tdep.c: Remove.
10210 * regcache.c (cooked_read_test): Remove the check for mt.
10211
3f5a868b
YQ
102122018-01-22 Yao Qi <yao.qi@linaro.org>
10213
10214 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10215 instead of gdbarch_pseudo_register_read_value.
10216
de4cb04a
JB
102172018-01-22 Joel Brobecker <brobecker@adacore.com>
10218
10219 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10220 language is Ada.
10221
a9e40818
JB
102222018-01-22 Joel Brobecker <brobecker@adacore.com>
10223
10224 * linespec.c (create_sals_line_offset): Remove code that preserved
10225 the symtab_and_line's line number.
10226
e707fc44
AB
102272018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 * varobj.c (varobj_create): Don't set valid_block when creating a
10230 floating varobj.
10231
03d0bf7b
AB
102322018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10233
10234 * varobj.c (varobj_create): Remove out of date comment.
10235
ae451627
AB
102362018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 PR mi/20395
10239 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10240 updating innermost block.
10241 * parse.c (innermost_block_tracker::update): Take extra type
10242 parameter, and check types match before updating innermost block.
10243 (write_dollar_variable): Update innermost block for registers.
10244 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10245 (innermost_block_tracker::innermost_block_tracker): Initialise
10246 m_types member.
10247 (innermost_block_tracker::reset): Take type parameter.
10248 (innermost_block_tracker::update): Take type parameter, and pass
10249 type through as needed.
10250 (innermost_block_tracker::m_types): New member.
10251 * varobj.c (varobj_create): Pass type when reseting innermost
10252 block.
10253
aee1fcdf
AB
102542018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10257 * ada-lang.c (resolve_subexp): Likewise.
10258 * breakpoint.c (set_breakpoint_condition) Likewise.
10259 (watch_command_1) Likewise.
10260 * c-exp.y (variable): Likewise.
10261 * d-exp.y (PrimaryExpression): Likewise.
10262 * f-exp.y (variable): Likewise.
10263 * go-exp.y (variable): Likewise.
10264 * m2-exp.y (variable): Likewise.
10265 * objfiles.c (objfile::~objfile): Likewise.
10266 * p-exp.y (variable): Likewise.
10267 * parse.c (innermost_block): Change type.
10268 * parser-defs.h (class innermost_block_tracker): New.
10269 (innermost_block): Change to innermost_block_tracker.
10270 * printcmd.c (display_command): Switch to innermost_block API.
10271 (do_one_display): Likewise.
10272 * rust-exp.y (do_one_display): Likewise.
10273 * symfile.c (clear_symtab_users): Likewise.
10274 * varobj.c (varobj_create): Switch to innermost_block API, replace
10275 use of innermost_block with block stored on varobj object.
10276
396af9a1
AB
102772018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * expression.h (innermost_block): Remove declaration.
10280 * varobj.c: Add 'parser-defs.h' include.
10281
fcfcc376
TT
102822018-01-19 Tom Tromey <tom@tromey.com>
10283
10284 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10285 symbols in the static and global blocks.
10286
5a6c3296
JC
102872018-01-19 James Clarke <jrtc27@jrtc27.com>
10288
10289 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10290 gdb_ptrace.h, and move including gdb_wait.h ...
10291 * nat/linux-ptrace.h: ... to here.
10292
bc09b0c1
SM
102932018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10294
10295 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10296 inf_ptrace_detach_success.
10297 (inf_ptrace_detach_success): Add inferior parameter, use it
10298 instead of inferior_ptid, pass it to detach_inferior.
10299 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10300 parameter.
10301 * inferior.c (detach_inferior): Add overload that takes an
10302 inferior object.
10303 * inferior.h (detach_inferior): Likewise.
10304 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10305 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10306 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10307
6e1e1966
SM
103082018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10309
10310 * target.h (struct target_ops) <to_detach>: Add inferior
10311 parameter.
10312 (target_detach): Likewise.
10313 * target.c (dispose_inferior): Pass inferior down.
10314 (target_detach): Pass inferior down. Assert that it is equal to
10315 the current inferior.
10316 * aix-thread.c (aix_thread_detach): Pass inferior down.
10317 * corefile.c (core_file_command): Pass current_inferior() down.
10318 * corelow.c (core_detach): Add inferior parameter.
10319 * darwin-nat.c (darwin_detach): Likewise.
10320 * gnu-nat.c (gnu_detach): Likewise.
10321 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10322 * infcmd.c (detach_command): Pass current_inferior() down to
10323 target_detach.
10324 * infrun.c (follow_fork_inferior): Pass parent_inf to
10325 target_detach.
10326 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10327 target_detach.
10328 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10329 * linux-thread-db.c (thread_db_detach): Likewise.
10330 * nto-procfs.c (procfs_detach): Likewise.
10331 * procfs.c (procfs_detach): Likewise.
10332 * record.c (record_detach): Likewise.
10333 * record.h (struct inferior): Forward-declare.
10334 (record_detach): Add inferior parameter.
10335 * remote-sim.c (gdbsim_detach): Likewise.
10336 * remote.c (remote_detach_1): Likewise.
10337 (remote_detach): Likewise.
10338 (extended_remote_detach): Likewise.
10339 * sol-thread.c (sol_thread_detach): Likewise.
10340 * target-debug.h (target_debug_print_inferior_p): New macro.
10341 * target-delegates.c: Re-generate.
10342 * top.c (kill_or_detach): Pass inferior down to target_detach.
10343 * windows-nat.c (windows_detach): Add inferior parameter.
10344
6bd6f3b6
SM
103452018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10346
10347 * target.h (struct target_ops) <to_detach>: Remove args
10348 parameter.
10349 (target_detach): Likewise.
10350 * target.c (dispose_inferior): Adjust.
10351 (target_detach): Remove args parameter, adjust.
10352 * aix-thread.c (aix_thread_detach): Adjust.
10353 * corefile.c (core_file_command): Adjust.
10354 * corelow.c (core_detach): Adjust.
10355 * darwin-nat.c (darwin_detach): Adjust.
10356 * gnu-nat.c (gnu_detach): Adjust.
10357 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10358 * infcmd.c (detach_command): Adjust
10359 * infrun.c (follow_fork_inferior): Adjust.
10360 (handle_vfork_child_exec_or_exit): Adjust.
10361 * linux-fork.c (linux_fork_detach): Remove args parameter.
10362 * linux-fork.h (linux_fork_detach): Likewise.
10363 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10364 * linux-thread-db.c (thread_db_detach): Likewise.
10365 * nto-procfs.c (procfs_detach): Likewise.
10366 * procfs.c (procfs_detach): Likewise.
10367 (do_detach): Remove signo parameter.
10368 * record.c (record_detach): Remove args parameter.
10369 * record.h (record_detach): Likewise.
10370 * remote-sim.c (gdbsim_detach): Likewise.
10371 * remote.c (remote_detach_1): Likewise.
10372 (remote_detach): Likewise.
10373 (extended_remote_detach): Likewise.
10374 * sol-thread.c (sol_thread_detach): Likewise.
10375 * target-delegates.c: Re-generate.
10376 * top.c (struct qt_args) <args>: Remove field.
10377 (kill_or_detach): Don't pass args.
10378 (quit_force): Don't set args.
10379 * windows-nat.c (windows_detach): Remove args parameter.
10380
88af8ea8
YQ
103812018-01-19 Yao Qi <yao.qi@linaro.org>
10382
10383 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
10384 (arm_linux_init_abi): Install it.
10385
dea445b9
YQ
103862018-01-19 Yao Qi <yao.qi@linaro.org>
10387
10388 * osabi.c (gdb_osabi_names): Extend the regexp for
10389 arm-linux-gnueabihf.
10390
4a17f768
YQ
103912018-01-18 Yao Qi <yao.qi@linaro.org>
10392
10393 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
10394 m_abbrevs.
10395 (abbrev_table::add_abbrev): Update.
10396 (abbrev_table::lookup_abbrev): Update.
10397
d679c21a
YQ
103982018-01-18 Yao Qi <yao.qi@linaro.org>
10399
10400 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
10401
7d937cad
SDJ
104022018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10403
10404 * compile/compile.c (compile_to_object): Convert "triplet_rx"
10405 to "std::string".
10406
9e14690d
TT
104072018-01-17 Tom Tromey <tom@tromey.com>
10408
10409 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
10410
50a82047
TT
104112018-01-17 Tom Tromey <tom@tromey.com>
10412
10413 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
10414 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
10415 (create_array_type_with_stride): Update.
10416 * dwarf2read.c (set_die_type): Update.
10417
c89b44cd
TT
104182018-01-17 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2read.c (delayed_method_info): Remove typedef.
10421 (dwarf2_cu::method_info): Now a std::vector.
10422 (add_to_method_list): Update.
10423 (free_delayed_list): Remove.
10424 (compute_delayed_physnames): Update.
10425 (process_full_comp_unit, process_full_type_unit): Clear the method
10426 list. Remove cleanups.
10427 (psymtab_include_file_name): Add name_holder parameter. Use
10428 unique_xmalloc_ptr.
10429 (dwarf_decode_lines): Update.
10430
fcd3b13d
SM
104312018-01-17 Tom Tromey <tom@tromey.com>
10432 Simon Marchi <simon.marchi@ericsson.com>
10433
10434 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
10435 (dwarf2_per_objfile::free_cached_comp_units)
10436 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10437 (init_cutu_and_read_dies_no_follow): Update.
10438 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
10439 (dwarf2_cu::~dwarf2_cu): New.
10440 (free_heap_comp_unit, free_stack_comp_unit): Remove.
10441 (age_cached_comp_units, free_one_cached_comp_unit): Update.
10442
685af9cd
TT
104432018-01-17 Tom Tromey <tom@tromey.com>
10444 Simon Marchi <simon.marchi@ericsson.com>
10445
10446 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
10447 (struct die_reader_specs) <abbrev_table>: New member.
10448 (struct abbrev_table): Add constructor.
10449 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
10450 <abbrev_obstack>: Now an auto_obstack.
10451 (abbrev_table_up): New typedef.
10452 (init_cu_die_reader): Add abbrev_table parameter.
10453 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
10454 Add result_dwo_abbrev_table.
10455 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10456 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
10457 Update.
10458 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
10459 parameter.
10460 (skip_children): Update.
10461 (abbrev_table::alloc_abbrev): Rename from
10462 abbrev_table_alloc_abbrev.
10463 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
10464 (abbrev_table::lookup_abbrev): Rename from
10465 abbrev_table_lookup_abbrev.
10466 (abbrev_table_read_table): Return abbrev_table_up.
10467 (abbrev_table_free, abbrev_table_free_cleanup)
10468 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
10469 (load_partial_dies): Update.
10470
5e2db402
TT
104712018-01-17 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2read.c (dwarf2_compute_name): Update comment.
10474 (read_func_scope, read_variable): Update.
10475 (new_symbol): Remove.
10476 (new_symbol_full): Rename to new_symbol.
10477
ee7f689e 104782018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
10479
10480 PR gdb/16577
10481 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
10482 a warning instead of throwing an error, set section size to 0 and return
10483 NULL.
10484 * gdb_bfd.h (gdb_bfd_map_section): Update description.
10485
4d9b86e1
SM
104862018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10487
10488 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
10489 std::string.
10490 (linux_ptrace_attach_fail_reason_string): Likewise.
10491 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
10492 Likewise.
10493 (linux_ptrace_attach_fail_reason_string): Likewise.
10494 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
10495
a7b2d0fb
SM
104962018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10497
10498 * linux-nat.c (linux_nat_attach): Remove xstrdup.
10499
f517c180
EA
105002018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
10501
10502 PR gdb/21559
10503 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
10504 checking for fs_base/gs_base fields in struct user_regs_struct.
10505 * configure: Regenerate.
10506
7045b1ca
YQ
105072018-01-17 Yao Qi <yao.qi@linaro.org>
10508
10509 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
10510 function.
10511 (aarch64_linux_init_abi): Install it to gdbarch hook
10512 gcc_target_options.
10513
db422fb2
PA
105142018-01-15 Pedro Alves <palves@redhat.com>
10515
10516 * common/signals-state-save-restore.c
10517 (save_original_signals_state): Fix typos.
10518
ba643918
SDJ
105192017-01-12 Tom Tromey <tom@tromey.com>
10520 Sergio Durigan Junior <sergiodj@redhat.com>
10521
10522 * Makefile.in (install-only): Install gdb-add-index.
10523
906b4aac
JB
105242018-01-12 John Baldwin <jhb@FreeBSD.org>
10525
10526 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
10527
bdf2a94a
AA
105282018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10529
10530 * infrun.c (keep_going_pass_signal): Clear step-over info when
10531 insert_breakpoints fails.
10532
71d378ae
PA
105332018-01-11 Pedro Alves <palves@redhat.com>
10534
10535 PR gdb/22583
10536 * infrun.c (resume): Rename to ...
10537 (resume_1): ... this.
10538 (resume): Reimplement as wrapper around resume_1.
10539
3cada740
PA
105402018-01-11 Pedro Alves <palves@redhat.com>
10541
10542 PR remote/22597
10543 * remote.c (remote_parse_stop_reply): Default to the last-set
10544 general thread instead of to 'magic_null_ptid'.
10545
618daa93
PA
105462018-01-10 Pedro Alves <palves@redhat.com>
10547
10548 * language.h (language_get_symbol_name_matcher): Rename ...
10549 (get_symbol_name_matcher): ... this.
10550 * language.c (language_get_symbol_name_matcher): Ditto.
10551 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
10552 callers adjusted.
10553
c63d3e8d
PA
105542018-01-10 Pedro Alves <palves@redhat.com>
10555
10556 PR gdb/22670
10557 * dwarf2read.c
10558 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
10559 Adjust to use language_get_symbol_name_matcher instead of
10560 language_defn::la_get_symbol_name_matcher.
10561 * language.c (language_get_symbol_name_matcher): If in Ada mode
10562 and the lookup name is a verbatim match, return Ada's matcher.
10563 * language.h (language_get_symbol_name_matcher): Adjust comment.
10564 (ada_lookup_name_info::verbatim_p):: New method.
10565
d4c2a405
PA
105662018-01-10 Pedro Alves <palves@redhat.com>
10567
10568 PR gdb/22670
10569 * ada-lang.c (ada_collect_symbol_completion_matches): If the
10570 minsym's language is language_auto or language_cplus, pass down
10571 language_ada instead.
10572 * symtab.c (compare_symbol_name): Don't frob symbol language here.
10573
8825213e
PA
105742018-01-10 Pedro Alves <palves@redhat.com>
10575
10576 PR gdb/22670
10577 * minsyms.c (linkage_name_str): New function.
10578 (iterate_over_minimal_symbols): Use it.
10579
2d97a5d9
JB
105802018-01-09 John Baldwin <jhb@FreeBSD.org>
10581
10582 * NEWS: Document that 'info proc' now works on FreeBSD.
10583
92fce24d
JB
105842018-01-09 John Baldwin <jhb@FreeBSD.org>
10585
10586 * configure.ac: Check for kinfo_getfile in libutil.
10587 * configure: Regenerate.
10588 * config.in: Regenerate.
10589 * fbsd-nat.c: Include "fbsd-tdep.h".
10590 (fbsd_fetch_cmdline): New.
10591 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
10592 rather than calling error.
10593 (fbsd_info_proc): New.
10594 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
10595 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
10596 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
10597
262f62f5
JB
105982018-01-09 John Baldwin <jhb@FreeBSD.org>
10599
10600 * fbsd-nat.c (struct free_deleter): Remove.
10601 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
10602
b999e203
JB
106032018-01-09 John Baldwin <jhb@FreeBSD.org>
10604
10605 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
10606 NULL for an empty pathname.
10607
d2176225
JB
106082018-01-09 John Baldwin <jhb@FreeBSD.org>
10609
10610 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
10611 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
10612 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10613 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10614 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
10615 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
10616 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
10617 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
10618 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
10619 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
10620 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
10621 (fbsd_core_fetch_timeval, fbsd_print_sigset)
10622 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
10623 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
10624 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
10625
9c4ac400
ST
106262018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10627
10628 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
10629 (gnu_xfer_auxv): New function.
10630 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
10631 TARGET_OBJECT_AUXV.
10632
1e5ded6c
YQ
106332018-01-08 Yao Qi <yao.qi@linaro.org>
10634 Simon Marchi <simon.marchi@ericsson.com>
10635
10636 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
10637 common/selftest.c.
10638 (COMMON_OBS): Remove selftest.o.
10639 * configure.ac: Append selftest-arch.c and common/selftest.c to
10640 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
10641 * configure: Re-generated.
10642 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
10643 GDB_SELF_TEST.
10644 (maintenance_info_selftests): Likewise.
10645
04bafb1e
XR
106462018-01-08 Xavier Roirand <roirand@adacore.com>
10647
10648 * ada-valprint.c (val_print_packed_array_elements): Use
10649 proper number of elements when printing an array indexed
10650 by an enumeration type.
10651
518817b3
SM
106522018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10653
10654 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
10655 (dw2_get_file_names_reader): Adjust.
10656 (lookup_dwo_signatured_type): Adjust.
10657 (lookup_dwp_signatured_type): Adjust.
10658 (lookup_signatured_type): Adjust.
10659 (create_type_unit_group): Adjust.
10660 (get_type_unit_group): Adjust.
10661 (process_psymtab_comp_unit_reader): Adjust.
10662 (build_type_psymtabs_reader): Adjust.
10663 (scan_partial_symbols): Adjust.
10664 (add_partial_symbol): Adjust.
10665 (add_partial_subprogram): Adjust.
10666 (peek_die_abbrev): Adjust.
10667 (fixup_go_packaging): Adjust.
10668 (process_imported_unit_die): Adjust.
10669 (dwarf2_compute_name): Adjust.
10670 (dwarf2_physname): Adjust.
10671 (read_import_statement): Adjust.
10672 (handle_DW_AT_stmt_list): Adjust.
10673 (read_file_scope): Adjust.
10674 (read_func_scope): Adjust.
10675 (read_lexical_block_scope): Adjust.
10676 (read_call_site_scope): Adjust.
10677 (read_variable): Adjust.
10678 (dwarf2_rnglists_process): Adjust.
10679 (dwarf2_ranges_process): Adjust.
10680 (dwarf2_ranges_read): Adjust.
10681 (dwarf2_get_pc_bounds): Adjust.
10682 (dwarf2_record_block_ranges): Adjust.
10683 (dwarf2_add_field): Adjust.
10684 (dwarf2_add_member_fn): Adjust.
10685 (read_structure_type): Adjust.
10686 (process_structure_scope): Adjust.
10687 (read_enumeration_type): Adjust.
10688 (read_array_type): Adjust.
10689 (mark_common_block_symbol_computed): Adjust.
10690 (read_common_block): Adjust.
10691 (read_namespace_type): Adjust.
10692 (read_namespace): Adjust.
10693 (read_module_type): Adjust.
10694 (read_tag_pointer_type): Adjust.
10695 (read_tag_ptr_to_member_type): Adjust.
10696 (read_tag_string_type): Adjust.
10697 (read_subroutine_type): Adjust.
10698 (read_typedef): Adjust.
10699 (read_base_type): Adjust.
10700 (attr_to_dynamic_prop): Adjust.
10701 (read_subrange_type): Adjust.
10702 (read_unspecified_type): Adjust.
10703 (dwarf2_read_abbrevs): Adjust.
10704 (load_partial_dies): Adjust.
10705 (read_partial_die): Adjust.
10706 (find_partial_die): Adjust.
10707 (guess_partial_die_structure_name): Adjust.
10708 (fixup_partial_die): Adjust.
10709 (read_attribute_value): Adjust.
10710 (read_addr_index): Adjust.
10711 (read_addr_index_from_leb128): Adjust.
10712 (read_str_index): Adjust.
10713 (dwarf2_string_attr): Adjust.
10714 (get_debug_line_section): Adjust.
10715 (dwarf_decode_line_header): Adjust.
10716 (lnp_state_machine::check_line_address): Adjust.
10717 (dwarf_decode_lines_1): Adjust.
10718 (dwarf_decode_lines): Adjust.
10719 (dwarf2_start_symtab): Adjust.
10720 (var_decode_location): Adjust.
10721 (new_symbol_full): Adjust.
10722 (dwarf2_const_value_data): Adjust.
10723 (dwarf2_const_value_attr): Adjust.
10724 (dwarf2_const_value): Adjust.
10725 (die_type): Adjust.
10726 (die_containing_type): Adjust.
10727 (build_error_marker_type): Adjust.
10728 (lookup_die_type): Adjust.
10729 (guess_full_die_structure_name): Adjust.
10730 (anonymous_struct_prefix): Adjust.
10731 (determine_prefix): Adjust.
10732 (dwarf2_name): Adjust.
10733 (follow_die_ref_or_sig): Adjust.
10734 (follow_die_offset): Adjust.
10735 (follow_die_ref): Adjust.
10736 (follow_die_sig_1): Adjust.
10737 (follow_die_sig): Adjust.
10738 (get_signatured_type): Adjust.
10739 (get_DW_AT_signature_type): Adjust.
10740 (decode_locdesc): Adjust.
10741 (dwarf_decode_macros): Adjust.
10742 (cu_debug_loc_section): Adjust.
10743 (fill_in_loclist_baton): Adjust.
10744 (dwarf2_symbol_mark_computed): Adjust.
10745 (init_one_comp_unit): Don't assign
10746 dwarf2_cu::dwarf2_per_objfile.
10747 (set_die_type): Adjust.
10748
ed2dc618
SM
107492018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10750
10751 * dwarf2read.c (struct mapped_debug_names): Add constructor.
10752 <dwarf2_per_objfile>: New field.
10753 (dwarf2_per_objfile): Remove global.
10754 (get_dwarf2_per_objfile): New function.
10755 (set_dwarf2_per_objfile): New function.
10756 (dwarf2_build_psymtabs_hard): Change objfile parameter to
10757 dwarf2_per_objfile.
10758 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
10759 (read_abbrev_offset): Likewise.
10760 (read_indirect_string): Likewise.
10761 (read_indirect_line_string): Likewise.
10762 (read_indirect_string_at_offset): Likewise.
10763 (read_indirect_string_from_dwz): Likewise.
10764 (dwarf2_find_containing_comp_unit): Change objfile parameter to
10765 dwarf2_per_objfile.
10766 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
10767 (create_all_comp_units): Change objfile parameter to
10768 dwarf2_per_objfile.
10769 (create_all_type_units): Likewise.
10770 (process_queue): Add dwarf2_per_objfile parameter.
10771 (read_and_check_comp_unit_head): Likewise.
10772 (lookup_dwo_unit_in_dwp): Likewise.
10773 (get_dwp_file): Likewise.
10774 (process_cu_includes): Likewise.
10775 (struct free_dwo_file_cleanup_data): New struct.
10776 (dwarf2_has_info): Use get_dwarf2_per_objfile and
10777 set_dwarf2_per_objfile.
10778 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
10779 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
10780 context, adjust calls.
10781 (dw2_instantiate_symtab): Likewise.
10782 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
10783 (dw2_get_cu): Likewise.
10784 (create_cu_from_index_list): Change objfile parameter to
10785 dwarf2_per_objfile.
10786 (create_cus_from_index_list): Get dwarf2_per_objfile from
10787 context, adjust calls.
10788 (create_cus_from_index): Likewise.
10789 (create_signatured_type_table_from_index): Change objfile
10790 parameter to dwarf2_per_objfile.
10791 (create_signatured_type_table_from_debug_names): Change objfile
10792 parameter to dwarf2_per_objfile.
10793 (create_addrmap_from_index): Likewise.
10794 (create_addrmap_from_aranges): Likewise.
10795 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
10796 (dw2_setup): Remove.
10797 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
10798 context.
10799 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
10800 get_dwarf2_per_objfile.
10801 (dw2_forget_cached_source_info): Likewise.
10802 (dw2_map_symtabs_matching_filename): Likewise.
10803 (struct dw2_symtab_iterator) <index>: Remove.
10804 <dwarf2_per_objfile>: New field.
10805 (dw2_symtab_iter_init): Replace index parameter with
10806 dwarf2_per_objfile.
10807 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
10808 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
10809 (dw2_print_stats): Likewise.
10810 (dw2_dump): Likewise.
10811 (dw2_expand_symtabs_for_function): Likewise.
10812 (dw2_expand_all_symtabs): Likewise.
10813 (dw2_expand_symtabs_with_fullname): Likewise.
10814 (dw2_expand_marked_cus): Replace index and objfile parameters
10815 with dwarf2_per_objfile.
10816 (dw_expand_symtabs_matching_file_matcher): Add
10817 dwarf2_per_objfile parameter and adjust calls.
10818 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
10819 adjust calls.
10820 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
10821 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
10822 adjust calls.
10823 (create_cus_from_debug_names_list): Replace objfile parameter
10824 with dwarf2_per_objfile and adjust calls.
10825 (create_cus_from_debug_names): Likewise.
10826 (dwarf2_read_debug_names): Likewise.
10827 (mapped_debug_names::namei_to_name): Adjust call.
10828 (dw2_debug_names_iterator::next): Likewise.
10829 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10830 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
10831 (dw2_debug_names_dump): Likewise.
10832 (dw2_debug_names_expand_symtabs_for_function): Likewise.
10833 (dw2_debug_names_expand_symtabs_matching): Likewise.
10834 (dwarf2_initialize_objfile): Likewise.
10835 (dwarf2_build_psymtabs): Likewise.
10836 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
10837 this_cu.
10838 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
10839 (read_and_check_comp_unit_head): Likewise.
10840 (read_abbrev_offset): Likewise.
10841 (create_debug_type_hash_table): Likewise.
10842 (create_debug_types_hash_table): Likewise.
10843 (create_all_type_units): Replace objfile parameter with
10844 dwarf2_per_objfile.
10845 (add_type_unit): Add dwarf2_per_objfile parameter.
10846 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
10847 with dwarf2_per_objfile.
10848 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
10849 (lookup_dwp_signatured_type): Likewise.
10850 (lookup_signatured_type): Likewise.
10851 (read_cutu_die_from_dwo): Likewise.
10852 (init_tu_and_read_dwo_dies): Likewise.
10853 (init_cutu_and_read_dies): Likewise.
10854 (init_cutu_and_read_dies_no_follow): Likewise.
10855 (allocate_type_unit_groups_table): Add objfile parameter.
10856 (create_type_unit_group): Use dwarf2_per_objfile from cu.
10857 (get_type_unit_group): Likewise.
10858 (process_psymtab_comp_unit): Update call.
10859 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
10860 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
10861 (print_tu_stats): Likewise.
10862 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
10863 in void* parameter.
10864 (build_type_psymtabs): Change objfile parameter to
10865 dwarf2_per_objfile.
10866 (process_skeletonless_type_unit): Use dwarf2_per_objfile
10867 passed in void* parameter.
10868 (process_skeletonless_type_units): Change objfile parameter to
10869 dwarf2_per_objfile.
10870 (set_partial_user): Likewise.
10871 (dwarf2_build_psymtabs_hard): Likewise.
10872 (read_comp_units_from_section): Likewise.
10873 (create_all_comp_units): Likewise.
10874 (scan_partial_symbols): Update calls.
10875 (add_partial_symbol): Likewise.
10876 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
10877 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
10878 (process_queue): Add dwarf2_per_objfile parameter.
10879 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
10880 (compute_compunit_symtab_includes): Likewise.
10881 (process_cu_includes): Add dwarf2_per_objfile parameter.
10882 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
10883 (process_full_type_unit): Likewise.
10884 (process_imported_unit_die): Update call.
10885 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
10886 (read_file_scope): Likewise.
10887 (allocate_dwo_file_hash_table): Add objfile parameter.
10888 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
10889 (create_cus_hash_table): Likewise.
10890 (create_dwp_hash_table): Likewise.
10891 (create_dwo_unit_in_dwp_v1): Likewise.
10892 (create_dwp_v2_section): Likewise.
10893 (create_dwo_unit_in_dwp_v2): Likewise.
10894 (lookup_dwo_unit_in_dwp): Likewise.
10895 (try_open_dwop_file): Likewise.
10896 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
10897 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
10898 cleanup to include a reference to dwarf2_per_objfile.
10899 (open_dwp_file): Add dwarf2_per_objfile parameter.
10900 (open_and_init_dwp_file): Likewise.
10901 (get_dwp_file): Likewise.
10902 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
10903 (queue_and_load_all_dwo_tus): Update call.
10904 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
10905 data.
10906 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
10907 (dwarf2_ranges_process): Likewise.
10908 (dwarf2_get_pc_bounds): Likewise.
10909 (mark_common_block_symbol_computed): Likewise.
10910 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
10911 (dwarf2_read_abbrevs): Update call.
10912 (read_partial_die): Use dwarf2_per_objfile from cu.
10913 (find_partial_die): Likewise.
10914 (fixup_partial_die): Likewise.
10915 (read_attribute_value): Likewise.
10916 (read_indirect_string_at_offset_from): Add objfile parameter.
10917 (read_indirect_string_at_offset): Add dwarf2_per_objfile
10918 parameter.
10919 (read_indirect_string_from_dwz): Add objfile parameter.
10920 (read_indirect_string): Add objfile parameter.
10921 (read_addr_index_1): Add dwarf2_per_objfile parameter.
10922 (read_addr_index): Use dwarf2_per_objfile from cu.
10923 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
10924 call dw2_setup.
10925 (read_str_index): Use dwarf2_per_objfile from cu.
10926 (get_debug_line_section): Likewise.
10927 (read_formatted_entries): Add dwarf2_per_objfile parameter.
10928 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
10929 (new_symbol_full): Use dwarf2_per_objfile from cu.
10930 (build_error_marker_type): Likewise.
10931 (lookup_die_type): Likewise.
10932 (determine_prefix): Likewise.
10933 (follow_die_offset): Likewise.
10934 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
10935 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
10936 (dwarf2_fetch_die_type_sect_off): Likewise.
10937 (dwarf2_get_die_type): Likewise.
10938 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
10939 (get_signatured_type): Likewise.
10940 (get_DW_AT_signature_type): Likewise.
10941 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
10942 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
10943 (cu_debug_loc_section): Likewise.
10944 (fill_in_loclist_baton): Likewise.
10945 (dwarf2_symbol_mark_computed): Likewise.
10946 (dwarf2_find_containing_comp_unit): Change objfile parameter to
10947 dwarf2_per_objfile.
10948 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
10949 parameter.
10950 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
10951 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
10952 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
10953 (set_die_type): Use dwarf2_free_objfile from cu.
10954 (get_die_type_at_offset): Likewise.
10955 (dwarf2_per_objfile_free): Don't assign global variable.
10956 (debug_names) <constructor>: Add dwarf2_per_objfile
10957 parameter, update m_debugstrlookup construction.
10958 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
10959 parameter.
10960 <m_dwarf2_per_objfile>: New field.
10961 <lookup>: Use m_dwarf2_per_objfile.
10962 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
10963 (psyms_seen_size): Likewise.
10964 (write_gdbindex): Replace objfile parameter with
10965 dwarf2_per_objfile.
10966 (write_debug_names): Likewise.
10967 (write_psymtabs_to_index): Likewise.
10968 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
10969 calls.
10970
e3b94546
SM
109712018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10972
10973 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
10974 <dwarf2_per_objfile>: New field.
10975 (struct dwarf2_per_cu_data) <objfile>: Remove.
10976 <dwarf2_per_objfile>: New field.
10977 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
10978 of objfile.
10979 (create_signatured_type_table_from_index): Likewise.
10980 (create_debug_type_hash_table): Likewise.
10981 (fill_in_sig_entry_from_dwo_entry): Likewise.
10982 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
10983 (create_type_unit_group): Assign dwarf2_per_objfile instead of
10984 objfile.
10985 (create_partial_symtab): Access objfile through
10986 dwarf2_per_objfile.
10987 (process_psymtab_comp_unit_reader): Likewise.
10988 (read_comp_units_from_section): Likewise.
10989 (scan_partial_symbols): Likewise.
10990 (add_partial_symbol): Likewise.
10991 (add_partial_subprogram): Likewise.
10992 (peek_die_abbrev): Likewise.
10993 (fixup_go_packaging): Likewise.
10994 (process_full_comp_unit): Likewise.
10995 (process_full_type_unit): Likewise.
10996 (process_imported_unit_die): Likewise.
10997 (dwarf2_compute_name): Likewise.
10998 (dwarf2_physname): Likewise.
10999 (read_import_statement): Likewise.
11000 (create_cus_hash_table): Assign dwarf2_physname instead of
11001 objfile.
11002 (read_func_scope): Access objfile through dwarf2_per_objfile.
11003 (read_lexical_block_scope): Likewise.
11004 (read_call_site_scope): Likewise.
11005 (read_variable): Likewise.
11006 (dwarf2_rnglists_process): Likewise.
11007 (dwarf2_ranges_process): Likewise.
11008 (dwarf2_ranges_read): Likewise.
11009 (dwarf2_record_block_ranges): Likewise.
11010 (dwarf2_add_field): Likewise.
11011 (dwarf2_add_member_fn): Likewise.
11012 (read_structure_type): Likewise.
11013 (process_structure_scope): Likewise.
11014 (read_enumeration_type): Likewise.
11015 (read_array_type): Likewise.
11016 (read_common_block): Likewise.
11017 (read_namespace_type): Likewise.
11018 (read_namespace): Likewise.
11019 (read_module_type): Likewise.
11020 (read_tag_pointer_type): Likewise.
11021 (read_tag_ptr_to_member_type): Likewise.
11022 (read_tag_string_type): Likewise.
11023 (read_subroutine_type): Likewise.
11024 (read_typedef): Likewise.
11025 (read_base_type): Likewise.
11026 (attr_to_dynamic_prop): Likewise.
11027 (read_subrange_type): Likewise.
11028 (read_unspecified_type): Likewise.
11029 (load_partial_dies): Likewise.
11030 (read_partial_die): Likewise.
11031 (find_partial_die): Likewise.
11032 (guess_partial_die_structure_name): Likewise.
11033 (fixup_partial_die): Likewise.
11034 (read_attribute_value): Likewise.
11035 (read_addr_index_from_leb128): Likewise.
11036 (dwarf2_read_addr_index): Likewise.
11037 (dwarf2_string_attr): Likewise.
11038 (lnp_state_machine::check_line_address): Likewise.
11039 (dwarf_decode_lines_1): Likewise.
11040 (dwarf_decode_lines): Likewise.
11041 (dwarf2_start_symtab): Likewise.
11042 (var_decode_location): Likewise.
11043 (new_symbol_full): Likewise.
11044 (dwarf2_const_value_data): Likewise.
11045 (dwarf2_const_value_attr): Likewise.
11046 (dwarf2_const_value): Likewise.
11047 (die_type): Likewise.
11048 (die_containing_type): Likewise.
11049 (lookup_die_type): Likewise.
11050 (guess_full_die_structure_name): Likewise.
11051 (anonymous_struct_prefix): Likewise.
11052 (dwarf2_name): Likewise.
11053 (follow_die_ref_or_sig): Likewise.
11054 (follow_die_offset): Likewise.
11055 (follow_die_ref): Likewise.
11056 (dwarf2_fetch_die_loc_sect_off): Likewise.
11057 (dwarf2_fetch_constant_bytes): Likewise.
11058 (dwarf2_fetch_die_type_sect_off): Likewise.
11059 (dwarf2_get_die_type): Likewise.
11060 (follow_die_sig): Likewise.
11061 (decode_locdesc): Likewise.
11062 (dwarf2_per_cu_objfile): Likewise.
11063 (dwarf2_per_cu_text_offset): Likewise.
11064 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11065 objfile.
11066 (set_die_type): Access objfile through
11067 dwarf2_per_objfile.
11068
b01ba14d
SM
110692018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11070
11071 * valprint.c (converted_character_d): Remove typedef.
11072 (DEF_VEC_O (converted_character_d)): Remove.
11073 (count_next_character): Use std::vector.
11074 (print_converted_chars_to_obstack): Likewise.
11075 (generic_printstr): Likewise.
11076
4d0fdd9b
SM
110772018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11078
11079 * xml-support.h (struct gdb_xml_value): Add constructor.
11080 <value>: Change type to unique_xmalloc_ptr.
11081 (gdb_xml_value_s): Remove typedef.
11082 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11083 (gdb_xml_element_start_handler): Change parameter type to
11084 std::vector.
11085 (xml_find_attribute): Likewise.
11086 * xml-support.c (xml_find_attribute): Change parameter type to
11087 std::vector and adjust.
11088 (gdb_xml_values_cleanup): Remove.
11089 (gdb_xml_parser::start_element): Adjust to std::vector.
11090 (xinclude_start_include): Change paraeter type to std::vector
11091 and adjust.
11092 * btrace.c (check_xml_btrace_version): Likewise.
11093 (parse_xml_btrace_block): Likewise.
11094 (parse_xml_btrace_pt_config_cpu): Likewise.
11095 (parse_xml_btrace_pt): Likewise.
11096 (parse_xml_btrace_conf_bts): Likewise.
11097 (parse_xml_btrace_conf_pt): Likewise.
11098 * memory-map.c (memory_map_start_memory): Likewise.
11099 (memory_map_start_property): Likewise.
11100 * osdata.c (osdata_start_osdata): Likewise.
11101 (osdata_start_item): Likewise.
11102 (osdata_start_column): Likewise.
11103 * remote.c (start_thread): Likewise.
11104 * solib-aix.c (library_list_start_library): Likewise.
11105 (library_list_start_list): Likewise.
11106 * solib-svr4.c (library_list_start_library): Likewise.
11107 (svr4_library_list_start_list): Likewise.
11108 * solib-target.c (library_list_start_segment): Likewise.
11109 (library_list_start_section): Likewise.
11110 (library_list_start_library): Likewise.
11111 (library_list_start_list): Likewise.
11112 * tracepoint.c (traceframe_info_start_memory): Likewise.
11113 (traceframe_info_start_tvar): Likewise.
11114 * xml-syscall.c (syscall_start_syscall): Likewise.
11115 * xml-tdesc.c (tdesc_start_target): Likewise.
11116 (tdesc_start_feature): Likewise.
11117 (tdesc_start_reg): Likewise.
11118 (tdesc_start_union): Likewise.
11119 (tdesc_start_struct): Likewise.
11120 (tdesc_start_flags): Likewise.
11121 (tdesc_start_enum): Likewise.
11122 (tdesc_start_field): Likewise.
11123 (tdesc_start_enum_value): Likewise.
11124 (tdesc_start_vector): Likewise.
11125
f979c73f
SM
111262018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * extension.h (struct xmethod_worker) <clone>: Remove.
11129 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11130 Remove.
11131 (python_xmethod_worker::clone): Remove.
11132 * valops.c (find_overload_match): Use std::move instead of
11133 clone.
11134
ba18742c
SM
111352018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11136
11137 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11138 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11139 <free_xmethod_worker_data>: Remove.
11140 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11141 <get_xmethod_arg_types>: Remove.
11142 <get_xmethod_result_type>: Remove.
11143 <invoke_xmethod>: Remove.
11144 * extension.c (new_xmethod_worker): Remove.
11145 (clone_xmethod_worker): Remove.
11146 (get_matching_xmethod_workers): Return void, pass std::vector by
11147 pointer.
11148 (get_xmethod_arg_types): Rename to...
11149 (xmethod_worker::get_arg_types): ... this, and adjust.
11150 (get_xmethod_result_type): Rename to...
11151 (xmethod_worker::get_result_type): ... this, and adjust.
11152 (invoke_xmethod): Remove.
11153 (free_xmethod_worker): Remove.
11154 (free_xmethod_worker_vec): Remove.
11155 * extension.h (enum ext_lang_rc): Move here from
11156 extension-priv.h.
11157 (struct xmethod_worker): Add constructor and destructor.
11158 <data>: Remove.
11159 <value>: Remove.
11160 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11161 virtual pure methods.
11162 <get_arg_types, get_result_type>: New methods.
11163 (xmethod_worker_ptr): Remove typedef.
11164 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11165 (xmethod_worker_vec): Remove typedef.
11166 (xmethod_worker_up): New typedef.
11167 (invoke_xmethod): Remove.
11168 (clone_xmethod_worker): Remove.
11169 (free_xmethod_worker): Remove.
11170 (free_xmethod_worker_vec): Remove.
11171 (get_xmethod_arg_types): Remove.
11172 (get_xmethod_result_type): Remove.
11173 * valops.c (find_method_list): Use std::vector, don't use
11174 intermediate vector.
11175 (value_find_oload_method_list): Use std::vector.
11176 (find_overload_match): Use std::vector.
11177 (find_oload_champ): Use std::vector.
11178 * value.c (value_free): Use operator delete.
11179 (value_of_xmethod): Rename to...
11180 (value_from_xmethod): ... this. Don't assign
11181 xmethod_worker::value, take rvalue-reference.
11182 (result_type_of_xmethod): Adjust.
11183 (call_xmethod): Adjust.
11184 * value.h: Include extension.h.
11185 (struct xmethod_worker): Don't forward-declare.
11186 (value_of_xmethod): Rename to...
11187 (value_from_xmethod): ... this, take rvalue-reference.
11188 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11189 (struct python_xmethod_worker): ... this, add constructor and
11190 destructor.
11191 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11192 (gdbpy_free_xmethod_worker_data): Rename to...
11193 (python_xmethod_worker::~python_xmethod_worker): ... this and
11194 adjust.
11195 (gdbpy_clone_xmethod_worker_data): Rename to...
11196 (python_xmethod_worker::clone): ... this and adjust.
11197 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11198 temporary vector.
11199 (gdbpy_get_xmethod_arg_types): Rename to...
11200 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11201 (gdbpy_get_xmethod_result_type): Rename to...
11202 (python_xmethod_worker::do_get_result_type): ... this and
11203 adjust.
11204 (gdbpy_invoke_xmethod): Rename to...
11205 (python_xmethod_worker::invoke): ... this and adjust.
11206 (new_python_xmethod_worker): Rename to...
11207 (python_xmethod_worker::python_xmethod_worker): ... this and
11208 adjust.
11209 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11210 Remove.
11211 (gdbpy_free_xmethod_worker_data): Remove.
11212 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11213 (gdbpy_get_xmethod_arg_types): Remove.
11214 (gdbpy_get_xmethod_result_type): Remove.
11215 (gdbpy_invoke_xmethod): Remove.
11216 * python/python.c (python_extension_ops): Remove obsolete
11217 callbacks.
11218
e379cee6
PA
112192018-01-05 Pedro Alves <palves@redhat.com>
11220
11221 PR gdb/18653
11222 * common/signals-state-save-restore.c
11223 (save_original_signals_state): New parameter 'quiet'. Warn if we
11224 find a custom handler preinstalled, instead of internal erroring.
11225 But only warn if !quiet.
11226 * common/signals-state-save-restore.h
11227 (save_original_signals_state): New parameter 'quiet'.
11228 * main.c (captured_main_1): Move save_original_signals_state call
11229 after option handling, and pass QUIET.
11230
a655456c
PA
112312018-01-05 Pedro Alves <palves@redhat.com>
11232
11233 * spu-tdep.c (spu_catch_start): Pass
11234 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11235
de63c46b
PA
112362018-01-05 Pedro Alves <palves@redhat.com>
11237
11238 PR gdb/22670
11239 * ada-lang.c (literal_symbol_name_matcher): New function.
11240 (ada_get_symbol_name_matcher): Use it for
11241 symbol_name_match_type::SEARCH_NAME.
11242 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11243 it down instead of assuming symbol_name_match_type::FULL.
11244 * block.h (block_lookup_symbol): New parameter 'match_type'.
11245 * c-valprint.c (print_unpacked_pointer): Use
11246 lookup_symbol_search_name instead of lookup_symbol.
11247 * compile/compile-object-load.c (get_out_value_type): Pass down
11248 symbol_name_match_type::SEARCH_NAME.
11249 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11250 symbol_name_match_type::FULL.
11251 * cp-support.c (cp_get_symbol_name_matcher): Handle
11252 symbol_name_match_type::SEARCH_NAME.
11253 * infrun.c (insert_exception_resume_breakpoint): Use
11254 lookup_symbol_search_name.
11255 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11256 * psymtab.c (maintenance_check_psymtabs): Use
11257 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11258 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11259 SYMBOL_SEARCH_NAME.
11260 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11261 if symbol_name_match_type::SEARCH_NAME.
11262 (lookup_symbol_in_language): Pass down
11263 symbol_name_match_type::FULL.
11264 (lookup_symbol_search_name): New.
11265 (lookup_language_this): Pass down
11266 symbol_name_match_type::SEARCH_NAME.
11267 (lookup_symbol_aux, lookup_local_symbol): New parameter
11268 'match_type'. Pass it down.
11269 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11270 (lookup_symbol_search_name): New declaration.
11271 (lookup_symbol_in_block): New 'match_type' parameter.
11272
f98fc17b
PA
112732018-01-05 Pedro Alves <palves@redhat.com>
11274
11275 PR gdb/22670
11276 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11277 ada_lookup_symbol.
11278 (ada_lookup_symbol): Reimplement in terms of
11279 ada_lookup_symbol_list, bits factored out from
11280 ada_lookup_encoded_symbol.
11281
342f8240
JB
112822018-01-05 Joel Brobecker <brobecker@adacore.com>
11283
11284 * ada-exp.y (write_object_renaming): When subscripting an array
11285 using a symbol as the index, pass the block in call to
11286 ada_lookup_encoded_symbol when looking that symbol up.
11287
7150d33c
JG
112882018-01-05 Jerome Guitton <guitton@adacore.com>
11289
11290 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11291 TYPE_INDEX_TYPE.
11292
cc0e770c
JB
112932018-01-05 Joel Brobecker <brobecker@adacore.com>
11294
11295 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11296 the case where VALUE_LVAL (val0) is not lval_memory.
11297
f79da888 112982018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
11299
11300 * ada-valprint.c (print_optional_low_bound): Handle
11301 character-indexed array printing like boolean-indexed array
11302 printing.
11303
cd385f94
JB
113042018-01-05 Joel Brobecker <brobecker@adacore.com>
11305
11306 * NEWS: Create a new section for the next release branch.
11307 Rename the section of the current branch, now that it has
11308 been cut.
11309
09aca949
JB
113102018-01-05 Joel Brobecker <brobecker@adacore.com>
11311
11312 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11313 * version.in: Bump version to 8.1.50.DATE-git.
11314
9f757bf7
XR
113152018-01-03 Xavier Roirand <roirand@adacore.com>
11316
11317 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11318 Add field.
11319 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11320 Add field.
11321 (default_exception_support_info) <catch_handlers_sym>: Add field.
11322 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11323 (ada_exception_name_addr_1): Add "catch handlers" handling.
11324 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11325 Update all callers.
11326 (create_excep_cond_exprs) <ex>: Add parameter.
11327 (re_set_exception): Update create_excep_cond_exprs call.
11328 (print_it_exception, print_one_exception, print_mention_exception)
11329 (print_recreate_exception): Add "catch handler" handling.
11330 (allocate_location_catch_handlers, re_set_catch_handlers)
11331 (check_status_catch_handlers, print_it_catch_handlers)
11332 (print_one_catch_handlers, print_mention_catch_handlers)
11333 (print_recreate_catch_handlers): New function.
11334 (catch_handlers_breakpoint_ops): New variable.
11335 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11336 Add parameter. Add "catch handler" handling.
11337 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11338 Add "catch handler" handling.
11339 (ada_exception_catchpoint_cond_string): Add "catch handler"
11340 handling.
11341 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11342 call.
11343 (catch_ada_handlers_command): New function.
11344 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11345 operations structure.
11346 (_initialize_ada_language): Add "catch handlers" command entry.
11347 * NEWS: Document "catch handlers" feature.
11348
9fe561ab
JB
113492018-01-02 Joel Brobecker <brobecker@adacore.com>
11350
11351 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11352 account when creating the array type of the slice.
11353 (ada_value_slice): Likewise.
11354
a405673c
JB
113552018-01-02 Joel Brobecker <brobecker@adacore.com>
11356
11357 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11358 New enum value.
11359 (create_array_type_with_stride): Add byte_stride_prop parameter.
11360 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11361 New parameter. Update all callers in this file.
11362 (array_type_has_dynamic_stride): New function.
11363 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11364 of arrays with dynamic byte strides.
11365 * dwarf2read.c (read_array_type): Add support for dynamic
11366 DW_AT_byte_stride attributes.
11367
74a2f8ff
JB
113682018-01-02 Joel Brobecker <brobecker@adacore.com>
11369
11370 * dwarf2read.c (read_unspecified_type): Treat
11371 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11372
e2882c85
JB
113732018-01-01 Joel Brobecker <brobecker@adacore.com>
11374
11375 Update copyright year range in all GDB files.
11376
1690bb24
JB
113772018-01-01 Joel Brobecker <brobecker@adacore.com>
11378
11379 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
11380 and gdb/testsuite/gdb.base/step-line.c.
11381
0f0c98a8
JB
113822018-01-01 Joel Brobecker <brobecker@adacore.com>
11383
11384 * copyright.py (main): Dump the contents of
11385 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
11386 even if BY_HAND is empty.
11387
82e1e79a
JB
113882018-01-01 Joel Brobecker <brobecker@adacore.com>
11389
11390 * top.c (print_gdb_version): Update Copyright year in version
11391 message.
11392
053f54e5 113932018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 11394
053f54e5 11395 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 11396
053f54e5 11397For older changes see ChangeLog-2017.
c906108c
SS
11398\f
11399Local Variables:
11400mode: change-log
11401left-margin: 8
11402fill-column: 74
11403version-control: never
57da7796 11404coding: utf-8
c906108c 11405End:
This page took 2.563619 seconds and 4 git commands to generate.